@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand accent */
  --accent: #35030F;
  --accent-dark: #35030F;
  --accent-light: #35030F;
  --accent-tint: rgba(168,8,31,0.16);

  /* Cherry + sand — the two hues the whole gradient is built from */
  --sand: #E4CDA9;
  --sand-deep: #C9A97C;
  --cherry-900: #35030F;
  --cherry-800: #35030F;
  --cherry-700: #35030F;
  --cherry-600: #35030F;

  --bg: #EDE1CE;

  /* Light theme text */
  --ink: #241009;
--ink-soft: #ffffff;
  --ink-faint: #FFFFFF;

  /* Light chip fill, and the same tone reused as text on solid-dark surfaces */
  --paper: #FBF3EA;

  --olive: #5C6B3F;
  --rust: #9C3B27;

  --line: rgba(36,16,9,0.10);
  --line-strong: rgba(36,16,9,0.18);

  /* Glass system — light frost with a glossy diagonal sheen and a
     bright top edge, like light catching real glass */
  --glass-shine: linear-gradient(135deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.08) 38%, rgba(255,255,255,0) 62%);
  --glass-bg: rgba(255,255,255,0.24);
  --glass-bg-strong: rgba(255,255,255,0.38);
  --glass-border: rgba(255,255,255,0.5);
  --glass-shadow: 0 8px 32px rgba(36,16,9,0.12), inset 0 1px 0 rgba(255,255,255,0.65), inset 0 -14px 24px -18px rgba(36,16,9,0.15);
  --solid-dark: rgba(90,5,26,0.92);
  --blur: 24px;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(36,16,9,0.14);
  --shadow-md: 0 8px 24px rgba(36,16,9,0.14);
  --shadow-lg: 0 20px 48px rgba(36,16,9,0.2);
  --shadow-float: 0 4px 14px rgba(36,16,9,0.10), 0 1px 2px rgba(36,16,9,0.08);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  min-height: 100vh;
    display: flex;              /* ← این خط جدید */
  flex-direction: column;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: var(--ink);
  direction: rtl;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* ~60% cherry / 40% bright sand — cherry dominant but no dark corners */
  background:
    radial-gradient(ellipse 900px 700px at 8% 0%, rgb(69, 27, 27) 0%, transparent 45%),
    radial-gradient(ellipse 1100px 900px at 90% 10%, rgb(68, 23, 27) 0%, transparent 55%),
    radial-gradient(ellipse 1600px 1300px at 55% 100%, rgba(90, 5, 26, 0.3) 0%, transparent 68%),
    linear-gradient(160deg, rgb(69, 27, 27) 0%, rgba(228,205,169,0.3) 100%),
    var(--bg);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -0.01em; margin: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}


.p-white{
  !important;
  color: white;
}



.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}



.social-icon-img {
  width: 30px;
  height: 30px;
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
  display: block;
}















/* ---------- Live Search Dropdown ---------- */
.header-search-wrap {
  position: relative;
}

.live-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  background: var(--glass-shine), var(--glass-bg-strong);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
  z-index: 15;
}

.live-search-results.is-open {
  display: block;
}

.live-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .15s var(--ease);
}

.live-search-item:last-child {
  border-bottom: none;
}

.live-search-item:hover {
  background: rgba(255, 255, 255, 0.35);
}

.live-search-item-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 6px rgba(36, 16, 9, 0.12);
}

.live-search-item-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
  flex: 1;
}

.live-search-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-search-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.live-search-item-category {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.live-search-item-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 12.5px;
}

.live-search-stock-out {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--rust);
  background: rgba(156, 59, 39, 0.12);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  margin-inline-start: auto;
  flex-shrink: 0;
}

.live-search-loading,
.live-search-empty {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
}

@media (max-width: 860px) {
  .live-search-results {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    max-height: 60vh;
  }
}






/* ---------- Product detail: gallery ---------- */
.gallery {
  flex: 1 1 380px;
  position: relative;
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
  display: block;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass-shine), var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity .15s var(--ease);
}

.gallery .stock-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 3;
}

.gallery .wishlist-btn {
  top: 14px;
  inset-inline-end: 14px;
  z-index: 3;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s var(--ease), transform .15s var(--ease-spring);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-tint);
}

/* ---------- Product detail: info panel ---------- */
.price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 16px;
  flex-wrap: wrap;
}

.stock-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
}
.stock-inline.ok { color: var(--olive); }
.stock-inline svg { width: 15px; height: 15px; }

.max-stock-note {
  color: var(--ink-faint);
  font-size: 13px;
}

.product-detail .desc {
  line-height: 1.9;
  margin-bottom: 28px;
}

/* ---------- Mobile sticky buy bar ---------- */
.mobile-buy-bar {
  display: none;
}

@media (max-width: 860px) {
  .product-detail .add-to-cart-form .btn-block#addToCartBtn { display: none; }

  .mobile-buy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 25;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    background: var(--glass-shine), var(--glass-bg-strong);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -4px 20px rgba(36,16,9,0.12);
  }
  .mobile-buy-price {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
  }
  .mobile-buy-price span { font-size: 17px; font-weight: 800; color: var(--accent); }
  .mobile-buy-price small { font-size: 11px; color: var(--ink-soft); }
  .mobile-buy-bar .btn { flex-shrink: 0; padding: 12px 26px; }

  body { padding-bottom: 76px; }
}









/* ---------- Header (glass) ---------- */
.site-header {
  background: var(--glass-shine), var(--glass-bg-strong);
  backdrop-filter: saturate(180%) blur(var(--blur));
  -webkit-backdrop-filter: saturate(180%) blur(var(--blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.3);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 16px;
}
.header-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}
.header-row-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-top: 1px solid var(--glass-border);
  padding-top: 10px;
  margin-top: 2px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
.logo .tag-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.6), var(--shadow-sm);
}
.logo small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-soft);
}
.header-search-wrap {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
  max-width: 460px;
}

.header-search {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-shine), var(--glass-bg);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 16px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.header-search input {
  flex: 1;
  min-width: 0;
  border: none; background: transparent; outline: none;
  font-size: 14px; color: var(--ink);
  font-family: inherit;
  padding: 8px 0;
}
.header-search input::placeholder { color: var(--ink-faint); }
.header-search button {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 32%; border: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%), var(--accent);
  color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(168,8,31,0.35), inset 0 1px 1px rgba(255,255,255,0.4);
  transition: transform .2s var(--ease-spring), background .15s var(--ease);
}
.header-search button svg { width: 16px; height: 16px; }
.header-search button:hover { transform: scale(1.08); background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%), var(--accent-dark); }

/* Circular glass icon buttons (account / cart / etc.) */
.header-icons { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn-circle {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 32%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.15) 45%, rgba(255,255,255,0.5) 100%),
    linear-gradient(160deg, rgba(255,214,224,0.55) 0%, rgba(200,220,255,0.5) 35%, rgba(255,245,214,0.5) 65%, rgba(220,255,240,0.5) 100%),
    var(--glass-bg-strong);
  backdrop-filter: blur(var(--blur)) saturate(160%); -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 6px 16px rgba(36,16,9,0.16), inset 0 1px 1px rgba(255,255,255,0.9), inset 0 -6px 10px -6px rgba(36,16,9,0.18);
  color: var(--ink);
  transition: transform .2s var(--ease-spring), box-shadow .2s var(--ease);
}
.icon-btn-circle svg { width: 19px; height: 19px; position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(36,16,9,0.15)); }
.icon-btn-circle:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 22px rgba(36,16,9,0.2), inset 0 1px 1px rgba(255,255,255,0.9), inset 0 -6px 10px -6px rgba(36,16,9,0.18); }
.icon-btn-circle .badge-dot {
  position: absolute; top: -4px; left: -4px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--paper), 0 2px 6px rgba(36,16,9,0.25);
  z-index: 2;
}

.main-nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: center; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color .15s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-shine), var(--solid-dark);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  color: var(--paper) !important;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600 !important;
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.cart-link:hover { background: var(--glass-shine), var(--accent); transform: translateY(-1px); }
.cart-count {
  background: var(--paper);
  color: var(--cherry-900);
  font-weight: 800;
  font-size: 11px;
  border-radius: 50%;
  width: 19px; height: 19px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Mobile bottom nav (glass, fixed) ---------- */
.mobile-nav {
  display: none;
}
@media (max-width: 860px) {
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 20;
    background: var(--glass-shine), var(--glass-bg-strong);
    backdrop-filter: saturate(180%) blur(var(--blur));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur));
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -4px 20px rgba(36,16,9,0.10);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
  }
  .mobile-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 600; color: var(--ink-soft);
    padding: 4px 10px; border-radius: var(--radius-sm);
    position: relative;
    transition: color .15s var(--ease);
  }
  .mobile-nav a .mnav-icon {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 30%;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.15) 45%, rgba(255,255,255,0.5) 100%),
      linear-gradient(160deg, rgba(255,214,224,0.55) 0%, rgba(200,220,255,0.5) 35%, rgba(255,245,214,0.5) 65%, rgba(220,255,240,0.5) 100%),
      var(--glass-bg-strong);
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow: 0 3px 8px rgba(36,16,9,0.14), inset 0 1px 1px rgba(255,255,255,0.9);
    transition: transform .2s var(--ease-spring);
  }
  .mobile-nav a .mnav-icon svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 1px rgba(36,16,9,0.12)); }
  .mobile-nav a.active .mnav-icon { transform: translateY(-2px) scale(1.06); box-shadow: 0 6px 14px rgba(36,16,9,0.2), inset 0 1px 1px rgba(255,255,255,0.9); }
  .mobile-nav a.active { color: var(--accent); }
  .mobile-nav a .mnav-dot {
    position: absolute; top: -2px; left: 50%; transform: translateX(10px);
    background: var(--accent); color: #fff; font-size: 9px; font-weight: 800;
    width: 15px; height: 15px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  body { padding-bottom: 72px; }
.header-search-wrap { order: 3; flex-basis: 100%; max-width: none; }
  .header-row-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 84px 24px;
}
.hero-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 56px; flex-wrap: wrap; }
.hero-text { flex: 1 1 420px; }
.hero h1 {
  font-size: 44px; font-weight: 800; margin: 0 0 18px; color: var(--ink);
  letter-spacing: -0.02em;
}
.hero p { font-size: 17px; color: white; max-width: 460px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-logo { flex: 0 0 200px; display: flex; justify-content: center; }
.hero-logo img {
  width: 200px; height: 200px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.7), 0 0 0 9px var(--accent), var(--shadow-lg);
}





.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}




.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  position: relative; overflow: hidden;
  transition: transform .15s var(--ease), background .15s var(--ease), opacity .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
/* A glossy highlight across the top half — the solid CTA still gets
   the same glass-catching-light treatment as the frosted panels. */
.btn::before {
  content: '';
  position: absolute; inset: 0 0 50% 0;
  background: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0));
  pointer-events: none;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(168,8,31,0.35), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  border: 1px solid var(--glass-border); color: var(--ink);
  background: var(--glass-shine), var(--glass-bg);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
}
.btn-outline:hover { background: var(--glass-shine), var(--glass-bg-strong); border-color: var(--ink-faint); }
.btn-dark {
  background: var(--glass-shine), var(--solid-dark); color: var(--paper);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
}
.btn-dark:hover { background: var(--glass-shine), var(--accent); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- Category strip ---------- */
.cat-strip { padding: 56px 0 8px; }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px;
  flex-wrap: wrap; gap: 10px;
}
.section-title h2 { font-size: 22px; font-weight: 700; color: var(--ink); }
.section-title a { font-size: 14px; font-weight: 600; color: var(--accent); }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card {
  background: var(--glass-shine), var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius); padding: 30px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.cat-icon-circle {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 30%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.15) 45%, rgba(255,255,255,0.5) 100%),
    linear-gradient(160deg, rgba(255,214,224,0.55) 0%, rgba(200,220,255,0.5) 35%, rgba(255,245,214,0.5) 65%, rgba(220,255,240,0.5) 100%),
    var(--glass-bg-strong);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 6px 16px rgba(36,16,9,0.16), inset 0 1px 1px rgba(255,255,255,0.9), inset 0 -6px 10px -6px rgba(36,16,9,0.18);
  margin-bottom: 10px;
  transition: transform .2s var(--ease-spring), box-shadow .2s var(--ease);
}
.cat-card:hover .cat-icon-circle {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 22px rgba(36,16,9,0.2), inset 0 1px 1px rgba(255,255,255,0.9), inset 0 -6px 10px -6px rgba(36,16,9,0.18);
}
.cat-icon-circle .cat-icon {
  width: 26px; height: 26px; margin-bottom: 0;
  filter: drop-shadow(0 1px 1px rgba(36,16,9,0.15));
}

.cat-card:hover { background: var(--glass-shine), var(--glass-bg-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--accent); }
.cat-card .cat-icon { width: 34px; height: 34px; margin-bottom: 8px; }
.cat-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.cat-card span { font-size: 13px; color: var(--ink-soft); }

/* ---------- Filters ---------- */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
}
.filter-chip {
  padding: 9px 18px; border-radius: var(--radius-pill); border: 1px solid var(--glass-border);
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  background: var(--glass-shine), var(--glass-bg);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.filter-chip.active, .filter-chip:hover { background: var(--glass-shine), var(--accent); color: #fff; border-color: transparent; }

/* ==========================================================
   Product Card — single source of truth (previously duplicated
   twice in this file, which is why the image was rendering
   small/off-center: the second, older definition further down
   was winning and applying `padding: 30px` + `width: 58%` to
   the thumbnail image).
   ========================================================== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px 0 64px; }

.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass-shine), var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.product-card:hover {
  background: var(--glass-shine), var(--glass-bg-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent);
}

/* Thumbnail: full-bleed, fixed aspect ratio, image always fills it */

.thumb-slides { position: absolute; inset: 0; }
.thumb-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.thumb-slides img.active { opacity: 1; }

.thumb-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}
.thumb-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: background .2s var(--ease), width .2s var(--ease);
}
.thumb-dots span.active {
  background: #fff;
  width: 14px;
  border-radius: 3px;
}




.thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity .2s var(--ease), background .15s var(--ease), transform .2s var(--ease-spring);
}
.thumb-nav svg { width: 15px; height: 15px; }
.thumb-nav.prev { inset-inline-start: 8px; }
.thumb-nav.next { inset-inline-end: 8px; }

.thumb-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }

/* روی دسکتاپ فقط با هاور روی کارت دیده بشن */
.product-card:hover .thumb-nav { opacity: 1; }

/* روی موبایل/تاچ همیشه دیده بشن چون هاور معنی نداره */
@media (hover: none) {
  .thumb-nav { opacity: 1; }
}


.thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(255,255,255,0.55);
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;   /* اولویت با بالای عکس (بند و دسته کیف) */
  transition: transform .5s var(--ease);
}

.product-card:hover .thumb img { transform: scale(1.045); }

  .thumb::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(36,16,9,0.16) 0%, rgba(36,16,9,0) 100%);
  pointer-events: none;
}


  .thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(228,205,169,0.10) 0%, rgba(53,3,15,0.06) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.no-image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
  z-index: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0 64px;
}


@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; gap: 20px; }
}


.stock-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--olive);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.stock-badge.low { color: var(--rust); }
.stock-badge.out { color: var(--ink-faint); }

/* Wishlist heart toggle (client-side only, no persistence) */
.wishlist-btn {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
}
.wishlist-btn input { display: none; }
.wishlist-btn label {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 32%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.15) 45%, rgba(255,255,255,0.5) 100%),
    linear-gradient(160deg, rgba(255,214,224,0.55) 0%, rgba(200,220,255,0.5) 35%, rgba(255,245,214,0.5) 65%, rgba(220,255,240,0.5) 100%),
    rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 4px 10px rgba(36,16,9,0.16), inset 0 1px 1px rgba(255,255,255,0.9);
  cursor: pointer;
  transition: transform .2s var(--ease-spring), box-shadow .2s var(--ease);
}
.wishlist-btn label:hover { transform: scale(1.1); }
.wishlist-btn svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 1px rgba(36,16,9,0.12)); }
.wishlist-btn .heart-outline { display: block; }
.wishlist-btn .heart-filled { display: none; fill: var(--accent); stroke: var(--accent); }
.wishlist-btn input:checked + label .heart-outline { display: none; }
.wishlist-btn input:checked + label .heart-filled { display: block; }
.wishlist-btn input:checked + label { animation: heart-pop .3s var(--ease-spring); }
@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

.info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 18px;
  flex: 1;
}

.info-top { display: flex; flex-direction: column; gap: 5px; }

.cat-label {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.info h4 a { color: inherit; text-decoration: none; }

.short-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.info-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.price {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.price small {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-inline-start: 3px;
}

.quick-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(53,3,15,0.28), inset 0 1px 1px rgba(255,255,255,0.25);
  opacity: 0;
  transform: scale(0.8) translateY(4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease-spring), background .15s var(--ease);
}
.quick-add svg { width: 16px; height: 16px; }
.quick-add:hover { background: var(--accent-dark); transform: scale(1.06); }


.quick-add.added {
  animation: quick-add-pop 0.5s var(--ease-spring);
  background: var(--olive);
}
@keyframes quick-add-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35) rotate(-8deg); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.product-card:hover .quick-add {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@media (hover: none) {
  .quick-add { opacity: 1; transform: scale(1) translateY(0); }
}
.info h4 a { color: inherit; text-decoration: none; }
.price { font-size: 16px; font-weight: 800; color: var(--accent); margin-top: auto; }
.price small { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
/* ========================================================== */

/* ---------- Product detail ---------- */
.product-detail { display: flex; gap: 56px; padding: 52px 0 76px; flex-wrap: wrap; }

.product-detail .info { flex: 1 1 380px; }
.product-detail .cat-label { font-size: 13px; color: var(--accent); font-weight: 700; }
.product-detail h1 { font-size: 30px; font-weight: 800; margin: 8px 0 16px; color: var(--ink); }
.product-detail .price { font-size: 24px; font-weight: 800; color: var(--accent); margin-bottom: 18px; }
.product-detail .desc { color: var(--ink-soft); margin-bottom: 26px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.qty-box {
  display: flex; align-items: center; border-radius: var(--radius-pill); overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-shine), var(--glass-bg);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
}
.qty-box button { width: 38px; height: 38px; background: transparent; border: none; font-size: 18px; color: var(--ink); }
.qty-box input { width: 46px; text-align: center; border: none; border-inline: 1px solid var(--glass-border); height: 38px; background: transparent; color: var(--ink); }

/* ---------- Cart ---------- */
.cart-page { padding: 52px 0 76px; display: flex; gap: 40px; flex-wrap: wrap; }
.cart-items { flex: 2 1 500px; }
.cart-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.cart-row img { width: 58px; height: 58px; object-fit: contain; background: rgba(255,255,255,0.55); border-radius: var(--radius-sm); padding: 8px; }
.cart-row .name { font-weight: 600; flex: 1; color: var(--ink); }
.cart-row .unit-price { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.cart-summary {
  flex: 1 1 300px;
  background: var(--glass-shine), var(--glass-bg-strong);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
  padding: 26px; height: fit-content;
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; color: var(--ink-soft); }
.summary-row.total { font-size: 18px; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 14px; }
.empty-state { text-align: center; padding: 64px 20px; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--ink);
  background: var(--glass-shine), var(--glass-bg);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-faint); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.checkout-grid { display: flex; gap: 40px; padding: 52px 0 76px; flex-wrap: wrap; }
.checkout-form {
  flex: 2 1 460px;
  background: var(--glass-shine), var(--glass-bg-strong);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius); padding: 30px;
}
.checkout-form h3 { font-weight: 700; margin-bottom: 18px; color: var(--ink); }
.discount-note {
  font-size: 13px; color: var(--ink-soft); border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: 11px 14px; margin-bottom: 22px; background: var(--glass-bg);
}

/* ---------- Order confirmation ---------- */
.confirm-box { max-width: 560px; margin: 70px auto; text-align: center; padding: 0 24px 64px; }
.confirm-stamp {
  width: 80px; height: 80px; border-radius: 50%; background: var(--olive); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; font-size: 34px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.4);
}
.order-code {
  display: inline-block; padding: 10px 22px; border-radius: var(--radius-pill); font-weight: 800; margin: 16px 0 26px;
  background: var(--glass-shine), var(--glass-bg-strong);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  color: var(--ink);
}

/* ---------- Footer ---------- */
.page-main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

.site-footer {
  background: var(--glass-shine), var(--solid-dark);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  color: var(--paper); margin-top: 56px; padding: 40px 24px 24px;
}
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-inner p { opacity: 0.65; font-size: 13px; margin: 4px 0; }
.footer-brand { font-size: 18px; font-weight: 700; margin-bottom: 8px; }

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.alert-error { background: #FBE4DF; color: #8A2C1B; }
.alert-success { background: #E8EDDD; color: #4C5934; }

/* ---------- Admin ---------- */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; padding: 28px 18px; flex-shrink: 0;
  background: var(--glass-shine), var(--solid-dark);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border-inline-start: 1px solid var(--glass-border);
  color: var(--paper);
}
.admin-sidebar .brand { font-size: 16px; font-weight: 700; margin-bottom: 30px; display:block; }
.admin-sidebar a {
  display: block; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 4px; color: var(--paper); opacity: .7;
  transition: opacity .15s var(--ease), background .15s var(--ease);
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.12); opacity: 1; }
.admin-sidebar .logout-link { margin-top: 28px; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; color: var(--sand); }
.admin-main { flex: 1; padding: 34px 42px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { font-size: 21px; font-weight: 700; color: var(--ink); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--glass-shine), var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius); padding: 20px;
}
.stat-card .label { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.stat-card .value { font-size: 22px; font-weight: 800; color: var(--ink); }
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.admin-table {
  width: 100%; min-width: 640px; border-collapse: collapse;
  background: var(--glass-shine), var(--glass-bg);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
}
.admin-table th, .admin-table td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.admin-table th { background: rgba(228,205,169,0.55); font-weight: 600; color: var(--ink); }
.admin-table tr:last-child td { border-bottom: none; }
.badge { padding: 4px 11px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; }
.badge-pending { background: #F3E3C0; color: #8A6215; }
.badge-confirmed { background: #DCEAD1; color: #4C5934; }
.badge-shipped { background: #D6E4F0; color: #2C5C8A; }
.badge-cancelled { background: #FBE4DF; color: #8A2C1B; }
.admin-card {
  background: var(--glass-shine), var(--glass-bg-strong);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius); padding: 26px; max-width: 640px;
}
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box {
  background: var(--glass-shine), var(--glass-bg-strong);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  padding: 38px; border-radius: var(--radius); width: 100%; max-width: 380px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.login-box h2 { margin-bottom: 6px; color: var(--ink); font-size: 19px; font-weight: 700; }
.action-row { display: flex; gap: 10px; margin-top: 20px; }
.icon-btn {
  background: var(--glass-shine), var(--glass-bg); border: 1px solid var(--glass-border); padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: 13px; color: var(--ink);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
}
.icon-btn.danger { color: var(--rust); border-color: var(--rust); }

@media (max-width: 860px) {
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 20px 16px 90px; }
  .admin-topbar { align-items: flex-start; }
  .admin-topbar > .btn { width: 100%; }
  .admin-mobile-nav { display: flex; }
}
@media (max-width: 560px) {
  .cat-grid, .product-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .form-row { flex-direction: column; }
  .hero-logo { display: none; }
  .admin-card { padding: 18px; }
}







/* ---------- Color swatches (product detail) ---------- */
.color-select { margin-bottom: 24px; }
.color-select-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.color-swatch-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 62px;
  cursor: pointer;
  text-align: center;
}
.color-swatch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.swatch-box {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 32%;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 10px rgba(36,16,9,0.14), inset 0 1px 1px rgba(255,255,255,0.5);
  transition: transform .2s var(--ease-spring), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.color-swatch input:checked + .swatch-box {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint), 0 6px 14px rgba(36,16,9,0.2);
  transform: translateY(-2px) scale(1.05);
}
.color-swatch input:checked + .swatch-box::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}
.color-swatch:hover .swatch-box {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(36,16,9,0.2), inset 0 1px 1px rgba(255,255,255,0.5);
}
.color-swatch.disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.color-swatch.disabled:hover .swatch-box { transform: none; }
.swatch-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.swatch-oos {
  font-size: 10px;
  color: var(--ink-faint);
}



/* ---------- Dashboard mobile bottom nav (same visual language as the
   storefront's .mobile-nav, kept separate since the link set differs) ---------- */
.admin-mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: var(--glass-shine), var(--solid-dark);
  backdrop-filter: saturate(180%) blur(var(--blur));
  -webkit-backdrop-filter: saturate(180%) blur(var(--blur));
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}
.admin-mobile-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600; color: var(--paper); opacity: .65;
  padding: 4px 8px; border-radius: var(--radius-sm);
  transition: opacity .15s var(--ease);
}
.admin-mobile-nav a svg { width: 20px; height: 20px; }
.admin-mobile-nav a.active { opacity: 1; color: var(--sand); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }