:root {
  --emerald: #0F3D2E;
  --emerald-deep: #0A2B20;
  --copper: #D4A017;
  --copper-dark: #B8860B;
  --sage: #F3F6F2;
  --cream: #FFFEF9;
  --ink: #1A1F1C;
  --muted: #4A5A52;
  --wa: #25D366;
  --wa-dark: #1DA851;
  --danger: #B42318;
  --sale: #C2410C;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(15, 61, 46, 0.12);
  --font: "Segoe UI", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(212, 160, 23, 0.18), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(15, 61, 46, 0.12), transparent 50%),
    linear-gradient(180deg, var(--sage), var(--cream) 40%, #fff);
  min-height: 100vh;
}

a { color: var(--emerald); text-decoration: none; }
a:hover { color: var(--copper-dark); }

.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

/* Top bar */
.topbar {
  background: var(--emerald-deep);
  color: #e8f2ec;
  font-size: 0.9rem;
  padding: 0.55rem 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar .wa-link { color: #9ff0b8; font-weight: 700; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,254,249,0.92);
  border-bottom: 1px solid rgba(15,61,46,0.08);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem; color: var(--emerald);
}
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f5e6a6, var(--copper) 45%, #8a6a08);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
  color: var(--emerald-deep); font-weight: 800; font-size: 1.1rem;
}
.brand-text strong { display: block; font-size: 1.35rem; letter-spacing: 0.02em; }
.brand-text span { display: block; font-size: 0.85rem; color: var(--muted); direction: rtl; }

.nav-links { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav-links a { font-weight: 600; color: var(--ink); }
.nav-links a:hover { color: var(--emerald); }
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }
.nav-links a.btn-primary {
  background: #1F6B4A;
  color: #fff;
}
.nav-links a.btn-primary:hover {
  background: var(--emerald);
  color: #fff;
}
.nav-links a.btn-wa { color: #fff; }
.nav-links a.btn-wa:hover { color: #fff; background: var(--wa-dark); }
.nav-drawer-head,
.nav-drawer-close,
.nav-drawer-cta,
.nav-actions-mobile,
.nav-backdrop,
.mobile-tabbar { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--emerald);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.menu-toggle-bars {
  position: relative;
  display: block;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  display: block;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, top .2s ease;
}
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle.is-open .menu-toggle-bars { background: transparent; }
.menu-toggle.is-open .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-open .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.nav-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.2rem;
  color: var(--emerald);
}
.nav-cart-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--sale);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}
.nav-cart-badge.tab {
  top: 2px;
  right: calc(50% - 1.5rem);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; border-radius: 999px; padding: 0.75rem 1.25rem;
  font-weight: 700; cursor: pointer; transition: transform .15s ease, background .15s ease;
  color: #fff;
}
.btn:hover { transform: translateY(-1px); }
a.btn, a.btn:hover { text-decoration: none; }
.btn-primary { background: #1F6B4A; color: #fff; }
.btn-primary:hover { background: var(--emerald); color: #fff; }
a.btn-primary, a.btn-primary:hover { color: #fff; }
.btn-copper { background: var(--copper); color: var(--emerald-deep); }
.btn-copper:hover { background: var(--copper-dark); color: #fff; }
a.btn-copper { color: var(--emerald-deep); }
a.btn-copper:hover { color: #fff; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,0.35); }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
a.btn-wa, a.btn-wa:hover { color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--emerald);
  box-shadow: inset 0 0 0 2px var(--emerald);
}
a.btn-outline, a.btn-outline:hover { color: var(--emerald); }
.btn-sm { padding: 0.65rem 1rem; font-size: 0.95rem; min-height: 44px; min-width: 44px; }
.btn-block { width: 100%; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--emerald); color: #fff; padding: 0.75rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}
.btn:focus-visible, .form-control:focus-visible, a:focus-visible, .menu-toggle:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sold-pulse, .btn { animation: none !important; transition: none !important; }
}
.pager {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  justify-content: center; margin: 1.5rem 0 0.5rem;
}
.report-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin: 0 0 1rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(15,61,46,0.12);
}
.report-tabs a { font-weight: 700; color: var(--emerald); }
.report-tabs a:hover { color: var(--copper-dark); }
main { padding-bottom: 5.5rem; }
.checkout-layout .panel.summary-sticky { position: sticky; top: 5.5rem; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem;
  align-items: center; padding: 2.5rem 0 2rem;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1; margin: 0 0 0.4rem; color: var(--emerald);
}
.hero-urdu {
  direction: rtl; font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--sale); margin: 0 0 1rem; font-weight: 700;
}
.hero-copy p { color: var(--muted); font-size: 1.08rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.hero-visual {
  min-height: 360px; border-radius: 28px; overflow: hidden;
  background: #f3f6f2;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-visual > img,
.hero-visual .img-zoom-img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  display: block; min-height: 360px; background: #f3f6f2;
}

/* Image auto-fit + zoom controls */
.img-zoom {
  position: relative;
  width: 100%;
  background: #f3f6f2;
  border-radius: inherit;
}
.img-zoom-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 280px;
  cursor: zoom-in;
  touch-action: none;
  background: #f3f6f2;
}
.img-zoom.is-zoomed .img-zoom-stage { cursor: grab; }
.img-zoom-stage.is-dragging { cursor: grabbing; }
.img-zoom-img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  object-position: center;
  display: block;
  transform-origin: center center;
  transition: transform 0.18s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.img-zoom.is-zoomed .img-zoom-img { transition: none; }
.img-zoom-toolbar {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 61, 46, 0.92);
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.4rem;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(15, 61, 46, 0.25);
}
.img-zoom-toolbar button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.img-zoom-toolbar button:hover { background: rgba(212, 160, 23, 0.35); }
.img-zoom-toolbar .img-zoom-fit {
  width: auto;
  border-radius: 999px;
  padding: 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.img-zoom-toolbar .img-zoom-level {
  min-width: 2.6rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.9;
}
.detail-media .img-zoom-stage { min-height: 360px; border-radius: 18px; }
.detail-media .img-zoom-img { min-height: 360px; }

.trust-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin: 0.5rem 0 2rem;
}
.trust-item {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(15,61,46,0.08);
  border-radius: var(--radius); padding: 1rem;
}
.trust-item strong { display: block; color: var(--emerald); }
.trust-item span { color: var(--muted); font-size: 0.92rem; direction: rtl; display: block; margin-top: 0.2rem; }

.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; margin: 1.5rem 0 1rem;
}
.section-head h2 { margin: 0; color: var(--emerald); font-size: 1.8rem; }
.section-head p { margin: 0; color: var(--muted); direction: rtl; }

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2.5rem;
}

/* Home featured product auto-slider */
.product-slider {
  margin-bottom: 2.5rem;
  position: relative;
}
.product-slider-viewport {
  overflow: hidden;
  border-radius: 4px;
}
.product-slider-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.product-slider-slide {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  min-width: 0;
}
.product-slider-slide .product-card {
  height: 100%;
}
.product-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1rem;
}
.product-slider-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(15, 61, 46, 0.18);
  background: #fff;
  color: var(--emerald);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 61, 46, 0.08);
}
.product-slider-btn:hover {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
}
.product-slider-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.product-slider-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(15, 61, 46, 0.22);
  cursor: pointer;
}
.product-slider-dot.is-active {
  background: var(--copper);
  width: 1.15rem;
  border-radius: 999px;
}
@media (prefers-reduced-motion: reduce) {
  .product-slider-track { transition: none; }
}

.product-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(15,61,46,0.08);
  box-shadow: 0 8px 24px rgba(15,61,46,0.06);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card.sold-out { opacity: 0.78; }
.product-media {
  aspect-ratio: 4/3; background: #e8efe9; position: relative; overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--sale); color: #fff; font-size: 0.75rem; font-weight: 800;
  padding: 0.3rem 0.55rem; border-radius: 999px;
}
.badge.sold { background: #444; }
.badge.combo { background: var(--copper); color: var(--emerald-deep); left: auto; right: 0.75rem; }
.product-body { padding: 1rem 1rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-body h3 { margin: 0; font-size: 1.05rem; }
.product-body .urdu { direction: rtl; color: var(--muted); font-size: 0.92rem; }
.price-row { display: flex; gap: 0.55rem; align-items: baseline; margin-top: 0.25rem; }
.price { font-weight: 800; color: var(--emerald); font-size: 1.15rem; }
.price-old { text-decoration: line-through; color: #8a948e; font-size: 0.95rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.stars { color: var(--copper-dark); letter-spacing: 0.05em; }
.sold-pulse {
  color: var(--sale); font-weight: 700;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.card-actions { display: flex; gap: 0.5rem; margin-top: auto; padding-top: 0.75rem; align-items: stretch; }
.card-actions .card-add-form { display: flex; flex: 1; margin: 0; min-width: 0; }
.card-actions .card-add-form .btn { width: 100%; }
.card-actions .card-view-btn { flex: 0 0 auto; white-space: nowrap; position: relative; z-index: 2; }

.page-wrap { padding: 1.75rem 0 3rem; }
.page-title { margin: 0 0 0.25rem; color: var(--emerald); }
.page-sub { margin: 0 0 1.25rem; color: var(--muted); direction: rtl; }

.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.5rem; }
.filters {
  background: #fff; border-radius: 18px; padding: 1.1rem;
  border: 1px solid rgba(15,61,46,0.08); height: fit-content;
}
.filters label { display: block; font-weight: 600; margin: 0.75rem 0 0.35rem; font-size: 0.92rem; }
.filters input[type="text"], .filters select, .form-control, textarea, select, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"] {
  width: 100%; padding: 0.7rem 0.8rem; border-radius: 10px;
  border: 1px solid #cfd8d3; background: #fff; font: inherit;
}
.filters .check { display: flex; gap: 0.5rem; align-items: center; margin: 0.55rem 0; font-weight: 500; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.detail-media {
  border-radius: 22px; overflow: hidden; background: #e8efe9;
  box-shadow: var(--shadow);
  position: relative;
}
.detail-media img { width: 100%; display: block; }
.detail-media .img-zoom-img {
  width: 100%; height: 100%; object-fit: contain; object-position: center; background: #f3f6f2;
}
.product-gallery {
  position: relative;
}
.product-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 61, 46, 0.88);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 61, 46, 0.25);
}
.product-gallery-nav:hover { background: var(--copper); color: var(--emerald-deep); }
.product-gallery-nav.prev { left: 0.65rem; }
.product-gallery-nav.next { right: 0.65rem; }
.product-gallery-count {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  background: rgba(15, 61, 46, 0.85);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.detail-thumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; padding: 0 0.25rem 0.5rem; }
.detail-thumb {
  border: 2px solid transparent; border-radius: 10px; padding: 0; background: none; cursor: pointer; width: 64px; height: 64px; overflow: hidden;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumb:focus, .detail-thumb:hover { border-color: var(--copper); }
.detail-thumb.is-active { border-color: var(--emerald); box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.45); }
.detail-info h1 { margin: 0 0 0.2rem; color: var(--emerald); }
.stock-ok { color: var(--wa-dark); font-weight: 700; }
.stock-low { color: var(--copper-dark); font-weight: 700; }
.stock-out { color: var(--danger); font-weight: 800; }
.qty-row { display: flex; gap: 0.75rem; align-items: center; margin: 1rem 0; }
.qty-row input { width: 90px; }

.review-list { display: grid; gap: 0.9rem; margin-top: 1rem; }
.review-card {
  background: #fff; border-radius: 14px; padding: 1rem;
  border: 1px solid rgba(15,61,46,0.08);
}
.review-card .urdu { direction: rtl; color: var(--muted); }

.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 1.5rem; }
.panel {
  background: #fff; border-radius: 18px; padding: 1.25rem;
  border: 1px solid rgba(15,61,46,0.08);
}
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 0.9rem;
  padding: 0.85rem 0; border-bottom: 1px solid #e7eee9;
}
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.summary-line { display: flex; justify-content: space-between; margin: 0.45rem 0; color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 800; color: var(--emerald); margin-top: 0.75rem; }

.form-group { margin-bottom: 0.9rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field-validation-error, .validation-summary-errors { color: var(--danger); font-size: 0.9rem; }
.alert {
  padding: 0.85rem 1rem; border-radius: 12px; margin-bottom: 1rem;
}
.alert-success { background: #e8f8ee; color: #146c2e; }
.alert-error { background: #fdecec; color: var(--danger); }

.auth-card {
  max-width: 460px; margin: 1.5rem auto; background: #fff;
  border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow);
}
.track-status {
  display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px;
  background: #e8f2ec; color: var(--emerald); font-weight: 700; font-size: 0.85rem;
}

.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; }
.admin-side {
  background: var(--emerald); color: #fff; border-radius: 18px; padding: 1.2rem;
  min-height: 70vh;
}
.admin-side a { display: block; color: #d7ebe1; padding: 0.55rem 0.2rem; font-weight: 600; }
.admin-side a:hover { color: var(--copper); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.kpi {
  background: #fff; border-radius: 14px; padding: 1rem;
  border: 1px solid rgba(15,61,46,0.08);
}
.kpi strong { display: block; font-size: 1.4rem; color: var(--emerald); }
table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
table.data th, table.data td { padding: 0.75rem; border-bottom: 1px solid #e7eee9; text-align: left; vertical-align: top; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.admin-image-preview {
  width: 100%; max-width: 280px; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  background: #e8efe9; margin-bottom: 0.5rem;
}
.admin-image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.admin-side .nav-group {
  margin: 1rem 0 0.35rem; padding: 0.35rem 0 0;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--copper); border-top: 1px solid rgba(212,160,23,0.25);
}
.admin-side .nav-group:first-of-type { border-top: 0; margin-top: 0.5rem; }
.announcement-bar {
  background: var(--emerald); color: #fff; text-align: center;
  padding: 0.55rem 1rem; font-weight: 600; font-size: 0.95rem;
}
.announcement-bar.warn { background: #9a3412; }
.announcement-bar.promo { background: #1F6B4A; }
.cookie-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(15, 61, 46, 0.96); color: #fff; padding: 0.85rem 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-consent-inner {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  align-items: center; justify-content: space-between;
}
.cookie-consent p { margin: 0; font-size: 0.92rem; max-width: 48rem; }
.cookie-consent a { color: #F6E7A8; }
.action-cells { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.check-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.75rem 0; font-weight: 600; }
.display-box {
  margin-top: 1rem; padding: 1rem; border-radius: 14px;
  background: #eef6f1; border: 1px solid rgba(15,61,46,0.12);
}
.display-box h3 { margin: 0 0 0.35rem; color: var(--emerald); font-size: 1.05rem; }
.display-box .hint { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.9rem; }
.display-box .check { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.45rem 0; font-weight: 600; }
.display-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.tag {
  display: inline-block; padding: 0.15rem 0.45rem; border-radius: 999px;
  background: #e8f2ec; color: var(--emerald); font-size: 0.75rem; font-weight: 700;
}
.tag-sale { background: #ffedd5; color: var(--sale); }
.tag-off { background: #eee; color: #666; }
.admin-inline-edit { display: grid; grid-template-columns: 1fr 1fr 120px auto auto; gap: 0.5rem; align-items: center; margin-bottom: 0.4rem; }
.image-gallery-admin {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; margin-top: 0.75rem;
}
.gallery-item {
  border: 1px solid rgba(15,61,46,0.12); border-radius: 12px; padding: 0.5rem; background: #fff;
}
.gallery-item.primary { outline: 2px solid var(--copper); }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.gallery-item .action-cells { margin-top: 0.4rem; }
.feature-list { margin: 0.75rem 0; padding-left: 1.1rem; color: var(--emerald); font-weight: 600; }
.variant-options { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.4rem; }
.variant-option { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 600; }
.specs-block {
  white-space: pre-wrap; font-family: inherit; background: #eef6f1; padding: 0.75rem 1rem;
  border-radius: 10px; border: 1px solid rgba(15,61,46,0.1);
}
@media (max-width: 960px) {
  .admin-form-grid, .admin-inline-edit { grid-template-columns: 1fr; }
}

.site-footer {
  margin-top: 2rem; background: var(--emerald-deep); color: #d7ebe1; padding: 2rem 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.site-footer h4 { color: var(--copper); margin: 0 0 0.6rem; }
.site-footer a { color: #d7ebe1; }
.sticky-wa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--wa); color: #fff; font-weight: 800;
  padding: 0.85rem 1.15rem; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
}
.sticky-wa:hover { color: #fff; background: var(--wa-dark); }

@media (max-width: 960px) {
  .hero, .detail-grid, .cart-layout, .checkout-layout, .shop-layout, .admin-layout, .footer-grid, .kpi-grid, .trust-row, .product-grid {
    grid-template-columns: 1fr;
  }
  .nav-row { flex-wrap: nowrap; position: relative; }
  .nav-actions-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
  }
  .menu-toggle { display: inline-flex; }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 43, 32, 0.45);
    z-index: 60;
  }
  .nav-backdrop[hidden] { display: none !important; }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0 0 5.5rem;
    background: #fff;
    box-shadow: -12px 0 40px rgba(15, 61, 46, 0.18);
    z-index: 70;
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 0.28s ease;
  }
  .nav-links.open { transform: translateX(0); display: flex; }
  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(15, 61, 46, 0.1);
    color: var(--emerald);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
  }
  .nav-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 50%;
    background: var(--sage);
    color: var(--emerald);
    font-size: 1.5rem;
    cursor: pointer;
  }
  .nav-links > a {
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid rgba(15, 61, 46, 0.06);
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav-drawer-cta {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem 1.15rem;
  }
  .nav-drawer-cta .btn { width: 100%; }
  body.menu-open { overflow: hidden; }

  .mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    background: rgba(255, 254, 249, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(15, 61, 46, 0.12);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(15, 61, 46, 0.08);
  }
  .mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 52px;
    padding: 0.25rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    font-family: inherit;
  }
  .mobile-tab:hover, .mobile-tab:focus-visible { color: var(--emerald); }
  .mobile-tab-ico { font-size: 1.15rem; line-height: 1; }
  .sticky-wa { bottom: 4.75rem; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-slider-slide { flex-basis: calc((100% - 1.25rem) / 2); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-slider-slide { flex-basis: 100%; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .sticky-wa span.desktop-only { display: none; }
  .topbar .container { font-size: 0.8rem; }
  .brand-text span { display: none; }
}
@media (max-width: 640px) {
  .checkout-layout { display: flex; flex-direction: column-reverse; gap: 1rem; }
  .cart-item { gap: 0.75rem; }
  .cart-item .card-actions, .cart-item form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
  input[type="number"] { min-height: 44px; font-size: 1rem; }
}
