:root {
  /* --- Luxury Light Palette --- */
  
  /* Backgrounds: تمیز، روشن و با کنتراست کم برای چشم */
  --primary-bg: #FAFAFA; /* سفید مایل به خاکستری خیلی روشن (برای کل صفحه) */
  --secondary-bg: #FFFFFF; /* سفید خالص (برای سکشن‌ها) */
  --card-bg:rgba(255, 255, 255, 0.877); /* شیشه‌ای سفید */
  
  /* Typography: مشکی خالص استفاده نمی‌کنیم چون چشم را خسته می‌کند */
  --text-color: #2D3436; /* خاکستری تیره و شیک */
  --text-color-faded: rgba(45, 52, 54, 0.6); /* برای متن‌های فرعی */
  
  /* Accents: طلایی شامپاینی - لوکس و جذاب */
  --accent-color: rgb(205,153,103); 
  --hover-bg: rgba(197, 160, 89, 0.08); /* طلایی خیلی خیلی کمرنگ برای هاور */
  
  /* Borders & Overlays */
  --border-color: rgba(197, 160, 89, 0.2); /* خطوط نازک طلایی */
  --overlay-bg: rgba(255, 255, 255, 0.8);
  --hero-layer: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(250,250,250,0.4) 100%);

  /* --- Glassmorphism Effect (شیشه‌ای روشن) --- */
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-blur: 20px;

  /* --- Dynamics --- */
  --card-radius: 24px; /* گوشه‌های گردتر برای حس مدرن بودن */
  --transition-smooth: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-standard: all 0.3s ease-in-out;
  
  /* --- Shadows (جادوی اصلی تم لوکس اینجاست) --- */
  /* سایه بسیار نرم و پخش شده که حس معلق بودن می‌دهد */
  --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-light: 0 4px 15px rgba(197, 160, 89, 0.15); /* هاله طلایی */
  --shadow-dark: rgba(0, 0, 0, 0.5);

  /* Status Colors (کمی ملایم شده تا جیغ نباشند) */
  --color-success: #00B894;
  --color-info: #0984E3;
  --color-warning: #FDcB6E;
  --color-danger: #FF7675;
}


@font-face {
  font-family: 'Aparat';
  /* توضیح: ../ یعنی از پوشه styles بیا بیرون، بعد برو تو fonts */
  src: url('../fonts/Aparat.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Aparat', Tahoma, sans-serif !important;
  -webkit-font-smoothing: antialiased; /* متن را در مک و آیفون نرم‌تر و زیباتر می‌کند */
  -moz-osx-font-smoothing: grayscale;}

body {
  background-color: var(--primary-bg);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  line-height: 1.5;
  font-family: 'Aparat', Tahoma, sans-serif !important;
    -webkit-font-smoothing: antialiased; /* متن را در مک و آیفون نرم‌تر و زیباتر می‌کند */
    -moz-osx-font-smoothing: grayscale;  
}

.container {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 clamp(15px, 3vw, 30px);
}

/* ===== Scrollbar Styles ===== */
@media (min-width: 769px) {
  body::-webkit-scrollbar {
    width: 10px;
  }

  body::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 10px;
  }

  body::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
  }

  body::-webkit-scrollbar-thumb:hover {
    background: var(--text-color);
  }
}

@media (max-width: 768px) {
  body::-webkit-scrollbar {
    width: 0;
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-bg);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 8px;
  border: 2px solid var(--secondary-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #b38057;
}

/* ===== Header & Navigation ===== */
header {
  background-color: var(--primary-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
box-shadow: rgba(0, 0, 0, 0.123) 0rem 0.5rem 10px;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;


}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-standard);
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  width:70px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo span {
  margin-top: 0.06rem;
}



/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-standard);
  opacity: 1;
}

.action-btn:hover {
  background-color: var(--hover-bg);
  transform: translateY(-2px);
}



/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  opacity: 1;
}

.hamburger-menu span {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: var(--transition-standard);
  transform-origin: left;
}

.hamburger-menu:hover span {
  background-color: var(--accent-color);
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Navigation */
nav {
  background-color: var(--secondary-bg);
  padding: 5px 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  padding: 0;
}

.nav-links li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
  padding: 5px 0;
  opacity: 1;
  font-weight: 500;
}

.nav-links li a:hover {
  color: var(--accent-color);
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  text-decoration: none;
  color: var(--text-color);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--secondary-bg);
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border-radius: 10px;
  overflow: hidden;
  padding: 5px;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content li a {
  padding: 12px 15px;
  display: block;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.dropdown-content li a:hover {
  background-color: var(--hover-bg);
  color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

/* User Actions */
.user-actions {
  display: flex;
  gap: 15px;
}

.auth-btn {
  background-color: transparent;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-standard);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.auth-btn:hover {
  background-color: var(--text-color);
  color: var(--primary-bg);
  transform: translateY(-2px);
}

.auth-btn.signup {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #000;
  font-weight: 700;
}

.auth-btn.signup:hover {
  background-color: #c08b5d;
  border-color: #c08b5d;
}

/* ===== Modern Mobile Menu 2025 Optimized ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -110%;
  width: 87%; /* کمی عریض‌تر برای دسترسی بهتر */
  max-width: 400px;
  height: 100%;
  background: linear-gradient(145deg, var(--secondary-bg), var(--primary-bg));
  z-index: 200000;
  padding: 30px 25px;
  transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

/* دکمه بستن مدرن */
.close-menu {
  align-self: flex-end;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--accent-color);
  font-size: 1.2rem;
  cursor: pointer;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  transition: var(--transition-standard);
}

.close-menu:hover {
  background-color: var(--accent-color);
  color: var(--primary-bg);
  transform: rotate(90deg);
}

/* استایل لیست لینک‌ها */
.mobile-nav-links {
  list-style: none;
  margin-top: 20px;
  padding: 0;
}

.mobile-nav-links li {
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
}

.mobile-menu.active .mobile-nav-links li {
  opacity: 1;
  transform: translateX(0);
}

/* تاخیر در انیمیشن برای ورود پله‌ای آیتم‌ها */
.mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: transparent;
  transition: all 0.3s ease;
  border-right: 3px solid transparent;
}

.mobile-nav-links a:hover, 
.mobile-nav-links a.active {
  background: var(--hover-bg);
  color: var(--accent-color);
  border-right: 3px solid var(--accent-color);
  padding-right: 25px;
}

/* دراپ‌داون موبایل */
.mobile-dropbtn {
  justify-content: space-between;
}

.mobile-dropdown-content {
  list-style: none;
  padding-right: 15px;
  margin: 5px 0 15px 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.mobile-dropdown-li.active .mobile-dropdown-content {
  max-height: 1000px;
  transition: max-height 1s ease-in-out;
  padding: 10px 0;
}

.mobile-dropdown-content li a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-color-faded);
  border-right: none;
  padding: 10px 15px;
}

/* اورلی پشت منو */
.overlay {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.6);
}
/* Hero Banner Modern Style 2025 */
.hero-banner {
    position: relative;
    margin: 10px 10px 40px;
    background-color:  var( --primary-bg);
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svgjs='http://svgjs.dev/svgjs' width='1440' height='560' preserveAspectRatio='none' viewBox='0 0 1440 560'%3e%3cg mask='url(%26quot%3b%23SvgjsMask1004%26quot%3b)' fill='none'%3e%3crect width='1440' height='560' x='0' y='0' fill='rgba(70%2c 70%2c 70%2c 1)'%3e%3c/rect%3e%3cpath d='M0 0L669.52 0L0 767.87z' filter='url(%23SvgjsFilter1005)' fill='rgba(55%2c 47%2c 8%2c 1)'%3e%3c/path%3e%3cpath d='M0 560L669.52 560L0 -207.87z' filter='url(%23SvgjsFilter1005)' fill='rgba(55%2c 47%2c 8%2c 1)'%3e%3c/path%3e%3cpath d='M1440 560L770.48 560L1440 -207.87z' filter='url(%23SvgjsFilter1005)' fill='rgba(55%2c 47%2c 8%2c 1)'%3e%3c/path%3e%3cpath d='M1440 0L770.48 0L1440 767.87z' filter='url(%23SvgjsFilter1005)' fill='rgba(55%2c 47%2c 8%2c 1)'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cmask id='SvgjsMask1004'%3e%3crect width='1440' height='560' fill='white'%3e%3c/rect%3e%3c/mask%3e%3cfilter height='130%25' id='SvgjsFilter1005'%3e%3cfeGaussianBlur in='SourceAlpha' stdDeviation='5' result='TopLeftG'%3e%3c/feGaussianBlur%3e%3cfeOffset dx='-5' dy='-5' in='TopLeftG' result='TopLeftO'%3e%3c/feOffset%3e%3cfeComponentTransfer in='TopLeftO' result='TopLeftC'%3e%3cfeFuncA type='linear' slope='0.7'%3e%3c/feFuncA%3e%3c/feComponentTransfer%3e%3cfeGaussianBlur in='SourceAlpha' stdDeviation='5' result='TopRightG'%3e%3c/feGaussianBlur%3e%3cfeOffset dx='5' dy='-5' in='TopRightG' result='TopRightO'%3e%3c/feOffset%3e%3cfeComponentTransfer in='TopRightO' result='TopRightC'%3e%3cfeFuncA type='linear' slope='0.7'%3e%3c/feFuncA%3e%3c/feComponentTransfer%3e%3cfeGaussianBlur in='SourceAlpha' stdDeviation='5' result='BottomLeftG'%3e%3c/feGaussianBlur%3e%3cfeOffset dx='-5' dy='5' in='BottomLeftG' result='BottomLeftO'%3e%3c/feOffset%3e%3cfeComponentTransfer in='BottomLeftO' result='BottomLeftC'%3e%3cfeFuncA type='linear' slope='0.7'%3e%3c/feFuncA%3e%3c/feComponentTransfer%3e%3cfeGaussianBlur in='SourceAlpha' stdDeviation='5' result='BottomRightG'%3e%3c/feGaussianBlur%3e%3cfeOffset dx='5' dy='5' in='BottomRightG' result='BottomRightO'%3e%3c/feOffset%3e%3cfeComponentTransfer in='BottomRightO' result='BottomRightC'%3e%3cfeFuncA type='linear' slope='0.7'%3e%3c/feFuncA%3e%3c/feComponentTransfer%3e%3cfeMerge%3e%3cfeMergeNode in='TopLeftC'%3e%3c/feMergeNode%3e%3cfeMergeNode in='TopRightC'%3e%3c/feMergeNode%3e%3cfeMergeNode in='BottomLeftC'%3e%3c/feMergeNode%3e%3cfeMergeNode in='BottomRightC'%3e%3c/feMergeNode%3e%3cfeMergeNode in='SourceGraphic'%3e%3c/feMergeNode%3e%3c/feMerge%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e"); /* SVG خود را اینجا بگذارید */
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    min-height: 400px;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
}

.hero-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* دو ستون مساوی */
    width: 100%;
    padding: 20px;
    gap: 15px;
    align-items: center;
    direction: rtl;
}

/* بخش سمت راست (متن) */
.hero-content-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 10px;
}

.hero-logo-box {
    position: relative;
    width: 70px;
    margin-bottom: 15px;
}

.hero-logo-small {
    width: 100%;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

.badge-new {
    font-size: 0.7rem;
    color: #d49a69;
    background: rgba(212, 154, 105, 0.1);
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(212, 154, 105, 0.3);
}

.hero-title {
    color: #fff;
    font-size: clamp(1.4rem, 6vw, 2.5rem);
    font-weight: 900;
    margin: 10px 0;
}

.accent-gold { color: #d49a69; }

.hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-cta {
    background: #d49a69;
    color: #372f08;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.7rem;
    transition: 0.3s;
}

/* بخش سمت چپ (محصولات) */
.hero-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    
}

.mini-product-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.mini-product-item:hover {
    transform: translateY(-5px);
    border-color: #d49a69;
}

.mini-img-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    z-index: 999;
}

.mini-info {
    text-align: center;
    margin-top: 8px;
}

.p-title {
    display: block;
    color: #fff;
    font-size: 0.65rem;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-price {
    color: #d49a69;
    font-size: 0.8rem;
    font-weight: bold;
}

/* تنظیمات موبایل */
@media (max-width: 768px) {
    .hero-banner {
        min-height: auto;
        margin: 10px;
    }
    .hero-grid-container {
        grid-template-columns: 1fr 1.1fr; /* حفظ ساختار بنری در موبایل */
        padding: 15px 10px;
    }
    .hero-subtitle { display: none; } /* حذف برای خلوت شدن در موبایل */
    .hero-title { font-size: 1.2rem; }
    .hero-cta{font-size: 0.6rem;}
}

/* ===== Product Scrollbar ===== */
.product-scrollbar {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 2rem;
  margin-top: -2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--secondary-bg);
  -webkit-overflow-scrolling: touch;
}

/* ===== Section Titles ===== */
.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin: 60px 0 30px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(212, 154, 105, 0.3);
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background-color: var(--accent-color);
}

.see-all {
  font-size: 0.9rem;
  color: #000000;
  background-color: var(--accent-color);
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.see-all i {
  transition: transform 0.3s;
}

.see-all:hover {
  background-color: #c08b5d;
  color: #fff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.see-all:hover i {
  transform: translateX(5px);
}



.products-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* مخفی کردن اسکرول‌بار در فایرفاکس */
    scroll-snap-type: x mandatory; /* پرش نرم بین کارت‌ها در موبایل */
    padding: 10px;
}

.products-container::-webkit-scrollbar {
    display: none; /* مخفی کردن اسکرول‌بار در کروم و سافاری */
}

/* کارت محصول مدرن */
.product-card {
    flex: 0 0 calc(70% - 10px); /* در موبایل ۷۰٪ عرض را می‌گیرد تا کارت بعدی دیده شود */
    scroll-snap-align: center;
    background: var(--glass-bg);

    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    will-change: transform; /* بهینه سازی برای رندر گرافیکی */
}

/* تنظیمات دسکتاپ */
@media (min-width: 768px) {
    .product-card {
        flex: 0 0 calc(25% - 12px);
    }
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* تصویر با نسبت ابعاد ثابت برای جلوگیری از لگ در بارگذاری */
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* مربع کامل - ترند ۲۰۲۵ */
    overflow: hidden;
    background: #2a2406;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotate(2deg); /* کمی چرخش برای حس داینامیک */
}

/* اطلاعات محصول */
.product-info {
    padding: 15px;
    text-align: right;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #eee;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* جلوگیری از بهم ریختگی متن طولانی */
}

.product-price {
    display: flex;
    flex-direction: column; /* قیمت اصلی و تخفیف زیر هم */
    gap: 4px;
    margin-bottom: 15px;
}

.product-price .current-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.product-price .original-price {
    font-size: 0.85rem;
    color: #888;
    text-decoration: line-through;
}

/* دکمه افزودن به سبد خرید مدرن */
.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart {
    background: var(--accent-color);
    border: none;
    color: #372f08;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 24px;
    border-radius: 12px;
    height: fit-content;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.add-to-cart:active {
    transform: scale(0.95);
}

.add-to-cart i {
    font-size: 1.1rem;
}

/* بج (Badge) تخفیف */
.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}
/* ===== Layout & Header ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 10px;
}

.title-area h2 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    color: #333;
    /* یا متغیر رنگ متن شما */
}

.title-area .see-all {
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
    transition: color 0.3s;
}

.title-area .see-all:hover {
    color: var(--accent-color, #007bff);
}

/* ===== Scroll Wrapper ===== */
.categories-wrapper {
  /* --- ادغام ویژگی‌های کانتینر --- */
  width: 100%;
  max-width: 1500px;
  /* محدودیت عرض کانتینر */
  margin: 0 auto 10px auto;
  /* تراز وسط + حفظ فاصله پایین ۱۰ پیکسلی */

  /* ترکیب پدینگ کانتینر (چپ و راست) با پدینگ رپر (بالا و پایین) */
  /* Top | Right | Bottom | Left */
  padding: 10px clamp(15px, 3vw, 30px) 30px clamp(15px, 3vw, 30px);

  box-sizing: border-box;
  /* اطمینان از محاسبه صحیح پدینگ در عرض کلی */

  /* --- ویژگی‌های اصلی رپر --- */
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;

  /* مخفی کردن اسکرول‌بار */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */

  /* UX */
  scroll-snap-type: x mandatory;
  background-color: var(--accent-color);
  border-radius: 24px;
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* ===== Circular Item ===== */
.category-circle-item {
    flex: 0 0 auto;
    /* جلوگیری از تغییر سایز */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100px;
    /* عرض ثابت برای هر آیتم */
    scroll-snap-align: start;
    /* همگام با اسکرول اسنپ */
    cursor: pointer;
    group: hover;
    /* برای استفاده در هاور */
}

/* حلقه دور عکس (برای افکت گرادینت یا بوردر) */
.img-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    /* فاصله عکس تا بوردر رنگی */

    /* ایجاد بوردر گرادینت شیک */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    /* اگر طرح سایت ساده است، کد بالا را حذف و border معمولی بدهید */

    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* تصویر داخل دایره */
.category-circle-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    /* جداکننده سفید بین عکس و گرادینت */
    background-color: #fff;
    transition: filter 0.3s;
}

/* نام دسته‌بندی */
.category-name {
    margin-top: 10px;
    font-size: 0.7rem;
    color: #333;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    transition: color 0.5s;
}

/* ===== Hover Effects (UX Improvement) ===== */
.category-circle-item:hover .img-ring {
    transform:  rotate(6deg);
    /* چرخش و بزرگ‌نمایی */
}

.category-circle-item:hover .category-name {
    color: var(--accent-color, #dc2743);
    font-weight: 700;
}

/* Active State (Click) */
.category-circle-item:active .img-ring {
    transform: scale(0.95);
}

/* ===== Navigation Buttons (Desktop) ===== */
.cat-nav-buttons {
    display: flex;
    gap: 10px;
}

.cat-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #555;
}

.cat-nav-btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

    /* در موبایل دکمه‌ها را حذف کن چون با لمس راحت‌تر است */
    .cat-nav-buttons {
        display: none;
    }

    .category-circle-item {
        width: 70px;
    }

    .img-ring {
        width: 70px;
        height: 70px;
    }

    .category-name {
        font-size: 0.5rem;
    }
}
/* ===== Featured Collection ===== */
.featured-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin: 60px 0;
}

.featured-title {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: var(--accent-color);
  position: relative;
  display: inline-block;
}

.featured-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.featured-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
}

.featured-category {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  height: 150px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.featured-category img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.featured-category:hover img {
  transform: scale(1.1);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.featured-category-title {
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
}

/* ===== Stores Section ===== */
.stores-section {
  margin: 60px 0;
}

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

.store-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 280px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.store-card:hover {
  transform: translateY(-8px);
}

.store-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s;
}

.store-card:hover .store-image {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.discount-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-color);
  color: #000;
  padding: 8px 15px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.store-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  transform: translateY(0);
  transition: transform 0.3s;
}

.store-card:hover .store-info {
  transform: translateY(-10px);
}

.store-location {
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.store-address {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.store-hours {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-hours i {
  color: var(--accent-color);
}

.view-store-btn {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  transition: color 0.3s;
  font-weight: 600;
}

.view-store-btn:hover {
  color: white;
}

.view-store-btn i {
  margin-right: 8px;
  transition: transform 0.3s;
}

.view-store-btn:hover i {
  transform: translateX(5px);
}

/* ===== Footer ===== */
footer {
  background-color: var(--secondary-bg);
  padding: 70px 0 20px;
  margin-top: 70px;
  border-top: 2px solid var(--accent-color);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, transparent, var(--accent-color), transparent);
  opacity: 0.6;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 20px;
  display: block;
}

.footer-about {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 25px;
  opacity: 0.9;
  max-width: 90%;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  color: var(--text-color);
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: all 0.3s;
  display: inline-block;
  position: relative;
  padding-right: 20px;
}

.footer-links a::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(-5px);
  color: var(--accent-color);
}


.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.social-link:hover {
  background-color: var(--accent-color);
  color: #000;
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  opacity: 0.8;

}

/* ===== Animations ===== */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.slide-in-right {
  animation: slideInRight 0.5s ease forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== Blog Content ===== */
.belog-content-section .belog-text {
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Notification Bar ===== */
.notification-bar {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 14px 20px;
  color: #fff;
  text-align: center;
  font-size: 16px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-weight: 500;
}

.success-notification {
  background-color: #4CAF50;
}

.notification-bar p {
  margin: 0;
  flex-grow: 1;
}

.notification-bar a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
  margin: 0 5px;
}

.notification-bar i {
  margin-left: 10px;
}

.close-notification {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  margin-right: 15px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

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

/* ===== Bottom Navigation ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--secondary-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  text-decoration: none;
  color: var(--text-color);
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  transition: all 0.3s ease;
  flex: 1;
}

.nav-item i {
  font-size: 22px;
  margin-bottom: 5px;
}

.nav-item:hover,
.nav-item.active {
  opacity: 1;
  color: var(--accent-color);
}

.nav-item.active i {
  transform: translateY(-3px);
}

.cart-icon-wrapper {
  position: relative;
}

.cart-icon-wrapper .badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--accent-color);
  color: #ff0000;
  border-radius: 10px;
  padding: 2px 5px;
  font-size: 9px;
  font-weight: bold;
}

/* ===== Profile Dashboard ===== */
.profile-dashboard {
  display: flex;
  gap: 25px;
  padding: 30px 0;
  min-height: 70vh;
  animation: fadeIn 0.3s ease forwards;
}

.sidebar {
  flex: 1;
  max-width: 280px;
  background: var(--card-bg);
  padding: 25px 20px;
  border-radius: 20px;
  border: none;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2),
              -3px -3px 10px rgba(255, 255, 255, 0.05);
}

.sidebar h3 {
  color: var(--accent-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 25px;
  text-align: right;
  font-size: 1.3rem;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  margin-bottom: 12px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 12px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.sidebar a i {
  font-size: 1.2rem;
  color: var(--border-color);
  transition: color 0.3s ease;
}

.sidebar a:hover {
  background-color: var(--hover-bg);
}

.sidebar a.active {
  background-color: var(--accent-color);
  color: var(--primary-bg);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.sidebar a.active i {
  color: var(--primary-bg);
}

.main-content {
  flex: 4;
  background: var(--card-bg);
  padding: 35px;
  border-radius: 20px;
  border: none;
  box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.3),
              inset -3px -3px 8px rgba(255, 255, 255, 0.05);
}

#profile-content {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  width: 100%;
  margin: 0;
}

#profile-content h2 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

#profile-content h2 i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

#profile-content .form-group {
  margin-bottom: 20px;
}

#profile-content label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-color);
}

#profile-content input,
#profile-content textarea,
#profile-content select {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 0.95rem;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3),
              inset -2px -2px 5px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

#profile-content input:focus,
#profile-content textarea:focus,
#profile-content select:focus {
  outline: none;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.3),
              inset -1px -1px 3px rgba(255, 255, 255, 0.05),
              0 0 0 2px var(--accent-color);
}

#profile-content .submit-btn,
#profile-content .btn-primary {
  background: var(--accent-color);
  color: #000;
  padding: 14px 28px;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2),
              -1px -1px 3px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

#profile-content .submit-btn:hover,
#profile-content .btn-primary:hover {
  background: #c08b5d;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3),
              -2px -2px 5px rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

.profile-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 20px;
  border: none;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2),
              -2px -2px 5px rgba(255, 255, 255, 0.05);
  margin-bottom: 30px;
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  height: 65px;
  background: var(--card-bg);
  border-top: 3px solid var(--accent-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
  border-radius: 15px 15px 0 0;
}

.mobile-bottom-nav a {
  color: var(--text-color);
  font-size: 1.4rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  width: 100%;
}

.mobile-bottom-nav a span {
  font-size: 0.7rem;
  margin-top: 5px;
}

.mobile-bottom-nav a.active {
  color: var(--accent-color);
}

/* ===== Orders Table ===== */
.orders-list {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.orders-list table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.orders-list th,
.orders-list td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  text-align: center;
}

.orders-list th {
  background-color: rgba(212, 154, 105, 0.1);
  font-weight: 600;
  color: var(--accent-color);
}

.orders-list tr:last-child td {
  border-bottom: none;
}

.orders-list tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}



/* ===== Neumorphism & Glass Effects ===== */
.neumorphic {
  border-radius: 15px;
  background: var(--secondary-bg);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2),
              -3px -3px 10px rgba(255, 255, 255, 0.05);
  transition: box-shadow 0.3s ease;
}

.neumorphic:hover {
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3),
              -2px -2px 8px rgba(255, 255, 255, 0.05);
}

.glass-effect {
  background: rgba(30, 40, 50, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
}

/* ===== Responsive Design ===== */
@media screen and (max-width: 1200px) {
  .products-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
  }

  .product-card {
    flex: 0 0 calc(33.33% - 15px);
    scroll-snap-align: start;
  }

  .featured-section {
    grid-template-columns: 1fr;
  }

  .featured-title {
    grid-column: 1;
  }

  .featured-categories {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
      }
    .mobile-bottom-nav{display: none;}
.bottom-nav{display: none;}

nav {
  background-color: var(--secondary-bg);
  padding: 5px 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}
}

@media screen and (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }

  .product-card {
    flex: 0 0 calc(50% - 15px);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .category-card:first-child,
  .category-card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .stores-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .profile-dashboard {
    flex-direction: column;
    gap: 20px;
  }

  .sidebar {
    max-width: 100%;
    width: 100%;
  }
  
  .mobile-bottom-nav {
    display: none;
  }
  .category-title {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;    margin: 0;
    text-align: center;
    letter-spacing: 0.5px;
}
.category-overlay {
  position: absolute;
  padding: 5px;
  border-radius: 17px;

 
}
}

@media screen and (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 10px 0;
    border: none;
  }



  body {
    padding-top: 110px;
    padding-bottom: 80px;
  }

  .header-container {
    flex-wrap: wrap;
  }

  .search-container {
    order: 3;
    flex: 0 0 100%;
    margin-top: 15px;
  }

  .product-card {
    flex: 0 0 calc(100% - 15px);
  }

  .featured-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .stores-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .auth-btn {
    display: none;
  }
  
  .action-btn {
    display: none;
  }
  
  .bottom-nav {
    display: flex;
  }
  
  .sidebar {
    display: none;
  }
  
  .main-content {
    padding: 20px;
  }
  
  .mobile-bottom-nav {
    display: flex;
  }
  
  .orders-list table {
    min-width: 480px;
    font-size: 0.75rem;
  }
  
  .orders-list th,
  .orders-list td {
    padding: 8px 6px;
  }
  
  .orders-list .submit-btn {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }
}

@media screen and (max-width: 576px) {
  .hero {
    height: 40vh;
    margin-bottom: 30px;
  }
  
  .hero h1 {
    font-size: 0.3rem;
  }
  
  .highlight {
    font-size: 1rem;
  }
  
  .hero p {
    font-size: 0.3rem;
  }
  
  .hero-cta-buttons {
    gap: 15px;
  }
  
  .cta-btn {
    padding: 12px 20px;
    font-size: 0.4rem;
  }
  nav {

display: none;
  }
  .categories-grid {
    grid-template-columns: 2,1fr;

  }

  .featured-categories {
    grid-template-columns: 2,1fr;
  }
  
  .section-title {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .see-all {
    align-self: flex-end;
  }
  
  .main-content {
    padding: 15px;
  }
  
  #profile-content h2 {
    font-size: 1.1rem;
  }
  
  #profile-content input,
  #profile-content textarea,
  #profile-content select {
    font-size: 0.85rem;
    padding: 12px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-bottom-nav {
    display: none;
  }
}

@media (min-width: 1025px) {
  .mobile-bottom-nav {
    display: none;
  }
  
  .bottom-nav {
    display: none !important;
  }
}
/* ===== Luxury Main Banner Container ===== */
.luxury-main-banner-container {
    position: relative;
    width: 1500px;
    max-width: 100%;
    overflow: hidden;
        margin: 0 auto;
    /* حفظ استایل سایه و گردی گوشه */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.411);
height: 50%;
    background-color: #f5f5f5;
    direction: rtl;
    /* رنگ پس‌زمینه برای زمان لود شدن */
}

/* Wrapper for slides */
.luxury-banner-wrapper {

        display: flex;
            /* قرار دادن اسلایدها در یک ردیف */
    width: 100%;
        transition: transform 0.6s ease-in-out;
            /* انیمیشن حرکت نرم */
                box-sizing: border-box;
            will-change: transform;
            /* بهینه‌سازی برای مرورگر */
    /* ارتفاع بر اساس محتوای عکس تنظیم می‌شود اما می‌توان min-height داد */
}

/* ===== Individual Slide Style ===== */
.banner-slide {

    /* پنهان کردن همه اسلایدها به صورت پیش‌فرض */
    width: 100%;
    display: block;
        /* همیشه نمایش داده شود */
    
        /* تنظیم عرض برای پر کردن کانتینر */
        min-width: 100%;
        flex: 0 0 100%;
    /* انیمیشن تغییر اسلاید */
}

.banner-slide.active {
    display: block;
    /* نمایش اسلاید فعال */
}

/* لینک و تصویر */
.banner-slide .banner-link {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
    text-decoration: none;
    line-height: 0;
}

.banner-slide .banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* افکت زوم هنگام هاور روی کانتینر اصلی */
.luxury-main-banner-container:hover .banner-img {
    transform: scale(1.02);
}

/* ===== Navigation Buttons (Arrows) ===== */
.banner-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -22px;
    padding: 0;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 50%;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    backdrop-filter: blur(4px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* مخفی در حالت عادی برای تمیزی */
}

/* نمایش دکمه‌ها فقط وقتی موس روی بنر است */
.luxury-main-banner-container:hover .banner-nav {
    opacity: 1;
}

.banner-nav.next {
    right: 20px;
}

.banner-nav.prev {
    left: 20px;
}

.banner-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* ===== Pagination Dots ===== */
.banner-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 8px;
    width: 8px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s;
}

.dot.active,
.dot:hover {
    background-color: #fff;
    transform: scale(1.3);
}

/* ===== Animation Keyframes ===== */
@keyframes fadeEffect {

}

/* ===== Responsive Settings ===== */
@media (max-width: 1024px) {
    .luxury-main-banner-container {
        border-radius: 0 0 20px 20px;
    }
}

@media (max-width: 768px) {
    .luxury-main-banner-container {

        margin: 10px auto;
        /* کمی فاصله از اطراف در موبایل */
        width: 95%;
        /* عدم چسبیدن به کناره‌ها در موبایل */
    }



    /* در موبایل دکمه‌های ناوبری را همیشه نشان بده یا کلا حذف کن */
    .banner-nav {
        opacity: 1;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .banner-nav.next {
        right: 10px;
    }

    .banner-nav.prev {
        left: 10px;
    }
}
/* بج وضعیت موجودی */
.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #ffffff;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.stock-in { background-color: #25a52c; /* سبز */ }
.stock-out { background-color: #c62828; /* قرمز */ }

/* دکمه افزودن به سبد خرید */
.btn-add-index {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background-color: var(--accent-color, #C5A059);
  color: #fff; /* رنگ متن دکمه */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-add-index:hover {
  background-color: var(--primary-bg, #362f08);
  transform: translateY(-2px);
}

.btn-add-index:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-add-index i {
  font-size: 1.1em;
}
/* استایل قیمت خط خورده */
.old-price {
    text-decoration: line-through;
    color: #a0a0a0; /* رنگ خاکستری */
    font-size: 0.9em;
    margin-left: 8px;
    font-weight: normal;
}

/* استایل درصد تخفیف (اختیاری برای جذابیت بیشتر) */
.discount-badge {
    background-color: #47ff7e;
    color: #fff;
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
    vertical-align: middle;
}

/* استایل پیام سود شما در سبد خرید */
.profit-alert {
    background-color: rgba(0, 184, 148, 0.15); /* سبز ملایم */
    color: #008f72;
    border: 1px dashed #00b894;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
}
/* ===============================
   Category Showcase – NEW STYLE
================================ */

.category-showcase {
    margin: 70px auto 50px;
}

.category-showcase-header {
    text-align: center;
    margin-bottom: 15px;
}

.category-showcase-header h2 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 7px;
}

.category-subtitle {
    font-size: 0.8rem;
    color: var(--text-color-faded);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Grid */
.category-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Card */
.category-showcase-card {
    position: relative;
    height: 240px;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    text-decoration: none;

    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    transition: 0.45s ease;
}

.category-showcase-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Overlay */
.category-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.15),
            rgba(0,0,0,0.85)
        );
    transition: 0.4s ease;
}

.category-showcase-card:hover .category-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(197,160,89,0.15),
            rgba(10,14,19,0.95)
        );
}

/* Content */
.category-content {
    position: absolute;
    bottom: 25px;
    right: 25px;
    z-index: 2;
}

.category-content h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.category-content span {
    font-size: 0.85rem;
    color: #f8d27a;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .category-showcase-card {
        height: 190px;
    }

    .category-showcase-header h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .category-showcase-grid {
        grid-template-columns: 1fr;
    }

    .category-showcase-card {
        height: 180px;
    }
}
/* ===============================
   New Products Section Header
================================ */

.new-products-header {
    text-align: center;
    margin-bottom: 30px;
}

.new-products-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.new-products-subtitle {
    font-size: 0.95rem;
    color: var(--text-color-faded);
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .new-products-header h2 {
        font-size: 1rem;
    }

    .new-products-subtitle {
        font-size: 0.65rem;
        padding: 0 4px;
    }
}
/* ===============================
   Categories Header – Centered
================================ */

.category-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 20px;
}

.category-header-center .title-area {
    max-width: 500px;
}

.category-header-center h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 6px;
}

.category-header-subtitle {
    font-size: 0.9rem;
    color: var(--text-color-faded);
    line-height: 1.8;
}

/* دکمه‌ها دقیقاً زیر متن */
.category-header-center .cat-nav-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* Mobile */
@media (max-width: 768px) {
    .category-header-center h2 {
        font-size: 0.9rem;
    }

    .category-header-subtitle {
        font-size: 0.6rem;
        padding: 0 6px;
    }
}
/* ===============================
   Center Categories Wrapper Items
================================ */

.categories-wrapper {
    display: flex;
    justify-content: center;
    /* ✅ آیتم‌ها وسط */
    align-items: flex-start;
    gap: 20px;

    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 6px;
}

/* جلوگیری از جمع شدن آیتم‌ها */
.category-circle-item {
    flex: 0 0 auto;
    text-align: center;
}

/* در دسکتاپ: اگر تعداد کم بود کاملاً وسط */
@media (min-width: 992px) {
    .categories-wrapper {
        justify-content: center;
    }
}

/* در موبایل: اسکرول طبیعی‌تر */
@media (max-width: 768px) {
    .categories-wrapper {
        justify-content: flex-start;
        padding-right: 7px;
    }
}





/* ===============================
   DESKTOP HEADER FIX (WINDOWS)
   No HTML Change
================================ */
@media (min-width: 992px) {

    header {
        background: var(--primary-bg);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 72px;
        padding: 0 20px;
    }

    /* ===== Logo ===== */
    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }

    .logo img {
        width: 42px;
        height: auto;
        object-fit: contain;
    }

    .logo span {
        font-size: 1rem;
        font-weight: 800;
        color: var(--text-color);
        white-space: nowrap;
    }

    /* ===== Header Actions (Cart + Hamburger) ===== */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 42px;
        width: 42px;
        border-radius: 12px;
    }

    /* ===== NAVBAR ===== */
    nav {
        background: var(--secondary-bg);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 60px;
        gap: 20px;
    }

    /* ===== Nav Links ===== */
    .nav-links {
        display: flex;
        align-items: center;
        gap: 26px;
    }

    .nav-links li a {
        font-size: 0.9rem;
        font-weight: 600;
        padding: 6px 2px;
        white-space: nowrap;
        position: relative;
    }

    /* underline subtle hover */
    .nav-links li a::after {
        content: "";
        position: absolute;
        bottom: -6px;
        right: 0;
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transition: 0.3s;
    }

    .nav-links li a:hover::after {
        width: 100%;
    }

    /* ===== Dropdown ===== */
    .dropdown-content {
        top: 130%;
        border-radius: 14px;
        padding: 10px 0;
    }

    .dropdown-content li a {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    /* ===== User Actions ===== */
    .user-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .auth-btn {
        height: 38px;
        padding: 0 14px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    /* ===== Remove desktop clutter ===== */
    .hamburger-menu {
        display: none;
    }
}

/* تنظیم دکمه والد برای قرارگیری صحیح بج */
.action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* استایل اصلی شمارنده */
.cart-badge-count {
    position: absolute;
    top: -5px;
    /* تنظیم ارتفاع از بالا */
    right: -5px;
    /* تنظیم فاصله از راست */

    /* رنگ‌بندی */
    background-color: #ef4444;
    /* قرمز استاندارد و جذاب */
    color: #ffffff;

    /* تایپوگرافی */
    font-family: sans-serif;
    /* یا فونت فارسی سایت شما */
    font-size: 0.75rem;
    /* معادل 12px */
    font-weight: 700;
    line-height: 1;

    /* ابعاد و شکل */
    min-width: 20px;
    /* حداقل عرض برای اعداد تک‌رقمی */
    height: 20px;
    padding: 0 4px;
    /* فضای داخلی برای اعداد چند رقمی */
    border-radius: 999px;
    /* گرد کردن کامل (Pill shape) */

    /* چیدمان محتوا */
    display: flex;
    /* برای نمایش در صورت حذف display:none توسط JS */
    align-items: center;
    justify-content: center;

    /* زیبایی‌شناسی */
    border: 2px solid #ffffff;
    /* ایجاد فاصله سفید بین آیکون و بج */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    /* سایه نرم */
    z-index: 10;

    /* جلوگیری از انتخاب متن */
    user-select: none;
    pointer-events: none;
}
.cart-badge-count {
    /* ... تمام کدهای بخش ۱ را اینجا هم داشته باشید ... */

    /* اضافه کردن انیمیشن */
    animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* تعریف انیمیشن ورود */
@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* در موبایل: اسکرول طبیعی‌تر */
@media (max-width: 768px) {
.action-btn {
    display: none;
}
}

/* =========================================
   Luxury Mobile Auth Panel
   ========================================= */

/* 1. مخفی کردن در دسکتاپ (پیش‌فرض) */
.mobile-auth-panel {
  display: none;
}

/* 2. استایل‌دهی مخصوص موبایل */
@media screen and (max-width: 768px) {

  .mobile-auth-panel {
    /* چیدمان */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    /* فاصله ظریف بین دکمه‌ها */
    padding: 16px;
    margin: 10px 0;
    /* فاصله از بالا و پایین */
    width: 100%;
    box-sizing: border-box;

    /* افکت شیشه‌ای لوکس (طبق متغیرهای روت) */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);

    /* سایه نرم و معلق */
    box-shadow: var(--card-shadow);
  }

  /* 3. استایل عمومی دکمه‌های داخل پنل */
  .mobile-auth-panel .auth-btn {
    flex: 1;
    /* تقسیم فضای مساوی (50/50) */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    /* ارتفاع مناسب لمس */

    /* تایپوگرافی */
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    /* انیمیشن و شکل */
    border-radius: 14px;
    /* کمی گردتر از دکمه‌های معمولی */
    transition: var(--transition-smooth);
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* 4. دکمه اصلی (ثبت نام / خروج) - تم طلایی */
  .mobile-auth-panel .auth-btn.signup {
    background: var(--accent-color);
    color: #FFFFFF;
    /* متن سفید روی طلایی */
    border: 1px solid transparent;

    /* سایه طلایی درخشان */
    box-shadow: var(--shadow-light);
  }

  /* افکت کلیک دکمه اصلی */
  .mobile-auth-panel .auth-btn.signup:active {
    transform: scale(0.97);
    box-shadow: none;
  }

  /* 5. دکمه ثانویه (ورود / پروفایل) - تم مینیمال */
  .mobile-auth-panel .auth-btn.login {
    background: rgba(255, 255, 255, 0.5);
    /* کمی زمینه سفید برای خوانایی */
    color: var(--text-color);
    border: 1px solid var(--border-color);
    /* حاشیه طلایی خیلی کمرنگ */
  }

  /* افکت کلیک دکمه ثانویه */
  .mobile-auth-panel .auth-btn.login:active {
    background: var(--hover-bg);
    /* زمینه طلایی محو */
    border-color: var(--accent-color);
    color: var(--accent-color);
    /* متن هم رنگ بگیرد */
  }
}

/* حالت انتخاب کارت با تغییر رنگ متن بدون خط */
.product-card.selected .product-title {
  color: var(--accent-gold);
  transition: color 0.3s ease;
  /* تغییر نرم رنگ */
}