/* =========================================================================
   Coro Textile & Pub — Prototype design system
   Rebuild of coro-textile.ch + shop.coro-textile.ch as one unified,
   colourful storefront. Palette sampled from their real logo + shop CSS.
   ========================================================================= */

/* ---------- 1. Primitives ---------- */
:root{
  /* Brand blue ramp — sampled from the CORO fingerprint mark (#57b6e3) and
     the shop's "Boutique en ligne" banner (#00a7d7 / #3bbcd0). */
  --blue-50:  #eef9fd;
  --blue-100: #d7f1fb;
  --blue-200: #ade0f5;
  --blue-300: #7ccdec;
  --blue-400: #57b6e3;
  --blue-500: #29a6da;
  --blue-600: #0f8fc4;
  --blue-700: #0c6f9c;
  --blue-800: #0a5476;
  --blue-900: #0a3a52;

  /* Charcoal ramp — sampled from the CORO wordmark (#383838) and the
     shop's own UI ink colour (#414042). */
  --ink-900: #232323;
  --ink-800: #383838;
  --ink-700: #4c4c4d;
  --ink-600: #6c6c6e;
  --ink-400: #96979a;
  --ink-200: #dcdde0;
  --ink-100: #edeef0;
  --ink-50:  #f6f8f9;

  --white: #ffffff;

  /* Secondary hues — used only as category accents (icons, tags, chips),
     the way a POD catalogue colour-codes its departments. Brand blue stays
     the one primary/CTA colour throughout. */
  --violet-500: #7c6ff0; --violet-50: #f1efff;
  --amber-500:  #f2a531; --amber-50:  #fff6e9;
  --green-500:  #23b384; --green-50:  #e9fbf4;
  --rose-500:   #ef5f88; --rose-50:   #ffeef3;

  /* Warm cream base — the Printify-style "not quite white" ground that lets
     brand colour + product photography read as the colourful part, instead
     of a flat white SaaS background. */
  --cream-50:  #fdfbf6;
  --cream-100: #f7f2e7;
  --cream-200: #efe7d4;

  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-display: 'Big Shoulders Condensed', var(--font-sans);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(10,58,82,.06);
  --shadow-md: 0 12px 32px -12px rgba(10,58,82,.22);
  --shadow-lg: 0 30px 60px -20px rgba(10,58,82,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 76px;
}

/* ---------- 2. Semantic tokens ---------- */
:root{
  --color-bg: var(--cream-50);
  --color-surface: var(--cream-100);
  --color-surface-alt: var(--blue-50);
  --color-border: var(--ink-200);

  --color-text: var(--ink-800);
  --color-text-soft: var(--ink-600);
  --color-heading: var(--ink-900);

  --color-primary: var(--blue-600);
  --color-primary-hover: var(--blue-700);
  --color-primary-soft: var(--blue-50);
  --color-accent: var(--blue-400);

  --gradient-brand: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-400) 55%, var(--violet-500) 130%);
  --gradient-hero: linear-gradient(120deg, rgba(10,58,82,.92) 0%, rgba(15,143,196,.75) 55%, rgba(124,111,240,.55) 100%);
}

/* ---------- 3. Reset ---------- */
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-sans);
  color:var(--color-text);
  background:var(--color-bg);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
button{font-family:inherit; cursor:pointer; border:none; background:none; color:inherit;}
input, textarea, select{font-family:inherit; font-size:1rem;}
svg{display:block;}

h1,h2,h3,h4{
  color:var(--color-heading);
  font-weight:800;
  line-height:1.12;
  letter-spacing:-.01em;
  overflow-wrap:break-word;
}
p{overflow-wrap:break-word;}
h1{
  font-family:var(--font-display);
  font-size:clamp(2.8rem, 8vw, 5.2rem);
  font-weight:800;
  letter-spacing:-.01em;
  text-transform:uppercase;
}
h2{font-size:clamp(1.7rem, 4vw, 2.5rem);}
h3{font-size:clamp(1.2rem, 2.6vw, 1.5rem);}

.stat-num{
  font-family:var(--font-display);
  font-weight:800;
  text-transform:uppercase;
  line-height:.9;
}

.container{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding-inline:1.5rem;
}
@media(min-width:768px){ .container{padding-inline:2.5rem;} }

section{padding-block:clamp(3.5rem, 7vw, 6.5rem);}

/* ---------- 4. Reveal-on-scroll ---------- */
.reveal{opacity:0; transform:translateY(28px); transition:opacity .8s var(--ease), transform .8s var(--ease);}
.reveal.in{opacity:1; transform:translateY(0);}

/* ---------- 5. Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  padding:.9rem 1.6rem;
  border-radius:var(--radius-pill);
  font-weight:700;
  font-size:.98rem;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space:nowrap;
}
@media(max-width:480px){ .btn{white-space:normal; text-align:center;} }

.btn-primary{
  background:var(--gradient-brand);
  color:var(--white);
  box-shadow:var(--shadow-md);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 20px 40px -14px rgba(15,143,196,.45); }

.btn-outline{
  background:transparent;
  color:var(--color-primary);
  border:1.5px solid var(--blue-300);
}
.btn-outline:hover{ background:var(--color-primary-soft); border-color:var(--blue-500); }

.btn-white{
  background:var(--white);
  color:var(--blue-700);
  box-shadow:var(--shadow-md);
}
.btn-white:hover{ transform:translateY(-2px); }

.btn-ghost-light{
  background:rgba(255,255,255,.12);
  color:var(--white);
  border:1.5px solid rgba(255,255,255,.55);
}
.btn-ghost-light:hover{ background:rgba(255,255,255,.22); }

.btn-sm{ padding:.6rem 1.1rem; font-size:.85rem; }
.btn-block{ width:100%; }

/* ---------- 6. Category colour system ---------- */
.cat-blue   { --cat-solid:var(--blue-600);   --cat-soft:var(--blue-50);   --cat-text:var(--blue-800); }
.cat-violet { --cat-solid:var(--violet-500); --cat-soft:var(--violet-50); --cat-text:#4a3fc0; }
.cat-amber  { --cat-solid:var(--amber-500);  --cat-soft:var(--amber-50);  --cat-text:#93610c; }
.cat-green  { --cat-solid:var(--green-500);  --cat-soft:var(--green-50);  --cat-text:#0f7a58; }
.cat-rose   { --cat-solid:var(--rose-500);   --cat-soft:var(--rose-50);   --cat-text:#b53964; }

.pill{
  display:inline-flex; align-items:center; gap:.4em;
  padding:.35rem .8rem;
  border-radius:var(--radius-pill);
  font-size:.78rem;
  font-weight:700;
  background:var(--cat-soft, var(--blue-50));
  color:var(--cat-text, var(--blue-700));
}
.pill::before{
  content:'';
  width:7px; height:7px; border-radius:50%;
  background:var(--cat-solid, var(--blue-500));
}

/* ---------- 7. Eyebrow / section head ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:.6em;
  font-size:.78rem; font-weight:800;
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--blue-600);
  margin-bottom:.9rem;
}
.eyebrow::before{
  content:''; width:22px; height:3px; border-radius:2px;
  background:var(--gradient-brand);
}
.section-head{ max-width:640px; margin-bottom:2.8rem; }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head p{ color:var(--color-text-soft); font-size:1.05rem; margin-top:.9rem; }

/* ---------- 8. Header ---------- */
.site-header{
  position:sticky; top:0; z-index:300;
  background:rgba(253,251,246,.92);
  backdrop-filter:blur(14px) saturate(160%);
  border-bottom:1px solid var(--color-border);
}
.header-bar{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem;
  height:var(--header-h);
}
.brand{ display:flex; align-items:center; gap:.6rem; flex-shrink:0; }
.brand img{ height:38px; width:auto; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text strong{ font-size:1rem; font-weight:800; color:var(--ink-900); }
.brand-text span{ font-size:.68rem; color:var(--color-text-soft); font-weight:600; letter-spacing:.02em; }

.nav-links{
  display:none;
  align-items:center;
  gap:.3rem;
}
.nav-links a{
  position:relative;
  padding:.6rem .9rem;
  border-radius:var(--radius-pill);
  font-weight:700;
  font-size:.94rem;
  color:var(--ink-700);
  transition:background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ background:var(--blue-50); color:var(--blue-700); }

.header-actions{ display:flex; align-items:center; gap:.6rem; }
.header-actions .icon-btn{ display:none; }
.icon-btn{
  display:flex; align-items:center; justify-content:center;
  width:42px; height:42px;
  border-radius:50%;
  background:var(--ink-50);
  color:var(--ink-700);
  transition:background .2s var(--ease), color .2s var(--ease);
  flex-shrink:0;
}
.icon-btn:hover{ background:var(--blue-50); color:var(--blue-700); }
.icon-btn svg{ width:19px; height:19px; }

.burger{
  display:flex; flex-direction:column; justify-content:center; align-items:center; gap:5px;
  width:42px; height:42px; border-radius:50%; background:var(--ink-50); flex-shrink:0;
}
.burger span{ width:18px; height:2px; background:var(--ink-800); border-radius:2px; transition:transform .25s var(--ease), opacity .25s var(--ease); }

@media(min-width:960px){
  .nav-links{ display:flex; }
  .burger{ display:none; }
  .header-cta{ display:inline-flex !important; }
  .header-actions .icon-btn{ display:flex; }
}
.header-cta{ display:none; }

/* Mobile nav drawer */
.mobile-nav{
  position:fixed; inset:0; z-index:400;
  visibility:hidden;
  pointer-events:none;
}
.mobile-nav.open{ visibility:visible; pointer-events:auto; }
.mobile-nav-backdrop{
  position:absolute; inset:0;
  background:rgba(10,30,42,.45);
  opacity:0; transition:opacity .3s var(--ease);
}
.mobile-nav.open .mobile-nav-backdrop{ opacity:1; }
.mobile-nav-panel{
  position:absolute; top:0; right:0; bottom:0;
  width:min(340px, 86vw);
  background:var(--white);
  padding:1.5rem;
  display:flex; flex-direction:column; gap:1.5rem;
  transform:translateX(100%);
  transition:transform .35s var(--ease);
  overflow-y:auto;
}
.mobile-nav.open .mobile-nav-panel{ transform:translateX(0); }
.mobile-nav-top{ display:flex; align-items:center; justify-content:space-between; }
.mobile-nav ul{ display:flex; flex-direction:column; gap:.2rem; }
.mobile-nav ul a{
  display:block;
  padding:.85rem .4rem;
  font-size:1.05rem;
  font-weight:700;
  color:var(--ink-800);
  border-bottom:1px solid var(--ink-100);
}
.mobile-nav-cats{ display:flex; flex-wrap:wrap; gap:.5rem; }

/* ---------- 9. Hero ---------- */
.hero{
  position:relative;
  color:var(--white);
  padding-block:clamp(4rem, 12vw, 7rem);
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
}
.hero-bg::after{
  content:''; position:absolute; inset:0;
  background:var(--gradient-hero);
}
.hero-inner{ position:relative; z-index:2; max-width:640px; }
.hero .eyebrow{ color:var(--blue-100); }
.hero .eyebrow::before{ background:var(--white); }
.hero h1{ color:var(--white); margin-bottom:1.2rem; }
.hero p.lead{ font-size:1.15rem; color:rgba(255,255,255,.92); margin-bottom:2rem; max-width:540px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:.9rem; }
.hero-stats{
  position:relative; z-index:2;
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr));
  gap:1rem;
  margin-top:3rem;
  max-width:560px;
}
.hero-stats div strong{ display:block; font-size:2.4rem; }
.hero-stats div span{ font-size:.8rem; color:rgba(255,255,255,.8); }

.hero-checklist{ display:flex; flex-direction:column; gap:.65rem; margin:1.6rem 0 2.2rem; }
.hero-checklist li{ display:flex; align-items:center; gap:.7em; font-size:1rem; font-weight:600; color:rgba(255,255,255,.95); }
.hero-checklist svg{ width:20px; height:20px; flex-shrink:0; color:var(--green-500); background:var(--white); border-radius:50%; padding:3px; }

/* ---------- 10. Category tiles (embedded-shop entry, shown in a horizontal rail) ---------- */
.cat-tile{
  position:relative;
  border-radius:var(--radius-lg);
  padding:1.4rem 1.1rem;
  background:var(--cat-soft);
  border:1px solid transparent;
  display:flex; flex-direction:column; gap:.9rem;
  min-height:150px;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.cat-tile:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--cat-solid); }
.cat-tile .cat-ico{
  width:44px; height:44px; border-radius:var(--radius-md);
  background:var(--cat-solid); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.cat-tile .cat-ico svg{ width:22px; height:22px; }
.cat-tile strong{ font-size:1.02rem; color:var(--ink-900); }
.cat-tile span{ font-size:.8rem; color:var(--color-text-soft); }
.cat-tile .cat-count{ margin-top:auto; font-size:.76rem; font-weight:700; color:var(--cat-text); }

/* ---------- 11. Product cards ---------- */
.product-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:1.2rem;
}
@media(min-width:640px){ .product-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media(min-width:1024px){ .product-grid{ grid-template-columns:repeat(4, minmax(0,1fr)); } }

.product-card{
  background:var(--white);
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.product-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:var(--ink-200); }
.product-media{
  position:relative;
  aspect-ratio:1/1;
  background:var(--ink-50);
  overflow:hidden;
}
.product-media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.product-card:hover .product-media img{ transform:scale(1.06); }
.product-media .pill{ position:absolute; top:.7rem; left:.7rem; }
.product-body{ padding:1rem 1.1rem 1.2rem; display:flex; flex-direction:column; gap:.5rem; flex:1; }
.product-body .p-name{ font-weight:700; font-size:.96rem; color:var(--ink-900); line-height:1.3; }
.product-body .p-ref{ font-size:.72rem; color:var(--ink-400); font-weight:600; }
.product-body .p-price{ margin-top:auto; display:flex; align-items:baseline; gap:.3em; padding-top:.4rem; }
.product-body .p-price small{ font-size:.7rem; color:var(--color-text-soft); font-weight:600; }
.product-body .p-price strong{ font-size:1.15rem; color:var(--blue-700); font-weight:800; }

/* ---------- 12. Service / offering cards ---------- */
.service-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(0,1fr));
  gap:1.4rem;
}
@media(min-width:640px){ .service-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } }

.service-card{
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:var(--white);
  border:1px solid var(--color-border);
  display:flex; flex-direction:column;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.service-media{ aspect-ratio:16/10; overflow:hidden; }
.service-media img{ width:100%; height:100%; object-fit:cover; }
.service-body{ padding:1.6rem; display:flex; flex-direction:column; gap:.7rem; flex:1; }
.service-body ul{ display:flex; flex-direction:column; gap:.4rem; margin-top:.3rem; }
.service-body ul li{ font-size:.9rem; color:var(--color-text-soft); display:flex; gap:.55em; align-items:flex-start; }
.service-body ul li::before{ content:'✓'; color:var(--blue-600); font-weight:800; flex-shrink:0; }
.service-body .btn{ margin-top:auto; align-self:flex-start; }

/* ---------- 13. Process steps ---------- */
.steps{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(0,1fr));
  gap:1.6rem;
  counter-reset:step;
}
@media(min-width:768px){ .steps{ grid-template-columns:repeat(4, minmax(0,1fr)); } }
.step{ position:relative; padding-top:.5rem; }
.step .step-num{
  display:flex; align-items:center; justify-content:center;
  width:46px; height:46px; border-radius:50%;
  background:var(--gradient-brand); color:var(--white);
  font-weight:800; font-size:1.05rem;
  margin-bottom:1rem;
}
.step h3{ margin-bottom:.5rem; }
.step p{ color:var(--color-text-soft); font-size:.92rem; }

/* ---------- 14. Stat / trust bar ---------- */
.trust-bar{
  background:var(--ink-900);
  color:var(--white);
  padding-block:2.6rem;
}
.trust-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:1.6rem;
  text-align:center;
}
@media(min-width:768px){ .trust-grid{ grid-template-columns:repeat(4, minmax(0,1fr)); } }
.trust-grid strong{ display:block; font-size:1.8rem; font-weight:800; background:var(--gradient-brand); -webkit-background-clip:text; background-clip:text; color:transparent; }
.trust-grid span{ font-size:.82rem; color:var(--ink-200); }

/* ---------- 15. CTA banner ---------- */
.cta-banner{
  background:var(--gradient-brand);
  border-radius:var(--radius-lg);
  padding:clamp(2rem, 5vw, 3.2rem);
  color:var(--white);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
}
.cta-banner h2{ color:var(--white); margin-bottom:.5rem; }
.cta-banner p{ color:rgba(255,255,255,.9); }
.cta-banner-actions{ display:flex; gap:.8rem; flex-wrap:wrap; }
@media(max-width:640px){ .cta-banner{ flex-direction:column; align-items:flex-start; } }

/* ---------- 16. Filters (boutique) ---------- */
.filter-bar{
  display:flex; flex-wrap:wrap; gap:.6rem;
  margin-bottom:2.2rem;
}
.filter-chip{
  padding:.6rem 1.1rem;
  border-radius:var(--radius-pill);
  font-weight:700; font-size:.86rem;
  background:var(--ink-50);
  color:var(--ink-700);
  border:1.5px solid transparent;
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  display:inline-flex; align-items:center; gap:.5em;
}
.filter-chip .dot{ width:8px; height:8px; border-radius:50%; background:var(--cat-solid, var(--ink-400)); }
.filter-chip:hover{ background:var(--blue-50); }
.filter-chip.active{ background:var(--ink-900); color:var(--white); border-color:var(--ink-900); }
.filter-chip.active .dot{ background:var(--white); }

.results-meta{ font-size:.88rem; color:var(--color-text-soft); margin-bottom:1.2rem; }

/* ---------- 17. Forms ---------- */
.form-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:1rem; }
@media(max-width:640px){ .form-grid{ grid-template-columns:minmax(0,1fr); } }
.field{ display:flex; flex-direction:column; gap:.4rem; }
.field label{ font-size:.82rem; font-weight:700; color:var(--ink-700); }
.field input, .field select, .field textarea{
  padding:.85rem 1rem;
  border-radius:var(--radius-sm);
  border:1.5px solid var(--color-border);
  background:var(--white);
  color:var(--ink-800);
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--blue-400); box-shadow:0 0 0 4px var(--blue-50);
}
.field-full{ grid-column:1/-1; }

/* ---------- 18. Footer ---------- */
.site-footer{ background:var(--ink-900); color:var(--ink-200); padding-block:3.5rem 2rem; }
.footer-grid{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:2.4rem;
  padding-bottom:2.4rem; border-bottom:1px solid rgba(255,255,255,.1);
}
@media(min-width:768px){ .footer-grid{ grid-template-columns:1.4fr repeat(3, minmax(0,1fr)); } }
.footer-brand img{ height:34px; margin-bottom:1rem; filter:brightness(0) invert(1); }
.footer-brand p{ font-size:.88rem; color:var(--ink-400); max-width:280px; }
.footer-col h4{ color:var(--white); font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:1rem; }
.footer-col ul{ display:flex; flex-direction:column; gap:.65rem; }
.footer-col a{ font-size:.9rem; color:var(--ink-400); transition:color .2s var(--ease); }
.footer-col a:hover{ color:var(--white); }
.footer-social{ display:flex; gap:.6rem; margin-top:1.2rem; }
.footer-social a{
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
}
.footer-social svg{ width:16px; height:16px; }
.footer-bottom{
  display:flex; flex-wrap:wrap; gap:1rem;
  justify-content:space-between; align-items:center;
  padding-top:1.6rem;
  font-size:.8rem; color:var(--ink-400);
}
.footer-disclaimer{
  margin-top:1.6rem;
  font-size:.74rem;
  color:var(--ink-400);
  background:rgba(255,255,255,.05);
  border-radius:var(--radius-sm);
  padding:.8rem 1rem;
  line-height:1.5;
}

/* ---------- 19. Utility ---------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0 !important; }
.flex{ display:flex; }
.gap-1{ gap:.6rem; }
.badge-proto{
  position:fixed; left:14px; bottom:14px; z-index:500;
  background:rgba(35,35,35,.92); color:#fff;
  font-size:.72rem; font-weight:700;
  padding:.5rem .9rem; border-radius:var(--radius-pill);
  box-shadow:var(--shadow-md);
  display:flex; align-items:center; gap:.5em;
}
.badge-proto span.dot{ width:6px; height:6px; border-radius:50%; background:var(--blue-400); }

/* ---------- 20. Page hero (interior pages) ---------- */
.page-hero{
  background:var(--ink-900);
  color:var(--white);
  padding-block:3.2rem 3.6rem;
  position:relative;
  overflow:hidden;
}
.page-hero::before{
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(circle at 15% 20%, rgba(87,182,227,.35), transparent 55%),
             radial-gradient(circle at 85% 80%, rgba(124,111,240,.3), transparent 55%);
}
.page-hero .container{ position:relative; z-index:1; }
.breadcrumb{ font-size:.82rem; color:var(--blue-200); margin-bottom:.9rem; display:flex; gap:.5em; align-items:center; }
.breadcrumb a{ color:var(--blue-200); }
.breadcrumb a:hover{ color:var(--white); }
.page-hero h1{ color:var(--white); }
.page-hero p{ color:rgba(255,255,255,.85); max-width:600px; margin-top:.8rem; }

/* ---------- 21. Product detail ---------- */
.product-detail{ display:grid; grid-template-columns:minmax(0,1fr); gap:2.5rem; }
@media(min-width:900px){ .product-detail{ grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); } }
.product-detail-media{
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:var(--ink-50);
  aspect-ratio:1/1;
}
.product-detail-media img{ width:100%; height:100%; object-fit:cover; }
.product-detail-info h1{ font-size:clamp(1.7rem,4vw,2.3rem); margin-block:.6rem 1rem; }
.product-detail-price{ display:flex; align-items:baseline; gap:.4em; margin-bottom:1.4rem; }
.product-detail-price strong{ font-size:2rem; font-weight:800; color:var(--blue-700); }
.product-detail-price span{ color:var(--color-text-soft); font-size:.9rem; }
.spec-list{ display:flex; flex-direction:column; gap:.7rem; margin:1.4rem 0; }
.spec-list li{ display:flex; justify-content:space-between; padding:.7rem 0; border-bottom:1px solid var(--color-border); font-size:.92rem; }
.spec-list li b{ color:var(--ink-900); }
.qty-row{ display:flex; align-items:center; gap:1rem; margin-bottom:1.4rem; flex-wrap:wrap; }
.qty-select{ display:flex; align-items:center; border:1.5px solid var(--color-border); border-radius:var(--radius-pill); overflow:hidden; }
.qty-select button{ width:40px; height:40px; font-size:1.1rem; font-weight:700; }
.qty-select span{ width:44px; text-align:center; font-weight:700; }
.detail-actions{ display:flex; gap:.8rem; flex-wrap:wrap; }
.trust-mini{ display:flex; flex-wrap:wrap; gap:1.2rem; margin-top:1.6rem; }
.trust-mini div{ display:flex; align-items:center; gap:.5em; font-size:.82rem; color:var(--color-text-soft); font-weight:600; }
.trust-mini svg{ width:18px; height:18px; color:var(--blue-600); flex-shrink:0; }

/* related products */
.related-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:1.6rem; flex-wrap:wrap; gap:.6rem; }

/* ---------- 22. Toast ---------- */
.toast{
  position:fixed; left:50%; bottom:24px; transform:translate(-50%, 20px);
  background:var(--ink-900); color:var(--white);
  padding:.85rem 1.4rem; border-radius:var(--radius-pill);
  font-size:.88rem; font-weight:700;
  opacity:0; pointer-events:none;
  transition:opacity .3s var(--ease), transform .3s var(--ease);
  z-index:600;
  box-shadow:var(--shadow-lg);
}
.toast.show{ opacity:1; transform:translate(-50%, 0); }

/* ---------- 23. Misc responsive safety ---------- */
@media(max-width:480px){
  .hero-actions .btn{ width:100%; }
  .cta-banner-actions .btn{ width:100%; }
}

/* ---------- 24. Decorative blobs (Printify-style playful accents) ---------- */
.blob{
  position:absolute;
  border-radius:50%;
  filter:blur(2px);
  opacity:.5;
  z-index:0;
  pointer-events:none;
}
.section-decor{ position:relative; overflow:hidden; }
.section-decor > .container{ position:relative; z-index:1; }

/* ---------- 25. Horizontal scroll rail (categories / products) ---------- */
.rail-wrap{ position:relative; margin-inline:calc(-1 * 1.5rem); }
@media(min-width:768px){ .rail-wrap{ margin-inline:calc(-1 * 2.5rem); } }
.rail{
  display:flex;
  gap:1.1rem;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  scroll-padding-inline:1.5rem;
  padding:.3rem 1.5rem 1.2rem;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
@media(min-width:768px){ .rail{ scroll-padding-inline:2.5rem; padding-inline:2.5rem; } }
.rail::-webkit-scrollbar{ height:6px; }
.rail::-webkit-scrollbar-thumb{ background:var(--ink-200); border-radius:var(--radius-pill); }
.rail > *{ scroll-snap-align:start; flex-shrink:0; }
.rail.rail-cat > *{ width:min(220px, 72vw); }
.rail.rail-product > *{ width:min(240px, 68vw); }

/* ---------- 26. Brand / partner strip ---------- */
.brand-strip{
  display:flex;
  align-items:center;
  gap:clamp(2rem, 5vw, 3.6rem);
  overflow-x:auto;
  padding:.5rem 0;
  scrollbar-width:none;
}
.brand-strip::-webkit-scrollbar{ display:none; }
.brand-strip img{
  height:26px;
  width:auto;
  max-width:120px;
  object-fit:contain;
  flex-shrink:0;
  filter:grayscale(1);
  opacity:.55;
  transition:opacity .25s var(--ease), filter .25s var(--ease);
}
.brand-strip img:hover{ filter:grayscale(0); opacity:1; }
.brand-strip .xd-chip{
  flex-shrink:0;
  background:var(--ink-900);
  border-radius:var(--radius-sm);
  padding:.5rem .8rem;
  display:flex; align-items:center;
  opacity:.75;
  transition:opacity .25s var(--ease);
}
.brand-strip .xd-chip:hover{ opacity:1; }
.brand-strip .xd-chip img{ height:16px; filter:none; opacity:1; }
