@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');
/* ============================================
   MISHICRAFT — LUXURY BRAND THEME ENGINE
   (Extracted Gold, Off-White/Cream & Dark Ink)
   ============================================ */
:root {
  /* Color System */
  --ink: #1a1615;            /* Dark Charcoal / Warm Black */
  --ink2: #24201e;           /* Secondary Dark Tone */
  --gold: #b38646;           /* Ochre Gold / Brass Accent */
  --goldl: #d4a76a;          /* Light Warm Gold Accent */
  --bg: #ffffff;             /* Explicit Pure White Background */
  --bg-cream: #f9f6ef;       /* Warm Cream / Off-White Card Tone */
  --surface: #ffffff;        /* Pure White Surfaces */
  --tx: #2c2825;             /* Dark Warm Gray Text */
  --tx-sub: #66605a;         /* Muted Text */
  --tx-muted: #9e9790;       /* Light Muted Text */
  --line: #e8e3d9;           /* Soft Border Accent */
  --whatsapp: #25d366;       /* WhatsApp Accent */
  --success: #2f7d4f;        /* Success / Verified State */
  --danger: #b3402e;         /* Danger / Remove / Reject State */
  
  /* RGB Values for Transparency Math */
  --ink-rgb: 26, 22, 21;
  --gold-rgb: 179, 134, 70;

  /* Typography System */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-h1: clamp(34px, 5.5vw, 58px);
  --font-h2: clamp(28px, 3.6vw, 40px);
  --font-h3: 26px;
  --font-body: 16px;
  --line-height-base: 1.65;
  --line-height-tight: 1.2;

  /* Component Controls */
  --btn-radius: 20px;        /* Pill-shaped buttons matching reference image */
  --card-radius: 8px;
  --transition-fast: 0.25s ease;
  --transition-normal: 0.35s ease;
}

/* Base Resets & Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  font-family: var(--font-sans); 
  color: var(--tx); 
  background: var(--bg);     /* Set strictly to Pure White */
  line-height: var(--line-height-base); 
  font-size: var(--font-body);
}

h1, h2, h3, h4, .logo { 
  font-family: var(--font-serif); 
  color: var(--ink); 
  line-height: var(--line-height-tight);
}

h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }

.wrap { max-width: 1150px; margin: 0 auto; padding: 0 24px; }
section { padding: 85px 0; background: var(--bg); }
section.bg-surface { background: var(--bg-cream); }

/* Typography Helpers */
.k { 
  letter-spacing: 3px; 
  text-transform: uppercase; 
  font-size: 12.5px; 
  color: var(--gold); 
  font-weight: 600; 
}
.sub { max-width: 720px; color: var(--tx-sub); margin-bottom: 50px; }

/* Global Navigation */
nav { 
  position: sticky; 
  top: 0; 
  z-index: 99; 
  background: var(--ink); 
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.35); 
}
nav .in { 
  max-width: 1150px; 
  margin: 0 auto; 
  padding: 18px 24px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}
.logo { color: var(--goldl); font-size: 24px; letter-spacing: 4px; font-weight: 800; text-decoration: none; }
nav ul { display: flex; gap: 24px; list-style: none; align-items: center; flex-wrap: wrap; }
nav ul a { color: #dfe3e8; text-decoration: none; font-size: 14px; font-weight: 500; transition: var(--transition-fast); }
nav ul a:hover { color: var(--goldl); }
nav ul a.shop { color: var(--goldl); font-weight: 700; }

/* Button System (Pill Style Matched to Image) */
.btn { 
  display: inline-block; 
  padding: 12px 28px; 
  border-radius: var(--btn-radius); 
  font-weight: 600; 
  font-size: 14px; 
  text-decoration: none; 
  letter-spacing: 0.5px; 
  transition: var(--transition-fast); 
  cursor: pointer; 
  border: 1px solid transparent;
  color: var(--ink);
  background: transparent;
}
.btn:hover { border-color: var(--gold); }
.btn-gold { background: var(--gold); color: #ffffff; margin-right: 12px; }
.btn-gold:hover { background: var(--goldl); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #ffffff; }
.btn-ghost:hover { border-color: var(--goldl); color: var(--goldl); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); margin-left: 6px; }
.btn-outline-gold:hover { background: var(--gold); color: #ffffff; }

/* Components & Cards */
.hero { 
  /* Missing hero.jpg removed — pure CSS luxury gradient built from tokens */
  background: radial-gradient(1100px 520px at 78% -8%, rgba(var(--gold-rgb), 0.22), transparent 60%),
              radial-gradient(900px 480px at 8% 108%, rgba(var(--gold-rgb), 0.14), transparent 62%),
              linear-gradient(160deg, var(--ink2), var(--ink) 55%, #0f0d0c); 
  padding: 120px 24px 100px;
  text-align: center;
}
.hero .kicker { letter-spacing: 5px; text-transform: uppercase; font-size: 13px; color: var(--goldl); margin-bottom: 18px; }
.hero h1 { color: #ffffff; max-width: 850px; margin: 0 auto 20px; }
.hero p { max-width: 680px; margin: 0 auto 36px; color: #c9ced4; font-size: 17px; }

.trio { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.vc { 
  background: var(--bg-cream); 
  border: 1px solid var(--line); 
  border-top: 4px solid var(--gold); 
  padding: 44px 38px; 
  border-radius: var(--card-radius); 
  box-shadow: 0 6px 24px rgba(16, 20, 24, 0.04); 
  transition: var(--transition-normal); 
  display: flex; 
  flex-direction: column; 
}
.vc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16, 20, 24, 0.08); }
.vc .tag { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.vc h3 { margin: 8px 0 4px; color: var(--ink); }
.vc p { margin: 14px 0 26px; font-size: 15px; flex: 1; }

.prods { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.pc { 
  background: var(--ink); 
  color: #dfe3e8; 
  border-radius: var(--card-radius); 
  padding: 32px; 
  position: relative; 
  overflow: hidden; 
  transition: var(--transition-normal); 
}
.pc::before { 
  content: ''; 
  position: absolute; 
  top: -60px; 
  right: -60px; 
  width: 160px; 
  height: 160px; 
  border-radius: 50%; 
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.25), transparent 70%); 
}
.pc:hover { transform: translateY(-4px); }
.pc h4 { color: var(--goldl); font-size: 24px; }
.pc span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--tx-muted); }
.pc p { margin: 12px 0 20px; font-size: 14.5px; }
.pc a { color: var(--goldl); text-decoration: none; font-weight: 600; font-size: 14px; }

.marks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mk { background: var(--bg-cream); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 26px; text-align: center; transition: var(--transition-fast); }
.mk:hover { border-color: var(--gold); }
.mk .fl { font-size: 30px; }
.mk h4 { font-size: 17px; margin-top: 8px; color: var(--ink); }

.about { max-width: 820px; }
.about p { margin-top: 14px; }

.band { background: var(--ink); color: #ffffff; text-align: center; padding: 80px 24px; }
.band h2 { color: #ffffff; }
.band p { color: #aeb5bd; max-width: 600px; margin: 0 auto 30px; }

footer { background: var(--ink); color: var(--tx-muted); padding: 55px 24px 30px; text-align: center; font-size: 14px; border-top: 1px solid var(--line); }
footer .logo { color: var(--goldl); font-size: 22px; display: block; margin-bottom: 14px; }
footer .arch { margin: 22px 0; color: #6a727c; font-size: 13px; letter-spacing: 1px; }
footer a { color: var(--goldl); text-decoration: none; }

/* Floating Elements */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6); }
.wa-float svg { width: 32px; height: 32px; fill: #ffffff; }

/* Scroll Animations */
.reveal { opacity: 0; transform: translateY(28px); transition: 0.7s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ============================================
   COMPONENT LIBRARY (Central Theme System)
   All pages reference these classes — page-local
   CSS must never override the tokens above.
   ============================================ */

/* Hero kicker inside .hero */
.hero .k { color: var(--goldl); margin-bottom: 18px; }
.band .btn { margin-top: 8px; }

/* ================= BUTTON MODIFIERS ================= */
.btn-green { background: var(--success); border-color: var(--success); color: #ffffff; }
.btn-green:hover { background: #3f9a66; }
.btn-wa { background: var(--whatsapp); border-color: var(--whatsapp); color: #ffffff; }
.btn-wa:hover { background: #1fbf5d; }
.btn-red { background: var(--danger); border-color: var(--danger); color: #ffffff; }
.btn-red:hover { background: #c7523f; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.wa-chip {
  display: inline-block;
  background: var(--whatsapp);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--btn-radius);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition-fast);
}
.wa-chip:hover { background: #1fbf5d; color: #ffffff; transform: translateY(-2px); }

/* ================= PAGE / SECTION SCAFFOLD ================= */
.page { padding: 70px 24px 90px; }
.container { max-width: 1150px; margin: 0 auto; padding: 50px 24px; }
.sec { text-align: center; font-size: var(--font-h2); margin: 0 0 10px; }
.sec::after {
  content: '';
  display: block;
  width: 90px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 3px;
}
.sub { text-align: center; }
.success-text { color: var(--success); font-weight: 700; }

/* ================= SHOP / CONTENT CARDS ================= */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 26px; }
/* ==== PRODUCT CARD (Myntra-style: flat card, full image, hover zoom) ==== */
.card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(var(--ink-rgb), 0.10);
}
/* Editorial cards (blog) keep cover-fit banner images */
.card > img { width: 100%; height: 230px; object-fit: cover; display: block; }
/* Product media — full image, never cropped, auto-fitted on a cream studio backdrop */
.card-media {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bg-cream);
  aspect-ratio: 3 / 4;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 16px;
  transition: transform 0.45s ease;
}
.card:hover .card-media img { transform: scale(1.08); }
.card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 20px; margin-bottom: 6px; }
/* Myntra-style product title: small, clean sans-serif */
.card .p-name {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--tx);
  line-height: 1.45;
  letter-spacing: 0.2px;
  margin: 0 0 6px;
}
.card .price { color: var(--gold); font-size: 17px; font-weight: 700; margin: 2px 0 0; }
/* Qty + Add-to-Cart row pinned to the card bottom */
.add-form { display: flex; gap: 10px; margin-top: auto; padding-top: 14px; }
.add-form .qty { flex: 0 0 64px; width: 64px; margin: 0; text-align: center; padding: 12px 8px; }
.add-form .btn { flex: 1; margin: 0; padding: 12px 10px; font-size: 13.5px; white-space: nowrap; }
.post-link { color: var(--ink); text-decoration: none; }
.post-link:hover { color: var(--gold); }
.muted-text { color: var(--tx-muted); }
.filter-bar { text-align: center; margin-bottom: 8px; }
.filter-bar .btn { padding: 8px 16px; margin: 4px; }
.filter-bar .btn:hover { color: var(--gold); }
.filter-bar .btn.active { border-color: var(--gold); color: var(--gold); background: rgba(var(--gold-rgb), 0.08); font-weight: 700; }

/* ================= B2B / SAAS GRIDS ================= */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.it {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 28px 24px;
  transition: var(--transition-fast);
}
.it:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 10px 24px rgba(var(--ink-rgb), 0.06); }
.it h4 { font-size: 18px; margin-bottom: 8px; }
.it p { font-size: 14px; color: var(--tx-sub); }
.sect { background: var(--bg-cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.note {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--card-radius);
  padding: 24px 28px;
  margin-top: 46px;
  font-size: 15px;
  color: var(--tx-sub);
}
ul.cl { list-style: none; columns: 2; column-gap: 44px; max-width: 760px; margin: 0 auto; }
ul.cl li { padding: 12px 0 12px 28px; position: relative; border-bottom: 1px solid var(--line); font-size: 15px; }
ul.cl li::before { content: '—'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; counter-reset: s; }
.st {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 20px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  position: relative;
}
.st::before {
  counter-increment: s;
  content: counter(s);
  display: block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--gold);
  color: #ffffff;
  font-weight: 700;
}
.hero-btns { margin-top: 30px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ================= PRODUCT PAGE ================= */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
/* Studio media frame: image auto-fits, never crops, never stretches, NEVER
   upscales past its natural resolution (the cause of blurry product photos). */
.product-media {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  max-height: 640px;
}
.product-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.45s ease;
}
.product-media:hover img { transform: scale(1.05); }
.product-layout .price { font-size: 26px; margin: 8px 0 14px; }
.product-layout input[type="number"] { max-width: 120px; }

/* ================= FORMS (standardized: 48px fields, token borders) ================= */
form input:not([type]), form input[type="text"], form input[type="email"], form input[type="tel"],
form input[type="url"], form input[type="number"], form input[type="password"],
form input[type="search"], form select, form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: #ffffff;
  color: var(--tx);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
form input:not([type]):focus, form input[type="text"]:focus, form input[type="email"]:focus, form input[type="tel"]:focus,
form input[type="url"]:focus, form input[type="number"]:focus, form input[type="password"]:focus,
form input[type="search"]:focus, form select:focus, form textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(179, 134, 70, 0.15);
}
form textarea { height: auto; min-height: 120px; resize: vertical; }
form input[type="file"] { height: auto; padding: 10px 12px; }
label { font-size: 13px; font-weight: 600; color: var(--tx-sub); display: block; margin-bottom: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }
.row input, .row select, .row textarea { margin-bottom: 0; }
.subscribe-form { margin: 18px auto 0; max-width: 420px; display: flex; gap: 10px; }
.subscribe-form input { margin: 0; flex: 1; }
.subscribe-form .btn { margin: 0; }

/* ================= BUTTON STANDARDS (forms) ================= */
/* Login card: bare submit button renders as full-width gold pill (scoped to admin login only) */
.admin-login .box button {
  display: inline-block;
  width: 100%;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  border-radius: var(--btn-radius);
  background: var(--gold);
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.admin-login .box button:hover { background: var(--goldl); border-color: var(--goldl); transform: translateY(-2px); }
/* Login card geometry — (0,2,0) beats form.box (0,1,1) bleed-through so the card stays 380px */
.admin-login .box {
  max-width: 380px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(var(--ink-rgb), 0.15);
}
/* Classed buttons inside admin form boxes get the gold treatment too */
form.box button.btn { background: var(--gold); border-color: var(--gold); color: #ffffff; }
form.box button.btn:hover { background: var(--goldl); border-color: var(--goldl); color: #ffffff; }
/* Compact gold Save buttons inside admin table rows (orders status, shipping rates) */
td form button {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}
td form button:hover { background: var(--goldl); border-color: var(--goldl); }
/* Compact red variant used for Delete actions in admin tables */
.btn.red { background: var(--danger); border-color: var(--danger); color: #ffffff; }
.btn.red:hover { background: #c7523f; border-color: #c7523f; }
/* Inline error message (admin login + form validation) */
.err {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--danger);
  color: var(--danger);
  padding: 12px 14px;
  border-radius: var(--card-radius);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}
/* Login card subtitle */
.login-sub { text-align: center; color: var(--tx-sub); font-size: 13.5px; margin: -14px 0 18px; }

/* ================= CHECKOUT / PAY PANELS ================= */
.pay-card {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--card-radius);
  padding: 20px 22px;
  margin-bottom: 22px;
}
.pay-card h3 { margin-bottom: 8px; }
.pay-card p { margin: 6px 0; }

/* ================= TABLES ================= */
.table-scroll { overflow-x: auto; }
/* Wide-table guard for ADMIN panels only — storefront tables (cart, track-order)
   must never force a min-width on phones; the cart stacks into cards below 600px. */
.main .table-scroll table { min-width: 640px; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(var(--ink-rgb), 0.05);
}
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14.5px; }
th { background: var(--ink); color: var(--goldl); font-weight: 600; letter-spacing: 0.5px; }
tr:hover td { background: var(--bg-cream); }
.remove-link { color: var(--danger); text-decoration: none; font-weight: 700; }
.remove-link:hover { text-decoration: underline; }

/* ================= ALERTS / MESSAGES ================= */
.alert {
  padding: 15px 20px;
  border-radius: var(--card-radius);
  margin: 14px 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: var(--bg-cream);
}
.alert.success { border-left-color: var(--success); color: var(--success); }
.alert.error { border-left-color: var(--danger); color: var(--danger); }
.ok { background: var(--bg-cream); border-left: 4px solid var(--success); color: var(--success); padding: 14px 18px; border-radius: var(--card-radius); margin-bottom: 20px; }
.er { background: var(--bg-cream); border-left: 4px solid var(--danger); color: var(--danger); padding: 14px 18px; border-radius: var(--card-radius); margin-bottom: 20px; }

/* ================= FOOTER ================= */
footer form { margin: 18px auto 0; }
footer form input { margin: 0; }
/* Social media icon hub */
.social { display: flex; justify-content: center; gap: 14px; margin: 18px auto 8px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), 0.45);
  color: var(--goldl); transition: var(--transition-fast);
}
.social a svg { width: 20px; height: 20px; fill: currentColor; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: #ffffff; transform: translateY(-3px); }

/* ================= ADMIN DASHBOARD ================= */
.admin { display: flex; min-height: 100vh; background: var(--bg-cream); }
.admin-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-cream); padding: 24px; }
.side {
  width: 250px;
  background: var(--ink);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  flex-shrink: 0;
}
.side nav { position: static; background: transparent; border: 0; z-index: auto; -webkit-backdrop-filter: none; backdrop-filter: none; }
.side h3 { padding: 24px; font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--goldl); letter-spacing: 2px; border-bottom: 1px solid rgba(var(--gold-rgb), 0.3); }
.side nav { flex: 1; padding: 20px 0; }
.side a { display: flex; align-items: center; padding: 12px 24px; color: #dfe3e8; text-decoration: none; font-size: 14px; font-weight: 500; transition: var(--transition-fast); }
.side a:hover, .side a.active { color: #ffffff; background: rgba(var(--gold-rgb), 0.16); border-left: 4px solid var(--gold); }
.side a.logout-btn { margin-top: auto; padding: 20px 24px; border-top: 1px solid rgba(var(--gold-rgb), 0.3); color: var(--danger); font-weight: 600; }
.main { flex: 1; padding: 38px; min-width: 0; }
.main h2 { margin-bottom: 20px; }
.header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.header-bar h2 { margin: 0; }
.user-badge { font-size: 14px; color: var(--tx-sub); background: var(--surface); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 20px; transition: var(--transition-fast); }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(var(--ink-rgb), 0.05); }
.stat-card .label { font-size: 12px; font-weight: 600; color: var(--tx-sub); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .val { font-size: 32px; font-weight: 700; color: var(--ink); margin: 8px 0 0; }
.stat-card.alert { border-left: 4px solid var(--gold); background: var(--bg-cream); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 24px; }
.panel h3 { font-family: var(--font-serif); font-size: 18px; margin-bottom: 16px; }
.main .panel { margin-bottom: 24px; }
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-action { padding: 12px 20px; background: var(--ink); color: #ffffff; text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 999px; transition: var(--transition-fast); }
.btn-action:hover { background: var(--gold); color: var(--ink); }
.btn-action.gold { background: var(--gold); color: var(--ink); }
.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(var(--ink-rgb), 0.15);
  width: 100%;
  max-width: 380px;
}
.box h2 { font-family: var(--font-serif); text-align: center; color: var(--ink); font-size: 24px; font-weight: 700; letter-spacing: 1px; margin-bottom: 24px; }
form.box { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--card-radius); padding: 22px; margin-bottom: 26px; max-width: 680px; box-shadow: 0 6px 24px rgba(var(--ink-rgb), 0.04); }
form.box h3 { margin-bottom: 14px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; color: #ffffff; font-size: 12px; font-weight: 700; }
.pending { background: #b7791f; }
.verified { background: var(--success); }
.shipped { background: #3b6ea5; }
.delivered { background: #177a6d; }
.rejected { background: var(--danger); }
details summary { cursor: pointer; color: var(--gold); font-weight: 700; }
td form { margin: 0; }
td input, td select, td button { width: auto; height: 38px; margin: 2px; }
td input[type="text"], td input[type="number"], td form select { width: auto; height: 38px; margin: 2px; }
.msg { background: var(--surface); border: 1px solid var(--line); padding: 15px; border-radius: var(--card-radius); margin-bottom: 12px; box-shadow: 0 2px 6px rgba(var(--ink-rgb), 0.05); }
.msg h4 { margin: 6px 0; }

/* ================= CART BADGE ================= */
.cart-badge {
  display: inline-block;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  margin-left: 4px;
}

/* Compact file upload row for admin product forms */
.img-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.img-slot { flex: 1 1 0; min-width: 120px; max-width: 180px; }
.img-slot input[type="file"] { width: 100%; height: 34px; padding: 4px 8px; font-size: 12px; margin-bottom: 2px; }
.img-slot span { font-size: 11.5px; color: var(--tx-sub); font-weight: 600; }

/* SaaS platform card refinements */
.pc h3 { color: var(--goldl); font-size: 28px; margin-bottom: 12px; }
.pc .tag { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 600; display: block; margin-bottom: 8px; }
.pc a:hover { color: #ffffff; }

/* Contact / general form card */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--card-radius);
  padding: 36px;
  box-shadow: 0 6px 24px rgba(var(--ink-rgb), 0.06);
}

/* ================= UI POLISH (multi-device audit: 1400 / 900 / 600) ================= */
html, body { overflow-x: hidden; }

/* Frosted-glass sticky navigation (Apple-style) */
nav {
  background: rgba(var(--ink-rgb), 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

/* Editorial hero typography */
.hero h1 { letter-spacing: -0.5px; }
.hero p { font-weight: 300; letter-spacing: 0.2px; }

/* Compact WhatsApp chip variant */
.wa-chip.sm { padding: 6px 12px; font-size: 13px; }

@media (max-width: 1400px) {
  section { padding: 75px 0; }
  .hero { padding: 110px 24px 95px; }
}

/* Media Queries */
@media (max-width: 900px) {
  .trio, .prods, .grid3, .grid4 { grid-template-columns: 1fr; }
  .marks { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cl { columns: 1; }
  .row, .product-layout { grid-template-columns: 1fr; }
  nav .in { flex-direction: column; gap: 12px; }
  nav ul { justify-content: center; }
  .btn-gold { margin-bottom: 10px; }
  .card > img { height: 200px; }
  .container { padding: 40px 18px; }
  .main { padding: 26px 18px; }
  .admin { flex-direction: column; }
  .side { width: 100%; height: auto; min-height: auto; position: static; overflow: visible; }
}
@media (max-width: 600px) {
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  .grid { grid-template-columns: 1fr; }
  .marks { grid-template-columns: 1fr; }
  .product-media { max-height: 460px; }
  .hero { padding: 90px 18px 70px; }
  form.box { padding: 16px; }
  .main { padding: 20px 14px; }
  .header-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stat-card .val { font-size: 26px; }
  .box { padding: 28px 22px; }
  .admin-login .box { padding: 28px 22px; }
}

/* ============ MOBILE-FIRST CART (stacks into cards on phones) ============ */
@media (max-width: 600px) {
  .cart-table { display: block; width: 100%; }
  .cart-table tr:first-child { display: none; }              /* hide column headers */
  .cart-table tbody, .cart-table tr, .cart-table td, .cart-table th { display: block; width: 100%; box-sizing: border-box; }
  .cart-table tbody tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    margin-bottom: 14px;
    padding: 6px 14px;
    box-shadow: 0 3px 10px rgba(var(--ink-rgb), 0.04);
  }
  .cart-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 12px 2px;
    text-align: right;
  }
  .cart-table td:last-child { border-bottom: 0; }
  .cart-table td::before { content: attr(data-label); font-weight: 600; font-size: 13px; color: var(--tx-sub); text-align: left; }
  .cart-table td:first-child { justify-content: flex-start; text-align: left; }
  .cart-table td:first-child::before { display: none; }      /* product cell: image + name speak for themselves */
  .cart-table td input[type="number"] { margin: 0; }
  .cart-table tr.total { display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: var(--bg-cream); border: 0; padding: 14px; }
  .cart-table tr.total th { display: inline-block; width: auto; background: transparent; color: var(--ink); border: 0; padding: 0; }
  .cart-table tr.total th:first-child { color: var(--tx-sub); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
  .cart-table tr.total th:last-child { color: var(--gold); font-size: 19px; }
}

/* ============ MYNTRA-STYLE PRODUCT DETAIL (gallery + size chips + specs) ============ */
.p-gallery { display: flex; flex-direction: column; gap: 12px; }
.p-gallery-main {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 640px;
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-gallery-main img {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.p-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.p-thumb {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.p-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.p-thumb:hover { border-color: var(--gold); }
.p-thumb.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(var(--gold-rgb), 0.25); }

/* Stock badge */
.stock-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 8px 0 4px;
}
.stock-badge.in { background: rgba(47, 125, 79, 0.12); color: var(--success); }
.stock-badge.low { background: rgba(183, 121, 31, 0.16); color: #b7791f; }
.stock-badge.out { background: rgba(179, 64, 46, 0.12); color: var(--danger); }

/* Size chips — selection required before Add to Cart */
.size-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 16px; }
.size-chip {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition-fast);
}
.size-chip:hover { border-color: var(--gold); color: var(--gold); }
.size-chip.active { background: var(--ink); border-color: var(--ink); color: var(--goldl); }

/* Specification cards */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 30px; }
.spec-card {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--card-radius);
  padding: 18px 20px;
}
.spec-card h4 { font-family: var(--font-sans); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.spec-card p { font-size: 14px; color: var(--tx); margin: 0; }

@media (max-width: 900px) {
  .p-gallery-main { max-height: 520px; }
}

/* ============ HOME PAGE RETAIL CATALOG (Myntra-style editorial grid) ============ */
.catalog-grid { margin-top: 26px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(var(--ink-rgb), 0.10);
}
.pc-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--bg-cream);
  overflow: hidden;
}
.pc-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: opacity 0.35s ease;
}
.pc-media img.alt { opacity: 0; }
.product-card:hover .pc-media img.alt { opacity: 1; }
.pc-soldout {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--goldl);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.pc-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.chip-sm {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(var(--gold-rgb), 0.12);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.pc-name {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--tx);
  line-height: 1.45;
  text-decoration: none;
  margin: 2px 0 0;
}
.pc-name:hover { color: var(--gold); }
.pc-dims { font-size: 12.5px; color: var(--tx-sub); margin: 0; }
.pc-price { font-size: 16px; font-weight: 700; color: var(--ink); margin: 2px 0 10px; }
.pc-actions { margin-top: auto; display: flex; gap: 8px; }
.pc-actions form { margin: 0; flex: 1; display: flex; }
.pc-actions .btn { flex: 1; padding: 10px 6px; font-size: 12.5px; margin: 0; text-align: center; white-space: nowrap; }

/* Category filter chips */
.f-chip {
  padding: 9px 20px;
  margin: 4px;
  border-radius: var(--btn-radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition-fast);
}
.f-chip:hover { border-color: var(--gold); color: var(--gold); }
.f-chip.active { background: var(--ink); border-color: var(--ink); color: var(--goldl); }

/* Toast for AJAX add-to-cart */
.add-toast {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 9999;
  background: var(--ink);
  color: #ffffff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(var(--ink-rgb), 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.add-toast.show { opacity: 1; transform: translateY(0); }

/* Catalog responsive: 4 → 2 → 1 columns (scoped to the home grid) */
@media (max-width: 1100px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .add-toast { right: 16px; left: 16px; text-align: center; }
}