/* ============================================================
   Damentracht — Storefront + Admin styles
   Palette: white base + Google brand colors (blue/red/yellow/green)
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f8f9fa;
  --panel:     #ffffff;
  --panel-2:   #f1f3f4;
  --line:      #e0e3e7;
  --ink:       #202124;
  --ink-soft:  #5f6368;
  --ink-mute:  #80868b;
  --primary:   #4285f4;   /* Google blue */
  --primary-d: #1a73e8;
  --accent:    #34a853;   /* Google green */
  --accent-d:  #1e8e3e;
  --success:   #34a853;   /* Google green */
  --warning:   #fbbc05;   /* Google yellow */
  --error:     #ea4335;   /* Google red */
  --white:     #fff;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --shadow: 0 10px 30px rgba(32,33,36,.12);
  --shadow-sm: 0 4px 14px rgba(32,33,36,.08);

  --maxw: 1240px;

  --ff-head: "Fraunces", Georgia, serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--primary); color: #000; padding: 10px 16px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); }
.header-inner {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  padding: 16px 24px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--ff-head); font-size: 22px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.brand-tag { font-size: 11px; color: var(--ink-mute); letter-spacing: .12em; text-transform: uppercase; }
/* Absolutely centered so the menu sits in the middle of the header
   no matter how wide the brand or the action icons are. */
.primary-nav {
  display: flex; gap: 28px;
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.primary-nav a {
  font-size: 14px; color: var(--ink-soft); letter-spacing: .02em;
  position: relative; padding: 6px 0; transition: color .2s;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--primary); transition: width .25s ease;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { width: 100%; }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--panel-2); color: var(--primary); }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 9px; display: grid; place-items: center;
  transform: scale(0); transition: transform .2s ease;
}
.cart-count.has { transform: scale(1); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; letter-spacing: .03em;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-d); }
.btn-ghost { color: var(--ink-soft); padding: 8px 14px; }
.btn-ghost:hover { color: var(--primary); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
/* .hero {
  position: relative; min-height: 78vh; display: grid; place-items: center;
  text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #f8f9fa 0%, var(--bg) 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(52,168,83,.10), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(66,133,244,.10), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(251,188,5,.06), transparent 50%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(3deg); }
}
.hero-inner { position: relative; z-index: 2; padding: 80px 24px; max-width: 760px; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 500; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero p { font-size: 1.1rem; color: var(--ink-soft); max-width: 560px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-slider {
  position: relative; width: 100%; height: 78vh; min-height: 420px; max-height: 720px;
  overflow: hidden; background: var(--bg-soft);
}
.hero-slider-track { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .9s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--ink);
  display: grid; place-items: center; font-size: 26px; line-height: 1;
  z-index: 5; transition: background .2s;
}
.hero-slider-arrow:hover { background: #fff; }
.hero-slider-arrow.prev { left: 20px; }
.hero-slider-arrow.next { right: 20px; }
.hero-slider-dots {
  position: absolute; bottom: 20px; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: center; gap: 8px;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 5px;
  background: rgba(255,255,255,.55); transition: width .3s, background .3s;
}
.hero-dot.active { width: 24px; background: #fff; }
@media (max-width: 760px) {
  .hero-slider { height: 52vh; min-height: 320px; }
  .hero-slider-arrow { width: 36px; height: 36px; font-size: 20px; }
} */

/* ---------- Hero (fallback text banner — shown only if no banner images are uploaded yet) ---------- */
.hero {
  position: relative; min-height: 78vh; display: grid; place-items: center;
  text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #f8f9fa 0%, var(--bg) 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(52,168,83,.10), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(66,133,244,.10), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(251,188,5,.06), transparent 50%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(3deg); }
}
.hero-inner { position: relative; z-index: 2; padding: 80px 24px; max-width: 760px; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 500; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero p { font-size: 1.1rem; color: var(--ink-soft); max-width: 560px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Homepage banner slider (multi-image, auto-scrolling, slides left/right) ---------- */
.hero-slider {
  position: relative; width: 100%; height: 78vh; min-height: 420px; max-height: 720px;
  overflow: hidden; background: var(--bg-soft);
}
/* The track holds every slide side by side in one row.
   Sliding = animating this element's transform (translateX), set by JS. */
.hero-slider-track {
  display: flex; width: 100%; height: 100%;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.hero-slide {
  flex: 0 0 100%; width: 100%; height: 100%; position: relative;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--ink);
  display: grid; place-items: center; font-size: 26px; line-height: 1;
  z-index: 5; transition: background .2s;
}
.hero-slider-arrow:hover { background: #fff; }
.hero-slider-arrow.prev { left: 20px; }
.hero-slider-arrow.next { right: 20px; }
.hero-slider-dots {
  position: absolute; bottom: 20px; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: center; gap: 8px;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 5px;
  background: rgba(255,255,255,.55); transition: width .3s, background .3s;
}
.hero-dot.active { width: 24px; background: #fff; }
@media (max-width: 760px) {
  .hero-slider { height: 52vh; min-height: 320px; }
  .hero-slider-arrow { width: 36px; height: 36px; font-size: 20px; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 10px; }
.section-head p { color: var(--ink-mute); max-width: 540px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.product-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: transform .3s ease, border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.product-card a { display: block; }
.product-thumb {
  aspect-ratio: 4/5; background: var(--bg-soft); overflow: hidden; position: relative;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--error); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 4px; letter-spacing: .05em;
}
.product-info { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 11px; color: var(--ink-mute); letter-spacing: .15em; text-transform: uppercase; }
.product-name { font-family: var(--ff-head); font-size: 1.15rem; font-weight: 500; }
.product-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.price-now { font-weight: 600; color: var(--primary); font-size: 1.05rem; }
.price-was { color: var(--ink-mute); text-decoration: line-through; font-size: .9rem; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-gallery .main-img {
  aspect-ratio: 4/5; border-radius: var(--r-md); overflow: hidden; background: var(--panel);
  border: 1px solid var(--line);
}
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info-block .product-cat { margin-bottom: 8px; }
.product-info-block h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.product-info-block .short-desc { color: var(--ink-soft); margin-bottom: 22px; font-size: 1.05rem; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.price-row .price-now { font-size: 1.6rem; }
.stock-pill {
  display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 20px;
  background: rgba(52,168,83,.15); color: var(--success); margin-bottom: 22px;
}
.stock-pill.out { background: rgba(234,67,53,.15); color: var(--error); }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); }
.qty-control button { width: 40px; height: 44px; font-size: 18px; color: var(--ink-soft); }
.qty-control button:hover { color: var(--primary); }
.qty-control input { width: 56px; height: 44px; text-align: center; border: none; background: transparent; color: var(--ink); font-size: 15px; }
.product-desc { color: var(--ink-soft); line-height: 1.8; margin: 28px 0; }
.product-desc h3 { color: var(--ink); margin: 18px 0 8px; }
.product-desc p { margin-bottom: 12px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-mute); margin: 24px 0; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 16px; }
.cart-row {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px;
}
.cart-row img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--r-sm); }
.cart-row .name { font-family: var(--ff-head); font-size: 1.05rem; }
.cart-row .meta { font-size: 13px; color: var(--ink-mute); }
.cart-row .remove { color: var(--ink-mute); font-size: 13px; }
.cart-row .remove:hover { color: var(--error); }
.summary-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; position: sticky; top: 100px;
}
.summary-card h3 { margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink-soft); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; color: var(--ink); font-weight: 600; font-size: 1.1rem; }
.summary-row.total .price-now { font-size: 1.3rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--ink-soft); letter-spacing: .03em; }
.field input, .field select, .field textarea {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink);
  padding: 12px 14px; border-radius: var(--r-sm); font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(66,133,244,.15);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: 12px; color: var(--ink-mute); }
.error-text { color: var(--error); font-size: 13px; }
.success-text { color: var(--success); font-size: 13px; }

/* ---------- Alerts ---------- */
.alert {
  padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 20px;
  border: 1px solid; font-size: 14px;
}
.alert-error { background: rgba(234,67,53,.08); border-color: var(--error); color: #b3261e; }
.alert-success { background: rgba(52,168,83,.08); border-color: var(--success); color: #1e8e3e; }
.alert-info { background: rgba(66,133,244,.08); border-color: var(--primary); color: var(--primary-d); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 80px 24px; color: var(--ink-mute); }
.empty-state h3 { color: var(--ink); margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 24px 40px; }
.footer-col h3, .footer-col h4 { margin-bottom: 16px; }
.footer-col h4 { font-family: var(--ff-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--ink-soft); font-size: 14px; }
.footer-col a:hover { color: var(--primary); }
.footer-tag { color: var(--ink-mute); font-size: 14px; max-width: 280px; margin-bottom: 16px; }
.socials { display: flex; gap: 16px; }
.socials a { font-size: 13px; color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 13px; color: var(--ink-mute); }
.pay-note { letter-spacing: .05em; }

/* ---------- Page header ---------- */
.page-head { padding: 60px 0 30px; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.page-head p { color: var(--ink-mute); max-width: 600px; margin: 0 auto; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; line-height: 1.8; }
.about-visual {
  aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--accent-d), var(--bg-soft));
  position: relative;
}
.about-visual::after {
  content: "Crafted in India"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--ff-head); font-size: 2rem; color: rgba(32,33,36,.06); letter-spacing: .1em;
}
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.value-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.value-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.2rem; }
.value-card p { color: var(--ink-soft); font-size: 14px; }

/* ---------- Search ---------- */
.search-box { max-width: 560px; margin: 0 auto 40px; display: flex; gap: 10px; }
.search-box input { flex: 1; }
.search-box input, .search-box button { height: 52px; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .7s ease forwards; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--accent); color: var(--ink); padding: 14px 24px; border-radius: var(--r-sm);
  box-shadow: var(--shadow); z-index: 1000; opacity: 0; transition: transform .3s, opacity .3s;
  font-size: 14px; font-weight: 500;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body { background: var(--bg); }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--bg-soft); border-right: 1px solid var(--line);
  padding: 24px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-brand { padding: 0 24px 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.admin-brand .brand-name { font-size: 18px; }
.admin-brand .brand-tag { font-size: 10px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-sm);
  color: var(--ink-soft); font-size: 14px; transition: background .2s, color .2s;
}
.admin-nav a:hover { background: var(--panel-2); color: var(--ink); }
.admin-nav a.active { background: var(--accent-d); color: var(--ink); }
.admin-nav a .ic { width: 18px; opacity: .7; }
.admin-main { padding: 32px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-topbar h1 { font-size: 1.6rem; }
.admin-topbar .user { font-size: 14px; color: var(--ink-mute); }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.stat-card .label { font-size: 12px; color: var(--ink-mute); letter-spacing: .1em; text-transform: uppercase; }
.stat-card .value { font-family: var(--ff-head); font-size: 2rem; margin-top: 8px; color: var(--primary); }
.stat-card .sub { font-size: 12px; color: var(--ink-mute); margin-top: 4px; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.admin-table th { background: var(--panel-2); color: var(--ink-mute); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--panel-2); }
.admin-table .thumb { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
/* .admin-table .actions { display: flex; gap: 8px; }
.admin-table .actions a { font-size: 13px; } */
/* .admin-table .actions { color: var(--error); } */
.admin-table .btn.actions { color: var(--error);}

.admin-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; margin-bottom: 24px; }
.admin-panel h2 { font-size: 1.3rem; margin-bottom: 20px; }

.toggle-row { display: flex; align-items: center; gap: 10px; }
.toggle { position: relative; width: 44px; height: 24px; background: var(--line); border-radius: 12px; transition: background .2s; cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--ink); border-radius: 50%; transition: transform .2s; }
.toggle.on { background: var(--accent); }
.toggle.on::after { transform: translateX(20px); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.badge-green { background: rgba(52,168,83,.15); color: var(--success); }
.badge-amber { background: rgba(251,188,5,.15); color: var(--warning); }
.badge-red { background: rgba(234,67,53,.15); color: var(--error); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; }
.login-card h1 { font-size: 1.6rem; text-align: center; margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--ink-mute); margin-bottom: 28px; font-size: 14px; }
.login-card .brand-name { display: block; text-align: center; margin-bottom: 24px; }

.image-preview { margin-top: 12px; }
.image-preview img { max-height: 140px; border-radius: var(--r-sm); border: 1px solid var(--line); }

/* ---------- Admin multi-image gallery manager ---------- */
.gallery-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.gallery-item {
  position: relative; width: 110px; display: flex; flex-direction: column; align-items: center;
  gap: 6px; cursor: pointer;
}
.gallery-item img {
  width: 110px; height: 110px; object-fit: cover; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg-soft);
}
.gallery-cover-tag {
  position: absolute; top: 4px; left: 4px; background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; letter-spacing: .04em;
}
.gallery-remove { font-size: 12px; color: var(--ink-mute); display: flex; align-items: center; gap: 4px; }
.gallery-item:has(input:checked) img { opacity: .35; outline: 2px solid var(--error); }
.gallery-item:has(input:checked) .gallery-remove { color: var(--error); }

/* ---------- Storefront product gallery (multiple images) ---------- */
.product-gallery .main-img {
  position: relative;
}
.product-gallery .gallery-thumbs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px;
}
.product-gallery .gallery-thumbs button {
  width: 72px; height: 72px; padding: 0; border-radius: var(--r-sm);
  border: 2px solid var(--line); overflow: hidden; background: var(--bg-soft); cursor: pointer;
}
.product-gallery .gallery-thumbs button.active { border-color: var(--primary); }
.product-gallery .gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .product-detail, .about-grid, .cart-layout, .checkout-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
  .summary-card { position: static; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg-soft); flex-direction: column; gap: 0; padding: 16px;
    transform: translateX(-100%); transition: transform .3s ease; z-index: 99;
    border-top: 1px solid var(--line);
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .admin-nav a { font-size: 13px; padding: 8px 12px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .admin-cards { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 60px 1fr; }
  .cart-row .qty-control { grid-column: 2; }
  .header-inner { gap: 12px; padding: 12px 16px; }
  .brand-tag { display: none; }
  .section { padding: 56px 0; }
}

.brand img { object-fit: cover; }

.site-header .brand img.brand-logo {
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand {
  display: flex;
  align-items: center;
  overflow: visible;
}
