/* ==========================================================================
   SHEREBOY AFFILIATE CONCEPT — Design System
   Ink + teal on clean neutrals, with amber reserved for the brand's spark.
   One typeface (Plus Jakarta Sans, self-hosted), one spacing scale, one card.
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext carries the naira sign (₦) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0B2A2F;        /* brand secondary: hero, footer */
  --ink-2: #123B41;
  --glow: #0F5F5B;       /* the lighter side of hero gradients */
  --text: #0B2A2F;
  --page-bg: #FFFFFF;
  --surface: #FFFFFF;
  --nav-bg: rgba(255, 255, 255, .96);
  --on-primary: #FFFFFF;
  --link: #0F766E;
  --on-accent: #3F2A00;
  --btn-radius: 10px;
  --teal-700: #0F766E;
  --teal-800: #0B5F58;
  --teal-50: #E8F5F3;
  --amber-500: #F5A524;
  --amber-50: #FEF5E3;
  --amber-800: #8A5A00;
  --red-600: #C2362B;
  --red-50: #FCEDEB;
  --green-700: #15703D;
  --green-50: #E7F6ED;

  --white: #FFFFFF;
  --gray-25: #F8FAFA;
  --gray-50: #F3F5F6;
  --gray-100: #E4E9EA;
  --gray-300: #C5CFD2;
  --gray-500: #5B6B70;
  --gray-700: #36474C;

  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(11, 42, 47, .05), 0 1px 3px rgba(11, 42, 47, .06);
  --shadow-md: 0 10px 28px -8px rgba(11, 42, 47, .16), 0 3px 8px rgba(11, 42, 47, .06);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1240px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--page-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { color: var(--text); line-height: 1.18; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section-alt { background: var(--gray-25); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--link); font-weight: 700; margin-bottom: 6px; }
.section-sub { color: var(--gray-500); max-width: 560px; margin-top: 6px; font-size: .95rem; }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--link); padding: 6px 0; }
.section-link .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.section-link:hover .icon { transform: translateX(3px); }

:focus-visible { outline: 2px solid var(--teal-700); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 1000; font-weight: 600; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: var(--btn-radius); font-weight: 600; font-size: .94rem; line-height: 1.2; white-space: nowrap; transition: background-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease); }
.btn .icon { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-700); color: var(--on-primary); }
.btn-primary:hover { background: var(--teal-800); }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: var(--ink-2); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--text); }
.btn-on-dark { background: #FFFFFF; color: #0B2A2F; }
.btn-on-dark:hover { background: #E8F5F3; }
.btn-ghost { background: var(--gray-50); color: var(--text); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: .86rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Navbar ---------- */
.navbar { position: sticky; top: 0; z-index: 500; background: var(--nav-bg); border-bottom: 1px solid var(--gray-100); }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; padding: 0 var(--gutter); max-width: var(--container); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--gray-700); font-weight: 500; font-size: .92rem; transition: color .15s, background-color .15s; }
.nav-links a:hover { background: var(--gray-50); color: var(--text); }
.nav-links a.active { color: var(--link); font-weight: 600; }
.nav-search { position: relative; flex: 1; max-width: 340px; margin-left: auto; }
.nav-search input { width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 10px; border: 1px solid var(--gray-100); background: var(--gray-50); font-size: .9rem; transition: border-color .15s, background-color .15s; }
.nav-search input:focus { outline: none; border-color: var(--link); background: var(--surface); }
.nav-search .icon { position: absolute; left: 13px; top: 13px; width: 16px; height: 16px; color: var(--gray-500); pointer-events: none; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .nav-inner { gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-search { order: 3; flex: 1 0 100%; max-width: none; margin: 0; }
  .nav-links { order: 4; flex: 1 0 100%; flex-direction: column; align-items: stretch; display: none; padding-bottom: 6px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(90% 120% at 90% 0%, var(--glow) 0%, var(--ink) 62%); color: #fff; padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--amber-500); }
.hero .lead { color: #C9DDDC; font-size: 1.06rem; max-width: 500px; margin-bottom: 26px; }
.hero-search { display: flex; gap: 8px; background: #FFFFFF; padding: 6px; border-radius: 14px; max-width: 520px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .5); }
.hero-search-field { position: relative; flex: 1; min-width: 0; }
.hero-search-field .icon { position: absolute; left: 12px; top: 14px; width: 18px; height: 18px; color: var(--gray-500); }
.hero-search input { width: 100%; height: 46px; border: none; padding: 0 8px 0 40px; color: #0B2A2F; background: transparent; border-radius: 10px; font-size: 1rem; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px var(--amber-500); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; min-height: 34px; }
.hero-chips a { padding: 6px 13px; border-radius: 100px; font-size: .84rem; font-weight: 500; color: #E3EFEE; border: 1px solid rgba(255, 255, 255, .22); transition: background-color .15s; }
.hero-chips a:hover { background: rgba(255, 255, 255, .12); }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 28px; }
.hero-stat b { display: block; font-size: 1.4rem; font-weight: 700; color: #fff; line-height: 1.2; }
.hero-stat span { color: #A9C6C5; font-size: .82rem; }

.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spotlight-item { display: flex; flex-direction: column; background: var(--surface); color: var(--text); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s var(--ease); }
.spotlight-item:hover { transform: translateY(-3px); }
.spotlight-item:first-child { grid-row: span 2; }
.spotlight-item:first-child .spotlight-media img { max-height: 360px; }
.spotlight-media { flex: 1; min-height: 130px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; padding: 10px; }
.spotlight-media img { width: 100%; height: 100%; max-height: 300px; object-fit: contain; }
.spotlight-meta { padding: 10px 14px 13px; border-top: 1px solid var(--gray-100); }
.spotlight-name { font-size: .84rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.spotlight-price { font-weight: 700; font-size: .95rem; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .spotlight-item:first-child { grid-row: auto; grid-column: span 2; }
  .spotlight-media img { max-height: 190px; }
}

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--gray-100); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 22px 0; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--gray-500); line-height: 1.45; }
.trust-item b { display: block; color: var(--text); font-size: .92rem; font-weight: 600; }
.trust-icon { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--teal-50); color: var(--link); }
.trust-icon .icon { width: 19px; height: 19px; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cat-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--gray-100); border-radius: var(--radius-md); transition: border-color .2s, box-shadow .2s var(--ease), transform .2s var(--ease); }
.cat-card:hover { border-color: var(--link); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cat-icon-wrap { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--teal-50); color: var(--link); display: flex; align-items: center; justify-content: center; }
.cat-icon-wrap .icon { width: 23px; height: 23px; }
.cat-card h3 { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.cat-card span.cat-count { color: var(--gray-500); font-size: .8rem; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; }
.pcard:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.pcard-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #FFFFFF; overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .4s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.035); }
.pcard-media img.img-missing { padding: 0; object-fit: cover; }
.pcard:hover .pcard-media img.img-missing { transform: none; }
.pcard-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .71rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; line-height: 1.4; }
.badge .icon { width: 12px; height: 12px; }
.badge-discount { background: var(--ink); color: #fff; }
.badge-featured { background: var(--amber-500); color: var(--on-accent); }
.badge-verified { background: var(--teal-50); color: var(--teal-800); }
.badge-out { background: var(--red-50); color: var(--red-600); }
.pcard-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px 16px 16px; border-top: 1px solid var(--gray-100); }
.pcard-cat { font-size: .74rem; font-weight: 600; color: var(--link); }
.pcard-cat:hover { text-decoration: underline; }
.pcard-title { font-size: .95rem; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title a:hover { color: var(--link); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--gray-500); }
.rating .icon { width: 13px; height: 13px; color: var(--amber-500); }
.rating b { color: var(--text); font-weight: 600; }
.pcard-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: auto; padding-top: 6px; }
.price-now { font-size: 1.16rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.price-was { font-size: .84rem; color: var(--gray-500); text-decoration: line-through; }
.pcard-status { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 22px; font-size: .78rem; }
.stock { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; color: var(--green-700); }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock-limited { color: var(--amber-800); }
.stock-out { color: var(--red-600); }
.pcard-cta { margin-top: 8px; }

/* Product photos shimmer until they arrive, so a slow image never looks like an empty box */
.pcard-media img:not(.is-loaded), .spotlight-media img:not(.is-loaded), .pd-main-img img:not(.is-loaded) { background: linear-gradient(100deg, var(--gray-50) 30%, #fbfcfc 50%, var(--gray-50) 70%); background-size: 200% 100%; animation: sk-shine 1.4s linear infinite; border-radius: 8px; }

/* Placeholder cards shown while data loads */
.pcard-skeleton { pointer-events: none; }
.pcard-skeleton:hover { box-shadow: none; transform: none; border-color: var(--gray-100); }
.sk { display: block; background: linear-gradient(100deg, var(--gray-50) 30%, #fbfcfc 50%, var(--gray-50) 70%); background-size: 200% 100%; animation: sk-shine 1.4s linear infinite; border-radius: 6px; }
.sk-media { aspect-ratio: 1 / 1; border-radius: 0; }
.sk-line { height: 12px; }
.sk-w40 { width: 40%; } .sk-w80 { width: 80%; }
.sk-btn { height: 44px; border-radius: 10px; margin-top: 8px; }
@keyframes sk-shine { to { background-position: -200% 0; } }

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard { border-radius: var(--radius-md); }
  .pcard-body { padding: 10px 11px 12px; }
  .pcard-title { font-size: .86rem; }
  .price-now { font-size: 1rem; }
  .pcard-cta { min-height: 40px; padding: 8px 8px; font-size: .84rem; }
  .pcard-badges { top: 6px; left: 6px; }
}

/* ---------- States ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 52px 20px; color: var(--gray-500); grid-column: 1 / -1; }
.empty-state .icon { width: 36px; height: 36px; color: var(--gray-300); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.testi-card { background: var(--surface); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.testi-stars { display: flex; gap: 2px; }
.testi-stars .icon { width: 15px; height: 15px; }
.star-filled { color: var(--amber-500); }
.star-empty { color: var(--gray-100); }
.testi-card p { color: var(--gray-700); font-size: .95rem; flex: 1; }
.testi-name { font-weight: 600; font-size: .88rem; }

/* ---------- Newsletter ---------- */
.newsletter { background: radial-gradient(120% 160% at 100% 0%, var(--glow), var(--ink) 65%); color: #fff; border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #C9DDDC; margin-top: 8px; font-size: .96rem; }
.subscribe-row { display: flex; gap: 8px; }
.subscribe-row input[type="email"] { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; background: #FFFFFF; color: #0B2A2F; }
.consent { font-size: .78rem; color: #C9DDDC; margin-top: 10px; line-height: 1.5; }
.consent a { text-decoration: underline; color: #E3EFEE; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; padding: 30px 22px; } }
@media (max-width: 460px) { .subscribe-row { flex-direction: column; } .subscribe-row input[type="email"] { flex: none; width: 100%; } }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--gray-100); padding: 16px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-weight: 600; }
.faq-a { max-height: 0; overflow: hidden; color: var(--gray-500); transition: max-height .25s var(--ease); }
.faq-item.open .faq-a { max-height: 400px; padding-top: 10px; }
.chev { flex-shrink: 0; transition: transform .2s; color: var(--link); }
.faq-item.open .chev { transform: rotate(180deg); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #A9C6C5; padding: 56px 0 24px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 14px; }
.footer-about { max-width: 320px; font-size: .86rem; }
.footer-grid h4 { color: #fff; font-size: .9rem; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.footer-grid a.footer-link { display: block; padding: 5px 0; font-size: .88rem; transition: color .15s; }
.footer-grid a.footer-link:hover { color: #fff; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; display: flex; align-items: center; justify-content: center; transition: background-color .15s; }
.footer-social a:hover { background: rgba(255, 255, 255, .16); }
.footer-social .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: .8rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Products page ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.toolbar-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex: 1 1 auto; }
.input { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--gray-100); background: var(--surface); font-size: .92rem; max-width: 100%; }
.input:focus { outline: none; border-color: var(--link); }
.search-field { position: relative; flex: 1 1 240px; min-width: 200px; display: flex; align-items: center; }
.search-field .search-icon { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--gray-500); pointer-events: none; }
.search-field .input { width: 100%; padding-left: 40px; }
.chip-filter { min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--gray-100); font-size: .88rem; font-weight: 600; color: var(--gray-700); transition: all .15s; }
.chip-filter:hover { border-color: var(--gray-300); }
.chip-filter.active { background: var(--ink); color: #fff; border-color: var(--text); }
.result-count { color: var(--gray-500); font-size: .88rem; margin-bottom: 18px; min-height: 22px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.page-btn { min-width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--gray-50); font-weight: 600; font-size: .9rem; }
.page-btn:hover { background: var(--gray-100); }
.page-btn.active { background: var(--ink); color: #FFFFFF; }

/* ---------- Product details ---------- */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: flex-start; }
.pd-main-img { border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1; background: #FFFFFF; margin-bottom: 12px; }
.pd-main-img img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid var(--gray-100); background: #FFFFFF; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb.active { border-color: var(--link); }
.pd-crumb { font-size: .84rem; color: var(--gray-500); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.pd-crumb a:hover { color: var(--link); }
.pd-title { font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 700; margin-bottom: 12px; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.pd-price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 18px 0 6px; }
.pd-price-now { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.savings { font-size: .86rem; font-weight: 600; color: var(--green-700); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.pd-actions .btn-primary { flex: 1 1 220px; min-height: 50px; font-size: 1rem; }
.pd-disclosure { font-size: .8rem; color: var(--gray-500); margin-bottom: 22px; }
.pd-description { color: var(--gray-700); white-space: pre-line; font-size: .96rem; }
.pd-specs { margin-top: 24px; border-top: 1px solid var(--gray-100); padding-top: 20px; }
.pd-specs table { width: 100%; border-collapse: collapse; }
.pd-specs td { padding: 9px 0; border-bottom: 1px solid var(--gray-100); font-size: .9rem; vertical-align: top; }
.pd-specs td:first-child { color: var(--gray-500); width: 40%; padding-right: 12px; }
@media (max-width: 860px) { .pd-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .88rem; }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--gray-300); background: var(--surface); }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px var(--teal-50); }
.form-msg { align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); margin-top: 12px; font-size: .88rem; line-height: 1.4; }
.form-msg .icon { width: 18px; height: 18px; flex-shrink: 0; }
.form-msg.success { background: var(--green-50); color: var(--green-700); }
.form-msg.error { background: var(--red-50); color: var(--red-600); }
@media (max-width: 480px) { .form-card { padding: 22px 18px; } }

/* ---------- Static pages ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 32px; margin-bottom: 12px; }
.prose p, .prose li { color: var(--gray-700); margin-bottom: 12px; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose a { color: var(--link); text-decoration: underline; }
.page-hero { background: radial-gradient(100% 180% at 100% 0%, var(--glow), var(--ink) 62%); color: #fff; padding: 46px 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.page-hero p { color: #C9DDDC; margin-top: 8px; max-width: 620px; }
.link-accent { color: var(--link); font-weight: 600; }
.status-card { max-width: 480px; margin: 0 auto; text-align: center; }
.status-card h1 { font-size: 1.6rem; margin-bottom: 10px; }
.status-card p { color: var(--gray-500); margin-bottom: 20px; }
.status-icon { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: var(--teal-50); color: var(--link); }
.status-icon.is-error { background: var(--red-50); color: var(--red-600); }
.status-icon .icon { width: 26px; height: 26px; }

/* ---------- AI Chat Widget ---------- */
.ai-fab { position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); box-shadow: var(--shadow-md); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 400; transition: transform .2s var(--ease), background-color .2s; }
.ai-fab:hover { transform: scale(1.06); background: var(--ink-2); }
.ai-fab .icon { width: 25px; height: 25px; }
.ai-panel { position: fixed; bottom: 90px; right: 22px; width: 360px; max-width: calc(100vw - 24px); height: 480px; max-height: calc(100dvh - 110px); background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 20px 50px -12px rgba(11, 42, 47, .35); display: none; flex-direction: column; overflow: hidden; z-index: 900; }
.ai-panel.open { display: flex; }
.ai-head { background: var(--ink); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.ai-head-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .94rem; }
.ai-head-title .icon { width: 17px; height: 17px; color: var(--amber-500); }
#aiClose { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
#aiClose .icon { width: 15px; height: 15px; }
.ai-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--gray-25); }
.ai-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .88rem; line-height: 1.45; }
.ai-msg.user { align-self: flex-end; background: var(--teal-700); color: var(--on-primary); border-bottom-right-radius: 4px; }
.ai-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--gray-100); border-bottom-left-radius: 4px; }
.ai-input-row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--gray-100); }
.ai-input-row input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--gray-100); font-size: 16px; }
.ai-send { width: 42px; height: 42px; flex-shrink: 0; border-radius: var(--btn-radius); background: var(--teal-700); color: var(--on-primary); display: flex; align-items: center; justify-content: center; }
.ai-send .icon { width: 17px; height: 17px; }
.ai-typing { font-size: .8rem; color: var(--gray-500); font-style: italic; padding: 0 14px 6px; background: var(--gray-25); }

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .section { padding: 44px 0; }
  .ai-panel { right: 12px; left: 12px; width: auto; bottom: 84px; }
  .ai-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* ---------- Site settings: promo bar, banners, theme switch ---------- */
.promo-bar { display: block; background: var(--amber-500); color: var(--on-accent); text-align: center; font-size: .88rem; font-weight: 600; padding: 8px 16px; }
a.promo-bar:hover { text-decoration: underline; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--btn-radius); border: 1px solid var(--gray-100); flex-shrink: 0; }
.theme-toggle .icon { width: 18px; height: 18px; }
.banner-slot { padding-top: 24px; }
.banner-slot .container { display: grid; gap: 14px; }
.site-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; background: var(--ink); color: #FFFFFF; border-radius: var(--radius-lg); overflow: hidden; }
.site-banner img { width: 220px; height: 130px; object-fit: cover; }
.site-banner.no-image { grid-template-columns: minmax(0, 1fr); }
.site-banner-text { padding: 18px 22px; }
.site-banner-text b { display: block; font-size: 1.1rem; }
.site-banner-text span { display: block; opacity: .85; font-size: .92rem; margin-top: 4px; }
@media (max-width: 560px) { .site-banner { grid-template-columns: minmax(0, 1fr); } .site-banner img { width: 100%; height: 150px; } }
.cat-icon-wrap.has-image { background: var(--gray-50); overflow: hidden; }
.cat-icon-wrap.has-image img { width: 100%; height: 100%; object-fit: cover; }
.page-updated { color: #C9DDDC; margin-top: 8px; font-size: .9rem; }
.pd-short { color: var(--gray-700); font-size: 1rem; margin: 10px 0 2px; }
.pd-description.is-rich { white-space: normal; }
.pd-description.is-rich h2, .pd-description.is-rich h3, .pd-description.is-rich h4 { margin: 18px 0 8px; font-size: 1.1rem; }
.pd-description.is-rich p { margin-bottom: 12px; }
.pd-description.is-rich ul, .pd-description.is-rich ol { margin: 0 0 12px 20px; }
.pd-description.is-rich ul { list-style: disc; }
.pd-description.is-rich ol { list-style: decimal; }
.pd-description.is-rich a { color: var(--link); text-decoration: underline; }
.preview-banner { background: var(--amber-500); color: var(--on-accent); text-align: center; padding: 10px 16px; font-weight: 600; font-size: .9rem; }
