/* ===== Zainrash Accessories — brand tokens ===== */
:root {
  --ink: #1A1411;
  --gold: #B8935A;
  --gold-light: #D8BC8C;
  --bottle: #1F3D2E;
  --ivory: #F5EFE4;
  --rose: #8C3B4A;
  --line: rgba(26, 20, 17, 0.12);
  --shadow: 0 12px 32px rgba(26, 20, 17, 0.10);
  --radius: 2px;
  --max: 1180px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Jost', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

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

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.brand span { color: var(--gold); }

.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a { position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

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

.cart-btn {
  background: none;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.cart-btn:hover { background: var(--ink); color: var(--ivory); }
.cart-count {
  background: var(--rose);
  color: var(--ivory);
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-chain {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  max-width: 780px;
  margin: 18px auto 20px;
}

.hero p {
  max-width: 460px;
  margin: 0 auto 32px;
  color: rgba(26,20,17,0.7);
  font-size: 1.02rem;
}

.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--ivory);
  padding: 14px 34px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-primary:hover { background: transparent; color: var(--ink); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: 13px 32px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }

/* ===== Category chain nav (signature element) ===== */
.chain-nav {
  position: relative;
  padding: 20px 24px 40px;
}

.chain-nav svg { width: 100%; height: 60px; display: block; }

.chain-categories {
  display: flex;
  justify-content: space-around;
  max-width: var(--max);
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 12px;
}

.chain-cat-btn {
  background: var(--ivory);
  border: 1px solid var(--gold);
  color: var(--ink);
  padding: 10px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.chain-cat-btn.active,
.chain-cat-btn:hover {
  background: var(--gold);
  color: var(--ivory);
  border-color: var(--gold);
}

/* ===== Product grid ===== */
.catalog { padding: 20px 24px 100px; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.section-title h2 { font-size: 1.9rem; }
.section-title .count { font-size: 0.85rem; color: rgba(26,20,17,0.5); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.product-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ivory);
  position: relative;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }

.product-thumbs {
  position: absolute;
  bottom: 8px; left: 8px; right: 8px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  background: rgba(255,255,255,0.85);
  border-radius: 8px;
  scrollbar-width: none;
}
.product-thumbs::-webkit-scrollbar { display: none; }

.product-thumbs .thumb {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  line-height: 0;
}
.product-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs .thumb.active { border-color: var(--gold); }

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--rose);
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.product-badge.oos { background: var(--ink); }

.product-info { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.product-name { font-family: 'Playfair Display', serif; font-size: 1.08rem; margin-bottom: 6px; }
.product-desc { font-size: 0.82rem; color: rgba(26,20,17,0.6); margin-bottom: 14px; flex: 1; }

.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.price-now { font-weight: 600; font-size: 1.05rem; }
.price-mrp { font-size: 0.85rem; color: rgba(26,20,17,0.4); text-decoration: line-through; }
.price-off { font-size: 0.72rem; color: var(--bottle); font-weight: 500; }

.add-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.add-btn:hover:not(:disabled) { background: var(--ink); color: var(--ivory); }
.add-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Cart drawer ===== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(26,20,17,0.4);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--ivory);
  z-index: 91;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-header h2 { font-size: 1.3rem; }
.cart-close { background: none; border: none; font-size: 1.4rem; line-height: 1; color: var(--ink); }

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

.cart-item {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 64px; height: 64px; object-fit: cover; background: #fff; }
.cart-item-info { flex: 1; }
.cart-item-name { font-family: 'Playfair Display', serif; font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-price { font-size: 0.82rem; color: rgba(26,20,17,0.6); }

.qty-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn {
  width: 24px; height: 24px;
  border: 1px solid var(--ink);
  background: none;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.qty-val { font-size: 0.85rem; min-width: 16px; text-align: center; }
.remove-btn {
  background: none; border: none;
  font-size: 0.72rem;
  color: var(--rose);
  text-decoration: underline;
  margin-left: auto;
}

.cart-empty { text-align: center; padding: 60px 20px; color: rgba(26,20,17,0.5); }

.cart-footer { padding: 20px 24px 28px; border-top: 1px solid var(--line); }
.cart-subtotal-row { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 0.95rem; }
.cart-subtotal-row strong { font-family: 'Playfair Display', serif; font-size: 1.15rem; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px 32px;
  text-align: center;
}
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 8px; }
.footer-logo { height: 72px; width: auto; margin: 0 auto 8px; display: block; }
.footer-note { font-size: 0.8rem; color: rgba(26,20,17,0.5); }
.footer-links { display: flex; gap: 20px; justify-content: center; margin: 18px 0; font-size: 0.8rem; }

/* ===== Checkout page ===== */
.checkout-wrap { max-width: 640px; margin: 0 auto; padding: 60px 24px 100px; }
.checkout-wrap h1 { font-size: 2.2rem; margin-bottom: 8px; }
.checkout-wrap .sub { color: rgba(26,20,17,0.6); margin-bottom: 40px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(26,20,17,0.7);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.order-summary {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  margin-bottom: 32px;
}
.order-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; }
.order-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-family: 'Playfair Display', serif; font-size: 1.2rem; }

.pay-btn {
  width: 100%;
  background: var(--bottle);
  color: #fff;
  border: none;
  padding: 16px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 12px;
}
.pay-btn:hover { background: #16302a; }
.pay-btn:disabled { opacity: 0.5; }

.upi-note {
  text-align: center;
  font-size: 0.76rem;
  color: rgba(26,20,17,0.5);
  margin-top: 12px;
  letter-spacing: 0.01em;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.payment-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(184, 147, 90, 0.06);
}

.payment-option input[type="radio"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--bottle);
}

.payment-option-main { display: flex; flex-direction: column; gap: 2px; }
.payment-option-title { font-size: 0.92rem; font-weight: 500; }
.payment-option-sub { font-size: 0.78rem; color: rgba(26,20,17,0.55); }

/* ===== UPI QR payment panel ===== */
.upi-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 24px;
  text-align: center;
  margin: 28px 0 20px;
}

.upi-qr {
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  border: 1px solid var(--line);
  padding: 10px;
  background: #fff;
}

.upi-id-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 8px 16px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.upi-id-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  color: rgba(26,20,17,0.5);
}

.upi-id-value { font-weight: 500; }

.upi-app-btn {
  display: block;
  max-width: 260px;
  margin: 0 auto 18px;
}

.upi-panel-note {
  font-size: 0.8rem;
  color: rgba(26,20,17,0.55);
  max-width: 380px;
  margin: 0 auto;
}

.form-error { color: var(--rose); font-size: 0.82rem; margin-top: 6px; display: none; }
.form-error.show { display: block; }

.checkout-status {
  text-align: center;
  padding: 80px 24px;
}
.checkout-status h1 { margin-bottom: 12px; }

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 64px 20px 56px; }
}

/* ---------- Lightbox (click image to pop out) ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 62, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #fff;
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-counter {
  position: absolute;
  bottom: 18px;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ===== Floating WhatsApp contact button ===== */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 18px;
  background: #25D366;
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.40);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  animation: wa-bounce 2s infinite;
}
.wa-float:active { transform: scale(0.96); }
.wa-float:hover {
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.55);
  animation: none;
}
.wa-float svg {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}
.wa-float-text {
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

@keyframes wa-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
}

/* ===== Promo code box ===== */
.promo-box {
  margin: 18px 0 6px;
  padding: 16px 18px;
  border: 1px dashed var(--gold-light);
  border-radius: 12px;
  background: rgba(184,147,90,0.06);
}
.promo-box label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.promo-row {
  display: flex;
  gap: 8px;
}
.promo-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(26,20,17,0.18);
  border-radius: 8px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.promo-row input:focus {
  outline: none;
  border-color: var(--gold);
}
.promo-row .btn-ghost {
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.promo-row .btn-ghost:hover {
  background: var(--gold);
  color: #fff;
}
.promo-msg {
  margin-top: 8px;
  font-size: 0.85rem;
  min-height: 1em;
}
.promo-msg.ok { color: #1F3D2E; font-weight: 600; }
.promo-msg.err { color: #8C3B4A; }

.order-row.discount span:last-child { color: #1F3D2E; font-weight: 600; }

