/*
Theme Name: Affiliate Deals Hub
Author: Your Team
Description: A fast, responsive affiliate coupon theme for networks, stores, coupons, product offers, editorial content, and hotel deals.
Version: 1.0.1
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: affiliate-deals-hub
Tags: blog, e-commerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --adh-ink: #152238;
  --adh-muted: #687386;
  --adh-primary: #ff5a5f;
  --adh-primary-dark: #e7464c;
  --adh-secondary: #0f315f;
  --adh-accent: #ffc857;
  --adh-surface: #ffffff;
  --adh-soft: #f4f7fb;
  --adh-border: #e3e8ef;
  --adh-success: #138a5b;
  --adh-shadow: 0 14px 38px rgba(22, 40, 70, .10);
  --adh-radius: 20px;
  --adh-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--adh-ink);
  background: #fff;
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: var(--adh-secondary); text-decoration: none; }
a:hover { color: var(--adh-primary); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.container { width: min(calc(100% - 36px), var(--adh-container)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; padding: 12px; background: #fff; color: #111; z-index: 999999; }
.skip-link:focus { top: 10px; left: 10px; position: fixed !important; }

.announcement-bar { background: var(--adh-secondary); color: #fff; font-size: 13px; text-align: center; padding: 8px 16px; }
.announcement-bar a { color: var(--adh-accent); font-weight: 800; margin-left: 8px; }
.site-header { position: sticky; z-index: 1000; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--adh-border); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.site-branding { flex: 0 0 auto; }
.custom-logo { max-height: 48px; width: auto; }
.site-title { margin: 0; font-size: 23px; font-weight: 900; letter-spacing: -.6px; color: var(--adh-ink); }
.site-title span { color: var(--adh-primary); }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; margin: 0; }
.primary-nav a { color: var(--adh-ink); font-weight: 700; font-size: 14px; }
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--adh-primary); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--adh-border); border-radius: 50%; display: grid; place-items: center; color: var(--adh-ink); background: #fff; }
.icon-button:hover { color: #fff; background: var(--adh-primary); border-color: var(--adh-primary); }
.icon-button svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }
.header-search { padding: 14px 0; border-top: 1px solid var(--adh-border); background: #fff; }
.header-search[hidden] { display: none; }
.search-form { display: flex; gap: 10px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 48px; border: 1px solid var(--adh-border); border-radius: 12px; padding: 0 16px; }
.search-submit { border: 0; border-radius: 12px; padding: 0 22px; background: var(--adh-primary); color: #fff; font-weight: 800; }

.hero { position: relative; overflow: hidden; padding: 88px 0 82px; background: linear-gradient(125deg, #0d2a53 0%, #163d70 57%, #1d5487 100%); color: #fff; }
.hero:before, .hero:after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); }
.hero:before { width: 420px; height: 420px; right: -120px; top: -190px; }
.hero:after { width: 260px; height: 260px; right: 20%; bottom: -170px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 68px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 15px; color: var(--adh-primary); font-size: 12px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; }
.hero .eyebrow { color: var(--adh-accent); }
.eyebrow:before { content: ""; width: 25px; height: 2px; background: currentColor; }
.hero h1 { max-width: 760px; margin: 0 0 20px; font-size: clamp(40px, 6vw, 70px); line-height: 1.04; letter-spacing: -2.8px; }
.hero-copy { max-width: 650px; color: #d8e3f2; font-size: 18px; }
.deal-search { display: flex; max-width: 650px; margin-top: 30px; padding: 7px; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.24); }
.deal-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 14px; color: var(--adh-ink); }
.deal-search button { border: 0; padding: 13px 24px; border-radius: 11px; background: var(--adh-primary); color: #fff; font-weight: 900; }
.hero-card { position: relative; padding: 30px; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; background: rgba(255,255,255,.11); box-shadow: 0 24px 70px rgba(0,0,0,.22); backdrop-filter: blur(10px); }
.hero-card .offer-label { color: var(--adh-accent); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.hero-card h2 { margin: 10px 0 8px; font-size: 31px; line-height: 1.15; }
.hero-card p { color: #d9e4f3; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 25px; }
.hero-stat { padding: 13px 8px; border-radius: 13px; background: rgba(255,255,255,.10); text-align: center; }
.hero-stat strong { display: block; color: var(--adh-accent); font-size: 22px; }
.hero-stat span { color: #d9e4f3; font-size: 11px; }

.section { padding: 76px 0; }
.section.soft { background: var(--adh-soft); }
.section.dark { background: var(--adh-secondary); color: #fff; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 32px; }
.section-heading h2 { margin: 3px 0 0; font-size: clamp(29px, 4vw, 43px); line-height: 1.15; letter-spacing: -1.2px; }
.section-heading p { max-width: 560px; margin: 0; color: var(--adh-muted); }
.dark .section-heading p { color: #cbd8e8; }
.text-link { white-space: nowrap; font-size: 14px; font-weight: 900; }
.dark .text-link { color: var(--adh-accent); }

.network-strip { padding: 24px 0; border-bottom: 1px solid var(--adh-border); background: #fff; }
.network-row { display: grid; grid-template-columns: 180px 1fr; gap: 26px; align-items: center; }
.network-row > strong { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--adh-muted); }
.network-logos { display: grid; grid-template-columns: repeat(6, minmax(100px, 1fr)); align-items: center; gap: 18px; }
.network-logo { min-height: 58px; display: grid; place-items: center; padding: 10px; border: 1px solid var(--adh-border); border-radius: 13px; background: #fff; transition: .2s ease; }
.network-logo:hover { transform: translateY(-3px); box-shadow: var(--adh-shadow); }
.network-logo img { max-height: 34px; width: auto; }
.network-logo span { font-weight: 900; color: var(--adh-ink); }

.powered-by { background: #fff; }
.powered-panel { position: relative; overflow: hidden; padding: 54px; border-radius: 30px; background: linear-gradient(135deg, #0b274a, var(--adh-secondary)); color: #fff; box-shadow: var(--adh-shadow); }
.powered-panel:after { content: ""; position: absolute; width: 320px; height: 320px; right: -130px; top: -170px; border-radius: 50%; background: rgba(255,255,255,.06); }
.powered-heading { position: relative; z-index: 1; max-width: 720px; margin: 0 auto 32px; text-align: center; }
.powered-heading .eyebrow { color: var(--adh-accent); }
.powered-heading h2 { margin: 2px 0 10px; color: #fff; font-size: clamp(30px, 4vw, 43px); line-height: 1.15; letter-spacing: -1.2px; }
.powered-heading p { margin: 0; color: #cbd8e8; }
.powered-network-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.powered-network-card { min-height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 15px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; background: #fff; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.powered-network-card:hover { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(0,0,0,.18); }
.powered-network-card img { max-width: 125px; max-height: 43px; width: auto; object-fit: contain; }
.powered-network-card strong { color: var(--adh-ink); font-size: 13px; line-height: 1.2; }
.powered-network-card small { color: var(--adh-muted); font-size: 10px; line-height: 1.2; }

.store-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.store-card { position: relative; min-width: 0; border: 1px solid var(--adh-border); border-radius: var(--adh-radius); background: #fff; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.store-card:hover { transform: translateY(-5px); box-shadow: var(--adh-shadow); }
.store-card__top { height: 118px; display: grid; place-items: center; padding: 22px; background: linear-gradient(145deg, #f7f9fc, #fff); border-bottom: 1px solid var(--adh-border); }
.store-card__top img { max-height: 70px; width: auto; }
.store-initial { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 18px; background: var(--adh-secondary); color: #fff; font-size: 27px; font-weight: 900; }
.store-card__body { padding: 20px; }
.store-card h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.25; }
.store-card p { margin: 0 0 16px; color: var(--adh-muted); font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: #e9f7f1; color: var(--adh-success); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.store-card__footer { display: flex; justify-content: space-between; align-items: center; }
.store-card__footer a { font-size: 13px; font-weight: 900; }

.category-row { display: flex; flex-wrap: wrap; gap: 11px; }
.category-chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border: 1px solid var(--adh-border); border-radius: 999px; background: #fff; color: var(--adh-ink); font-size: 13px; font-weight: 800; }
.category-chip:before { content: "#"; color: var(--adh-primary); }
.category-chip:hover { border-color: var(--adh-primary); box-shadow: 0 7px 20px rgba(255,90,95,.13); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--adh-border); border-radius: var(--adh-radius); background: #fff; transition: .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--adh-shadow); }
.product-card__media { position: relative; aspect-ratio: 1 / .84; overflow: hidden; background: #f5f7fa; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-badge { position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 8px; background: var(--adh-primary); color: #fff; font-size: 11px; font-weight: 900; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.product-store { color: var(--adh-primary); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }
.product-card h3 { margin: 6px 0 12px; font-size: 17px; line-height: 1.35; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.sale-price { color: var(--adh-ink); font-size: 20px; font-weight: 900; }
.regular-price { color: var(--adh-muted); font-size: 13px; text-decoration: line-through; }
.card-button { display: block; margin-top: 15px; padding: 11px 14px; border-radius: 11px; background: var(--adh-secondary); color: #fff; text-align: center; font-size: 13px; font-weight: 900; }
.card-button:hover { background: var(--adh-primary); color: #fff; }

.coupon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.coupon-card { position: relative; padding: 22px; border: 1px solid var(--adh-border); border-left: 4px solid var(--adh-primary); border-radius: 16px; background: #fff; }
.coupon-card:after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 1px solid var(--adh-border); border-radius: 50%; background: var(--adh-soft); }
.coupon-card h3 { margin: 10px 0 8px; font-size: 18px; line-height: 1.35; }
.coupon-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--adh-muted); font-size: 12px; }
.verified { color: var(--adh-success); font-weight: 800; }
.coupon-action { display: flex; gap: 9px; margin-top: 18px; }
.coupon-button { flex: 1; min-height: 45px; border: 0; border-radius: 10px; padding: 10px 15px; background: var(--adh-primary); color: #fff; font-size: 13px; font-weight: 900; }
.coupon-button:hover { background: var(--adh-primary-dark); }
.coupon-code { position: relative; overflow: hidden; background: var(--adh-secondary); letter-spacing: .6px; }
.coupon-code:after { content: "COPY"; position: absolute; right: 0; top: 0; bottom: 0; display: grid; place-items: center; width: 52px; background: #0a274b; font-size: 9px; }
.coupon-terms { margin: 13px 0 0; color: var(--adh-muted); font-size: 12px; }

.hotel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; }
.hotel-card { overflow: hidden; border-radius: var(--adh-radius); background: #fff; color: var(--adh-ink); box-shadow: 0 15px 38px rgba(0,0,0,.14); }
.hotel-card__image { position: relative; aspect-ratio: 1.42; background: #dfe6ee; }
.hotel-card__image img { width: 100%; height: 100%; object-fit: cover; }
.hotel-label { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 8px; background: var(--adh-accent); color: #2d2513; font-size: 11px; font-weight: 900; }
.hotel-card__body { padding: 20px; }
.hotel-card h3 { margin: 4px 0 8px; font-size: 20px; }
.hotel-location { color: var(--adh-muted); font-size: 13px; }
.hotel-rating { color: #e2a90a; letter-spacing: 2px; }
.hotel-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-top: 17px; }
.hotel-price strong { display: block; font-size: 21px; }
.hotel-price del { color: var(--adh-muted); font-size: 12px; }
.small-button { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 8px 14px; border-radius: 9px; background: var(--adh-primary); color: #fff; font-size: 12px; font-weight: 900; }
.small-button:hover { color: #fff; background: var(--adh-primary-dark); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; border: 1px solid var(--adh-border); border-radius: var(--adh-radius); background: #fff; }
.post-card__media { aspect-ratio: 1.7; background: var(--adh-soft); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px; }
.post-card__meta { color: var(--adh-primary); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.post-card h3 { margin: 8px 0 10px; font-size: 20px; line-height: 1.35; }
.post-card p { margin: 0; color: var(--adh-muted); font-size: 14px; }

.trust-band { padding: 44px 0; background: #fff; border-top: 1px solid var(--adh-border); border-bottom: 1px solid var(--adh-border); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.trust-item { display: grid; grid-template-columns: 48px 1fr; gap: 15px; align-items: center; }
.trust-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #fff0f0; color: var(--adh-primary); font-size: 20px; font-weight: 900; }
.trust-item strong { display: block; }
.trust-item span { color: var(--adh-muted); font-size: 13px; }

.page-hero { padding: 54px 0; background: var(--adh-soft); border-bottom: 1px solid var(--adh-border); }
.breadcrumb { margin-bottom: 15px; color: var(--adh-muted); font-size: 12px; }
.breadcrumb a { font-weight: 700; }
.page-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.1; letter-spacing: -1.6px; }
.archive-description { max-width: 720px; color: var(--adh-muted); }

.store-hero { padding: 54px 0; background: linear-gradient(135deg, var(--adh-soft), #fff); border-bottom: 1px solid var(--adh-border); }
.store-hero__grid { display: grid; grid-template-columns: 120px 1fr auto; gap: 28px; align-items: center; }
.store-logo-large { width: 120px; height: 120px; display: grid; place-items: center; padding: 18px; border: 1px solid var(--adh-border); border-radius: 25px; background: #fff; box-shadow: var(--adh-shadow); }
.store-logo-large img { max-height: 82px; width: auto; }
.store-hero h1 { margin: 3px 0 8px; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; }
.store-hero p { max-width: 650px; margin: 0; color: var(--adh-muted); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 0; border-radius: 12px; background: var(--adh-primary); color: #fff; font-weight: 900; }
.primary-button:hover { background: var(--adh-primary-dark); color: #fff; }
.secondary-button { background: var(--adh-secondary); }
.store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; }
.offer-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.offer-tab { padding: 9px 15px; border: 1px solid var(--adh-border); border-radius: 999px; background: #fff; color: var(--adh-muted); font-size: 13px; font-weight: 900; }
.offer-tab.is-active { border-color: var(--adh-secondary); background: var(--adh-secondary); color: #fff; }
.store-coupons { display: grid; gap: 16px; }
.store-coupons .coupon-card { display: grid; grid-template-columns: 78px minmax(0, 1fr) 165px; gap: 20px; align-items: center; border-left-width: 1px; }
.store-coupons .coupon-discount { width: 78px; min-height: 70px; display: grid; place-items: center; padding: 10px; border-radius: 13px; background: #fff0f0; color: var(--adh-primary); text-align: center; font-size: 17px; line-height: 1.12; font-weight: 900; }
.store-coupons .coupon-card h3 { margin-top: 0; }
.store-coupons .coupon-action { margin: 0; }
.coupon-card[hidden] { display: none; }
.sidebar-box { margin-bottom: 20px; padding: 24px; border: 1px solid var(--adh-border); border-radius: var(--adh-radius); background: #fff; }
.sidebar-box h2, .sidebar-box h3 { margin-top: 0; font-size: 19px; }
.sidebar-box p { color: var(--adh-muted); font-size: 14px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 7px 0 7px 24px; font-size: 13px; }
.check-list li:before { content: "✓"; position: absolute; left: 0; color: var(--adh-success); font-weight: 900; }
.store-content { margin-top: 45px; padding-top: 40px; border-top: 1px solid var(--adh-border); }
.store-content h2 { margin-top: 34px; font-size: 28px; }
.store-content h3 { margin-top: 28px; }
.store-products { margin-top: 50px; }
.faq-list details { padding: 17px 0; border-bottom: 1px solid var(--adh-border); }
.faq-list summary { cursor: pointer; font-weight: 800; }
.faq-list p { color: var(--adh-muted); }

.content-area { padding: 70px 0; }
.content-narrow { max-width: 820px; margin: 0 auto; }
.entry-content { font-size: 17px; }
.entry-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1120px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 42px; line-height: 1.2; }
.entry-content a { color: var(--adh-primary); text-decoration: underline; }
.entry-content img { border-radius: 16px; }
.entry-meta { margin: 12px 0 30px; color: var(--adh-muted); font-size: 13px; }
.featured-image { margin-bottom: 35px; border-radius: 22px; overflow: hidden; }
.comments-area { margin-top: 55px; padding-top: 35px; border-top: 1px solid var(--adh-border); }
.comment-list { padding-left: 24px; }
.comment-list li { margin: 20px 0; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; border: 1px solid var(--adh-border); border-radius: 10px; padding: 11px 13px; }
.comment-form input[type="submit"] { border: 0; border-radius: 10px; padding: 11px 18px; background: var(--adh-primary); color: #fff; font-weight: 800; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--adh-border); border-radius: 9px; font-weight: 800; }
.pagination .current { background: var(--adh-primary); border-color: var(--adh-primary); color: #fff; }
.empty-state { padding: 35px; border: 1px dashed #c9d1dc; border-radius: var(--adh-radius); color: var(--adh-muted); text-align: center; }

.newsletter { padding: 54px 0; background: var(--adh-primary); color: #fff; }
.newsletter-inner { display: grid; grid-template-columns: 1fr .85fr; gap: 50px; align-items: center; }
.newsletter h2 { margin: 0 0 7px; font-size: 34px; }
.newsletter p { margin: 0; color: #ffe8e8; }
.newsletter-form { display: flex; padding: 6px; border-radius: 14px; background: #fff; }
.newsletter-form input { flex: 1; min-width: 0; border: 0; padding: 0 14px; outline: 0; }
.newsletter-form button { border: 0; border-radius: 10px; padding: 12px 18px; background: var(--adh-secondary); color: #fff; font-weight: 900; }

.site-footer { padding: 65px 0 22px; background: #091f3d; color: #c5d2e2; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, .75fr); gap: 45px; }
.footer-brand { max-width: 370px; }
.footer-brand .site-title { color: #fff; }
.footer-brand p { font-size: 14px; }
.site-footer h3 { margin-top: 0; color: #fff; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #c5d2e2; font-size: 13px; }
.site-footer a:hover { color: var(--adh-accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 45px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.affiliate-note { max-width: 760px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 2000; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 10px; background: #10233f; color: #fff; box-shadow: var(--adh-shadow); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 13px; font-weight: 800; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.not-found { text-align: center; padding: 110px 20px; }
.not-found strong { display: block; color: var(--adh-primary); font-size: 100px; line-height: 1; }

@media (max-width: 1020px) {
  .primary-nav { position: fixed; left: 0; right: 0; top: 77px; padding: 22px; background: #fff; border-bottom: 1px solid var(--adh-border); transform: translateY(-130%); transition: .25s ease; z-index: -1; }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul { display: grid; gap: 16px; }
  .menu-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-card { max-width: 620px; }
  .network-row { grid-template-columns: 1fr; }
  .network-logos { grid-template-columns: repeat(3, 1fr); }
  .powered-network-grid { grid-template-columns: repeat(3, 1fr); }
  .store-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .coupon-grid { grid-template-columns: repeat(2, 1fr); }
  .hotel-grid { grid-template-columns: repeat(2, 1fr); }
  .store-layout { grid-template-columns: 1fr; }
  .store-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer-grid > :last-child { grid-column: 2 / 4; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  .hero { padding: 64px 0; }
  .hero h1 { letter-spacing: -1.7px; }
  .section { padding: 58px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .store-hero__grid { grid-template-columns: 90px 1fr; }
  .store-logo-large { width: 90px; height: 90px; }
  .store-hero__grid > .primary-button { grid-column: 1 / 3; }
  .store-coupons .coupon-card { grid-template-columns: 68px 1fr; }
  .store-coupons .coupon-action { grid-column: 1 / 3; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 24px; }
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 26px), var(--adh-container)); }
  .site-title { font-size: 20px; }
  .header-inner { min-height: 68px; gap: 12px; }
  .primary-nav { top: 69px; }
  .hero { padding: 52px 0; }
  .hero h1 { font-size: 39px; }
  .hero-copy { font-size: 16px; }
  .deal-search { display: grid; padding: 8px; }
  .deal-search input { min-height: 46px; }
  .hero-card { padding: 23px; }
  .hero-stats { grid-template-columns: 1fr; }
  .network-logos { display: flex; overflow-x: auto; padding-bottom: 8px; }
  .network-logo { min-width: 135px; }
  .powered-panel { padding: 36px 20px; }
  .powered-network-grid { grid-template-columns: repeat(2, 1fr); }
  .store-grid, .product-grid, .coupon-grid, .hotel-grid, .post-grid { grid-template-columns: 1fr; }
  .store-sidebar { grid-template-columns: 1fr; }
  .store-hero__grid { grid-template-columns: 72px 1fr; gap: 17px; }
  .store-logo-large { width: 72px; height: 72px; border-radius: 18px; padding: 12px; }
  .store-hero h1 { font-size: 29px; }
  .store-coupons .coupon-card { display: block; }
  .store-coupons .coupon-discount { width: auto; min-height: 0; display: inline-flex; margin-bottom: 13px; }
  .store-coupons .coupon-action { margin-top: 18px; }
  .newsletter-form { display: grid; gap: 7px; }
  .newsletter-form input { min-height: 45px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / 3; }
  .footer-bottom { flex-direction: column; }
}
