/* ===== Fonts (self-hosted Vazirmatn) ===== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Base ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-weight: 400;
  background: var(--bg, #FFFFF0);
  color: var(--text, #2D2D2D);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, textarea, select, option { font-family: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.7; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--gold, #D4AF37); outline-offset: 2px; }

.container { width: 98%; max-width: 1200px; margin: 0 auto; }
.site-main { min-height: 55vh; }
.section { margin-bottom: 50px; }

.center-cta { text-align: center; margin-top: 26px; }
.muted { color: #8a8578; font-size: 13px; display: block; margin-bottom: 6px; }
.ltr-input { direction: ltr; text-align: right; }
.divider { height: 1px; background: #efe9db; margin: 26px 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: 35px;
  padding: 0 28px;
  height: 46px;
  line-height: 1;
  transition: background .25s, color .25s, box-shadow .25s, transform .2s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c1, #8B0000); color: #fff; }
.btn--primary:hover { background: color-mix(in srgb, var(--c1, #8B0000) 84%, #000); }
.btn--primary:disabled { background: #c9c4bb; color: #fff; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--text, #2D2D2D); box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { background: var(--text, #2D2D2D); color: #fff; }
.btn--soft { background: var(--c2, #A8D5BA); color: #1f3b2c; }
.btn--soft:hover { background: color-mix(in srgb, var(--c2, #A8D5BA) 82%, #000); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { height: 54px; font-size: 16px; padding: 0 42px; }
.btn--sm { height: 38px; font-size: 13px; padding: 0 18px; }

/* ===== Section head ===== */
.section-head { text-align: center; margin-bottom: 35px; position: relative; }
.section-head::before,
.section-head::after {
  content: "";
  display: block;
  height: 1px;
  width: 80px;
  margin: 0 auto;
  background: var(--gold, #D4AF37);
}
.section-head::before { margin-bottom: 15px; }
.section-head::after { margin-top: 17px; }
.section-title {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text, #2D2D2D);
}
.section-subtitle { color: #6b7c93; font-size: 14px; margin-top: 12px; }

/* ===== Grid ===== */
.grid { display: grid; gap: 30px 23px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Placeholders ===== */
.img-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 120px;
  padding: 16px;
  background: linear-gradient(145deg, #fbf9f1, #f2eee2);
  border: 1px dashed #cfc7b4;
  color: #9a927f;
  font-size: 13px;
  text-align: center;
  border-radius: 4px;
}
.img-ph--wide { height: 230px; border-radius: 5px; font-size: 14px; }
.img-ph--product { min-height: 260px; border: 0; border-radius: 0; height: 100%; }

.empty-note {
  display: block;
  max-width: 680px;
  margin: 0 auto;
  background: #f4f1e8;
  border: 1px dashed #ddd5c2;
  border-radius: 30px;
  padding: 12px 24px;
  color: #6b6558;
  font-size: 14px;
  text-align: center;
  line-height: 1.9;
}
.placeholder-note { color: rgba(255, 255, 255, .7); font-size: 13px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg, #FFFFF0);
  transition: box-shadow .25s, background .25s;
  --header-h: 100px;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 14px rgba(31, 45, 61, .13);
  background: color-mix(in srgb, var(--bg, #FFFFF0) 88%, #fff);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  gap: 12px;
}
.logo { justify-self: center; display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; object-fit: contain; display: block; }
.logo-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 72px;
  padding: 0 18px;
  border: 1px dashed #c3bba8;
  border-radius: 5px;
  color: #9a927f;
  font-size: 13px;
  background: rgba(255, 255, 255, .5);
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text, #2D2D2D);
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.icon-btn:hover { color: var(--c1, #8B0000); background: rgba(212, 175, 55, .12); }
.menu-btn { flex-direction: column; gap: 5px; justify-self: start; }
.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.header-actions { justify-self: end; display: flex; align-items: center; gap: 2px; }
.cart-count {
  position: absolute;
  top: 4px;
  left: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--gold, #D4AF37);
  color: #2D2D2D;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* Search bar */
.search-bar {
  position: sticky;
  top: 100px;
  z-index: 55;
  background: #fff;
  border-top: 1px solid #f0ebdd;
  box-shadow: 0 8px 18px rgba(31, 45, 61, .08);
  padding: 14px 0;
}
.search-bar[hidden] { display: none; }
.search-form { display: flex; align-items: center; gap: 10px; }
.search-form input {
  flex: 1;
  height: 48px;
  border: 1px solid #e3ded1;
  border-radius: 35px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 15px;
  background: #fdfcf8;
}
.search-form input:focus { outline: none; border-color: var(--c1); box-shadow: 0 0 0 3px rgba(139, 0, 0, .1); }
.search-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f4f1e8;
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
}
.search-close:hover { background: var(--c1); color: #fff; }

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 45, 45, .45);
  z-index: 70;
  opacity: 0;
  transition: opacity .3s;
}
.drawer-backdrop[hidden] { display: none; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: 310px;
  max-width: 86vw;
  background: #fff;
  z-index: 80;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s ease, visibility .3s;
  box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open {
  transform: none;
  visibility: visible;
  pointer-events: auto;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--c1, #8B0000);
  color: #fff;
}
.drawer-title { font-weight: 700; font-size: 16px; }
.drawer-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
}
.drawer-close:hover { background: rgba(255, 255, 255, .3); }
.drawer-nav a {
  display: block;
  padding: 15px 20px;
  font-size: 15px;
  color: var(--text, #2D2D2D);
  border-bottom: 1px solid #f4f1e8;
  border-right: 3px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.drawer-nav a:hover,
.drawer-nav a.is-active {
  color: var(--c1, #8B0000);
  background: #fffdf6;
  border-right-color: var(--gold, #D4AF37);
  font-weight: 700;
}

/* ===== Hero banner ===== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f4f1e6;
}
.hero-track {
  display: flex;
  height: clamp(230px, 36vw, 470px);
  transition: transform .6s ease;
}
.hero-slide,
.hero-slide-link { flex: 0 0 100%; height: 100%; position: relative; display: block; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  margin: 16px;
  padding: 20px;
  border: 2px dashed rgba(45, 45, 45, .28);
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c2, #A8D5BA) 45%, #fff), color-mix(in srgb, var(--c1, #8B0000) 8%, #fff));
  color: var(--text, #2D2D2D);
  text-align: center;
  font-size: clamp(15px, 1.7vw, 22px);
  font-weight: 700;
}
.hero-caption {
  position: absolute;
  right: 6%;
  bottom: 8%;
  direction: rtl;
  text-align: right;
  max-width: 60%;
  z-index: 2;
}
.hero-caption-sub { display: block; color: var(--gold, #D4AF37); font-size: 15px; margin-bottom: 8px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.hero-caption-title {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: var(--text, #2D2D2D);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(31, 45, 61, .2);
  transition: background .2s, color .2s;
}
.hero-arrow:hover { background: var(--c1, #8B0000); color: #fff; }
.hero-arrow--prev { right: 20px; }
.hero-arrow--prev svg { transform: rotate(180deg); }
.hero-arrow--next { left: 20px; }
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(45, 45, 45, .3);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dots button.is-active { background: var(--c1, #8B0000); transform: scale(1.2); }

/* ===== Product slider ===== */
.slider { position: relative; }
.slider__track {
  display: flex;
  gap: 23px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 10px;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > .p-card { flex: 0 0 calc((100% - 69px) / 4); }
.slider__arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text, #2D2D2D);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(31, 45, 61, .22);
  transition: background .2s, color .2s;
}
.slider__arrow:hover { background: var(--c1, #8B0000); color: #fff; }
.slider__arrow--prev { right: -22px; }
.slider__arrow--prev svg { transform: rotate(180deg); }
.slider__arrow--next { left: -22px; }

/* ===== Product card ===== */
.p-card {
  position: relative;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(31, 45, 61, .16);
  overflow: hidden;
  direction: rtl;
  transition: transform .3s, box-shadow .3s;
}
.p-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(31, 45, 61, .2); }
.p-card__link { display: block; border-radius: 5px; overflow: hidden; color: inherit; }
.p-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f7f5ee;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
}
.p-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.p-card:hover .p-card__media img { transform: scale(1.04); }
.p-card__info { background: #fff; padding-top: 13px; text-align: center; min-height: 96px; }
.p-card__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  height: 52px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  padding: 0 12px;
  color: var(--text, #2D2D2D);
}
.p-card__prices { padding: 6px 12px 4px; }
.p-card .price { font-weight: 700; font-size: 16px; color: var(--text, #2D2D2D); }
.p-card .price i { font-style: normal; font-size: 13px; font-weight: 500; }
.price--placeholder { color: #9a927f; font-weight: 500; font-size: 14px; }
.raw-price {
  color: #737373;
  font-size: 13px;
  margin-inline-start: 10px;
  text-decoration: line-through;
  font-weight: 400;
}
.out-of-stock { color: #ec6060; font-weight: 700; }
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: var(--c2, #A8D5BA);
  color: #1f3b2c;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.card-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: #ec6060;
  color: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}
.p-card__actions {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  padding: 0 14px;
  transform: translateY(160%);
  transition: transform .3s;
  z-index: 4;
}
.p-card:hover .p-card__actions { transform: none; }
.p-card__actions .btn { height: 42px; font-size: 14px; box-shadow: 0 4px 14px rgba(31, 45, 61, .25); }

/* ===== Content / pages ===== */
.page-shell .content-card,
.content-card {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(31, 45, 61, .16);
  padding: 30px;
}
.rich-text { color: #4a4a4a; font-size: 15px; line-height: 2.1; }
.rich-text p { margin: 0 0 14px; }
.rich-text p:last-child { margin-bottom: 0; }
.block-title { font-size: 17px; margin-bottom: 16px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; margin-bottom: 16px; }
.field > span { font-weight: 500; color: #55504a; }
.field b { color: var(--c1, #8B0000); }
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #e3ded1;
  border-radius: 5px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--text, #2D2D2D);
  padding: 12px 14px;
}
.field input { height: 48px; padding: 0 14px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--c1, #8B0000); box-shadow: 0 0 0 3px rgba(139, 0, 0, .1); }
.field textarea { resize: vertical; line-height: 1.9; }
.form-hint { font-size: 13px; color: #b3261e; margin: 12px 0 0; }
.alert { padding: 14px 16px; border-radius: 5px; font-size: 14px; margin-bottom: 16px; }
.alert--error { background: #fdecec; color: #b3261e; border: 1px solid #f5c2c0; }
.alert--ok { background: #eafaf1; color: #1e7a45; border: 1px solid #b7ecd0; }

/* Contact */
.contact-info {
  background: color-mix(in srgb, var(--c2, #A8D5BA) 35%, #fff);
  border-radius: 5px;
  padding: 18px 20px;
  margin-bottom: 22px;
  display: grid;
  gap: 10px;
}
.contact-row { display: flex; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.contact-label { font-weight: 700; min-width: 110px; color: var(--c1, #8B0000); }
.contact-value { color: #4a4a4a; }

/* Size table & data table */
.table-wrap { overflow-x: auto; margin: 18px 0; }
.size-table, .data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.size-table th, .data-table th {
  background: var(--c1, #8B0000);
  color: #fff;
  padding: 12px 14px;
  font-weight: 700;
  text-align: center;
}
.size-table td, .data-table td { border: 1px solid #efe9db; padding: 12px 14px; text-align: center; }
.size-table tbody tr:nth-child(even) td, .data-table tbody tr:nth-child(even) td { background: #faf8f1; }
.page-image { margin-top: 18px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(31, 45, 61, .16);
  overflow: hidden;
  border: 1px solid #f3efe4;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 15px;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--c1, #8B0000); }
.faq-chevron { display: inline-flex; color: var(--gold, #D4AF37); transition: transform .3s; transform: rotate(-90deg); }
.faq-item[open] .faq-chevron { transform: rotate(90deg); }
.faq-item[open] summary { color: var(--c1, #8B0000); border-bottom: 1px dashed #efe9db; }
.faq-answer { padding: 16px 20px 18px; color: #555; font-size: 14px; }

/* Home help (FAQ + exchange / return) */
.help-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 23px; align-items: start; }
.help-card {
  background: #fff;
  border: 1px solid #f3efe4;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(31, 45, 61, .16);
  padding: 24px;
  min-width: 0;
}
.help-title {
  position: relative;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
}
.help-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38px;
  height: 2px;
  background: var(--gold, #D4AF37);
}
.help-card .center-cta { margin-top: 22px; }
.help-returns-text { margin-bottom: 4px; }

/* Category cards (home) */
.cat-grid { gap: 24px; }
.cat-card {
  display: block;
  background: #fff;
  border: 1px solid #f3efe4;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31, 45, 61, .14);
  transition: transform .25s, box-shadow .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(31, 45, 61, .2); }
.cat-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f7f5ee;
}
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card__media .img-ph { height: 100%; min-height: 0; border: 0; border-radius: 0; }
.cat-card__title {
  display: block;
  padding: 14px 10px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: var(--text, #2D2D2D);
  transition: color .2s;
}
.cat-card:hover .cat-card__title { color: var(--c1, #8B0000); }

/* Product page */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-main-media {
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31, 45, 61, .16);
}
.product-main-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 1px solid #eee7d7;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--c1, #8B0000); }
.product-title { font-size: 24px; margin-bottom: 12px; }
.product-prices { margin-bottom: 16px; }
.product-prices .price { font-size: 24px; font-weight: 700; }
.product-prices .price i { font-size: 16px; }
.product-prices .raw-price { font-size: 15px; }
.product-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tag { background: #f4f1e8; border-radius: 20px; padding: 6px 14px; font-size: 13px; color: #57524a; }
.tag--express { background: var(--c2, #A8D5BA); color: #1f3b2c; font-weight: 700; }
.tag--oos { background: #fdecec; color: #c0392b; font-weight: 700; }
.option-group { margin-bottom: 18px; }
.option-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e0dbcd;
  background: #fff;
  border-radius: 35px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
}
.chip:hover { border-color: var(--c1, #8B0000); }
.chip.is-selected { background: var(--c1, #8B0000); border-color: var(--c1, #8B0000); color: #fff; }
.chip-swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.qty-row { display: flex; align-items: center; gap: 16px; margin: 18px 0 22px; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e3ded1;
  border-radius: 35px;
  overflow: hidden;
  background: #fff;
}
.qty-stepper button { width: 40px; height: 42px; border: 0; background: #fff; cursor: pointer; font-size: 18px; color: var(--text, #2D2D2D); }
.qty-stepper button:hover { background: var(--c2, #A8D5BA); }
.qty-stepper input {
  width: 48px;
  height: 42px;
  border: 0;
  border-inline: 1px solid #eee7d7;
  text-align: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-description { margin-top: 26px; padding-top: 20px; border-top: 1px dashed #e6e1d4; }

/* Cart */
.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f2ede0;
  flex-wrap: wrap;
}
.cart-thumb {
  width: 84px;
  height: 84px;
  border-radius: 5px;
  overflow: hidden;
  background: #f7f5ee;
  flex: 0 0 auto;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .img-ph { min-height: 0; font-size: 10px; padding: 6px; gap: 4px; }
.cart-thumb .img-ph svg { width: 20px; height: 20px; }
.cart-info { flex: 1; min-width: 180px; }
.cart-title { font-weight: 700; font-size: 15px; }
.cart-attrs { font-size: 13px; color: #8a8578; }
.cart-price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.cart-remove {
  border: 0;
  background: #fdecec;
  color: #b3261e;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.cart-remove:hover { background: #b3261e; color: #fff; }
.cart-summary {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(31, 45, 61, .16);
  padding: 22px;
  margin-top: 24px;
}
.totals { display: grid; gap: 8px; }
.totals-row { display: flex; justify-content: space-between; font-size: 14px; color: #55504a; }
.totals-row--grand {
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #2D2D2D);
  border-top: 1px dashed #e6e1d4;
  padding-top: 12px;
  margin-top: 6px;
}

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.box {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(31, 45, 61, .16);
  padding: 20px;
  margin-bottom: 18px;
}
.box-title {
  font-size: 15px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3efe4;
}
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e6e1d4;
  border-radius: 5px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #fff;
  transition: .2s;
}
.radio-card:last-child { margin-bottom: 0; }
.radio-card:hover { border-color: #cfc7b4; }
.radio-card input { accent-color: var(--c1, #8B0000); margin-top: 5px; }
.radio-card:has(input:checked) { border-color: var(--c1, #8B0000); background: #fffaf5; box-shadow: inset 0 0 0 1px var(--c1, #8B0000); }
.radio-body { display: flex; flex-direction: column; gap: 3px; }
.radio-title { font-weight: 700; font-size: 14px; }
.radio-note { font-size: 12px; color: #8a8578; }
.radio-price { font-size: 13px; color: var(--c1, #8B0000); font-weight: 700; }
.checkout-summary {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(31, 45, 61, .16);
  padding: 20px;
  margin-bottom: 22px;
}
.summary-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 8px 0; border-bottom: 1px dashed #f2ede0; }
.summary-item:last-child { border-bottom: 0; }

/* Order / tracking */
.order-head {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  background: #faf8f1;
  border: 1px solid #f0ebdd;
  border-radius: 5px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.order-code { display: block; font-size: 22px; color: var(--c1, #8B0000); letter-spacing: 2px; }
.order-note { font-size: 14px; color: #6b6558; background: color-mix(in srgb, var(--c2, #A8D5BA) 30%, #fff); padding: 12px 16px; border-radius: 5px; margin: 0 0 18px; }
.status {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  padding: 5px 14px;
  background: #eee;
  color: #444;
}
.status--pending { background: #fff3d6; color: #8a6100; }
.status--paid { background: color-mix(in srgb, var(--c2, #A8D5BA) 70%, #fff); color: #1f4630; }
.status--processing { background: #e7f0ff; color: #1d4ed8; }
.status--sent { background: #e0f2fe; color: #0369a1; }
.status--delivered { background: #dcfce7; color: #15803d; }
.status--cancelled { background: #fee2e2; color: #b91c1c; }
.track-result { margin-top: 26px; }
.track-form button { margin-top: 4px; }

/* Not found */
.not-found { text-align: center; padding: 20px 0; }
.not-found-code { display: block; font-size: 64px; font-weight: 700; color: var(--c1, #8B0000); line-height: 1.4; }
.not-found p { color: #6b6558; margin: 0 0 22px; }

/* ===== Footer ===== */
.site-footer { background: var(--c1, #8B0000); color: #fff; margin-top: 60px; }
.footer-grid {
  display: flex;
  gap: 34px;
  padding: 40px 0;
  align-items: flex-start;
}
.footer-col { min-width: 0; }
.footer-shop { width: 280px; flex: 0 0 auto; }
.footer-menu { flex: 1; }
.footer-social { width: 210px; }
.footer-enamad { width: 170px; text-align: left; }
.footer-logo { display: flex; justify-content: flex-start; margin-bottom: 18px; }
.footer-logo-img { width: min(100%, 176px); height: auto; display: block; }
.logo-ph--footer {
  border-color: rgba(255, 255, 255, .55);
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .08);
}
.footer-tagline { font-size: 14px; color: rgba(255, 255, 255, .82); margin: 0 0 14px; line-height: 1.9; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.contact-item {
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-radius: 5px;
  padding: 5px 10px;
  align-self: flex-start;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.footer-heading { font-size: 15px; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-heading::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38px;
  height: 2px;
  background: var(--gold, #D4AF37);
}
.footer-menu ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.footer-menu a { font-size: 14px; color: rgba(255, 255, 255, .85); display: block; padding: 6px 0; transition: .2s; }
.footer-menu a:hover { color: var(--gold, #D4AF37); padding-right: 6px; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .14);
  display: grid;
  place-items: center;
  color: #fff;
  transition: .25s;
}
.social-btn:hover { background: var(--gold, #D4AF37); color: #2D2D2D; transform: translateY(-2px); }
.social-btn--empty:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: none; cursor: default; }
.enamad-box {
  background: #fff;
  border-radius: 5px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-width: 154px;
  min-height: 54px;
  vertical-align: top;
}
.enamad-box img { display: block; height: 50px; width: auto; max-width: 100%; object-fit: contain; }
.enamad-box img[hidden], .enamad-box a[hidden], .enamad-live[hidden] { display: none !important; }
.enamad-fb { display: inline-flex; align-items: center; gap: 8px; }
.enamad-fb[hidden] { display: none !important; }
.enamad-fb svg { flex: 0 0 auto; color: var(--c1, #8B0000); }
.enamad-fb-text { display: flex; flex-direction: column; align-items: flex-start; color: #2D2D2D; line-height: 1.3; }
.enamad-fb-text b { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.enamad-fb-text small { font-size: 10.5px; color: #8A8A8A; white-space: nowrap; }
.footer-copy { background: color-mix(in srgb, var(--c1, #8B0000) 80%, #000); font-size: 13px; }
.footer-copy-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  color: rgba(255, 255, 255, .9);
  flex-wrap: wrap;
}
.footer-note { color: rgba(255, 255, 255, .7); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--text, #2D2D2D);
  color: #fff;
  padding: 12px 24px;
  border-radius: 35px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  max-width: 90vw;
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== Responsive ===== */
@media only screen and (max-width: 1223px) {
  .container { width: 95%; }
  .slider__arrow--prev { right: -14px; }
  .slider__arrow--next { left: -14px; }
  .hero-caption-title { font-size: 22px; }
}

@media only screen and (max-width: 1023px) {
  .slider__track > .p-card { flex: 0 0 calc((100% - 46px) / 3); }
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .product-layout { gap: 26px; }
  .footer-menu ul { grid-template-columns: 1fr; }
}

@media only screen and (max-width: 979px) {
  .container { width: 92%; }
  .site-header { --header-h: 78px; }
  .search-bar { top: 78px; }
  .logo img { height: 56px; }
  .logo-ph { min-width: 130px; height: 56px; font-size: 12px; padding: 0 12px; }
  body, input, textarea, select, option { font-family: 'Vazirmatn', Tahoma, Arial, sans-serif; }
  .icon-btn { width: 40px; height: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .slider__track { gap: 12px; }
  .slider__track > .p-card { flex: 0 0 calc((100% - 12px) / 2); }
  .slider__arrow { width: 36px; height: 36px; top: 42%; }
  .slider__arrow--prev { right: -6px; }
  .slider__arrow--next { left: -6px; }
  .p-card__actions {
    position: static;
    transform: none;
    padding: 0 12px 14px;
  }
  .p-card__info { min-height: 88px; }
  .p-card__title { font-size: 14px; height: 44px; }
  .p-card .price { font-size: 15px; }
  .hero-track { height: clamp(180px, 48vw, 320px); }
  .hero-arrow { width: 36px; height: 36px; }
  .hero-arrow--prev { right: 10px; }
  .hero-arrow--next { left: 10px; }
  .hero-caption { max-width: 80%; bottom: 12%; }
  .hero-caption-title { font-size: 17px; }
  .hero-caption-sub { font-size: 13px; }
  .section-title { font-size: 19px; }
  .content-card { padding: 20px 16px; }
  .footer-grid { flex-direction: column; align-items: center; text-align: center; gap: 28px; padding: 30px 0; }
  .footer-shop, .footer-social, .footer-enamad { width: 100%; }
  .footer-enamad { text-align: center; }
  .footer-menu { width: 100%; }
  .footer-menu ul { grid-template-columns: 1fr; }
  .footer-heading::after { right: 50%; transform: translateX(50%); }
  .footer-contact { align-items: center; }
  .contact-item { align-self: center; text-align: center; }
  .footer-logo { display: flex; justify-content: flex-start; }
  .help-grid { grid-template-columns: 1fr; }
  .social-row { justify-content: center; }
  .footer-copy-inner { flex-direction: column; text-align: center; justify-content: center; }
  .footer-menu a:hover { padding-right: 0; }
}

@media only screen and (max-width: 767px) {
  .product-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-head { flex-direction: column; gap: 14px; }
  .cart-item { align-items: flex-start; }
  .cart-info { min-width: 140px; }
  .hero-ph { margin: 10px; font-size: 15px; }
  .section { margin-bottom: 38px; }
}

@media only screen and (max-width: 420px) {
  .grid--4 { gap: 14px 10px; }
  .p-card__title { font-size: 13px; }
  .search-form { gap: 6px; }
  .search-form .btn { padding: 0 16px; }
}

/* ---------- ورود / عضویت ---------- */
.auth-btn { position: relative; }
.auth-btn.is-authed { color: var(--c1, #8B0000); }
.auth-dot {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f7a55;
  box-shadow: 0 0 0 2px var(--bg, #FFFFF0);
}
.auth-dot[hidden] { display: none !important; }
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.auth-modal[hidden] { display: none !important; }
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 16, 12, .55);
}
.auth-card {
  position: relative;
  width: min(400px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg, #FFFFF0);
  border-radius: 16px;
  padding: 26px 22px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.auth-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a8578;
  font-size: 17px;
  cursor: pointer;
}
.auth-close:hover { background: rgba(0, 0, 0, .07); color: var(--c1, #8B0000); }
.auth-title { text-align: center; font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, .09);
}
.auth-tabs button {
  flex: 1;
  padding: 10px 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: #7b7566;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.auth-tabs button.is-active {
  color: var(--c1, #8B0000);
  border-bottom-color: var(--c1, #8B0000);
  font-weight: 700;
}
.auth-form .btn { margin-top: 4px; }
.auth-error {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fdecec;
  color: #b3261e;
  font-size: 13px;
}
.auth-error[hidden] { display: none !important; }
.auth-account { text-align: center; padding-top: 6px; }
.auth-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c1, #8B0000);
  background: color-mix(in srgb, var(--c1, #8B0000) 12%, #fff);
}
.auth-account h3 { font-size: 17px; margin-bottom: 8px; }
.auth-account-name { font-weight: 700; margin-bottom: 2px; }
.auth-account-phone { color: #7b7566; direction: ltr; margin-bottom: 18px; }
.auth-account .btn { margin-top: 4px; }
