/* =====================================================================
   CatSpecials — public site
   ===================================================================== */

:root {
  /* Surfaces — cool neutrals, to sit under the logo's navy */
  --paper:     #F7F8FA;
  --paper-2:   #EDEFF5;
  --surface:   #FFFFFF;
  --sand:      #E3E7F0;

  /* Ink — taken from the wordmark */
  --ink:       #04162E;
  --ink-2:     #46536B;
  --ink-3:     #8A93A6;
  --line:      rgba(4, 22, 46, .11);
  --line-2:    rgba(4, 22, 46, .055);

  /* Accents — the logo's red, its pink ears, its tabby grey */
  --accent:      #F1203D;
  --accent-dark: #C9142F;
  --accent-soft: #FFE9EC;
  --pink:        #FE9D9D;
  --tabby:       #808080;
  --moss:        #1E7A5E;
  --gold:        #F0A62E;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(4,22,46,.05);
  --sh-2: 0 1px 2px rgba(4,22,46,.05), 0 10px 26px -14px rgba(4,22,46,.26);
  --sh-3: 0 2px 4px rgba(4,22,46,.06), 0 28px 54px -22px rgba(4,22,46,.34);
  --sh-cta: 0 8px 20px -8px rgba(241,32,61,.5);

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1220px;
  --header-h: 98px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Barely-there paper grain */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .028; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.022em;
  margin: 0;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
}

::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 5px; }

/* ---------- Header --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 248, 250, .85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line-2);
  box-shadow: 0 6px 24px -18px rgba(4,22,46,.55);
}

.header-inner { display: flex; align-items: center; gap: 26px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo, .brand-mark-img {
  width: auto; display: block;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.brand-logo { height: 64px; }
.brand-mark-img { height: 34px; display: none; }
.brand:hover .brand-logo, .brand:hover .brand-mark-img { transform: scale(1.04) rotate(-1deg); }

.main-nav { display: flex; gap: 2px; margin-right: auto; }
.main-nav a {
  position: relative;
  padding: 9px 13px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--paper-2); color: var(--ink); }
.main-nav a.is-active { background: var(--ink); color: #fff; }

.header-search {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 17px;
  width: 216px;
  transition: width .28s cubic-bezier(.4,0,.2,1), border-color .2s, box-shadow .2s;
}
.header-search:focus-within {
  width: 292px; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.header-search svg { width: 17px; height: 17px; color: var(--ink-3); flex-shrink: 0; }
.header-search input {
  border: 0; background: none; outline: none; width: 100%;
  font-family: inherit; font-size: 14.5px; color: var(--ink);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 0 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: .22s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: grid; gap: 2px; padding: 6px 18px 20px; border-top: 1px solid var(--line-2); }
/* The browser's own [hidden] rule loses to the class above, so restate it. */
.mobile-nav[hidden] { display: none; }
.mobile-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 13px; padding: 12px 16px; margin-bottom: 10px;
}
.mobile-search svg { width: 17px; height: 17px; color: var(--ink-3); }
.mobile-search input { border: 0; background: none; outline: none; width: 100%; font-family: inherit; font-size: 15px; }
.mobile-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 12px; font-weight: 500;
}
.mobile-nav a span:first-child { font-size: 18px; }
.mobile-nav a:hover { background: var(--paper-2); }

/* ---------- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .18s cubic-bezier(.34,1.4,.64,1), box-shadow .2s, background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; transition: transform .22s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: translateY(0); }

.btn-buy { background: var(--accent); color: #fff; box-shadow: var(--sh-cta); }
.btn-buy:hover { background: var(--accent-dark); box-shadow: 0 12px 26px -8px rgba(241,32,61,.62); }

.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(4,22,46,.6); }
.btn-dark:hover { background: #000; }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn-lg { padding: 16px 32px; font-size: 16.5px; }
.btn-block { width: 100%; white-space: normal; }

/* ---------- Hero ----------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 70px;
  background:
    radial-gradient(940px 460px at 84% -12%, #FFE1E6 0%, transparent 64%),
    radial-gradient(720px 420px at 2% 14%, #E4EAF6 0%, transparent 62%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .45;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 76%);
          mask-image: linear-gradient(to bottom, #000, transparent 76%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 15px 6px 6px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--sh-2);
}
.eyebrow b {
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 700;
}

.hero h1 {
  font-size: clamp(44px, 5.9vw, 74px);
  line-height: 1.02; letter-spacing: -.035em;
  margin: 24px 0 20px;
}
.hero h1 em {
  font-style: italic; color: var(--accent);
  position: relative; white-space: nowrap;
}
.hero h1 em::after {
  content: ''; position: absolute; left: 2%; right: 2%; bottom: .06em; height: .1em;
  background: var(--accent); opacity: .22; border-radius: 4px;
}
.hero-lede { font-size: 19px; color: var(--ink-2); max-width: 45ch; margin: 0 0 32px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 38px; margin-top: 44px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-stats div strong {
  display: block; font-family: var(--font-display);
  font-size: 29px; font-weight: 700; letter-spacing: -.03em;
}
.hero-stats div span { font-size: 13px; color: var(--ink-3); }

/* Hero collage */
.hero-art { position: relative; height: 470px; }
.hero-art figure {
  position: absolute; margin: 0; overflow: hidden;
  border-radius: 24px; background: var(--surface);
  box-shadow: var(--sh-3); border: 6px solid var(--surface);
  transition: transform .5s cubic-bezier(.34,1.3,.64,1);
}
.hero-art figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .a { width: 63%; height: 76%; top: 0; right: 3%; transform: rotate(2.4deg); z-index: 2; }
.hero-art .b { width: 47%; height: 51%; bottom: 0; left: 0; transform: rotate(-4.2deg); z-index: 3; }
.hero-art .c { width: 41%; height: 39%; bottom: 6%; right: 9%; transform: rotate(6deg); z-index: 1; }
.hero-art:hover .a { transform: rotate(1.2deg) translateY(-6px); }
.hero-art:hover .b { transform: rotate(-3deg) translateY(-4px); }
.hero-art:hover .c { transform: rotate(4.6deg) translateY(-8px); }

.hero-chip {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 15px; padding: 11px 15px;
  box-shadow: var(--sh-3); font-size: 13px; font-weight: 600;
  animation: float 5.5s ease-in-out infinite;
}
.hero-chip i { font-style: normal; font-size: 18px; line-height: 1; }
.hero-chip-a { left: 30%; top: 42%; }
.hero-chip-b { right: 2%; bottom: 24%; animation-delay: -2.6s; }
.hero-chip .stars .star { width: 11px; height: 11px; }
.hero-chip small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Trust strip */
.trust-strip {
  position: relative; z-index: 1;
  display: flex; gap: 34px; flex-wrap: wrap;
  padding: 22px 0 0; margin-top: 46px;
  border-top: 1px solid var(--line);
}
.trust-strip span {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.trust-strip svg { width: 16px; height: 16px; color: var(--moss); flex-shrink: 0; }

/* ---------- Sections -------------------------------------------------- */
.section { padding: 82px 0; }
.section-alt { background: var(--paper-2); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 26px; margin-bottom: 38px;
}
.section-eyebrow {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(29px, 3.4vw, 41px); }
.section-head p { margin: 11px 0 0; color: var(--ink-2); max-width: 52ch; }
.section-link {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding-bottom: 3px; border-bottom: 1.5px solid var(--line);
  transition: gap .2s, border-color .2s, color .2s;
}
.section-link:hover { gap: 11px; color: var(--accent); border-color: var(--accent); }

/* ---------- Category grid --------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 16px; }
.cat-card {
  position: relative; display: block; padding: 24px 22px 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .22s, box-shadow .24s, border-color .22s;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--accent-soft), transparent 62%);
  opacity: 0; transition: opacity .26s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.cat-card:hover::before { opacity: 1; }
.cat-card > * { position: relative; }
.cat-icon-tile {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--paper-2); display: grid; place-items: center;
  font-size: 23px; margin-bottom: 15px;
  transition: background .26s, transform .3s cubic-bezier(.34,1.5,.64,1);
}
.cat-card:hover .cat-icon-tile { background: var(--surface); transform: rotate(-7deg) scale(1.05); }
.cat-card strong { display: block; font-size: 15.5px; letter-spacing: -.01em; }
.cat-card span { font-size: 13px; color: var(--ink-3); }
.cat-arrow {
  position: absolute; right: 20px; bottom: 20px;
  color: var(--accent); opacity: 0; transform: translateX(-6px);
  transition: opacity .24s, transform .24s;
}
.cat-arrow svg { width: 17px; height: 17px; }
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Product grid ---------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 26px; }
.grid > * { min-width: 0; }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .24s cubic-bezier(.34,1.2,.64,1), box-shadow .26s, border-color .22s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: transparent; }

.card-media {
  position: relative; display: block; aspect-ratio: 4 / 3;
  background: var(--paper-2); overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,22,46,.17), transparent 42%);
  opacity: 0; transition: opacity .3s;
}
.card:hover .card-media::after { opacity: 1; }

.tag {
  position: absolute; top: 13px; left: 13px; z-index: 2;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .015em;
  box-shadow: var(--sh-2);
}

.card-rank {
  position: absolute; top: 13px; right: 13px; z-index: 2;
  background: var(--ink); color: #fff;
  width: 31px; height: 31px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700;
}

.card-body { padding: 19px 19px 17px; display: flex; flex-direction: column; flex: 1; }

.card-cat {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.card-title { font-size: 18.5px; margin: 9px 0 7px; line-height: 1.24; }
.card-title a { transition: color .18s; }
.card-title a:hover { color: var(--accent); }
.card-desc { margin: 0 0 13px; font-size: 14px; color: var(--ink-2); line-height: 1.52; }

.card-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.card-rating b { font-size: 12.5px; font-weight: 700; }
.card-rating span { font-size: 12.5px; color: var(--ink-3); }

.card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); }
.card-foot .btn { padding: 12px 18px; font-size: 14.5px; }

/* ---------- Stars ----------------------------------------------------- */
.stars { display: inline-flex; gap: 2.5px; }
.star {
  width: 13px; height: 13px; display: block; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.star.is-empty { background: rgba(4,22,46,.17); }
.star.is-half { background: linear-gradient(90deg, var(--gold) 50%, rgba(4,22,46,.17) 50%); }

/* ---------- Listing --------------------------------------------------- */
.page-head { padding: 52px 0 30px; }
.crumbs { font-size: 13.5px; color: var(--ink-3); margin-bottom: 16px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.crumbs a { transition: color .18s; }
.crumbs a:hover { color: var(--accent); }
.page-head h1 { font-size: clamp(33px, 4.6vw, 50px); letter-spacing: -.032em; }
.page-head p { color: var(--ink-2); margin: 12px 0 0; max-width: 58ch; font-size: 17px; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 18px 0 16px;
}

.list-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 8px 7px 18px;
  flex: 1 1 340px; max-width: 480px;
  transition: border-color .2s, box-shadow .2s;
}
.list-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.list-search > svg { width: 18px; height: 18px; color: var(--ink-3); flex-shrink: 0; }
.list-search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-family: inherit; font-size: 15px; color: var(--ink);
}
.list-search input::-webkit-search-cancel-button { display: none; }
.list-search-clear {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px;
  background: var(--paper-2); color: var(--ink-3);
  transition: background .18s, color .18s;
}
.list-search-clear:hover { background: var(--ink); color: #fff; }
.list-search button {
  border: 0; cursor: pointer; flex-shrink: 0;
  background: var(--ink); color: #fff;
  padding: 11px 20px; border-radius: 999px;
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  transition: background .18s;
}
.list-search button:hover { background: var(--accent); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 30px; }
.chip-clear { border-style: dashed; color: var(--accent); border-color: var(--accent); }
.chip-clear:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: border-color .18s, color .18s, background .18s, transform .18s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.sort-form { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-3); }
.sort-form select {
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 10px 36px 10px 15px; border-radius: 999px;
  border: 1px solid var(--line); background-color: var(--surface);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%238A8078' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 11px;
  transition: border-color .18s;
}
.sort-form select:hover { border-color: var(--ink); }
.result-count { font-size: 14px; color: var(--ink-3); }

.empty {
  text-align: center; padding: 88px 24px;
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty i { font-style: normal; font-size: 44px; }
.empty h3 { font-size: 23px; margin: 16px 0 9px; }
.empty p { color: var(--ink-2); margin: 0 0 22px; }

.pager { display: flex; justify-content: center; gap: 7px; margin-top: 52px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 44px; height: 44px; padding: 0 13px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 13px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14.5px; font-weight: 500; transition: border-color .18s, transform .18s;
}
.pager a:hover { border-color: var(--ink); transform: translateY(-1px); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .is-gap { border: 0; background: none; }
.pager .pager-step { padding: 0 18px; font-weight: 600; }
.pager .is-off { opacity: .38; }
.pager-info { text-align: center; margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- Product detail -------------------------------------------- */
.detail { padding: 36px 0 80px; }
.detail-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: 62px; align-items: start; }
.detail-grid > * { min-width: 0; }

.gallery { position: sticky; top: calc(var(--header-h) + 22px); }
.gallery-main {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  aspect-ratio: 1 / 1; box-shadow: var(--sh-2);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 11px; margin-top: 13px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 76px; height: 76px; padding: 0; overflow: hidden; cursor: pointer;
  border-radius: 13px; border: 2px solid var(--line); background: var(--surface);
  transition: border-color .18s, transform .18s;
}
.gallery-thumbs button:hover { transform: translateY(-2px); }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.is-active { border-color: var(--accent); }

.detail-cat {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-dark);
  padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}
.detail h1 { font-size: clamp(31px, 4vw, 45px); margin: 18px 0 12px; letter-spacing: -.032em; }
.detail-brand { font-size: 14.5px; color: var(--ink-3); }
.detail-lede { font-size: 18px; color: var(--ink-2); margin: 18px 0 0; line-height: 1.58; }

.detail-meta { display: flex; align-items: center; gap: 13px; margin: 20px 0 0; flex-wrap: wrap; }
.detail-meta .stars .star { width: 15px; height: 15px; }
.detail-meta b { font-size: 15px; }
.detail-meta span { font-size: 14px; color: var(--ink-3); }

.buy-box {
  margin: 28px 0 0; padding: 26px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
}
.buy-note { font-size: 12.5px; color: var(--ink-3); margin: 0 0 20px; text-align: center; }
.buy-box .btn { margin-bottom: 14px; }
.buy-trust { display: flex; gap: 20px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.buy-trust span { display: inline-flex; align-items: center; gap: 7px; }
.buy-trust svg { width: 14px; height: 14px; color: var(--moss); }

.detail-block { margin-top: 44px; }
.detail-block h2 { font-size: 23px; margin-bottom: 16px; }
.detail-block p { color: var(--ink-2); margin: 0 0 15px; line-height: 1.68; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.features li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.features li::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
  border-radius: 50%; background-color: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' stroke='%23E8552F' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

/* Mobile sticky buy bar */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.buy-bar.is-visible { transform: translateY(0); }
.buy-bar-info { min-width: 0; }
.buy-bar-info strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-bar-info small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.buy-bar-info .star { width: 11px; height: 11px; }

/* ---------- Trending list ---------------------------------------------- */
.rank-list { display: grid; gap: 13px; }
.rank-row {
  display: grid; grid-template-columns: 56px 96px 1fr auto; gap: 22px; align-items: center;
  padding: 15px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .2s, box-shadow .22s, border-color .2s;
}
.rank-row:hover { transform: translateX(5px); box-shadow: var(--sh-2); border-color: transparent; }
.rank-num { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: rgba(4,22,46,.14); letter-spacing: -.04em; transition: color .22s; }
.rank-row:hover .rank-num { color: var(--accent); }
.rank-thumb { width: 96px; height: 76px; border-radius: 13px; overflow: hidden; background: var(--paper-2); }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rank-row:hover .rank-thumb img { transform: scale(1.07); }
.rank-info h3 { font-size: 17.5px; margin-bottom: 5px; }
.rank-info h3 a:hover { color: var(--accent); }
.rank-info p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.rank-buy { display: flex; align-items: center; }

/* ---------- Newsletter -------------------------------------------------- */
.subscribe {
  background: var(--ink); color: #fff;
  border-radius: 28px; padding: 58px 52px;
  display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: center;
  position: relative; overflow: hidden;
}
.subscribe::before {
  content: '🐾'; position: absolute; right: -14px; bottom: -38px;
  font-size: 190px; opacity: .06; transform: rotate(-12deg);
}
.subscribe::after {
  content: ''; position: absolute; left: -80px; top: -110px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(241,32,61,.34), transparent 68%);
}
.subscribe > * { position: relative; z-index: 1; }
.subscribe h2 { font-size: clamp(26px, 3vw, 34px); color: #fff; }
.subscribe p { color: rgba(255,255,255,.62); margin: 11px 0 0; max-width: 42ch; }
.subscribe form { display: flex; gap: 10px; }
.subscribe input {
  width: 286px; padding: 16px 21px; border-radius: 999px;
  font-family: inherit; font-size: 15px; background: rgba(255,255,255,.09); color: #fff;
  outline: none; border: 1px solid rgba(255,255,255,.17);
  transition: border-color .2s, background .2s;
}
.subscribe input::placeholder { color: rgba(255,255,255,.42); }
.subscribe input:focus { border-color: var(--accent); background: rgba(255,255,255,.15); }
.form-note { font-size: 13.5px; margin-top: 13px; color: var(--gold); }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: 24px; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 44px; flex-wrap: wrap;
  padding-top: 58px; padding-bottom: 38px;
}
.footer-brand p { color: var(--ink-2); margin: 14px 0 0; font-size: 14.5px; max-width: 34ch; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { font-size: 14.5px; color: var(--ink-2); transition: color .18s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px; padding-bottom: 34px;
  display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.disclosure { margin: 0; font-size: 12.5px; color: var(--ink-3); max-width: 72ch; line-height: 1.55; }
.copy { margin: 0; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Responsive --------------------------------------------------- */
@media (min-width: 781px) {
  .mobile-nav { display: none; }
}

@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { height: 400px; }
  .detail-grid { grid-template-columns: 1fr; gap: 38px; }
  .gallery { position: static; }
  .main-nav { display: none; }
  .header-search { margin-left: auto; }
}

@media (max-width: 780px) {
  .wrap { padding: 0 18px; }
  :root { --header-h: 68px; }
  .brand-logo { display: none; }
  .brand-mark-img { display: block; }
  .header-inner { gap: 12px; }
  .header-search { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 56px 0; }
  .hero { padding: 52px 0 44px; }
  .hero-art { height: 310px; }
  .hero-stats { gap: 26px; margin-top: 34px; }
  .hero-stats div strong { font-size: 24px; }
  .trust-strip { gap: 18px; margin-top: 34px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
  .toolbar { gap: 12px; }
  .list-search { flex-basis: 100%; max-width: none; }
  .sort-form { width: 100%; justify-content: space-between; }
  .pager .pager-step { padding: 0 13px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .rank-row { grid-template-columns: 36px 70px 1fr; gap: 15px; padding: 13px 15px; }
  .rank-thumb { width: 70px; height: 62px; }
  .rank-buy { grid-column: 2 / -1; justify-content: space-between; }
  .subscribe { grid-template-columns: 1fr; padding: 38px 26px; gap: 26px; }
  .subscribe form { flex-direction: column; }
  .subscribe input { width: 100%; }
  .btn-lg { padding: 15px 16px; font-size: 15px; }
  .buy-bar { display: flex; }
  body.has-buy-bar { padding-bottom: 78px; }
  .detail { padding-bottom: 40px; }
}

@media (max-width: 430px) {
  .grid { grid-template-columns: 1fr; }
  .hero-chip-b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
