/* ============================================================
   KOKA PEARLS — Core stylesheet (base, layout, components)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-900);
  background: var(--pearl-050);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--sapphire-600); outline-offset: 3px; border-radius: 2px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: var(--lh-tight); letter-spacing: -0.01em; color: var(--ink-900); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); font-weight: 600; }
p { text-wrap: pretty; }

.display { font-family: var(--font-display); font-size: var(--fs-display); font-weight: 500; line-height: 0.98; letter-spacing: -0.015em; }
.lead { font-size: var(--fs-lead); color: var(--ink-700); line-height: 1.6; }
.serif { font-family: var(--font-display); }
.muted { color: var(--greige-500); }

/* tracked-caps eyebrow label — the luxe signature */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--sapphire-700);
}
.eyebrow--muted { color: var(--greige-500); }
.eyebrow--gold { color: var(--gold-600); }

/* hairline divider with center diamond */
.rule-diamond { display: flex; align-items: center; justify-content: center; gap: var(--s-3); color: var(--platinum-500); }
.rule-diamond::before, .rule-diamond::after { content: ""; height: 1px; width: 56px; background: var(--platinum-300); }
.rule-diamond i { width: 6px; height: 6px; background: var(--platinum-500); transform: rotate(45deg); display: block; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--blue { background: var(--sapphire-800); color: var(--pearl-050); }
.section--blue h1, .section--blue h2, .section--blue h3 { color: var(--pearl-000); }
.section--pearl { background: var(--pearl-100); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }

.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { display: block; margin-bottom: var(--s-3); }
.section-head h2 { margin-bottom: var(--s-3); }
.section-head p { color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  padding: 16px 30px; border-radius: var(--r-pill);
  transition: all 0.4s var(--ease); white-space: nowrap; line-height: 1;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--sapphire-700); color: var(--pearl-050); }
.btn--primary:hover { background: var(--sapphire-900); box-shadow: var(--sh-blue); transform: translateY(-2px); }
.btn--secondary { background: transparent; color: var(--ink-900); box-shadow: inset 0 0 0 1.5px var(--ink-900); }
.btn--secondary:hover { background: var(--ink-900); color: var(--pearl-050); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--sapphire-700); padding-inline: 8px; }
.btn--ghost:hover { color: var(--sapphire-900); gap: var(--s-3); }
.btn--gold { background: var(--gold-foil); color: #3a2c10; }
.btn--gold:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn--light { background: var(--pearl-050); color: var(--ink-900); }
.btn--light:hover { background: var(--pearl-000); transform: translateY(-2px); }
.btn--on-blue { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5); color: var(--pearl-050); }
.btn--on-blue:hover { background: var(--pearl-050); color: var(--sapphire-900); box-shadow: none; }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 19px 40px; }
.btn--sm { padding: 11px 20px; font-size: var(--fs-2xs); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.link-underline { position: relative; font-weight: 600; font-size: var(--fs-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; padding-bottom: 3px; }
.link-underline::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.link-underline:hover::after { transform: scaleX(1); }

/* ---------- Badges / tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill); line-height: 1;
}
.badge--new { background: var(--sapphire-700); color: #fff; }
.badge--best { background: var(--gold-foil); color: #3a2c10; }
.badge--cod { background: var(--cod-050); color: var(--cod-600); box-shadow: inset 0 0 0 1px rgba(27,94,74,0.25); }
.badge--sale { background: var(--danger-600); color: #fff; }
.badge--soft { background: var(--pearl-150); color: var(--ink-700); }
.badge--silver { background: var(--platinum-100); color: var(--platinum-700); box-shadow: inset 0 0 0 1px var(--platinum-300); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--ink-700); }
.field label .req { color: var(--danger-600); }
.field .hint { font-size: var(--fs-xs); color: var(--greige-500); text-transform: none; letter-spacing: 0; font-weight: 400; }
.input, .select, .textarea {
  width: 100%; background: var(--pearl-000);
  border: 1px solid var(--pearl-200); border-radius: var(--r-sm);
  padding: 13px 15px; font-size: var(--fs-sm); transition: border-color 0.25s, box-shadow 0.25s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sapphire-600); box-shadow: 0 0 0 3px var(--sapphire-050); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237C7466' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }

/* ---------- Cards / product ---------- */
.grid { display: grid; gap: var(--s-5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.pcard { position: relative; display: flex; flex-direction: column; }
.pcard__media {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-md); overflow: hidden;
  background: var(--pearl-100);
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), opacity .6s; }
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__badges { position: absolute; top: var(--s-3); left: var(--s-3); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; }
.pcard__fav {
  position: absolute; top: var(--s-3); right: var(--s-3); z-index: 2;
  width: 38px; height: 38px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: var(--ink-700);
  transition: all 0.3s; box-shadow: var(--sh-1);
}
.pcard__fav:hover { background: #fff; color: var(--danger-600); transform: scale(1.08); }
.pcard__fav svg { width: 18px; height: 18px; }
.pcard__fav.is-active { color: var(--danger-600); }
.pcard__fav.is-active svg { fill: currentColor; }
.pcard__quick {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 14px);
  opacity: 0; transition: all 0.4s var(--ease); z-index: 2;
}
.pcard:hover .pcard__quick { opacity: 1; transform: translate(-50%, 0); }
.pcard__body { padding-top: var(--s-4); display: flex; flex-direction: column; gap: 4px; }
.pcard__cat { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--greige-500); }
.pcard__title { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; line-height: 1.15; color: var(--ink-900); }
.pcard__title a:hover { color: var(--sapphire-700); }
.pcard__price { display: flex; align-items: baseline; gap: 8px; margin-top: 3px; font-weight: 600; }
.pcard__price .now { color: var(--ink-900); }
.pcard__price .was { color: var(--greige-400); text-decoration: line-through; font-weight: 500; font-size: var(--fs-sm); }
.pcard__swatches { display: flex; gap: 5px; margin-top: 7px; }
.sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.sw--gold { background: linear-gradient(135deg,#F1E2BC,#C9A24B); }
.sw--silver { background: linear-gradient(135deg,#EAECF1,#AEB4C0); }
.sw--pearl { background: radial-gradient(circle at 35% 30%, #fff, #ECE6DB); }
.sw--rose { background: linear-gradient(135deg,#F6D9C9,#C08A6E); }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-5); }
.trust__item { display: flex; gap: var(--s-4); align-items: flex-start; }
.trust__icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; color: var(--sapphire-700); }
.trust__icon svg { width: 30px; height: 30px; stroke-width: 1.2; }
.trust__item h4 { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 700; letter-spacing: var(--tracking-wide); text-transform: uppercase; margin-bottom: 4px; }
.trust__item p { font-size: var(--fs-sm); color: var(--ink-500); line-height: 1.5; }

/* ---------- COD callout ---------- */
.cod-box { background: var(--cod-050); border-radius: var(--r-md); padding: var(--s-5); display: flex; gap: var(--s-4); }
.cod-box__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--cod-600); box-shadow: var(--sh-1); }
.cod-box__icon svg { width: 24px; height: 24px; }
.cod-box h4 { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 700; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--cod-600); margin-bottom: 5px; }
.cod-box p { font-size: var(--fs-sm); color: var(--ink-700); line-height: 1.55; }

/* ---------- Utility ---------- */
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink-900); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 200; transition: top 0.2s; }
.skip-link:focus { top: 16px; }
.mt-2{margin-top:var(--s-2)} .mt-3{margin-top:var(--s-3)} .mt-4{margin-top:var(--s-4)} .mt-5{margin-top:var(--s-5)} .mt-6{margin-top:var(--s-6)} .mt-7{margin-top:var(--s-7)}
.fade-up { opacity: 0; transform: translateY(24px); }
.in-view .fade-up, .fade-up.in-view { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }

/* ---------- Responsive grids ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 760px) {
  .grid--4, .grid--3 { grid-template-columns: repeat(2,1fr); gap: var(--s-4); }
  .trust { grid-template-columns: 1fr; gap: var(--s-4); }
  .pcard__title { font-size: 1.12rem; }
}
@media (max-width: 460px) {
  .grid--2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fade-up { opacity: 1; transform: none; }
}
