@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/ibm-plex-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --body-font: "IBM Plex Sans", system-ui, sans-serif;
  --ink: #202b43;
  --muted: #4b5565;
  --blue: #1ca2fc;
  --blue-ink: #145c89;
  --orange: #ff943d;
  --ice: #eff8fe;
  --sand: #f4e9de;
  --line: #e5e9ee;
}

body { color: var(--ink); background: #fff; font: 1rem/1.55 var(--body-font); position: relative; }
h1, h2, h3, p { margin: 0; color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #176d9e; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-180%); padding: 8px 14px; border-radius: 6px; background: white; color: var(--blue-ink); }
.skip-link:focus { transform: none; }
.pill { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: .55rem; border: 1px solid transparent; border-radius: 999px; padding: .6rem 1.4rem; font-weight: 600; text-align: center; white-space: nowrap; }
.pill-blue { color: #092c42; background: var(--blue); }
.pill-blue:hover { background: #0d8edc; color: #092c42; }
.pill-outline { border-color: #2498d8; color: var(--blue-ink); background: white; }
.pill-outline:hover { background: var(--ice); color: var(--blue-ink); }
.avoja-header.header-section { position: relative; top: auto; left: auto; width: auto; margin: 0; z-index: 3; background: transparent; }
.top-header { min-height: 96px; display: grid; grid-template-columns: 1fr minmax(250px, 1.85fr) 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .6rem; font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -.045em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-accent { color: #9e4c0f; }
.brand-mark { width: 43px; height: 41px; flex: 0 0 43px; background: url("/assets/couponly/images/logo.png") no-repeat left center / 192px 41px; }
.header-search { display: flex; align-items: center; min-width: 0; gap: .45rem; border: 1px solid #dfdfe2; border-radius: 999px; padding: 6px; background: white; }
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; padding: .35rem .45rem .35rem .8rem; }
.header-search input:focus { outline: none; }
.header-search:focus-within { outline: 2px solid #176d9e; outline-offset: 2px; }
.header-search button { display: grid; place-content: center; border: 0; border-radius: 50%; width: 34px; height: 34px; flex: 0 0 34px; background: var(--orange); color: #362009; }
.header-cta { justify-self: end; }
.avoja-header .main-header { position: static; background: white; border-block: 1px solid #eef0f2; margin-inline: 12px; }
.nav-row { min-height: 64px; display: flex; gap: clamp(14px, 2.4vw, 34px); align-items: center; }
.nav-row a { color: #394556; }
.nav-row a:hover, .nav-row a[aria-current] { color: var(--blue-ink); }
.nav-row a[aria-current] { border-bottom: 1px solid #3a91be; padding-block: 7px; font-weight: 600; }
.nav-quick { margin-left: auto; padding: 9px 18px; border-inline: 1px solid var(--line); }

.home-banners { display: grid; grid-template-columns: 2.06fr 1fr 1fr; gap: clamp(12px, 1.55vw, 24px); margin: 24px 12px 0; }
.hero-tile { position: relative; display: block; isolation: isolate; overflow: hidden; min-width: 0; min-height: 0; border-radius: 8px; color: #0e213d; }
.hero-tile img { width: 100%; height: 100%; display: block; position: absolute; inset: 0; object-fit: fill; }
.hero-main { aspect-ratio: 856 / 500; }
.home-tiles-end { display: grid; grid-template-rows: 1fr 1fr; min-width: 0; gap: clamp(12px, 1.55vw, 24px); }
.home-main-copy { position: absolute; inset: 13% 2.5% 10% 55%; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; gap: 15px; padding: 4% 3.5% 4% 1.5%; background: #ffd3af; }
.home-main-copy h1 { font-size: clamp(1.5rem, 3vw, 3.6rem); font-weight: 700; line-height: .99; }
.hero-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; max-width: 270px; padding: .3rem .5rem; border: 1px solid #17304b; border-radius: 6px; text-align: center; font-size: clamp(.85rem, 1.45vw, 1.35rem); font-weight: 600; }
.hero-outline:hover { background: #fff4e8; color: #17304b; }
.tile-copy { position: absolute; display: flex; flex-direction: column; justify-content: center; font-weight: 700; line-height: .98; text-transform: uppercase; letter-spacing: -.035em; }
.hero-coupons .tile-copy { inset: 4% 5% 61% 5%; padding-left: 1%; background: #a2d9fe; font-size: clamp(1.3rem, 3.15vw, 3.6rem); color: #145e8b; }
.hero-coupons::after { content: ""; position: absolute; left: 5%; top: 35%; width: 28%; height: 12%; background: #a2d9fe; z-index: -1; }
.hero-coupons img { z-index: -2; }
.hero-coupons strong { color: #172637; }
.hero-stores .tile-copy, .hero-categories .tile-copy { inset: 12% auto 12% 5%; width: 40%; font-size: clamp(.85rem, 1.78vw, 2rem); }
.hero-stores .tile-copy { background: #e8f6ff; }
.hero-categories .tile-copy { width: 42%; background: #fff4ec; }
.hero-tile:hover .tile-copy strong { text-decoration: underline; text-underline-offset: .12em; }
.home-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: clamp(30px, 5vw, 78px); }
.home-benefits > div { display: flex; align-items: flex-start; gap: 13px; padding: 24px 17px; border: 1px solid var(--line); border-radius: 16px; }
.benefit-icon, .metric-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 45px; height: 45px; border-radius: 50%; background: #fef5ec; border: 1px solid #fee6d0; color: #944915; }
.home-benefits > div:nth-child(2) .benefit-icon { background: var(--ice); border-color: #d6eefb; color: var(--blue-ink); }
.home-benefits strong { display: block; font-size: 1.125rem; }
.home-benefits small { color: var(--muted); font-size: .94rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2, .merchant-deals > h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.coupon-section { background: var(--ice); padding-block: clamp(30px, 5vw, 70px); }
.affiliate-note { font-size: .9rem; color: var(--muted); }
.coupon-section .affiliate-note { margin-bottom: 20px; }
.home-featured { padding-block: clamp(36px, 6vw, 80px); }
.site-footer.footer-section { background: #202b43; color: #fff; padding-block: 25px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-inner a { color: #fff; }
.footer-inner .brand-accent { color: #ffab6c; }

.theme-subpage { background: var(--ice); isolation: isolate; }
.theme-subpage::before { content: ""; position: absolute; z-index: -1; top: 24px; left: 24px; right: 24px; height: 525px; border-radius: 7px; border: 1px solid #eedecd; background: var(--sand); }
.theme-subpage[data-page="directory"]::before { height: 443px; }
.theme-subpage .top-header { min-height: 120px; }
.merchant-shell { padding-top: 20px; padding-bottom: 76px; }
.breadcrumb { display: flex; align-items: center; gap: 5px; margin-bottom: 18px; color: #384658; }
.breadcrumb li + li::before { content: "›"; margin-right: 7px; color: #4b5968; }
.breadcrumb [aria-current] { color: var(--blue-ink); font-weight: 600; }
.merchant-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "lead aside" "deals aside"; gap: 27px; align-items: start; }
.merchant-lead { grid-area: lead; min-width: 0; }
.merchant-lead h1, .directory-hero h1 { font-size: clamp(2.25rem, 4.7vw, 4.3rem); line-height: 1.06; }
.merchant-lead > p { color: var(--muted); margin-block: 19px 15px; max-width: 58ch; }
.theme-chip { display: inline-flex; gap: 7px; align-items: center; justify-content: center; border: 1px solid #cfe7f4; border-radius: 6px; background: var(--ice); color: var(--blue-ink); padding: .4rem .65rem; font-size: .875rem; font-weight: 600; }
.merchant-cover { display: block; width: 100%; aspect-ratio: 856 / 482; object-fit: cover; margin-top: 27px; border-radius: 6px; }
.merchant-sidebar { grid-area: aside; display: grid; gap: 16px; min-width: 0; }
.merchant-brand-card { padding: clamp(15px, 2vw, 25px); border-radius: 17px; background: #fff; border: 1px solid #eeedf0; box-shadow: 2px 0 0 #1ca2fc18; }
.merchant-brand-meta { display: flex; justify-content: space-between; align-items: center; color: var(--blue-ink); margin-bottom: 15px; }
.logo-stage { display: grid; place-items: center; aspect-ratio: 16 / 9; min-width: 0; background: #f5f8fc; color: var(--ink); overflow: hidden; border-radius: 7px; }
.logo-stage img { width: min(64%, 285px); height: 65%; object-fit: contain; }
.logo-stage[data-brand="brasty"] { background: #f5edf0; }
.logo-stage[data-brand="click-and-grow"] { background: #e9f2e7; }
.logo-stage[data-brand="dhgate"] { background: #232f3f; color: #fff; }
.logo-stage[data-brand="dhgate"] img { width: auto; max-width: 65%; height: 57%; border-radius: 15%; }
.logo-stage span { font-weight: 700; font-size: clamp(1.2rem, 2.45vw, 2.5rem); padding: 0 .6rem; text-align: center; overflow-wrap: anywhere; }
.merchant-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-block: 22px 18px; }
.merchant-stats > div { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid #fee8d5; border-radius: 999px; background: #fff8f1; }
.metric-icon { width: 31px; height: 31px; font-size: .875rem; }
.merchant-stats strong, .merchant-stats small { display: block; line-height: 1.15; }
.merchant-stats small { font-size: .875rem; color: var(--muted); }
.merchant-cta { width: 100%; margin-bottom: 13px; }
.merchant-side-note, .merchant-about { padding: 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.merchant-side-note h2, .merchant-about h2 { font-size: 1.15rem; margin-bottom: 8px; }
.merchant-side-note p, .merchant-about p, .offer-terms { color: var(--muted); }
.merchant-deals { grid-area: deals; min-width: 0; }
.merchant-deals > h2 { margin-bottom: 16px; }
.merchant-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 13px; padding: 7px; background: #fff; border-radius: 10px; }
.merchant-filters label { position: relative; cursor: pointer; }
.merchant-filters input { position: absolute; inset: 0; opacity: 0; }
.merchant-filters span { display: block; padding: 7px 11px; border-radius: 6px; }
.merchant-filters input:checked + span { background: var(--ice); color: var(--blue-ink); font-weight: 600; }
.merchant-filters input:focus-visible + span { outline: 2px solid #176d9e; }
.section-status { margin-block: 9px; color: var(--muted); }
.merchant-offers { display: grid; gap: 15px; }
.merchant-about { margin-top: 19px; }

.coupon-card, .directory-card, .featured-store { display: grid; gap: 12px; height: 100%; padding: 17px; border: 1px solid #edf0f4; border-radius: 9px; background: #fff; min-width: 0; }
.offer-ticket .logo-stage { margin-inline: -7px; }
.offer-ticket .offer-card-heading { margin-block: 4px; }
.offer-title { font-size: clamp(1.15rem, 1.55vw, 1.45rem); }
.offer-card-heading .offer-store { color: var(--blue-ink); font-weight: 600; }
.offer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.offer-expiry, .offer-terms { display: block; font-size: .875rem; }
.offer-date { color: #784111; background: #fff7ef; border: 1px solid #fce6d1; border-radius: 5px; padding: .25rem .45rem; }
.offer-expiry { margin-top: 7px; color: var(--muted); }
.offer-ticket .offer-button { width: 100%; }
.merchant-offers .coupon-card { grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 20px; }
.merchant-offers .offer-meta { grid-column: 1 / -1; justify-content: flex-start; }
.merchant-offers .offer-terms { margin-top: 8px; }
.empty-list { background: #fff; color: var(--muted); border-radius: 10px; border: 1px solid var(--line); padding: 18px; }
.featured-store { color: inherit; }
.featured-store:hover, .directory-card a:hover { color: var(--blue-ink); }
.featured-store strong, .featured-store small { display: block; }
.featured-store small { color: var(--muted); }

.directory-hero > .container { min-height: 275px; display: grid; grid-template-columns: 1fr minmax(160px, 310px); align-items: center; gap: 20px; }
.directory-hero > .container > div { padding-block: 30px; }
.directory-hero img { display: block; align-self: end; width: 100%; max-height: 255px; object-fit: contain; object-position: center bottom; }
.directory-hero p { margin-top: 11px; color: var(--muted); }
.directory-hero .breadcrumb { margin: 20px 0 0; }
.directory-section { padding-block: clamp(32px, 8vw, 115px) 65px; }
.directory-toolbar, .directory-filters { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 14px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 20px; }
.directory-controls { display: flex; align-items: center; gap: 11px; }
.directory-controls label, .directory-filters label { font-weight: 600; }
.directory-controls select, .directory-filters select, .directory-filters input { padding: .6rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); min-width: 0; }
.view-toggle { display: flex; padding: 3px; border-radius: 999px; background: var(--ice); }
.view-toggle button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #26364c; }
.view-toggle button[aria-pressed="true"] { background: var(--blue); color: #092c42; }
.directory-filters { align-items: end; }
.directory-filters > div { flex: 1; min-width: 0; }
.directory-filters label { display: block; }
.directory-filters input, .directory-filters select { width: 100%; margin-top: 5px; }
.directory-card { grid-template-rows: auto auto minmax(0,1fr) auto; }
.directory-card .logo-stage { margin-inline: -8px; }
.directory-card h2 { font-size: 1.4rem; }
.directory-card .pill { width: 100%; }
.directory-card .store-count { color: var(--muted); font-size: .9rem; }
.directory-grid[data-view="list"] > div { width: 100%; }
.directory-grid[data-view="list"] .directory-card { grid-template-columns: minmax(110px, 210px) minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; }
.directory-grid[data-view="list"] .directory-card .directory-card-top { display: none; }
.directory-grid[data-view="list"] .directory-card .logo-stage { margin: 0; }
.directory-pagination { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 28px; }
.directory-pagination:empty { display: none; }
.directory-pagination a { padding: 8px 13px; border: 1px solid #d8e7f1; border-radius: 8px; background: white; color: var(--blue-ink); }
.directory-pagination a[aria-current="page"] { border-color: var(--blue); background: var(--blue); color: #102e46; font-weight: 700; }

.coupon-dialog { width: min(470px, 100% - 32px); max-height: calc(100% - 32px); padding: 25px; border-radius: 14px; border: 1px solid var(--line); background: white; color: var(--ink); }
.coupon-dialog::backdrop { background: #182a45aa; }
.close-form { text-align: right; margin: -12px -12px 0 0; }
.close-form button { padding: 5px 13px; border: 0; border-radius: 6px; background: var(--ice); font-size: 1.4rem; }
.coupon-dialog h2 { font-size: 1.5rem; margin-block: 7px 10px; }
.dialog-code { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px; border: 1px dashed #91a6bb; background: var(--ice); border-radius: 8px; }
.dialog-code input { flex: 1; min-width: 0; padding-inline: 8px; background: transparent; border: 0; font-weight: 700; color: var(--ink); }
.dialog-feedback { margin-block: 5px; color: var(--blue-ink); }
.dialog-feedback:empty { display: none; }
.dialog-visit { width: 100%; margin-top: 14px; }
.affiliate-caption { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.eyebrow { color: var(--blue-ink); font-weight: 600; }

@media (max-width: 900px) {
  .home-banners { grid-template-columns: 2fr 1fr; }
  .home-tiles-end { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .home-tiles-end .hero-tile { aspect-ratio: 416 / 238; }
  .hero-coupons .tile-copy { font-size: clamp(1.4rem, 4.5vw, 3rem); }
  .hero-stores .tile-copy, .hero-categories .tile-copy { font-size: clamp(1rem, 3.35vw, 2rem); }
  .home-main-copy h1 { font-size: clamp(1.6rem, 4.7vw, 3.5rem); }
  .merchant-stats { grid-template-columns: 1fr; }
  .directory-controls { flex-wrap: wrap; }
}
@media (max-width: 650px) {
  .theme-subpage::before, .theme-subpage[data-page="directory"]::before { top: 8px; left: 8px; right: 8px; height: 380px; }
  .top-header, .theme-subpage .top-header { min-height: 0; padding-block: 11px; gap: 11px; grid-template-columns: 1fr; }
  .brand { font-size: 1.7rem; }
  .brand-mark { transform: scale(.88); transform-origin: left; margin-right: -5px; }
  .header-cta, .nav-quick { display: none; }
  .nav-row { min-height: 48px; gap: 16px; font-size: .9rem; flex-wrap: wrap; }
  .home-banners { margin-top: 13px; grid-template-columns: 1fr 1fr; }
  .hero-main { grid-column: 1 / -1; }
  .hero-coupons { aspect-ratio: 1; }
  .home-tiles-end { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 9px; }
  .home-tiles-end .hero-tile { aspect-ratio: auto; width: 100%; }
  .hero-stores .tile-copy, .hero-categories .tile-copy { font-size: clamp(.85rem, 2.75vw, 1.15rem); }
  .hero-categories img { object-fit: fill; }
  .hero-outline { min-height: 36px; }
  .home-benefits { grid-template-columns: 1fr; gap: 8px; }
  .home-benefits > div { padding: 12px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .merchant-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: "lead" "aside" "deals"; gap: 18px; }
  .merchant-cover { margin-top: 17px; }
  .merchant-stats { grid-template-columns: 1fr 1fr; }
  .merchant-offers .coupon-card { grid-template-columns: minmax(0,1fr); }
  .merchant-offers .offer-button { width: 100%; }
  .directory-hero > .container { min-height: 225px; grid-template-columns: minmax(0,1fr) minmax(0, .72fr); gap: 8px; }
  .directory-hero p { line-height: 1.35; }
  .directory-toolbar, .directory-filters { padding: 12px; flex-wrap: wrap; align-items: start; }
  .directory-filters > div { min-width: 100%; }
  .directory-grid[data-view="list"] .directory-card { grid-template-columns: minmax(85px, 105px) minmax(0,1fr); }
  .directory-grid[data-view="list"] .directory-card .pill { grid-column: 1 / -1; }
}

.home-offer-block + .home-offer-block { margin-top: 34px; }
.home-offer-block > h3 { margin-bottom: 14px; font-size: 1.35rem; }

.logo-stage.logo-with-icon { display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 10px; }
.logo-stage.logo-with-icon img { width: 48px; height: 48px; border-radius: 9px; }
.logo-stage.logo-with-icon span { font-size: clamp(.95rem, 2vw, 1.65rem); }
