/*
Theme Name: Promo by WPLogist
Theme URI: https://wplogist.com/
Author: WPLogist
Author URI: https://wplogist.com/
Description: A fast, accessible affiliate deals and coupon theme with store and category filtering.
Version: 1.0.1
Requires at least: 6.4
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: promo-by-wplogist
Tags: blog, e-commerce, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --promo-ink: #17211b;
  --promo-muted: #617066;
  --promo-surface: #fff;
  --promo-soft: #f3f7f2;
  --promo-line: #dfe8df;
  --promo-brand: #126c47;
  --promo-brand-dark: #0a4d32;
  --promo-accent: #ffcb45;
  --promo-danger: #a33a2c;
  --promo-background: #fbfcfa;
  --promo-radius: 18px;
  --promo-shadow: 0 14px 40px rgba(24, 57, 39, .09);
  --promo-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--promo-ink); background: var(--promo-background); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--promo-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--promo-brand-dark); }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--promo-accent); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 9999; width: auto; height: auto; padding: .65rem 1rem; clip: auto; background: #fff; }
.container { width: min(calc(100% - 32px), var(--promo-container)); margin-inline: auto; }
.site-main { min-height: 55vh; }

.site-header { position: relative; z-index: 100; color: var(--promo-ink); border-bottom: 1px solid var(--promo-line); background: #f7faf6; box-shadow: 0 8px 28px rgba(24,57,39,.06); }
.site-header a, .site-header button, .site-header input, .site-header select { font-family: inherit; }
.header-topbar { min-height: 42px; color: #eaf5ed; background: linear-gradient(100deg, var(--promo-brand-dark), var(--promo-brand) 70%, var(--promo-brand-dark)); }
.header-topbar-inner { display: grid; min-height: 42px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; font-size: .8rem; font-weight: 650; }
.topbar-store-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; color: #fff; text-decoration: none; }
.topbar-store-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.topbar-offer { margin: 0; padding: 4px 14px; color: #26351f; border-radius: 999px; background: var(--promo-accent); font-weight: 800; text-align: center; }
.topbar-secure, .social-navigation { justify-self: end; color: #eaf5ed; }
.social-menu { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; }
.social-menu a { color: #fff; text-decoration: none; }
.header-main-row { padding: 20px 0 12px; border: 0; background: #f7faf6; }
.header-main-inner { display: flex; min-height: 84px; align-items: center; gap: clamp(16px,2.4vw,32px); padding: 14px 18px; border: 1px solid #e0e9df; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(24,57,39,.07); }
.site-branding { display: flex; min-width: max-content; align-items: center; }
.custom-logo { display: block; max-width: 190px; max-height: 56px; width: auto; }
.site-title { display: inline-flex; align-items: center; gap: 9px; color: var(--promo-ink); font-size: 1.65rem; font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { display: grid; width: 45px; height: 45px; place-items: center; color: #463600; border-radius: 14px 14px 14px 4px; background: var(--promo-accent); font-size: 1.2rem; box-shadow: 5px 5px 0 #dcecdf; }
.header-deal-search { display: flex; min-width: 280px; max-width: 650px; height: 52px; flex: 1; align-items: center; overflow: hidden; border: 2px solid #dce8de; border-radius: 14px; background: #fbfdfb; transition: border-color .2s, box-shadow .2s; }
.header-deal-search:focus-within { border-color: var(--promo-brand); box-shadow: 0 0 0 4px rgba(18,108,71,.1); }
.header-deal-search select { width: 190px; height: 100%; padding: 0 18px; color: #293650; border: 0; border-right: 1px solid #e2e6ea; background: #fff; font-weight: 650; }
.header-deal-search input[type="search"] { min-width: 80px; height: 100%; flex: 1; padding: 0 22px; border: 0; outline: 0; }
.header-deal-search button { min-width: 108px; height: 40px; margin-right: 5px; color: #fff; border: 0; border-radius: 10px; background: var(--promo-brand); font-weight: 750; }
.header-deal-search button:hover { background: var(--promo-brand-dark); }
.header-contact { display: flex; min-width: max-content; align-items: center; gap: 12px; }
.header-contact-icon { display: grid; width: 45px; height: 45px; place-items: center; border: 0; border-radius: 13px; background: #edf7ef; }
.header-contact-icon svg { width: 24px; height: 24px; fill: none; stroke: #293650; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-contact strong, .header-contact small { display: block; }
.header-contact strong { font-size: .92rem; }
.header-contact small { color: #68738a; font-size: .82rem; }
.header-account-actions { display: flex; gap: 8px; padding-left: 14px; border-left: 1px solid var(--promo-line); }
.header-account-actions a { display: grid; width: 40px; height: 40px; place-items: center; color: var(--promo-brand); border-radius: 11px; background: #f0f7f1; transition: color .2s, background .2s; }
.header-account-actions a:hover { color: #fff; background: var(--promo-brand); }
.header-account-actions svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-navigation-row { padding-bottom: 10px; background: #f7faf6; }
.header-navigation-inner { display: flex; min-height: 54px; align-items: center; gap: 24px; }
.main-navigation { min-width: 0; }
.primary-menu { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.primary-menu li { position: relative; }
.primary-menu a { display: block; padding: 9px 14px; color: #435148; border-radius: 10px; font-size: .92rem; font-weight: 700; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--promo-brand); background: #eaf4ec; }
.primary-menu .menu-item-has-children > a::after { content: "⌄"; margin-left: 6px; }
.primary-menu .sub-menu { display: none; position: absolute; top: 100%; left: -14px; min-width: 210px; margin: 0; padding: 12px; border: 1px solid var(--promo-line); border-radius: 10px; background: #fff; box-shadow: var(--promo-shadow); list-style: none; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { padding: 8px 10px; }
.menu-toggle { display: none; width: 44px; height: 42px; padding: 9px; border: 1px solid var(--promo-line); border-radius: 9px; background: #fff; }
.menu-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: #293650; }

@media (max-width: 1100px) {
  .header-main-inner { gap: 18px; }
  .header-contact { display: none; }
  .header-deal-search select { width: 165px; }
}

.hero { overflow: hidden; padding: clamp(58px, 8vw, 104px) 0; background: radial-gradient(circle at 82% 18%, rgba(255,203,69,.36), transparent 25%), linear-gradient(135deg, #e7f6eb, #f8fbf3); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 52px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--promo-brand); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0 0 18px; font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy { max-width: 660px; color: var(--promo-muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.deal-search { display: flex; gap: 10px; max-width: 650px; margin-top: 28px; padding: 8px; border: 1px solid var(--promo-line); border-radius: 16px; background: #fff; box-shadow: var(--promo-shadow); }
.deal-search input { min-width: 0; flex: 1; padding: .75rem; border: 0; background: transparent; }
.button, .wp-element-button, input[type="submit"] { display: inline-flex; justify-content: center; align-items: center; padding: .78rem 1.15rem; color: #fff; border: 0; border-radius: 12px; background: var(--promo-brand); font-weight: 750; line-height: 1.2; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover, .wp-element-button:hover, input[type="submit"]:hover { color: #fff; background: var(--promo-brand-dark); transform: translateY(-1px); }
.button-secondary { color: var(--promo-brand); border: 1px solid var(--promo-brand); background: transparent; }
.hero-card { padding: 28px; border: 1px solid rgba(18,108,71,.12); border-radius: 30px; background: rgba(255,255,255,.75); box-shadow: var(--promo-shadow); transform: rotate(2deg); }
.hero-card strong { display: block; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; }
.hero-card span { color: var(--promo-muted); }

.offer-slider-section { padding: clamp(46px,6vw,76px) 0; background: #fff; }
.offer-slider-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.offer-slider-heading h2 { margin: 0; font-size: clamp(1.7rem,3.5vw,2.7rem); line-height: 1.1; letter-spacing: -.035em; }
.offer-slider-controls { display: flex; gap: 8px; }
.offer-slider-arrow { display: grid; width: 43px; height: 43px; place-items: center; color: var(--promo-brand); border: 1px solid var(--promo-line); border-radius: 12px; background: #fff; font-size: 1.1rem; transition: color .2s, background .2s, transform .2s; }
.offer-slider-arrow:hover { color: #fff; border-color: var(--promo-brand); background: var(--promo-brand); transform: translateY(-2px); }
.offer-slider { position: relative; overflow: hidden; border-radius: 26px 26px 26px 8px; background: var(--promo-brand-dark); box-shadow: 0 20px 55px rgba(24,57,39,.16); }
.offer-slider-track { position: relative; min-height: clamp(350px,38vw,475px); }
.offer-slide { position: absolute; inset: 0; display: grid; visibility: hidden; grid-template-columns: minmax(0,.95fr) minmax(320px,1.05fr); opacity: 0; transform: translateX(28px); transition: opacity .45s ease, transform .45s ease, visibility .45s; }
.offer-slide.is-active { visibility: visible; opacity: 1; transform: translateX(0); }
.offer-slide-content { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: clamp(32px,5vw,68px); color: #fff; background: radial-gradient(circle at 0 0,rgba(255,203,69,.17),transparent 40%),linear-gradient(120deg,var(--promo-brand-dark),var(--promo-brand)); }
.offer-slide-content::after { content: ""; position: absolute; top: 0; right: -70px; width: 140px; height: 100%; background: inherit; transform: skewX(-9deg); transform-origin: top; }
.offer-slide-store { position: relative; z-index: 1; margin-bottom: 12px; color: #cce6d3; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.offer-slide-discount { position: relative; z-index: 1; display: inline-flex; margin-bottom: 10px; padding: 5px 10px; color: #493800; border-radius: 7px; background: var(--promo-accent); font-size: .78rem; }
.offer-slide h3 { position: relative; z-index: 1; max-width: 590px; margin: 0 0 12px; color: #fff; font-size: clamp(1.8rem,4vw,3.5rem); line-height: 1.02; letter-spacing: -.045em; }
.offer-slide-content > p { position: relative; z-index: 1; max-width: 540px; margin: 0 0 16px; color: #d6e9db; }
.offer-slide-price { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.offer-slide-price strong { color: #fff; font-size: 1.55rem; }
.offer-slide-price del { color: #a9c9b1; }
.offer-slide-button { position: relative; z-index: 1; color: #3f3100; background: var(--promo-accent); }
.offer-slide-button:hover { color: #fff; }
.offer-slide-button span { margin-left: 8px; }
.offer-slide-visual { position: relative; overflow: hidden; background: #dcecdf; }
.offer-slide-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(10,77,50,.22),transparent 45%); }
.offer-slide-visual img { width: 100%; height: 100%; object-fit: cover; }
.offer-slide-visual > span { display: grid; height: 100%; place-items: center; color: rgba(18,108,71,.18); font-size: clamp(8rem,20vw,18rem); font-weight: 900; }
.offer-slider-dots { position: absolute; right: 22px; bottom: 20px; z-index: 5; display: flex; gap: 7px; padding: 8px 10px; border-radius: 999px; background: color-mix(in srgb,var(--promo-brand-dark) 75%,transparent); backdrop-filter: blur(8px); }
.offer-slider-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); transition: width .2s, background .2s; }
.offer-slider-dots button.is-active { width: 25px; background: var(--promo-accent); }

.affiliate-banner-section { padding: 18px 0 clamp(54px,7vw,86px); background: #fff; }
.affiliate-banner-slider { position: relative; overflow: hidden; border: 1px solid var(--promo-line); border-radius: 22px; background: var(--promo-soft); box-shadow: var(--promo-shadow); }
.affiliate-banner-track { position: relative; min-height: 0; transition: height .35s ease; }
.affiliate-banner-slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; transform: scale(1.015); transition: opacity .4s ease, transform .5s ease, visibility .4s; }
.affiliate-banner-slide.is-active { position: relative; visibility: visible; opacity: 1; transform: scale(1); }
.affiliate-banner-slide a { display: block; width: 100%; }
.affiliate-banner-image { display: block; width: 100%; height: auto; }
.affiliate-banner-arrow { position: absolute; top: 50%; z-index: 4; display: grid; width: 44px; height: 44px; place-items: center; color: var(--promo-brand); border: 0; border-radius: 13px; background: rgba(255,255,255,.92); box-shadow: 0 5px 18px rgba(0,0,0,.16); transform: translateY(-50%); }
.affiliate-banner-arrow:hover { color: #fff; background: var(--promo-brand); }
.affiliate-banner-prev { left: 16px; }
.affiliate-banner-next { right: 16px; }
.affiliate-banner-dots { position: absolute; left: 50%; bottom: 13px; z-index: 4; display: flex; gap: 6px; padding: 7px 9px; border-radius: 999px; background: color-mix(in srgb,var(--promo-brand-dark) 75%,transparent); transform: translateX(-50%); backdrop-filter: blur(7px); }
.affiliate-banner-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); }
.affiliate-banner-dots button.is-active { background: var(--promo-accent); box-shadow: 0 0 0 2px rgba(255,203,69,.3); }

.section { padding: clamp(54px, 7vw, 88px) 0; }
.section-soft { background: var(--promo-soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h1, .section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.035em; }
.section-heading p { max-width: 620px; margin: 8px 0 0; color: var(--promo-muted); }
.text-link { font-weight: 750; white-space: nowrap; }
.deal-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.deal-card { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--promo-line); border-radius: var(--promo-radius); background: var(--promo-surface); box-shadow: 0 4px 20px rgba(24,57,39,.04); transition: transform .2s, box-shadow .2s; }
.deal-card:hover { transform: translateY(-4px); box-shadow: var(--promo-shadow); }
.deal-layout-list { grid-template-columns: 1fr; }
.deal-layout-list .deal-card { display: grid; grid-template-columns: minmax(220px, 30%) minmax(0,1fr); }
.deal-layout-list .deal-card-media { height: 100%; aspect-ratio: auto; }
.deal-layout-list .deal-card-body { min-height: 250px; }
.deal-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #edf3ed; }
.deal-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.deal-card:hover .deal-card-media img { transform: scale(1.035); }
.deal-placeholder { display: grid; height: 100%; place-items: center; color: var(--promo-brand); font-size: 2rem; font-weight: 900; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: .35rem .65rem; color: #553f00; border-radius: 999px; background: var(--promo-accent); font-size: .75rem; font-weight: 850; }
.deal-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.deal-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--promo-muted); font-size: .8rem; font-weight: 650; }
.deal-card h2, .deal-card h3 { margin: 10px 0 8px; font-size: 1.25rem; line-height: 1.25; }
.deal-card h2 a, .deal-card h3 a { color: var(--promo-ink); text-decoration: none; }
.deal-excerpt { margin: 0 0 18px; color: var(--promo-muted); font-size: .93rem; }
.deal-pricing { display: flex; align-items: baseline; gap: 9px; margin-top: auto; margin-bottom: 16px; }
.deal-price { font-size: 1.35rem; font-weight: 850; }
.deal-old-price { color: var(--promo-muted); font-size: .9rem; text-decoration: line-through; }
.deal-actions { display: flex; gap: 9px; }
.deal-actions .button { flex: 1; }
.coupon-button { overflow: hidden; position: relative; border: 1px dashed var(--promo-brand); background: #eef8f1; color: var(--promo-brand); }
.coupon-button:hover { color: #fff; }
.coupon-reveal-control { position: relative; display: flex; min-width: 0; flex: 1; align-items: stretch; }
.coupon-button-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.coupon-button-label { margin-left: 7px; }
.coupon-button.is-revealed, .coupon-button.is-revealed:disabled { color: var(--promo-brand); border-style: dashed; background: #fff; opacity: 1; cursor: default; }
.coupon-copy-icon { position: relative; display: inline-grid; width: 44px; min-height: 42px; flex: 0 0 44px; place-items: center; margin-left: 7px; color: var(--promo-brand); border: 1px solid var(--promo-line); border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(24,57,39,.08); }
.coupon-copy-icon[hidden] { display: none; }
.coupon-copy-icon:hover, .coupon-copy-icon.is-copied { color: #fff; border-color: var(--promo-brand); background: var(--promo-brand); }
.coupon-copy-status { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: 210px; padding: 7px 10px; color: #fff; border-radius: 7px; background: var(--promo-ink); font-size: .78rem; font-weight: 700; line-height: 1.2; box-shadow: 0 5px 15px rgba(0,0,0,.16); pointer-events: none; animation: promo-copy-feedback .18s ease-out; }
.coupon-copy-status[hidden] { display: none; }
@keyframes promo-copy-feedback { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.term-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.term-card { display: flex; min-height: 180px; flex-direction: column; justify-content: end; padding: 20px; color: var(--promo-ink); border: 1px solid var(--promo-line); border-radius: 16px; background: #fff; text-decoration: none; }
.term-card:hover { border-color: var(--promo-brand); }
.term-card strong { font-size: 1.1rem; }
.term-card small { color: var(--promo-muted); }
.term-card-media { display: grid; min-height: 80px; flex: 1; place-items: center; margin-bottom: 14px; }
.term-card-image { display: block; width: 100%; max-width: 130px; height: 70px; object-fit: contain; }

.archive-header { padding: 55px 0 32px; background: var(--promo-soft); }
.archive-header h1 { margin: 0 0 8px; font-size: clamp(2rem,5vw,3.8rem); line-height: 1.05; letter-spacing: -.04em; }
.archive-description { max-width: 720px; color: var(--promo-muted); }
.taxonomy-header-inner { display: flex; align-items: center; gap: 28px; }
.store-archive-media { display: grid; width: 150px; height: 150px; flex: 0 0 150px; place-items: center; padding: 20px; border: 1px solid var(--promo-line); border-radius: 22px; background: #fff; }
.store-archive-image { width: 100%; height: 100%; object-fit: contain; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; padding: 16px; border: 1px solid var(--promo-line); border-radius: 16px; background: #fff; }
.filter-bar select, .filter-bar input { min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--promo-line); border-radius: 10px; background: #fff; }
.empty-state { grid-column: 1/-1; padding: 48px; border: 1px dashed var(--promo-line); border-radius: var(--promo-radius); background: #fff; text-align: center; }
.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; min-width: 42px; min-height: 42px; place-items: center; padding: 4px 10px; border: 1px solid var(--promo-line); border-radius: 10px; background: #fff; text-decoration: none; }
.page-numbers.current { color: #fff; border-color: var(--promo-brand); background: var(--promo-brand); }

.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; }
.entry-card { padding: clamp(22px,4vw,48px); border: 1px solid var(--promo-line); border-radius: var(--promo-radius); background: #fff; }
.entry-title { margin-top: 0; font-size: clamp(2rem,5vw,3.7rem); line-height: 1.05; letter-spacing: -.04em; }
.entry-content > * { max-width: 760px; }
.entry-content > .alignwide { max-width: 1040px; }
.entry-content > .alignfull { max-width: none; }
.entry-content blockquote { margin-inline: 0; padding-left: 20px; border-left: 4px solid var(--promo-brand); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--promo-line); text-align: left; }
.deal-panel { margin: 24px 0; padding: 24px; border: 1px solid #cfe3d4; border-radius: 18px; background: #f1faf3; }
.deal-panel-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.coupon-display { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px dashed var(--promo-brand); border-radius: 12px; background: #fff; }
.coupon-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 850; letter-spacing: .06em; }
.affiliate-disclosure { padding: 12px 14px; color: #6c5410; border-radius: 10px; background: #fff8df; font-size: .83rem; }
.sidebar .widget { margin-bottom: 20px; padding: 22px; border: 1px solid var(--promo-line); border-radius: 16px; background: #fff; }
.widget-title { margin-top: 0; font-size: 1.05rem; }
.widget ul { padding-left: 18px; }

.site-footer { position: relative; margin-top: 70px; color: #dce9df; background: var(--promo-brand-dark); }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg,var(--promo-accent) 0 22%,#43b47c 22% 55%,#fff 55% 58%,#43b47c 58%); }
.site-footer a { color: #fff; }
.footer-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 58px 0 32px; border-bottom: 1px solid rgba(255,255,255,.13); }
.footer-brand-link { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 1.8rem; font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
.footer-brand-link:hover { color: var(--promo-accent); }
.footer-brand-mark { display: grid; width: 48px; height: 48px; place-items: center; color: #3f3100; border-radius: 15px 15px 15px 4px; background: var(--promo-accent); box-shadow: 5px 5px 0 rgba(255,255,255,.14); }
.footer-brand p { max-width: 520px; margin: 8px 0 0; color: #bcd3c4; font-size: .9rem; }
.footer-social-navigation { display: flex; align-items: center; gap: 18px; }
.footer-social-navigation > span { color: #bcd3c4; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.footer-social-menu { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.footer-social-menu a { display: grid; min-width: 38px; min-height: 38px; place-items: center; padding: 5px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.07); font-size: .75rem; font-weight: 750; text-decoration: none; }
.footer-social-menu a:hover { color: #3f3100; border-color: var(--promo-accent); background: var(--promo-accent); }
.footer-content-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.15fr; gap: clamp(28px,4vw,62px); padding: 46px 0 42px; }
.footer-column h2, .footer-partner-card h2, .site-footer .widget-title { margin: 0 0 18px; color: #fff; font-size: 1rem; }
.footer-column .widget { margin: 0; }
.footer-column .widget ul, .footer-link-list { margin: 0; padding: 0; list-style: none; }
.footer-column .widget li, .footer-link-list li { margin-bottom: 11px; }
.footer-column .widget a, .footer-link-list a { color: #c9dbce; text-decoration: none; }
.footer-column .widget a:hover, .footer-link-list a:hover { color: var(--promo-accent); }
.footer-link-list a { display: flex; justify-content: space-between; gap: 10px; }
.footer-link-list a span { display: grid; min-width: 25px; height: 25px; place-items: center; color: #dce9df; border-radius: 999px; background: rgba(255,255,255,.09); font-size: .7rem; }
.footer-partner-card { position: relative; overflow: hidden; padding: 27px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px 20px 20px 6px; background: linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.05)); box-shadow: 0 16px 35px rgba(0,0,0,.12); }
.footer-partner-card::after { content: "%"; position: absolute; right: -10px; bottom: -45px; color: rgba(255,255,255,.055); font-size: 9rem; font-weight: 900; line-height: 1; transform: rotate(-12deg); }
.footer-card-kicker { display: inline-block; margin-bottom: 8px; color: var(--promo-accent); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.footer-partner-card h2 { font-size: 1.35rem; }
.footer-partner-card p { position: relative; z-index: 1; margin: 0 0 20px; color: #c9dbce; font-size: .9rem; }
.footer-cta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; color: #3d3000 !important; border-radius: 10px; background: var(--promo-accent); font-weight: 800; text-decoration: none; }
.footer-cta:hover { background: #ffdb72; }
.footer-trust-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px 16px 0 0; background: rgba(255,255,255,.07); }
.footer-trust-item { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 6px 12px; color: #e6f1e9; font-size: .8rem; text-align: center; }
.footer-trust-item + .footer-trust-item { border-left: 1px solid rgba(255,255,255,.13); }
.footer-trust-item > span { display: grid; width: 25px; height: 25px; place-items: center; color: #3f3100; border-radius: 50%; background: var(--promo-accent); font-weight: 900; }
.footer-bottom-bar { background: rgba(0,0,0,.13); }
.site-info { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; color: #bcd3c4; font-size: .78rem; }

@media (max-width: 900px) {
  .header-topbar-inner { grid-template-columns: 1fr 1fr; }
  .topbar-offer { display: none; }
  .header-main-inner { min-height: 88px; flex-wrap: wrap; padding-block: 14px; }
  .header-deal-search { order: 4; max-width: none; flex-basis: 100%; }
  .header-contact { margin-left: auto; }
  .header-account-actions { display: none; }
  .menu-toggle { display: block; }
  .header-navigation-row { border-top: 1px solid #edf0f2; }
  .header-navigation-inner { min-height: 0; }
  .main-navigation { display: none; position: absolute; top: 100%; left: 16px; right: 16px; padding: 16px; border: 1px solid var(--promo-line); border-radius: 14px; background: #fff; box-shadow: var(--promo-shadow); }
  .main-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 8px; }
  .primary-menu a { display: block; padding: 8px; }
  .primary-menu .sub-menu { display: block; position: static; box-shadow: none; }
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; transform: none; }
  .deal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .term-grid { grid-template-columns: repeat(2,1fr); }
  .offer-slider-track { min-height: 620px; }
  .offer-slide { grid-template-columns: 1fr; grid-template-rows: 1.1fr .9fr; }
  .offer-slide-content { order: 2; padding: 32px; }
  .offer-slide-content::after { display: none; }
  .offer-slide-visual { order: 1; }
  .footer-content-grid { grid-template-columns: repeat(2,1fr); }
  .footer-brand-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .header-topbar-inner { display: flex; justify-content: center; }
  .topbar-store-link { display: none; }
  .topbar-secure, .social-navigation { justify-self: center; }
  .custom-logo { max-width: 150px; max-height: 48px; }
  .site-title { font-size: 1.35rem; }
  .brand-mark { width: 40px; height: 40px; }
  .header-contact { display: none; }
  .header-deal-search { height: auto; flex-wrap: wrap; overflow: visible; border: 0; border-radius: 0; gap: 8px; }
  .header-deal-search select, .header-deal-search input[type="search"] { width: 100%; height: 46px; flex-basis: 100%; border: 1px solid #e2e6ea; border-radius: 10px; }
  .header-deal-search button { width: 100%; height: 44px; margin: 0; }
  .hero { padding-top: 48px; }
  .offer-slider-heading { align-items: flex-start; }
  .offer-slider-track { min-height: 660px; }
  .offer-slide { grid-template-rows: 220px 1fr; }
  .offer-slide-content { padding: 28px 24px 48px; }
  .offer-slide h3 { font-size: 1.8rem; }
  .offer-slider-dots { right: 14px; bottom: 12px; }
  .affiliate-banner-arrow { width: 36px; height: 36px; border-radius: 10px; }
  .affiliate-banner-prev { left: 9px; }
  .affiliate-banner-next { right: 9px; }
  .deal-search, .section-heading, .site-info { align-items: stretch; flex-direction: column; }
  .deal-grid, .term-grid, .footer-content-grid { grid-template-columns: 1fr; }
  .deal-actions { flex-direction: column; }
  .section-heading { align-items: flex-start; }
  .taxonomy-header-inner { align-items: flex-start; flex-direction: column; }
  .store-archive-media { width: 110px; height: 110px; flex-basis: 110px; }
  .deal-layout-list .deal-card { display: flex; }
  .deal-layout-list .deal-card-media { aspect-ratio: 16/10; }
  .footer-brand-row { padding-top: 45px; }
  .footer-social-navigation { align-items: flex-start; flex-direction: column; }
  .footer-trust-row { grid-template-columns: 1fr; }
  .footer-trust-item + .footer-trust-item { border-top: 1px solid rgba(255,255,255,.13); border-left: 0; }
}
