/* ============================================================
   Mood Store — design tokens (Rajasthan identity, v6)
   Enhanced Product Card Design with Taller Display
   ============================================================ */

:root {
  --ink: #2b1b12;
  --canvas: #fbf1e4;
  --canvas-dim: #f3e3cb;
  --rani: #c93f6e;
  --haveli: #7a1f2b;
  --dune: #d9a857;
  --dune-soft: #e8c68c;
  --jaipuri: #1b5468;
  --jaipuri-soft: #4d8296;
  --line: rgba(43, 27, 18, 0.14);

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-label: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ========== FULL PAGE BACKGROUND WITH ROTATING RAJASTHANI IMAGES ========== */
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  position: relative;
  background: var(--canvas);
}

/* Background image container — fixed behind all content */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -10;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.4;
  animation: slideBg 65s infinite ease-in-out;
}

@keyframes slideBg {
  0% { background-image: url('../images/hero/hero-amber-fort.jpg'); opacity: 0.4; }
  6.49% { background-image: url('../images/hero/hero-amber-fort.jpg'); opacity: 0.4; }
  7.69% { background-image: url('../images/hero/hero-palace-archway.jpg'); opacity: 0; }
  8.89% { background-image: url('../images/hero/hero-palace-archway.jpg'); opacity: 0.4; }
  14.18% { background-image: url('../images/hero/hero-palace-archway.jpg'); opacity: 0.4; }
  15.38% { background-image: url('../images/hero/hero-thar-desert.jpg'); opacity: 0; }
  16.58% { background-image: url('../images/hero/hero-thar-desert.jpg'); opacity: 0.4; }
  21.88% { background-image: url('../images/hero/hero-thar-desert.jpg'); opacity: 0.4; }
  23.08% { background-image: url('../images/hero/hero-hawa-mahal.jpg'); opacity: 0; }
  24.28% { background-image: url('../images/hero/hero-hawa-mahal.jpg'); opacity: 0.4; }
  29.57% { background-image: url('../images/hero/hero-hawa-mahal.jpg'); opacity: 0.4; }
  30.77% { background-image: url('../images/hero/hero-jaisalmer-fort.jpg'); opacity: 0; }
  31.97% { background-image: url('../images/hero/hero-jaisalmer-fort.jpg'); opacity: 0.4; }
  37.26% { background-image: url('../images/hero/hero-jaisalmer-fort.jpg'); opacity: 0.4; }
  38.46% { background-image: url('../images/hero/hero-desert-camel.jpg'); opacity: 0; }
  39.66% { background-image: url('../images/hero/hero-desert-camel.jpg'); opacity: 0.4; }
  44.95% { background-image: url('../images/hero/hero-desert-camel.jpg'); opacity: 0.4; }
  46.15% { background-image: url('../images/hero/hero-bawadi.jpg'); opacity: 0; }
  47.35% { background-image: url('../images/hero/hero-bawadi.jpg'); opacity: 0.4; }
  52.65% { background-image: url('../images/hero/hero-bawadi.jpg'); opacity: 0.4; }
  53.85% { background-image: url('../images/hero/hero-dance.jpg'); opacity: 0; }
  55.05% { background-image: url('../images/hero/hero-dance.jpg'); opacity: 0.4; }
  60.34% { background-image: url('../images/hero/hero-dance.jpg'); opacity: 0.4; }
  61.54% { background-image: url('../images/hero/hero-fort-night.jpg'); opacity: 0; }
  62.74% { background-image: url('../images/hero/hero-fort-night.jpg'); opacity: 0.4; }
  68.03% { background-image: url('../images/hero/hero-fort-night.jpg'); opacity: 0.4; }
  69.23% { background-image: url('../images/hero/hero-fort-street.jpg'); opacity: 0; }
  70.43% { background-image: url('../images/hero/hero-fort-street.jpg'); opacity: 0.4; }
  75.72% { background-image: url('../images/hero/hero-fort-street.jpg'); opacity: 0.4; }
  76.92% { background-image: url('../images/hero/hero-statue.jpg'); opacity: 0; }
  78.12% { background-image: url('../images/hero/hero-statue.jpg'); opacity: 0.4; }
  83.42% { background-image: url('../images/hero/hero-statue.jpg'); opacity: 0.4; }
  84.62% { background-image: url('../images/hero/hero-udaipur-palace.jpg'); opacity: 0; }
  85.82% { background-image: url('../images/hero/hero-udaipur-palace.jpg'); opacity: 0.4; }
  91.11% { background-image: url('../images/hero/hero-udaipur-palace.jpg'); opacity: 0.4; }
  92.31% { background-image: url('../images/hero/hero-Rajasthan-fort.jpg'); opacity: 0; }
  93.51% { background-image: url('../images/hero/hero-Rajasthan-fort.jpg'); opacity: 0.4; }
  98.8% { background-image: url('../images/hero/hero-Rajasthan-fort.jpg'); opacity: 0.4; }
  100% { background-image: url('../images/hero/hero-amber-fort.jpg'); opacity: 0.4; }
}

/* Content overlay scrim for readability */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -9;
  background: linear-gradient(180deg, rgba(251,241,228,0.94) 0%, rgba(251,241,228,0.90) 50%, rgba(251,241,228,0.94) 100%);
  pointer-events: none;
}

a { color: inherit; }

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--jaipuri);
  outline-offset: 2px;
}

/* ---------- Jharokha divider (signature motif) ---------- */
.stitch-divider {
  height: 18px;
  background-image:
    radial-gradient(ellipse 6px 9px at 50% 100%, transparent 98%, var(--dune) 100%),
    linear-gradient(var(--line), var(--line));
  background-repeat: repeat-x, no-repeat;
  background-size: 24px 18px, 100% 1px;
  background-position: center bottom, center;
  opacity: 0.9;
}

.product-card.featured::before,
.related-strip .featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 14px;
  background: var(--dune);
  border-radius: 13px 13px 0 0;
  z-index: 2;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(251, 241, 228, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.2px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .seal {
  width: 30px;
  height: 30px;
  display: block;
  transition: transform 0.2s ease;
}

.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(100deg, var(--jaipuri) 0%, var(--rani) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter 0.2s ease;
}

.brand:hover .brand-name { filter: brightness(1.15); }
.brand:hover .seal { transform: rotate(2deg) scale(1.06); }

.header-actions { display: flex; align-items: center; gap: 20px; }

.cart-btn {
  position: relative;
  background: var(--rani);
  color: var(--canvas);
  border: none;
  padding: 10px 20px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.cart-btn:hover { filter: brightness(1.08); }
.cart-btn:active { transform: scale(0.97); }

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--dune);
  color: var(--ink);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 28px 72px;
  max-width: none;
  overflow: hidden;
  color: var(--canvas);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  filter: blur(2px);
  transform: scale(1.06);
}

.hero-bg-slide.active { opacity: 1; }

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(43,27,18,0.35) 0%, rgba(43,27,18,0.5) 55%, rgba(43,27,18,0.7) 100%);
}

.hero .content-wrap { max-width: 720px; }

.hero .eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--dune);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  margin: 0 0 18px;
  letter-spacing: 0.2px;
  color: var(--canvas);
  text-shadow: 0 2px 20px rgba(43,27,18,0.4);
}

.hero p {
  font-size: 16px;
  max-width: 46ch;
  color: rgba(251, 241, 228, 0.88);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide { transition: opacity 0.3s ease; }
  body::before { animation: none; }
}

/* ===== ENHANCED PRODUCT CARD GRID — TALLER PORTRAIT FORMAT ===== */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 680px;
  gap: 20px;
  padding: 0 28px 80px;
  position: relative;
  z-index: 1;
}

.product-card {
  grid-column: span 1;
  grid-row: span 1;
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(43, 27, 18, 0.06);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(43, 27, 18, 0.12);
  z-index: 2;
}

/* Product image section — larger, cleaner */
.product-card .img-wrap {
  flex: 1;
  background: linear-gradient(160deg, var(--dune-soft), var(--haveli));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--canvas);
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 1px;
  overflow: hidden;
  position: relative;
  min-height: 420px;
}

.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Product info section — cleaner layout */
.product-card .info {
  padding: 20px;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card .name {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

.product-card .price {
  font-family: var(--font-label);
  font-size: 18px;
  font-weight: 700;
  color: var(--rani);
  margin: 4px 0;
}

.quick-view-btn {
  align-self: flex-start;
  background: transparent;
  border: 2px solid var(--jaipuri);
  color: var(--jaipuri);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 8px;
}

.quick-view-btn:hover {
  background: var(--jaipuri);
  color: var(--canvas);
}

/* Badge styling */
.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(122, 31, 43, 0.9);
  color: var(--canvas);
  font-family: var(--font-label);
  font-size: 10px;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.product-card .badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dune);
  flex-shrink: 0;
}

/* Responsive grid adjustments */
@media (max-width: 1200px) {
  .panel-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 660px;
  }
}

@media (max-width: 900px) {
  .panel-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 640px;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .panel-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 380px;
    gap: 10px;
    padding: 0 12px 60px;
  }
  
  .product-card .img-wrap {
    min-height: 220px;
  }

  .product-card .info {
    padding: 12px;
  }
  
  .product-card .name {
    font-size: 13px;
  }
  
  .product-card .price {
    font-size: 14px;
  }

  .quick-view-btn {
    font-size: 10px;
    padding: 6px 10px;
  }
}

/* ---------- Product modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(43, 27, 18, 0.6);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--canvas);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--ink);
  color: var(--canvas);
  border: none;
  width: 44px; height: 44px;
  font-size: 16px;
  cursor: pointer;
}

.modal-body { padding: 32px; }
.modal-body .img-wrap {
  height: 340px;
  background: linear-gradient(160deg, var(--dune-soft), var(--haveli));
  display: flex; align-items: center; justify-content: center;
  color: var(--canvas); margin-bottom: 20px;
  font-family: var(--font-label); font-size: 12px; letter-spacing: 1px;
}
.modal-body h2 { font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: 28px; margin: 0 0 8px; }
.modal-body .price { font-family: var(--font-label); font-size: 20px; color: var(--jaipuri); margin-bottom: 16px; }
.modal-body .desc { color: rgba(43, 27, 18, 0.72); margin-bottom: 24px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 13px 22px;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--rani); color: var(--canvas); }
.btn-dark { background: var(--ink); color: var(--canvas); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed; top: 0; right: -420px;
  width: 400px; max-width: 100vw; height: 100vh;
  background: var(--canvas);
  border-left: 1px solid var(--line);
  z-index: 90;
  transition: right 0.25s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h3 { font-family: var(--font-display); font-weight: 600; font-style: italic; margin: 0; font-size: 22px; }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }

.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cart-item .qty-controls { display: flex; align-items: center; gap: 8px; font-family: var(--font-label); }
.cart-item .qty-controls button {
  width: 32px; height: 32px; border: 1px solid var(--ink); background: none; cursor: pointer;
}

.cart-footer { padding: 20px 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-family: var(--font-label); font-size: 16px; margin-bottom: 16px; }

.overlay-backdrop {
  position: fixed; inset: 0; background: rgba(43, 27, 18, 0.4);
  display: none; z-index: 80;
}
.overlay-backdrop.open { display: block; }

/* ---------- Checkout ---------- */
.checkout-form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.checkout-form input, .checkout-form textarea, .checkout-form select {
  font-family: var(--font-body);
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--canvas-dim);
  font-size: 14px;
}
.checkout-form label { font-family: var(--font-label); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(43, 27, 18, 0.6); margin-bottom: -8px; }

.checkout-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.checkout-section:last-child {
  border-bottom: none;
}

.checkout-section h3 {
  font-family: var(--font-label);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(43, 27, 18, 0.5);
  margin-bottom: 14px;
}

.address-confirm {
  background: rgba(217, 168, 87, 0.1);
  border: 1px solid var(--dune);
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 13px;
}

.address-confirm-btn {
  background: var(--jaipuri);
  color: var(--canvas);
  border: none;
  padding: 8px 14px;
  font-family: var(--font-label);
  font-size: 11px;
  cursor: pointer;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.address-confirm-btn:hover {
  filter: brightness(1.1);
}

.empty-state {
  text-align: center; padding: 60px 20px; color: rgba(43, 27, 18, 0.5); font-family: var(--font-label); font-size: 13px;
}

footer {
  padding: 0 0 0;
  font-family: var(--font-label);
  font-size: 12px;
  color: rgba(43, 27, 18, 0.55);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(217, 168, 87, 0.08);
}

.footer-base {
  padding: 18px 28px 40px;
  text-align: center;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  padding: 0 28px 32px;
  margin: 0;
  font-family: var(--font-label);
  font-size: 12px;
  color: rgba(43, 27, 18, 0.7);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ---------- Icon button (wishlist) ---------- */
.icon-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 14px;
  font-family: var(--font-label);
  font-size: 13px;
  cursor: pointer;
  position: relative;
}
.icon-btn.active { background: var(--rani); border-color: var(--rani); color: var(--canvas); }
.icon-btn .cart-count { position: static; background: none; color: inherit; width: auto; height: auto; margin-left: 2px; }

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 28px 0;
  position: relative;
  z-index: 1;
}

.search-input,
.select {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--canvas-dim);
  color: var(--ink);
}

.search-input { flex: 1 1 200px; min-width: 160px; }
.select { font-family: var(--font-label); cursor: pointer; }

/* ---------- Wishlist heart on product cards ---------- */
.heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(251, 241, 228, 0.9);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.heart-btn:hover { 
  transform: scale(1.1);
  background: rgba(251, 241, 228, 0.95);
}
.heart-btn.active { 
  background: var(--rani); 
  color: var(--canvas); 
}

/* ---------- Star ratings ---------- */
.stars {
  font-size: 12px;
  color: var(--dune);
  letter-spacing: 1px;
  margin-top: 4px;
}
.stars-count { font-family: var(--font-label); color: rgba(43, 27, 18, 0.5); letter-spacing: 0; margin-left: 2px; }
.stars-empty { font-family: var(--font-label); font-size: 12px; color: rgba(43, 27, 18, 0.45); letter-spacing: 0; margin-bottom: 16px; }

/* ---------- Product modal: gallery ---------- */
.gallery-main { height: 340px; margin-bottom: 10px; overflow: hidden; background: var(--canvas-dim); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.gallery-thumbs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.thumb {
  width: 56px; height: 56px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--canvas-dim);
  cursor: pointer;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--jaipuri); border-width: 2px; }

/* ---------- Variant selectors ---------- */
.variant-row { margin-bottom: 18px; }
.variant-label {
  font-family: var(--font-label);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(43, 27, 18, 0.6);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  min-width: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--canvas-dim);
  font-family: var(--font-label);
  font-size: 13px;
  cursor: pointer;
}
.size-btn.selected { background: var(--ink); color: var(--canvas); border-color: var(--ink); }

.color-options { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--canvas);
  outline: 1px solid var(--line);
  cursor: pointer;
}
.swatch.selected { outline: 2px solid var(--ink); outline-offset: 2px; }

.size-guide-link {
  background: none;
  border: none;
  color: var(--jaipuri);
  font-family: var(--font-label);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-label);
}
.qty-stepper button {
  width: 36px; height: 36px;
  border: 1px solid var(--ink);
  background: none;
  cursor: pointer;
  font-size: 15px;
}

/* ---------- Size guide modal ---------- */
.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-family: var(--font-label);
  font-size: 13px;
}
.size-guide-table th,
.size-guide-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}
.size-guide-table th { background: var(--canvas-dim); }
.size-guide-note { color: rgba(43, 27, 18, 0.6); font-size: 13px; }

/* ---------- Related products ---------- */
.related-strip { margin: 28px 0; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.related-card { cursor: pointer; display: block; text-decoration: none; color: inherit; }
.related-card .img-wrap {
  height: 110px;
  background: linear-gradient(160deg, var(--dune-soft), var(--haveli));
  display: flex; align-items: center; justify-content: center;
  color: var(--canvas); font-family: var(--font-label); font-size: 10px; margin-bottom: 6px;
}
.related-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.related-card .name { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.related-card .price { font-family: var(--font-label); font-size: 12px; color: var(--jaipuri); }

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

/* ---------- Mobile Optimizations ---------- */
@media (max-width: 600px) {
  .site-header { padding: 14px 16px; }
  .brand-name { font-size: 20px; }
  .cart-btn { padding: 9px 14px; font-size: 12px; }
  .hero { padding: 40px 16px 28px; }
  .toolbar { padding: 16px 16px 0; }
  .modal-body { padding: 20px; }
  .checkout-form { padding: 18px; }
  .trust-bar { padding: 0 16px 24px; gap: 8px 16px; font-size: 11px; }
  .footer-trust { padding: 16px; gap: 12px; }
  .footer-base { padding: 14px 16px 32px; }
  .search-input, .select, .checkout-form input, .checkout-form select { font-size: 16px; }
  .select { max-width: 140px; }
  .search-input { min-width: 100%; flex-basis: 100%; }
  
  .product-card .name {
    font-size: 14px;
  }
  
  .product-card .price {
    font-size: 15px;
  }
}

/* ---------- Reviews ---------- */
.reviews-section { border-top: 1px solid var(--line); padding-top: 20px; }
.reviews-section h3 { font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: 18px; margin: 0 0 16px; }
.reviews-list { margin-bottom: 24px; }
.review {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.review:last-child { border-bottom: none; }
.review-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}
.review-name { font-weight: 600; color: rgba(43, 27, 18, 0.8); }
.review-comment { font-size: 13px; color: rgba(43, 27, 18, 0.7); line-height: 1.5; }
.review-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-form input, .review-form select, .review-form textarea {
  font-family: var(--font-body);
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--canvas-dim);
  font-size: 13px;
}
.review-form textarea { resize: vertical; }
.review-form button {
  margin-top: 4px;
}
