/* Kopoi — all styles for index.html. Product pages in p/ carry their own
   scoped CSS, generated by build.py. */

/* ════════════════════════════════════════
   TOKENS
════════════════════════════════════════ */
:root {
  --black:      #0a0908;
  --black-soft: #141210;
  --cream:      #f4efe6;
  --cream-dk:   #e8e1d5;
  --gold:       #b8943a;
  --gold-lt:    #d4ae62;
  --gold-dim:   rgba(184,148,58,0.18);
  --teal:       #2ABFBF;
  --teal-dim:   rgba(42,191,191,0.12);
  --muted:      #7a7469;
  --white:      #ffffff;
  --card-bg:    #ffffff;
  --radius:     2px;
}

/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--cream);
  color: var(--black);
  overflow-x: hidden;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* Grain */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
}

/* ════════════════════════════════════════
   NAV
════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2rem;
  background: rgba(10,9,8,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-dim);
  transition: padding 0.3s;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--cream);
}

.nav-links {
  display: flex; gap: 2.2rem; list-style: none;
}
.nav-links a {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.5);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold-lt); }

.nav-badge {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(42,191,191,0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
}
.nav-badge .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.5); }
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
#hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 72px;
}

.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 3.5rem 4rem 4rem;
  background: var(--black);
  position: relative;
}

.hero-text::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(184,148,58,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s ease forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.45s ease forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-lt);
  font-weight: 300;
}

.hero-sub {
  font-size: 0.78rem;
  line-height: 1.9;
  color: rgba(244,239,230,0.45);
  max-width: 320px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s 0.6s ease forwards;
}

.hero-actions {
  display: flex; align-items: center; gap: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.75s ease forwards;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--gold);
  color: var(--black);
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); }

.btn-ghost {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.4);
  border-bottom: 1px solid rgba(244,239,230,0.2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--cream); border-color: var(--cream); }

.hero-image {
  position: relative; overflow: hidden;
  opacity: 0;
  animation: fadeIn 1.2s 0.2s ease forwards;
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: right center;
  transition: transform 8s ease;
}
.hero-image:hover img { transform: scale(1.03); }

.hero-image picture {
  display: contents;
}
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0.1) 0%, rgba(10,9,8,0.3) 100%);
  z-index: 1;
}

.hero-delivery-pill {
  position: absolute; bottom: 2rem; left: 2rem; z-index: 2;
  display: flex; align-items: center; gap: 0.7rem;
  background: rgba(10,9,8,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-dim);
  color: var(--cream);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
}
.hero-delivery-pill svg { color: var(--gold); flex-shrink: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ════════════════════════════════════════
   CATALOG SECTION
════════════════════════════════════════ */
#catalog { padding: 5rem 0 6rem; }

/* The header used to hold the filter bar alongside the title, which is why it
   carried 5rem of space beneath it. It holds only the title now — the strip
   sits under the rule, and wants to read as attached to the grid it filters. */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 2rem 1.4rem;
  border-bottom: 1px solid var(--gold-dim);
  margin-bottom: 1.3rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.04em;
}
.section-title em { font-style: italic; color: var(--gold); }

/* Category strip — the site's one navigation control (D-019).
   Real links, generated by build.py between the CATSTRIP markers. It replaced
   a JS-only filter bar and a near-identical row of category links. The same
   component is inlined into p/*.html and c/*.html by build.py. */
.cat-strip {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin: 0 0 1.75rem;
  padding: 0 2rem 0.2rem;
  /* Horizontal scroll rather than wrapping: on a phone this keeps the strip
     one row deep instead of pushing the first product below the fold. */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }

.cat-strip-label {
  flex: none;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.cat-strip ul {
  display: flex;
  gap: 0.45rem;
  list-style: none;
  flex: none;
  margin: 0;
  padding: 0;
}

.cat-strip a {
  display: block;
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 2rem;
  color: var(--muted);
  transition: all 0.2s;
}
.cat-strip a:hover { border-color: var(--gold); color: var(--gold); }
.cat-strip a[aria-current="page"] {
  background: var(--black);
  border-color: var(--black);
  color: var(--cream);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--gold-dim);
  border: 1.5px solid var(--gold-dim);
  margin: 0 2rem;
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  display: flex; flex-direction: column;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cream-dk);
}

.card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.product-card:hover .card-img { transform: scale(1.04); }

/* Image switcher on hover */
.card-img-hover {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.product-card:hover .card-img-hover { opacity: 1; }
.product-card:hover .card-img { opacity: 0; }

/* Tags */
.card-tags {
  position: absolute; top: 1rem; left: 1rem;
  display: flex; flex-direction: column; gap: 0.35rem;
  z-index: 2;
}
.tag {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  background: var(--black);
  color: var(--cream);
  width: fit-content;
}
.tag.gold    { background: var(--gold); color: var(--black); }
.tag.teal    { background: var(--teal); color: var(--black); }

/* Sold out overlay */
.sold-out-overlay {
  position: absolute; inset: 0;
  background: rgba(244,239,230,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.sold-out-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--muted);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
}

/* Delivery badge on card */
.card-delivery-badge {
  position: absolute; bottom: 0.8rem; right: 0.8rem;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(10,9,8,0.8);
  backdrop-filter: blur(4px);
  color: rgba(244,239,230,0.7);
  padding: 0.3rem 0.7rem;
  border-radius: 2rem;
  z-index: 2;
}

/* Card Body */
.card-body { padding: 1.2rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.card-desc {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }

.card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
}

/* Color swatches */
.card-colors { display: flex; gap: 0.4rem; align-items: center; }
.color-swatch {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.color-swatch:hover { transform: scale(1.2); }
.color-swatch.active {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--gold);
}

/* Size selector */
.card-sizes {
  display: flex; gap: 0.35rem; flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.size-btn {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 0.3rem 0.6rem;
  color: var(--muted);
  transition: all 0.18s;
  border-radius: var(--radius);
}
.size-btn:hover { border-color: var(--gold); color: var(--gold); }
.size-btn.active { border-color: var(--black); background: var(--black); color: var(--cream); }

/* WhatsApp button */
.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%;
  background: var(--black);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem;
  margin-top: auto;
  transition: background 0.3s;
  border-radius: var(--radius);
}
.wa-btn:hover { background: #128c3a; }
.wa-btn:disabled, .wa-btn.sold-out {
  background: var(--cream-dk);
  color: var(--muted);
  cursor: not-allowed;
}
.wa-btn svg { flex-shrink: 0; }

/* Hint text */
.size-hint {
  font-size: 0.58rem;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 0.5rem;
  min-height: 0.9rem;
}

/* COD badge */
.cod-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

/* ════════════════════════════════════════
   DELIVERY SECTION
════════════════════════════════════════ */
#delivery {
  background: var(--black-soft);
  padding: 5rem 2rem;
}

.delivery-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}

.delivery-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--cream);
  margin-bottom: 1.2rem;
}
.delivery-headline em { font-style: italic; color: var(--gold-lt); }

.delivery-subtext {
  font-size: 0.75rem;
  line-height: 1.9;
  color: rgba(244,239,230,0.4);
  margin-bottom: 1.5rem;
}

.delivery-zones {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.zone-chip {
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(42,191,191,0.25);
  color: rgba(42,191,191,0.7);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
}

.delivery-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-dim);
}
.d-feat {
  background: var(--black-soft);
  padding: 1.6rem;
  transition: background 0.3s;
}
.d-feat:hover { background: rgba(184,148,58,0.04); }
.d-feat-icon { font-size: 1.2rem; margin-bottom: 0.75rem; }
.d-feat-title {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 0.4rem;
}
.d-feat-desc {
  font-size: 0.68rem;
  color: rgba(244,239,230,0.35);
  line-height: 1.65;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: var(--black);
  border-top: 1px solid var(--gold-dim);
  padding: 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--cream);
}

.footer-links {
  display: flex; gap: 1.5rem; list-style: none;
}
.footer-links a {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.35);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(244,239,230,0.2);
}

/* ════════════════════════════════════════
   LOADING SKELETON
════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--cream-dk) 25%, var(--cream) 50%, var(--cream-dk) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
}

/* ════════════════════════════════════════
   MOBILE
════════════════════════════════════════ */
@media (max-width: 768px) {
  #nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }

  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 3.5rem 1.5rem 2.5rem; order: 2; }
  .hero-title { font-size: 2.8rem; }
  .hero-image { height: 70vw; order: 1; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 1.2rem; padding: 0 1.25rem 1.1rem; margin-bottom: 1.1rem; }
  .cat-strip { padding: 0 1.25rem 0.2rem; gap: 0.7rem; }
  #catalog { padding: 3.5rem 0 4rem; }
  .product-grid { margin: 0 1.25rem; grid-template-columns: repeat(2, 1fr); gap: 1px; }

  .delivery-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  #delivery { padding: 3.5rem 1.25rem; }

  footer { flex-direction: column; text-align: center; padding: 1.5rem 1.25rem; }
  .footer-links { justify-content: center; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Physical measurements shown in place of size chips (bags, clutches). */
.card-dimensions {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
