/* ============================================================
   Cool & Comfy — "Premium" shop / category archive (preview)
   ONE consistent layout for /shop/ and every product-category/tag.
   Uses design tokens from redesign-premium.css. Never touched by hand
   edits to that file.
   ============================================================ */

.cc-shop{background:var(--cc-cream)}

/* ---------- Editorial header banner ----------
   Pure CSS atmosphere (no hotlinked imagery): deep navy-to-ink wash,
   gold radial glows, fine gold keyline. */
.cc-shop-hero{
  position:relative;overflow:hidden;color:#f4efe2;
  background:
    radial-gradient(720px 340px at 12% 8%, rgba(192,127,46,.22), rgba(192,127,46,0) 62%),
    radial-gradient(560px 300px at 88% 92%, rgba(192,127,46,.14), rgba(192,127,46,0) 60%),
    linear-gradient(165deg, #2b3a5c 0%, var(--cc-navy-deep) 42%, var(--cc-ink) 100%);
  padding:64px 0 60px;
}
.cc-shop-hero::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
  background:linear-gradient(90deg,transparent 4%,var(--cc-gold) 30%,var(--cc-gold) 70%,transparent 96%);
  opacity:.8;
}
/* Atmospheric banner image (decorative; gradient stays underneath as fallback) */
.cc-shop-hero.has-img{background-size:cover;background-position:center 38%}
.cc-shop-hero.has-img::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(100deg, rgba(22,24,29,.88) 0%, rgba(26,35,56,.72) 38%, rgba(26,35,56,.30) 70%, rgba(22,24,29,.42) 100%);
}
.cc-shop-hero.has-img .cc-wrap{position:relative}
.cc-shop-hero .cc-crumbs{margin-bottom:26px}
.cc-crumbs{display:flex;align-items:center;gap:10px;font-size:13px;letter-spacing:.06em}
.cc-crumbs a{color:#e9e2cf;text-decoration:none;font-weight:600}
.cc-crumbs a:hover{color:var(--cc-gold-soft)}
.cc-crumb-sep{color:rgba(233,226,207,.45)}
.cc-crumb-here{color:var(--cc-gold-soft);font-weight:600}
.cc-shop-hero .cc-eyebrow{color:var(--cc-gold-soft)}
.cc-shop-h1{
  font-family:var(--cc-font-d);font-weight:500;color:#fff;
  font-size:clamp(34px,5vw,56px);line-height:1.08;letter-spacing:-.01em;
  margin:0 0 16px;max-width:16ch;text-wrap:balance;
}
.cc-shop-desc{color:#d8d1bd;font-size:17px;line-height:1.65;max-width:62ch;margin:0}
.cc-shop-count{margin:22px 0 0;display:inline-flex;align-items:center;gap:10px;
  font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#cfc7b2;font-weight:600}
.cc-shop-count strong{
  font-family:var(--cc-font-d);font-size:20px;font-weight:600;color:var(--cc-gold-soft);letter-spacing:0;
}
.cc-shop-count::before{content:"";width:26px;height:1px;background:var(--cc-gold);opacity:.8}

/* ---------- Toolbar: pills + count + sort ----------
   Sticky under the site header for easy filtering.
   Solid background (translucent + backdrop-filter showed cards scrolling
   through on Android Chrome). Slides to viewport top when the hide-on-
   scroll header hides (body.cc-head-hidden, toggled in redesign-premium.js). */
.cc-shop-tools{
  position:sticky;top:84px;z-index:120;
  background:var(--cc-cream);
  border-bottom:1px solid var(--cc-line);padding:16px 0;
  transition:top .32s ease;
}
body.cc-head-hidden .cc-shop-tools{top:0}
@media(max-width:640px){
  .cc-shop-tools{top:96px}
  body.cc-head-hidden .cc-shop-tools{top:0}
}
.cc-pills{
  display:flex;gap:10px;overflow-x:auto;padding:2px 2px 12px;margin:0 -2px;
  scrollbar-width:thin;scrollbar-color:var(--cc-line-dark) transparent;
}
.cc-pills::-webkit-scrollbar{height:6px}
.cc-pills::-webkit-scrollbar-thumb{background:var(--cc-line-dark);border-radius:3px}
.cc-pill{
  flex:none;display:inline-flex;align-items:center;gap:8px;text-decoration:none;
  font-size:13.5px;font-weight:600;color:var(--cc-ink-soft);white-space:nowrap;
  border:1px solid var(--cc-line-dark);border-radius:999px;padding:9px 18px;
  background:var(--cc-paper);transition:border-color .18s ease,color .18s ease,background .18s ease,transform .18s ease;
}
.cc-pill:hover{border-color:var(--cc-gold);color:var(--cc-gold-deep);transform:translateY(-1px)}
.cc-pill.on{background:var(--cc-ink);border-color:var(--cc-ink);color:var(--cc-gold-soft)}
.cc-pill-n{
  font-size:11px;font-weight:700;color:var(--cc-stone);
  background:var(--cc-cream-deep);border-radius:999px;padding:2px 8px;min-width:26px;text-align:center;
}
.cc-pill.on .cc-pill-n{background:rgba(243,231,207,.16);color:var(--cc-gold-soft)}
.cc-tools-row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
}
.cc-result-count{margin:0;font-size:13.5px;color:var(--cc-stone);font-weight:500}
.cc-sort{display:flex;align-items:center;gap:10px}
.cc-sort label{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--cc-stone)}
.cc-sort select{
  appearance:none;-webkit-appearance:none;cursor:pointer;
  font-family:var(--cc-font-b);font-size:14px;font-weight:600;color:var(--cc-ink);
  background:var(--cc-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5681f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/14px;
  border:1px solid var(--cc-line-dark);border-radius:999px;padding:10px 42px 10px 18px;max-width:240px;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.cc-sort select:hover,.cc-sort select:focus{border-color:var(--cc-gold);outline:none;box-shadow:0 0 0 3px rgba(192,127,46,.18)}
.cc-sort-go{font-family:var(--cc-font-b);font-size:13px;font-weight:700;color:#fff;background:var(--cc-gold);border:0;border-radius:999px;padding:10px 20px;cursor:pointer}

/* ---------- Product grid section ---------- */
.cc-shop-gridsec{padding:56px 0 24px}
@media(min-width:1081px){
  .cc-shop-gridsec .cc-grid{grid-template-columns:repeat(3,1fr);gap:26px}
}

/* ---------- Pagination ---------- */
.cc-pager{display:flex;align-items:center;justify-content:center;gap:8px;margin:52px 0 12px;flex-wrap:wrap}
.cc-pg{
  min-width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:1px solid var(--cc-line-dark);border-radius:12px;background:var(--cc-paper);
  font-size:14.5px;font-weight:600;color:var(--cc-ink-soft);text-decoration:none;padding:0 14px;
  transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease;
}
.cc-pg:hover{border-color:var(--cc-gold);color:var(--cc-gold-deep);transform:translateY(-1px)}
.cc-pg.on{background:var(--cc-ink);border-color:var(--cc-ink);color:var(--cc-gold-soft)}
.cc-pg svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cc-pg-nav{padding:0 18px}
.cc-pg-nav.off{opacity:.38;pointer-events:none}
.cc-pg-dots{color:var(--cc-stone-light);letter-spacing:.2em;padding:0 4px}

/* ---------- Empty state ---------- */
.cc-empty{
  text-align:center;max-width:620px;margin:40px auto 60px;padding:64px 32px;
  background:var(--cc-paper);border:1px solid var(--cc-line);border-radius:20px;box-shadow:var(--cc-shadow-sm);
}
.cc-empty-eyebrow{font-size:12px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--cc-gold-deep);margin:0 0 14px}
.cc-empty .cc-h2{margin-bottom:12px}
.cc-empty .cc-lede{margin:0 auto}
.cc-empty-ctas{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin:28px 0 0}

/* ---------- Trust strip (below grid, homepage truths only) ---------- */
.cc-shop-trust{padding:40px 0 88px}
.cc-trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.cc-trust-card{
  background:var(--cc-paper);border:1px solid var(--cc-line);border-radius:var(--cc-radius);
  padding:26px 24px;display:flex;flex-direction:column;gap:8px;
  transition:transform .22s ease,box-shadow .22s ease;
}
.cc-trust-card:hover{transform:translateY(-3px);box-shadow:var(--cc-shadow-sm)}
.cc-trust-card svg{width:30px;height:30px;fill:none;stroke:var(--cc-gold-deep);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;margin-bottom:6px}
.cc-trust-card h3{font-family:var(--cc-font-d);font-size:19px;font-weight:600;color:var(--cc-ink);margin:0}
.cc-trust-card p{margin:0;font-size:14px;color:var(--cc-stone);line-height:1.55}

/* ---------- Responsive ---------- */
@media(max-width:1080px){
  .cc-trust-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:720px){
  .cc-shop-hero{padding:48px 0 44px}
  .cc-shop-gridsec{padding:40px 0 16px}
  .cc-shop-gridsec .cc-grid{grid-template-columns:repeat(2,1fr);gap:14px}
  .cc-tools-row{flex-direction:column;align-items:stretch;gap:12px}
  .cc-result-count{text-align:center}
  .cc-sort{justify-content:space-between}
  .cc-sort select{flex:1;max-width:none}
  .cc-trust-grid{grid-template-columns:1fr 1fr;gap:12px}
  .cc-trust-card{padding:20px 18px}
  .cc-empty{padding:48px 22px;margin:24px auto 48px}
}
@media(max-width:420px){
  .cc-shop-gridsec .cc-grid{gap:12px}
  .cc-pager{gap:6px}
  .cc-pg{min-width:40px;height:40px;padding:0 10px}
}
/* ============================================================
   Enhancement pass (v1.12.3) — smoother, calmer motion;
   sticky-toolbar elevation; focus detail; spacing rhythm.
   ============================================================ */

/* Stuck-state elevation: soft shadow + slightly tighter padding so the
   toolbar reads as a deliberate chrome layer when pinned (class added
   by shop.js; no-JS users keep the plain sticky bar). */
.cc-shop-tools{box-shadow:0 0 0 rgba(22,24,29,0);
  transition:top .32s ease,box-shadow .28s ease,padding .28s ease}
.cc-shop-tools.is-stuck{box-shadow:0 14px 30px -18px rgba(22,24,29,.28);padding:10px 0}
.cc-shop-tools.is-stuck .cc-pills{padding-bottom:8px}

/* Hero: calm fade of the gold keyline so it never flashes on load */
.cc-shop-hero::after{animation:ccKeyIn 1.2s ease .1s backwards}
@keyframes ccKeyIn{from{opacity:0}to{opacity:.8}}

/* Pills: steadier press, gold focus ring */
.cc-pill:active{transform:translateY(0)}
.cc-pill:focus-visible{outline:2px solid var(--cc-gold);outline-offset:2px}
.cc-pills{scroll-padding:0 24px}

/* Pagination: focus ring, steadier active page */
.cc-pg:focus-visible{outline:2px solid var(--cc-gold);outline-offset:2px}
.cc-pg:active{transform:translateY(0)}
.cc-pg.on{cursor:default}

/* Sort: steadier focus */
.cc-sort select:active{transform:none}

/* Product cards inherit the reveal system; give the grid a calm
   settle on first paint so filters feel instant but soft */
.cc-shop-gridsec .cc-grid{transition:opacity .22s ease}

/* Breadcrumb in the hero: slightly more air between separators */
.cc-shop-hero .cc-crumbs{gap:12px}
.cc-shop-hero .cc-crumb-sep{opacity:.6}

/* Trust strip: cards keep the calm hover; headings sit tighter */
.cc-trust-card h3{letter-spacing:-.01em}
.cc-trust-card{box-shadow:0 0 0 rgba(22,24,29,0)}
.cc-trust-card:hover{box-shadow:var(--cc-shadow-sm)}

/* Empty state: eyebrow breathes, CTAs keep button rhythm */
.cc-empty-eyebrow{letter-spacing:.24em}

/* Result count: steadier while paging (prevents layout shimmer) */
.cc-result-count{min-height:1.6em}

/* ------- Small phones: keep pills + sort thumb-friendly ------- */
@media(max-width:720px){
  .cc-shop-tools{padding:14px 0}
  .cc-shop-tools.is-stuck{padding:8px 0}
  .cc-pill{padding:11px 20px;font-size:14px}
  .cc-sort select{font-size:16px} /* stops iOS zoom on focus */
  .cc-shop-count{margin-top:18px}
}
@media (prefers-reduced-motion:reduce){
  .cc-shop-hero::after{animation:none}
  .cc-shop-tools{transition:none}
  .cc-shop-tools.is-stuck{box-shadow:none}
}
@media (prefers-reduced-motion:reduce){
  .cc-pill,.cc-pg,.cc-trust-card,.cc-sort select{transition:none}
}

/* ============================================================
   v1.13.0 — Category pages as content pages (Land of Beds pattern):
   hero trust line (live review data), FAQ block, collection
   comparison table (real store data only).
   ============================================================ */

/* ---------- Category hero rating ---------- */
.cc-shop-rating{display:inline-flex;align-items:center;gap:8px;margin:16px 0 0;font-size:14px;color:#d8d1bd;font-weight:500}
.cc-shop-rating .cc-star{width:15px;height:15px;fill:var(--cc-star)}
.cc-shop-rating strong{color:var(--cc-gold-soft);font-weight:700}

/* ---------- FAQ block (accessible details/summary, no JS needed) ---------- */
.cc-shop-faq{padding:64px 0 8px}
.cc-faq-list{max-width:840px;margin:30px 0 0;display:flex;flex-direction:column;gap:12px}
.cc-faq{background:var(--cc-paper);border:1px solid var(--cc-line);border-radius:var(--cc-radius);overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease}
.cc-faq:hover{border-color:var(--cc-line-dark)}
.cc-faq[open]{border-color:var(--cc-gold);box-shadow:var(--cc-shadow-sm)}
.cc-faq summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;font-family:var(--cc-font-b);font-weight:600;font-size:16.5px;color:var(--cc-ink)}
.cc-faq summary::-webkit-details-marker{display:none}
.cc-faq summary::marker{content:""}
.cc-faq summary svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--cc-gold-deep);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s ease}
.cc-faq[open] summary svg{transform:rotate(180deg)}
.cc-faq summary:focus-visible{outline:2px solid var(--cc-gold);outline-offset:-2px}
.cc-faq-a{padding:0 24px 24px;color:var(--cc-stone);font-size:15.5px;line-height:1.7;max-width:70ch}
.cc-faq-a a{color:var(--cc-gold-deep);font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.cc-faq-a a:hover{color:var(--cc-ink)}

/* ---------- Collection comparison table (horizontal scroll on mobile) ---------- */
.cc-shop-compare{padding:56px 0 8px}
.cc-shop-compare .cc-lede{margin-top:14px}
.cc-table-scroll{overflow-x:auto;margin-top:30px;border:1px solid var(--cc-line);border-radius:var(--cc-radius);background:var(--cc-paper);box-shadow:var(--cc-shadow-sm)}
.cc-compare{width:100%;min-width:620px;border-collapse:collapse;font-size:15px}
.cc-compare th,.cc-compare td{padding:17px 22px;text-align:left;border-bottom:1px solid var(--cc-line);vertical-align:middle}
.cc-compare thead th{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--cc-stone);background:var(--cc-cream-deep);border-bottom:1px solid var(--cc-line-dark)}
.cc-compare tbody th{font-family:var(--cc-font-d);font-size:17px;font-weight:600;color:var(--cc-ink);letter-spacing:-.01em}
.cc-compare tbody th a{color:var(--cc-ink);text-decoration:none}
.cc-compare tbody th a:hover{color:var(--cc-gold-deep);text-decoration:underline;text-underline-offset:3px}
.cc-compare tbody tr:last-child th,.cc-compare tbody tr:last-child td{border-bottom:0}
.cc-compare tbody tr.on{background:rgba(192,127,46,.08)}
.cc-compare tbody tr.on th{color:var(--cc-gold-deep)}
.cc-compare-rating{display:inline-flex;align-items:center;gap:7px;font-weight:700;color:var(--cc-ink)}
.cc-compare-rating .cc-star{width:14px;height:14px;fill:var(--cc-star)}
.cc-compare-rating span{font-weight:500;color:var(--cc-stone);font-size:13.5px}
.cc-compare-new{font-size:13.5px;color:var(--cc-stone);font-style:italic}

@media(max-width:720px){
  .cc-shop-faq{padding:48px 0 4px}
  .cc-shop-compare{padding:44px 0 4px}
  .cc-faq summary{padding:17px 18px;font-size:15.5px}
  .cc-faq-a{padding:0 18px 20px;font-size:15px}
}
@media (prefers-reduced-motion:reduce){
  .cc-faq,.cc-faq summary svg{transition:none}
}
