/* ==========================================================================
   Kerala Weaves — Somasundaram Sons
   Pure Handloom Kerala Sarees & Mundu, direct from the weavers of Balaramapuram
   ========================================================================== */

:root {
  --gold: #b8923f;
  --gold-light: #d9b969;
  --gold-dark: #8f6f2b;
  --black: #0d0c0b;
  --near-black: #1a1815;
  --maroon: #7a1f1f;
  --maroon-dark: #5c1616;
  --cream: #faf5ea;
  --cream-2: #f3ead6;
  --ink: #2b2420;
  --ink-soft: #5b5148;
  --line: #e4d8bd;
  --white: #ffffff;

  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --radius: 2px;
  --shadow-soft: 0 10px 30px rgba(13, 12, 11, 0.08);
  --shadow-strong: 0 20px 50px rgba(13, 12, 11, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--black);
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.2; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section {
  padding: 84px 0;
}
.section--tight { padding: 56px 0; }
.section--dark {
  background: var(--black);
  color: var(--cream-2);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: #cabf9e; }
.section--cream2 { background: var(--cream-2); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-head p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--black);
}
.btn--gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--outline {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn--outline:hover { background: var(--gold); color: var(--black); }
.btn--outline-light {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
  background: transparent;
}
.btn--outline-light:hover { background: var(--white); color: var(--black); }
.btn--whatsapp {
  background: #25D366;
  color: #06210f;
}
.btn--whatsapp:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-wa-icon { display: none; }
.btn--maroon {
  background: var(--maroon);
  color: var(--white);
}
.btn--maroon:hover { background: var(--maroon-dark); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13, 12, 11, 0.96);
  border-bottom: 1px solid rgba(184, 146, 63, 0.25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 52px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 0 0 2px rgba(217,185,105,0.7), 0 0 16px rgba(184,146,63,0.45);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text .name {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.25rem;
  letter-spacing: 1px;
}
.brand-text .tag {
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b7ab8a;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* The mobile close (×) item only ever appears inside the small-screen
   dropdown (see the max-width:960px rule below that turns it back on) —
   hidden here unconditionally so it never shows in the desktop nav row. */
.nav-close-item { display: none; }
.nav-links a {
  color: #e9dfc7;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  border-color: var(--gold);
}
/* Instagram icons shown inside the mobile dropdown menu only — the header
   bar itself shows them via .nav-icon-btn (see below) on wider screens. */
.nav-links-social { display: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.78rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--gold-light);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(184,146,63,0.16), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(122,31,31,0.22), transparent 45%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-kicker {
  color: var(--gold-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: block;
}
.hero h1 { color: var(--white); }
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero p.lead {
  color: #d8cdae;
  font-size: 1.08rem;
  max-width: 520px;
}
.hero-art {
  position: relative;
  border: 1px solid rgba(184,146,63,0.4);
  border-radius: 4px;
  padding: 30px;
  background: linear-gradient(160deg, rgba(184,146,63,0.14), rgba(122,31,31,0.08));
  text-align: center;
}
.hero-art img { margin: 0 auto; max-width: 220px; }
.hero-badges {
  display: flex;
  gap: 20px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #e9dfc7;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #cabf9e; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}

/* ---------- Feature / USP grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px 28px;
  text-align: center;
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.feature-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Collection cards (placeholder art) ---------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  /* Cards can now be slightly different heights (product photos show
     full, uncropped, at their own natural proportions) — align each to
     its own content instead of stretching short cards to match a tall
     neighbour, which would leave odd blank space at the bottom. */
  align-items: start;
}
.collection-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
  position: relative;
}
.collection-card:hover { transform: translateY(-6px); }
/* Briefly rings a card that was jumped to from the wishlist drawer. */
.collection-card.is-highlighted { animation: kwHighlightPulse 2.2s ease; }
@keyframes kwHighlightPulse {
  0% { box-shadow: 0 0 0 4px rgba(184, 146, 63, 0.9); }
  100% { box-shadow: var(--shadow-soft); }
}
.swatch {
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.swatch::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
      90deg, rgba(255,255,255,0.08) 0px, rgba(255,255,255,0.08) 2px,
      transparent 2px, transparent 22px
    ),
    repeating-linear-gradient(
      0deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 2px,
      transparent 2px, transparent 22px
    );
}
.swatch .border-strip {
  position: absolute; bottom: 0; left: 0; right: 0; height: 26px;
  background: repeating-linear-gradient(45deg, rgba(184,146,63,0.9) 0, rgba(184,146,63,0.9) 6px, rgba(13,12,11,0.85) 6px, rgba(13,12,11,0.85) 12px);
}
.swatch .swatch-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 30px;
}
.swatch--1 { background: linear-gradient(135deg,#7a1f1f,#4a1010); }
.swatch--2 { background: linear-gradient(135deg,#1a1815,#3a3126); }
.swatch--3 { background: linear-gradient(135deg,#8f6f2b,#b8923f); }
.swatch--4 { background: linear-gradient(135deg,#3c5a4a,#264034); }
.swatch--5 { background: linear-gradient(135deg,#5c1616,#8f6f2b); }
.swatch--6 { background: linear-gradient(135deg,#0d0c0b,#7a1f1f); }
.swatch--7 { background: linear-gradient(135deg,#3a2f22,#6b5842); }

.collection-body { padding: 22px 24px 26px; }
.collection-body h3 { margin-bottom: 8px; }
.collection-body p { font-size: 0.92rem; margin-bottom: 14px; }
/* Clamp product descriptions to 3 lines by default so every card in a
   row lines up at roughly the same height — "Read more" expands it. */
.product-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.product-desc.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.desc-toggle {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin: -8px 0 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: underline;
  cursor: pointer;
}
.desc-toggle:hover { color: var(--maroon); }
.insta-style-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
}
.insta-style-link:hover { color: var(--maroon); }
.insta-style-link svg { flex-shrink: 0; }
.view-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.view-more-btn { min-width: 180px; }

/* Loading skeleton shown while the product list is being fetched, so the
   page reads as "loading" rather than blank/stuck. */
.skeleton-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0 0 20px;
}
.skeleton-photo, .skeleton-line {
  background: linear-gradient(90deg, var(--cream-2) 25%, var(--cream) 50%, var(--cream-2) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.skeleton-photo { aspect-ratio: 4 / 5; margin-bottom: 18px; }
.skeleton-line { height: 12px; border-radius: 6px; margin: 10px 20px; }
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-photo, .skeleton-line { animation: none; }
}
.tag-note {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--cream-2);
  border: 1px dashed var(--gold);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ---------- Story / About ---------- */
.founder-portrait {
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.founder-portrait img { width: 100%; border-radius: 2px; }
.founder-portrait .caption {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 12px;
  font-size: 0.95rem;
}

.timeline {
  border-left: 2px solid var(--gold);
  margin-left: 10px;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
}
.timeline-item h4 { margin-bottom: 6px; color: var(--gold-light); font-family: var(--font-body); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;}

/* ---------- Values / process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 20px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.step h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--radius);
  position: relative;
}
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial p { font-style: italic; font-size: 0.95rem; }
.testimonial .who { font-weight: 600; color: var(--black); font-style: normal; font-size: 0.85rem; margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--maroon), var(--maroon-dark));
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #f0d9d9; max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact page ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.contact-info-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-info-list .ic {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream-2);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--maroon);
  flex-shrink: 0;
}
.contact-info-list strong { display: block; color: var(--black); font-size: 0.95rem; }
.contact-info-list span, .contact-info-list a { font-size: 0.92rem; color: var(--ink-soft); }
.contact-info-list a:hover { color: var(--maroon); }

.social-row { display: flex; gap: 12px; margin-top: 6px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  transition: background 0.2s, color 0.2s;
}
.social-row a:hover { background: var(--gold); color: var(--white); }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: -4px; }
.form-success {
  display: none;
  background: #e9f6ec;
  border: 1px solid #85c69a;
  color: #235c34;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.map-wrap {
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }
.address-strip {
  background: var(--near-black);
  color: #e9dfc7;
  padding: 18px 24px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.address-strip a { color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: #c9bd9c;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(184,146,63,0.25);
}
.footer-grid h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.82rem;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.footer-brand img {
  width: auto;
  height: 54px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 0 0 2px rgba(217,185,105,0.7), 0 0 16px rgba(184,146,63,0.45);
}
.footer-brand .name { font-family: var(--font-display); color: var(--white); font-size: 1.15rem; }
.footer-brand .tag { font-size: 0.75rem; letter-spacing: 1px; color: #a89a72; }
.footer-desc { font-size: 0.88rem; max-width: 320px; color: #e4d9bd; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(184,146,63,0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
}
.footer-social a:hover { background: var(--gold); color: var(--black); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  background: #25D366;
  color: #06210f;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Reveal animation ----------
   Content is visible by default (progressive enhancement). Only once JS
   confirms it can run the animation does it hide-then-reveal elements;
   if JS fails or is disabled, everything simply stays visible. */
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
.js-reveal-ready .reveal { opacity: 0; transform: translateY(18px); }
.js-reveal-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.82rem; }
.divider {
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 18px auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .steps, .testimonial-grid, .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}

/* Nav collapses to the hamburger menu starting at 960px — below that,
   the full horizontal nav (logo + links + icons + WhatsApp button) no
   longer fits in one line and was wrapping/overlapping the brand name. */
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn--outline-light { display: none; }
  .nav-toggle { display: flex; }
  .brand img { height: 42px; width: auto; flex-shrink: 0; }
  .brand { min-width: 0; flex-shrink: 1; }
  .brand-text { min-width: 0; }
  .brand { gap: 8px; }
  .brand-text .name {
    /* Fluid size so "SS Kerala Weaves" shrinks to fit narrow phones
       instead of getting cut off with "…" — the ellipsis below only
       kicks in as a last-resort safety net on extremely narrow screens. */
    font-size: clamp(0.78rem, 3.6vw, 1rem);
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-text .tag { display: none; }
  .nav-cta .btn { padding: 9px 14px; font-size: 0.7rem; }
  .nav-cta { flex-shrink: 0; }
  .nav { flex-wrap: nowrap; gap: 10px; align-items: center; }
  /* Collapse the header's WhatsApp button to an icon on small screens —
     the floating WhatsApp button (bottom-right) stays available on every
     page, so this just frees up room for the brand name. */
  .nav-cta .btn--whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .nav-cta .btn--whatsapp .btn-label { display: none; }
  .nav-cta .btn--whatsapp .btn-wa-icon { display: block; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--black);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(184,146,63,0.3);
  }
  /* Explicit close (×) button inside the mobile dropdown — hidden on
     desktop/tablet since the dropdown itself never opens there. */
  .nav-close-item {
    display: none;
    justify-content: flex-end;
    margin: -8px -8px -4px 0;
  }
  .site-header.open .nav-close-item { display: flex; }
  .nav-close-btn {
    background: none;
    border: none;
    color: var(--gold-light);
    font-size: 1.8rem;
    line-height: 1;
    padding: 6px 10px;
    cursor: pointer;
  }
  .nav-links-social {
    display: flex;
    gap: 18px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid rgba(184,146,63,0.25);
  }
  .nav-links-social a { color: #e9dfc7; }
  .nav-links-social a:hover { color: var(--gold-light); }
}

@media (max-width: 720px) {
  .grid-3, .steps, .testimonial-grid { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .collection-body { padding: 14px 14px 18px; }
  .collection-body h3 { font-size: 1.02rem; margin-bottom: 4px; }
  .collection-body p { font-size: 0.8rem; margin-bottom: 10px; }
  .collection-card .stock-tag, .collection-card .tag-note { font-size: 0.62rem; padding: 4px 8px; }
  .collection-card .product-price { font-size: 0.95rem; }
  .collection-card .btn {
    padding: 9px 8px;
    font-size: 0.64rem;
    letter-spacing: 0.4px;
    width: 100%;
    text-align: center;
    justify-content: center;
    white-space: normal;
    line-height: 1.3;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .address-strip { flex-direction: column; }
  .admin-shell { padding: 24px 16px; }
  .modal-card { padding: 24px; }
}

/* ==========================================================================
   Live Collections catalog (Google Sheet backed) + Admin panel
   ========================================================================== */

/* ---------- Collections sort/filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.filter-field select,
.price-range-inputs input {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
}
.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-range-inputs input { width: 90px; }
.filter-field--chips { flex-direction: row; gap: 10px; }
.filter-chip {
  padding: 9px 16px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: transparent;
  color: var(--gold-dark);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip[data-active="true"] {
  background: var(--gold);
  color: var(--black);
}
.filter-clear-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--maroon);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 9px 0;
}
/* ---------- Category quick-jump row ---------- */
.cat-jump {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.cat-jump::-webkit-scrollbar { display: none; }
.cat-jump-chip {
  flex: 0 0 auto;
  padding: 9px 18px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: var(--white);
  color: var(--gold-dark);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.cat-jump-chip:hover,
.cat-jump-chip.is-active { background: var(--gold); color: var(--black); }
@media (min-width: 900px) { .cat-jump { flex-wrap: wrap; } }
.category-block { scroll-margin-top: 90px; }

.filtered-results-count {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 20px;
}
@media (max-width: 700px) {
  .filter-bar { padding: 16px; gap: 14px; }
  .filter-clear-btn { margin-left: 0; }
}

.category-block { margin-bottom: 52px; }
.category-block:last-child { margin-bottom: 0; }
.category-head { max-width: 640px; margin: 0 auto 28px; text-align: center; }
.category-head h2 { margin-bottom: 8px; }
.category-head p { color: var(--ink-soft); margin: 0; }

.loading-note, .error-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 20px 0;
}

.product-photo-wrap {
  overflow: hidden;
  background: var(--cream-2);
  cursor: zoom-in;
  position: relative;
}
/* No fixed aspect-ratio here on purpose — a fixed box forces a crop
   somewhere (top/bottom or the sides) whenever a photo's proportions
   don't match it exactly. Sizing the box to the photo's own natural
   shape (height: auto) shows the whole photo, full width, no crop. */
.product-photo { width: 100%; height: auto; display: block; }

/* Full photo lightbox — click a product photo to see it uncropped */
.photo-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 12, 11, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 3000;
  cursor: zoom-out;
  animation: lightboxFadeIn 0.15s ease;
}
@keyframes lightboxFadeIn { from { opacity: 0; } to { opacity: 1; } }
.photo-lightbox-backdrop img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: var(--shadow-strong);
  cursor: default;
}
.photo-lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  /* Same low-contrast circle the prev/next arrows had — same fix. */
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(13, 12, 11, 0.6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.photo-lightbox-close:hover { background: rgba(13, 12, 11, 0.8); }
@media (max-width: 600px) {
  .photo-lightbox-close { top: 10px; right: 10px; }
}
.photo-lightbox-prev, .photo-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  /* Was a near-invisible 16%-opacity white circle — on a light-coloured
     photo the arrow all but disappeared, worst on small phone screens.
     A darker, more opaque circle plus a soft edge keeps it readable
     against any photo. */
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(13, 12, 11, 0.6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.photo-lightbox-prev:hover, .photo-lightbox-next:hover { background: rgba(13, 12, 11, 0.8); }
.photo-lightbox-prev { left: 16px; }
.photo-lightbox-next { right: 16px; }
.photo-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.16);
  padding: 5px 14px;
  border-radius: 20px;
}
@media (max-width: 600px) {
  .photo-lightbox-prev, .photo-lightbox-next { width: 40px; height: 40px; font-size: 1.7rem; }
  .photo-lightbox-prev { left: 8px; }
  .photo-lightbox-next { right: 8px; }
}
.photo-count-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(13, 12, 11, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.product-price {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2px 0 12px;
}
.delivery-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: -6px 0 12px;
}
/* Wash-care line: shown only inside the photo zoom view, not on the card. */
.photo-lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
}
.photo-lightbox-backdrop .photo-lightbox-stage img { max-height: calc(100vh - 150px); }
.photo-lightbox-care {
  margin: 12px 0 0;
  max-width: 520px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  cursor: default;
}
.photo-lightbox-care strong { color: #fff; font-weight: 600; }
.stock-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #3c5a4a;
  background: #e9f0ea;
  border: 1px dashed #3c5a4a;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
/* Shown only in the flat sorted/filtered results grid, where cards from
   every category mix together and the category heading is gone. */
.card-category-tag {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 6px;
}

/* ---------- Admin panel ---------- */
.admin-shell {
  min-height: 60vh;
  max-width: 480px;
  margin: 0 auto;
  padding: 64px 24px;
}
.admin-shell.wide { max-width: 1100px; }
.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 36px 32px;
}
.admin-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.admin-card .lead { color: var(--ink-soft); margin-bottom: 26px; font-size: 0.92rem; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="password"],
.field input[type="number"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field-error { color: #a12222; font-size: 0.8rem; margin-top: 6px; display: none; }
.field-hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; margin-bottom: 0; }
.field input[type="file"] { padding: 8px 0; border: none; background: none; }

.btn--full { width: 100%; text-align: center; }
.btn--full.btn--gold { border: none; cursor: pointer; }
.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--gold-dark); font-family: var(--font-body);
  font-size: 0.82rem; text-decoration: underline;
  padding: 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.admin-topbar h1 { margin: 0; font-size: 1.5rem; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.manage-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.manage-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.manage-row:last-child { border-bottom: none; }
.manage-row img, .manage-row .thumb-fallback {
  width: 52px; height: 52px; border-radius: 4px; object-fit: contain; flex-shrink: 0;
  background: var(--cream-2);
}
.manage-row .grow { flex: 1; min-width: 0; }
.manage-row .grow .p-name { font-weight: 600; color: var(--black); }
.manage-row .grow .p-meta { color: var(--ink-soft); font-size: 0.82rem; }
.manage-row .row-actions { display: flex; gap: 8px; flex-shrink: 0; }
.manage-row .row-actions button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.manage-row .row-actions button:hover { border-color: var(--gold); }
.manage-row .row-actions button.danger:hover { border-color: #a12222; color: #a12222; }
.empty-note { padding: 30px 18px; text-align: center; color: var(--ink-soft); }

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(13,12,11,0.6);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 1000;
}
.modal-card {
  background: var(--white);
  max-width: 560px;
  width: 100%;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-strong);
}
.modal-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink-soft);
  line-height: 1;
}
.photo-preview {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: var(--cream-2);
  border: 1px solid var(--line);
  margin-top: 10px;
  display: none;
  border-radius: var(--radius);
}
.photo-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.photo-chip {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream-2);
}
.photo-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-chip-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(13, 12, 11, 0.72);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-chip-remove:hover { background: rgba(13, 12, 11, 0.9); }

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--cream-2);
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-strong);
  z-index: 2000;
  display: none;
  max-width: 90vw;
  text-align: center;
}
#toast.show { display: block; }

@media (max-width: 560px) {
  .admin-card { padding: 26px 20px; }
  .manage-row { flex-wrap: wrap; }
}

/* ---------- Store locations ---------- */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.store-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}
.store-card:hover { transform: translateY(-4px); }
.store-card .store-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  margin-bottom: 16px;
}
.store-card h3 { margin-bottom: 6px; font-size: 1.2rem; }
.store-card .store-address { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; min-height: 44px; }
.store-card a.btn--outline { font-size: 0.78rem; padding: 9px 18px; }

@media (max-width: 980px) {
  .stores-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .stores-grid { grid-template-columns: 1fr; }
}

/* ---------- Swatch with a real photo (used once real photography is ready) ---------- */
.swatch-photo::before { background-image: none; }
.swatch-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.swatch-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,12,11,0.05) 30%, rgba(13,12,11,0.68) 100%);
  z-index: 2;
}
.swatch-photo .swatch-label { z-index: 3; }
.swatch-photo .border-strip { z-index: 3; }

/* ---------- Swatch banner: a pre-designed graphic with its own baked-in
   title/logo (no pill label or darkening overlay needed on top) ---------- */
.swatch-banner::before { background-image: none; }
.swatch-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.swatch-banner .swatch-label { display: none; }
.swatch-banner .border-strip { z-index: 2; }

/* ---------- Wishlist ---------- */

/* Heart toggle on each product card */
.card-wishlist-heart {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(13, 12, 11, 0.45);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.card-wishlist-heart svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-wishlist-heart:hover { transform: scale(1.08); background: rgba(13, 12, 11, 0.65); }
.card-wishlist-heart.is-active {
  background: var(--gold);
  color: var(--black);
}
.card-wishlist-heart.is-active svg { fill: currentColor; stroke: currentColor; }

/* Header social icons (Instagram) */
.nav-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--cream-2);
  transition: color 0.2s ease, transform 0.15s ease;
}
.nav-icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-icon-btn:hover { color: var(--gold-light); transform: translateY(-1px); }

/* Header wishlist button + count badge */
.wishlist-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  color: var(--cream-2);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, transform 0.15s ease;
}
.wishlist-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wishlist-btn:hover { color: var(--gold-light); transform: translateY(-1px); }
.wishlist-count {
  position: absolute;
  top: -4px; right: -6px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* Drawer + backdrop */
.wishlist-backdrop {
  position: fixed; inset: 0;
  background: rgba(13, 12, 11, 0.55);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.wishlist-backdrop.open { opacity: 1; visibility: visible; }

.wishlist-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 380px;
  max-width: 90vw;
  background: var(--cream);
  z-index: 401;
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.wishlist-drawer.open { transform: translateX(0); }

.wishlist-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--black);
}
.wishlist-drawer-head h3 {
  color: var(--cream-2);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
}
.wishlist-close {
  background: none; border: none;
  color: var(--cream-2);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.wishlist-close:hover { color: var(--gold-light); }

.wishlist-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
}
.wishlist-empty {
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: center;
  margin-top: 30px;
}
.wishlist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  margin: 0 -6px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease;
}
.wishlist-item:hover, .wishlist-item:focus-visible { background: var(--cream-2); }
.wishlist-item:last-child { border-bottom: none; }
.wishlist-item img,
.wishlist-thumb-fallback {
  width: 58px; height: 58px;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
}
/* "cover" was cropping the saree/mundu photo to fill this small square —
   "contain" shows the whole photo untouched, with the gradient peeking
   in on the shorter side instead of cutting anything off. */
.wishlist-item img {
  object-fit: contain;
  background-color: var(--cream-2);
}
.wishlist-item .grow { flex: 1; min-width: 0; }
.wi-name {
  font-family: var(--font-display);
  color: var(--black);
  font-size: 0.98rem;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wi-price { color: var(--gold-dark); font-size: 0.85rem; }
.wishlist-remove {
  background: none; border: none;
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
}
.wishlist-remove:hover { color: var(--gold-dark); }

.wishlist-drawer-foot {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
}

/* Sync-by-WhatsApp-number section, below the main enquiry button */
.wishlist-sync {
  padding: 20px 24px 26px;
  background: var(--cream-2);
  border-top: 1px solid var(--line);
}
.wishlist-sync h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 12px;
}
.wishlist-sync-row {
  display: flex;
  gap: 10px;
}
.wishlist-sync-input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.wishlist-sync-input:focus {
  outline: none;
  border-color: var(--gold);
}
.wishlist-sync-btn {
  padding: 11px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.wishlist-sync-btn:hover { background: var(--gold); color: var(--black); }
.wishlist-sync-btn:disabled { opacity: 0.6; cursor: default; }
.wishlist-sync-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.wishlist-sync-status {
  margin: 10px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
}
.wishlist-sync-status.is-success { color: #2e7d32; }
.wishlist-sync-status.is-error { color: #a13a2c; }

@media (max-width: 480px) {
  .wishlist-drawer { width: 100vw; max-width: 100vw; }
}

/* Hide the header Instagram icons on small screens to keep room for the
   hamburger menu — they're still reachable from the mobile dropdown
   (.nav-links-social) and the footer on every page. */
@media (max-width: 960px) {
  .nav-icon-btn { display: none; }
}

/* Shrink the wishlist-heart button on narrow, 2-column product cards
   (placed at the end of the file so it wins over the earlier unscoped
   .card-wishlist-heart rule at the same specificity). */
@media (max-width: 720px) {
  .card-wishlist-heart { width: 30px; height: 30px; top: 8px; right: 8px; }
  .card-wishlist-heart svg { width: 14px; height: 14px; }
}

/* Admin "Manage Collections" list becomes a 2-column card grid on mobile
   instead of one long list of full-width rows (placed at the end of the
   file so it wins over the earlier unscoped .manage-list/.manage-row
   rules at the same specificity). */
@media (max-width: 720px) {
  .manage-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    border: none;
    background: transparent;
  }
  .manage-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
  }
  .manage-row img, .manage-row .thumb-fallback {
    width: 100%;
    height: 110px;
  }
  .manage-row .grow .p-name { font-size: 0.85rem; }
  .manage-row .grow .p-meta { font-size: 0.74rem; }
  .manage-row .row-actions { flex-wrap: wrap; }
  .manage-row .row-actions button { flex: 1; }
  .empty-note { grid-column: 1 / -1; }
}

/* Homepage "Shop By Category" preview: always 2 cards per row, on every
   screen size — with 4 categories shown here, 3-per-row on desktop left an
   orphan 4th card alone on its own row. Scoped to this section only (via
   the #collections-preview id, which outranks the plain .collection-grid
   rules above at any specificity/order) so the Collections page's own
   per-category grids keep their original column counts. */
#collections-preview .collection-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* On very narrow phones (320-400px) even the icon-only header WhatsApp
   button leaves too little room for "SS Kerala Weaves" and it gets cut
   off with "…". The floating WhatsApp button (bottom-right, every page)
   already covers this action, so drop the header one here only and let
   the brand name use that freed-up space instead. */
@media (max-width: 400px) {
  .nav-cta .btn--whatsapp { display: none; }
  .nav-cta { gap: 10px; }
}

/* ---------------------------------------------------------------------
 * Sold / Featured product badges (admin panel "Mark as Sold" /
 * "Featured Product" toggles) — Collections page.
 * ------------------------------------------------------------------- */
.collection-card.is-sold { opacity: 0.55; }
.stock-tag--sold {
  color: var(--maroon);
  background: #f7e8e6;
  border-color: var(--maroon);
}
/* Wraps the featured / best-seller / new badges so more than one can
   stack on a single card without overlapping. */
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.featured-badge, .bestseller-badge, .new-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.featured-badge { background: var(--gold); color: var(--black); }
.bestseller-badge { background: var(--maroon); color: var(--white); }
.new-badge { background: #3c5a4a; color: var(--white); }

/* ---------------------------------------------------------------------
 * Admin panel — Sold/Featured checkboxes + list badges.
 * ------------------------------------------------------------------- */
.field--checkboxes {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold-dark);
  cursor: pointer;
}
.mini-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 700;
}
.mini-badge--sold { background: #f7e8e6; color: var(--maroon); }
.mini-badge--featured { background: var(--gold); color: var(--black); }
.mini-badge--insta { background: #f0e6ff; color: #6b3fa0; }
.mini-badge--bestseller { background: #fbe6d9; color: #a1481a; }
