/* ============================================================
   PEPKLIK — shared design system (static HTML build)
   Klik Pink + Pep Indigo · Bricolage Grotesque + Hanken Grotesk
   This file = tokens, reset, type, buttons, chips, forms,
   header, footer, cart drawer, product card.
   Page-specific layout lives in pages.css.
   ============================================================ */

:root {
  /* brand */
  --pep:        #2B1D48;   /* Pep Indigo — primary / text */
  --pep-2:      #52356F;   /* lighter indigo */
  --klik:       #F23C8C;   /* Klik Pink — accent */
  --klik-deep:  #B01560;   /* sale / hover */
  --klik-soft:  #F79CC6;
  --klik-soft2: #FBC5DE;

  /* surfaces */
  --bg:        #FBF6F4;    /* warm bone page bg */
  --panel:     #FFFFFF;
  --blush:     #FDE2EF;
  --lilac:     #E7E3F2;

  /* placeholder glyph shown behind image slots when a product has no image */
  --img-ph: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='48'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23D8CCE0'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='5'%20width='18'%20height='14'%20rx='2.5'/%3E%3Ccircle%20cx='8.5'%20cy='10'%20r='1.4'/%3E%3Cpath%20d='M21%2016l-5-5L5%2019'/%3E%3C/svg%3E");

  /* lines & ink */
  --border:    #EDE8F1;
  --line:      #F4F1F6;
  --muted:     #6B6280;
  --ink-muted: #9A8FA6;
  --success:   #3d8a6b;

  /* type */
  --font-h: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-b: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* radii */
  --r-card: 16px;
  --r-pill: 999px;
  --r-img:  16px;

  /* shadows */
  --shadow-hover: 0 22px 44px -24px rgba(43,29,72,.22);
  --shadow-drop:  0 12px 32px rgba(43,29,72,.12);
  --shadow-modal: 0 24px 60px rgba(43,29,72,.28);

  /* layout */
  --max: 1240px;
  --gutter: 24px;
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--pep);
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
[x-cloak] { display: none !important; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.section { padding: 82px 0; }
.section--sm { padding: 56px 0; }
.bg-bone   { background: var(--bg); }
.bg-white  { background: var(--panel); }
.bg-indigo { background: var(--pep); color: #fff; }
.bg-blush  { background: var(--blush); }
.bg-lilac  { background: var(--lilac); }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--klik);
  margin: 0;
}
.eyebrow--soft { color: var(--klik-soft); }
.display {
  font-family: var(--font-h);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.04;
  color: var(--pep);
  text-wrap: balance;
}
.display em { font-style: normal; color: var(--klik); }
.bg-indigo .display, .bg-indigo h1, .bg-indigo h2, .bg-indigo h3 { color: #fff; }
.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.bg-indigo .lede { color: rgba(255,255,255,.74); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--klik); color: #fff; }
.btn--primary:hover { background: var(--klik-deep); }
.btn--indigo { background: var(--pep); color: #fff; }
.btn--indigo:hover { background: var(--klik); }
.btn--blush { background: var(--blush); color: var(--klik-deep); }
.btn--blush:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--pep); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--klik); color: var(--klik); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 34px; font-size: 15px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.tlink {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 14px;
  color: var(--klik);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tlink .arrow { transition: transform .2s ease; }
.tlink:hover .arrow { transform: translateX(3px); }

/* ---------- chips & badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--lilac);
  color: var(--pep-2);
}
.chip--indigo { background: var(--pep); color: #fff; }
.chip--pink   { background: var(--klik); color: #fff; }
.chip--blush  { background: var(--blush); color: var(--klik-deep); }
.chip--ghost  { background: rgba(255,255,255,.16); color: #fff; }

.stars { color: var(--klik); letter-spacing: .04em; font-size: 13px; display: inline-flex; gap: 7px; align-items: center; }
.stars small { font-family: var(--font-b); font-size: 12px; color: var(--ink-muted); letter-spacing: 0; }

/* ---------- forms ---------- */
.input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 14px 20px;
  font-size: 15px;
  color: var(--pep);
  outline: none;
  transition: border-color .15s;
}
.input:focus { border-color: var(--klik); }
.input::placeholder { color: var(--ink-muted); }

/* quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: #fff;
  overflow: hidden;
}
.qty button {
  width: 44px; height: 48px;
  display: grid; place-items: center;
  color: var(--pep);
  font-size: 18px;
  transition: background .15s, color .15s;
}
.qty button:hover { background: var(--blush); color: var(--klik); }
.qty__n { min-width: 34px; text-align: center; font-family: var(--font-h); font-weight: 700; font-size: 15px; }
.qty--sm button { width: 36px; height: 38px; font-size: 15px; }

/* ============================================================
   ANNOUNCEMENT BAR  (partials/announcement)
   ============================================================ */
.anno {
  background: var(--pep);
  color: #fff;
  font-size: 12px;
  letter-spacing: .02em;
  overflow: hidden;
}
.anno__track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: anno-scroll 70s linear infinite;
}
.anno__half { display: flex; flex: none; }
.anno__item { padding: 11px 0; font-weight: 500; }
.anno__sep { color: var(--klik-soft); font-size: 10px; padding: 0 22px; align-self: center; }
@keyframes anno-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .anno__track { animation: none; } }

/* ============================================================
   HEADER  (partials/header)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.header__lead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header__search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 13px;
  color: var(--muted);
  max-width: 300px;
}
.header__search svg { color: var(--klik); flex-shrink: 0; }
.header__search input { border: 0; background: transparent; flex: 1; color: var(--pep); outline: none; }
.header__search input::placeholder { color: var(--muted); }

.logo {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -.01em;
  line-height: 1;
  text-align: center;
  color: var(--pep);
  text-transform: lowercase;
}
.logo b { font-weight: 700; color: var(--klik); }

.header__actions { display: flex; justify-content: flex-end; gap: 18px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--pep);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--blush); color: var(--klik); }
.bag-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pep); color: #fff;
  padding: 10px 18px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 13px;
  transition: background .18s;
}
.bag-btn:hover { background: var(--klik); }
.bag-btn__count {
  background: var(--klik); color: #fff;
  border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700;
  padding: 1px 7px; margin-left: 2px;
}
.hamburger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--pep); }

/* desktop nav row */
.nav-row { border-top: 1px solid var(--border); }
.nav {
  display: flex; gap: 4px; justify-content: center;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.nav__link {
  display: block; padding: 13px 16px;
  font-family: var(--font-h); font-weight: 600; font-size: 13px;
  letter-spacing: .02em; color: var(--pep);
  transition: color .15s;
}
.nav__link:hover { color: var(--klik); }
.nav__link--new  { color: var(--klik); }
.nav__link--sale { color: var(--klik-deep); }
.nav__link sup { font-size: 9px; margin-left: 4px; }

/* mobile search row (CLAUDE.md: full-width row UNDER the header, all pages) */
.header__msearch {
  display: none;
  align-items: center; gap: 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 11px 16px;
  margin: 0 16px 12px;
  font-size: 14px; color: var(--muted);
}
.header__msearch svg { color: var(--klik); flex-shrink: 0; }
.header__msearch input { border: 0; background: transparent; flex: 1; color: var(--pep); outline: none; }

/* ============================================================
   FOOTER  (partials/footer)
   ============================================================ */
.site-footer { background: var(--pep); color: rgba(255,255,255,.66); padding: 64px 0 30px; }
.footer__wrap { display: flex; flex-direction: column; gap: 28px; }
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__logo { font-family: var(--font-h); font-weight: 700; font-size: 28px; color: #fff; text-transform: lowercase; letter-spacing: -.01em; }
.footer__logo b { color: var(--klik); }
.footer__blurb { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.6); max-width: 320px; margin: 0; }
.footer__tag { font-family: var(--font-h); font-weight: 600; font-size: 14px; color: #fff; }
.footer__tag em { font-style: normal; color: var(--klik); }
.social { display: flex; gap: 8px; margin-top: 6px; }
.social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 600; color: #fff;
  transition: background .15s, border-color .15s;
}
.social a:hover { background: var(--klik); border-color: var(--klik); }
.social a svg { width: 18px; height: 18px; display: block; }
.footer__col h4 { font-family: var(--font-h); font-weight: 700; font-size: 16px; color: #fff; margin: 0 0 14px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: rgba(255,255,255,.62); transition: color .15s; }
.footer__col a:hover { color: var(--klik); }
.footer__disclaim { font-size: 12px; line-height: 1.65; color: rgba(255,255,255,.4); margin: 0; }
.footer__bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  font-size: 12px; padding-top: 6px;
}
.footer__copy { color: rgba(255,255,255,.5); }
.pay { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; align-items: center; }
.pay__icon { display: inline-flex; line-height: 0; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.pay__icon svg { height: 26px; width: auto; display: block; }
.footer__legal { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
.footer__legal a { font-size: 12px; color: rgba(255,255,255,.5); }
.footer__legal a:hover { color: var(--klik); }

/* ============================================================
   PRODUCT CARD  (shared across home / category / related)
   ============================================================ */
.pcard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  color: var(--pep);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.pcard:hover { border-color: var(--klik); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pcard__media { aspect-ratio: 4/5; position: relative; overflow: hidden; background: var(--bg) var(--img-ph) center / 46px no-repeat; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__flag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--pep); color: #fff;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-family: var(--font-h); font-weight: 600; font-size: 10px;
  letter-spacing: .06em; text-transform: uppercase;
}
.pcard__flag--sale { background: var(--klik-deep); }
.pcard__flag--new  { background: var(--klik); }
.pcard__wish {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.95); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--pep);
  transition: background .15s, color .15s, border-color .15s;
}
.pcard__wish:hover { background: var(--klik); color: #fff; border-color: var(--klik); }
.pcard__quickadd {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  background: var(--pep); color: #fff;
  border-radius: var(--r-pill); padding: 11px; text-align: center;
  font-family: var(--font-h); font-weight: 600; font-size: 12px; letter-spacing: .03em;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .2s, transform .2s, background .15s;
}
.pcard__quickadd:hover { background: var(--klik); }
.pcard:hover .pcard__quickadd { opacity: 1; transform: none; pointer-events: auto; }
.pcard__body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.pcard__imglink { display: block; width: 100%; height: 100%; }
a.pcard__name:hover { color: var(--klik); }
.pcard__cat { font-family: var(--font-b); font-weight: 600; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 7px; }
.pcard__name { font-family: var(--font-h); font-weight: 700; font-size: 17px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 8px; }
.pcard__stars { margin-bottom: 10px; }
.pcard__priced {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
}
.price { font-family: var(--font-h); font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--pep); }
.price--sale { color: var(--klik-deep); }
.price--was { font-family: var(--font-b); font-weight: 400; font-size: 13px; color: var(--ink-muted); text-decoration: line-through; }

/* swatch dots on card */
.swatch-dots { display: flex; gap: 5px; margin-bottom: 10px; }
.swatch-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); display: inline-block; }

/* product grid */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pgrid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-muted); padding: 18px 0; }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--klik); }
.crumbs span.sep { opacity: .5; }
.crumbs .cur { color: var(--pep); }

/* ============================================================
   CART DRAWER + MOBILE NAV DRAWER  (partials/cart-drawer, mobile-nav)
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(43,29,72,.42);
  backdrop-filter: blur(2px);
}
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 100;
  width: 420px; max-width: 92vw;
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-modal);
}
.drawer--left { right: auto; left: 0; }
/* slide transition helpers (Alpine x-transition targets) */
.dt { transition: transform .32s cubic-bezier(.4,0,.2,1); }
.dt-off-right { transform: translateX(100%); }
.dt-off-left  { transform: translateX(-100%); }
.dt-on { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--border);
}
.drawer__title { font-family: var(--font-h); font-weight: 700; font-size: 20px; }
.drawer__close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--pep); transition: background .15s; }
.drawer__close:hover { background: var(--blush); color: var(--klik); }
.drawer__ship {
  display: flex; align-items: center; gap: 8px;
  background: var(--blush); color: var(--klik-deep);
  font-size: 12.5px; font-weight: 600; padding: 11px 24px;
}
.drawer__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { border-top: 1px solid var(--border); padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; }

.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line__img { width: 76px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--bg); }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__cat { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 3px; }
.cart-line__name { font-family: var(--font-h); font-weight: 700; font-size: 15px; line-height: 1.2; }
.cart-line__opt { font-size: 12.5px; color: var(--muted); margin: 3px 0 10px; }
.cart-line__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-line__remove { font-size: 12px; color: var(--ink-muted); }
.cart-line__remove:hover { color: var(--klik-deep); }

.subtotal-row { display: flex; align-items: baseline; justify-content: space-between; }
.subtotal-row .lbl { font-family: var(--font-h); font-weight: 700; font-size: 16px; }
.subtotal-row .val { font-family: var(--font-h); font-weight: 700; font-size: 20px; }
.drawer__note { font-size: 12px; color: var(--ink-muted); text-align: center; margin: 0; }

.drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 40px; color: var(--muted); }

/* mobile nav drawer links */
.mnav__links { display: flex; flex-direction: column; padding: 8px 8px 24px; }
.mnav__links a { padding: 15px 16px; font-family: var(--font-h); font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); }
.mnav__links a:hover { color: var(--klik); }

/* ============================================================
   RESPONSIVE — header / footer / cards
   ============================================================ */
@media (max-width: 980px) {
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .header__row { grid-template-columns: auto 1fr auto; padding: 14px 16px; gap: 12px; }
  .header__search { display: none; }
  .header__actions .icon-btn--account { display: none; }
  .hamburger { display: inline-flex; }
  .nav-row { display: none; }
  .header__msearch { display: flex; }     /* search becomes its own row under header */
  .logo { font-size: 26px; text-align: left; }
  .header__actions { gap: 8px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pgrid--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section { padding: 54px 0; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bottom { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .footer__legal { justify-content: center; }
  .pay { justify-content: center; }
}
@media (max-width: 480px) {
  .pgrid, .pgrid--3 { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
