@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/gandom-font@v0.8/dist/font-face.css');

:root {
  --canvas: #F1F1F4;
  --surface: #FFFFFF;
  --surface-2: #EFEFF2;
  --ink: #1A1A1E;
  --ink-dim: #55555F;
  --muted: #9A9AA3;
  --accent: #1A1A1E;
  --accent-dim: #000000;
  --gold: #B8903F;
  --line: #E3E3E8;
  --radius: 20px;
  --wrap: 1240px;
  --font-display: 'Gandom', 'Vazirmatn', sans-serif;
  --header-bg: #33333B;
  --header-line: rgba(255,255,255,.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- Top bar ---------- */
.announce-bar {
  background: #fff; color: var(--ink);
  text-align: center; padding: 12px 20px;
  font-family: var(--font-display); font-size: 16px; font-weight: 400;
  border-bottom: 1px solid var(--line);
}
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; width: auto; }

.main-nav { display: flex; gap: 30px; flex-shrink: 0; }
.main-nav a {
  font-size: 17px; color: #fff; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
  transition: color .15s;
}
.main-nav a:hover { color: rgba(255,255,255,.7); }
.nav-caret { font-size: 11px; color: rgba(255,255,255,.5); }

.nav-item-drop { position: relative; }
.nav-item-drop > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown {
  position: absolute; top: 100%; right: 0; padding-top: 14px;
  min-width: 180px;
  display: none; z-index: 50;
}
.nav-dropdown-inner {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  padding: 8px;
  display: flex; flex-direction: column;
}
.nav-item-drop:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500 !important;
  color: var(--ink) !important; white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--surface-2); }

.header-right-group { display: flex; align-items: center; gap: 16px; }

.header-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border-radius: 999px;
  padding: 10px 8px 10px 18px;
  width: 300px;
}
.header-search input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 13.5px; color: #fff; text-align: right;
}
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search button {
  border: none; background: transparent; cursor: pointer; font-size: 15px;
  color: rgba(255,255,255,.75);
}

.top-actions { display: flex; align-items: center; gap: 10px; }
.acc-btn {
  background: #fff; color: var(--ink);
  padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.cart-btn {
  position: relative;
  background: transparent; border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.cart-count {
  position: absolute; top: -6px; left: -6px;
  background: var(--gold); color: #1a1508;
  font-size: 11px; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Hero / slideshow ---------- */
.hero {
  position: relative;
  height: min(72vh, 620px);
  min-height: 380px;
  overflow: hidden;
  background: var(--surface);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,9,13,.88) 0%, rgba(10,9,13,.15) 55%, rgba(10,9,13,.05) 100%);
}
.hero-content {
  position: absolute; bottom: 0; right: 0; left: 0;
  padding: 0 28px 52px;
  max-width: var(--wrap); margin: 0 auto;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  max-width: 620px;
  margin: 0 0 18px;
  color: #fff;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--canvas);
  padding: 14px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px;
}
.hero-dots {
  position: absolute; bottom: 28px; left: 28px;
  display: flex; gap: 7px;
}
.hero-dots span {
  width: 22px; height: 3px; background: rgba(255,255,255,.28); border-radius: 2px;
  cursor: pointer;
}
.hero-dots span.active { background: var(--gold); }

/* ---------- Section heading ---------- */
.section { padding: 64px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800; letter-spacing: -.4px; margin: 0;
}
.section-link { font-size: 14px; color: var(--accent); font-weight: 600; }

.pagination-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding-top: 32px;
}
.pagination-info { font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px; cursor: pointer;
  font-weight: 700; font-size: 15.5px; color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 400; color: var(--ink-dim);
  transition: transform .2s, background .2s, color .2s;
  margin-left: 16px;
}
.faq-item[open] .faq-icon {
  background: var(--ink); color: #fff; border-color: var(--ink);
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 4px 22px; color: var(--ink-dim); font-size: 14px; line-height: 2;
}

/* ---------- Type banner row (لباس/کفش/اکسسوری) ---------- */
.type-banner-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; padding: 24px 0 8px;
}
.type-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4; background: var(--surface); border: 1px solid var(--line);
}
.type-tile img { width: 100%; height: 100%; object-fit: cover; }
.type-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,9,13,.7), transparent 55%);
}
.type-tile-label {
  position: absolute; right: 18px; bottom: 16px; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff;
}
@media (max-width: 760px) {
  .type-banner-row { grid-template-columns: 1fr; }
}

/* ---------- Discount strip ---------- */
.discount-strip {
  display: flex; align-items: stretch; gap: 14px;
  background: linear-gradient(135deg, #6E1638, #4A0F27);
  border-radius: var(--radius); padding: 16px;
  position: relative;
}
.discount-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; flex: 1;
}
.discount-track::-webkit-scrollbar { display: none; }
.discount-card {
  flex: 0 0 auto; width: 220px;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  scroll-snap-align: start; position: relative;
}
.discount-percent-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 800;
  padding: 5px 10px; border-radius: 6px;
}
.discount-card-media { aspect-ratio: 1/1; background: var(--surface-2); }
.discount-card-media img { width: 100%; height: 100%; object-fit: cover; }
.discount-card-body { padding: 10px 12px 14px; }
.discount-card-name { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.discount-card-prices { display: flex; flex-direction: column; gap: 2px; }
.discount-card-prices .price-orig { font-size: 11.5px; margin: 0; }
.discount-final { font-weight: 800; font-size: 14px; color: #C0223A; }

.discount-cta {
  flex: 0 0 130px;
  background: rgba(255,255,255,.08); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #fff; text-align: center; padding: 12px;
}
.discount-cta-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.5; }
.discount-cta-percent { font-size: 26px; font-weight: 900; }
.discount-cta-link { font-size: 12px; color: rgba(255,255,255,.75); }

.discount-arrow {
  flex: 0 0 40px; align-self: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  font-size: 20px; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 760px) {
  .discount-card { width: 160px; }
  .discount-cta { flex-basis: 100px; }
}

/* ---------- Category bento ---------- */
.cat-bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
}
.cat-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); grid-row: span 2;
  border: 1px solid var(--line);
}
.cat-tile:nth-child(2), .cat-tile:nth-child(3) { grid-row: span 1; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,9,13,.82), transparent 60%);
}
.cat-tile-label {
  position: absolute; right: 18px; bottom: 16px; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: #fff;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 18px;
}
.product-card { display: block; }
.product-media {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-media img { transform: scale(1.045); }
.product-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--gold); color: #1a1508;
  font-size: 12px; font-weight: 800;
  padding: 4px 9px; border-radius: 8px;
}
.product-name { font-size: 14.5px; font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 15px; font-weight: 800; }
.product-price.has-discount { color: #C0223A; }
.price-orig { color: var(--muted); font-weight: 500; text-decoration: line-through; font-size: 12px; margin-left: 6px; }
.product-price .unit { font-size: 12px; font-weight: 500; color: var(--muted); margin-right: 3px; }
.product-sizes { font-size: 12px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--header-bg);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 { font-size: 14px; font-weight: 700; margin: 0 0 14px; color: #fff; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 2; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--header-line); padding-top: 20px;
  font-size: 12.5px; color: rgba(255,255,255,.5); display: flex; justify-content: space-between;
}
.footer-trust-seals {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px 0; border-top: 1px solid var(--header-line);
}

/* ---------- Product detail page ---------- */
.pd-layout { display: flex; align-items: flex-start; gap: 36px; padding: 36px 0 64px; }

/* گالری (سمت راست) */
.pd-gallery { flex: 1.3; min-width: 0; }
.pd-gallery-main { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: 12px; border: 1px solid var(--line); }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12);
  font-size: 17px; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pd-arrow-prev { right: 14px; }
.pd-arrow-next { left: 14px; }
.pd-thumbs { display: flex; gap: 8px; }
.pd-thumbs img { width: 68px; height: 68px; object-fit: cover; border-radius: 12px; cursor: pointer; opacity: .55; border: 1px solid var(--line); }
.pd-thumbs img.active { opacity: 1; border-color: var(--accent); }

/* محتوا (وسط) */
.pd-content { flex: 1.1; min-width: 0; }
.pd-breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.pd-breadcrumb a { color: var(--muted); }
.pd-name { font-size: 24px; font-weight: 800; margin: 0 0 24px; letter-spacing: -.4px; }
.pd-label { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.pd-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.pd-size {
  min-width: 52px; padding: 11px 16px; text-align: center;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s;
}
.pd-size.is-selected { border-color: var(--ink); background: var(--surface-2); }
.pd-size.disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.pd-out { color: var(--muted); font-size: 13.5px; }
.notify-me-form { display: flex; gap: 8px; margin-top: 14px; margin-bottom: 26px; }
.notify-me-form input {
  flex: 1; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-family: inherit; font-size: 13.5px;
}
.notify-me-form button {
  background: var(--ink); color: #fff; border: none; padding: 0 16px;
  border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}

/* ---------- About page ---------- */
.about-hero { text-align: center; padding: 20px 0 44px; }
.about-hero h1 { font-family: var(--font-display); font-size: 40px; font-weight: 400; margin: 0 0 10px; }
.about-hero h1 span { color: var(--gold); }
.about-hero p { color: var(--muted); font-size: 15px; }
.about-story { max-width: 680px; margin: 0 auto 56px; }
.about-story p { color: var(--ink-dim); line-height: 2.1; font-size: 15px; margin-bottom: 18px; }
.about-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 48px; }
.about-value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; }
.about-value-icon { font-size: 26px; margin-bottom: 12px; }
.about-value-card h3 { font-size: 15px; margin: 0 0 8px; }
.about-value-card p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0; }
.about-cta { text-align: center; }
@media (max-width: 900px) { .about-values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .about-values { grid-template-columns: 1fr; } .about-hero h1 { font-size: 30px; } }

/* ---------- Contact page ---------- */
.contact-grid { display: flex; gap: 40px; align-items: flex-start; }
.contact-info { flex: 0 0 300px; display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact-info-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.contact-info-value { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.8; }
.contact-form-box { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-success { text-align: center; padding: 30px 10px; color: var(--ink-dim); font-size: 14.5px; }
@media (max-width: 800px) { .contact-grid { flex-direction: column; } .contact-info { flex-basis: auto; } }

.pd-desc-block { margin-top: 8px; }
.pd-desc { color: var(--ink-dim); line-height: 1.9; font-size: 14.5px; margin-bottom: 22px; }
.pd-cat-desc { margin-bottom: 24px; }
.pd-cat-desc-title { font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.pd-cat-desc-body { color: var(--ink-dim); font-size: 14px; line-height: 2; }
.pd-cat-desc-body p { margin: 0 0 8px; }

/* باکس خرید (سمت چپ، چسبان) */
.pd-buybox {
  flex: 0 0 260px;
  position: sticky; top: 104px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px;
}
.pd-buybox-price { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.pd-buybox-price .unit { font-size: 12px; font-weight: 500; color: var(--muted); margin-right: 4px; }
.pd-stock-left { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.pd-add-btn { width: 100%; padding: 16px; border-radius: var(--radius); border: none; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit; }
.pd-add-btn:hover { background: var(--accent-dim); }
.pd-add-btn:disabled { opacity: .45; cursor: not-allowed; }
.pd-share { display: flex; gap: 14px; justify-content: center; margin-top: 18px; }
.pd-share a { color: var(--ink-dim); }
.pd-share a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .pd-layout { flex-direction: column; }
  .pd-buybox { position: static; width: 100%; order: 3; }
  .pd-gallery-main { max-width: 100%; }
}

/* ---------- Related products ---------- */
.related-strip { position: relative; padding: 0 60px; }
.related-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.related-track::-webkit-scrollbar { display: none; }
.related-card { flex: 0 0 240px; scroll-snap-align: start; }
.related-arrow {
  position: absolute; top: 90px; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: #58585F; color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.related-arrow-prev { right: 0; }
.related-arrow-next { left: 0; }
@media (max-width: 760px) {
  .related-strip { padding: 0 46px; }
  .related-card { flex-basis: 160px; }
  .related-arrow { top: 70px; width: 38px; height: 38px; }
}


/* ---------- Cart ---------- */
.cart-row-name { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.cart-row-meta { font-size: 12.5px; color: var(--muted); }
.cart-empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- Checkout stepper ---------- */
.checkout-stepper {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 20px 0 44px; flex-wrap: wrap;
}
.checkout-step { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.checkout-step-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--muted);
}
.checkout-step.active .checkout-step-icon { background: var(--ink); color: #fff; border-color: var(--ink); }
.checkout-step span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.checkout-step.active span { color: var(--ink); }
.checkout-step-line { width: 60px; height: 1px; background: var(--line); margin-top: -26px; }
@media (max-width: 700px) {
  .checkout-stepper { gap: 6px; }
  .checkout-step-line { width: 24px; }
  .checkout-step span { display: none; }
}

/* ---------- Cart table ---------- */
.cart-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.cart-table-head, .cart-table-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr; align-items: center;
  gap: 12px; padding: 16px 22px;
}
.cart-table-head { font-size: 12.5px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.cart-table-row { border-bottom: 1px solid var(--line); }
.cart-table-row:last-child { border-bottom: none; }
.cart-row-product { display: flex; align-items: center; gap: 14px; }
.cart-row-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.cart-row-price { display: flex; flex-direction: column; gap: 4px; }
.cart-price-discount-tag { font-size: 12px; font-weight: 700; color: #C0223A; }
.cart-price-final { font-size: 14px; font-weight: 700; }
.cart-qty-control { display: flex; align-items: center; gap: 10px; justify-self: start; }
.cart-qty-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--ink);
  background: #fff;
}
.cart-qty-del { color: #E11D48; border-color: #F7D3DA; }
.cart-qty-num { font-weight: 700; font-size: 14px; min-width: 16px; text-align: center; }

/* ---------- Cart bottom (coupon + summary) ---------- */
.cart-bottom { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.cart-coupon-box { flex: 1; min-width: 260px; }
.cart-coupon-box form { display: flex; gap: 8px; }
.cart-coupon-box input[type=text] { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: inherit; }
.cart-coupon-box button { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 0 18px; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.cart-coupon-applied { display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); border-radius: 10px; padding: 12px 16px; font-size: 13.5px; }
.cart-coupon-applied a { color: #E11D48; }
.cart-summary { flex: 0 0 320px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-dim); padding: 7px 0; }
.cart-summary-row.savings { color: #C0223A; font-weight: 700; }
.cart-summary-row.total { font-size: 16px; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
@media (max-width: 760px) {
  .cart-table-head { display: none; }
  .cart-table-row { grid-template-columns: 1fr; gap: 12px; }
  .cart-row-price, .cart-qty-control { justify-self: stretch; flex-direction: row; justify-content: space-between; }
  .cart-summary { flex-basis: 100%; }
}

@media (max-width: 760px) {
  .pd-wrap { grid-template-columns: 1fr; }
}

/* ---------- Mobile header ---------- */
.mobile-menu-btn {
  display: none; background: transparent; border: none; color: #fff;
  font-size: 22px; cursor: pointer; padding: 4px 8px;
}
.acc-btn-text, .cart-btn-text { display: inline; }

/* پنل سفید دسته‌بندی‌ها (آکاردئون) */
.categories-sheet {
  display: none; position: fixed; inset: 0; z-index: 220;
  background: #fff; flex-direction: column;
}
.categories-sheet.open { display: flex; }
.categories-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
  font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.categories-sheet-header button {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--surface-2); color: var(--ink); font-size: 13px; cursor: pointer;
}
.categories-sheet-body { flex: 1; overflow-y: auto; padding: 8px 20px 30px; }

.cat-accordion-item { border-bottom: 1px solid var(--line); }
.cat-accordion-item summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 2px; font-weight: 700; font-size: 15px; cursor: pointer;
  list-style: none;
}
.cat-accordion-item summary::-webkit-details-marker { display: none; }
.cat-accordion-caret { color: var(--muted); font-size: 15px; transition: transform .2s; }
.cat-accordion-item[open] .cat-accordion-caret { transform: rotate(180deg); }
.cat-accordion-children { display: flex; flex-direction: column; padding: 0 4px 16px; gap: 2px; }
.cat-accordion-children a { padding: 9px 6px; font-size: 13.5px; color: var(--ink-dim); }
.cat-accordion-viewall { font-weight: 700; color: var(--denim, var(--ink)) !important; }
.cat-accordion-plain {
  display: block; padding: 16px 2px; font-weight: 700; font-size: 15px;
  border-bottom: 1px solid var(--line); color: var(--ink);
}

@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .mobile-menu-btn { display: block; }
  .main-nav, .header-search { display: none; }
  .acc-btn-text { display: none; }
  .acc-btn { padding: 11px 13px; }
  .cart-btn-text { display: none; }
  .cart-btn { padding: 11px 13px; }
  .topbar-inner { height: 66px; gap: 12px; }
  .brand img { height: 26px; }
  .announce-bar { font-size: 13px; padding: 9px 14px; }
}

@media (max-width: 960px) {
  .cat-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; }
  .cat-tile, .cat-tile:nth-child(1) { grid-row: span 1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Install (Add to Home Screen) banner ---------- */
.install-banner {
  position: fixed; right: 12px; left: 12px; bottom: -120px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  padding: 14px 14px 14px 16px;
  display: flex; align-items: center; gap: 12px;
  z-index: 200; transition: bottom .3s ease;
}
.install-banner.show { bottom: 16px; }
.install-banner-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; }
.install-banner-icon img { width: 100%; height: 100%; object-fit: cover; }
.install-banner-text { flex: 1; min-width: 0; }
.install-banner-title { font-weight: 800; font-size: 14px; }
.install-banner-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.install-banner-btn {
  flex-shrink: 0; background: var(--ink); color: #fff; border: none;
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer;
}
.install-banner-close {
  position: absolute; top: -8px; left: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff; border: none; font-size: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.ios-install-sheet {
  position: fixed; inset: 0; z-index: 250; display: none;
  align-items: flex-end; background: rgba(20,18,31,.5);
}
.ios-install-sheet.show { display: flex; }
.ios-install-sheet-inner {
  position: relative; width: 100%; background: #fff;
  border-radius: 20px 20px 0 0; padding: 26px 22px 32px;
}
.ios-install-sheet-inner h3 { margin: 0 0 18px; font-size: 17px; }
.ios-step { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 10px 0; color: var(--ink-dim); }
.ios-step-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ios-install-sheet-inner .install-banner-close { top: 14px; left: 14px; background: var(--surface-2); color: var(--ink); }

/* ---------- Mobile bottom tab bar ---------- */
.mobile-tabbar {
  display: none;
  position: fixed; right: 0; left: 0; bottom: 0; z-index: 150;
  background: #fff; border-top: 1px solid var(--line);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  align-items: stretch; justify-content: space-around;
}
.mobile-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; font-family: inherit; cursor: pointer;
  color: var(--muted); padding: 4px 2px;
}
.mobile-tab span { font-size: 10.5px; font-weight: 600; }
.mobile-tab.active { color: var(--ink); }
.mobile-tab.active svg { stroke: #fff; }
.mobile-tab.active {
  position: relative;
}
.mobile-tab.active::before {
  content: ''; position: absolute; top: -2px; width: 38px; height: 26px;
  background: var(--ink); border-radius: 999px; z-index: -1;
}
.mobile-tab-icon-wrap { position: relative; }
.mobile-tab-badge {
  position: absolute; top: -6px; left: -8px;
  background: var(--gold); color: #1a1508; font-size: 10px; font-weight: 800;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  .mobile-tabbar { display: flex; }
  body { padding-bottom: 64px; }
  .install-banner.show { bottom: 76px; }
}

