﻿:root {
  /* از لوگوی رسمی مصرف‌شاپ: قرمز + سبز تیره */
  --bg: #f5f6f7;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --brand: #c41e2a;
  --brand-dark: #9f1721;
  --brand-soft: #fdeced;
  --green: #0b5c4b;
  --green-dark: #084539;
  --green-soft: #e7f4f0;
  --accent: #f47b20;
  --accent-soft: #fff1e6;
  --line: #e5e7eb;
  --ok: #0b5c4b;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(11,92,75,.08);
  --shadow-lg: 0 14px 40px rgba(11,92,75,.14);
  --radius: 12px;
  --radius-lg: 18px;
  --font-vazir: "Vazir", "Vazirmatn", Tahoma, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", monospace;
  --font: var(--font-vazir);
  --header-h: 72px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-vazir);
  font-feature-settings: "ss01";
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
code, kbd, pre, .font-mono, .mp-mono {
  font-family: var(--font-mono);
  font-feature-settings: normal;
}
.product-meta code {
  font-size: .88em;
  letter-spacing: 0.01em;
  direction: ltr;
  unicode-bidi: isolate;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

/* Top promo */
.promo-bar {
  background: linear-gradient(90deg, var(--green-dark), var(--green) 55%, var(--brand));
  color: #fff;
  font-size: .85rem;
  text-align: center;
  padding: .55rem 1rem;
  letter-spacing: .01em;
}
.promo-bar strong { color: #ffd7a8; }

/* Header — Digikala-like */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  min-height: var(--header-h);
  padding: .75rem 0;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: max-content;
}
.brand-lockup img.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  background: transparent;
}
.brand-lockup img.brand-mark-mobile { display: none; }
.brand-lockup .brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
}
.brand-lockup .brand-tag {
  font-size: .72rem;
  color: var(--green);
  font-weight: 600;
}

.search {
  display: flex;
  align-items: stretch;
  background: #f1f2f4;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: .2s ease;
  max-width: 420px;
  width: 100%;
}
.search:focus-within {
  background: #fff;
  border-color: #9fd5c7;
  box-shadow: 0 0 0 3px rgba(11,92,75,.1);
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: .55rem .85rem;
  outline: none;
  font-size: .9rem;
}
.search button {
  border: 0;
  cursor: pointer;
  padding: 0 .95rem;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  transition: background .2s;
}
.search button:hover { background: var(--green-dark); }

/* Shop / products listing */
.shop-page { margin: 1rem 0 2rem; }
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
  margin-bottom: 1rem;
}
.shop-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .5rem;
  flex: 1 1 220px;
  min-width: 0;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .8rem;
  font-weight: 600;
  color: #334;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.status-chip:has(input:checked) {
  background: #eef7f4;
  border-color: #b7dcd0;
  color: #1f5c4a;
}
.status-chip input {
  width: auto;
  margin: 0;
}
.shop-search {
  display: flex;
  align-items: stretch;
  flex: 1 1 220px;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.shop-search input {
  flex: 1;
  border: 0;
  padding: .5rem .75rem;
  font-size: .88rem;
  outline: none;
  background: transparent;
}
.shop-search button {
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: 0 .85rem;
  cursor: pointer;
}
.shop-sort {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
}
.shop-sort label { margin: 0; }
.shop-sort select {
  width: auto;
  min-width: 140px;
  padding: .45rem .65rem;
  font-size: .85rem;
  border-radius: 10px;
}
.shop-count { margin-inline-start: auto; font-size: .88rem; }
.shop-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.shop-filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: .55rem .65rem .75rem;
  position: sticky;
  top: .75rem;
}
.filter-acc {
  border-bottom: 1px solid var(--line);
  padding: .15rem 0;
}
.filter-acc:last-of-type { border-bottom: 0; }
.filter-acc > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: .88rem;
  padding: .55rem .2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  user-select: none;
}
.filter-acc > summary::-webkit-details-marker { display: none; }
.filter-acc > summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 700;
  font-size: 1rem;
}
.filter-acc[open] > summary::after { content: "−"; }
.filter-acc-body {
  padding: 0 .15rem .65rem;
  display: grid;
  gap: .35rem;
  max-height: 220px;
  overflow: auto;
}
.filter-radio, .filter-check {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-size: .84rem;
  color: #334;
  font-weight: 500;
  cursor: pointer;
}
.filter-radio-sub { padding-inline-start: .65rem; font-size: .8rem; opacity: .95; }
.shop-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .75rem;
}
.shop-active-filters .chip {
  display: inline-flex;
  align-items: center;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #eef7f4;
  border: 1px solid #b7dcd0;
  font-size: .78rem;
  color: #1f5c4a;
}
.filter-radio input, .filter-check input {
  width: auto;
  margin: 0;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .35rem;
  align-items: center;
}
.price-row input {
  padding: .45rem .5rem;
  font-size: .82rem;
  border-radius: 10px;
}
.filter-actions {
  display: grid;
  gap: .4rem;
  margin-top: .75rem;
}
.filter-actions .btn { width: 100%; justify-content: center; text-align: center; }
.tiny { font-size: .78rem; margin: 0; }
.shop-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: .85rem;
}
.shop-pager {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}
.shop-pager a, .shop-pager .is-current {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: .4rem .75rem;
  font-size: .85rem;
  text-decoration: none;
  color: inherit;
}
.shop-pager .is-current {
  background: #eef7f4;
  border-color: #b7dcd0;
  font-weight: 700;
}
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; }
  .search { max-width: none; }
  .shop-search { max-width: none; flex: 1 1 100%; }
  .shop-status-bar { flex: 1 1 100%; order: 3; }
  .shop-sort { order: 2; }
  .shop-count { order: 4; margin-inline-start: 0; }
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .2rem;
  min-width: max-content;
}
.action-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #3f4064;
  border: 1px solid transparent;
  transition: .15s ease;
  background: transparent;
  flex-shrink: 0;
}
.action-icon:hover {
  background: #f5f5f6;
  border-color: var(--line);
  color: var(--green-dark);
}
.action-icon.login-cta {
  width: auto;
  padding: 0 .75rem 0 .55rem;
  font-weight: 700;
  font-size: .88rem;
  color: var(--green-dark);
  background: var(--green-soft);
  border-color: #c6e4da;
}
.action-icon.login-cta:hover {
  background: #d8efe8;
}
.action-icon .action-text { line-height: 1; }
.action-icon.cart-icon { color: var(--green-dark); }
.badge-count {
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-vazir);
}
.badge-count.is-zero {
  background: #9aa0a6;
}
.account-menu { position: relative; }
.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .55rem .3rem .35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #3f4064;
  cursor: pointer;
  font: inherit;
  transition: .15s ease;
}
.account-trigger:hover,
.account-menu.is-open .account-trigger {
  border-color: #b7dcd0;
  background: var(--green-soft);
  color: var(--green-dark);
}
.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.account-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  max-width: 7.5rem;
}
.account-label {
  font-size: .68rem;
  color: var(--muted);
  font-weight: 600;
}
.account-name {
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.account-caret { opacity: .65; transition: transform .15s ease; }
.account-menu.is-open .account-caret { transform: rotate(180deg); }
.account-dropdown {
  position: absolute;
  top: calc(100% + .4rem);
  inset-inline-end: 0;
  min-width: 200px;
  padding: .4rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.account-dropdown[hidden] { display: none !important; }
.account-dropdown a,
.account-logout button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  padding: .65rem .75rem;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #2f3148;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.account-dropdown a:hover,
.account-logout button:hover {
  background: #f5f6f7;
  color: var(--green-dark);
}
.account-logout { margin: 0; border-top: 1px solid var(--line); padding-top: .2rem; margin-top: .15rem; }
.account-logout button { color: var(--brand); }
.dd-count {
  min-width: 1.25rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
}
/* legacy icon-btn kept for non-header uses */
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .85rem;
  border-radius: 12px;
  color: #3f4064;
  font-size: .92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: .15s ease;
  background: transparent;
  cursor: pointer;
}
.icon-btn:hover {
  background: #f5f5f6;
  border-color: var(--line);
}
.icon-btn.primary {
  background: var(--green);
  color: #fff;
}
.icon-btn.primary:hover { background: var(--green-dark); }

.cat-bar {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  padding: 0 0 .7rem;
  scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar a {
  white-space: nowrap;
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .86rem;
  color: #3f4064;
  font-weight: 600;
}
.cat-bar a:hover,
.cat-bar a.is-active {
  background: var(--green-soft);
  color: var(--green);
}

/* Buttons */
.btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 12px;
  padding: .75rem 1.25rem;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(196,30,42,.25);
}
.btn.secondary { background: var(--green); }
.btn.secondary:hover { background: var(--green-dark); box-shadow: 0 8px 20px rgba(11,92,75,.25); }
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.ghost:hover { border-color: #bbb; transform: none; box-shadow: none; }
.btn.small { padding: .45rem .85rem; font-size: .88rem; border-radius: 10px; }
.btn.gold,
.btn.green {
  background: var(--green);
  color: #fff;
}
.btn.gold:hover,
.btn.green:hover { background: var(--green-dark); }

/* Home banners (DB-driven slider / hero) */
.home-banner-stage {
  position: relative;
  margin: 1.25rem 0 1.75rem;
  border-radius: 22px;
  overflow: hidden;
  min-height: clamp(280px, 42vw, 420px);
  /* Dark fallback only — never flash brand green between slides */
  background: #121417;
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.home-banner-track {
  position: relative;
  min-height: clamp(280px, 42vw, 420px);
}
.home-banner-slide {
  --banner-smoke: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  /* No opacity transition — crossfade was flashing the stage background */
}
.home-banner-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.home-banner-link {
  display: block;
  position: relative;
  min-height: clamp(280px, 42vw, 420px);
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.home-banner-media {
  position: absolute;
  inset: 0;
  background: var(--banner-img) center / cover no-repeat;
}
.home-banner-media::before,
.home-banner-media::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  pointer-events: none;
  z-index: 1;
  opacity: var(--banner-smoke, 0);
  transition: opacity .25s ease;
}
/* Physical sides: green left, red right (matches brand hero look) */
.home-banner-media::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(6, 53, 44, 0.92) 0%,
    rgba(6, 53, 44, 0.72) 45%,
    transparent 100%
  );
}
.home-banner-media::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(40, 8, 12, 0.9) 0%,
    rgba(122, 24, 32, 0.55) 45%,
    transparent 100%
  );
}
.home-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  position: absolute;
}
/* HTML text overlays on clean photo backgrounds (admin-managed) */
.home-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  min-height: clamp(280px, 42vw, 420px);
  padding: clamp(1.15rem, 3.2vw, 2.4rem);
  pointer-events: none;
  color: #fff;
}
.home-banner-main {
  position: absolute;
  inset-block-start: clamp(3.25rem, 7vw, 4.5rem);
  inset-inline-end: clamp(1.15rem, 3.2vw, 2.4rem);
  max-width: min(52%, 520px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  text-align: start;
}
.home-banner-brand {
  margin-bottom: .15rem;
}
.home-banner-title {
  margin: 0;
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
  color: rgba(255,255,255,.98);
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
.home-banner-subtitle {
  margin: 0;
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  font-weight: 600;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.home-banner-kicker {
  margin: .15rem 0 0;
  font-size: clamp(.72rem, 1.35vw, .9rem);
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255,255,255,.82);
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.home-banner-features {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: clamp(1rem, 3vw, 2.2rem);
  transform: translateY(-50%);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
  max-width: 7.5rem;
}
.home-banner-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-align: center;
}
.home-banner-feature-icon {
  width: 2.35rem;
  height: 2.35rem;
  border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0,0,0,.12);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.home-banner-feature-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
.home-banner-feature-label {
  font-size: clamp(.68rem, 1.2vw, .78rem);
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
  max-width: 6.5rem;
}
.home-banner-slogan {
  position: absolute;
  inset-block-end: clamp(1.1rem, 2.8vw, 1.8rem);
  inset-inline-start: clamp(1.1rem, 3vw, 2.2rem);
  margin: 0;
  font-family: Georgia, "Times New Roman", "Segoe Script", cursive;
  font-style: italic;
  font-size: clamp(.95rem, 1.8vw, 1.25rem);
  font-weight: 500;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
  transform: rotate(-4deg);
  transform-origin: bottom right;
}
.home-banner-cta {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  padding: .45rem 1.15rem;
  border-radius: .65rem;
  font-size: .9rem;
  font-weight: 700;
  background: #c62828;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.28);
}
.home-banner-cta[data-cta-pos="top-start"],
.home-banner-cta[data-cta-pos="top-end"],
.home-banner-cta[data-cta-pos="top-center"] {
  inset-block-start: clamp(1rem, 2.8vw, 1.6rem);
}
.home-banner-cta[data-cta-pos="bottom-start"],
.home-banner-cta[data-cta-pos="bottom-end"],
.home-banner-cta[data-cta-pos="bottom-center"],
.home-banner-cta:not([data-cta-pos]) {
  inset-block-end: clamp(1rem, 2.8vw, 1.6rem);
}
.home-banner-cta[data-cta-pos="center-start"],
.home-banner-cta[data-cta-pos="center-end"],
.home-banner-cta[data-cta-pos="center"],
.home-banner-cta[data-cta-pos="middle-start"],
.home-banner-cta[data-cta-pos="middle-end"] {
  inset-block-start: 50%;
  transform: translateY(-50%);
}
.home-banner-cta[data-cta-pos="top-start"],
.home-banner-cta[data-cta-pos="center-start"],
.home-banner-cta[data-cta-pos="middle-start"],
.home-banner-cta[data-cta-pos="bottom-start"],
.home-banner-cta:not([data-cta-pos]) {
  inset-inline-start: clamp(1rem, 3vw, 2.2rem);
}
.home-banner-cta[data-cta-pos="top-end"],
.home-banner-cta[data-cta-pos="center-end"],
.home-banner-cta[data-cta-pos="middle-end"],
.home-banner-cta[data-cta-pos="bottom-end"] {
  inset-inline-end: clamp(1rem, 3vw, 2.2rem);
}
.home-banner-cta[data-cta-pos="top-center"],
.home-banner-cta[data-cta-pos="center"],
.home-banner-cta[data-cta-pos="bottom-center"] {
  inset-inline-start: 50%;
  transform: translateX(-50%);
}
.home-banner-cta[data-cta-pos="center"] {
  transform: translate(-50%, -50%);
}
/* Legacy copy block (kept for older markup safety) */
.home-banner-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: clamp(280px, 42vw, 420px);
  padding: clamp(1.5rem, 4vw, 3rem);
  gap: .85rem;
  pointer-events: none;
}
.home-banner-copy h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
  max-width: 640px;
}
.home-banner-nav {
  position: absolute;
  inset-inline: 0;
  bottom: 1rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 0 1rem;
}
.home-banner-btn {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease;
  display: grid;
  place-items: center;
  padding: 0;
}
.home-banner-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}
.home-banner-btn:hover {
  background: rgba(255,255,255,.32);
  transform: scale(1.05);
}
.home-banner-dots {
  display: flex;
  gap: .4rem;
  align-items: center;
}
.home-banner-dot {
  width: .55rem;
  height: .55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: width .25s ease, background .25s ease;
}
.home-banner-dot.is-active {
  width: 1.35rem;
  background: #fff;
}
@media (max-width: 640px) {
  .home-banner-stage,
  .home-banner-link,
  .home-banner-overlay,
  .home-banner-copy { min-height: 240px; }
  .home-banner-nav { bottom: .65rem; }
  .home-banner-main {
    inset-block-start: 3rem;
    max-width: min(68%, 280px);
  }
  .home-banner-features {
    gap: .65rem;
    max-width: 5.5rem;
  }
  .home-banner-feature-icon {
    width: 1.9rem;
    height: 1.9rem;
  }
  .home-banner-feature-label {
    font-size: .62rem;
    max-width: 5rem;
  }
  .home-banner-kicker {
    white-space: normal;
  }
  .home-banner-slogan {
    font-size: .82rem;
  }
}

/* Hero — brand first, one composition (fallback when no DB banners) */
.hero {
  position: relative;
  margin: 1.25rem 0 1.75rem;
  border-radius: 22px;
  overflow: hidden;
  min-height: clamp(280px, 42vw, 420px);
  display: grid;
  align-items: end;
  background:
    radial-gradient(ellipse 70% 80% at 90% 15%, rgba(196,30,42,.45), transparent 55%),
    radial-gradient(ellipse 55% 65% at 8% 85%, rgba(11,92,75,.5), transparent 50%),
    linear-gradient(125deg, #06352c 0%, #0b5c4b 38%, #7a1820 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 640px;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}
.hero-brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  object-fit: cover;
}
.hero-brand span {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.hero h1 {
  margin: 0 0 .65rem;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  color: rgba(255,255,255,.92);
}
.hero p {
  margin: 0 0 1.35rem;
  color: rgba(255,255,255,.72);
  font-size: 1.02rem;
  max-width: 36ch;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: .65rem; }

/* Stories */
.stories {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: .25rem 0 1.25rem;
  scrollbar-width: none;
}
.stories::-webkit-scrollbar { display: none; }
.story {
  width: 78px;
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}
.story .ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2px;
  margin: 0 auto .4rem;
  background: linear-gradient(135deg, var(--brand), var(--green));
}
.story .ring span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff center/cover no-repeat;
  border: 2px solid #fff;
}

/* Sections */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.75rem 0 1rem;
}
.section-title h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-title h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--green));
}
.section-title a {
  color: var(--green);
  font-weight: 700;
  font-size: .9rem;
}

/* Eways-style horizontal product rails */
.product-rail {
  margin: 1.35rem 0 1.75rem;
  font-family: var(--font-vazir);
}
.product-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #f0f0f2;
  border-radius: 4px;
  padding: .7rem 1rem;
  margin-bottom: .85rem;
}
.product-rail-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #222;
  letter-spacing: -.01em;
}
.product-rail-all {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: #555;
  font-weight: 700;
  font-size: .88rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s ease;
}
.product-rail-all:hover { color: var(--brand, #e11d48); }
.product-rail-all-ico {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
}
.product-rail-all-ico svg {
  width: 1rem;
  height: 1rem;
  display: block;
}
.product-rail-body {
  position: relative;
}
.product-rail-track {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: .35rem .15rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d0d0d4 transparent;
}
.product-rail-track::-webkit-scrollbar { height: 6px; }
.product-rail-track::-webkit-scrollbar-thumb {
  background: #d0d0d4;
  border-radius: 999px;
}
.product-rail-item {
  flex: 0 0 auto;
  width: min(200px, 72vw);
  scroll-snap-align: start;
}
.product-rail-item .card {
  height: 100%;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: none;
}
.product-rail-item .card:hover {
  transform: none;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  border-color: #e5e5e8;
}
.product-rail-item .card .thumb {
  padding: .85rem;
  background: #fff;
}
.product-rail-item .card .thumb img { max-height: 140px; }
.product-rail-item .card .body { padding: .65rem .8rem 1rem; }
.product-rail-item .card .name {
  font-size: .86rem;
  min-height: 2.5em;
  font-weight: 600;
}
.product-rail-item .badge.discount {
  top: .5rem;
  right: .5rem;
  bottom: auto;
  left: auto;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: .72rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(225, 29, 72, .25);
}
.product-rail-item .badge.hot,
.product-rail-item .badge.amazing {
  top: .5rem;
  right: .5rem;
  bottom: auto;
}
.product-rail-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid #e5e5e8;
  background: rgba(255,255,255,.92);
  color: #444;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: background .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.product-rail-nav svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}
.product-rail-nav:hover {
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.product-rail-nav.is-prev { inset-inline-end: -.35rem; }
.product-rail-nav.is-next { inset-inline-start: -.35rem; }
.product-rail-nav.is-disabled,
.product-rail-nav:disabled {
  opacity: .35;
  pointer-events: none;
}
.product-rail-empty {
  padding: .5rem .25rem 1rem;
}
@media (max-width: 720px) {
  .product-rail-head { padding: .6rem .85rem; }
  .product-rail-title { font-size: .98rem; }
  .product-rail-nav { display: none; }
  .product-rail-item { width: min(168px, 58vw); }
}

/* Product grid / cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .85rem;
}
.card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #eee;
}
.card .thumb {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #fafafa, #f3f3f4);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.card .thumb img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
  transition: transform .35s ease;
}
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: .85rem 1rem 1.1rem; }
.card-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
  margin: .35rem 0 .15rem;
}
.card-color-dot {
  width: .72rem;
  height: .72rem;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  flex: 0 0 auto;
}
.card .name {
  font-weight: 700;
  font-size: .92rem;
  min-height: 2.7em;
  line-height: 1.45;
  color: #23254e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price {
  color: var(--ink);
  font-weight: 800;
  margin-top: .55rem;
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: .35rem;
  flex-wrap: wrap;
}
.price .unit { font-size: .78rem; font-weight: 600; color: var(--muted); }
.price .old {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
  font-size: .85rem;
  order: -1;
}
.price .sale { font-weight: 800; }
.badge {
  position: absolute;
  top: .65rem;
  right: .65rem;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  padding: .2rem .55rem;
  font-size: .72rem;
  font-weight: 800;
  z-index: 2;
}
.badge.amazing {
  background: var(--accent);
  color: #fff;
}
.badge.hot {
  background: #ea580c;
  color: #fff;
}
.badge.discount {
  background: #e11d48;
  color: #fff;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* Panels / forms */
.flash {
  background: #e8f8ef;
  color: #0d6832;
  border: 1px solid #b7ebc9;
  padding: .85rem 1.1rem;
  border-radius: 12px;
  margin: 1rem 0;
}
.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: .85rem 1.1rem;
  border-radius: 12px;
  margin: 1rem 0;
}
.layout-2 {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.panel h1, .panel h2, .panel h3 { margin-top: 0; }
label { display: block; margin: .75rem 0 .35rem; color: var(--muted); font-size: .88rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .9rem;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #8ecdbc;
  box-shadow: 0 0 0 3px rgba(11,92,75,.12);
}
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: right;
  padding: .75rem .5rem;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
th { color: var(--muted); font-weight: 700; font-size: .82rem; }

.product-gallery {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-height: 360px;
  z-index: 2;
  overflow: visible;
}
.gallery-stage {
  position: relative;
  overflow: visible;
}
.gallery-main {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  background: linear-gradient(180deg, #fbfdfc, #f3f7f5);
  border-radius: 14px;
  padding: 1rem;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-main img,
.product-gallery .gallery-main img {
  max-height: 340px;
  max-width: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.gallery-zoom-lens {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  pointer-events: none;
  background: rgba(239, 68, 68, 0.28);
  border: 1px solid rgba(220, 38, 38, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  z-index: 3;
  will-change: transform;
}
.gallery-zoom-result {
  position: absolute;
  top: 0;
  /* Default RTL Digikala: open toward buy box (physical left of gallery). JS may flip. */
  left: calc(-1 * min(420px, 92vw) - 14px);
  right: auto;
  width: 400px;
  height: 400px;
  background-color: #fff;
  background-repeat: no-repeat;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 40, 32, 0.18);
  z-index: 30;
  pointer-events: none;
}
.product-detail { overflow: visible; }
.product-gallery.is-zooming { z-index: 40; }
.layout-2.product-detail { position: relative; z-index: 1; }
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.gallery-thumb {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .25rem;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gallery-thumb img { max-height: 60px; max-width: 60px; object-fit: contain; }
.gallery-thumb.is-active {
  border-color: var(--brand, #0b5c4b);
  box-shadow: 0 0 0 2px rgba(11,92,75,.15);
}

/* Product gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: var(--font-vazir);
}
.gallery-lightbox[hidden] { display: none !important; }
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 16, 0.72);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.gallery-lightbox-close {
  position: absolute;
  top: .75rem;
  inset-inline-start: .75rem;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, transform .15s;
}
.gallery-lightbox-close:hover {
  background: #fff;
  transform: scale(1.04);
}
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, opacity .15s, transform .15s;
}
.gallery-lightbox-nav:hover {
  background: #fff;
  transform: translateY(-70%) scale(1.05);
}
.gallery-lightbox-nav:disabled {
  opacity: .35;
  cursor: default;
  transform: translateY(-70%);
}
/* RTL: prev (previous index) sits on the right; next on the left */
.gallery-lightbox-nav.is-prev { inset-inline-end: .85rem; }
.gallery-lightbox-nav.is-next { inset-inline-start: .85rem; }
.gallery-lightbox-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 3.25rem 3.5rem 1rem;
  background: linear-gradient(180deg, #f8faf9, #eef3f1);
  touch-action: pan-y;
  user-select: none;
}
.gallery-lightbox-stage img {
  max-width: 100%;
  max-height: min(62vh, 560px);
  width: auto;
  height: auto;
  object-fit: contain;
  -webkit-user-drag: none;
}
.gallery-lightbox-footer {
  padding: .85rem 1rem 1.1rem;
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  align-items: center;
}
.gallery-lightbox-counter {
  font-size: .9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}
.gallery-lightbox-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: .45rem;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: .15rem;
  scrollbar-width: thin;
}
.gallery-lightbox-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .2rem;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .15s, box-shadow .15s;
}
.gallery-lightbox-thumb img {
  max-height: 52px;
  max-width: 52px;
  object-fit: contain;
}
.gallery-lightbox-thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(196, 30, 42, 0.18);
}
body.lightbox-open {
  overflow: hidden;
}

.product-subtitle { margin-top: -.35rem; }
.product-meta { font-size: .92rem; }
.product-highlights ul {
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
}
.product-highlights li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .92rem;
}
.product-highlights li strong { color: var(--muted); font-weight: 600; }
.color-swatches-label {
  display: block;
  margin: 0 0 .55rem;
}
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: .95rem;
}
.color-swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid #d7e0dc;
  border-radius: 999px;
  padding: .35rem .7rem .35rem .4rem;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.color-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.color-swatch-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #c5d2cc;
  flex: 0 0 auto;
}
.color-swatch-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.color-swatch-name { font-size: .88rem; font-weight: 600; }
.color-swatch.is-selected,
.color-swatch:has(input:checked) {
  border-color: var(--brand, #0b5c4b);
  box-shadow: 0 0 0 2px rgba(11,92,75,.14);
}
.color-swatch.is-selected .color-swatch-dot,
.color-swatch:has(input:checked) .color-swatch-dot {
  box-shadow: 0 0 0 2px var(--brand, #0b5c4b);
}
.color-option {
  border: 1px solid #d7e0dc;
  border-radius: 10px;
  padding: .45rem .7rem;
  cursor: pointer;
  background: #fff;
  display: flex;
  gap: .4rem;
  align-items: flex-start;
}
.color-option input { width: auto; margin-top: .2rem; }
.color-option-body { display: flex; flex-direction: column; gap: .1rem; }
.spec-table th { width: 35%; background: #f7faf9; }
.product-description.prose p { line-height: 1.85; }
.product-description.prose ul { padding-right: 1.2rem; line-height: 1.8; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--brand, #0b5c4b); }
.warn {
  background: #fff8e8;
  border: 1px solid #ffe2a8;
  color: #8a5a00;
  padding: .8rem 1rem;
  border-radius: 12px;
  margin: 1rem 0;
}
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.muted { color: var(--muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
}
.stat strong { display: block; font-size: 1.45rem; margin-top: .35rem; }

.admin-nav, .seller-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.1rem;
}
.admin-nav a, .seller-nav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .88rem;
  font-weight: 600;
}
.admin-nav a:hover, .seller-nav a:hover {
  border-color: var(--green);
  color: var(--green);
}

.invoice {
  background: #fff;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* Service tiles (storefront showcase) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin: 1.75rem 0;
}
.service-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem .9rem;
  text-align: center;
  transition: transform .15s ease, border-color .15s, box-shadow .15s;
}
.service-tile strong { display: block; font-size: .92rem; margin-bottom: .25rem; }
.service-tile span { font-size: .78rem; color: var(--muted); }
.service-tile:hover {
  transform: translateY(-2px);
  border-color: #9fd5c7;
  box-shadow: var(--shadow);
}
.service-tile.is-hot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.service-tile.is-hot span { color: rgba(255,255,255,.88); }

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin: 2rem 0;
}
.trust-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--line);
}
.trust-item strong {
  display: block;
  font-size: .92rem;
  margin-bottom: .2rem;
}
.trust-item span { font-size: .8rem; color: var(--muted); }

/* Footer */
.site-footer {
  margin-top: 3.5rem;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.footer-brand img {
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
}
.footer-brand h3 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
}
.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.footer-col h4 {
  margin: 0 0 .75rem;
  font-size: .95rem;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: .4rem;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .82rem;
}
.newsletter-row {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}
.newsletter-row input { flex: 1; }

@media (max-width: 960px) {
  .header-main {
    grid-template-columns: 1fr auto;
    gap: .75rem;
  }
  .header-main .search {
    grid-column: 1 / -1;
    max-width: none;
    order: 3;
  }
  .nav-actions {
    justify-content: flex-end;
    overflow: visible;
  }
  .account-meta { display: none; }
  .account-trigger { padding: .25rem; }
  .account-caret { display: none; }
  .layout-2, .stats, .trust-strip, .footer-grid, .service-grid { grid-template-columns: 1fr 1fr; }
  .gallery-zoom-lens,
  .gallery-zoom-result { display: none !important; }
  .gallery-main { cursor: zoom-in; }
  .gallery-lightbox { padding: .5rem; }
  .gallery-lightbox-panel {
    max-height: 96vh;
    border-radius: 14px;
  }
  .gallery-lightbox-stage {
    padding: 3rem 2.75rem .75rem;
  }
  .gallery-lightbox-stage img {
    max-height: min(52vh, 420px);
  }
  .gallery-lightbox-nav {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 640px) {
  .layout-2, .stats, .trust-strip, .footer-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .brand-lockup .brand-tag { display: none; }
  .brand-lockup img.brand-mark { width: 44px; height: 44px; }
  .brand-lockup img.brand-mark-desktop { display: none; }
  .brand-lockup img.brand-mark-mobile { display: block; }
  .action-icon { width: 38px; height: 38px; }
  .action-icon.login-cta .action-text { display: none; }
  .action-icon.login-cta { width: 38px; padding: 0; }
  .icon-btn span.label { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .color-swatch-meta small { display: none; }
  .gallery-lightbox-stage {
    padding: 2.75rem 1rem .65rem;
  }
  .gallery-lightbox-nav.is-prev { inset-inline-end: .35rem; }
  .gallery-lightbox-nav.is-next { inset-inline-start: .35rem; }
  .gallery-lightbox-thumb {
    width: 56px;
    height: 56px;
  }
}

/* Address book (Digikala-style) */
.account-nav a { font-weight: 600; margin-inline: .15rem; }
.address-select-list { display: flex; flex-direction: column; gap: .65rem; margin-bottom: .75rem; }
.address-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  background: var(--surface);
  position: relative;
}
.address-card--default { border-color: var(--green-soft); background: var(--green-soft); }
.address-card--selectable {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.address-card--selectable input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.address-card__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: transparent;
  margin-top: .15rem;
}
.address-card--selected {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.address-card--selected .address-card__check {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.address-badge {
  display: inline-block;
  font-size: .75rem;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  margin-inline-start: .35rem;
}
.checkout-new-address--hidden { display: none; }
.address-card__head { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
