/* ===========================================================
   NANDINI UNIQUE — design tokens
   Palette drawn from a Kanjivaram silk saree: deep wine body,
   zari-gold border, ivory blouse-piece background, warm ink text.
   Signature element: a woven "temple border" (kasuti) motif used
   as a divider strip, echoing the woven border of a saree pallu.
=========================================================== */
:root {
  --maroon: #6e1e32;
  --maroon-dark: #45111f;
  --gold: #c9972b;
  --gold-light: #e8c874;
  --ivory: #fbf6ec;
  --blush: #f3ded0;
  --ink: #2b1b14;
  --ink-soft: #6b584e;
  --success: #3f7d58;
  --danger: #a8352a;
  --line: rgba(43, 27, 20, 0.12);

  --font-display: "Marcellus", "Georgia", serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;

  --radius: 4px;
  --shadow: 0 10px 30px rgba(69, 17, 31, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--maroon-dark); margin: 0 0 .4em; font-weight: 400; letter-spacing: .01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--gold); font-weight: 600; }

/* ---------- zari border motif (signature element) ----------
   A repeating "temple" zig-zag with a bead line, evoking the woven
   gold border (zari) that runs along the edge of a silk saree. */
.zari-border {
  height: 14px;
  width: 100%;
  background:
    radial-gradient(circle at 7px 7px, var(--gold) 2px, transparent 2.4px) 0 0 / 14px 14px repeat-x,
    linear-gradient(135deg, transparent 45%, var(--gold) 45% 55%, transparent 55%) 0 0 / 14px 14px repeat-x;
  background-color: var(--maroon-dark);
  opacity: .9;
}
.zari-border.thin { height: 8px; }

/* ---------- header ---------- */
header.site-header {
  background: var(--maroon-dark);
  color: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-lockup {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 72px;
}
.brand-logo {
  display: block;
  width: 78px;
  max-width: 78px;
  max-height: 78px;
  height: auto;
}
nav.main-nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
nav.main-nav a { font-size: .92rem; color: var(--ivory); opacity: .85; padding: 6px 2px; border-bottom: 2px solid transparent; transition: .2s; }
nav.main-nav a:hover, nav.main-nav a.active { opacity: 1; border-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-link { position: relative; font-size: 1.1rem; }
.badge {
  position: absolute; top: -8px; right: -12px; background: var(--gold); color: var(--maroon-dark);
  font-size: .65rem; font-weight: 700; padding: 1px 5px; border-radius: 10px;
}
.search-box { display: flex; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 30px; padding: 6px 14px; }
.search-box input { background: none; border: none; outline: none; color: var(--ivory); font-size: .88rem; width: 170px; }
.search-box input::placeholder { color: rgba(255,255,255,.55); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: .88rem; font-weight: 600; letter-spacing: .02em; transition: transform .15s, box-shadow .15s, background .2s;
}
.btn-primary { background: var(--maroon); color: var(--ivory); }
.btn-primary:hover { background: var(--maroon-dark); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--maroon-dark); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; border-color: var(--maroon); color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .8rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-whatsapp { background: #25D366; color: #06340f; }
.btn-whatsapp:hover { background: #1ebe5a; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--maroon-dark) 0%, var(--maroon) 60%, #7c2b41 100%);
  color: var(--ivory);
  overflow: hidden;
}
.hero .container { padding: 84px 24px 70px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--ivory); font-size: clamp(2.1rem, 4vw, 3.2rem); max-width: 11ch; }
.hero p.lede { color: var(--blush); max-width: 46ch; font-size: 1.02rem; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-motif {
  aspect-ratio: 1/1; border-radius: 50%; border: 10px solid var(--gold);
  display: flex; align-items: center; justify-content: center; position: relative;
  background: radial-gradient(circle at 35% 30%, #8a2f47, var(--maroon-dark));
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero-motif::before {
  content: ""; position: absolute; inset: 16px; border: 1px dashed rgba(232,200,116,.6); border-radius: 50%;
}
.hero-motif span { font-family: var(--font-display); color: var(--gold-light); font-size: 1.4rem; text-align: center; padding: 20px; }

/* ---------- section ---------- */
.section { padding: 60px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.9rem; }

/* ---------- product grid & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .thumb { position: relative; aspect-ratio: 3/4; background: var(--blush); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .discount-flag {
  position: absolute; top: 10px; left: 0; background: var(--gold); color: var(--maroon-dark);
  font-size: .72rem; font-weight: 700; padding: 4px 10px 4px 8px; border-radius: 0 3px 3px 0;
}
.product-card .card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.product-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .card-actions { padding: 0 16px 16px; }
.product-card .cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-weight: 700; }
.product-card h3 { font-size: 1.02rem; margin: 0; }
.product-card .meta { font-size: .8rem; color: var(--ink-soft); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price-row .now { font-size: 1.15rem; font-weight: 700; color: var(--maroon-dark); }
.price-row .was { font-size: .85rem; text-decoration: line-through; color: var(--ink-soft); }

/* ---------- offer banner strip ---------- */
.offer-strip { background: var(--gold); color: var(--maroon-dark); }
.offer-strip .container { padding: 10px 24px; display: flex; gap: 30px; align-items: center; overflow-x: auto; font-size: .85rem; font-weight: 600; white-space: nowrap; }

.offer-card {
  background: linear-gradient(135deg, var(--blush), #fff); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.offer-card .code { display: inline-block; background: var(--maroon-dark); color: var(--gold-light); font-weight: 700; letter-spacing: .08em; padding: 6px 12px; border-radius: 3px; font-size: .82rem; align-self: flex-start; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; max-width: 460px; margin: 0 auto; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius); font-family: inherit; font-size: .92rem;
  background: #fdfbf7; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: .76rem; color: var(--ink-soft); }
.error-msg { color: var(--danger); font-size: .84rem; margin: 6px 0; }
.success-msg { color: var(--success); font-size: .84rem; margin: 6px 0; }

/* ---------- badges / status pills ---------- */
.pill { display: inline-block; padding: 4px 12px; border-radius: 30px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.pill.status-Placed, .pill.status-Confirmed { background: #fde9c8; color: #8a5a00; }
.pill.status-Packed, .pill.status-Shipped { background: #d9e8f5; color: #1a4d80; }
.pill.status-Out-for-Delivery { background: #e2d9f5; color: #4b2a80; }
.pill.status-Delivered { background: #dcf0e3; color: var(--success); }
.pill.status-Cancelled, .pill.status-Returned { background: #fbdcd7; color: var(--danger); }
.pill.pay-Pending { background: #fde9c8; color: #8a5a00; }
.pill.pay-Verified { background: #dcf0e3; color: var(--success); }
.pill.pay-Failed { background: #fbdcd7; color: var(--danger); }
.pill.pay-Refunded { background: #eee; color: #555; }

/* ---------- footer ---------- */
footer.site-footer { background: var(--maroon-dark); color: var(--blush); margin-top: 60px; }
footer.site-footer .container { padding: 46px 24px 26px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer.site-footer h4 { color: var(--gold-light); font-size: .95rem; }
footer.site-footer a { font-size: .87rem; opacity: .85; }
footer.site-footer a:hover { opacity: 1; text-decoration: underline; }
.foot-bottom { text-align: center; font-size: .78rem; opacity: .65; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; background: #25D366; color: #06340f;
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 50;
}

/* ---------- misc utility ---------- */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 14px; align-items: center; }
.row.between { justify-content: space-between; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state .icon { font-size: 2.4rem; margin-bottom: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
table th, table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.thumb-sm { width: 46px; height: 60px; object-fit: cover; border-radius: 3px; background: var(--blush); }

/* ---------- admin shell ---------- */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--maroon-dark); color: var(--ivory); padding: 24px 0; }
.admin-sidebar .brand { padding: 0 22px 22px; }
.admin-sidebar nav a { display: block; padding: 12px 22px; font-size: .9rem; opacity: .8; border-left: 3px solid transparent; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { opacity: 1; background: rgba(255,255,255,.06); border-color: var(--gold); }
.admin-main { padding: 30px 34px; background: var(--ivory); }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 30px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-card .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--maroon-dark); }
.stat-card .lbl { font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(43,27,20,.55); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius); max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 28px; position: relative; }
.modal .close-x { position: absolute; top: 16px; right: 18px; font-size: 1.3rem; color: var(--ink-soft); background: none; border: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-motif { max-width: 260px; margin: 0 auto; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; overflow-x: auto; padding: 10px; }
  .admin-sidebar .brand { display: none; }
  .admin-sidebar nav { display: flex; }
  footer.site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  footer.site-footer .container { grid-template-columns: 1fr; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card, .btn { transition: none; }
}
