/* ─── Reset & Variables ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Exact custom hex variables for Black and White Monochrome theme */
  --tea-green: #e5e7eb;
  --beige: #f9fafb;
  --cornsilk: #ffffff;
  --papaya-whip: #f3f4f6;
  --light-bronze: #000000;

  /* Global Theme System Mappings - Light Theme */
  --p: #000000;            /* High-contrast pure black */
  --pd: #222222;           /* Dark graphite for hover states */
  --pl: #ffffff;           /* Crisp pure white */
  --ink: #111111;          /* Pitch black for main text */
  --muted: #555555;        /* Neutral gray for secondary text */
  --border: #e5e7eb;       /* Clean light gray border */
  --bg: #f9fafb;           /* Clean soft white page background */
  --white: #ffffff;        /* Pure white for containers/modal base */
  --card: #ffffff;         /* Pure white card backgrounds */
  --red: #111111;          /* Black active state (wishlist / alerts) */
  --green: #555555;        /* Medium gray for success states */
  --gold: #888888;         /* Silver gray for accents */
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --header-h: 130px;
}

/* ─── Dark Mode ─────────────────────────────────────────── */
[data-theme="dark"] {
  /* Global Theme System Mappings - Dark Theme */
  --bg: #000000;           /* Pitch black background */
  --white: #121212;        /* Sleek dark graphite containers */
  --card: #1c1c1e;         /* Modern dark grey card backgrounds */
  --ink: #ffffff;          /* Clean white text */
  --muted: #888888;        /* Soft gray for secondary text */
  --border: #2c2c2e;       /* Deep gray borders */
  --p: #ffffff;            /* High-contrast pure white */
  --pd: #e5e7eb;           /* Light silver gray for hover states */
  --pl: #111111;           /* Contrast black background */
  --red: #ffffff;          /* White active state (wishlist / alerts) */
  --green: #aaaaaa;        /* Muted gray success state */
  --shadow: 0 10px 30px rgba(0,0,0,0.6);
  --shadow-lg: 0 18px 44px rgba(0,0,0,0.7);
}

[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .header { background: var(--white); border-bottom: 2px solid var(--border); }
[data-theme="dark"] .announce-bar { background: var(--white); border-bottom: 2px solid var(--p); }
[data-theme="dark"] .site-nav { background: var(--white); border-top: 1px solid var(--border); }
[data-theme="dark"] .banner-section, [data-theme="dark"] .banner-dots { background: var(--bg); }
[data-theme="dark"] .cart-drawer { background: var(--white); }
[data-theme="dark"] .product-modal,
[data-theme="dark"] .checkout-modal,
[data-theme="dark"] .account-modal,
[data-theme="dark"] .admin-panel { background: var(--white); }
[data-theme="dark"] .admin-form-card { background: var(--card); }
[data-theme="dark"] .admin-tabs { background: var(--white); }
[data-theme="dark"] .atab.active { background: var(--card); }
[data-theme="dark"] .form-field input,
[data-theme="dark"] .form-field textarea,
[data-theme="dark"] .form-field select,
[data-theme="dark"] .admin-input { background: var(--card); color: var(--ink); border-color: var(--border); }
[data-theme="dark"] .prod-card { background: var(--card); border-color: var(--border); }
[data-theme="dark"] .search-field { background: var(--card); color: var(--ink); border-color: var(--border); }
[data-theme="dark"] .drawer-footer { background: var(--card); }
[data-theme="dark"] .site-footer { background: #000000 !important; }
[data-theme="dark"] .account-card { background: var(--card); }
[data-theme="dark"] .account-address { background: var(--card); }
[data-theme="dark"] .order-card { background: var(--card); }
[data-theme="dark"] .account-tabs { background: var(--card); }
[data-theme="dark"] .account-tab.active { background: var(--white); }
[data-theme="dark"] .product-upload-box { background: var(--card); border-color: var(--border); }

html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; transition: background 0.3s, color 0.3s; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Announce Bar ──────────────────────────────────────── */
.announce-bar {
  width: 100%; overflow: hidden; white-space: nowrap;
  background: var(--p); color: var(--pl); padding: 10px 0; position: relative;
  border-bottom: 2px solid var(--pd);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.announce-track {
  display: inline-block; padding-left: 100%;
  animation: marqueeMove 30s linear infinite;
}
@keyframes marqueeMove { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ─── Header ────────────────────────────────────────────── */
.header {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.3s;
}
.header-inner {
  display: flex; align-items: center; gap: 1rem; padding: 12px 2rem;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.logo-img {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid var(--border);
  background: #fff; transition: transform 0.2s ease;
}
.logo:hover .logo-img { transform: scale(1.05); }
.logo-text strong { display: block; font-size: 1rem; font-weight: 800; color: var(--ink); }
.logo-text small { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.04em; }

.search-wrap { flex: 1; display: flex; max-width: 520px; position: relative; }
.search-field {
  flex: 1; padding: 9px 44px 9px 16px;
  border: 2px solid var(--border); border-radius: 25px;
  font-size: 0.88rem; color: var(--ink); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg);
}
.search-field:focus { border-color: var(--p); box-shadow: 0 0 0 3px rgba(15,118,110,0.12); }
.search-icon-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); padding: 4px;
  transition: color 0.2s;
}
.search-icon-btn:hover { color: var(--p); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-action {
  background: none; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 8px 10px; color: var(--ink); transition: all 0.2s;
  display: flex; align-items: center; position: relative;
}
.icon-action:hover { border-color: var(--p); color: var(--p); }
.cart-action { position: relative; }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}
.admin-btn {
  background: var(--p); color: #fff; border: none;
  border-radius: 10px; padding: 8px 16px;
  font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.2s, transform 0.15s;
}
.admin-btn:hover { background: var(--pd); transform: translateY(-1px); }

/* ─── Dark Mode Toggle ──────────────────────────────────── */
.theme-toggle {
  background: none; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 8px 10px; color: var(--ink); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; cursor: pointer; min-width: 38px;
}
.theme-toggle:hover { border-color: var(--p); color: var(--p); }

/* ─── User Avatar (logged-in state) ─────────────────────── */
.user-avatar-btn {
  background: var(--p); border: none; border-radius: 50%;
  width: 38px; height: 38px; color: #fff; font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.user-avatar-btn:hover { background: var(--pd); transform: translateY(-1px); }

/* ─── Navigation ────────────────────────────────────────── */
.site-nav { border-top: 1px solid var(--border); padding: 0 2rem; }
.nav-row { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--border); }
.nav-row:last-child { border-bottom: none; }
.nav-link {
  padding: 8px 14px; font-size: 0.82rem; font-weight: 600;
  color: var(--muted); cursor: pointer; text-decoration: none;
  border-bottom: 2.5px solid transparent; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block; background: none; border-top: none; border-left: none; border-right: none;
}
.nav-link:hover, .nav-link.active { color: var(--p); border-bottom-color: var(--p); }
.nav-link.featured { color: var(--red); font-weight: 700; }
.nav-link.featured:hover { color: #a33; border-bottom-color: #a33; }

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  color: var(--ink);
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-sizing: border-box;
}
.nav-hamburger:hover {
  border-color: var(--p);
  background: rgba(15, 118, 110, 0.05);
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ─── Banner Slider ─────────────────────────────────────── */
.banner-section {
  position: relative; overflow: hidden; width: 100%; background: #0b0d14;
  aspect-ratio: 16 / 9;
  max-height: 800px;
}
.banner-track { display: flex; height: 100%; transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94); }
.banner-slide {
  min-width: 100%; height: 100%; position: relative;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; background: #0b0d14;
}
.bs-background-image {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1;
}
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 10; line-height: 1;
}
.banner-arrow:hover { background: rgba(255,255,255,0.25); }
.banner-arrow.prev { left: 12px; }
.banner-arrow.next { right: 12px; }
.banner-dots {
  display: flex; justify-content: center; gap: 6px; padding: 10px; background: var(--bg);
}
.bdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.25); border: none; cursor: pointer; transition: all 0.2s;
}
.bdot.active { background: var(--pl); width: 22px; border-radius: 4px; }

/* ─── Collections Section ────────────────────────────────── */
.collections-section {
  background: var(--white);
  padding: 2.5rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
}
.collections-inner { max-width: 1400px; margin: 0 auto; }
.collections-title {
  font-size: 2rem; font-weight: 900; color: var(--ink);
  margin-bottom: 1.5rem; letter-spacing: -0.5px;
}
.collections-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.collection-card {
  border-radius: 12px; overflow: hidden;
  cursor: pointer; position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.collection-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}
.collection-img-wrap {
  width: 100%; aspect-ratio: 1 / 1;
  overflow: hidden; background: #f5f3ff;
  display: block;
}
.collection-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.collection-card:hover .collection-img-wrap img {
  transform: scale(1.06);
}
.collection-img-wrap .coll-emoji-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.collection-label {
  padding: 12px 14px 13px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
}
.collection-label span {
  font-size: 0.88rem; font-weight: 700; color: var(--ink);
  line-height: 1.3;
}
.collection-label .coll-arrow {
  font-size: 1rem; color: var(--muted); flex-shrink: 0;
  transition: transform 0.2s;
}
.collection-card:hover .coll-arrow { transform: translateX(4px); color: var(--p); }

/* Hidden cards beyond max-visible */
.coll-hidden { display: none; }

/* View all button */
.coll-view-all-wrap {
  display: flex; justify-content: center;
  margin-top: 1.6rem;
}
.coll-view-all-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 36px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 700;
  border: 2px solid var(--ink); background: transparent;
  color: var(--ink); cursor: pointer;
  transition: all 0.22s ease;
  letter-spacing: 0.01em;
}
.coll-view-all-btn:hover {
  background: var(--ink); color: var(--white);
}

/* Responsive */
@media (max-width: 1100px) {
  .collections-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 800px) {
  .collections-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .collections-title { font-size: 1.5rem; }
  .collections-section { padding: 1.8rem 1rem 1.5rem; }
}
@media (max-width: 520px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .collections-title { font-size: 1.3rem; margin-bottom: 1rem; }
  .collection-label span { font-size: 0.82rem; }
}

/* ─── Collection Page Header ─────────────────────────────── */
.coll-page-header {
  background: linear-gradient(135deg, var(--p) 0%, var(--pd) 100%);
  padding: 1.4rem 2rem;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.coll-page-header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.2rem;
}
.coll-page-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
  color: #fff; cursor: pointer;
  transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.coll-page-back:hover { background: rgba(255,255,255,0.25); }
.coll-page-title-wrap { display: flex; flex-direction: column; gap: 2px; }
.coll-page-title {
  font-size: 1.5rem; font-weight: 900; color: #fff;
  margin: 0; letter-spacing: -0.3px;
}
.coll-page-subtitle {
  font-size: 0.78rem; color: rgba(255,255,255,0.75); font-weight: 500;
}
@media (max-width: 600px) {
  .coll-page-header { padding: 1rem; }
  .coll-page-title { font-size: 1.15rem; }
}

/* ─── Shop Main ─────────────────────────────────────────── */
.shop-main { padding: 1.5rem 2rem 3rem; max-width: 1400px; margin: 0 auto; }
.shop-toolbar {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 1rem;
  flex-wrap: wrap; gap: 8px;
}
.shop-heading { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.shop-meta { font-size: 0.82rem; color: var(--muted); }
.sort-select {
  padding: 6px 12px; border-radius: 8px; border: 1.5px solid var(--border);
  font-size: 0.8rem; font-weight: 700; color: var(--ink);
  background: var(--white); outline: none; cursor: pointer;
  transition: all 0.2s;
}
.sort-select:hover, .sort-select:focus {
  border-color: var(--p);
}

/* ─── Category Filters ──────────────────────────────────── */
.cat-filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 1.5rem; }
.cat-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 700;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--muted); cursor: pointer; transition: all 0.2s;
}
.cat-pill:hover { border-color: var(--p); color: var(--p); }
.cat-pill.active { background: var(--p); color: #fff; border-color: var(--p); }

/* ─── Product Grid ──────────────────────────────────────── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  margin-bottom: 2rem;
}
.loading-state {
  grid-column: 1/-1;
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; padding: 4rem; color: var(--muted);
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--p);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.prod-card {
  background: var(--white);
  border: 1px solid rgba(31,41,51,0.08);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(31,41,51,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.prod-card:hover {
  border-color: var(--p);
  box-shadow: var(--shadow-lg);
}
.prod-thumb {
  aspect-ratio: 4 / 3.6;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 0;
  position: relative; overflow: hidden;
}
.prod-image-wrap,
.prod-emoji-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.prod-image {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.prod-card:hover .prod-image { transform: scale(1.045); }
.prod-emoji-fallback {
  font-size: 3.8rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0)), var(--bg);
}
.prod-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 9px; font-weight: 800; padding: 4px 9px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-sale { background: var(--red); color: #fff; }
.badge-new { background: var(--green); color: #fff; }
.badge-hot { background: #e67e22; color: #fff; }

/* ─── Product Body & Swatch (below image) ───────────────── */
.prod-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.prod-body-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px;
}
.prod-cat {
  font-size: 0.68rem; color: var(--p); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.prod-swatch {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.15);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  flex-shrink: 0; display: inline-block;
}
.prod-name {
  font-size: 0.9rem; font-weight: 700; color: var(--ink);
  margin-bottom: 5px; line-height: 1.35; min-height: 38px;
}
.prod-price { font-size: 0.9rem; font-weight: 800; color: var(--red); margin-bottom: 8px; }
.prod-price s { font-size: 0.75rem; color: #aaa; font-weight: 400; margin-left: 4px; }
.stock-low { font-size: 0.68rem; color: #e67e22; font-weight: 600; margin-bottom: 6px; }

/* ─── Product Card Buttons ──────────────────────────────── */
.prod-card-btns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto;
}
.add-to-cart-btn {
  padding: 7px 4px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 7px; font-size: 0.73rem; font-weight: 700;
  color: var(--ink); letter-spacing: 0.02em;
  transition: all 0.2s;
}
.add-to-cart-btn:hover { background: var(--p); color: #fff; border-color: var(--p); }
.add-to-cart-btn.added { background: var(--green); color: #fff; border-color: var(--green); }

.buy-now-btn {
  padding: 7px 4px;
  background: var(--p); border: 1.5px solid var(--p);
  border-radius: 7px; font-size: 0.73rem; font-weight: 700;
  color: #fff; letter-spacing: 0.02em;
  transition: all 0.2s;
}
.buy-now-btn:hover { background: var(--pd); border-color: var(--pd); }

/* ─── Pagination ────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 1rem; }
.page-btn {
  padding: 6px 13px; border-radius: 7px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 0.82rem; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: all 0.2s;
}
.page-btn:hover, .page-btn.active { background: var(--p); color: #fff; border-color: var(--p); }

/* ─── Drawer ─────────────────────────────────────────────── */
.drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 200;
}
.drawer-overlay.open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 400px; height: 100vh;
  background: var(--white); z-index: 201; display: flex; flex-direction: column;
  transition: right 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.cart-drawer.open { right: 0; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.drawer-head h3 { font-size: 1rem; font-weight: 800; color: var(--ink); }
.drawer-head h3 span { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.drawer-close { background: none; border: none; font-size: 1.5rem; color: var(--muted); line-height: 1; padding: 2px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.empty-cart { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4rem 1rem; color: var(--muted); text-align: center; }
.empty-cart small { font-size: 0.78rem; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.cart-item-thumb { width: 56px; height: 56px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; overflow: hidden; }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.82rem; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.cart-item-price { font-size: 0.82rem; color: var(--p); font-weight: 700; }
.cart-item-controls { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty-btn { background: var(--bg); border: 1px solid var(--border); border-radius: 5px; width: 24px; height: 24px; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.qty-btn:hover { background: var(--p); color: #fff; border-color: var(--p); }
.qty-val { font-size: 0.82rem; font-weight: 700; min-width: 20px; text-align: center; }
.remove-btn { background: none; border: none; color: #ccc; font-size: 1.1rem; padding: 0 4px; margin-left: auto; transition: color 0.2s; }
.remove-btn:hover { color: var(--red); }
.drawer-footer { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--card); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 0.9rem; }
.cart-subtotal strong { font-size: 1.1rem; color: var(--p); }
.checkout-btn {
  width: 100%; padding: 12px;
  background: var(--p); color: #fff; border: none;
  border-radius: 10px; font-size: 0.92rem; font-weight: 800;
  letter-spacing: 0.04em; transition: background 0.2s, transform 0.15s;
}
.checkout-btn:hover { background: var(--pd); transform: translateY(-1px); }

/* ─── Modals ─────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 300;
  align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: rgba(0,0,0,0.06); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 1.2rem; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.12); }

/* Product Modal */
.product-modal {
  background: var(--white); border-radius: 16px;
  max-width: 580px; width: 100%; position: relative;
  overflow-y: auto; max-height: 90vh;
}
.modal-body { padding: 2rem; }
.modal-prod-thumb {
  width: 100%; height: auto; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; margin-bottom: 1.5rem; overflow: hidden;
}
.modal-prod-thumb .prod-image-wrap,
.modal-prod-thumb .prod-emoji-fallback { border-radius: 10px; width: 100%; height: 100%; }
.modal-prod-thumb .prod-image { object-fit: cover; width: 100%; height: 100%; }
.modal-prod-thumb .prod-emoji-fallback { font-size: 6rem; }
.modal-prod-cat { font-size: 0.72rem; font-weight: 700; color: var(--p); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.modal-prod-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--ink); margin-bottom: 10px; }
.modal-prod-price { font-size: 1.2rem; font-weight: 800; color: var(--red); margin-bottom: 8px; }
.modal-prod-price s { font-size: 0.9rem; color: #aaa; font-weight: 400; }
.modal-prod-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.modal-prod-stock { font-size: 0.78rem; color: var(--green); font-weight: 600; margin-bottom: 16px; }
.modal-btns { display: flex; gap: 10px; }
.modal-add-btn {
  flex: 1; padding: 12px;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 0.95rem; font-weight: 800;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.modal-add-btn:hover { background: var(--p); color: #fff; border-color: var(--p); }
.modal-buy-now-btn {
  flex: 1; padding: 12px;
  background: var(--p); color: #fff; border: none;
  border-radius: 10px; font-size: 0.95rem; font-weight: 800;
  transition: background 0.2s, transform 0.15s;
}
.modal-buy-now-btn:hover { background: var(--pd); transform: translateY(-1px); }

/* Product Modal Tabs */
.modal-tabs {
  display: flex; gap: 0; margin: 16px 0 0;
  border-bottom: 2px solid var(--border);
}
.modal-tab {
  flex: 1; padding: 10px 6px; border: none; background: none;
  font-size: 0.88rem; font-weight: 700; color: var(--muted);
  cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: color 0.2s, border-color 0.2s;
}
.modal-tab:hover { color: var(--p); }
.modal-tab.active { color: var(--p); border-bottom-color: var(--p); }
.modal-pane { padding-top: 16px; }

/* Checkout Modal */
.checkout-modal {
  background: var(--white); border-radius: 16px;
  max-width: 860px; width: 100%; position: relative;
  max-height: 92vh; overflow-y: auto;
}
.modal-title { padding: 1.5rem 2rem 0; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.checkout-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 1.5rem 2rem 2rem; }
.checkout-form-wrap h4, .checkout-summary h4 { font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 1rem; }
.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.88rem; color: var(--ink); outline: none;
  transition: border-color 0.2s; background: var(--white);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--p); }
.form-field textarea { resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.ck-order-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; }
.ck-order-item-name { color: var(--ink); font-weight: 600; }
.ck-order-item-price { color: var(--muted); }
.ck-total-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.88rem; color: var(--muted); }
.ck-total-row.total { font-weight: 800; font-size: 1rem; color: var(--ink); border-top: 2px solid var(--border); margin-top: 4px; padding-top: 10px; }
.place-order-btn {
  width: 100%; padding: 12px; margin-top: 14px;
  background: #25D366; color: #fff; border: none;
  border-radius: 10px; font-size: 0.92rem; font-weight: 800;
  transition: background 0.2s, transform 0.15s;
}
.place-order-btn:hover { background: #1ebe5d; transform: translateY(-1px); }
.ck-note { font-size: 0.72rem; color: var(--muted); text-align: center; margin-top: 8px; }

/* ─── Invoice Download Button ───────────────────────────── */
.invoice-download-btn {
  width: 100%; padding: 11px; margin-top: 8px;
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 0.88rem; font-weight: 700;
  color: var(--ink); transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.invoice-download-btn:hover { border-color: var(--p); color: var(--p); }

/* ─── Account Modal ─────────────────────────────────────── */
.account-modal {
  background: var(--white); border-radius: 12px;
  max-width: 580px; width: 100%; position: relative;
  max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.account-head { padding: 24px 28px 12px; border-bottom: 1px solid var(--border); }
.account-head h2 { font-size: 1.2rem; font-weight: 900; color: var(--ink); }
.account-head p { color: var(--muted); font-size: 0.86rem; margin-top: 4px; }
#accountLoggedOut, #accountLoggedIn { padding: 20px 28px 24px; }
.account-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(0,0,0,0.04); border-radius: 8px;
  padding: 4px; margin-bottom: 16px;
}
.account-tab {
  border: none; background: transparent;
  color: var(--muted); border-radius: 6px; padding: 9px; font-weight: 900;
}
.account-tab.active {
  background: var(--white); color: var(--p);
  box-shadow: 0 1px 8px rgba(31,41,51,0.08);
}
.account-pane { display: none; }
.account-pane.active { display: block; }
.account-primary-btn, .account-secondary-btn {
  width: 100%; border: none; border-radius: 8px;
  padding: 11px 14px; font-weight: 900;
}
.account-primary-btn { background: var(--p); color: #fff; margin-top: 4px; }
.account-primary-btn:hover { background: var(--pd); }
.account-secondary-btn { background: #fff7f6; color: var(--red); border: 1px solid #efc3bf; margin-top: 8px; }
.account-secondary-btn:hover { background: var(--red); color: #fff; }
.account-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(15,118,110,0.05); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; margin-bottom: 14px;
}
.account-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--p); color: #fff; font-weight: 900; font-size: 1.3rem; flex-shrink: 0;
}
.account-card h3 { font-size: 1rem; color: var(--ink); font-weight: 800; }
.account-card p { font-size: 0.84rem; color: var(--muted); }
.account-address {
  margin: 0 0 14px; padding: 12px;
  border-radius: 8px; background: rgba(0,0,0,0.03); border: 1px solid var(--border);
  font-size: 0.84rem; color: var(--muted);
}
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-message {
  min-height: 22px; padding: 0 28px 20px;
  font-size: 0.82rem; font-weight: 800; color: var(--muted);
}
.account-message.success { color: var(--green); }
.account-message.error { color: var(--red); }

/* My Orders Tab */
.my-orders-list { display: flex; flex-direction: column; gap: 10px; }
.my-order-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  background: var(--card);
}
.my-order-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.my-order-id { font-size: 0.85rem; font-weight: 800; color: var(--ink); }
.my-order-date { font-size: 0.72rem; color: var(--muted); }
.my-order-items { font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; line-height: 1.6; }
.my-order-footer { display: flex; justify-content: space-between; align-items: center; }
.my-order-total { font-size: 0.9rem; font-weight: 800; color: var(--p); }
.my-order-status { font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d1f2eb; color: #0a6641; }
.status-shipped { background: #d6eaff; color: #0a4d8b; }
.status-delivered { background: #d1f2eb; color: #0a6641; }
.status-cancelled { background: #fde8e8; color: #b91c1c; }
.my-order-invoice-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; font-size: 0.72rem; font-weight: 700; color: var(--ink);
  transition: all 0.2s;
}
.my-order-invoice-btn:hover { border-color: var(--p); color: var(--p); }
.orders-loading { text-align: center; color: var(--muted); font-size: 0.84rem; padding: 2rem; }
.edit-profile-btn {
  width: 100%; padding: 9px; border: 1.5px solid var(--border);
  border-radius: 8px; background: transparent; color: var(--ink);
  font-weight: 700; font-size: 0.85rem; transition: all 0.2s; margin-bottom: 10px;
}
.edit-profile-btn:hover { border-color: var(--p); color: var(--p); }
.profile-edit-form { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; background: rgba(0,0,0,0.02); }

/* ─── Admin Panel ───────────────────────────────────────── */
.admin-overlay { align-items: flex-start; padding: 1.5rem; overflow-y: auto; }
.admin-panel {
  background: var(--white); border-radius: 16px;
  width: 100%; max-width: 740px; position: relative;
  min-height: 400px; margin: auto;
}
.admin-login-box { padding: 3rem 2rem; text-align: center; }
.admin-login-icon { font-size: 3rem; margin-bottom: 12px; }
.admin-login-box h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.admin-login-box p { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.admin-input {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.88rem; color: var(--ink); outline: none;
  transition: border-color 0.2s; background: var(--white);
  margin-bottom: 10px;
}
.admin-input:focus { border-color: var(--p); }
.admin-input[type="color"] { height: 40px; padding: 4px 8px; cursor: pointer; }
.admin-login-btn {
  width: 100%; padding: 11px;
  background: var(--p); color: #fff; border: none;
  border-radius: 10px; font-size: 0.92rem; font-weight: 800;
}
.admin-login-btn:hover { background: var(--pd); }
.admin-err { color: var(--red); font-size: 0.8rem; min-height: 18px; margin-top: 6px; }
.admin-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: var(--ink); border-radius: 16px 16px 0 0;
}
.admin-logo { font-size: 1rem; font-weight: 800; color: #fff; }
.admin-logout-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 7px; padding: 5px 14px; font-size: 0.8rem; font-weight: 700; }
.admin-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.03); overflow-x: auto; }
.atab {
  padding: 10px 16px; font-size: 0.8rem; font-weight: 700; color: var(--muted);
  background: none; border: none; border-bottom: 2.5px solid transparent;
  white-space: nowrap; cursor: pointer; transition: all 0.2s;
}
.atab:hover { color: var(--p); }
.atab.active { color: var(--p); border-bottom-color: var(--p); background: var(--white); }
.admin-tab-body { padding: 20px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.admin-section-head { font-size: 0.85rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-list { max-height: 220px; overflow-y: auto; margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.admin-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--card);
}
.ali-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--border); }
.ali-info { flex: 1; min-width: 0; }
.ali-name { font-size: 0.83rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ali-sub { font-size: 0.7rem; color: var(--muted); }
.ali-actions { display: flex; gap: 5px; }
.ali-edit {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 9px; font-size: 0.72rem; color: var(--p);
  transition: all 0.2s; flex-shrink: 0;
}
.ali-edit:hover { background: var(--p); color: #fff; border-color: var(--p); }
.ali-del {
  background: none; border: 1px solid #fcc; border-radius: 6px;
  padding: 4px 9px; font-size: 0.72rem; color: var(--red);
  transition: all 0.2s; flex-shrink: 0;
}
.ali-del:hover { background: var(--red); color: #fff; border-color: var(--red); }
.admin-form-card { background: rgba(0,0,0,0.02); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-top: 4px; }
.afc-title { font-size: 0.8rem; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.admin-save-btn {
  width: 100%; padding: 10px;
  background: var(--p); color: #fff; border: none;
  border-radius: 8px; font-size: 0.88rem; font-weight: 800;
  margin-top: 4px; transition: background 0.2s;
}
.admin-save-btn:hover { background: var(--pd); }
.admin-cancel-btn {
  width: 100%; padding: 10px; background: transparent;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.88rem; font-weight: 700; color: var(--muted);
  margin-top: 4px; transition: all 0.2s;
}
.admin-cancel-btn:hover { border-color: var(--red); color: var(--red); }
.admin-ok { display: none; color: var(--green); font-size: 0.82rem; font-weight: 700; text-align: center; margin-top: 8px; padding: 6px; background: rgba(22,135,91,0.08); border-radius: 6px; }
.admin-ok.show { display: block; }
.refresh-btn { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; font-size: 0.75rem; color: var(--p); font-weight: 700; cursor: pointer; }

/* Admin Upload */
.product-file-input {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.product-upload-box {
  min-height: 138px; border: 1.5px dashed var(--border);
  border-radius: 8px; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 18px; color: var(--muted);
  cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.product-upload-box:hover, .product-upload-box.dragging { border-color: var(--p); background: rgba(15,118,110,0.04); color: var(--p); }
.upload-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--p); color: #fff;
  display: grid; place-items: center; font-size: 1.4rem; line-height: 1;
}
.upload-title { font-weight: 800; color: var(--ink); }
.upload-sub { font-size: 0.75rem; }
.product-image-preview {
  margin-top: 10px; display: grid;
  grid-template-columns: 120px 1fr; gap: 12px; align-items: center;
}
.product-image-preview img {
  width: 120px; height: 92px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--border); background: #f3efe7;
}
.image-remove-btn {
  justify-self: start; border: 1px solid #efc3bf;
  background: #fff8f7; color: var(--red); border-radius: 8px;
  padding: 8px 12px; font-weight: 800; transition: background 0.2s ease, color 0.2s ease;
}
.image-remove-btn:hover { background: var(--red); color: #fff; }
.upload-status { min-height: 18px; margin-top: 6px; font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.upload-status.success { color: var(--green); }
.upload-status.error { color: var(--red); }
.upload-status.loading { color: var(--p); }

/* Admin thumb */
.ali-thumb {
  width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 1.35rem; color: var(--ink);
}
.ali-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Admin Orders */
.order-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; background: var(--card); }
.order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.order-id { font-size: 0.82rem; font-weight: 800; color: var(--ink); }
.order-date { font-size: 0.7rem; color: var(--muted); }
.order-status-badge { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.order-customer { font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.order-items-list { font-size: 0.76rem; color: var(--muted); margin-bottom: 8px; line-height: 1.6; }
.order-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.order-total { font-size: 0.9rem; font-weight: 800; color: var(--p); }
.order-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.order-status-select { font-size: 0.75rem; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--ink); background: var(--white); }
.order-notify-btn {
  background: #25D366; border: none; color: #fff; border-radius: 6px;
  padding: 4px 10px; font-size: 0.72rem; font-weight: 700;
  transition: background 0.2s;
}
.order-notify-btn:hover { background: #1ebe5d; }
.order-save-btn {
  background: var(--p); border: none; color: #fff; border-radius: 6px;
  padding: 4px 10px; font-size: 0.72rem; font-weight: 700;
  transition: background 0.2s;
}
.order-save-btn:hover { background: var(--pd); }

/* ─── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff;
  padding: 10px 22px; border-radius: 25px;
  font-size: 0.85rem; font-weight: 600;
  opacity: 0; transition: all 0.3s; z-index: 500;
  white-space: nowrap; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

/* ─── WhatsApp Float ────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 20px; right: 20px;
  background: #25D366; color: #fff;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  text-decoration: none; z-index: 150;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.55); }

.ig-float {
  position: fixed; bottom: 82px; right: 20px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(220,39,67,0.4);
  text-decoration: none; z-index: 150;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ig-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(220,39,67,0.5); }

.cart-float {
  position: fixed;
  bottom: 144px;
  right: 20px;
  background: var(--p);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(15,118,110,0.4);
  text-decoration: none;
  z-index: 150;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  border: none;
  cursor: pointer;
}
.cart-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(15,118,110,0.5);
  background: var(--pd);
}
.cart-float .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  padding: 0 4px;
  box-sizing: border-box;
}

/* ─── No Results ────────────────────────────────────────── */
.no-results {
  grid-column: 1/-1; text-align: center; padding: 4rem; color: var(--muted);
}
.no-results .nr-icon { font-size: 3rem; margin-bottom: 1rem; }
.no-results p { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.no-results small { font-size: 0.82rem; }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--pl); }

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  background: #111111 !important; color: var(--pl);
  padding: 42px 2rem 18px; margin-top: 3rem;
  border-top: 4px solid var(--p);
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
}
.footer-brand { color: var(--white); font-size: 1.3rem; font-weight: 900; margin-bottom: 8px; letter-spacing: 0.02em; }
.site-footer h4 { color: var(--white); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.site-footer p, .site-footer a, .footer-link { color: var(--muted); font-size: 0.86rem; line-height: 1.7; text-decoration: none; }
.footer-link { display: block; background: none; border: none; padding: 0; text-align: left; cursor: pointer; transition: color 0.2s; }
.site-footer a:hover, .footer-link:hover { color: var(--p); }

/* footer contact section premium contrast styling */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}
.footer-contact-item.align-start {
  align-items: flex-start;
}
.footer-contact-item svg {
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s;
}
.footer-contact-item.align-start svg {
  margin-top: 4px;
}
.footer-contact-item:hover svg {
  color: var(--white);
}
.footer-contact-item a {
  color: var(--p) !important;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}
.footer-contact-item a:hover {
  color: var(--white) !important;
  text-decoration: underline;
}
.footer-bottom {
  max-width: 1200px; margin: 26px auto 0; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--muted); font-size: 0.78rem;
}

/* ─── Payment Methods Selector ──────────────────────────── */
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.payment-option {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--card);
}
.payment-option:hover {
  border-color: var(--pl);
  background: rgba(15, 118, 110, 0.02);
}
.payment-option.active {
  border-color: var(--p);
  background: rgba(15, 118, 110, 0.05);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.1);
}
.payment-option-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.payment-option-details {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.payment-option-details strong {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 700;
}
.payment-option-details span {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ─── Mobile Navigation Drawer ──────────────────────────── */
.mobile-nav-drawer {
  left: -320px;
  right: auto;
  width: 300px;
  transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-nav-drawer.open {
  left: 0;
  right: auto;
}
.mobile-nav-section {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.mn-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 6px;
}
.mn-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.mn-link {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.mn-link::after {
  content: '›';
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.mn-link:hover, .mn-link.active {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}
.mn-link:hover::after, .mn-link.active::after {
  color: #fff;
  transform: translateX(2px);
}
.mn-link.featured {
  color: var(--red);
  border-color: rgba(194, 65, 58, 0.25);
  background: rgba(194, 65, 58, 0.04);
}
.mn-link.featured::after {
  color: var(--red);
}
.mn-link.featured:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.mn-link.featured:hover::after {
  color: #fff;
}
.mn-admin-btn {
  width: 100%;
  padding: 10px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.mn-admin-btn:hover {
  background: #000;
}
[data-theme="dark"] .mobile-nav-section {
  background: var(--card);
}
[data-theme="dark"] .mn-link {
  background: var(--white);
}
[data-theme="dark"] .mn-admin-btn {
  background: var(--card);
  border: 1px solid var(--border);
}
[data-theme="dark"] .mn-admin-btn:hover {
  background: var(--border);
  color: var(--white);
}

/* ─── Responsive Media Queries ──────────────────────────── */

/* Tablet: up to 1024px */
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile: up to 768px */
@media (max-width: 768px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
  }
  .nav-hamburger { order: 1; display: flex; }
  .logo { order: 2; gap: 6px; }
  .header-actions { order: 3; gap: 5px; }
  .search-wrap { order: 4; width: 100%; max-width: 100%; margin-top: 4px; }
  
  .header-actions .admin-btn { display: none; }
  .logo-img { width: 38px; height: 38px; }
  .logo-text strong { font-size: 0.88rem; }
  .logo-text small { display: none; }
  
  .icon-action { padding: 6px 8px; border-radius: 8px; }
  .theme-toggle { min-width: 34px; padding: 6px; border-radius: 8px; }

  .site-nav { display: none; }

  .banner-section { aspect-ratio: 16 / 15; height: auto; max-height: 620px; }
  .banner-slide { height: 100%; }
  .bs-background-image { height: 100%; width: 100%; object-fit: cover; }
  .banner-arrow { width: 28px; height: 28px; font-size: 1rem; }

  .shop-main { padding: 1rem; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .prod-card-btns { grid-template-columns: 1fr; gap: 4px; }

  .checkout-body { grid-template-columns: 1fr; gap: 1.25rem; }
  .checkout-modal { border-radius: 12px 12px 0 0; max-height: 95vh; }

  .cart-drawer { width: 100%; right: -100%; }
  .cart-drawer.open { right: 0; }

  .product-modal { border-radius: 12px; max-height: 95vh; }
  .account-modal { border-radius: 12px; max-height: 95vh; }
  .modal-overlay { padding: 0.5rem; align-items: flex-end; }
  .modal-body { padding: 1.25rem; }
  
  .modal-btns { display: flex; flex-wrap: wrap; gap: 8px; }
  .modal-add-btn { flex: 1 1 110px; padding: 10px; }
  .modal-buy-now-btn { flex: 1 1 110px; padding: 10px; }
  .modal-wishlist-btn { flex: 0 0 44px; height: 44px; min-width: 44px; }
  
  .form-row-2 { grid-template-columns: 1fr; gap: 8px; }
  .form-row-3 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .payment-options { grid-template-columns: 1fr; gap: 8px; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .site-footer { padding: 30px 1rem 16px; }

  .account-actions { grid-template-columns: 1fr; }
  #accountLoggedOut, #accountLoggedIn { padding: 16px 20px 20px; }

  .product-image-preview { grid-template-columns: 1fr; }
  .product-image-preview img { width: 100%; height: 160px; }

  .admin-tab-body { padding: 14px; }
  .admin-overlay { padding: 0; }
  .admin-panel { border-radius: 0; min-height: 100vh; }
}

/* Small mobile: up to 480px */
@media (max-width: 480px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .prod-body { padding: 9px 10px 10px; }
  .prod-name { font-size: 0.8rem; min-height: 32px; }
  .header-inner { padding: 8px 0.5rem; }
  .logo-img { width: 34px; height: 34px; }
  .logo-text strong { font-size: 0.84rem; }
  .logo-text small { display: none; }
  .shop-main { padding: 0.5rem; }
  .modal-prod-thumb { height: 180px; }
  .banner-section { aspect-ratio: 1 / 1; height: auto; max-height: 550px; }
  .banner-slide { height: 100%; }
  .bs-background-image { height: 100%; width: 100%; object-fit: cover; }
}

/* ─── Reviews & Ratings ─────────────────────────────────── */
.prod-rating { display:flex; align-items:center; gap:4px; margin:4px 0 2px; }
.prod-rating .stars { color:#f59e0b; font-size:0.78rem; letter-spacing:1px; }
.prod-rating .rating-count { font-size:0.7rem; color:var(--muted); }

.reviews-section { margin-top:24px; border-top:1px solid var(--border); padding-top:18px; }
.reviews-section h3 { font-size:1rem; font-weight:700; color:var(--ink); margin-bottom:14px; }
.reviews-avg { display:flex; align-items:center; gap:14px; background:var(--bg); border-radius:10px; padding:12px 16px; margin-bottom:16px; }
.reviews-avg .avg-score { font-size:2rem; font-weight:900; color:var(--p); line-height:1; }
.reviews-avg .avg-stars { color:#f59e0b; font-size:1.1rem; letter-spacing:2px; display:block; }
.reviews-avg .avg-label { font-size:0.75rem; color:var(--muted); }

.review-list { display:flex; flex-direction:column; gap:10px; max-height:260px; overflow-y:auto; padding-right:4px; margin-bottom:16px; }
.review-card { background:var(--bg); border-radius:10px; padding:12px 14px; border:1px solid var(--border); }
.review-card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:4px; }
.review-card-user { font-weight:700; font-size:0.85rem; color:var(--ink); }
.review-card-stars { color:#f59e0b; font-size:0.85rem; }
.review-card-date { font-size:0.72rem; color:var(--muted); margin-bottom:5px; }
.review-card-comment { font-size:0.84rem; color:var(--ink); line-height:1.5; }
.reviews-empty { text-align:center; color:var(--muted); font-size:0.85rem; padding:18px 0; }

.review-form { background:var(--bg); border-radius:12px; padding:16px; border:1px solid var(--border); }
.review-form h4 { font-size:0.9rem; font-weight:700; color:var(--ink); margin-bottom:12px; }
.star-picker { display:flex; gap:5px; margin-bottom:12px; }
.star-picker button { background:none; border:none; font-size:1.6rem; cursor:pointer; color:#d1d5db; transition:color 0.15s, transform 0.1s; padding:0; line-height:1; }
.star-picker button.active, .star-picker button:hover { color:#f59e0b; transform:scale(1.15); }
.review-form textarea { width:100%; border:1px solid var(--border); border-radius:8px; padding:10px 12px; font-size:0.84rem; font-family:inherit; resize:vertical; min-height:72px; background:var(--white); color:var(--ink); outline:none; transition:border-color 0.2s; }
.review-form textarea:focus { border-color:var(--p); }
.review-submit-btn { margin-top:10px; background:var(--p); color:#fff; border:none; border-radius:8px; padding:9px 22px; font-size:0.85rem; font-weight:700; cursor:pointer; transition:background 0.2s; }
.review-submit-btn:hover { background:var(--pd); }
.review-submit-btn:disabled { opacity:0.6; cursor:not-allowed; }
.review-login-note, .review-purchased-note { font-size:0.8rem; color:var(--muted); text-align:center; padding:10px 14px; background:var(--bg); border-radius:8px; border:1px dashed var(--border); }
.review-login-note a { color:var(--p); cursor:pointer; font-weight:600; text-decoration:underline; }

.admin-review-card { background:var(--white); border:1px solid var(--border); border-radius:10px; padding:14px 16px; display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
.admin-review-card .arc-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; }
.admin-review-card .arc-product { font-weight:700; font-size:0.88rem; color:var(--p); }
.admin-review-card .arc-meta { font-size:0.78rem; color:var(--muted); }
.admin-review-card .arc-stars { color:#f59e0b; font-size:0.9rem; }
.admin-review-card .arc-comment { font-size:0.85rem; color:var(--ink); }
.admin-review-card .arc-delete { background:#fee2e2; color:#b91c1c; border:none; border-radius:6px; padding:4px 12px; font-size:0.78rem; font-weight:700; cursor:pointer; }
.admin-review-card .arc-delete:hover { background:#fca5a5; }

[data-theme="dark"] .review-form, [data-theme="dark"] .reviews-avg { background:var(--card); }
[data-theme="dark"] .review-card { background:var(--card); }
[data-theme="dark"] .review-form textarea { background:var(--white); }
[data-theme="dark"] .review-login-note, [data-theme="dark"] .review-purchased-note { background:var(--card); }

/* ─── Wishlist Toggles ─────────────────────────────────── */
.wishlist-card-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}
.wishlist-card-btn:hover {
  background: #fff;
  transform: scale(1.08);
  color: var(--red);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.wishlist-card-btn.active {
  background: #fff;
  color: var(--red);
}

/* Modal Wishlist Button */
.modal-wishlist-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
}
.modal-wishlist-btn:hover {
  background: #fff5f5;
  border-color: #ffc9c9;
  color: var(--red);
  transform: translateY(-1px);
}
.modal-wishlist-btn.active {
  background: #ffe3e3;
  border-color: #ffa8a8;
  color: var(--red);
}

/* Wishlist Drawer Actions */
.wishlist-item-actions {
  margin-top: 8px;
}
.wl-add-cart-btn {
  padding: 6px 12px;
  background: var(--p);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.wl-add-cart-btn:hover {
  background: var(--pd);
}
.wl-remove-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #bbb;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}
.wl-remove-btn:hover {
  color: var(--red);
}

[data-theme="dark"] .wishlist-card-btn {
  background: rgba(30, 41, 59, 0.85);
  color: #94a3b8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
[data-theme="dark"] .wishlist-card-btn:hover, [data-theme="dark"] .wishlist-card-btn.active {
  background: #1e293b;
  color: var(--red);
}
[data-theme="dark"] .modal-wishlist-btn {
  background: var(--card);
  border-color: var(--border);
  color: #94a3b8;
}
[data-theme="dark"] .modal-wishlist-btn:hover {
  background: #271c1c;
  border-color: #581c1c;
  color: var(--red);
}
[data-theme="dark"] .modal-wishlist-btn.active {
  background: #3a1d1d;
  border-color: #881c1c;
  color: var(--red);
}
[data-theme="dark"] .wl-remove-btn:hover {
  color: var(--red);
}

/* ─── Coupons & Promo Code styles ──────────────────────── */
.promo-field {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.promo-input-row {
  margin-top: 6px;
}
.promo-msg {
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
}
[data-theme="dark"] .promo-field {
  background: var(--card);
}
.admin-table th {
  color: var(--muted);
}
[data-theme="dark"] .admin-table th {
  color: #94a3b8;
}

/* ─── Final responsive hardening ───────────────────────────── */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.header-inner,
.shop-main,
.footer-grid,
.checkout-body,
.admin-tab-body,
.modal-body {
  min-width: 0;
}

.logo,
.logo-text,
.search-wrap,
.prod-card,
.cart-item-info,
.ali-info {
  min-width: 0;
}

.logo-text strong,
.logo-text small,
.prod-name,
.cart-item-name,
.ali-name {
  overflow-wrap: anywhere;
}

.checkout-modal,
.product-modal,
.account-modal,
.admin-panel {
  width: min(100%, 920px);
}

.product-modal,
.checkout-modal,
.account-modal,
.admin-panel,
.cart-drawer {
  max-width: 100vw;
}

.admin-list,
.drawer-body,
.checkout-modal,
.account-modal,
.product-modal,
.admin-panel {
  overscroll-behavior: contain;
}

.admin-tabs {
  scrollbar-width: thin;
}

.admin-form-actions,
.account-actions,
.modal-btns {
  min-width: 0;
}

@media (max-width: 900px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .site-nav {
    padding-inline: 1rem;
  }

  .prod-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }

  .checkout-modal {
    width: min(100%, 760px);
  }
}

@media (max-width: 768px) {
  .announce-bar {
    font-size: 0.8rem;
  }

  .header {
    position: sticky;
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .nav-hamburger {
    grid-column: 1;
    width: 36px;
    height: 36px;
  }

  .logo {
    grid-column: 2;
    overflow: hidden;
  }

  .header-actions {
    grid-column: 3;
    justify-content: flex-end;
    gap: 4px;
  }

  .search-wrap {
    grid-column: 1 / -1;
    order: initial;
    margin-top: 2px;
  }

  .icon-action,
  .theme-toggle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    justify-content: center;
  }

  .cart-badge {
    top: -6px;
    right: -6px;
  }

  .mobile-nav-drawer {
    width: min(86vw, 320px);
    right: auto;
    left: -100%;
  }

  .mobile-nav-drawer.open {
    right: auto;
    left: 0;
  }

  .mn-links-grid {
    grid-template-columns: 1fr;
  }

  .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prod-card {
    border-radius: 8px;
  }

  .prod-thumb {
    aspect-ratio: 1 / 1;
  }

  .prod-badge,
  .wishlist-card-btn {
    top: 7px;
  }

  .wishlist-card-btn {
    right: 7px;
    width: 30px;
    height: 30px;
  }

  .prod-badge {
    left: 7px;
    max-width: calc(100% - 52px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .checkout-modal,
  .product-modal,
  .account-modal {
    width: 100%;
    border-radius: 14px 14px 0 0;
  }

  .checkout-body {
    padding: 1rem;
  }

  .modal-title,
  .account-head {
    padding-inline: 1rem;
  }

  #accountLoggedOut,
  #accountLoggedIn {
    padding-inline: 1rem;
  }

  .payment-option {
    padding: 10px;
  }

  .promo-input-row {
    flex-wrap: wrap;
  }

  .promo-input-row input,
  .promo-input-row button {
    flex: 1 1 100%;
  }

  .admin-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .atab {
    flex: 0 0 auto;
  }

  .admin-list-item {
    align-items: flex-start;
  }

  .ali-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .toast {
    width: calc(100vw - 24px);
    max-width: 420px;
    white-space: normal;
    text-align: center;
    bottom: 72px;
  }

  .wa-float {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 14px;
  }

  .ig-float {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 70px;
  }

  .cart-float {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 126px;
  }
}

@media (max-width: 560px) {
  .logo-text strong {
    max-width: 112px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .account-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .admin-panel {
    width: 100vw;
  }

  .admin-head {
    padding-inline: 14px;
  }

  .admin-section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-section-head .refresh-btn,
  #seedDemoProductsBtn {
    margin-left: 0 !important;
  }

  .order-head,
  .review-card-header,
  .admin-review-card .arc-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 6px;
    padding: 7px 8px;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }

  .logo-text strong {
    max-width: 88px;
    font-size: 0.8rem;
  }

  .icon-action,
  .theme-toggle,
  .nav-hamburger {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .header-actions {
    gap: 3px;
  }

  .shop-main {
    padding: 0.75rem 0.55rem 2rem;
  }

  .cat-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .cat-pill {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .prod-grid {
    gap: 8px;
  }

  .prod-body {
    padding: 9px;
  }

  .prod-card-btns {
    gap: 5px;
  }

  .add-to-cart-btn,
  .buy-now-btn {
    font-size: 0.7rem;
    padding: 7px 3px;
  }

  .footer-grid {
    gap: 18px;
  }

  .drawer-head,
  .drawer-body,
  .drawer-footer {
    padding-inline: 14px;
  }
}

@media (max-width: 340px) {
  .logo-text {
    display: none;
  }

  .prod-grid {
    grid-template-columns: 1fr;
  }
}

/* Banner Zoom Modal Styles */
.zoom-modal {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(10, 13, 20, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  touch-action: none;
}

.zoom-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#zoomModalImg {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  transition: transform 0.1s ease-out;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none; /* crucial to prevent native browser scrolling/pinching during gestures */
}

.zoom-close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
  transition: color 0.2s;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.zoom-close-btn:hover {
  color: var(--teal);
}

/* ─── Admin Variants Builder ─────────────────────────────── */
.admin-variants-section {
  background: var(--surface); border: 1.5px dashed var(--border);
  border-radius: 10px; padding: 14px 16px; margin-top: 14px;
}
.admin-variants-label {
  font-size: 0.83rem; font-weight: 700; color: var(--ink); display: block;
}
.admin-variant-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.admin-variant-row input {
  flex: 1; min-width: 80px; padding: 7px 10px;
  border: 1.5px solid var(--border); border-radius: 7px;
  font-size: 0.83rem; background: var(--white); color: var(--ink);
  outline: none; transition: border-color 0.2s;
}
.admin-variant-row input:focus { border-color: var(--p); }
.admin-variant-row input::placeholder { color: var(--muted); }
.admin-variant-row-label {
  font-size: 0.75rem; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}
.admin-remove-variant-btn {
  background: none; border: none; color: var(--red); font-size: 1.1rem;
  cursor: pointer; padding: 2px 6px; border-radius: 4px;
  transition: background 0.15s;
}
.admin-remove-variant-btn:hover { background: #fee2e2; }
.admin-add-variant-btn {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 8px; border: 1.5px dashed var(--p);
  background: none; color: var(--p); font-size: 0.8rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
}
.admin-add-variant-btn:hover { background: #f0fdfb; }

/* ─── Product Modal Variant Selector ─────────────────────── */
.modal-variants-block {
  margin: 14px 0 6px;
}
.modal-variants-title {
  font-size: 0.82rem; font-weight: 700; color: var(--muted);
  margin-bottom: 8px; letter-spacing: 0.02em; text-transform: uppercase;
}
.modal-variants-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.variant-chip {
  padding: 7px 16px; border-radius: 8px; border: 2px solid var(--border);
  background: var(--white); font-size: 0.85rem; font-weight: 700;
  color: var(--ink); cursor: pointer; transition: all 0.18s;
  line-height: 1.2;
}
.variant-chip span.chip-price {
  display: block; font-size: 0.72rem; font-weight: 600;
  color: var(--muted); margin-top: 2px;
}
.variant-chip:hover {
  border-color: var(--p); color: var(--p);
}
.variant-chip.selected {
  border-color: var(--p); background: var(--p); color: #fff;
}
.variant-chip.selected span.chip-price { color: rgba(255,255,255,0.8); }

/* Variant Row Image Upload Styling */
.vr-image-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}
.vr-upload-trigger-btn {
  transition: all 0.2s;
}
.vr-upload-trigger-btn:hover {
  background: var(--p) !important;
  color: white !important;
  border-color: var(--p) !important;
}

/* ─── Catalog Mode / Store Cart Toggle ────────────────── */
body.cart-disabled #cartBtn,
body.cart-disabled #footerCartBtn,
body.cart-disabled .add-to-cart-btn,
body.cart-disabled #modalAddBtn {
  display: none !important;
}
body.cart-disabled .prod-card-btns {
  grid-template-columns: 1fr;
}
