/* ==========================================================================
   ترمه‌سرا (Termeh Sara) - شیوه نامه جامع و استایل‌های طراحی لوکس ایرانی
   پالت رنگ: زرشکی کهن، طلایی زردقلم، کرم عاجی، قهوه‌ای گردویی و ذغالی
   ========================================================================== */

:root {
  /* پالت رنگ‌های اصلی برند */
  --wine-dark: #23080e;
  --wine: #380e16;
  --wine-light: #521522;
  --wine-bright: #7a1d30;
  
  --gold: #c59e67;
  --gold-light: #e5cb9b;
  --gold-lighter: #f7edd7;
  --gold-dark: #9e7a46;

  --cream: #f9f5ee;
  --cream-dark: #f0e6d6;
  --paper: #fcfaf6;
  
  --ink: #261f1e;
  --ink-light: #4f4543;
  --muted: #7d726f;
  --line: #e8ded2;
  --line-light: #f3ece2;

  --success: #2e6945;
  --error: #8a242c;

  /* سایه‌ها و افکت‌های بصری */
  --shadow-sm: 0 4px 14px rgba(38, 14, 20, 0.06);
  --shadow-md: 0 10px 30px rgba(38, 14, 20, 0.09);
  --shadow-lg: 0 18px 48px rgba(32, 10, 16, 0.16);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* بازنشانی و پایه‌ها */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, Tahoma, Arial, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  flex: 1;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* دسترس‌پذیری */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* نوار اعلان بالای سایت (Announcement Bar) */
.announcement {
  height: 40px;
  background-color: var(--wine-dark);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid rgba(197, 158, 103, 0.2);
}

.announcement-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.announcement-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.announcement-links a, .announcement-links button {
  color: var(--gold-light);
  font-size: 11px;
  opacity: 0.85;
}

.announcement-links a:hover, .announcement-links button:hover {
  opacity: 1;
  color: #fff;
}

/* هدر چسبان و لوکس (Site Header) */
.site-header {
  height: 84px;
  background: rgba(252, 250, 246, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  position: sticky;
  top: 0;
  z-index: 100;
  transition: height 0.25s, box-shadow 0.25s;
}

.site-header.scrolled {
  height: 70px;
  box-shadow: 0 4px 20px rgba(35, 8, 14, 0.08);
}

/* لوگو ترمه‌سرا */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 24px;
  color: var(--wine);
  letter-spacing: -0.5px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wine);
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-family: serif;
  box-shadow: 0 2px 8px rgba(56, 14, 22, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text small {
  font-family: 'Playfair Display', serif;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--gold-dark);
  margin-top: 2px;
}

/* منوی دسکتاپ */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-light);
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.2s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--wine);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

/* دکمه‌های اکشن هدر */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  position: relative;
  transition: var(--transition);
}

.icon-btn:hover {
  background-color: var(--cream-dark);
  color: var(--wine);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge-count {
  position: absolute;
  top: 4px;
  left: 4px;
  background-color: var(--wine);
  color: #fff;
  border: 1px solid var(--gold);
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.menu-button span {
  width: 22px;
  height: 2px;
  background-color: var(--wine);
  border-radius: 2px;
  transition: var(--transition);
}

/* منوی بازشونده موبایل */
.mobile-nav {
  position: fixed;
  top: 84px;
  right: 0;
  left: 0;
  background: var(--paper);
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: var(--transition);
  z-index: 99;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   دکمه‌ها و عناصر مشترک UI
   ========================================================================== */
.button {
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13.5px;
  transition: var(--transition);
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  background: linear-gradient(135deg, #dfc18e 0%, #caa165 100%);
  color: #2b130e;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 15px rgba(197, 158, 103, 0.25);
}

.button-gold:hover {
  background: linear-gradient(135deg, #ebd0a0 0%, #d8b276 100%);
  box-shadow: 0 6px 20px rgba(197, 158, 103, 0.4);
}

.button-dark {
  background-color: var(--wine);
  color: var(--cream);
  border: 1px solid rgba(197, 158, 103, 0.3);
}

.button-dark:hover {
  background-color: var(--wine-light);
  color: #fff;
}

.button-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--gold);
}

.button-ghost:hover {
  background: rgba(197, 158, 103, 0.15);
}

.button-ghost-dark {
  background: transparent;
  color: var(--wine);
  border: 1px solid var(--wine);
}

.button-ghost-dark:hover {
  background: var(--wine);
  color: var(--cream);
}

.full-width {
  width: 100%;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wine);
  font-weight: 700;
  font-size: 13.5px;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 4px;
}

.inline-link .arrow {
  transition: transform 0.2s;
}

.inline-link:hover .arrow {
  transform: translateX(-4px);
}

.eyebrow {
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background-color: var(--gold);
}

/* بخش‌های عمومی (Sections) */
.section {
  padding: 95px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  color: var(--wine-dark);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-heading.centered p {
  color: var(--muted);
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 14.5px;
}

/* ==========================================================================
   صفحه اصلی: Hero Section مطابق مرجع تصویری
   ========================================================================== */
.hero {
  min-height: 590px;
  background: var(--wine-dark);
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 7, 10, 0.2) 0%, rgba(23, 7, 10, 0.65) 45%, #25090f 80%);
  z-index: 1;
}

.hero-image {
  position: absolute;
  inset: 0 36% 0 0;
  background: linear-gradient(90deg, transparent 70%, var(--wine-dark) 100%),
              url('assets/hero-termeh.png') center/cover no-repeat;
  filter: saturate(0.85) contrast(1.05);
  opacity: 0.95;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 90px 0;
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.25;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero h1 em {
  font-family: 'Playfair Display', 'Vazirmatn', serif;
  color: var(--gold-light);
  font-style: normal;
  font-weight: 600;
}

.hero-text {
  color: #e8ded2;
  font-size: 15.5px;
  line-height: 1.9;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  color: var(--gold-light);
  font-size: 12px;
}

.hero-note .line {
  width: 40px;
  height: 1px;
  background-color: var(--gold);
}

.hero-caption {
  position: absolute;
  z-index: 2;
  bottom: 25px;
  left: max(24px, calc((100vw - 1200px) / 2));
  font-size: 11px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
}

.caption-line {
  width: 40px;
  height: 1px;
  background-color: var(--gold);
}

.hero-pattern {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 380px;
  height: 380px;
  opacity: 0.12;
  pointer-events: none;
  background-image: radial-gradient(ellipse at center, var(--gold) 20%, transparent 70%);
}

/* نوار مزایا (Benefits Bar) */
.benefits-bar {
  background: var(--wine);
  color: var(--cream);
  border-top: 1px solid rgba(197, 158, 103, 0.25);
  border-bottom: 1px solid rgba(197, 158, 103, 0.25);
  padding: 30px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  position: relative;
}

.benefit-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(197, 158, 103, 0.25);
}

.benefit-icon svg {
  width: 34px;
  height: 34px;
  color: var(--gold-light);
  stroke-width: 1.6;
  fill: none;
  stroke: currentColor;
}

.benefit-text h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
}

.benefit-text p {
  margin: 0;
  font-size: 11.5px;
  color: var(--gold-light);
  opacity: 0.85;
}

/* بخش دسته‌بندی‌ها (Categories Section) */
.categories-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.category-card {
  height: 290px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background-color: var(--wine-dark);
  background-image: url('assets/hero-termeh.png');
  background-size: cover;
  background-position: center;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.cat-1 { background-position: 15% 45%; }
.cat-2 { background-position: 32% 65%; }
.cat-3 { background-position: 50% 30%; }
.cat-4 { background-position: 68% 55%; }
.cat-5 { background-position: 85% 40%; }
.cat-6 { background-position: 45% 80%; }

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 6, 9, 0.92) 15%, rgba(20, 6, 9, 0.3) 65%, transparent 100%);
  transition: var(--transition);
}

.category-card:hover .category-overlay {
  background: linear-gradient(0deg, rgba(35, 10, 16, 0.95) 20%, rgba(35, 10, 16, 0.4) 75%, transparent 100%);
}

.category-content {
  position: relative;
  z-index: 2;
}

.category-content small {
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.category-content h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
}

.cat-desc {
  margin: 0 0 12px;
  font-size: 12px;
  color: #ebdcd0;
  line-height: 1.6;
}

.cat-link {
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   کارت کالا (Product Card)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.product-card-media {
  position: relative;
  height: 270px;
  background-color: var(--cream);
  overflow: hidden;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--wine);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.wish-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-light);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: var(--transition);
}

.wish-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.wish-btn:hover,
.wish-btn.active {
  background-color: var(--wine);
  color: #fff;
}

.wish-btn.active svg {
  fill: #e63946;
  stroke: #e63946;
}

.product-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 10, 16, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-card-hover-overlay {
  opacity: 1;
}

.view-btn {
  background: var(--paper);
  color: var(--wine);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-category {
  font-size: 11.5px;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  height: 46px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-title a:hover {
  color: var(--wine-bright);
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.stars {
  color: #d4a017;
  letter-spacing: 1.5px;
  font-size: 13px;
}

.rating-num {
  font-size: 11px;
  color: var(--muted);
}

.product-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.price-box {
  display: flex;
  flex-direction: column;
}

.final-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--wine);
}

.final-price small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.old-price {
  font-size: 11.5px;
  color: var(--muted);
}

.discount-pill {
  background-color: #f7e6e8;
  color: var(--wine-bright);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.quick-add-btn {
  margin-top: 14px;
  width: 100%;
  height: 40px;
  background-color: var(--cream);
  color: var(--wine);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.quick-add-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.quick-add-btn:hover {
  background-color: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

.quick-add-btn.added {
  background-color: var(--success);
  color: #fff;
  border-color: var(--success);
}

.view-all-box {
  text-align: center;
  margin-top: 48px;
}

/* ==========================================================================
   بنر کالکشن شاه‌عباسی و جشنواره
   ========================================================================== */
.special-banner-section {
  padding: 40px 0 80px;
}

.special-banner {
  background: linear-gradient(120deg, #2b0b12 0%, #46141f 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 55px 45px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.banner-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 85% 50%, rgba(197, 158, 103, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.banner-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.banner-tag {
  background: var(--gold);
  color: var(--wine-dark);
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 16px;
}

.banner-content h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--gold-lighter);
}

.banner-content p {
  color: #ebdcd0;
  font-size: 14.5px;
  line-height: 1.8;
  margin: 0 0 28px;
}

.banner-countdown {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.countdown-unit {
  background: rgba(18, 5, 8, 0.7);
  border: 1px solid rgba(197, 158, 103, 0.4);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 60px;
  text-align: center;
}

.countdown-unit .num {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-light);
  display: block;
}

.countdown-unit .lbl {
  font-size: 10px;
  color: #c9bbae;
}

.countdown-sep {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
}

.banner-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.code-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--gold-light);
}

.code-badge strong {
  color: #fff;
  letter-spacing: 1px;
}

/* ==========================================================================
   قصه ما و داستان کارگاه (Story Teaser)
   ========================================================================== */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 80px;
}

.story-media {
  position: relative;
}

.story-image {
  height: 480px;
  border-radius: var(--radius-md);
  background: linear-gradient(rgba(35, 10, 16, 0.1), rgba(35, 10, 16, 0.4)),
              url('assets/hero-termeh.png') center/cover;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.stamp {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: var(--wine);
  border: 2px dashed var(--gold);
  color: var(--gold-light);
  position: absolute;
  bottom: -30px;
  left: -30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.stamp span { font-size: 10px; font-weight: 600; }
.stamp strong { font-size: 26px; font-family: 'Playfair Display', serif; line-height: 1; margin: 4px 0; }
.stamp small { font-size: 9px; opacity: 0.85; }

.story-copy h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin: 0 0 20px;
  line-height: 1.3;
}

.story-copy h2 em {
  font-family: 'Playfair Display', serif;
  color: var(--wine-bright);
  font-style: normal;
}

.story-copy p {
  color: var(--ink-light);
  line-height: 1.9;
  font-size: 14.5px;
  margin-bottom: 16px;
}

.story-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 32px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.hl-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--wine);
}

.hl-item span {
  font-size: 11.5px;
  color: var(--muted);
}

/* ==========================================================================
   نظرات مشتریان (Testimonials)
   ========================================================================== */
.testimonials-section {
  background-color: var(--cream);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.quote-mark {
  font-size: 42px;
  line-height: 0.5;
  color: var(--gold-light);
  font-family: serif;
  position: absolute;
  top: 24px;
  left: 20px;
}

.testimonial-card blockquote {
  margin: 14px 0 20px;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-light);
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--wine);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.author-info strong {
  display: block;
  font-size: 13px;
}

.author-info small {
  font-size: 11px;
  color: var(--muted);
}

.verified-pill {
  font-size: 10px;
  color: var(--success);
  font-weight: 700;
  width: 100%;
}

/* ==========================================================================
   پرسش‌های متداول (FAQ Accordion)
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.faq-intro h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  margin: 0 0 16px;
}

.faq-intro p {
  color: var(--ink-light);
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 24px;
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--wine-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.acc-icon {
  font-size: 22px;
  line-height: 1;
  color: var(--gold-dark);
  transition: transform 0.2s;
}

.accordion details[open] .acc-icon {
  transform: rotate(45deg);
}

.accordion-content {
  padding-top: 14px;
}

.accordion-content p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.9;
}

/* ==========================================================================
   خبرنامه (Newsletter)
   ========================================================================== */
.newsletter-section {
  padding: 40px 0 90px;
}

.newsletter-card {
  background: linear-gradient(135deg, var(--wine) 0%, #22080e 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.newsletter-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(197, 158, 103, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-inner {
  max-width: 620px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.news-eyebrow {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.newsletter-inner h3 {
  font-size: clamp(20px, 2.8vw, 28px);
  margin: 10px 0 12px;
}

.newsletter-inner p {
  color: #e5d7cc;
  font-size: 14px;
  margin: 0 0 28px;
}

.news-form .input-wrap {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin-inline: auto;
}

.news-form input {
  flex: 1;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(197, 158, 103, 0.4);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0 16px;
  font-size: 13.5px;
  outline: none;
}

.news-form input:focus {
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, 0.12);
}

.form-feedback {
  min-height: 20px;
  font-size: 12px;
  margin-top: 10px;
}

.form-feedback.success { color: #8ee5a5; }
.form-feedback.error { color: #ff9e9e; }

/* ==========================================================================
   فوتر کامل سایت (Site Footer)
   ========================================================================== */
footer {
  background-color: var(--wine-dark);
  color: var(--cream);
  border-top: 2px solid var(--gold);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  padding: 70px 0 50px;
}

.footer-brand .brand {
  color: var(--cream);
  margin-bottom: 18px;
}

.footer-brand p {
  color: #c9bbae;
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 280px;
  margin: 0 0 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: var(--transition);
}

.social-circle-btn:hover {
  background-color: var(--gold);
  color: var(--wine-dark);
}

.footer-col h4 {
  font-size: 15px;
  color: var(--gold-light);
  margin: 0 0 20px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #cfc2b6;
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--gold-light);
  padding-right: 4px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #cfc2b6;
  margin-bottom: 12px;
}

.footer-contact-list svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(197, 158, 103, 0.2);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #aa9c8f;
}

/* ==========================================================================
   نوار ناوبری پایین در موبایل (Bottom Navigation Bar)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  height: 64px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(0,0,0,0.06);
  z-index: 90;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
}

.bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  position: relative;
  padding: 6px 12px;
}

.bottom-nav-link svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
  fill: none;
  stroke: currentColor;
}

.bottom-nav-link.active,
.bottom-nav-link:hover {
  color: var(--wine);
}

.bottom-nav-link .badge-count {
  top: 2px;
  left: 12px;
}

/* ==========================================================================
   صفحه فروشگاه (Shop Page)
   ========================================================================== */
.shop-page {
  padding: 30px 0 80px;
}

.breadcrumb-nav {
  margin-bottom: 24px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin-left: 8px;
  color: var(--line);
}

.breadcrumb-item a:hover {
  color: var(--wine);
}

.breadcrumb-item.active {
  color: var(--wine-dark);
  font-weight: 700;
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.shop-title {
  font-size: 28px;
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--wine-dark);
}

.shop-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.shop-search-bar {
  position: relative;
  width: 320px;
}

.shop-search-bar svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.shop-search-bar input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 35px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.shop-search-bar input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 158, 103, 0.15);
}

.clear-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--muted);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.mobile-filter-trigger {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wine);
}

.mobile-filter-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.shop-results-count {
  font-size: 13px;
  color: var(--ink-light);
}

.shop-sort-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.styled-select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  font-size: 12.5px;
  font-weight: 600;
}

.styled-select:focus {
  border-color: var(--gold);
}

/* چیپ‌های فیلتر فعال */
.active-filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.chips-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--cream-dark);
  color: var(--wine);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-remove {
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
}

.chip-remove:hover {
  color: var(--wine-bright);
}

.clear-all-chips {
  font-size: 11.5px;
  color: var(--wine);
  font-weight: 700;
  text-decoration: underline;
}

/* چیدمان سایدبار و گرید فروشگاه */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

.shop-sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  height: fit-content;
}

.filter-group {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-light);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--wine-dark);
}

.category-filter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-radio-item,
.filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-light);
  cursor: pointer;
}

.filter-radio-item input,
.filter-checkbox-item input {
  accent-color: var(--wine);
}

.filter-radio-item small {
  margin-right: auto;
  color: var(--muted);
  font-size: 11px;
}

.price-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--wine);
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-light);
}

.color-swatches-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-color: var(--c, #fff);
  box-shadow: 0 0 0 1px var(--line);
  transition: var(--transition);
}

.color-swatch-btn[data-color="all"] {
  border-radius: var(--radius-sm);
  width: auto;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  background-color: var(--cream);
  color: var(--ink);
}

.color-swatch-btn.active {
  box-shadow: 0 0 0 2px var(--wine);
  transform: scale(1.1);
}

.load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ==========================================================================
   صفحه جزئیات محصول (Product Detail)
   ========================================================================== */
.product-detail-page {
  padding: 30px 0 80px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.product-gallery {
  position: sticky;
  top: 95px;
  height: fit-content;
}

.gallery-main-view {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 480px;
  box-shadow: var(--shadow-sm);
}

.main-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

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

.thumb-btn {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn.active {
  border-color: var(--gold);
}

.gallery-trust-notes {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.product-summary {
  display: flex;
  flex-direction: column;
}

.product-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-category-link {
  font-size: 13px;
  color: var(--gold-dark);
  font-weight: 700;
}

.product-stock-tag {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.product-stock-tag.in-stock {
  background: #e7f5ec;
  color: var(--success);
}

.product-stock-tag.out-of-stock {
  background: #fbebed;
  color: var(--error);
}

.product-detail-title {
  font-size: clamp(22px, 2.5vw, 28px);
  margin: 0 0 14px;
  line-height: 1.4;
  color: var(--wine-dark);
}

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
}

.reviews-link {
  color: var(--muted);
  text-decoration: underline;
}

.product-detail-price-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.main-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--wine);
}

.main-price small {
  font-size: 13px;
  color: var(--muted);
}

.detail-old-price {
  font-size: 13.5px;
  color: var(--muted);
  margin-right: 10px;
}

.discount-badge-box {
  text-align: left;
}

.discount-percent {
  background: var(--wine);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 3px;
}

.discount-badge-box small {
  display: block;
  font-size: 11px;
  color: var(--success);
}

.product-short-description {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-light);
  margin: 0 0 24px;
}

.selection-group {
  margin-bottom: 20px;
}

.selection-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 10px;
}

.selection-label strong {
  color: var(--wine);
}

.product-color-options,
.product-size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-option-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  transition: var(--transition);
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-dot, #5c121e);
}

.color-option-btn.active {
  border-color: var(--wine);
  background: var(--cream);
  color: var(--wine);
  box-shadow: 0 0 0 1px var(--wine);
}

.size-option-btn {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  transition: var(--transition);
}

.size-option-btn.active {
  border-color: var(--wine);
  background: var(--cream);
  color: var(--wine);
}

.purchase-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.quantity-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  height: 48px;
}

.quantity-stepper.small {
  height: 36px;
}

.qty-btn {
  width: 40px;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--wine);
}

.quantity-stepper.small .qty-btn {
  width: 30px;
  font-size: 14px;
}

.qty-val {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.add-to-cart-cta {
  flex: 1;
  height: 48px;
  font-size: 14px;
}

.add-to-cart-cta svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  fill: none;
  stroke: currentColor;
}

.btn-added-state {
  background: var(--success) !important;
  color: #fff !important;
  border-color: var(--success) !important;
}

.product-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.perk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.perk-item svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  stroke-width: 1.6;
  fill: none;
  stroke: currentColor;
}

.perk-item strong {
  display: block;
  font-size: 12px;
  color: var(--wine-dark);
}

.perk-item small {
  font-size: 10.5px;
  color: var(--muted);
}

/* تب‌های محصول */
.product-tabs-container {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 60px;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.tab-nav-btn {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-nav-btn.active {
  color: var(--wine);
  border-bottom-color: var(--gold);
  background: #fff;
}

.tab-panes {
  padding: 32px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--line-light);
}

.specs-table td {
  padding: 14px 16px;
  font-size: 13.5px;
}

.spec-label {
  width: 30%;
  color: var(--muted);
  background: var(--cream);
  font-weight: 600;
}

.spec-value {
  color: var(--ink);
  font-weight: 500;
}

.care-instructions-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.care-instructions-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-light);
}

.care-bullet {
  color: var(--gold);
  font-size: 12px;
  margin-top: 2px;
}

.reviews-tab-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.user-reviews-stream {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.single-review {
  padding: 16px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.single-review.new-review-highlight {
  border-color: var(--gold);
  background: var(--gold-lighter);
}

.rev-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rev-date {
  font-size: 11px;
  color: var(--muted);
}

.add-review-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
}

.add-review-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.add-review-card p {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.star-rating-input {
  display: flex;
  gap: 4px;
  direction: ltr;
  justify-content: flex-end;
}

.star-choice {
  font-size: 22px;
  color: #ccc;
  cursor: pointer;
}

.star-choice.active {
  color: #d4a017;
}

/* ==========================================================================
   صفحه سبد خرید (Cart Page)
   ========================================================================== */
.cart-page {
  padding: 30px 0 80px;
}

.cart-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}

.cart-title {
  font-size: 26px;
  margin: 0;
  font-weight: 800;
  color: var(--wine-dark);
}

.cart-items-count {
  font-size: 13px;
  color: var(--muted);
}

/* نوار پیشرفت ارسال رایگان */
.free-shipping-progress-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.progress-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.truck-icon svg {
  width: 24px;
  height: 24px;
  color: var(--wine);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.progress-message {
  font-size: 13.5px;
  color: var(--ink-light);
}

.progress-bar-bg {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--wine) 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.cart-items-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cart-table-head {
  display: grid;
  grid-template-columns: 3.5fr 1.5fr 1.5fr 1.5fr 0.6fr;
  padding: 14px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.cart-row {
  display: grid;
  grid-template-columns: 3.5fr 1.5fr 1.5fr 1.5fr 0.6fr;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-light);
}

.cart-row:last-child {
  border-bottom: none;
}

.cart-prod-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-thumb-link {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.cart-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-name {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.cart-item-variants {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.variant-tag {
  font-size: 11px;
  color: var(--muted);
  background: var(--cream);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.unit-price {
  font-size: 13.5px;
}

.line-total {
  font-size: 14.5px;
  color: var(--wine);
}

.cart-remove-btn {
  color: var(--muted);
  transition: var(--transition);
}

.cart-remove-btn:hover {
  color: var(--error);
}

.cart-remove-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.cart-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.clear-cart-text-btn {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: underline;
}

.clear-cart-text-btn:hover {
  color: var(--error);
}

/* خلاصه فاکتور سبد */
.coupon-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.coupon-card h4 {
  margin: 0 0 12px;
  font-size: 14px;
}

.coupon-form {
  display: flex;
  gap: 8px;
}

.coupon-form input {
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-transform: uppercase;
}

.coupon-hints {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
}

.coupon-hints code {
  background: var(--cream);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--wine);
}

.applied-coupon-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e9f5ed;
  border: 1px solid #b7e4c7;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.coupon-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
}

.applied-coupon-box small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}

.remove-coupon-btn {
  font-size: 18px;
  color: var(--muted);
}

.order-summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.summary-title {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 800;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--ink-light);
}

.summary-row.discount-row {
  color: var(--wine-bright);
  font-weight: 600;
}

.free-text {
  color: var(--success);
  font-weight: 700;
}

.summary-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.summary-row.total-row {
  font-size: 15px;
  font-weight: 800;
  color: var(--wine-dark);
  align-items: baseline;
}

.grand-total {
  font-size: 22px;
  color: var(--wine);
}

.checkout-cta-btn {
  width: 100%;
  margin: 20px 0 16px;
  font-size: 14px;
}

.summary-guarantees {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

/* حالت خالی سبد خرید و صفحات */
.empty-cart-view,
.empty-state-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 60px 30px;
  text-align: center;
  max-width: 580px;
  margin: 40px auto;
  box-shadow: var(--shadow-sm);
}

.empty-cart-icon,
.empty-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}

.empty-cart-icon svg,
.empty-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.empty-cart-view h2,
.empty-state-card h2,
.empty-state-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.empty-cart-view p,
.empty-state-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.empty-cart-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* ==========================================================================
   فرایند پرداخت (Checkout Stepper & Steps)
   ========================================================================== */
.checkout-page {
  padding: 30px 0 80px;
}

.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  max-width: 820px;
  margin-inline: auto;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.step-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.step-item.active .step-circle {
  border-color: var(--wine);
  color: var(--wine);
  box-shadow: 0 0 0 4px rgba(56, 14, 22, 0.1);
}

.step-item.completed .step-circle {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--gold-light);
}

.step-item.active .step-label {
  color: var(--wine);
  font-weight: 700;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 -10px 24px;
  z-index: 1;
}

.step-connector.active {
  background: var(--wine);
}

.checkout-step-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
  max-width: 820px;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}

.step-panel-header {
  margin-bottom: 28px;
}

.step-panel-header h2 {
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--wine-dark);
}

.step-panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-light);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 13px;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.step-nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

/* کارت‌های انتخاب آدرس در تسویه */
.saved-addresses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.address-choice-card {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: var(--transition);
}

.address-choice-card input {
  margin-top: 4px;
  accent-color: var(--wine);
}

.address-choice-card.selected {
  border-color: var(--wine);
  background: var(--cream);
}

.address-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.badge-default {
  background: var(--wine);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.address-text {
  font-size: 12.5px;
  color: var(--ink-light);
  line-height: 1.6;
  margin: 0 0 8px;
}

.address-card-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}

.add-new-address-tile {
  border: 2px dashed var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--wine);
  padding: 24px;
  transition: var(--transition);
}

.add-new-address-tile:hover {
  background: var(--cream);
}

.plus-icon {
  font-size: 24px;
  font-weight: 700;
}

.inline-address-form-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 24px;
}

.form-actions-inline {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* شیوه‌های ارسال */
.shipping-methods-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shipping-method-card {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.shipping-method-card input {
  margin-top: 4px;
  accent-color: var(--wine);
}

.shipping-method-card.selected {
  border-color: var(--wine);
  background: var(--cream);
}

.shipping-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.shipping-cost-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
}

.shipping-card-body p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* بازبینی و انتخاب درگاه */
.checkout-review-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 28px;
}

.checkout-review-summary h4 {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--wine);
}

.checkout-review-summary p {
  margin: 0 0 6px;
  font-size: 12.5px;
}

.checkout-review-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checkout-review-summary li {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line-light);
}

.payment-gateways-section {
  margin-bottom: 28px;
}

.payment-gateways-section h3 {
  font-size: 15px;
  margin: 0 0 14px;
}

.gateways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gateway-card {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.gateway-card input {
  display: none;
}

.gateway-card.selected {
  border-color: var(--wine);
  background: var(--cream);
}

.gw-logo {
  font-size: 26px;
  display: block;
  margin-bottom: 8px;
}

.gateway-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.gateway-card small {
  font-size: 11px;
  color: var(--muted);
}

.checkout-final-pay-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream-dark);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin-top: 24px;
}

.pay-amount {
  font-size: 22px;
  color: var(--wine);
  margin-right: 8px;
}

/* صفحه موفقیت سفارش (فاکتور) */
.order-success-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px;
  max-width: 760px;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.success-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e7f5ec;
  color: var(--success);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.success-icon-badge svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.order-success-card h2 {
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--wine-dark);
}

.success-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 30px;
}

.invoice-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: right;
  margin-bottom: 30px;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--gold);
  margin-bottom: 20px;
}

.invoice-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  gap: 4px;
}

.invoice-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  font-size: 12.5px;
  margin-bottom: 16px;
}

.invoice-details-grid small {
  display: block;
  color: var(--muted);
}

.invoice-address-line {
  font-size: 12.5px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  margin-bottom: 18px;
}

.invoice-address-line small {
  display: block;
  color: var(--muted);
}

.invoice-items-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
}

.inv-head {
  display: grid;
  grid-template-columns: 3fr 1fr 2fr;
  padding: 8px 14px;
  background: var(--cream);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.inv-row {
  display: grid;
  grid-template-columns: 3fr 1fr 2fr;
  padding: 10px 14px;
  border-top: 1px solid var(--line-light);
  font-size: 12.5px;
}

.invoice-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  font-weight: 800;
  color: var(--wine);
  padding-top: 10px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   حساب کاربری (Account View)
   ========================================================================== */
.account-page {
  padding: 30px 0 80px;
}

.account-dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.account-sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.account-profile-card {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 16px;
}

.user-avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--wine);
  border: 2px solid var(--gold);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 12px;
}

.user-name {
  margin: 0 0 4px;
  font-size: 16px;
}

.user-phone {
  font-size: 12.5px;
  color: var(--muted);
  display: block;
}

.user-join-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}

.account-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-light);
  transition: var(--transition);
  text-align: right;
  width: 100%;
}

.account-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.account-nav-btn:hover,
.account-nav-btn.active {
  background: var(--cream);
  color: var(--wine);
}

.logout-nav-btn {
  color: var(--error);
  margin-top: 14px;
  border-top: 1px solid var(--line-light);
  padding-top: 16px;
}

.account-main-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.account-tab-panel {
  display: none;
}

.account-tab-panel.active {
  display: block;
}

.welcome-banner {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 28px;
}

.welcome-banner h2 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--wine-dark);
}

.welcome-banner p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-light);
}

.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
}

.stat-icon {
  font-size: 28px;
}

.stat-val {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--wine);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.order-history-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 18px;
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 14px;
}

.order-meta-info {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.order-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.status-delivered { background: #e7f5ec; color: var(--success); }
.status-processing { background: #fff4e5; color: #b7791f; }

.order-items-preview {
  margin-bottom: 12px;
  font-size: 13px;
}

.order-summary-tags {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}

.order-card-actions {
  margin-top: 14px;
  text-align: left;
}

.account-addresses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.address-manage-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: var(--paper);
}

.address-manage-card.default {
  border-color: var(--gold);
}

.addr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.default-badge {
  background: var(--wine);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.set-default-btn {
  font-size: 11px;
  color: var(--gold-dark);
  text-decoration: underline;
}

.addr-line {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 10px;
}

.addr-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.addr-actions {
  border-top: 1px solid var(--line-light);
  padding-top: 10px;
  text-align: left;
}

.addr-del-btn {
  color: var(--error);
  font-size: 12px;
}

/* ==========================================================================
   صفحه داستان ترمه و درباره ما (Story Page)
   ========================================================================== */
.story-page {
  padding: 30px 0 80px;
}

.story-hero-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.story-hero-copy h1 {
  font-size: clamp(30px, 3.8vw, 46px);
  margin: 0 0 20px;
  line-height: 1.3;
}

.story-hero-copy h1 em {
  color: var(--wine-bright);
  font-style: normal;
  font-family: 'Playfair Display', serif;
}

.story-hero-copy p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-light);
}

.story-visual-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-md);
}

.floating-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--wine);
  color: var(--gold-light);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--gold);
}

.floating-badge strong { font-size: 22px; display: block; font-family: 'Playfair Display', serif; }
.floating-badge small { font-size: 10.5px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.value-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  display: block;
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--wine-dark);
}

.value-card p {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.8;
  margin: 0;
}

.timeline-steps {
  max-width: 820px;
  margin-inline: auto;
  position: relative;
  padding: 20px 0;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 2px;
  background: var(--gold);
}

.timeline-row {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  position: relative;
}

.timeline-row .timeline-card {
  width: calc(50% - 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.timeline-row .timeline-badge {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  border: 2px solid var(--gold);
  z-index: 2;
}

.timeline-row.reverse {
  flex-direction: row-reverse;
}

.artisan-quote-section {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  margin-top: 60px;
}

.quote-container {
  max-width: 720px;
  margin-inline: auto;
}

.quote-sign {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 16px;
}

.artisan-quote-section blockquote {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.9;
  color: var(--wine-dark);
  font-style: italic;
  margin: 0 0 24px;
}

.quote-author strong { display: block; font-size: 15px; }
.quote-author small { font-size: 12px; color: var(--muted); }
.quote-cta { margin-top: 30px; }

/* ==========================================================================
   صفحه تماس با ما (Contact Page)
   ========================================================================== */
.contact-page {
  padding: 30px 0 80px;
}

.contact-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.contact-header h1 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0 0 12px;
  color: var(--wine-dark);
}

.contact-header p {
  color: var(--ink-light);
  font-size: 14.5px;
  margin: 0;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.map-placeholder-card {
  height: 220px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(35, 10, 16, 0.9), rgba(56, 14, 22, 0.85)),
              url('assets/hero-termeh.png') center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
  overflow: hidden;
}

.map-pin-pulse {
  font-size: 32px;
  margin-bottom: 6px;
}

.map-placeholder-card strong {
  display: block;
  font-size: 16px;
  color: var(--gold-light);
}

.map-placeholder-card small {
  font-size: 12px;
  color: #e5d7cc;
}

.contact-details-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-card-item h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--wine-dark);
}

.contact-card-item p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-light);
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--wine-dark);
}

.contact-form-card p {
  margin: 0 0 24px;
  font-size: 13.5px;
  color: var(--muted);
}

.contact-alert-msg {
  min-height: 24px;
  font-size: 13px;
  margin-top: 14px;
  font-weight: 600;
}

.contact-alert-msg.success { color: var(--success); }
.contact-alert-msg.error { color: var(--error); }

/* ==========================================================================
   صفحه سوالات متداول (FAQ Page)
   ========================================================================== */
.faq-page {
  padding: 30px 0 80px;
}

.faq-page-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 36px;
}

.faq-page-header h1 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0 0 10px;
}

.faq-search-wrap {
  position: relative;
  max-width: 580px;
  margin: 0 auto 28px;
}

.faq-search-wrap svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--muted);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.faq-search-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  outline: none;
  box-shadow: var(--shadow-sm);
}

.faq-search-wrap input:focus {
  border-color: var(--gold);
}

.faq-category-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.faq-pill {
  padding: 8px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-light);
  transition: var(--transition);
}

.faq-pill:hover,
.faq-pill.active {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

.faq-badge-category {
  font-size: 11px;
  background: var(--cream-dark);
  color: var(--wine);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-left: 10px;
}

.faq-accordion-container {
  max-width: 840px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  box-shadow: var(--shadow-sm);
}

.faq-support-box {
  max-width: 840px;
  margin: 40px auto 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.support-text h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.support-text p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.support-actions {
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   مودال‌ها، توست‌ها و پنجره‌های پاپ‌آپ
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 6, 9, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  width: min(600px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  margin: 0;
  font-size: 17px;
  color: var(--wine-dark);
}

.modal-close-btn {
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
}

.modal-close-btn:hover {
  color: var(--wine);
}

.modal-body {
  padding: 24px;
}

/* محتوای مودال ورود و ثبت‌نام */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  padding: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.auth-tab-btn.active {
  color: var(--wine);
  border-bottom-color: var(--gold);
}

.auth-tab-panel {
  display: none;
}

.auth-tab-panel.active {
  display: block;
}

.auth-intro {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.auth-demo-hint {
  margin-top: 16px;
  padding: 10px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  color: var(--muted);
}

/* مودال جستجوی سریع هوشمند */
.search-modal-input-wrap {
  position: relative;
  margin-bottom: 16px;
}

.search-modal-input-wrap svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--muted);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.search-modal-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}

.search-modal-input-wrap input:focus {
  border-color: var(--gold);
}

.quick-search-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.search-chip {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 11.5px;
  color: var(--ink);
  cursor: pointer;
}

.search-chip:hover {
  background: var(--wine);
  color: #fff;
}

.quick-search-results {
  max-height: 380px;
  overflow-y: auto;
}

.search-placeholder,
.search-empty {
  text-align: center;
  padding: 30px 10px;
  color: var(--muted);
  font-size: 13px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light);
  transition: var(--transition);
}

.search-result-item:hover {
  background: var(--cream);
  border-color: var(--gold);
}

.search-result-item img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.search-result-details h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
}

.search-result-sub {
  display: flex;
  gap: 10px;
  font-size: 11.5px;
}

.cat-tag {
  color: var(--muted);
}

.price-tag {
  color: var(--wine);
}

.search-arrow {
  margin-right: auto;
  font-size: 16px;
  color: var(--gold-dark);
}

/* سامانه اعلان توست (Toast Notification) */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background: var(--wine-dark);
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  max-width: 380px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.toast-item.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-item.hide {
  opacity: 0;
  transform: translateY(-15px);
}

.toast-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-light);
  stroke-width: 2;
  fill: none;
}

.toast-success .toast-icon svg { stroke: #8ee5a5; }
.toast-error .toast-icon svg { stroke: #ff9e9e; }

.toast-close {
  margin-right: auto;
  font-size: 18px;
  color: var(--gold-light);
  opacity: 0.7;
}

.toast-close:hover { opacity: 1; }

/* اسکلت لودینگ (Skeleton Loading Shimmer) */
.skeleton-card {
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, #ede7df 25%, #f6f0e8 50%, #ede7df 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-media {
  height: 270px;
  width: 100%;
}

.skeleton-body {
  padding: 20px;
}

.skeleton-line {
  height: 14px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 90%; }

/* واکنش‌گرایی دراور موبایل */
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 101;
}

.drawer-backdrop.active {
  display: block;
}

.mobile-only {
  display: none;
}

/* ==========================================================================
   طراحی واکنش‌گرا (Responsive Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero {
    min-height: 520px;
  }
  .hero-copy {
    padding: 70px 0;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefit-item:nth-child(2)::after {
    display: none;
  }
  .product-detail-layout {
    gap: 32px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  .desktop-only {
    display: none !important;
  }
  .announcement {
    height: 36px;
    font-size: 11px;
  }
  .announcement-links {
    display: none;
  }
  .site-header {
    height: 70px;
  }
  .desktop-nav {
    display: none;
  }
  .menu-button {
    display: flex;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 64px; /* فضا برای نوار ناوبری پایین */
  }

  /* Hero */
  .hero {
    min-height: auto;
    text-align: center;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(23, 7, 10, 0.6) 0%, rgba(23, 7, 10, 0.9) 100%);
  }
  .hero-image {
    inset: 0;
    opacity: 0.45;
  }
  .hero-copy {
    padding: 60px 0;
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-note {
    justify-content: center;
  }
  .hero-caption {
    display: none;
  }

  /* دسته‌بندی و کارت‌ها */
  .category-grid {
    grid-template-columns: 1fr;
  }
  .category-card {
    height: 240px;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .benefit-item::after {
    display: none !important;
  }
  .benefit-item {
    border-bottom: 1px solid rgba(197, 158, 103, 0.15);
  }
  .story-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .story-image {
    height: 340px;
  }
  .stamp {
    left: 10px;
    bottom: -20px;
    width: 100px;
    height: 100px;
  }
  .stamp strong {
    font-size: 20px;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .special-banner {
    padding: 32px 20px;
  }
  .banner-countdown {
    gap: 6px;
  }
  .countdown-unit {
    min-width: 48px;
    padding: 6px 8px;
  }
  .countdown-unit .num {
    font-size: 16px;
  }

  /* فروشگاه در موبایل و دراور فیلتر */
  .shop-header {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-search-bar {
    width: 100%;
  }
  .mobile-filter-trigger {
    display: flex;
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 300px;
    z-index: 102;
    overflow-y: auto;
    border-radius: 0;
    transform: translateX(100%);
    transition: var(--transition);
  }
  .shop-sidebar.drawer-open {
    transform: translateX(0);
  }
  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .drawer-close-btn {
    font-size: 24px;
    color: var(--muted);
  }
  .filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  /* جزئیات محصول در موبایل */
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .gallery-main-view {
    height: 340px;
  }
  .product-perks {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .reviews-tab-layout {
    grid-template-columns: 1fr;
  }
  .tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
  }
  .tab-panes {
    padding: 20px 14px;
  }

  /* سبد خرید در موبایل */
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-table-head {
    display: none;
  }
  .cart-row {
    grid-template-columns: 1fr;
    gap: 12px;
    position: relative;
    padding: 16px;
  }
  .cart-del-cell {
    position: absolute;
    top: 14px;
    left: 14px;
  }
  .cell-label {
    font-size: 11px;
    color: var(--muted);
    margin-left: 6px;
  }

  /* تسویه حساب */
  .checkout-stepper {
    margin-bottom: 24px;
  }
  .step-label {
    display: none;
  }
  .checkout-step-panel {
    padding: 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .saved-addresses-grid {
    grid-template-columns: 1fr;
  }
  .gateways-grid {
    grid-template-columns: 1fr;
  }
  .checkout-review-summary {
    grid-template-columns: 1fr;
  }
  .checkout-final-pay-card {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* حساب کاربری در موبایل */
  .account-dashboard-layout {
    grid-template-columns: 1fr;
  }
  .account-stats-grid {
    grid-template-columns: 1fr;
  }
  .account-addresses-grid {
    grid-template-columns: 1fr;
  }

  /* تماس با ما و داستان */
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .timeline-steps::before {
    right: 18px;
    transform: none;
  }
  .timeline-row,
  .timeline-row.reverse {
    flex-direction: row;
    padding-right: 48px;
  }
  .timeline-row .timeline-card {
    width: 100%;
  }
  .timeline-row .timeline-badge {
    right: 0;
    transform: none;
  }
  .faq-support-box {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .support-actions {
    flex-direction: column;
    width: 100%;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
