/* =========================================================
   FEMALE CLOTHING STORE — main stylesheet
   Colours change karne ke liye sirf :root ki values badlein
   ========================================================= */
:root {
  /* Beige theme */
  --primary: #8b6844;        /* coffee brown — buttons, prices */
  --primary-dark: #5e4630;   /* dark brown — top bar, admin bar */
  --primary-soft: #f1e6d6;   /* light beige — highlights */
  --accent: #b8925a;         /* camel / gold */
  --beige: #e8dac4;          /* tabs bar */
  --beige-deep: #d9c4a3;
  --bg: #faf6ef;             /* page background (cream) */
  --surface: #fffdf9;
  --text: #3b2f24;
  --muted: #86786a;
  --border: #e7dccb;
  --success: #1f7a4d;
  --danger: #b3261e;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(80, 55, 30, .09);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.inline { display: inline; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); border-radius: 999px; font: 500 14px var(--font); cursor: pointer; transition: .15s; text-decoration: none !important; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; }
.btn-danger { color: var(--danger); border-color: #f0c9c6; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 6px; }
.link-btn:hover { color: var(--danger); }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin: 14px 0; border: 1px solid; }
.alert-success { background: #eaf6ef; border-color: #bfe3cd; color: #155b38; }
.alert-error { background: #fdecea; border-color: #f5c6c2; color: #8c1d16; }

/* ---------- Header ---------- */
.topbar { background: var(--primary-dark); color: #f3e7d6; text-align: center; font-size: 13px; padding: 7px 16px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; min-width: 0; }
.brand-logo { height: var(--logo-h, 70px); width: auto; max-width: min(420px, 55vw); object-fit: contain; }
.brand.logo-only .brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: var(--name-size, 24px); line-height: 1.15; color: var(--primary); letter-spacing: .5px; }
.brand-tagline { font-size: max(12px, calc(var(--name-size, 24px) * .5)); color: var(--muted); margin-top: 2px; }
.search { flex: 1; display: flex; max-width: 460px; margin-left: auto; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; border: 0; background: transparent; padding: 10px 16px; font: inherit; outline: none; min-width: 0; }
.search button { border: 0; background: transparent; padding: 0 14px; color: var(--muted); cursor: pointer; }
.cart-link { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; position: relative; text-decoration: none !important; }
.cart-badge { background: var(--primary); color: #fff; font-size: 12px; min-width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

.section-tabs { background: var(--beige); border-top: 1px solid var(--border); }
.section-tabs-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.section-tabs-inner::-webkit-scrollbar { display: none; }
.section-tabs a { color: var(--primary-dark); padding: 11px 20px; font-weight: 500; font-size: 14px; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; border-bottom: 3px solid transparent; text-decoration: none; }
.section-tabs a:hover { color: var(--text); background: rgba(255,255,255,.35); }
.section-tabs a.active { color: var(--text); font-weight: 600; border-bottom-color: var(--primary); background: rgba(255,255,255,.5); }

.cat-nav { border-top: 1px solid var(--border); }
.cat-nav-inner { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a { white-space: nowrap; padding: 6px 14px; border-radius: 999px; color: var(--text); font-size: 13.5px; border: 1px solid var(--border); text-decoration: none; }
.cat-nav a:hover { border-color: var(--primary); color: var(--primary); }
.cat-nav a.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, #f3e8d7, #e6d4b8 55%, #d6bd98); color: var(--text); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 85% 30%, rgba(255,255,255,.55), transparent 42%),
  repeating-linear-gradient(45deg, rgba(139,104,68,.05) 0 2px, transparent 2px 14px); }
.hero-inner { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; max-width: 760px; margin-left: max(16px, calc((100% - 1200px) / 2 + 16px)); }
.hero-kicker { text-transform: uppercase; letter-spacing: 3px; font-size: 12px; color: var(--primary); margin: 0 0 10px; font-weight: 600; }
.hero h1 { color: var(--primary-dark); font-family: var(--font-head); font-size: clamp(30px, 5vw, 50px); margin-bottom: 14px; }
.hero-text { font-size: 16px; color: #5b4a3a; margin: 0 0 24px; max-width: 560px; }

/* ---------- Department tiles ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dept { border-radius: var(--radius); padding: 28px 22px; color: #fff; min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none !important; transition: transform .2s; box-shadow: var(--shadow); }
.dept:hover { transform: translateY(-3px); }
.dept-0 { background: linear-gradient(135deg, #b8946a, #8b6844); }
.dept-1 { background: linear-gradient(135deg, #9c8a74, #6e5c49); }
.dept-2 { background: linear-gradient(135deg, #cfae7f, #a9844f); }
.dept-name { font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.dept-count { font-size: 13px; opacity: .9; }

/* ---------- Sections / listing ---------- */
.section { padding-top: 32px; padding-bottom: 32px; }
.section-title { font-family: var(--font-head); font-size: clamp(22px, 3vw, 30px); color: var(--text); margin: 0; }
.listing-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.result-count { margin: 4px 0 20px; font-size: 13px; }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sort-form select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--surface); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--primary-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 600; }
.card-title { font-size: 15px; font-weight: 500; margin: 0; font-family: var(--font); }
.card-title a { color: var(--text); }
.card .add-form { margin-top: auto; padding-top: 6px; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.badge-sale { background: var(--danger); color: #fff; }
.badge-out { background: rgba(0,0,0,.7); color: #fff; left: auto; right: 10px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-weight: 600; color: var(--primary); font-size: 16px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.price-lg .price-now { font-size: 26px; }
.price-lg .price-old { font-size: 16px; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination a { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty { text-align: center; padding: 50px 16px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

.features { background: var(--surface); border-top: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 28px; text-align: center; }
.features-grid div { display: flex; flex-direction: column; }
.features-grid strong { color: var(--primary); font-family: var(--font-head); font-size: 18px; }
.features-grid span { color: var(--muted); font-size: 13px; }

.ad-slot { margin: 30px 0; text-align: center; min-height: 90px; }

/* ---------- Product page ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--primary-soft); aspect-ratio: 4 / 5; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; flex: 0 0 76px; background: none; }
.thumb.active { border-color: var(--primary); }
.thumb img { width: 76px; height: 95px; object-fit: cover; }
.product-title { font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); margin: 6px 0 12px; }
.specs { list-style: none; padding: 0; margin: 22px 0; border-top: 1px solid var(--border); }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.specs span { color: var(--muted); }
.specs strong { font-weight: 500; text-align: right; }
.in-stock { color: var(--success); }
.out-stock { color: var(--danger); }
.buy-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.qty { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.qty input { width: 52px; text-align: center; border: 0; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-btn { border: 0; background: none; width: 42px; font-size: 18px; cursor: pointer; color: var(--primary); }
.note { font-size: 13px; color: var(--muted); background: var(--primary-soft); padding: 10px 14px; border-radius: 8px; margin: 16px 0; }
.description { margin-top: 24px; }
.description h2 { font-size: 18px; font-family: var(--font); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; margin-top: 20px; }
.cart-items { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 18px; }
.cart-row { display: grid; grid-template-columns: 1fr 110px 90px 120px 40px; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-head { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 10px 0; }
.cart-product { display: flex; gap: 12px; align-items: center; color: var(--text); }
.cart-product img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-product small { display: block; color: var(--muted); }
.cart-line { font-weight: 600; color: var(--primary); }
.qty-input { width: 70px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; font: inherit; text-align: center; }
.cart-actions { display: flex; justify-content: space-between; gap: 10px; padding: 16px 0 10px; flex-wrap: wrap; }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 150px; }
.cart-summary h2 { font-size: 18px; font-family: var(--font); }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.sum-total { border-top: 2px solid var(--border); margin-top: 6px; padding-top: 14px; font-size: 20px; font-weight: 600; color: var(--primary); }
.cart-summary .btn-block { margin: 10px 0; }

/* ---------- Static pages ---------- */
.page-content { max-width: 820px; }
.page-content h2 { font-size: 20px; margin-top: 1.4em; font-family: var(--font); }
.contact-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #3b2f24; color: #eadfce; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-top: 40px; padding-bottom: 30px; }
.footer-brand { font-family: var(--font-head); font-size: 22px; color: #fff; margin-bottom: 8px; }
.site-footer h3 { font-size: 15px; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; font-size: 14px; }
.site-footer a { color: #e3c9a1; }
.site-footer .muted { color: #b8a690; }
.social { display: flex; gap: 14px; margin-top: 10px; }
.footer-bottom { text-align: center; padding: 16px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.08); color: #b8a690; }

/* ---------- Responsive (storefront) ---------- */
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) {
  .product, .cart-layout { grid-template-columns: 1fr; gap: 24px; }
  .cart-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 14px; }
  .header-inner { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand-name { font-size: min(calc(var(--name-size, 24px) * .75), 30px); }
  .brand-tagline { font-size: max(11px, min(calc(var(--name-size, 24px) * .38), 15px)); }
  .brand-logo { height: calc(var(--logo-h, 70px) * .7); max-width: 70vw; }
  .cart-link span:not(.cart-badge) { display: none; }
  .cart-link { margin-left: auto; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .section-tabs a { padding: 10px 14px; font-size: 13px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px; }
  .card-title { font-size: 13.5px; }
  .card .btn { padding: 8px 10px; font-size: 13px; }
  .hero-inner { padding-top: 40px; padding-bottom: 40px; }
  .dept-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dept { min-height: 100px; padding: 16px; }
  .dept-name { font-size: 18px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: 1fr auto; grid-template-areas: "prod remove" "price price" "qty total"; gap: 6px 12px; }
  .cart-row > :nth-child(1) { grid-area: prod; }
  .cart-row > :nth-child(2) { grid-area: price; color: var(--muted); }
  .cart-row > :nth-child(3) { grid-area: qty; }
  .cart-row > :nth-child(4) { grid-area: total; text-align: right; }
  .cart-row > :nth-child(5) { grid-area: remove; }
  .cart-row [data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 400; font-size: 12px; }
}

/* =========================================================
   ADMIN PANEL (mobile-friendly, app jaisa)
   ========================================================= */
body.admin { background: #f5efe5; padding-bottom: env(safe-area-inset-bottom); }
.admin-bar { background: var(--primary-dark); color: #fff; position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top); }
.admin-bar-inner { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-brand { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-right: auto; }
.admin-brand small { font-family: var(--font); font-weight: 400; font-size: 11px; background: var(--accent); padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.admin-nav a, .admin-nav .link-btn { color: #eadbc5; padding: 6px 12px; border-radius: 8px; font-size: 14px; text-decoration: none; }
.admin-nav a.active, .admin-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.admin-nav .link-btn:hover { color: #fff; }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 16px; flex-wrap: wrap; }
.admin-head h1 { font-size: 24px; margin: 0; font-family: var(--font-head); }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 17px; margin-bottom: 14px; color: var(--primary); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stats div { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.stats strong { font-size: 26px; color: var(--primary); line-height: 1.1; }
.stats span { font-size: 12.5px; color: var(--muted); }
.admin-search { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-search input, .admin-search select { padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; }
.admin-search input { flex: 1; min-width: 160px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); background: #f8f2e8; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .right form, .admin-table .right .btn { margin-left: 4px; }
.thumb-sm { width: 52px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--primary-soft); }
.tag { display: inline-block; font-size: 11px; background: #fff4dd; color: #8a5a00; padding: 1px 8px; border-radius: 99px; margin-left: 6px; }
.pill { border: 0; border-radius: 99px; padding: 4px 12px; font: 500 12px var(--font); cursor: pointer; }
.pill-ok { background: #e3f4ea; color: var(--success); }
.pill-off { background: #fbe3e1; color: var(--danger); }

.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form input[type=text], .form input[type=tel], .form input[type=number], .form input[type=email], .form input[type=url], .form input[type=password], .form input[type=search], .form select, .form textarea {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font: 400 15px var(--font); background: #fff; width: 100%; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.form small { font-weight: 400; font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.span-2 { grid-column: span 2; }
.checks { display: flex; gap: 20px; flex-wrap: wrap; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.check.danger { color: var(--danger); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, #f5efe5 30%); padding: 16px 0; z-index: 5; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input[type=text] { flex: 1; min-width: 140px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.w-80 { width: 80px !important; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }

.radio-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.form label.radio-tab { flex-direction: row; cursor: pointer; }
.radio-tab input { position: absolute; opacity: 0; pointer-events: none; }
.radio-tab span { display: inline-block; padding: 10px 18px; border: 1.5px solid var(--border); border-radius: 999px; font-weight: 500; background: #fff; }
.radio-tab input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.radio-tab input:focus-visible + span { outline: 2px solid var(--accent); }

.images-field { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 0 0 18px; }
.images-field legend { font-weight: 600; padding: 0 6px; }
.upload-box { border: 2px dashed var(--beige-deep); border-radius: var(--radius); padding: 22px; text-align: center; cursor: pointer; background: #fbf6ee; color: var(--muted); font-weight: 400 !important; }
.upload-box:hover { border-color: var(--primary); }
.upload-box input { max-width: 100%; margin: 0 auto 6px; }
.upload-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label.upload-btn { align-items: center; text-align: center; gap: 2px; border: 2px dashed var(--beige-deep); border-radius: var(--radius); padding: 18px 10px; cursor: pointer; background: #fbf6ee; color: var(--primary); }
.form label.upload-btn:hover, .form label.upload-btn:focus-within { border-color: var(--primary); background: var(--primary-soft); }
.upload-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-btn svg { width: 34px; height: 34px; margin-bottom: 4px; }
.upload-btn small { color: var(--muted); font-weight: 400; }
.small-note { font-size: 12.5px; margin: 8px 0 0; }
.preview-item { position: relative; }
.preview-remove { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 13px; }
.preview-main { position: absolute; left: 4px; bottom: 4px; background: var(--primary); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 99px; }
.img-manage, .img-preview { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.img-item { display: flex; flex-direction: column; gap: 4px; width: 110px; font-size: 13px; }
.img-item img, .img-preview img { width: 110px; height: 135px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.logo-field { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; align-items: center; }
.logo-preview { background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin: 8px 0; display: inline-block; }
.logo-preview img { max-height: 70px; }

.login-box { max-width: 400px; margin: 8vh auto; background: #fff; padding: 32px 28px; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.login-box h1 { font-family: var(--font-head); color: var(--primary); font-size: 24px; text-align: center; margin-bottom: 4px; }
.login-box > .muted { text-align: center; margin-top: 0; }
.login-box .form { display: flex; flex-direction: column; gap: 14px; }

.install-banner { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.install-banner p { margin: 0; flex: 1; font-size: 14px; }

/* Mobile bottom navigation (app jaisa) */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .admin-nav { display: none; }
  .admin-bar-inner { padding: 12px 16px; }
  .admin-main { padding-bottom: 96px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(80,55,30,.09); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 500 11px var(--font); color: var(--muted); padding: 4px 0; background: none; border: 0; text-decoration: none; cursor: pointer; }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--primary); }
  .bottom-nav .bn-add svg { width: 44px; height: 44px; margin-top: -22px; background: var(--primary); color: #fff; border-radius: 50%; padding: 10px; box-shadow: 0 4px 12px rgba(139,104,68,.4); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .logo-field { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .panel { padding: 16px; }
  /* Products table → cards */
  .admin-table.cards thead { display: none; }
  .admin-table.cards, .admin-table.cards tbody { display: block; }
  .admin-table.cards tr { display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 12px; border-bottom: 1px solid var(--border); }
  .admin-table.cards td { padding: 0; border: 0; }
  .admin-table.cards td:first-child { grid-row: span 4; }
  .admin-table.cards td.right { grid-column: 1 / -1; text-align: left; padding-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
  .admin-table.cards td.right form, .admin-table.cards td.right .btn { margin: 0; }
  .admin-table.cards td.right .btn { flex: 1; }
  .admin-table.cards td.right form { flex: 1; display: flex; }
  .admin-table.cards td.right form .btn { width: 100%; }
  .admin-head h1 { font-size: 21px; }
  .admin-head .btn-primary { display: none; }
  .upload-box { padding: 28px 16px; }
}

/* =========================================================
   LIVE EDIT MODE (Admin website par)
   ========================================================= */
.admin-strip { background: #2f251c; color: #eadfce; font-size: 13px; position: relative; z-index: 70; }
.admin-strip.on { background: linear-gradient(90deg, #2f251c, #4a3a2a); }
.admin-strip-inner { display: flex; align-items: center; gap: 14px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.as-title { font-weight: 600; }
.as-toggle { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none !important; background: rgba(255,255,255,.08); padding: 4px 12px 4px 6px; border-radius: 99px; }
.switch { width: 34px; height: 20px; border-radius: 99px; background: #7d6c5a; position: relative; transition: .2s; }
.switch span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.admin-strip.on .switch { background: #3fa36b; }
.admin-strip.on .switch span { left: 16px; }
.as-hint { color: #cdb99c; flex: 1; min-width: 160px; }
.as-link { color: #e3c9a1; }

.edit-chip { display: inline-flex; align-items: center; gap: 4px; border: 1.5px dashed var(--accent); background: rgba(255,253,249,.95); color: var(--primary-dark);
  font: 600 12.5px var(--font); padding: 6px 12px; border-radius: 99px; cursor: pointer; white-space: nowrap; box-shadow: 0 2px 8px rgba(80,55,30,.15); }
.edit-chip:hover { background: var(--primary); color: #fff; border-style: solid; }

/* Har picture ki jagah dotted box */
.card { position: relative; }
.photo-box { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 4 / 5; border: 3px dashed rgba(255,255,255,.95); outline: 2px dashed var(--primary);
  outline-offset: -6px; background: rgba(60,40,20,.08); cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 14px; z-index: 2; transition: background .15s; }
.photo-box span { background: rgba(47,37,28,.85); color: #fff; font: 600 13px var(--font); padding: 7px 14px; border-radius: 99px; }
.photo-box:hover { background: rgba(60,40,20,.28); }
.gallery-main .photo-box { aspect-ratio: auto; height: 100%; }
.card-tools { display: grid; grid-template-columns: 40px 1fr 40px; gap: 6px; padding: 0 14px 14px; }
.card-tools button { border: 1px solid var(--border); background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; padding: 7px 0; cursor: pointer; font: 600 13px var(--font); }
.card-tools button:hover:not([disabled]) { background: var(--primary); color: #fff; }
.card-tools button[disabled] { opacity: .35; cursor: default; }

.add-card { border: 2.5px dashed var(--accent); background: repeating-linear-gradient(45deg, #fbf5ea 0 10px, #f6ecdc 10px 20px); cursor: pointer; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 340px; color: var(--primary-dark); font-family: var(--font); text-align: center; padding: 20px; }
.add-card:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }
.add-plus { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 38px; line-height: 62px; box-shadow: 0 6px 16px rgba(139,104,68,.35); }
.add-card small { color: var(--muted); }

.hero.has-image { background: linear-gradient(90deg, rgba(250,246,239,.96) 0%, rgba(250,246,239,.82) 42%, rgba(250,246,239,0) 75%), var(--hero-img) center / cover no-repeat; }
.hero.has-image::after { display: none; }
.hero-edit { position: absolute; right: 16px; top: 16px; z-index: 3; }

.dept-wrap { position: relative; }
.dept-wrap .dept { height: 100%; }
.dept.has-image { background-size: cover; background-position: center; min-height: 170px; }
.tile-edit { position: absolute; top: 10px; right: 10px; }

.thumbs { align-items: flex-start; }
.thumb-wrap { position: relative; flex: 0 0 76px; }
.thumb-tools { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
.thumb-tools button { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; width: 30px; height: 26px; cursor: pointer; color: var(--primary-dark); }
.thumb-tools button:hover { background: var(--primary); color: #fff; }
.main-tag { font-size: 11px; background: var(--primary); color: #fff; border-radius: 99px; padding: 3px 8px; }
.add-thumb { width: 76px; height: 95px; border: 2px dashed var(--accent) !important; background: var(--primary-soft); color: var(--primary-dark); font-size: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.add-thumb small { font-size: 11px; margin-top: 4px; }

/* Popups */
dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); box-shadow: 0 20px 60px rgba(40,25,10,.35); background: var(--surface); color: var(--text); }
dialog.modal::backdrop { background: rgba(40,28,18,.55); }
.modal-body { padding: 18px 20px 6px; display: flex; flex-direction: column; gap: 14px; }
.modal-body .form-grid { margin: 0; gap: 12px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-head h2 { margin: 0; font-size: 19px; font-family: var(--font-head); color: var(--primary-dark); }
.modal-x { border: 0; background: var(--primary-soft); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; color: var(--primary-dark); }
.modal-sub { margin: -8px 0 0; font-size: 13px; }
.modal-remove { padding: 4px 20px 18px; }
.modal details { font-size: 14px; }
.modal details summary { cursor: pointer; color: var(--primary); font-weight: 500; margin-bottom: 8px; }
.modal details label { margin-top: 10px; }
.modal .form-actions { padding-bottom: 12px; }

@media (max-width: 680px) {
  .as-hint { display: none; }
  .card-tools { padding: 0 10px 10px; grid-template-columns: 32px 1fr 32px; }
  .photo-box span { font-size: 11.5px; padding: 6px 10px; }
  .add-card { min-height: 260px; }
  .hero-edit { top: auto; bottom: 12px; right: 12px; }
  dialog.modal { width: 100%; max-width: none; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .modal-body .form-grid { grid-template-columns: 1fr 1fr; }
  .header-inner .edit-chip { order: 2; font-size: 11.5px; padding: 5px 9px; }
}
.admin-nav a.nav-live { background: var(--accent); color: #fff; }
.live-banner { display: flex; flex-direction: column; gap: 2px; background: linear-gradient(120deg, #f3e8d7, #e3cfae); border: 1.5px dashed var(--accent); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 16px; color: var(--primary-dark); text-decoration: none !important; }
.live-banner strong { font-size: 16px; }
.live-banner span { font-size: 13px; color: #6b5844; }
.live-banner:hover { border-style: solid; }

/* Khaali boxes (Edit Mode) */
.empty-slot { border: 2px dashed var(--beige-deep); background: #fdfaf4; position: relative; }
.slot-photo { aspect-ratio: 4 / 5; width: 100%; border: 0; border-bottom: 2px dashed var(--beige-deep); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: repeating-linear-gradient(45deg, #f7efe2 0 12px, #f2e7d6 12px 24px); color: var(--primary); font-family: var(--font); position: relative; transition: background .15s; }
.slot-photo:hover { background: var(--primary-soft); }
.slot-photo svg { width: 54px; height: 54px; background: #fff; border-radius: 50%; padding: 12px; box-shadow: 0 4px 14px rgba(139,104,68,.2); }
.slot-photo strong { font-size: 15px; }
.slot-photo small { color: var(--muted); }
.slot-no { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.slot-body { gap: 8px; }
.slot-line { display: block; height: 10px; border-radius: 6px; background: #efe5d6; }
.slot-line.w70 { width: 70%; } .slot-line.w40 { width: 40%; }
.slot-btn { margin-top: 6px; text-align: center; border: 1.5px dashed var(--beige-deep); border-radius: 99px; padding: 8px; font-size: 13px; color: var(--muted); }
.slot-remove { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; z-index: 2; }
.slot-remove:hover { background: var(--danger); color: #fff; }
.new-box { border: 2.5px dashed var(--accent); background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 300px; color: var(--primary-dark); font-family: var(--font); text-align: center; padding: 20px; }
.new-box:hover { background: var(--primary-soft); border-style: solid; }
.new-box small { color: var(--muted); }
@media (max-width: 680px) { .slot-photo svg { width: 44px; height: 44px; padding: 9px; } .slot-photo strong { font-size: 13px; } .new-box { min-height: 220px; } }

.logo-size { display: inline-flex; gap: 4px; }
.logo-size .edit-chip { padding: 6px 10px; }
.logo-size-field { display: flex; flex-direction: column; gap: 10px; }
.logo-size-field input[type=range] { width: 100%; accent-color: var(--primary); }
.logo-preview img { max-height: none; width: auto; max-width: 100%; }
/* Admin bar on the box view (store layout) */
body.editing .admin-bar { position: relative; }
body.editing .site-header { top: 0; }
@media (max-width: 760px) { body.editing { padding-bottom: 80px; } }
@media (max-width: 680px) {
  body.editing .dept-wrap .dept { padding-top: 46px; min-height: 130px; }
  .tile-edit { top: 8px; right: 8px; font-size: 11px; padding: 4px 9px; }
}

.name-preview { font-family: var(--font-head); font-weight: 700; color: var(--primary); line-height: 1.15; padding: 6px 0; overflow-wrap: anywhere; }
.brand { flex-shrink: 1; }
/* Admin: logo / name size buttons on their own row under the header */
.brand-tools { order: 10; flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 4px; border-top: 1px dashed var(--border); margin-top: 4px; padding-top: 10px; }
.bt-info { font-size: 12.5px; margin-left: 4px; }
.header-inner { flex-wrap: wrap; }
.header-inner .search { min-width: 220px; }
@media (max-width: 680px) {
  .brand-logo { height: min(calc(var(--logo-h, 70px) * .6), 100px); }
  .brand-name { font-size: min(calc(var(--name-size, 24px) * .7), 26px); }
  .brand-tools .edit-chip { font-size: 11.5px; padding: 5px 9px; }
}
.brand-tools .edit-chip { order: 0 !important; }
code.path { display: inline-block; background: var(--primary-soft); padding: 6px 10px; border-radius: 8px; font-size: 13px; word-break: break-all; }
.card-brand { font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--primary-dark); }
.card-brand.brand-lg { font-size: 13px; margin-bottom: 2px; }
.setup-restore { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--border); font-size: 14px; }
.setup-restore .form { gap: 10px; }
.setup-restore code { font-size: 12px; word-break: break-all; }

/* =========================================================
   HEADER LAYOUT: logo row → tabs + search → categories + View cart
   ========================================================= */
.site-header { position: relative; top: auto; }
.nav-sticky { position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 14px rgba(80,55,30,.08); }
.bar-row { display: flex; align-items: center; gap: 16px; }
.section-tabs-inner, .cat-nav-inner { flex: 1; min-width: 0; }
.section-tabs .bar-row { min-height: 52px; }
.section-tabs .search { flex: 0 1 340px; margin: 6px 0; background: #fffdf9; border: 1.5px solid var(--beige-deep); }
.section-tabs .search input { padding: 9px 16px; }
.cat-nav { background: var(--surface); }
.cat-nav .bar-row { min-height: 58px; }

/* Green "View cart" button */
.view-cart { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; border-radius: 999px;
  background: linear-gradient(180deg, #6cc04a 0%, #2e9a3a 45%, #13702a 100%); border: 2px solid #0f5e23; color: #fff !important;
  text-decoration: none !important; box-shadow: 0 3px 10px rgba(19,112,42,.35), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .15s, filter .15s; }
.view-cart:hover { transform: translateY(-1px); filter: brightness(1.06); }
.vc-icon { width: 34px; height: 28px; margin-top: -4px; }
.vc-text { font: 700 17px var(--font); letter-spacing: .2px; text-shadow: 0 1px 1px rgba(0,0,0,.35); white-space: nowrap; }
.vc-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; background: #fff; color: #13702a; font: 700 14px var(--font);
  display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 760px) {
  .section-tabs .bar-row { flex-wrap: wrap; gap: 0; padding-bottom: 8px; }
  .section-tabs-inner { flex-basis: 100%; }
  .section-tabs .search { flex: 1 1 100%; max-width: none; order: 0; margin: 2px 0 0; }
  .cat-nav .bar-row { gap: 10px; min-height: 54px; }
  .view-cart { padding: 4px 6px 4px 10px; gap: 6px; }
  .vc-icon { width: 28px; height: 24px; }
  .vc-text { font-size: 14px; }
  .vc-count { min-width: 24px; height: 24px; font-size: 12.5px; }
}
@media (max-width: 400px) { .vc-text { display: none; } }

/* ===== Checkout & Orders ===== */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.checkout-form h2 { font-size: 18px; }
.pay-box { background: var(--primary-soft); border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 16px; }
.pay-box p { margin: 6px 0 0; font-size: 13.5px; }
.sum-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sum-item img { width: 48px; height: 60px; object-fit: cover; border-radius: 6px; }
.sum-item span { display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.35; }
.sum-line { font-weight: 600; color: var(--primary); white-space: nowrap; }
.thanks { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 34px 20px; margin-bottom: 24px; }
.thanks-icon { width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 50%; background: #1f7a4d; color: #fff; font-size: 36px; line-height: 70px; }
.thanks h1 { font-family: var(--font-head); margin-bottom: 6px; }
.status-pill { display: inline-block; font: 600 12px var(--font); padding: 3px 12px; border-radius: 99px; color: #fff; background: var(--st, #777); vertical-align: middle; }
.status-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.status-tabs a { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13.5px; text-decoration: none; }
.status-tabs a.active { background: var(--st, var(--primary)); border-color: var(--st, var(--primary)); color: #fff; }
.orders-table tr.is-new { background: #fff9e8; box-shadow: inset 4px 0 0 #b8860b; }
.nav-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: #e53935; color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; }
.bottom-nav a { position: relative; }
.bn-badge { position: absolute; top: 0; left: 55%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #e53935; color: #fff; font-size: 10.5px; line-height: 18px; font-weight: 700; }
.order-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.order-grid .cust { font-size: 15px; line-height: 1.7; }
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 20px; }
.order-items { margin-bottom: 10px; }
.order-totals { max-width: 320px; margin-left: auto; }
.status-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.status-choices .radio-tab input:checked + span { background: var(--st); border-color: var(--st); }
.print-only { display: none; }
@media (max-width: 820px) { .order-grid { grid-template-columns: 1fr; } }
@media print {
  .admin-bar, .bottom-nav, .no-print, .install-banner, .alert { display: none !important; }
  body.admin { background: #fff; }
  .admin-main { padding: 0; }
  .order-grid { display: block; }
  .panel { border: 0; padding: 0; }
  .print-only { display: block; }
  .print-head { border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 12px; font-size: 14px; }
  .print-head strong { font-size: 20px; }
}

/* Header background picture (blurred) */
.site-header.has-bg { overflow: hidden; background: #f3e9da; }
.header-bg { position: absolute; inset: calc(var(--hb, 6px) * -3); background-size: cover; background-position: center; filter: blur(var(--hb, 6px)); z-index: 0; }
.site-header.has-bg::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(255,253,249,.86) 0%, rgba(255,253,249,.62) 45%, rgba(255,253,249,.25) 100%); }
.site-header .header-inner { position: relative; z-index: 1; }
.site-header.has-bg .brand-tagline { color: #5b4a3a; }
.site-header.has-bg .brand-name { text-shadow: 0 1px 0 rgba(255,255,255,.6); }

/* ===== Reviews ===== */
.stars { display: inline-flex; gap: 1px; font-size: 15px; line-height: 1; vertical-align: -1px; }
.stars span { color: #d9cfc2; }
.stars .s-full { color: #f2a900; }
.stars .s-half { background: linear-gradient(90deg, #f2a900 50%, #d9cfc2 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars-lg { font-size: 26px; }
.card-rating { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.card-rating .stars { font-size: 13px; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 14px; margin: -4px 0 10px; text-decoration: none !important; }
.reviews-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; margin-top: 16px; }
.reviews-summary { text-align: center; position: sticky; top: 130px; }
.big-rating { font: 700 48px var(--font-head); color: var(--primary-dark); line-height: 1.1; margin-bottom: 8px; }
.dist-row { display: grid; grid-template-columns: 34px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; margin: 6px 0; }
.dist-bar { height: 8px; background: #efe5d6; border-radius: 99px; overflow: hidden; }
.dist-bar span { display: block; height: 100%; background: #f2a900; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.review p { margin: 10px 0 0; }
.review-head { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.verified { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 600; color: #1f7a4d; background: #e3f4ea; padding: 1px 8px; border-radius: 99px; }
.review-form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.review-form h3 { margin: 0; font-family: var(--font-head); font-size: 20px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 34px; color: #d9cfc2; cursor: pointer; line-height: 1; transition: color .1s, transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f2a900; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.star-hint { order: -1; margin-left: 10px; font-size: 13px; }
.admin-review { display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
.admin-review.status-pending { box-shadow: inset 4px 0 0 #b8860b; background: #fffbef; }
.admin-review.status-hidden { opacity: .7; }
.ar-product { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text); }
.ar-body p { margin: 8px 0 12px; }
@media (max-width: 760px) {
  .reviews-layout, .admin-review { grid-template-columns: 1fr; }
  .reviews-summary { position: static; }
  .ar-product { flex-direction: row; align-items: center; }
}

/* =========================================================
   DESIGN LAYER — values come from Admin → 🎨 Design
   ========================================================= */
body { font-size: var(--d-fs-base, 15px); }
.topbar { font-size: var(--d-fs-topbar, 13px); }
.section-tabs a { font-size: var(--d-fs-tabs, 14px); }
.cat-nav a { font-size: var(--d-fs-chips, 13.5px); }
.section-title { font-size: clamp(18px, 4.5vw, var(--d-fs-heading, 30px)); }
.card-brand { font-size: var(--d-fs-brand, 11.5px); }
.card-title { font-size: var(--d-fs-card-title, 15px); }
.card .price-now { font-size: var(--d-fs-price, 16px); }
.grid { grid-template-columns: repeat(var(--d-cols, 4), minmax(0, 1fr)); gap: var(--d-gap, 22px); }
.card-img, .gallery-main, .slot-photo, .photo-box { aspect-ratio: var(--d-img-ratio, 4 / 5); }
.gallery-main .photo-box { aspect-ratio: auto; }
.btn, .cat-nav a, .search, .qty, .view-cart, .status-tabs a, .radio-tab span, .edit-chip { border-radius: var(--d-btn-r, 999px); }
.header-inner { padding-top: var(--d-header-pad, 14px); padding-bottom: var(--d-header-pad, 14px); }
.dept { min-height: var(--d-tile-h, 130px); }
.section-tabs .search { flex-basis: var(--d-search-w, 340px); }
.view-cart { zoom: var(--d-cart-zoom, 1); border-color: color-mix(in srgb, var(--d-cart, #2e9a3a) 70%, #000);
  background: linear-gradient(180deg, color-mix(in srgb, var(--d-cart, #2e9a3a) 60%, #fff) 0%, var(--d-cart, #2e9a3a) 45%, color-mix(in srgb, var(--d-cart, #2e9a3a) 65%, #000) 100%); }
.vc-count { color: color-mix(in srgb, var(--d-cart, #2e9a3a) 70%, #000); }
.badge-sale { background: var(--d-sale, #b3261e); }
.site-footer { background: var(--d-footer, #3b2f24); }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(var(--d-cols-t, 3), minmax(0, 1fr)); } }
@media (max-width: 680px) {
  body { font-size: calc(var(--d-fs-base, 15px) * .94); }
  .grid { grid-template-columns: repeat(var(--d-cols-m, 2), minmax(0, 1fr)); gap: min(var(--d-gap, 22px), 14px); }
  .section-tabs a { font-size: calc(var(--d-fs-tabs, 14px) * .92); }
  .card-title { font-size: calc(var(--d-fs-card-title, 15px) * .9); }
  .card .price-now { font-size: calc(var(--d-fs-price, 16px) * .92); }
  .header-inner { padding-top: min(var(--d-header-pad, 14px), 16px); padding-bottom: min(var(--d-header-pad, 14px), 16px); }
  .dept { min-height: calc(var(--d-tile-h, 130px) * .75); }
}

/* Admin → Design page */
.design-layout { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; gap: 20px; align-items: start; }
.design-form .panel h2 { margin-bottom: 10px; }
.d-row { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.d-row:last-child { border-bottom: 0; }
.d-label { font-size: 13.5px; font-weight: 500; }
.d-color { display: flex; align-items: center; gap: 10px; }
.d-color input[type=color] { width: 54px; height: 34px; border: 1px solid var(--border); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.d-color code { font-size: 12.5px; color: var(--muted); }
.d-range { display: grid; grid-template-columns: 32px 1fr 32px 58px; gap: 6px; align-items: center; }
.d-range input[type=range] { width: 100%; accent-color: var(--primary); }
.d-range output { font-size: 13px; font-weight: 600; text-align: right; }
.d-step { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 18px; cursor: pointer; color: var(--primary-dark); }
.d-step:hover { background: var(--primary); color: #fff; }
.design-form select { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; }
.design-preview { position: sticky; top: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.dp-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #f8f2e8; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.dp-bar select { padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-weight: 400; }
.dp-size { margin-left: auto; display: flex; gap: 4px; }
.dp-size button { border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.dp-size button.active { background: var(--primary); }
.dp-frame-wrap { height: calc(100vh - 160px); min-height: 480px; background: #e9e2d6; display: flex; justify-content: center; }
#dp-frame { width: 100%; height: 100%; border: 0; background: #fff; transition: width .2s; }
@media (max-width: 1000px) { .design-layout { grid-template-columns: 1fr; } .design-preview { position: static; } .dp-frame-wrap { height: 70vh; } }
.steps { margin: 6px 0 14px; padding-left: 20px; font-size: 14px; }
.steps li { margin: 4px 0; }
