/*
Theme Name: TemuPromoCode
Theme URI: https://temupromocode.com
Author: TemuPromoCode.com
Author URI: https://temupromocode.com
Description: A fast, SEO-first coupon theme built for temupromocode.com. Ticket-style coupon cards with one-tap copy, structured data (WebSite, Organization, FAQ, Breadcrumbs), a Coupons post type, and a lightweight, accessible front end.
Version: 1.4.1
Requires at least: 6.0
Tested up to: 6.7
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: temupromocode
Tags: e-commerce, blog, one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ------------------------------------------------------------------
   1. Tokens
------------------------------------------------------------------ */
:root {
  --ink: #221b33;          /* deep plum-navy: headings, dark section */
  --ink-soft: #3a3350;
  --slate: #6a6376;        /* secondary text */
  --paper: #fff9f3;        /* warm page background */
  --card: #ffffff;
  --brand: #fb7701;        /* Temu orange */
  --brand-deep: #d96300;
  --brand-ink: #7a3800;
  --tint: #ffedd8;         /* pale orange chip */
  --leaf: #0e9f6e;         /* verified green */
  --leaf-tint: #e2f6ee;
  --line: #f0e3d3;
  --notch: var(--paper);   /* ticket notch colour = section bg */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(34, 27, 51, 0.08);
  --shadow-lift: 0 18px 44px rgba(34, 27, 51, 0.14);
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --font-code: "IBM Plex Mono", "Courier New", monospace;
  --wrap: 1140px;
}

/* ------------------------------------------------------------------
   2. Reset & base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
[id] { scroll-margin-top: 96px; }
.section--tight { padding: 48px 0; }
.section--white { background: #fff; --notch: #ffffff; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--tint);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.muted { color: var(--slate); }

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* ------------------------------------------------------------------
   3. Buttons
------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(251,119,1,.35); }
.btn--brand:hover { background: var(--brand-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); }

/* ------------------------------------------------------------------
   4. Header & navigation
------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-brand__mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand);
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-6deg);
  box-shadow: 0 6px 14px rgba(251,119,1,.4);
}
.site-brand__text { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--ink); line-height: 1.1; }
.site-brand__text span { color: var(--brand); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 700; color: var(--ink-soft); font-size: 0.98rem; }
.site-nav a:hover { color: var(--brand-deep); }
.header-cta { white-space: nowrap; }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 2px solid var(--ink); border-radius: 10px;
  padding: 8px 10px; cursor: pointer; color: var(--ink);
}
.nav-toggle__bars { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* ------------------------------------------------------------------
   5. Hero
------------------------------------------------------------------ */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, #35264d 78%, #46285a 100%);
  color: #f5eefc;
  --notch: #2d2242; /* ticket notches blend into hero */
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto -10% -55% -10%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(251,119,1,.28), transparent 65%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lede { font-size: 1.15rem; color: #cfc4e2; max-width: 34em; }
.hero .eyebrow { background: rgba(251,119,1,.16); color: #ffb26e; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; padding: 0; list-style: none; }
.hero__facts li { font-size: 0.92rem; color: #b9addb; display: flex; gap: 8px; align-items: center; }
.hero__facts strong { color: #fff; font-size: 1.05rem; }
.tick {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--leaf); color: #fff; font-size: 0.7rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ------------------------------------------------------------------
   6. Ticket (signature component)
------------------------------------------------------------------ */
.ticket {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  overflow: hidden; /* clips notch overhang so the card shadow stays clean */
  transition: transform .18s ease, box-shadow .18s ease;
}
.ticket:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ticket__top { padding: 24px 24px 18px; flex: 1; }
.ticket__divider { position: relative; border-top: 2px dashed var(--line); margin: 0 14px; }
.ticket__divider::before, .ticket__divider::after {
  content: ""; position: absolute; top: -13px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--notch);
}
.ticket__divider::before { left: -27px; }
.ticket__divider::after { right: -27px; }
.ticket__bottom { padding: 18px 24px 24px; }
.ticket__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.badge {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.badge--deal { background: var(--tint); color: var(--brand-ink); }
.badge--verified { background: var(--leaf-tint); color: #086346; }
.badge--sample { background: #eceaf2; color: var(--slate); }
.ticket__value {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1;
  color: var(--ink); letter-spacing: -0.02em;
}
.ticket__title { font-size: 1.02rem; font-weight: 700; margin: 8px 0 4px; }
.ticket__title a { color: inherit; text-decoration: none; }
.ticket__title a:hover { color: var(--brand-deep); }
.ticket__desc { font-size: 0.92rem; color: var(--slate); margin: 0; }
.ticket__expiry { font-size: 0.82rem; color: var(--slate); }

.code-row { display: flex; gap: 10px; align-items: stretch; }
.code-chip {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-code); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.06em;
  color: var(--brand-ink);
  background: repeating-linear-gradient(-45deg, #fff6ec, #fff6ec 8px, #ffefe0 8px, #ffefe0 16px);
  border: 2px dashed var(--brand);
  border-radius: 12px; padding: 10px 12px;
  user-select: all;
}
.copy-btn {
  flex: none;
  font-family: var(--font-body); font-weight: 800; font-size: 0.95rem;
  background: var(--brand); color: #fff; border: 0; border-radius: 12px;
  padding: 10px 18px; cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.copy-btn:hover { background: var(--brand-deep); }
.copy-btn:active { transform: scale(0.96); }
.copy-btn.is-copied { background: var(--leaf); }
.ticket__go { margin-top: 12px; font-size: 0.9rem; font-weight: 700; }

/* Featured ticket in hero */
.ticket--featured { transform: rotate(2deg); }
.ticket--featured:hover { transform: rotate(0deg) translateY(-4px); }
.ticket--featured .ticket__value { font-size: 2.7rem; }
.ticket--featured .ticket__stub {
  position: absolute; top: 14px; right: 16px;
  background: var(--ink); color: #ffb26e;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

/* Coupon grid */
.coupon-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  padding: 0; margin: 0; list-style: none;
}
.coupon-grid > li { display: flex; }
.coupon-grid .ticket { flex: 1; }

/* ------------------------------------------------------------------
   7. Steps (how to redeem — a real sequence)
------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; position: relative; counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-code); font-size: 0.85rem; font-weight: 700;
  color: var(--brand-deep); background: var(--tint);
  border-radius: 8px; padding: 4px 9px;
  display: inline-block; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.95rem; color: var(--slate); margin: 0; }

/* ------------------------------------------------------------------
   8. FAQ accordion
------------------------------------------------------------------ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 800; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-display); font-size: 1.3rem; color: var(--brand);
  transition: transform .2s ease; flex: none;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 22px 18px; color: var(--slate); font-size: 0.98rem; }
.faq__body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
   9. Disclosure & notices
------------------------------------------------------------------ */
.disclosure {
  background: var(--tint); border: 1px solid #f6d9b6; border-radius: 14px;
  padding: 16px 20px; font-size: 0.9rem; color: var(--brand-ink);
}
.admin-note {
  background: #fdf3d7; border: 1px dashed #d8b64a; border-radius: 12px;
  padding: 14px 18px; font-size: 0.92rem; color: #6b5410; margin-bottom: 24px;
}

/* ------------------------------------------------------------------
   10. Blog / archive cards
------------------------------------------------------------------ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.post-card__thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--tint); display: block; }
.post-card__thumb--ph {
  background: linear-gradient(135deg, #ffedd8 0%, #ffd9ac 55%, #ffc98f 100%);
  position: relative;
}
.post-card__thumb--ph::after {
  content: "%";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 3rem;
  color: rgba(122, 56, 0, 0.35);
}
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__body h3 { margin: 0; font-size: 1.08rem; }
.post-card__body h3 a { text-decoration: none; color: var(--ink); }
.post-card__body h3 a:hover { color: var(--brand-deep); }
.post-card__meta { font-size: 0.82rem; color: var(--slate); }
.post-card__excerpt { font-size: 0.93rem; color: var(--slate); margin: 0; }

/* ------------------------------------------------------------------
   11. Single content
------------------------------------------------------------------ */
.breadcrumbs { font-size: 0.85rem; color: var(--slate); margin: 26px 0 0; }
.breadcrumbs a { color: var(--slate); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-deep); }
.breadcrumbs .sep { margin: 0 7px; color: var(--line); }

.entry { max-width: 760px; margin: 0 auto; }
.entry-header { margin: 26px 0 30px; }
.entry-meta { font-size: 0.88rem; color: var(--slate); }
.entry-content { font-size: 1.05rem; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: 14px; }
.entry-content blockquote {
  border-left: 4px solid var(--brand); margin: 1.4em 0; padding: 4px 0 4px 20px;
  color: var(--ink-soft); font-style: italic;
}
.entry table, .entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; }
.entry th, .entry td, .entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; background: #fff; }
.entry th, .entry-content th { background: var(--tint); }
.entry h3 { margin-top: 1.5em; }
.wp-block-image figcaption { font-size: 0.82rem; color: var(--slate); text-align: center; }

.single-ticket-wrap { max-width: 560px; margin: 30px auto 40px; }

/* ------------------------------------------------------------------
   12. Search, pagination, forms
------------------------------------------------------------------ */
.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form input[type="search"] {
  flex: 1; padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; background: #fff;
}
.search-form input[type="search"]:focus { border-color: var(--brand); outline: none; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; font-weight: 700; color: var(--ink);
}
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-numbers:hover { border-color: var(--brand); }

/* ------------------------------------------------------------------
   13. CTA band & footer
------------------------------------------------------------------ */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, #ff9a3d 100%);
  border-radius: 24px; padding: 48px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  color: #fff; flex-wrap: wrap;
  box-shadow: 0 20px 44px rgba(251,119,1,.35);
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #fff3e6; }

.site-footer { background: var(--ink); color: #b9addb; margin-top: 80px; }
.site-footer a { color: #e6ddf6; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.95rem; }
.site-footer__about { font-size: 0.95rem; max-width: 34em; }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0 26px; font-size: 0.82rem; color: #8d80ad;
}
.site-footer__legal p { margin: 0 0 6px; }

/* ------------------------------------------------------------------
   14. Responsive
------------------------------------------------------------------ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .coupon-grid, .steps, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .section { padding: 52px 0; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 20px 22px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 14px; }
  .header-cta { display: none; }
  .coupon-grid, .steps, .post-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 36px 26px; }
  .ticket--featured { transform: none; }
}

/* ------------------------------------------------------------------
   15. Motion preferences
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* WordPress core alignment helpers */
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.sticky { display: block; }
.bypostauthor { display: block; }

/* ------------------------------------------------------------------
   16. Stats strip (computed from real coupons only)
------------------------------------------------------------------ */
.stats-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: -46px; position: relative; z-index: 5;
}
.stat {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px; text-align: center;
}
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 1.7rem; color: var(--brand-deep); line-height: 1.15;
}
.stat__label { font-size: 0.85rem; color: var(--slate); font-weight: 700; letter-spacing: 0.02em; }

/* ------------------------------------------------------------------
   17. Savings tips
------------------------------------------------------------------ */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 0; margin: 0; list-style: none; }
.tip {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--brand);
  border-radius: 14px; padding: 20px 22px;
}
.tip h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tip p { font-size: 0.93rem; color: var(--slate); margin: 0; }

/* ------------------------------------------------------------------
   18. Process (how we test)
------------------------------------------------------------------ */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; counter-reset: proc; }
.process li {
  counter-increment: proc;
  background: var(--tint); border-radius: 14px; padding: 20px;
  font-size: 0.93rem; color: var(--brand-ink);
}
.process li::before {
  content: counter(proc);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 800; margin-bottom: 12px;
}
.process strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }

@media (max-width: 960px) {
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .tips { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .stats-strip { grid-template-columns: 1fr; margin-top: -30px; }
  .tips, .process { grid-template-columns: 1fr; }
}

/* Comments */
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-meta { font-size: 0.85rem; color: var(--slate); margin-bottom: 8px; }
.comment-form label { display: block; font-weight: 700; margin: 14px 0 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 11px 14px; border: 2px solid var(--line); border-radius: 10px; font-family: var(--font-body); font-size: 1rem;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--brand); outline: none; }
.comment-form .submit { margin-top: 16px; }

/* ------------------------------------------------------------------
   19. Announcement bar (shows the real top offer)
------------------------------------------------------------------ */
.promo-bar { background: var(--ink); }
.promo-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 16px; color: #e6ddf6; text-decoration: none; font-size: 0.9rem; font-weight: 700;
}
.promo-bar a:hover { color: #fff; }
.promo-bar strong { color: var(--brand); }
.promo-bar__spark { color: var(--brand); }
.promo-bar__code {
  font-family: var(--font-code); font-size: 0.82rem; letter-spacing: 0.06em;
  background: rgba(251,119,1,.15); color: #ffb26e;
  border: 1px dashed rgba(251,119,1,.5); border-radius: 8px; padding: 2px 9px;
}
.promo-bar__go { transition: transform .15s ease; }
.promo-bar a:hover .promo-bar__go { transform: translateX(4px); }

/* ------------------------------------------------------------------
   20. Scroll reveal (progressive enhancement, JS-gated)
------------------------------------------------------------------ */
.reveal-init { opacity: 0; transform: translateY(16px); }
.is-visible { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }

/* ------------------------------------------------------------------
   21. Back to top
------------------------------------------------------------------ */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 1.15rem; font-weight: 800;
  box-shadow: 0 10px 24px rgba(251,119,1,.4);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, background .15s ease;
}
.to-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--brand-deep); }

::selection { background: var(--tint); color: var(--brand-ink); }
