/* ===========================================================
   Ajusti: Wear Your Culture
   Base styles for the whole storefront
   =========================================================== */

:root {
  --coral: #e9574e;
  --coral-dark: #cf3f36;
  --coral-soft: #fbe6e1;
  --gold: #c9a227;
  --ink: #1f1a17;
  --ink-soft: #6b625c;
  --line: #eadfd8;
  --cream: #fdf6f1;
  --cream-deep: #f8ece4;
  --white: #fff;
  --green: #2f9e60;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(31, 26, 23, .07);
  --shadow-lg: 0 18px 50px rgba(31, 26, 23, .12);
  --wrap: 1200px;
  --head: 'Playfair Display', Georgia, serif;
  --body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

/* The shell wrappers generate no box of their own, so the injected
   header can stick to the viewport rather than to its container. */
[data-shell] { display: contents; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(233, 87, 78, .28); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }

/* ---------- announcement + header ---------- */
.topbar {
  background: var(--ink); color: #f6efe9; font-size: .8rem; letter-spacing: .02em;
  text-align: center; padding: .55rem 20px;
}
.topbar strong { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 68; /* above the nav scrim so the close button stays tappable */
  /* No backdrop-filter here: it would become the containing block for the
     fixed mobile nav drawer and clip it to the header's height. */
  background: #fdf6f1;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: .9rem 20px; max-width: var(--wrap); margin: 0 auto; }

.logo { display: flex; align-items: center; gap: .6rem; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { font-family: var(--head); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.logo-text span { color: var(--coral); }
.logo-tag { display: block; font-family: var(--body); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }

.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { font-size: .92rem; font-weight: 500; padding: .35rem 0; position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--coral); border-radius: 2px; transition: right .25s ease;
}
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav a.active { color: var(--coral); }

.header-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  position: relative; transition: background .2s ease;
}
.icon-btn:hover { background: var(--coral-soft); }
.icon-btn svg { width: 21px; height: 21px; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--coral); color: #fff; border-radius: 999px;
  font-size: .68rem; font-weight: 700; display: grid; place-items: center;
}
.menu-toggle, .nav-close { display: none; }

/* mobile nav */
@media (max-width: 900px) {
  /* Off-canvas drawer. It is display:none when closed so it never adds
     a sideways scroll to the page, and slides in on open. */
  .nav {
    display: none;
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--white); flex-direction: column; gap: 0; padding: 5rem 1.5rem;
    box-shadow: var(--shadow-lg); z-index: 70;
  }
  .nav.open { display: flex; animation: navIn .28s ease both; }
  @keyframes navIn { from { transform: translateX(100%); } to { transform: none; } }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .menu-toggle { display: grid; }
  .nav-close { display: grid; position: absolute; top: 1rem; right: 1rem; }
  .nav-close:hover { background: var(--coral-soft); }
  .header-actions { margin-left: auto; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(31,26,23,.4); z-index: 65; }
}

/* ---------- search overlay ---------- */
.search-panel {
  display: none; border-bottom: 1px solid var(--line); background: var(--white);
  position: sticky; top: 63px; z-index: 55;
}
.search-panel.open { display: block; }
.search-panel form { display: flex; gap: .6rem; max-width: var(--wrap); margin: 0 auto; padding: 1rem 20px; }
.search-panel input {
  flex: 1; padding: .85rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--cream);
}
.search-panel input:focus { outline: none; border-color: var(--coral); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 0;   /* it is a <section>, so opt out of the global section padding */
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}

/* ---------- hero carousel ---------- */
/* Slides share one grid cell, so the section is as tall as the tallest
   slide and nothing jumps when they change. */
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity .55s ease, visibility .55s;
}
.hero-slide.on { opacity: 1; visibility: visible; }

/* One control bar under the slides: at ~1080px the side arrows sat on top
   of the headline, and a single centred row works at every width. */
.hero-controls {
  position: absolute; left: 0; right: 0; bottom: 20px; z-index: 6;
  display: flex; justify-content: center; align-items: center; gap: .9rem;
}
.hero-arrow {
  width: 38px; height: 38px; border-radius: 50%; background: var(--white);
  color: var(--ink); font-size: 1.4rem; line-height: 1; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: background .2s ease, color .2s ease, scale .2s ease;
}
.hero-arrow:hover { background: var(--coral); color: #fff; scale: 1.06; }

.hero-dots { display: flex; gap: .5rem; }
.hero-dot-btn {
  width: 9px; height: 9px; border-radius: 999px; background: rgba(31, 26, 23, .22);
  padding: 0;
  transition: width .3s ease, background .3s ease;
}
.hero-dot-btn.on { width: 28px; background: var(--coral); }
.hero-dot-btn:hover { background: var(--coral-dark); }
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 3.5rem 20px 3rem;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--white);
  border-radius: 999px; padding: .45rem 1rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--coral); box-shadow: var(--shadow);
}
.hero h1 { margin: 1.3rem 0 1rem; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero p { max-width: 34ch; font-size: 1.02rem; color: var(--ink-soft); }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }

.hero-art { position: relative; display: grid; place-items: end center; min-height: 480px; align-self: end; }
/* Coral disc sits behind the cut-out model, as in the reference layout. */
.hero-blob {
  /* Centred with offsets rather than a translate, so the animations below
     are free to own the transform property without fighting this rule. */
  position: absolute; left: calc(50% - 200px); top: calc(42% - 200px);
  width: 400px; height: 400px; border-radius: 50%;
  background: var(--disc, #c8402f);
  background-image: radial-gradient(circle at 46% 38%, rgba(255,255,255,.16), rgba(0,0,0,.18));
}
.hero-blob::after {
  content: ''; position: absolute; inset: -26px; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--disc, #c8402f) 40%, transparent);
}
.hero-dot { position: absolute; border-radius: 50%; background: var(--coral); opacity: .75; }
.hero-dot.d1 { width: 10px; height: 10px; top: 8%; right: 18%; background: var(--disc, var(--coral)); }
.hero-dot.d2 { width: 7px; height: 7px; top: 34%; right: 5%; background: var(--gold); }
.hero-dot.d3 { width: 13px; height: 13px; bottom: 26%; left: 4%; background: var(--gold); opacity: .55; }
.hero-art img {
  position: relative; max-height: var(--art-h, 560px); width: auto;
  filter: drop-shadow(0 26px 34px rgba(31, 26, 23, .28));
}

.hero-proof {
  /* Centred with auto margins rather than a translate: the entrance
     animation owns transform, and would otherwise cancel the centring. */
  position: absolute; left: 0; right: 0; bottom: 8px;
  margin-inline: auto; width: max-content; max-width: min(340px, calc(100% - 12px));
  background: var(--white); border-radius: 999px; padding: .6rem 1.1rem;
  display: flex; align-items: center; gap: .75rem; box-shadow: var(--shadow-lg);
}
.avatars { display: flex; }
.avatars span {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px;
  background-size: cover; background-position: center top;
}
.avatars span:first-child { margin-left: 0; }
.hero-proof b { display: block; font-size: .82rem; line-height: 1.3; }
.hero-proof small { font-size: .72rem; color: var(--ink-soft); }
.stars { color: var(--gold); letter-spacing: 1px; font-size: .78rem; }

/* ---------- trust strip ---------- */
.trust {
  max-width: var(--wrap); margin: -1.2rem auto 0; position: relative; z-index: 5;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.4rem 1rem;
}
.trust > div { display: flex; gap: .85rem; align-items: center; padding: .4rem 1rem; }
.trust > div + div { border-left: 1px solid var(--line); }
.trust-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--coral-soft); display: grid; place-items: center; }
.trust-ico svg { width: 21px; height: 21px; stroke: var(--coral); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust b { display: block; font-size: .88rem; }
.trust small { color: var(--ink-soft); font-size: .78rem; line-height: 1.35; display: block; }

/* ---------- section headers ---------- */
section { padding: 3.2rem 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: .35rem 0 0; color: var(--ink-soft); font-size: .92rem; }
.link-more { color: var(--coral); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }
.link-more:hover { gap: .7rem; }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cat-card {
  border-radius: var(--radius); padding: 1.1rem; min-height: 215px;
  display: flex; flex-direction: column; gap: .2rem;
  position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat-card img {
  position: absolute; right: -6px; bottom: -6px; width: 58%; height: 56%;
  object-fit: cover; border-radius: 14px 0 14px 0;
}
.cat-card b { font-family: var(--head); font-size: 1.1rem; position: relative; z-index: 2; max-width: 8ch; line-height: 1.2; }
.cat-card small { position: relative; z-index: 2; color: var(--ink-soft); font-size: .76rem; max-width: 8ch; }
.cat-card .arrow {
  position: relative; z-index: 2; margin-top: auto; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--coral); display: grid; place-items: center; font-size: .95rem;
}

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1.5px solid transparent; transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
  display: flex; flex-direction: column; position: relative;
}
.product-card:hover { border-color: var(--coral); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pc-media { position: relative; aspect-ratio: 1 / 1.12; overflow: hidden; background: var(--cream-deep); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .pc-media img { transform: scale(1.06); }
.pc-tags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: .35rem; }
.tag {
  font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 6px; color: #fff; background: var(--coral); width: fit-content;
}
.tag.new { background: var(--green); }
.tag.sale { background: var(--gold); }
.wish {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; transition: background .2s ease;
}
.wish svg { width: 17px; height: 17px; stroke: var(--ink); fill: none; stroke-width: 1.7; }
.wish.on svg { fill: var(--coral); stroke: var(--coral); }
.wish:hover { background: #fff; }

.pc-body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.pc-cat { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.pc-name { font-size: .95rem; font-weight: 600; line-height: 1.35; }
.pc-price { font-weight: 700; color: var(--coral); font-size: 1.02rem; display: flex; align-items: baseline; gap: .5rem; }
.pc-price del { color: var(--ink-soft); font-weight: 500; font-size: .82rem; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .3rem; }
.swatches { display: flex; gap: .35rem; }
.swatches i { width: 13px; height: 13px; border-radius: 50%; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset; }
.add-btn {
  width: 38px; height: 38px; border: 1.5px solid var(--line); border-radius: 10px;
  display: grid; place-items: center; transition: all .2s ease;
}
.add-btn svg { width: 18px; height: 18px; stroke: var(--coral); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.add-btn:hover { background: var(--coral); border-color: var(--coral); }
.add-btn:hover svg { stroke: #fff; }
.pc-rating { font-size: .76rem; color: var(--ink-soft); display: flex; align-items: center; gap: .3rem; }

/* ---------- deal banner ---------- */
.deal {
  background: linear-gradient(100deg, var(--coral) 0%, #f0705f 100%);
  border-radius: 22px; color: #fff; overflow: hidden; position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 230px;
}
.deal-copy { padding: 2.2rem 2.4rem; position: relative; z-index: 2; }
.deal-copy h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: .3rem; }
.deal-copy p { margin: 0 0 1.3rem; opacity: .92; }
.deal .btn-ghost { background: #fff; border-color: #fff; }
.deal-stamp {
  position: absolute; left: 1.6rem; top: 50%; transform: translateY(-50%);
  width: 104px; height: 104px; border-radius: 50%; background: #fff; color: var(--coral);
  display: grid; place-items: center; text-align: center; font-size: .74rem; font-weight: 700;
  line-height: 1.25; border: 3px dashed var(--coral-soft);
}
.deal-copy.with-stamp { padding-left: 9.5rem; }
.deal-img { height: 100%; }
.deal-img img { width: 100%; height: 100%; object-fit: cover; min-height: 230px; }

/* ---------- perks ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: var(--white); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.perks > div { display: flex; gap: .8rem; align-items: center; padding: .3rem .8rem; }
.perks > div + div { border-left: 1px solid var(--line); }
.perks b { display: block; font-size: .88rem; }
.perks small { display: block; color: var(--ink-soft); font-size: .78rem; line-height: 1.35; }
.perks .trust-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--coral-soft); display: grid; place-items: center; }
.perks .trust-ico svg { width: 21px; height: 21px; stroke: var(--coral); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.quote { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.quote p { font-size: .95rem; }
.quote .who { display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem; }
.quote .who div { width: 40px; height: 40px; border-radius: 50%; background: var(--coral-soft); color: var(--coral); display: grid; place-items: center; font-weight: 700; }
.quote .who b { display: block; font-size: .88rem; }
.quote .who small { color: var(--ink-soft); font-size: .76rem; }

/* ---------- newsletter ---------- */
.newsletter { background: var(--ink); color: #f6efe9; border-radius: 22px; padding: 2.6rem; text-align: center; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #c9bfb7; max-width: 46ch; margin: 0 auto 1.5rem; }
.newsletter form { display: flex; gap: .6rem; max-width: 460px; margin: 0 auto; }
.newsletter input { flex: 1; padding: .9rem 1.2rem; border-radius: 999px; border: 0; }
.newsletter input:focus { outline: 2px solid var(--coral); }

/* ---------- footer ---------- */
.site-footer { background: var(--cream-deep); border-top: 1px solid var(--line); padding: 3rem 0 1.4rem; margin-top: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
.foot-grid h4 { font-family: var(--body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.foot-grid a { font-size: .9rem; color: var(--ink-soft); }
.foot-grid a:hover { color: var(--coral); }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.socials svg { width: 17px; height: 17px; stroke: var(--ink); fill: none; stroke-width: 1.7; }
.socials a:hover { background: var(--coral); }
.socials a:hover svg { stroke: #fff; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--ink-soft); flex-wrap: wrap; }

/* ---------- page banner ---------- */
.page-head { background: var(--cream-deep); padding: 2.6rem 0; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .3rem; }
.crumbs { font-size: .84rem; color: var(--ink-soft); }
.crumbs a:hover { color: var(--coral); }

/* ---------- shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
.filters { background: var(--white); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); position: sticky; top: 90px; }
.filter-block + .filter-block { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.filter-block h4 { font-family: var(--body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.filter-block label { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; font-size: .9rem; cursor: pointer; }
.filter-block input[type=checkbox], .filter-block input[type=radio] { accent-color: var(--coral); width: 16px; height: 16px; }
.filter-block input[type=range] { width: 100%; accent-color: var(--coral); }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.shop-toolbar select { padding: .6rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); }
.filter-toggle { display: none; }
.empty { text-align: center; padding: 4rem 1rem; color: var(--ink-soft); grid-column: 1 / -1; }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.pdp-media { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pdp-media img { width: 100%; aspect-ratio: 1/1.05; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .7rem; }
.pdp-thumbs img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.pdp-thumbs img.sel { border-color: var(--coral); }
.pdp h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .4rem; }
.pdp-price { font-size: 1.7rem; font-weight: 700; color: var(--coral); display: flex; align-items: baseline; gap: .7rem; margin: .8rem 0; }
.pdp-price del { font-size: 1rem; color: var(--ink-soft); font-weight: 500; }
.opt-group { margin: 1.3rem 0; }
.opt-group h4 { font-family: var(--body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .5rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .86rem; background: var(--white); }
.chip.sel { border-color: var(--coral); background: var(--coral-soft); color: var(--coral-dark); font-weight: 600; }
.color-dots { display: flex; gap: .6rem; }
.color-dots button { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset; border: 2px solid transparent; }
.color-dots button.sel { border-color: var(--coral); box-shadow: 0 0 0 2px #fff inset, 0 0 0 1px rgba(0,0,0,.12) inset; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }
.qty button { width: 38px; height: 42px; font-size: 1.1rem; }
.qty span { width: 34px; text-align: center; font-weight: 600; }
.pdp-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.4rem 0; }
.pdp-meta { border-top: 1px solid var(--line); padding-top: 1.2rem; display: grid; gap: .5rem; font-size: .88rem; color: var(--ink-soft); }
.accordion { border-top: 1px solid var(--line); }
.accordion button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; font-weight: 600; text-align: left; }
.accordion .body { display: none; padding-bottom: 1rem; color: var(--ink-soft); font-size: .92rem; }
.accordion .body.open { display: block; }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.cart-list { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 1rem; padding: 1.1rem; align-items: center; }
.cart-row + .cart-row { border-top: 1px solid var(--line); }
.cart-row img { width: 90px; height: 100px; object-fit: cover; border-radius: 10px; }
.cart-row .opt { font-size: .8rem; color: var(--ink-soft); }
.cart-row .rm { font-size: .8rem; color: var(--coral); margin-top: .35rem; }
.summary { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .92rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .9rem; font-size: 1.15rem; font-weight: 700; }
.promo { display: flex; gap: .5rem; margin: 1rem 0; }
.promo input { flex: 1; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; }

/* ---------- forms / contact / about ---------- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.7rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--cream);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--coral); background: #fff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split img { border-radius: 22px; box-shadow: var(--shadow-lg); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-row b { display: block; font-family: var(--head); font-size: 2rem; color: var(--coral); }
.stat-row small { color: var(--ink-soft); }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s ease; }
.post:hover { transform: translateY(-4px); }
.post img { aspect-ratio: 16/11; object-fit: cover; }
.post .body { padding: 1.2rem; }
.post .kicker { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); font-weight: 700; }
.post h3 { font-size: 1.15rem; margin: .5rem 0 .4rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140%);
  background: var(--ink); color: #fff; padding: .85rem 1.4rem; border-radius: 999px;
  font-size: .9rem; z-index: 200; box-shadow: var(--shadow-lg); transition: transform .35s cubic-bezier(.2,.9,.3,1.3);
  display: flex; align-items: center; gap: .6rem;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 2.2rem; }
  .hero-art { min-height: 400px; margin-top: 1.5rem; }
  .hero p { max-width: none; }
  .trust, .perks { grid-template-columns: repeat(2, 1fr); gap: .4rem; }
  .trust > div + div, .perks > div + div { border-left: 0; }
  .trust > div:nth-child(n+3), .perks > div:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 1rem; }
  .pdp, .cart-layout, .split, .deal { grid-template-columns: 1fr; }
  .deal-img { display: none; }
  /* Stamp becomes part of the flow instead of floating over the heading,
     with its own margins so the rounded banner corner cannot clip it. */
  .deal-stamp { position: static; transform: none; width: 88px; height: 88px; margin: 2rem 0 0 2.4rem; }
  .deal-copy.with-stamp { padding: 1.2rem 2.4rem 2.2rem; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: static; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
}
@media (max-width: 620px) {
  .logo-tag { display: none; }   /* the tagline wraps awkwardly at phone width */
  .logo-text { font-size: 1.35rem; }
  .hero-proof { max-width: calc(100% - 12px); padding: .55rem .8rem; gap: .5rem; }
  .hero-proof b { font-size: .78rem; }
  .hero-proof small { font-size: .68rem; }
  .avatars span { width: 26px; height: 26px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid, .blog-grid, .two-col, .stat-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .newsletter form { flex-direction: column; }
  .newsletter form .btn { width: 100%; }
  .cart-row { grid-template-columns: 70px 1fr; }
  .cart-row img { width: 70px; height: 80px; }
  .hero-proof { font-size: .85rem; }
}


/* ===========================================================
   Motion
   Everything is visible by default; the reveal styles only
   engage once JS adds .js to <html>, and the whole layer is
   switched off for anyone who prefers reduced motion.
   =========================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22, .8, .3, 1), transform .7s cubic-bezier(.22, .8, .3, 1);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
  }
  .js [data-reveal="left"]  { transform: translateX(-32px); }
  .js [data-reveal="right"] { transform: translateX(32px); }
  .js [data-reveal="zoom"]  { transform: scale(.94); }
  .js [data-reveal].in { opacity: 1; transform: none; }

  /* hero entrance */
  .js .hero-slide.anim .hero-copy > *,
  .js .hero-slide.anim .hero-art > .hero-proof { animation: heroIn .9s cubic-bezier(.22, .8, .3, 1) both; }
  .js .hero-slide.anim .eyebrow { animation-delay: .05s; }
  .js .hero-slide.anim h1       { animation-delay: .15s; }
  .js .hero-slide.anim p        { animation-delay: .25s; }
  .js .hero-slide.anim .hero-cta{ animation-delay: .35s; }
  .js .hero-slide.anim .hero-proof { animation-delay: .5s; }
  @keyframes heroIn  { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes blobIn  { from { opacity: 0; transform: scale(.75); } to { opacity: 1; transform: none; } }

  /* idle life: a slow float on the model, a breathing disc, drifting dots */
  .js .hero-slide.anim .hero-art img { animation: heroIn .9s cubic-bezier(.22, .8, .3, 1) .2s both,
                                        float 7s ease-in-out 1.1s infinite alternate; }
  .js .hero-slide.anim .hero-blob    { animation: blobIn 1s cubic-bezier(.22, .8, .3, 1) both,
                                        breathe 9s ease-in-out 1.1s infinite alternate; }
  .hero-dot     { animation: drift 6s ease-in-out infinite alternate; }
  .hero-dot.d2  { animation-duration: 8s; animation-delay: .6s; }
  .hero-dot.d3  { animation-duration: 7s; animation-delay: 1.2s; }
  @keyframes float   { to { transform: translateY(-14px); } }
  @keyframes breathe { to { transform: scale(1.035); } }
  @keyframes drift   { to { transform: translateY(-16px); } }

  .toast { transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); }
}

/* Header condenses once you scroll past the top. */
.site-header { transition: box-shadow .3s ease, padding .3s ease; }
.site-header.stuck { box-shadow: 0 6px 24px rgba(31, 26, 23, .08); }
.site-header.stuck .header-inner { padding-top: .55rem; padding-bottom: .55rem; }

/* Progress bar for how far down the page you are. */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%;
  transform: scaleX(0); background: linear-gradient(90deg, var(--coral), var(--gold));
  z-index: 90; pointer-events: none;
}

/* Floating WhatsApp button. Sits bottom-left so it never collides with
   the back-to-top button on the right. */
.wa-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 0;
  height: 54px; padding: 0 15px; border-radius: 999px;
  background: #25d366; color: #fff; font-weight: 600; font-size: .92rem;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
  transition: gap .25s ease, padding .25s ease, transform .2s ease, box-shadow .2s ease;
}
.wa-fab svg { width: 26px; height: 26px; flex: none; }
.wa-fab span {
  max-width: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .3s ease;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 211, 102, .5); gap: .55rem; }
.wa-fab:hover span { max-width: 140px; }
.wa-fab::before {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  background: #25d366; z-index: -1;
}

@media (prefers-reduced-motion: no-preference) {
  .wa-fab::before { animation: waPulse 2.6s ease-out infinite; }
  @keyframes waPulse {
    0%   { transform: scale(1); opacity: .55; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
  }
}

/* Back-to-top button, revealed after the first screen. */
.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--coral); color: #fff; display: grid; place-items: center; z-index: 80;
  box-shadow: 0 10px 24px rgba(233, 87, 78, .35);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--coral-dark); }
.to-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 880px) {
  .hero-blob { width: 300px; height: 300px; left: calc(50% - 150px); top: calc(42% - 150px); }
  .hero-art img { max-height: min(var(--art-h, 430px), 430px); }
  .to-top { right: 14px; bottom: 14px; }
  .wa-fab { left: 14px; bottom: 14px; height: 50px; padding: 0 13px; }
  .wa-fab span { display: none; }   /* icon only on phones */
}


/* Small phones: shrink the header so the logo and all five actions fit
   without a sideways scroll (they overflowed at 320–375px). */
@media (max-width: 430px) {
  .header-inner { gap: .5rem; padding: .7rem 12px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-text { font-size: 1.2rem; }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 19px; height: 19px; }
  .header-actions { gap: 0; }
  .badge { min-width: 16px; height: 16px; font-size: .62rem; }
  .wrap { padding: 0 14px; }
  .topbar { font-size: .72rem; padding: .5rem 12px; }
}



/* Narrowest phones (320–380px): two-up strips and the four-column footer
   run out of room, so everything stacks. */
@media (max-width: 380px) {
  .trust, .perks, .foot-grid { grid-template-columns: 1fr; }
  .trust > div + div, .perks > div + div {
    border-left: 0; border-top: 1px solid var(--line); padding-top: .9rem;
  }
  .foot-grid { gap: 1.6rem; }
  .foot-bottom { flex-direction: column; gap: .5rem; }
}


/* ---------- install banner ---------- */
.install-banner {
  position: fixed; left: 50%; bottom: 18px; translate: -50% 0; z-index: 95;
  width: min(440px, calc(100vw - 28px));
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .8rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: .85rem 1rem; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.install-banner.show { opacity: 1; transform: none; pointer-events: auto; }
.install-banner img { border-radius: 10px; }
.install-banner b { display: block; font-size: .9rem; }
.install-banner small { color: var(--ink-soft); font-size: .76rem; line-height: 1.3; display: block; }
.install-close { font-size: 1.4rem; line-height: 1; color: var(--ink-soft); padding: 0 .2rem; }
.install-close:hover { color: var(--ink); }

@media (max-width: 430px) {
  .install-banner { bottom: 74px; grid-template-columns: auto 1fr auto; padding: .75rem .85rem; }
  .install-banner .install-close { grid-column: 3; grid-row: 1; align-self: start; }
  .install-banner [data-install] { grid-column: 1 / -1; width: 100%; }
}


/* Carousel on small screens: no arrows (swipe instead), dots sit clear of
   the stacked layout. */
@media (max-width: 700px) {
  .hero-controls { bottom: 14px; gap: .7rem; }
  .hero-arrow { width: 34px; height: 34px; font-size: 1.25rem; }
}


/* Portrait tablets and split-screen windows (620–760px): three product
   columns leave about 180px per card, which is too tight to read. */
@media (max-width: 760px) {
  .product-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Stacked hero: without the side-by-side layout the section was mostly
   empty space, so tighten the padding and let the art size itself. */
@media (max-width: 880px) {
  /* Stacked rows stretch by default, which padded dead space above the
     copy; start-align them so the hero is only as tall as its content. */
  .hero-inner { padding: 2rem 20px 3.4rem; gap: 1.2rem; align-content: start; }
  /* Centre the copy once it sits above the artwork rather than beside it. */
  .hero-copy { text-align: center; }
  .hero-copy p { margin-inline: auto; max-width: 46ch; }
  .hero-cta { justify-content: center; }
  .hero-slide { align-self: start; }
  .hero-art { min-height: 0; }
  .hero h1 { margin: 1rem 0 .8rem; }
  .hero-cta { margin-top: 1.4rem; }
}

/* Smallest phones last, so it wins over the two-column rules above:
   at 320px a two-up grid leaves 136px per card. */
@media (max-width: 360px) {
  .product-grid, .cat-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
