/* ============================================================
   WORLDSERVE — store.css
   InfinKart store page styles
   ============================================================ */

/* ═══ PAGE LOADER ════════════════════════════════════════════ */
.ws-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.ws-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Subtle scanline texture */
.ws-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.18) 3px,
    rgba(0,0,0,0.18) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Moving gold scan beam */
.ws-loader-scan {
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(201,168,76,0.03) 40%,
    rgba(201,168,76,0.10) 50%,
    rgba(201,168,76,0.03) 60%,
    transparent 100%
  );
  animation: ws-scan-beam 3.2s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes ws-scan-beam {
  0%   { top: -60px; }
  100% { top: 100%; }
}

/* Corner accent brackets */
.ws-loader-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 10;
}
.ws-loader-corner.tl { top: 20px; left: 20px;
  border-top: 1px solid rgba(201,168,76,0.35);
  border-left: 1px solid rgba(201,168,76,0.35); }
.ws-loader-corner.tr { top: 20px; right: 20px;
  border-top: 1px solid rgba(201,168,76,0.35);
  border-right: 1px solid rgba(201,168,76,0.35); }
.ws-loader-corner.bl { bottom: 20px; left: 20px;
  border-bottom: 1px solid rgba(201,168,76,0.35);
  border-left: 1px solid rgba(201,168,76,0.35); }
.ws-loader-corner.br { bottom: 20px; right: 20px;
  border-bottom: 1px solid rgba(201,168,76,0.35);
  border-right: 1px solid rgba(201,168,76,0.35); }

/* Centre content */
.ws-loader-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(340px, 88vw);
}

.ws-loader-logo {
  width: 150px;
  opacity: 0.92;
  margin-bottom: 2.8rem;
  filter: brightness(1.05);
}

/* Giant percentage counter */
.ws-loader-pct-wrap {
  display: flex;
  align-items: flex-start;
  line-height: 1;
  margin-bottom: 1.4rem;
}
.ws-loader-pct {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(5rem, 18vw, 8rem);
  font-weight: 600;
  color: #c9a84c;
  letter-spacing: -3px;
  line-height: 1;
  text-shadow: 0 0 50px rgba(201,168,76,0.45);
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
  text-align: right;
}
.ws-loader-pct-sym {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 300;
  color: rgba(201,168,76,0.55);
  margin-top: 0.9rem;
  margin-left: 3px;
}

/* Progress bar */
.ws-loader-bar-track {
  width: 100%;
  height: 1px;
  background: rgba(201,168,76,0.18);
  position: relative;
  margin-bottom: 1.2rem;
  overflow: visible;
}
.ws-loader-bar {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(201,168,76,0.5), #c9a84c);
  width: 0%;
  transition: width 0.12s linear;
}
/* Glowing tip */
.ws-loader-bar::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  width: 2px;
  height: 7px;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(201,168,76,0.9), 0 0 20px 6px rgba(201,168,76,0.4);
}

/* Status label */
.ws-loader-status {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: rgba(201,168,76,0.45);
  text-transform: uppercase;
  margin: 0;
  height: 1em;
}

/* ═══ ENQUIRY NUDGE (detail modal) ══════════════════════════ */
.detail-enquiry-nudge {
  margin-top: 1rem;
  text-align: center;
}
.detail-enquiry-nudge-btn {
  background: none;
  border: none;
  color: rgba(201,168,76,0.6);
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  transition: color 0.2s, text-decoration-color 0.2s;
  text-decoration: underline;
  text-decoration-color: rgba(201,168,76,0.25);
  text-underline-offset: 3px;
}
.detail-enquiry-nudge-btn:hover {
  color: #c9a84c;
  text-decoration-color: rgba(201,168,76,0.55);
}

/* ── STORE HERO ── */
.store-hero {
  padding: 10rem 0 6rem;
  background: var(--near);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

/* Background video + poster — pinned behind everything */
.store-hero-video,
.store-hero-poster {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Dark overlay so text stays readable */
.store-hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(9, 9, 9, 0.68);
  z-index: 1;
}
/* Hero content sits above video + overlay */
.store-hero .container {
  position: relative;
  z-index: 2;
}
.store-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
/* InfinKart logo in hero */
.infinkart-logo {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 1.8rem;
  object-fit: contain;
}

.store-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.store-title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.92;
  color: var(--white);
}
.store-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--off);
  max-width: 480px;
  line-height: 1.85;
  margin-top: 1.4rem;
}

/* Cart hero button */
.cart-hero-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line2);
  color: var(--white);
  padding: 1rem 1.8rem;
  font-family: var(--font-cond);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  position: relative;
}
.cart-hero-btn:hover { background: var(--mid); }
.cart-hero-icon { color: var(--gold); font-size: 1.2rem; }
.cart-count-badge {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-cond);
  line-height: 1;
}
.cart-count-badge.visible { display: flex; }

/* ── CATEGORY FILTER ── */
.store-filter-bar {
  background: var(--near);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 64px;
  z-index: 200;
}
.store-filter {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0.5rem;
  padding: 0 0.5rem;
}
.store-filter::-webkit-scrollbar { display: none; }
.filter-btn {
  font-family: var(--font-cond);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1.3rem 1.8rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.filter-btn:hover { color: var(--white); }
.filter-btn.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }

/* ── STORE GRID ── */
.store-section {
  padding: 4rem 0 8rem;
  background: var(--black);
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.store-empty {
  grid-column: 1 / -1;
  padding: 6rem 2rem;
  text-align: center;
  font-family: var(--font-cond);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── PRODUCT CARD ── */
.product-card {
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 2px;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  background: #222222;
  border-color: var(--gold);
  box-shadow: 0 4px 32px rgba(201,168,76,0.12);
}

/* Card image */
.card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mid);
  flex-shrink: 0;
}
.card-img::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); z-index: 1;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.product-card:hover .card-img img { transform: scale(1.05); }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.card-img-placeholder-icon {
  font-size: 3rem;
  color: var(--dim);
}

/* Stock badge */
.stock-badge {
  position: absolute; bottom: 0.9rem; left: 0.9rem; z-index: 2;
  font-family: var(--font-cond);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  font-weight: 600;
}
.stock-badge.in   { color: #7ddf7d; background: rgba(0,0,0,0.55); border: 1px solid rgba(109,191,109,0.6); }
.stock-badge.low  { color: #f0b050; background: rgba(0,0,0,0.55); border: 1px solid rgba(224,160,64,0.6);  }
.stock-badge.out  { color: #e07777; background: rgba(0,0,0,0.55); border: 1px solid rgba(204,68,68,0.6);   }
.stock-badge.soon { color: var(--gold); background: rgba(0,0,0,0.55); border: 1px solid rgba(201,168,76,0.5); }

/* Card body */
.card-body {
  padding: 1.8rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-tag {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.card-name {
  font-family: var(--font-head);
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.card-sku {
  font-family: var(--font-cond);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  color: var(--off);
  margin-bottom: 1rem;
}
.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
  margin-bottom: 1.2rem;
}
.price-main {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}
.price-original {
  font-family: var(--font-cond);
  font-size: 1.05rem;
  color: var(--dim);
  text-decoration: line-through;
}
.price-from {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--white);
  line-height: 1;
}
.price-from-label {
  font-family: var(--font-cond);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.price-coming {
  font-family: var(--font-cond);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.card-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
/* Primary CTA — gold filled button, full width */
.card-btn {
  display: block;
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.card-btn:hover {
  background: #e0bb5a;
  border-color: #e0bb5a;
  color: var(--black);
}
.card-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
/* Secondary CTA — View Details, full width, outlined gold */
.card-detail-link {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-cond);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.45);
  padding: 0.7rem 1rem;
  background: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.card-detail-link:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── FLOATING CART BUTTON ── */
.cart-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 0.9rem 1.4rem;
  font-family: var(--font-cond);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.3s;
  pointer-events: none;
}
.cart-fab.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cart-fab-badge {
  background: var(--black);
  color: var(--gold);
  border-radius: 50%;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ── CART DRAWER ── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.72);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 100vw;
  z-index: 1200;
  background: var(--near);
  border-left: 1px solid var(--line2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-title {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--white);
}
.drawer-close {
  background: none; border: none;
  color: var(--muted); font-size: 1.2rem;
  cursor: pointer; padding: 0.3rem;
  line-height: 1; transition: color 0.2s;
}
.drawer-close:hover { color: var(--white); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.8rem;
}
.cart-empty {
  padding: 3rem 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-name {
  font-family: var(--font-cond);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.cart-item-price {
  font-family: var(--font-cond);
  font-size: 0.92rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.qty-btn {
  background: var(--surface); border: 1px solid var(--line);
  color: var(--white);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; line-height: 1;
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--mid); }
.qty-val {
  font-family: var(--font-cond);
  font-size: 0.95rem;
  color: var(--white);
  min-width: 22px; text-align: center;
}
.cart-remove {
  background: none; border: none;
  color: var(--dim); cursor: pointer;
  font-size: 0.9rem; padding: 0 0.2rem;
  line-height: 1; transition: color 0.15s;
  margin-left: 0.2rem;
}
.cart-remove:hover { color: #cc4444; }

.cart-footer {
  flex-shrink: 0;
  padding: 1.5rem 1.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cart-total-label {
  font-family: var(--font-cond);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-total-amount {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--white);
  line-height: 1;
}
.cart-shipping-note {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  margin-top: -0.4rem;
}
.cart-checkout-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 1rem;
  border: none;
  padding: 1rem;
}

/* ── MODALS (shared base) ── */
.ws-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.82);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.ws-modal-overlay.open { opacity: 1; pointer-events: all; }

.ws-modal {
  background: var(--surface);
  border: 1px solid var(--line2);
  width: 100%; max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
}
.ws-modal::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
}
.ws-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 2rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.ws-modal-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1;
}

/* ── VARIANT MODAL ── */
.variant-options {
  padding: 1.5rem 2rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.variant-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--deep);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  gap: 1rem;
}
.variant-option:hover:not(.disabled) { border-color: rgba(201,168,76,0.5); background: var(--mid); }
.variant-option.selected { border-color: var(--gold); background: rgba(201,168,76,0.07); }
.variant-option.disabled { opacity: 0.38; cursor: not-allowed; }
.variant-name {
  font-family: var(--font-cond);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--white);
}
.variant-price {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
}
.variant-tag {
  font-family: var(--font-cond);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.variant-tag.low  { color: #e0a040; }
.variant-tag.out  { color: #cc6666; }
.variant-add-row {
  padding: 1.2rem 2rem 2rem;
}
.variant-add-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 1rem;
  border: none;
  padding: 1rem;
}

/* ── ENQUIRY MODAL ── */
.enquiry-form { padding: 1.5rem 2rem 2rem; }
.form-group   { margin-bottom: 1.2rem; }
.form-label {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  background: var(--deep);
  border: 1px solid var(--line);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: var(--dim); }
.enquiry-submit {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 1rem;
  border: none;
  padding: 1rem;
  margin-top: 0.5rem;
}

/* ── SUCCESS / NOTICE OVERLAYS ── */
.ws-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.ws-overlay-box {
  background: var(--surface);
  border: 1px solid var(--line2);
  max-width: 480px; width: 100%;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
}
.ws-overlay-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
}
.ws-overlay-icon { font-size: 2.5rem; margin-bottom: 1rem; color: #6dbf6d; }
.ws-overlay-title {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.ws-overlay-body {
  font-size: 1rem;
  font-weight: 300;
  color: var(--off);
  line-height: 1.85;
  margin-bottom: 2rem;
}
.ws-overlay-body a { color: var(--gold); }

/* ── CHECKOUT MODAL ── */
.ws-modal.checkout-modal { max-width: 620px; }

.checkout-section-label {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.8rem 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.checkout-section-label:first-of-type { margin-top: 0.4rem; }

/* Two-column layout for name/phone and city/state/pincode */
.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.checkout-row.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Billing toggle (checkbox + label) */
.checkout-billing-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.4rem 0 0.6rem;
  cursor: pointer;
}
.checkout-billing-toggle input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}
.checkout-checkbox-label {
  font-size: 0.95rem;
  color: var(--off);
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

/* Billing address section (hidden by default, toggled via JS) */
#billing-fields { display: none; }

/* Select styling to match form-input */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
select.form-input option {
  background: var(--near);
  color: var(--white);
}

/* Checkout summary inside modal (order total row) — superceded by co-summary below */
.checkout-order-summary {
  margin-bottom: 1.4rem;
}
.checkout-order-summary .summary-label {
  font-family: var(--font-cond);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.checkout-order-summary .summary-items {
  font-size: 0.92rem;
  color: var(--off);
  margin-top: 0.25rem;
}
.checkout-order-summary .summary-total {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--gold);
  white-space: nowrap;
}

/* Pay button inside checkout modal */
.checkout-pay-btn {
  display: block;
  width: 100%;
  margin-top: 1.8rem;
  padding: 1.1rem;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-cond);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: filter .2s;
}
.checkout-pay-btn:hover { filter: brightness(1.12); }
.checkout-pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}

/* Processing spinner state */
.checkout-pay-btn.processing::after {
  content: ' …';
  animation: ellipsis 1.2s steps(3, end) infinite;
}
@keyframes ellipsis {
  0%   { content: ' .'; }
  33%  { content: ' ..'; }
  66%  { content: ' ...'; }
  100% { content: ' .'; }
}

/* Razorpay trust note */
.rzp-trust-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--dim);
  margin-top: 0.9rem;
}
.rzp-trust-note svg { vertical-align: middle; margin-right: 0.3rem; }

/* ── Fix: stock badge inside detail modal must not be absolute-positioned ── */
/* .stock-badge uses position:absolute for cards; override for detail info panel */
.detail-stock-row .stock-badge {
  position: static;
  display: inline-block;
}

/* ── PRODUCT DETAIL MODAL ── */
.detail-overlay {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(0, 0, 0, 0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
  overflow-y: auto;
}
.detail-overlay.open { opacity: 1; pointer-events: all; }

.detail-modal {
  background: var(--surface);
  border: 1px solid var(--line2);
  width: 100%; max-width: 1020px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  flex-shrink: 0;
}
.detail-modal::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
  z-index: 2;
}

/* Close button */
.detail-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  background: var(--near);
  border: 1px solid var(--line2);
  color: var(--muted);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.detail-close:hover { color: var(--white); border-color: var(--line2); background: var(--mid); }

/* Upper two-column */
.detail-upper {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Gallery — left column */
.detail-gallery {
  padding: 2.8rem 2rem 2rem 2.8rem;
  border-right: 1px solid var(--line);
}
.detail-main-wrap {
  aspect-ratio: 4 / 3;
  background: var(--near);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
  position: relative;      /* needed for arrow + counter positioning */
  cursor: zoom-in;
}
.detail-main-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s;
}
.detail-main-placeholder {
  font-size: 3.5rem;
  color: var(--dim);
  display: none;
}

/* Carousel prev/next arrows overlaid on main image */
.detail-nav-btn {
  position: absolute; top: 50%; z-index: 3;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  user-select: none;
  line-height: 1;
}
.detail-nav-prev { left:  0.6rem; }
.detail-nav-next { right: 0.6rem; }
.detail-main-wrap:hover .detail-nav-btn { opacity: 1; }
.detail-nav-btn:hover { background: rgba(0,0,0,0.82); }

/* Image counter badge e.g. "2 / 4" */
.detail-img-counter {
  position: absolute; bottom: 0.7rem; right: 0.8rem; z-index: 3;
  font-family: var(--font-cond);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--white);
  background: rgba(0,0,0,0.55);
  padding: 0.25rem 0.65rem;
  pointer-events: none;
}
.detail-thumbs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.detail-thumb {
  width: 64px; height: 64px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: border-color 0.2s, opacity 0.2s;
}
.detail-thumb:hover { opacity: 1; border-color: var(--line2); }
.detail-thumb.active { border-color: var(--gold); opacity: 1; }

/* Info panel — right column */
.detail-info {
  padding: 2.8rem 2.8rem 2rem 2rem;
  display: flex;
  flex-direction: column;
}
.detail-tag {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.detail-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 0.3rem;
  padding-right: 2.5rem; /* don't underlap close button */
}
.detail-sku {
  font-family: var(--font-cond);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin-bottom: 1.2rem;
}
.detail-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.detail-price-main {
  font-family: var(--font-head);
  font-size: 2.8rem;
  color: var(--white);
  line-height: 1;
}
.detail-price-original {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  color: var(--dim);
  text-decoration: line-through;
}
.detail-price-label {
  font-family: var(--font-cond);
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.detail-stock-row {
  margin-bottom: 1.3rem;
}

/* Bullet list */
.detail-bullets {
  list-style: none;
  padding: 0; margin: 0 0 1.4rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.detail-bullets li {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--off);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.55;
}
.detail-bullets li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--gold); font-size: 1.05rem;
  line-height: 1.4;
}

/* Variant picker inside detail modal */
.detail-variant-label {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

/* Action buttons */
.detail-action-row {
  margin-top: auto;
  padding-top: 1rem;
}
.detail-add-btn {
  display: block; width: 100%;
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 1rem 1.5rem;
  font-family: var(--font-cond);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: filter 0.2s;
}
.detail-add-btn:hover:not(:disabled) { filter: brightness(1.12); }
.detail-add-btn:disabled { opacity: 0.35; cursor: not-allowed; filter: none; }
.detail-enquire-btn {
  display: block; width: 100%;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 1rem 1.5rem;
  font-family: var(--font-cond);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.detail-enquire-btn:hover { background: var(--gold); color: var(--black); }

/* Lower: description + specs tabs */
.detail-lower {
  border-top: 1px solid var(--line);
}
.detail-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 2.5rem;
}
.detail-tab {
  font-family: var(--font-cond);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: none; border: none;
  border-bottom: 3px solid transparent;
  padding: 1.1rem 1.5rem 1.1rem 0;
  margin-right: 1.5rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}
.detail-tab:hover { color: var(--white); }
.detail-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.detail-tab-body {
  padding: 2rem 2.8rem 2.5rem;
}
.detail-tab-pane { display: none; }
.detail-tab-pane.active { display: block; }

.detail-desc-text {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--off);
  line-height: 1.95;
  max-width: 72ch;
}
.detail-desc-text p {
  margin: 0 0 0.8rem;
}
.detail-desc-text p:last-child { margin-bottom: 0; }
.detail-desc-text ol,
.detail-desc-text ul {
  margin: 0.5rem 0 0.8rem 1.5rem;
  padding: 0;
}
.detail-desc-text li {
  margin-bottom: 0.35rem;
  line-height: 1.75;
}
.detail-desc-text strong {
  color: var(--white);
  font-weight: 500;
}

.detail-policy {
  padding: 0.75rem 2.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--dim);
  line-height: 1.7;
}
.detail-policy a {
  color: var(--dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.detail-policy a:hover { color: var(--muted); }
@media (max-width: 768px) {
  .detail-policy { padding: 0.75rem 2rem; }
}
@media (max-width: 600px) {
  .detail-policy { padding: 0.75rem 1.5rem; }
}

.detail-warning {
  margin-top: 1.4rem;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid #e0892a;
  background: rgba(224, 137, 42, 0.07);
  border-radius: 0 4px 4px 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #c98040;
}
.detail-warning strong {
  color: #e0892a;
  font-weight: 500;
}

.detail-specs-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 640px;
}
.detail-specs-table tr { border-bottom: 1px solid var(--line); }
.detail-specs-table tr:last-child { border-bottom: none; }
.detail-specs-table td {
  padding: 0.8rem 0;
  font-size: 0.95rem;
  vertical-align: top;
  line-height: 1.5;
}
.detail-specs-table td:first-child {
  font-family: var(--font-cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
  width: 36%;
  padding-right: 1.5rem;
}
.detail-specs-table td:last-child {
  color: var(--off);
  font-weight: 300;
}

/* ── IMAGE LIGHTBOX ── */
.detail-lightbox {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s;
}
.detail-lightbox.open { opacity: 1; pointer-events: all; }

/* Close button */
.detail-lb-close {
  position: absolute; top: 1.2rem; right: 1.4rem; z-index: 2;
  background: none; border: none;
  color: rgba(255,255,255,0.55);
  font-size: 1.6rem;
  cursor: pointer;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
  line-height: 1;
}
.detail-lb-close:hover { color: var(--white); }

/* Side arrows */
.detail-lb-arrow {
  flex-shrink: 0;
  background: none; border: none;
  color: rgba(255,255,255,0.45);
  font-size: 3rem;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 80px;
  user-select: none;
}
.detail-lb-arrow:hover { color: var(--white); }

/* Image container — limits size, centres the image */
.detail-lb-img-wrap {
  display: flex; align-items: center; justify-content: center;
  max-width: calc(100vw - 160px);
  max-height: 88vh;
  flex: 1;
}
.detail-lb-img {
  max-width: 100%; max-height: 88vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.15s;
  box-shadow: 0 8px 64px rgba(0,0,0,0.8);
}

/* Image counter (bottom-centre) */
.detail-lb-counter {
  position: absolute; bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
  white-space: nowrap;
}

/* ── CHECKOUT ORDER SUMMARY ── */
.checkout-order-summary {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 8px;
  padding: 1rem 1.3rem;
  margin-bottom: 0.2rem;
}
.co-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.38rem 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}
.co-summary-row span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.co-summary-row span:last-child {
  font-variant-numeric: tabular-nums;
  text-align: right;
  flex: 0 0 auto;
  white-space: nowrap;
}
.co-summary-total-row {
  border-top: 1px solid rgba(201,168,76,0.18);
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--light);
}
/* Gold zone label shown next to "Shipping" */
.co-zone-tag {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gold);
  opacity: 0.85;
  margin-left: 0.35rem;
}
/* Muted placeholder text before pincode is entered */
.co-summary-pending {
  color: rgba(255,255,255,0.3);
  font-style: italic;
  font-size: 0.8rem;
}
.co-summary-shipping-amt {
  color: rgba(255,255,255,0.55);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .store-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .cart-drawer { width: 380px; }
  /* Detail modal: stack gallery + info on tablet */
  .detail-upper { grid-template-columns: 1fr; }
  .detail-gallery { padding: 2rem 2rem 1.2rem; border-right: none; border-bottom: 1px solid var(--line); }
  .detail-info { padding: 1.8rem 2rem 1.5rem; }
  .detail-title { padding-right: 3rem; }
  .detail-tab-body { padding: 1.5rem 2rem 2rem; }
  .detail-tabs { padding: 0 2rem; }
}
@media (max-width: 600px) {
  .store-grid { grid-template-columns: 1fr; gap: 1rem; }
  .store-hero-inner { flex-direction: column; align-items: flex-start; }
  .cart-hero-btn { width: 100%; justify-content: center; }
  .cart-drawer { width: 100vw; }
  .ws-modal { max-width: 100%; }
  .cart-fab { bottom: 1.2rem; right: 1.2rem; }
  .variant-options, .enquiry-form, .ws-modal-header { padding-left: 1.4rem; padding-right: 1.4rem; }
  .variant-add-row { padding-left: 1.4rem; padding-right: 1.4rem; }
  /* Checkout form: stack all rows on mobile */
  .checkout-row,
  .checkout-row.three-col { grid-template-columns: 1fr; }
  /* Checkout summary: prevent total amount overflowing right edge */
  .checkout-order-summary { overflow: hidden; }
  .checkout-order-summary .summary-total { font-size: 1.3rem; }
  .co-summary-total-row span:last-child { font-size: 1.3rem; }
  .co-summary-row span:last-child { white-space: normal; text-align: right; }
  /* Detail modal: full-height sheet from bottom on mobile */
  .detail-overlay { padding: 0; align-items: flex-end; }
  .detail-modal { max-height: 95vh; max-width: 100%; }
  .detail-gallery { padding: 1.5rem 1.5rem 1rem; }
  .detail-info { padding: 1.5rem; }
  .detail-tabs { padding: 0 1.5rem; }
  .detail-tab-body { padding: 1.2rem 1.5rem 1.8rem; }
  /* Lightbox: tighter arrows on mobile */
  .detail-lb-arrow { font-size: 2rem; padding: 0 0.8rem; }
  .detail-lb-img-wrap { max-width: calc(100vw - 96px); }
}
