/*
Theme Name: beautyshop
Theme URI: https://beautyshoppro.com
Author: Aliam
Author URI: https://beautyshoppro.com/about
Description: قالب اختصاصی فروشگاه لوازم آرایشی و بهداشتی، طراحی‌شده برای وردپرس با تمرکز بر سرعت، امنیت و سئو. شامل پشتیبانی کامل از ووکامرس، طراحی واکنش‌گرا و ساختار استاندارد برای بهینه‌سازی در موتورهای جستجو.
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beautyshoppro
Tags: e-commerce, rtl, woocommerce, seo-friendly, responsive, cosmetics, beauty
*/

/* =============================
   📌 پایه استایل عمومی قالب
   ============================= */
/* ========== فونت وزیر ========== */


/* فونت عمومی و تنظیمات پایه */
html {
  scroll-behavior: smooth;
  font-family: Vazir !important;
}

body {
  margin: 0;
  padding: 0;
  font-family: Vazir !important;
  background-color: #fff;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: #e91e63;
  text-decoration: none;
  transition: all 0.2s ease;
  outline: none !important;
}
li{
  list-style: none;
}


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

.container {
  min-width: 270px;
  max-width: 1400px;
  margin: 0 auto;
}

@media screen and (max-width:450px) {
  .container {
    /* width: 98%;
    margin: 0 auto; */
  }
  
}


/* ========== VARIABLES - روانشناسی رنگ آرایشی ========== */
:root {
/* رنگ اصلی - سرخابی لوکس: زیبایی، اصالت، اعتماد */
--primary: #C2185B;
--primary-light: #F8BBD0;
--primary-dark: #880E4F;
--primary-rgb: 194, 24, 91;

/* رنگ ثانویه - بنفش عمیق: خلاقیت، سلطنتی، معنویت */
--secondary: #7B1FA2;
--secondary-light: #E1BEE7;
--secondary-dark: #4A148C;
--secondary-rgb: 123, 31, 162;

/* رنگ تأکیدی - طلایی متالیک: لوکس، کیفیت، درخشش */
--accent: #FFAB00;
--accent-light: #FFECB3;
--accent-dark: #FF6F00;
--accent-rgb: 255, 171, 0;

/* رنگ‌های خنثی - خاکستری‌های سنگین و حرفه‌ای */
--text-primary: #263238;
--text-secondary: #455A64;
--text-muted: #78909C;
--text-light: #B0BEC5;

--bg-white: #FFFFFF;
--bg-gray-50: #FAFBFC;
--bg-gray-100: #F5F7FA;
--bg-gray-200: #EFF2F7;
--bg-gray-300: #E2E8F0;

/* سایه‌های حرفه‌ای */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
--shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

/* گرادینت‌های لوکس */
--gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
--gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
--gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
--gradient-light: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-gray-50) 100%);

/* انیمیشن‌های نرم و حرفه‌ای */
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
--transition-fast: all 0.15s cubic-bezier(0.4, 0, 1, 1);

/* border-radius های استاندارد */
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 8px;
--radius-xl: 12px;
--radius-2xl: 16px;
--radius-full: 9999px;

/* spacing سیستم */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
--space-20: 5rem;
--space-24: 6rem;

/* typography scale */
--text-xs: 0.75rem;
--text-sm: 0.875rem;
--text-base: 1rem;
--text-lg: 1.125rem;
--text-xl: 1.25rem;
--text-2xl: 1.5rem;
--text-3xl: 1.875rem;
--text-4xl: 2.25rem;
--text-5xl: 3rem;
--text-6xl: 3.75rem;
}
/* ========== BASE STYLES ========== */

.products-carousel .product {
    width: 100% !important;
    max-width: 100% !important;
}
.owl-item {
    width: auto !important;
}
.products-carousel .carousel-item {
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-error::before, .woocommerce-info::before, .woocommerce-message::before {
  display: none !important;
}
/* ———— استایل‌های اصلی اسلایدر ———— */
.owl-nav{display:none; !important}
.products-carousel-container {
  position: relative;
  /* background:#ec5296;; */
  border-radius: 16px;
  padding: 30px 20px;
  /* margin: 30px auto; */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.owl-item{
  width: 260px !important;
}
.banner-carosell-custom{
  min-width: 200px;
  display: block;
}
.banner-carosell-custom{
   width: 200px;
  display: block;
  margin: auto;
}

@media screen and (max-width:700px) {
  .banner-carosell-custom{
  display: none;
  width: 0;
}
  .banner-carosell-custom img{
  display: none;
  width: 0;
}
}

/* ———— Owl Carousel ———— */
.products-carousel.owl-carousel {
  direction: ltr;
}

.products-carousel .owl-stage-outer {
  padding: 10px 0;
  /* margin: 0 -10px; */
}

.products-carousel .owl-stage {
  display: flex;
  align-items: stretch;
	justify-content:center;
}

.products-carousel .owl-item {
  padding: 0 10px;
  transition: transform 0.3s ease;
}

.products-carousel .owl-item:hover {
  transform: translateY(-5px);
}


/* ———— دکمه‌های ناوبری ———— */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: all 0.3s ease;
  color: #333;
}

.carousel-nav:hover {
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  right: 15px;
}

.carousel-next {
  left: 15px;
}

/* ———— Owl Dots ———— */
.owl-dots {
  text-align: center;
  margin-top: 25px;

}

.owl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background:#ffc161 !important;
  margin: 0 6px;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
}

.owl-dot.active {
  background: rgb(18, 211, 0) !important;
  transform: scale(1.4);
  width: 20px;
  border-radius: 10px;
}

/* ———— استایل هدر ———— */
.section-header {
  text-align: center;
  margin-bottom: 30px;
  color: white;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

/* ———— دکمه مشاهده همه ———— */
.section-footer {
  text-align: center;
  margin-top: 30px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.view-all-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: white;
}

/* ———— ریسپانسیو ———— */
@media (max-width: 768px) {
  .products-carousel-container {
      padding: 20px 15px;
      /* margin: 20px auto; */
  }
  
  .carousel-nav {
      width: 40px;
      height: 40px;
  }
  
  .carousel-prev { right: 10px; }
  .carousel-next { left: 10px; }
  
  .section-title {
      font-size: 26px;
  }
  
  .section-subtitle {
      font-size: 14px;
  }
}

@media (max-width: 480px) {
  .products-carousel-container {
      padding: 15px 10px;
  }
  
  .carousel-nav {
      width: 36px;
      height: 36px;
  }
  
  .section-title {
      font-size: 22px;
  }
  
  .view-all-btn {
      padding: 10px 20px;
      font-size: 14px;
  }
}

.trend-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}
/* استایل‌های صفحه */
.bsp-page-wrapper {
  background: #f8f9fa;
  min-height: 100vh;
  padding: 20px 0;
}

.bsp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.bsp-page-article {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.bsp-page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e9ecef;
}

.bsp-page-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
}

.bsp-page-thumbnail {
  margin-top: 30px;
}

.bsp-page-thumbnail img {
  border-radius: 8px;
  max-width: 100%;
  min-width: 260px;
  height: auto;
}

.bsp-page-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.bsp-page-content p {
  margin-bottom: 1.5rem;
}

.bsp-page-content h2,
.bsp-page-content h3,
.bsp-page-content h4 {
  color: #333;
  margin: 2rem 0 1rem 0;
}

.bsp-page-links {
  margin-top: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.bsp-page-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.bsp-edit-link a {
  background: #e91e63;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

.bsp-edit-link a:hover {
  background: #c2185b;
}

.bsp-no-content {
  text-align: center;
  padding: 60px 20px;
}

.bsp-no-content h2 {
  color: #666;
  margin-bottom: 1rem;
}

/* رسپانسیو */
@media (max-width: 768px) {
  .bsp-page-article {
      padding: 20px;
  }
  
  .bsp-page-title {
      font-size: 2rem;
  }
  
  .bsp-page-content {
      font-size: 1rem;
  }
}
/* ========== HEADER STYLES ========== */
/* ========== HEADER STYLES - هماهنگ با متغیرهای شما ========== */
/* ==================== بخش محصولات ترند ==================== */
.trending-products-section {
padding: var(--space-16) 0;
background: linear-gradient(135deg, var(--bg-gray-50) 0%, var(--bg-white) 100%);
position: relative;
}

.trend-badge {
background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
}

/* ==================== بخش محصولات دسته‌بندی‌های محبوب ==================== */
.popular-categories-section {
padding: var(--space-16) 0;
background: var(--bg-white);
}

.popular-badge {
background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

.product-category {
font-size: var(--text-sm);
color: var(--text-muted);
margin-bottom: var(--space-2);
max-width: 350px;
}

.product-category span {
background: var(--bg-gray-100);
padding: var(--space-1) var(--space-3);
border-radius: var(--radius-full);
font-size: var(--text-xs);
}

/* ==================== بهبود بخش تخفیف‌ها ==================== */
.offers-section .product-card {
height: auto;
min-height: 480px;
}

.offers-section .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* ==================== ویجت‌های فوتر ==================== */
.footer-widgets {
padding: var(--space-12) 0;
border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widgets-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: var(--space-8);
}

.footer-widget .widget-title {
color: white;
font-size: var(--text-lg);
margin-bottom: var(--space-4);
font-weight: 700;
}

.footer-widget .widget-content {
color: rgba(255,255,255,0.8);
line-height: 1.7;
}

.footer-widget .widget-content p {
margin-bottom: var(--space-3);
}

/* ==================== دکمه بازگشت به بالا ==================== */
.back-to-top-btn {
position: fixed;
bottom: var(--space-6);
left: var(--space-6);
width: 50px;
height: 50px;
background: var(--gradient-primary);
color: white;
border: none;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: var(--shadow-lg);
transition: var(--transition);
z-index: 1000;
opacity: 0;
visibility: hidden;
}

.back-to-top-btn.show {
opacity: 1;
visibility: visible;
}

.back-to-top-btn:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-xl);
}

/* ==================== بهبود واکنش‌گرایی ==================== */
@media (max-width: 768px) {
.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.footer-widgets-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.back-to-top-btn {
    bottom: var(--space-4);
    left: var(--space-4);
    width: 45px;
    height: 45px;
}
}

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

.offers-section .product-card {
    min-height: 420px;
}
}

/* ==================== انیمیشن‌های جدید ==================== */
@keyframes slideInFromLeft {
from {
    opacity: 0;
    transform: translateX(-30px);
}
to {
    opacity: 1;
    transform: translateX(0);
}
}

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

.trending-products-section .product-card {
animation: slideInFromLeft 0.6s ease forwards;
}

.popular-categories-section .product-card {
animation: slideInFromRight 0.6s ease forwards;
}
/* Preloader */
.bsp-preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--bg-white);
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
}

.bsp-preloader-spinner {
width: 50px;
height: 50px;
border: 3px solid var(--bg-gray-200);
border-top: 3px solid var(--primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* ========== VARIABLES (فرض بر اینه که اینا قبلاً تعریف شدن) ========== */
/* :root { --primary: #c2185b; --secondary: #e91e63; ... } */

/* ========== HEADER ========== */
.bsp-header {
background: rgba(255, 255, 255, 0.0.98);
box-shadow: var(--shadow-md);
position: sticky;
top: 0;
z-index: 1000;
backdrop-filter: blur(10px);
}

/* ========== TOP BAR ========== */
.bsp-topbar {
background: linear-gradient(135deg, var(--primary), var(--secondary));
padding: 2px 0;
font-size: 11px;
position: relative;
overflow: hidden;
}

.bsp-topbar::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
animation: shimmer 3s infinite;
}

.topbar-inner { display: flex; justify-content: center; align-items: center; gap: 20px; }
.topbar-contact { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.topbar-contact a {
color: white;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
font-weight: 500;
transition: var(--transition-fast);
}
.topbar-contact a:hover { transform: translateY(-1px); text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.topbar-separator { color: rgba(255,255,255,0.6); font-weight: 300; }
.topbar-text {
color: rgba(255,255,255,0.9);
font-weight: 500;
font-size: 12px;
background: rgba(255,255,255,0.1);
padding: 4px 12px;
border-radius: 25px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.2);
}

/* ========== HEADER GRID ========== */
.header-grid {
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
}

/* ========== LOGO ========== */
.bsp-logo img { height: 100px !important;width:200px !important; border-radius: 8px; transition: var(--transition); }
@media screen (max-width:600px){
	.bsp-logo img{
		width:115px !important;
	}
}
.bsp-logo:hover img { transform: scale(1.05); }
.site-title {
margin: 0;
font-size: 24px;
font-weight: 900;
background: linear-gradient(135deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* ========== SEARCH ========== */
.bsp-search {
position: relative;
max-width: 600px;
min-width: 400px;
flex: 1;
}
.bsp-search input {
width: 100%;
padding: 14px 52px 14px 20px;
border: 2px solid var(--bg-gray-200);
border-radius: 50px;
font-size: 15px;
font-family: 'Vazir';
background: var(--bg-gray-50);
box-shadow: var(--shadow-sm);
transition: var(--transition);
}
.bsp-search input:focus {
outline: none;
border-color: var(--primary);
background: var(--bg-white);
box-shadow: 0 0 0 3px rgba(233,30,99,0.1), var(--shadow-md);
}
.bsp-search button {
position: absolute;
left: 6px;
top: 50%;
transform: translateY(-50%);
background: linear-gradient(135deg, var(--primary), var(--secondary));
border: none;
color: white;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: var(--transition);
box-shadow: var(--shadow-sm);
	padding:8px;
}
.bsp-search button:hover { transform: translateY(-50%) scale(1.05); box-shadow: var(--shadow-md); }

/* ========== ACTIONS ========== */
.bsp-header-actions { display: flex; align-items: center; gap: 15px; }
.bsp-user-actions { display: flex; gap: 10px; align-items: center; }
.action-btn {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 16px;
border-radius: 25px;
text-decoration: none;
font-weight: 500;
font-size: 14px;
background: var(--bg-gray-100);
color: var(--text-primary);
transition: var(--transition);
position: relative;
border: 2px solid transparent;
}

.action-btn:hover::before { transform: translateX(100%); }
.action-btn:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
color: var(--primary-dark);
border-color: var(--primary-light);
}
.cart-count {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
font-size: 11px;
font-weight: 700;
min-width: 20px;
height: 20px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: -5px;
right: -5px;
border: 2px solid white;
box-shadow: var(--shadow-sm);
}

/* ========== MAIN NAV ========== */
.bsp-main-nav {
border-top: 1px solid var(--bg-gray-200);
background: var(--bg-white);
}
.bsp-menu {
display: flex;
list-style: none;
margin: 0;
padding: 0;
gap: 2px;
}
.bsp-menu > li { position: relative; }
.bsp-menu > li > a {
padding: 16px 22px;
color: var(--text-primary);
font-weight: 600;
font-size: 15px;
display: flex;
align-items: center;
gap: 10px;
border-radius: 12px;
text-decoration: none;
transition: var(--transition);
position: relative;
}
.bsp-menu > li > a::before {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 3px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
border-radius: 3px;
transition: var(--transition);
transform: translateX(-50%);
}
.bsp-menu > li > a:hover,
.bsp-menu > li.current-menu-item > a {
color: var(--primary);
background: var(--bg-gray-50);
transform: translateY(-1px);
}
.bsp-menu > li > a:hover::before,
.bsp-menu > li.current-menu-item > a::before {
width: 80%;
}
.bsp-menu > li.current-menu-item > a {
background: var(--primary-light);
font-weight: 700;
color: var(--primary);
}
.bsp-menu > li.current-menu-item > a::before { background: var(--primary); }

/* ========== MEGA MENU ========== */
.top-sub-menu {
display: none;
position: absolute;
top: 100%;
right: 0;
background: var(--bg-white);
border: 1px solid var(--bg-gray-200);
border-radius: 16px;
padding: 24px;
min-width: 200px;
max-width: 900px;
box-shadow: var(--shadow-xl);
z-index: 1000;
flex-wrap: wrap;
gap: 8px;
border-top: 3px solid var(--primary);
}
.bsp-menu > li:hover > .top-sub-menu { display: flex; animation: fadeInUp .3s ease; }
.top-sub-menu > li { flex: 1; min-width: 200px;position: relative; }
.top-sub-menu .sub-menu {
display: none;
position: absolute;
top: -1%;
right: 85%;
min-width: 220px;
background: var(--bg-white);
border: 1px solid var(--bg-gray-200);
border-radius: 12px;
padding: 16px;
box-shadow: var(--shadow-lg);
margin-right: 10px;
border-top: 3px solid var(--secondary);
}
.top-sub-menu > li:hover > .sub-menu { display: block; animation: fadeInRight .3s ease; }
.top-sub-menu a {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
color: var(--text-primary);
text-decoration: none;
border-radius: 8px;
transition: var(--transition-fast);
font-weight: 500;
}
.top-sub-menu a:hover {
background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
color: var(--primary-dark);
transform: translateX(5px);
box-shadow: var(--shadow-sm);
}

/* ========== MOBILE ========== */
/* =========================
   Mobile Drawer - Internal
========================= */

/* هدر کشویی */
#bsp-mobile-menu .drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background-color: #fff;
}

/* لوگو */
#bsp-mobile-menu .drawer-logo img {
  max-height: 40px;
  width: auto;
  display: block;
}

#bsp-mobile-menu .drawer-logo .site-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

/* دکمه بستن */
#bsp-mobile-menu .mobile-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#bsp-mobile-menu .mobile-close:hover {
  transform: rotate(90deg);
}

/* فرم جستجو */
#bsp-mobile-menu .drawer-search {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background-color: #f9f9f9;
}

#bsp-mobile-menu .drawer-search form {
  display: flex;
  gap: 10px;
}

#bsp-mobile-menu .drawer-search input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
}

#bsp-mobile-menu .drawer-search button {
  background-color: #3b61bb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bsp-mobile-menu .drawer-search button i {
  font-size: 1rem;
}

/* بدنه کشویی */
#bsp-mobile-menu .drawer-body {
  padding: 15px 20px;
  overflow-y: auto;
}

/* منوی موبایل */
#bsp-mobile-menu .mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

#bsp-mobile-menu .mobile-nav li {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

#bsp-mobile-menu .mobile-nav li a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

#bsp-mobile-menu .mobile-nav li a:hover {
  color: #3b61bb;
}

/* زیرمنوها */
#bsp-mobile-menu .mobile-nav li ul {
  padding-left: 15px;
  margin-top: 5px;
}

#bsp-mobile-menu .mobile-nav li ul li {
  border-bottom: none;
}

#bsp-mobile-menu .mobile-nav li ul li a {
  font-size: 0.9rem;
  color: #555;
}

/* دکمه‌های عملیاتی */
#bsp-mobile-menu .mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

#bsp-mobile-menu .mobile-actions .mobile-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background-color: #3b61bb;
  color: #fff;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

#bsp-mobile-menu .mobile-actions .mobile-action-btn i {
  font-size: 1.1rem;
}

#bsp-mobile-menu .mobile-actions .mobile-action-btn:hover {
  background-color: #2a4a9c;
}

/* دکمه سبد خرید با شمارنده */
#bsp-mobile-menu .mobile-actions .cart-mobile-btn {
  position: relative;
}

#bsp-mobile-menu .mobile-actions .mobile-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #ff3b3b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ریسپانسیو */
@media (max-width: 576px) {
  #bsp-mobile-menu .drawer-header {
      padding: 12px 15px;
  }

  #bsp-mobile-menu .drawer-logo img {
      max-height: 100px;
  }

  #bsp-mobile-menu .drawer-search input[type="search"] {
      font-size: 0.85rem;
  }

  #bsp-mobile-menu .drawer-search button i {
      font-size: 0.9rem;
  }

  #bsp-mobile-menu .mobile-actions .mobile-action-btn {
      font-size: 0.9rem;
      padding: 8px 12px;
  }

  #bsp-mobile-menu .mobile-actions .mobile-cart-count {
      width: 16px;
      height: 16px;
      font-size: 0.7rem;
  }
}

.mobile-toggle {
display: none;
flex-direction: column;
background: none;
border: none;
padding: 8px;
cursor: pointer;
gap: 4px;
border-radius: 8px;
transition: var(--transition);
}
.toggle-bar { width: 24px; height: 2px; background: var(--text-primary); transition: var(--transition); border-radius: 2px; }
.mobile-toggle:hover .toggle-bar { background: var(--primary); transform: scaleX(1.1); }
.mobile-toggle:hover { background: var(--bg-gray-100); }

.mobile-drawer {
position: fixed;
top: 0;
right: -100%;
width: 380px;
max-width: 90vw;
height: 100%;
background: var(--bg-white);
box-shadow: var(--shadow-xl);
transition: right .4s cubic-bezier(.4,0,.2,1);
z-index: 1100;
display: flex;
flex-direction: column;
}
.mobile-drawer[aria-hidden="false"] { right: 0; }
.overlay[aria-hidden="false"] { display: block; animation: fadeIn .3s ease; }

/* ========== ANIMATIONS ========== */
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 500px; } }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
.header-grid { gap: 20px; }
.bsp-search { max-width: 500px; }
}
@media (max-width: 898px) {
.header-grid {  gap: 15px; }
.bsp-search, .bsp-main-nav, .action-text { display: none; }
.mobile-toggle { display: flex; }
.action-btn { padding: 8px 12px; }
}
@media (max-width: 768px) {
.topbar-inner, .topbar-contact { flex-direction: column; gap: 8px; text-align: center; }
.topbar-separator { display: none; }
.topbar-text { margin-top: 8px; font-size: 11px; }
}
@media (max-width: 480px) {
.header-grid { gap: 10px; }
.bsp-user-actions { gap: 5px; }
.action-btn { padding: 8px; }
.mobile-drawer { width: 300px; }
.drawer-search, .mobile-nav > li > a { padding: 15px; }
.bsp-topbar { padding: 8px 0; }
.topbar-contact a { font-size: 12px; }
.topbar-text { font-size: 10px; padding: 3px 8px; }
}


/*******************************************************
herosection   ****************************/
/* ========== HERO SECTION VARIABLES ========== */
:root {
  --hero-primary: #ec4899;
  --hero-primary-dark: #be185d;
  --hero-primary-light: #fce7f3;
  --hero-secondary: #8b5cf6;
  --hero-secondary-dark: #7c3aed;
  --hero-secondary-light: #ede9fe;
  --hero-accent: #f59e0b;
  --hero-success: #10b981;
  
  --hero-bg-gradient: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 50%, #f0f9ff 100%);
  --hero-text-gradient: linear-gradient(135deg, var(--hero-primary), var(--hero-secondary));
  --hero-overlay-gradient: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  
  --hero-shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
  --hero-shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.15);
  --hero-shadow-hard: 0 25px 50px rgba(0, 0, 0, 0.2);
  
  --hero-border-radius: 24px;
  --hero-border-radius-lg: 32px;
  --hero-border-radius-xl: 48px;
}

/* ========== HERO SECTION BASE ========== */
.hero-beauty-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 20px;
  width: 100%;
  justify-content: center;
}

.hero-content-wrapper{
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.hero-beauty-container {
  margin: 0 auto;
  padding: 0 20px;
  z-index: 2;  
  width: 100%;
  display: flex;
  justify-content:center;
  align-items: center;
}

/* ========== BACKGROUND ELEMENTS ========== */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--hero-primary-light);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: var(--hero-secondary-light);
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.orb-3 {
  width: 150px;
  height: 150px;
  background: #fef3c7;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.orb-4 {
  width: 250px;
  height: 250px;
  background: #dbeafe;
  top: 30%;
  right: 20%;
  animation-delay: 1s;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ========== CONTENT COLUMN ========== */
.hero-content-column {
  position: relative;
}

.content-inner {
  
}

/* Main Badge */
.hero-main-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--hero-shadow-soft);
  animation: slideInLeft 0.8s ease-out;
}

.badge-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  animation: pulse 2s infinite;
  opacity: 0.6;
}

.badge-icon {
  font-size: 18px;
  z-index: 2;
}

.badge-text {
  z-index: 2;
  color:#1f2937;
}

/* Main Title */
.hero-main-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #1f2937;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
  background: var(--hero-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.gradient-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--hero-text-gradient);
  border-radius: 2px;
}

/* Subtitle */
.hero-main-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 40px;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

/* ========== BUTTONS ========== */
.hero-actions-group {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--hero-primary), var(--hero-secondary));
  color: white;
  box-shadow: var(--hero-shadow-medium);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--hero-shadow-hard);
}

.hero-btn-primary .btn-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
}

.hero-btn-primary:hover .btn-shine {
  transform: rotate(45deg) translate(50%, 50%);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--hero-primary-dark);
  border: 2px solid var(--hero-primary-light);
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--hero-shadow-soft);
  border-color: var(--hero-primary);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.hero-btn:hover .btn-icon {
  transform: translateX(-4px);
}

/* ========== STATS ========== */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  animation: slideInUp 0.8s ease-out 0.8s both;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--hero-border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hero-shadow-soft);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--hero-primary-dark);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.stat-icon {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 8px;
  border-radius: 50%;
  box-shadow: var(--hero-shadow-soft);
  font-size: 16px;
}

/* ========== IMAGES COLUMN ========== */
.hero-images-column {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Badges Around Images */
.image-floating-badges {
  position: absolute;
  z-index: 4;
}

.image-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--hero-shadow-soft);
  backdrop-filter: blur(10px);
  animation: float 3s ease-in-out infinite;
}

.badge-1 {
  top: 20%;
  right: -20px;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 30%;
  left: -20px;
  animation-delay: 1s;
}

.badge-3 {
  top: 50%;
  right: -30px;
  animation-delay: 2s;
}

/* Main Image Container */
.main-image-container {
  position: relative;
  z-index: 3;
}

.main-image-wrapper {
  position: relative;
  width: 400px;
  height: 500px;
}

.hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--hero-border-radius-xl);
  box-shadow: var(--hero-shadow-hard);
  position: relative;
  z-index: 2;
}

.image-glow {
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, var(--hero-primary), var(--hero-secondary));
  border-radius: var(--hero-border-radius-xl);
  filter: blur(20px);
  opacity: 0.3;
  z-index: 1;
  animation: glowPulse 3s ease-in-out infinite;
}

.image-border {
  position: absolute;
  inset: -2px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--hero-primary), var(--hero-secondary)) border-box;
  border-radius: var(--hero-border-radius-xl);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 1;
}

/* Secondary Image Container */
.secondary-image-container {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
}

.secondary-image-wrapper {
  position: relative;
  width: 280px;
  height: 350px;
}

.hero-secondary-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--hero-border-radius-lg);
  box-shadow: var(--hero-shadow-medium);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: var(--hero-border-radius-lg);
}

/* Image Decorations */
.image-decorations {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed var(--hero-primary-light);
}

.circle-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 10%;
  animation: rotate 20s linear infinite;
}

.circle-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 20%;
  animation: rotate 25s linear infinite reverse;
}

.decoration-dots {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: radial-gradient(var(--hero-primary-light) 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.3;
}

/* ========== GLOBAL FLOATING BADGES ========== */
.global-floating-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--hero-shadow-soft);
  backdrop-filter: blur(10px);
  animation: floatAround 6s ease-in-out infinite;
}

.sale-badge {
  top: 20%;
  left: 5%;
  animation-delay: 0s;
}

.rating-badge {
  top: 10%;
  right: 10%;
  animation-delay: 1.5s;
}

.quality-badge {
  bottom: 30%;
  left: 15%;
  animation-delay: 3s;
}

.delivery-badge {
  bottom: 20%;
  right: 5%;
  animation-delay: 4.5s;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 2px;
  height: 20px;
  background: var(--hero-primary);
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--hero-primary);
  border-bottom: 2px solid var(--hero-primary);
  transform: translateX(-50%) rotate(45deg);
}

/* ========== ANIMATIONS ========== */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

@keyframes floatAround {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -15px) rotate(2deg); }
  50% { transform: translate(-5px, -25px) rotate(-1deg); }
  75% { transform: translate(-15px, -10px) rotate(1deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .hero-content-wrapper {
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-images-column {
    height: 500px;
  }
  
  .main-image-wrapper {
    width: 350px;
    height: 450px;
  }
  
  .secondary-image-wrapper {
    width: 240px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-beauty-section {
    min-height: auto;
    padding: 19px 0 73px;
  }
  
  .hero-content-wrapper {
    text-align: center;
    width: 85%;
  }
  
  .hero-images-column {
    height: 400px;
    order: -1;
  }
  
  .content-inner {
    margin: 0 auto;
  }
  
  .hero-actions-group {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .main-image-wrapper {
    width: 300px;
    height: 380px;
  }
  
  .secondary-image-wrapper {
    width: 200px;
    height: 250px;
  }
  
  .global-floating-badges {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-beauty-container {
    max-width: 184px;
  }
  
  .hero-main-title {
    font-size: 2rem;
  }
  
  .hero-actions-group {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-btn {
    width: 75%;
    max-width: 280px;
    justify-content: center;
  }
  
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .main-image-wrapper {
    width: 260px;
    height: 320px;
  }
  
  .secondary-image-wrapper {
    width: 180px;
    height: 220px;
  }
}
/* ========== CATEGORIES SECTION BASE ========== */

/* ========== SECTION STYLES ========== */
.dg-categories-section {
    padding: 60px 0;
    background: #fff;
    direction: rtl;
}

.dg-categories-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.dg-categories-header {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 80%;
    margin: 0 auto 50px;
    border-radius: 50px 50px 0 0;
    min-width: 280px;
    max-width: 450px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.dg-section-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    color: white;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* ========== CAROUSEL CONTAINER ========== */
.categories-carousel-container {
    position: relative;
    margin: 0 auto 30px;
    padding: 0 60px;
}

/* ========== OWL CAROUSEL ========== */
.categories-carousel.owl-carousel {
    position: relative;
}

.categories-carousel .owl-stage-outer {
    overflow: hidden;
    padding: 20px 0;
    margin: -20px 0;
}

.categories-carousel .owl-stage {
    display: flex;
}

.categories-carousel .owl-item {
    flex-shrink: 0;
    padding: 0 10px;
}

/* ========== CATEGORIES SLIDE ========== */
.categories-slide {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    min-height: 320px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f1;
    transition: transform 0.3s ease;
}

.categories-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}


/* ========== CATEGORIES ROWS ========== */
.categories-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.categories-row.second-row {
    margin-top: 20px;
}

.categories-row.second-row.desktop-only {
    display: none;
}

@media (min-width: 992px) {
    .categories-row.second-row.desktop-only {
        display: flex;
    }
}

/* ========== CATEGORY ITEM ========== */
.category-item {
    flex: 0 0 calc(25% - 11.25px);
    max-width: calc(25% - 11.25px);
    min-height: 160px;
}

@media (max-width: 768px) {
    .category-item {
        flex: 0 0 calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
        min-height: 150px;
    }
}

@media (min-width: 992px) {
    .category-item {
        min-height: 200px;
    }
}

/* ========== CATEGORY CARD ========== */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 20px 15px;
    border-radius: 16px;
    background: #fff;
    border: 2px solid #f0f0f1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    min-height: inherit;
    box-sizing: border-box;
}

.category-card:hover {
    border-color: #667eea;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-4px);
}

/* ========== CATEGORY ICON ========== */
.category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #f0f0f1;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .category-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }
}

@media (min-width: 992px) {
    .category-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 18px;
    }
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    transform: scale(1.05) rotate(5deg);
}

.category-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .category-img {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 992px) {
    .category-img {
        width: 70px;
        height: 70px;
    }
}

.category-card:hover .category-img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.default-icon {
    font-size: 40px;
    color: #81858b;
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .default-icon {
        font-size: 45px;
    }
}

.category-card:hover .default-icon {
    color: white;
    transform: scale(1.1);
}

/* ========== CATEGORY NAME ========== */
.category-name {
    font-size: 13px;
    font-weight: 600;
    color: #232933;
    text-align: center;
    line-height: 1.5;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 130px;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .category-name {
        font-size: 12px;
        height: 36px;
        max-width: 120px;
    }
}

@media (min-width: 992px) {
    .category-name {
        font-size: 14px;
        height: 44px;
        max-width: 140px;
    }
}

.category-card:hover .category-name {
    color: #667eea;
    font-weight: 700;
}

/* ========== CAROUSEL BUTTONS ========== */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border: 2px solid #e0e0e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #81858b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border: none;
    outline: none;
}

.carousel-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.carousel-btn:disabled:hover {
    background: white;
    border-color: #e0e0e6;
    color: #81858b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-btn svg {
    width: 22px;
    height: 22px;
}

.carousel-btn.prev {
    right: 0;
}

.carousel-btn.next {
    left: 0;
}

@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }
    
    .categories-carousel-container {
        padding: 0 20px;
    }
}

/* ========== CAROUSEL DOTS ========== */
.carousel-dots.owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.carousel-dots .owl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e6;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    padding: 0;
}

.carousel-dots .owl-dot.active {
    background: #667eea;
    width: 30px;
    border-radius: 15px;
}

/* ========== SECTION FOOTER ========== */
.section-footer {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.view-all-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

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

/* ========== NO CATEGORIES ========== */
.no-categories {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #e0e0e6;
    margin: 20px;
}

.no-categories p {
    color: #81858b;
    font-size: 18px;
    margin: 0;
    font-weight: 500;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 576px) {
    .dg-categories-header {
        width: 90%;
        min-height: 160px;
        padding: 20px 15px;
        border-radius: 40px 40px 0 0;
        margin-bottom: 30px;
    }
    
    .categories-slide {
        padding: 20px;
        min-height: 260px;
    }
    
    .category-item {
        min-height: 140px;
    }
    
    .category-card {
        padding: 15px 10px;
    }
    
    .category-icon {
        width: 65px;
        height: 65px;
    }
    
    .category-img {
        width: 45px;
        height: 45px;
    }
    
    .category-name {
        font-size: 11px;
        height: 34px;
        max-width: 110px;
    }
}

@media (max-width: 400px) {
    .dg-categories-header {
        min-height: 140px;
        padding: 15px 10px;
    }
    
    .categories-slide {
        padding: 15px;
        min-height: 240px;
    }
    
    .category-item {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
        min-height: 130px;
    }
    
    .category-card {
        padding: 12px 8px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-img {
        width: 40px;
        height: 40px;
    }
    
    .category-name {
        font-size: 10px;
        height: 32px;
        max-width: 100px;
    }
}

/* ========== LOADING STATE ========== */
.categories-carousel.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
    min-height: 200px;
}

.categories-carousel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f1;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}



/*face*/
.categories-showcase-section {
  position: relative;
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, var(--bg-gray-50) 0%, var(--bg-white) 50%, var(--bg-gray-100) 100%);
  overflow: hidden;
}

.categories-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 2;
}

/* ========== BACKGROUND ELEMENTS ========== */
.categories-bg-elements {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: var(--secondary-light);
  bottom: 20%;
  right: 10%;
  animation-delay: 3s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: var(--accent-light);
  top: 50%;
  left: 15%;
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ========== HEADER STYLES ========== */
.categories-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.header-content {
  max-width: 500px;
  margin: 0 auto;
}

.title-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.9);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  box-shadow: var(--shadow-md);
  animation: slideInDown 0.8s ease-out;
}

.badge-icon {
  font-size: var(--text-sm);
}

.badge-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-dark);
}

.section-main-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-main-subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  line-height: 1.6;
  color: var(--text-secondary);
  animation: slideInUp 0.8s ease-out 0.4s both;
}

/* ========== CATEGORIES GRID ========== */
.categories-grid-wrapper {
  position: relative;
  margin-bottom: var(--space-12);
}

.categories-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  position: relative;
}

/* ========== CATEGORY CARD - COMPACT & BEAUTIFUL ========== */
.category-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: var(--transition-slow);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
  animation: slideInUp 0.8s ease-out both;
  max-width: 350px;
  display: flex;
  flex-direction: column;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.2);
}

/* Card Gradient Background */
.card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  opacity: 0.08;
  transition: opacity 0.3s ease;
  background: var(--gradient-primary) !important;
}

.category-card:hover .card-gradient {
  opacity: 0.12;
}

/* Category Icon - Compact */
.category-icon {
  position: relative;
  z-index: 3;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.category-icon i,
.default-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.custom-icon-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(var(--primary-rgb), 0.1);
}

.default-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.icon-emoji {
  font-size: 1.2rem;
}

.category-card:hover .category-icon i,
.category-card:hover .default-icon,
.category-card:hover .custom-icon-img {
  transform: scale(1.1) rotate(5deg);
}

/* Category Image - Compact */
.category-image {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
  z-index: 2;
  flex-shrink: 0;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
  opacity: 0;
  transition: var(--transition);
}

.category-card:hover .category-img {
  transform: scale(1.08);
}

.category-card:hover .image-overlay {
  opacity: 1;
}

/* Category Content - Compact */
.category-content {
  position: relative;
  z-index: 3;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.category-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
  transition: var(--transition);
  line-height: 1.3;
}

.category-card:hover .category-title {
  color: var(--primary-dark);
}

.category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.category-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.category-card:hover .category-count {
  color: var(--primary);
}

.category-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.category-card:hover .category-arrow {
  background: var(--primary);
  color: white;
  transform: translateX(-3px);
}

/* Hover Effects */
.category-hover-effect {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  pointer-events: none;
}

.hover-shine {
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
  transform: rotate(45deg);
  transition: var(--transition-slow);
  opacity: 0;
}

.category-card:hover .hover-shine {
  opacity: 1;
  transform: rotate(45deg) translate(40%, 40%);
}

/* Floating Dots */
.floating-dots {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-image: radial-gradient(var(--primary-light) 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  opacity: 0.2;
  transition: var(--transition);
}

.category-card:hover .floating-dots {
  opacity: 0.4;
}

/* ========== EMPTY STATE ========== */
.no-categories-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.empty-state {
  max-width: 400px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  display: block;
}

.empty-state h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.empty-state p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== FOOTER & BUTTON ========== */
.categories-footer {
  text-align: center;
}

.view-all-categories-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(var(--primary-rgb), 0.15);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  font-size: var(--text-sm);
  z-index: 1;
}

.view-all-categories-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-full);
}

.view-all-categories-btn:hover .btn-glow {
  opacity: 0.08;
}

.btn-icon {
  transition: var(--transition);
}

.view-all-categories-btn:hover .btn-icon {
  transform: translateX(-3px);
}

/* ========== ANIMATIONS ========== */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-5);
    flex-wrap: wrap;
  }
  
  .categories-showcase-section {
    padding: var(--space-16) 0;
  }
  
  .categories-header {
    margin-bottom: var(--space-12);
  }
}

@media (max-width: 768px) {
  .categories-container {
    padding: 0 var(--space-4);
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
  }
  
  .category-card {
    padding: var(--space-5);
  }
  
  .category-image {
    height: 120px;
  }
  
  .categories-showcase-section {
    padding: var(--space-12) 0;
  }
  
  .categories-header {
    margin-bottom: var(--space-8);
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .category-card {
    padding: var(--space-4);
  }
  
  .category-title {
    font-size: var(--text-base);
  }
  
  .view-all-categories-btn {
    width: 90%;
    max-width: 150px;
    justify-content: center;
  }
  
  .category-image {
    height: 100px;
  }
}


/* ========== POPULAR CATEGORIES PRODUCTS SECTION ========== */
.section-container {
  position: relative;
  padding: var(--space-20) 0;
  background: var(--bg-white);
}

/* .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
} */

/* ========== SECTION HEADER ========== */
.section-header {
  text-align: center;
  /* margin-bottom: var(--space-12); */
  background: #6f85ff;
  color: white;
  width: 80%;
  margin: 0 auto;
  border-radius: 50px 50px 0 0;
  min-width:280px;
  max-width: 450px;
  min-height: 253px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  text-align: center;
}

.section-subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  line-height: 1.6;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

/* ========== PRODUCTS FLEX GRID ========== */
.products-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

/* ========== PRODUCT CARD ========== */
.product-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  border: 1px solid var(--bg-gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  max-width: 350px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.2);
}

/* ========== PRODUCT BADGES ========== */
.product-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  z-index: 2;
}

.popular-badge {
  background: var(--gradient-primary);
  color: white;
}

.sale-badge {
  background: var(--gradient-accent);
  color: white;
  top: calc(var(--space-3) + 30px);
}

/* ========== PRODUCT IMAGE ========== */
.product-image {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-4);
  background: var(--bg-gray-100);
}

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

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

.product-image a {
  display: block;
  width: 100%;
  height: 100%;
}

/* ========== PRODUCT CONTENT ========== */
.product-content {
  position: relative;
  z-index: 2;
}

.product-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.product-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.product-title a:hover {
  color: var(--primary);
}

.product-category {
  margin-bottom: var(--space-3);
}

.product-category span {
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: var(--bg-gray-100);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  display: inline-block;
}

/* ========== PRODUCT PRICE ========== */
.product-price {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.price,
.sale-price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary);
}

.regular-price {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ========== PRODUCT ACTIONS ========== */
.product-actions {
  display: flex;
  gap: var(--space-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  flex: 1;
}

.add-to-cart {
  background: var(--gradient-primary);
  color: white;
}

.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.out-of-stock {
  background: var(--bg-gray-200);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ========== OUT OF STOCK STATE ========== */
.product-card.out-of-stock {
  opacity: 0.7;
}

.product-card.out-of-stock .product-image img {
  filter: grayscale(0.3);
}

/* ========== NO PRODUCTS MESSAGE ========== */
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12) var(--space-4);
}

.no-products p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* ========== SECTION FOOTER ========== */
.section-footer {
  text-align: center;
  margin-top: var(--space-8);
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--bg-white);
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid rgba(var(--primary-rgb), 0.2);
  box-shadow: var(--shadow-sm);
}

.view-all-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.view-all-btn i {
  transition: var(--transition);
}

.view-all-btn:hover i {
  transform: translateX(-3px);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .products-flex {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-5);
  }
  
  .section-container {
    padding: var(--space-16) 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .products-flex {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
  }
  
  .product-card {
    padding: var(--space-4);
  }
  
  .product-image {
    height: 160px;
  }
  
  .section-container {
    padding: var(--space-12) 0;
  }
  
  .section-header {
    /* margin-bottom: var(--space-8); */
  }
}

@media (max-width: 480px) {
  .products-flex {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .product-card {
    padding: var(--space-4);
  }
  
  .product-title {
    font-size: var(--text-sm);
  }
  
  .view-all-btn {
    min-width:100px;
    max-width: 280px;
    justify-content: center;
  }
  
  .product-image {
    height: 140px;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.6s ease-out both;
    animation-delay: 0s;
  max-width: 300px !important;
  min-width: 75px;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }



/* ========== BEST SELLING PRODUCTS SECTION ========== */
/* از استایل‌های قبلی استفاده می‌کنیم و فقط موارد خاص این بخش رو اضافه می‌کنیم */

/* ========== PRODUCT BADGES - BEST SELLER ========== */
.best-seller-badge {
  background: var(--gradient-secondary);
  color: white;
  top: var(--space-3);
  left: var(--space-3);
  right: auto;
}

/* اگر همزمان چند badge وجود داشت */
.product-card .product-badge:nth-child(2) {
  top: calc(var(--space-3) + 30px);
}

.product-card .product-badge:nth-child(3) {
  top: calc(var(--space-3) + 60px);
}

/* ========== PRODUCT RATING ========== */
.product-rating {
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.star-rating {
  position: relative;
  height: 1em;
  width: 5.4em;
  font-family: star;
  font-size: var(--text-sm);
  line-height: 1;
}

.star-rating::before {
  content: "\73\73\73\73\73";
  color: var(--text-light);
  opacity: 0.25;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
}

.star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em;
}

.star-rating span::before {
  content: "\53\53\53\53\53";
  top: 0;
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ========== FEATURED PRODUCT STYLES ========== */
.product-card.featured {
  border: 2px solid rgba(var(--accent-rgb), 0.3);
  position: relative;
}

.product-card.featured::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(45deg, 
    rgba(var(--accent-rgb), 0.1), 
    rgba(var(--primary-rgb), 0.1), 
    rgba(var(--secondary-rgb), 0.1));
  z-index: -1;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* ========== PRODUCT IMAGE ENHANCEMENTS ========== */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== ADD TO CART BUTTON ENHANCEMENTS ========== */
.add-to-cart {
  position: relative;
  overflow: hidden;
}

.add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: var(--transition-slow);
}

.add-to-cart:hover::before {
  left: 100%;
}

/* ========== PRICE STYLES ENHANCEMENT ========== */
.product-price {
  align-items: center;
  margin-bottom: var(--space-3);
}

.sale-price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
}

.regular-price {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: line-through;
}

.price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

/* ========== PRODUCT CARD HOVER EFFECTS ========== */
.product-card:hover .product-image {
  transform: translateY(-4px);
}

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

/* ========== OUT OF STOCK ENHANCEMENT ========== */
.product-card.out-of-stock .product-image::after {
  content: 'ناموجود';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 2;
}

/* ========== ON SALE ENHANCEMENT ========== */
.product-card.on-sale .sale-price {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ========== RESPONSIVE ENHANCEMENTS ========== */
@media (max-width: 768px) {
  .best-seller-badge {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
  }
  
  .product-rating {
    font-size: var(--text-xs);
  }
  
  .star-rating {
    font-size: var(--text-xs);
    width: 4.8em;
  }
}

@media (max-width: 480px) {
  .product-card .product-badge:nth-child(2) {
    top: calc(var(--space-3) + 25px);
  }
  
  .product-card .product-badge:nth-child(3) {
    top: calc(var(--space-3) + 50px);
  }
  
  .sale-price,
  .price {
    font-size: var(--text-base);
  }
}

/* ========== ACCESSIBILITY ENHANCEMENTS ========== */
.product-card:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========== LOADING STATES ========== */
.product-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

.product-card.loading .product-image {
  background: var(--bg-gray-200);
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background: var(--bg-gray-200); }
  50% { background: var(--bg-gray-300); }
  100% { background: var(--bg-gray-200); }
}



/* ========== TODAY'S OFFERS SECTION ========== */
/* استایل‌های پایه از بخش‌های قبلی استفاده می‌شود */

/* ========== OFFERS FLEX LAYOUT ========== */
.offers-flex {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

/* ========== OFFER CARD ENHANCEMENTS ========== */
.product-card.hot-offer {
  border: 2px solid rgba(var(--accent-rgb), 0.3);
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(var(--accent-rgb), 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.product-card.hot-offer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  z-index: 3;
}

.product-card.sold-out {
  opacity: 0.7;
  filter: grayscale(0.3);
}

/* ========== SALE BADGE ENHANCEMENT ========== */
.sale-badge {
  background: var(--gradient-accent);
  color: white;
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ========== DISCOUNT PROGRESS BAR ========== */
.discount-progress {
  width: 100%;
  height: 6px;
  background: var(--bg-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--space-3) 0 var(--space-2);
  position: relative;
}

.discount-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
  position: relative;
}

.discount-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent);
  animation: shimmer 2s infinite;
}

.discount-progress-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-3);
  font-weight: 500;
}

/* ========== SALE COUNTDOWN TIMER ========== */
.sale-countdown {
  background: rgba(var(--primary-rgb), 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  direction: ltr;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.countdown-number {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--bg-white);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  min-width: 50px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== HOT OFFER SPECIAL STYLES ========== */
.product-card.hot-offer .sale-badge {
  background: var(--gradient-accent);
  animation: hotPulse 1.5s infinite;
}

@keyframes hotPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: var(--shadow-md);
  }
  50% { 
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5);
  }
}

.product-card.hot-offer .discount-progress-bar {
  background: var(--gradient-accent);
}

/* ========== SOLD OUT STATE ========== */
.product-card.sold-out .product-image::after {
  content: 'تمام شده';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 2;
}

.product-card.sold-out .btn {
  background: var(--bg-gray-300);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ========== OFFER BUTTON ENHANCEMENTS ========== */
.offers-flex .add-to-cart {
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.offers-flex .add-to-cart::before {
  content: '🔥';
  margin-left: var(--space-2);
  animation: fire 1s infinite;
}

@keyframes fire {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.offers-flex .add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========== VIEW ALL BUTTON FOR OFFERS ========== */
.section-footer .view-all-btn {
  background: var(--gradient-primary) !important;
  color: white;
  border: none;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.section-footer .view-all-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: var(--transition-slow);
}

.section-footer .view-all-btn:hover::before {
  left: 100%;
}

.section-footer .view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========== OFFER CARD HOVER EFFECTS ========== */
.product-card:hover .countdown-number {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.product-card:hover .discount-progress-bar {
  background: var(--gradient-secondary);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .offers-flex {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
  }
  
  .countdown-timer {
    gap: var(--space-3);
  }
  
  .countdown-number {
    font-size: var(--text-lg);
    min-width: 45px;
    padding: var(--space-2);
  }
}

@media (max-width: 768px) {
  .offers-flex {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
  }
  
  .countdown-timer {
    gap: var(--space-2);
  }
  
  .countdown-number {
    font-size: var(--text-base);
    min-width: 40px;
    padding: var(--space-1) var(--space-2);
  }
  
  .countdown-label {
    font-size: var(--text-xs);
  }
  
  .sale-countdown {
    padding: var(--space-2);
  }
}

@media (max-width: 480px) {
  .offers-flex {
    grid-template-columns: 1fr;
  }
  
  .countdown-timer {
    gap: var(--space-3);
  }
  
  .countdown-number {
    font-size: var(--text-lg);
    min-width: 45px;
  }
}

/* ========== COUNTDOWN ANIMATION ========== */
.countdown-number {
  transition: all 0.3s ease;
}

.countdown-number.flash {
  animation: flash 0.5s ease;
}

@keyframes flash {
  0%, 100% { 
    background: var(--bg-white);
    color: var(--primary-dark);
  }
  50% { 
    background: var(--primary);
    color: white;
  }
}

/* ========== URGENT OFFER STYLES ========== */
.product-card .sale-countdown.urgent {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.product-card .sale-countdown.urgent .countdown-number {
  background: var(--accent);
  color: white;
  animation: urgentPulse 1s infinite;
}

@keyframes urgentPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: var(--shadow-sm);
  }
  50% { 
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.5);
  }
}


/* ========== WHY US SECTION ========== */
.why-us-section {
  background: linear-gradient(135deg, var(--bg-gray-50) 0%, var(--bg-white) 50%, var(--bg-gray-100) 100%);
  position: relative;
  overflow: hidden;
  text-align: initial;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.why-us-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(var(--primary-rgb), 0.3), 
    transparent);
}

/* ========== WHY FLEX LAYOUT ========== */
.why-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

/* ========== WHY ITEM ========== */
.why-item {
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  border: 1px solid var(--bg-gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.why-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-slow);
}

.why-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.why-item:hover::before {
  transform: scaleX(1);
}

/* ========== WHY ICON ========== */
.why-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-slow);
}

.why-item:hover .why-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--gradient-primary);
}

.why-icon i {
  font-size: var(--text-2xl);
  color: var(--primary);
  transition: var(--transition);
}

.why-item:hover .why-icon i {
  color: white;
  transform: scale(1.1);
}

.why-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(27%) sepia(85%) saturate(1000%) hue-rotate(320deg) brightness(90%) contrast(101%);
  transition: var(--transition);
}

.why-item:hover .why-icon-img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
  transform: scale(1.1);
}

.why-icon-placeholder {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-md);
  position: relative;
}

.why-icon-placeholder::before {
  content: '?';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 700;
  font-size: var(--text-lg);
}

/* ========== WHY CONTENT ========== */
.why-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
  transition: var(--transition);
}

.why-item:hover .why-title {
  color: var(--primary-dark);
}

.why-text {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ========== DECORATIVE ELEMENTS ========== */
.why-item::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition-slow);
}

.why-item:hover::after {
  opacity: 1;
  transform: scale(1.2);
}

/* ========== ANIMATIONS ========== */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.why-icon {
  animation: floatIcon 3s ease-in-out infinite;
}

.why-item:nth-child(1) .why-icon { animation-delay: 0s; }
.why-item:nth-child(2) .why-icon { animation-delay: 1s; }
.why-item:nth-child(3) .why-icon { animation-delay: 2s; }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .why-flex {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
  }
  
  .why-item {
    padding: var(--space-6);
  }
  
  .why-icon {
    width: 70px;
    height: 70px;
  }
  
  .why-icon i {
    font-size: var(--text-xl);
  }
  
  .why-icon-img {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 768px) {
  .why-flex {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-5);
  }
  
  .why-item {
    padding: var(--space-5);
  }
  
  .why-title {
    font-size: var(--text-lg);
  }
  
  .why-text {
    font-size: var(--text-sm);
  }
}

@media (max-width: 480px) {
  .why-flex {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .why-item {
    padding: var(--space-5);
    margin: 0 var(--space-2);
  }
  
  .why-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-4);
  }
  
  .why-icon i {
    font-size: var(--text-lg);
  }
  
  .why-icon-img {
    width: 30px;
    height: 30px;
  }
}

/* ========== SPECIAL EFFECTS ========== */
.why-item:nth-child(1):hover .why-icon {
  background: var(--gradient-primary);
}

.why-item:nth-child(2):hover .why-icon {
  background: var(--gradient-secondary);
}

.why-item:nth-child(3):hover .why-icon {
  background: var(--gradient-accent);
}

/* ========== LOADING STATE ========== */
.why-item.loading {
  opacity: 0.6;
  pointer-events: none;
}

.why-item.loading .why-icon {
  background: var(--bg-gray-300);
  animation: skeleton-loading 1.5s infinite;
}

.why-item.loading .why-title,
.why-item.loading .why-text {
  background: var(--bg-gray-200);
  color: transparent;
  border-radius: var(--radius-md);
  animation: skeleton-loading 1.5s infinite;
}

.why-item.loading .why-title {
  height: 24px;
  margin-bottom: var(--space-3);
}

.why-item.loading .why-text {
  height: 60px;
}

@keyframes skeleton-loading {
  0% { background: var(--bg-gray-200); }
  50% { background: var(--bg-gray-300); }
  100% { background: var(--bg-gray-200); }
}

/* ========== ACCESSIBILITY ========== */
.why-item:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.why-icon:focus {
  outline: none;
}


/* ========== BLOG SECTION ========== */
.blog-section {
  background: var(--bg-white);
  position: relative;
  padding: var(--space-20) 0;
  border-top: 1px solid var(--bg-gray-200);
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ========== BLOG HEADER ========== */
.blog-header {
  text-align: center;
  margin-bottom: var(--space-12);
  position: relative;
}

.blog-header .section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-header .section-subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-6);
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--bg-white);
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid rgba(var(--primary-rgb), 0.2);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn-view-all::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-full);
}

.btn-view-all:hover::before {
  opacity: 0.1;
}

.btn-view-all:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-icon {
  transition: var(--transition);
}

.btn-view-all:hover .btn-icon {
  transform: translateX(-3px);
}

/* ========== BLOG GRID ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

/* ========== BLOG CARD ========== */
.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bg-gray-200);
  transition: var(--transition-slow);
  position: relative;
  max-width: 300px;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.2);
}

/* ========== BLOG CARD IMAGE ========== */
.blog-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.blog-category {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgba(var(--primary-rgb), 0.9);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

/* ========== BLOG CARD CONTENT ========== */
.blog-card-content {
  padding: var(--space-6);
}

/* ========== BLOG META ========== */
.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.blog-date,
.blog-reading-time {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.blog-date i,
.blog-reading-time i {
  font-size: var(--text-sm);
  opacity: 0.7;
}

/* ========== BLOG TITLE ========== */
.blog-title {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

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

.blog-title a:hover {
  color: var(--primary);
}

/* ========== BLOG FOOTER ========== */
.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--bg-gray-200);
}

.blog-read-more {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  transition: var(--transition);
}

.read-more-icon {
  transition: var(--transition);
}

.blog-read-more:hover {
  color: var(--primary-dark);
}

.blog-read-more:hover .read-more-icon {
  transform: translateX(3px);
}

/* ========== NO POSTS MESSAGE ========== */
.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12) var(--space-4);
}

.no-posts p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin: 0;
}

/* ========== BLOG CARD ANIMATIONS ========== */
.blog-card {
  animation: fadeInUp 0.6s ease-out both;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
  }
  
  .blog-section {
    padding: var(--space-16) 0;
  }
  
  .blog-card-content {
    padding: var(--space-5);
  }
}

@media (max-width: 768px) {
  .blog-container {
    padding:10px;
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
  }
  
  .blog-header {
    margin-bottom: var(--space-8);
  }
  
  .blog-card-image {
    height: 200px;
  }
  
  .blog-section {
    padding: var(--space-12) 0;
  }
  
  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .blog-card {
    margin: 0 var(--space-2);
  }
  
  .blog-card-content {
    padding: var(--space-4);
  }
  
  .blog-card-image {
    height: 180px;
  }
  
  .blog-title {
    font-size: var(--text-base);
  }
  
  .btn-view-all {
    max-width: 280px;
    justify-content: center;
  }
}

/* ========== SPECIAL EFFECTS ========== */
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-slow);
}

.blog-card:hover::before {
  transform: scaleX(1);
}

/* ========== LOADING STATE ========== */
.blog-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

.blog-card.loading .blog-card-image {
  background: var(--bg-gray-200);
  animation: skeleton-loading 1.5s infinite;
}

.blog-card.loading .blog-title,
.blog-card.loading .blog-meta span {
  background: var(--bg-gray-200);
  color: transparent;
  border-radius: var(--radius-md);
  animation: skeleton-loading 1.5s infinite;
}

.blog-card.loading .blog-title {
  height: 20px;
  margin-bottom: var(--space-3);
}

.blog-card.loading .blog-meta span {
  height: 14px;
  width: 80px;
}

/* ========== ACCESSIBILITY ========== */
.blog-card:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.blog-title a:focus {
  outline: none;
}

/* ========== CATEGORY COLORS ========== */
.blog-category[style*="background"] {
  /* اگر رنگ دستی تنظیم شده باشد */
  color: white;
}

/* ========== HOVER GRADIENT OVERLAY ========== */
.blog-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
  opacity: 0;
  transition: var(--transition);
}

.blog-card:hover .blog-card-image::after {
  opacity: 1;
}



/* ========== NEWSLETTER SECTION ========== */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  position: relative;
  padding: var(--space-20) 0;
  overflow: hidden;
  color: white;
}

.newsletter .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ========== NEWSLETTER CONTENT ========== */
.newsletter-content {
  text-align: right;
}

.newsletter-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.newsletter-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.newsletter-subtitle {
  font-size: var(--text-lg);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  opacity: 0.9;
}

/* ========== NEWSLETTER FORM ========== */
.newsletter-form {
  margin-bottom: var(--space-6);
}

.form-group {
  display: flex;
  gap: var(--space-3);
  max-width: 400px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.btn-subscribe {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: var(--accent);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.btn-subscribe:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-subscribe:active {
  transform: translateY(0);
}

/* ========== NEWSLETTER FEATURES ========== */
.newsletter-features {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  opacity: 0.9;
}

.feature-icon {
  font-size: var(--text-lg);
}

.newsletter-note {
  font-size: var(--text-sm);
  opacity: 0.7;
  margin: 0;
}

/* ========== NEWSLETTER VISUAL ========== */
.newsletter-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.envelope {
  position: relative;
  width: 200px;
  height: 150px;
  perspective: 1000px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.envelope-front,
.envelope-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.envelope-front {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.envelope-heart {
  font-size: var(--text-3xl);
  animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.envelope-back {
  z-index: 1;
  transform: rotate(5deg) translateY(10px);
  opacity: 0.8;
}

.letter {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: white;
  border-radius: var(--radius-md);
  z-index: 2;
  transform: translateY(0);
  transition: var(--transition-slow);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.envelope:hover .letter {
  transform: translateY(-60px);
  transition-delay: 0.2s;
}

.letter-content {
  text-align: center;
  color: var(--text-primary);
  padding: var(--space-3);
}

.letter-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-1);
}

.letter-discount {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.letter-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ========== NEWSLETTER PARTICLES ========== */
.newsletter-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  font-size: var(--text-lg);
  animation: floatParticle 8s linear infinite;
  opacity: 0.7;
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.particle:nth-child(2) {
  top: 60%;
  left: 20%;
  animation-delay: 2s;
  animation-duration: 12s;
}

.particle:nth-child(3) {
  top: 30%;
  right: 15%;
  animation-delay: 4s;
  animation-duration: 8s;
}

.particle:nth-child(4) {
  top: 70%;
  right: 25%;
  animation-delay: 6s;
  animation-duration: 14s;
}

.particle:nth-child(5) {
  top: 50%;
  left: 30%;
  animation-delay: 1s;
  animation-duration: 9s;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .newsletter .container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
  
  .newsletter-content {
    text-align: center;
  }
  
  .form-group {
    margin: 0 auto;
  }
  
  .newsletter-features {
    justify-content: center;
  }
  
  .newsletter-section {
    padding: var(--space-16) 0;
  }
}

@media (max-width: 768px) {
  .newsletter .container {
    padding: 0 var(--space-4);
    gap: var(--space-6);
  }
  
  .form-group {
    flex-direction: column;
    max-width: 220px;
  }
  
  .newsletter-features {
    gap: var(--space-4);
  }
  
  .feature {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
  
  .envelope {
    width: 150px;
    height: 120px;
  }
  
  .newsletter-section {
    padding: var(--space-12) 0;
  }
}

@media (max-width: 480px) {
  .newsletter-title {
    font-size: var(--text-2xl);
  }
  
  .newsletter-subtitle {
    font-size: var(--text-base);
  }
  
  .newsletter-features {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .feature {
    justify-content: center;
  }
  
  .btn-subscribe {
    width: 100%;
    justify-content: center;
  }
  
  .envelope {
    width: 120px;
    height: 100px;
  }
  
  .letter-content {
    padding: var(--space-2);
  }
  
  .letter-discount {
    font-size: var(--text-lg);
  }
}

/* ========== FORM VALIDATION STYLES ========== */
.newsletter-form input[type="email"]:invalid:not(:focus) {
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:valid {
  border: 2px solid rgba(255, 255, 255, 0.8);
}

/* ========== LOADING STATE ========== */
.newsletter-form.loading .btn-subscribe {
  opacity: 0.7;
  pointer-events: none;
}

.newsletter-form.loading .btn-text::after {
  content: '...';
  animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* ========== SUCCESS STATE ========== */
.newsletter-form.success .btn-subscribe {
  background: var(--accent-light);
  color: var(--text-primary);
}

.newsletter-form.success .btn-text::before {
  content: '✅ ';
  margin-left: var(--space-2);
}


/* ========== TESTIMONIALS SECTION ========== */
.testimonials {
  background: linear-gradient(135deg, var(--bg-gray-50) 0%, var(--bg-white) 50%, var(--bg-gray-100) 100%);
  position: relative;
  padding: var(--space-20) 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.testimonials .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  text-align: center;
}

.testimonials .section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonials .section-subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-12);
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

/* ========== TESTIMONIAL ITEM ========== */
.testimonial-item {
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid var(--bg-gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  text-align: right;
}

.testimonial-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-slow);
}

.testimonial-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.testimonial-item:hover::before {
  transform: scaleX(1);
}

/* ========== TESTIMONIAL CONTENT ========== */
.testimonial-content {
  position: relative;
  z-index: 2;
}

.quote-icon {
  font-size: var(--text-4xl);
  color: var(--primary-light);
  margin-bottom: var(--space-4);
  line-height: 1;
  opacity: 0.7;
}

.testimonial-text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  position: relative;
}

/* ========== TESTIMONIAL AUTHOR ========== */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--text-lg);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.author-info {
  text-align: right;
  flex: 1;
}

.author-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.author-badge {
  font-size: var(--text-xs);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* ========== TESTIMONIAL RATING ========== */
.testimonial-rating {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  direction: ltr;
}

.star {
  font-size: var(--text-lg);
  color: var(--accent);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) { animation-delay: 0s; }
.star:nth-child(2) { animation-delay: 0.5s; }
.star:nth-child(3) { animation-delay: 1s; }
.star:nth-child(4) { animation-delay: 1.5s; }
.star:nth-child(5) { animation-delay: 2s; }

@keyframes twinkle {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* ========== TESTIMONIAL ACTIONS ========== */
.testimonials-actions {
  text-align: center;
  margin-top: var(--space-8);
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--bg-white);
  color: var(--primary-dark);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid rgba(var(--primary-rgb), 0.2);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-load-more::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-full);
}

.btn-load-more:hover::before {
  opacity: 0.1;
}

.btn-load-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-icon {
  transition: var(--transition);
}

.btn-load-more:hover .btn-icon {
  transform: translateY(3px);
}

/* ========== DECORATIVE ELEMENTS ========== */
.testimonial-item::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition-slow);
}

.testimonial-item:hover::after {
  opacity: 1;
  transform: scale(1.2);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-item {
  animation: fadeInUp 0.6s ease-out both;
}

.testimonial-item:nth-child(1) { animation-delay: 0.1s; }
.testimonial-item:nth-child(2) { animation-delay: 0.2s; }
.testimonial-item:nth-child(3) { animation-delay: 0.3s; }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .testimonial-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
  }
  
  .testimonials {
    padding: var(--space-16) 0;
  }
  
  .testimonial-item {
    padding: var(--space-6);
  }
}

@media (max-width: 768px) {
  .testimonials .container {
    padding: 0 var(--space-4);
  }
  
  .testimonial-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
  }
  
  .testimonial-author {
    gap: var(--space-3);
  }
  
  .author-avatar {
    width: 45px;
    height: 45px;
    font-size: var(--text-base);
  }
  
  .testimonials {
    padding: var(--space-12) 0;
  }
  
  .testimonials .section-subtitle {
    margin-bottom: var(--space-8);
  }
}

@media (max-width: 480px) {
  .testimonial-cards {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .testimonial-item {
    padding: var(--space-5);
    margin: 0 var(--space-2);
  }
  
  .testimonial-text {
    font-size: var(--text-sm);
  }
  
  .author-avatar {
    width: 40px;
    height: 40px;
    font-size: var(--text-sm);
  }
  
  .author-name {
    font-size: var(--text-sm);
  }
  
  .btn-load-more {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ========== SPECIAL EFFECTS ========== */
.testimonial-item:nth-child(odd) .author-avatar {
  background: var(--gradient-primary);
}

.testimonial-item:nth-child(even) .author-avatar {
  background: var(--gradient-secondary);
}

.testimonial-item:nth-child(3n) .author-avatar {
  background: var(--gradient-accent);
}

/* ========== LOADING STATE ========== */
.testimonial-item.loading {
  opacity: 0.6;
  pointer-events: none;
}

.testimonial-item.loading .testimonial-text,
.testimonial-item.loading .author-name,
.testimonial-item.loading .author-badge {
  background: var(--bg-gray-200);
  color: transparent;
  border-radius: var(--radius-md);
  animation: skeleton-loading 1.5s infinite;
}

.testimonial-item.loading .testimonial-text {
  height: 60px;
  margin-bottom: var(--space-4);
}

.testimonial-item.loading .author-name {
  height: 16px;
  width: 100px;
  margin-bottom: var(--space-2);
}

.testimonial-item.loading .author-badge {
  height: 14px;
  width: 70px;
}

.testimonial-item.loading .author-avatar {
  background: var(--bg-gray-300);
  animation: skeleton-loading 1.5s infinite;
}

/* ========== ACCESSIBILITY ========== */
.testimonial-item:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-load-more:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========== HOVER GRADIENT OVERLAY ========== */
.testimonial-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.02), rgba(var(--secondary-rgb), 0.02));
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.testimonial-item:hover::after {
  opacity: 1;
}




/*///////////////////////single

.single-page {
  background: #f9f9f9;
  padding: 40px 15px;
   margin: 0 auto;

}

.single-container {
  margin: 0 auto;
  display: flex;
  gap: 30px;
}

.main-single {
  min-width: 300px;
  width: 90%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 30px;
  margin-bottom: 30px;
}

/* هدر مقاله */
.post-header {
  margin-bottom: 25px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 20px;
}

.post-title {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-item i {
  color: #3498db;
}

/* تصویر شاخص */
.post-thumbnail {
  margin-bottom: 25px;
  border-radius: 8px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
  transform: scale(1.02);
}

/* محتوای مقاله */
.content-single {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2c3e50;
}

.content-single p {
  margin-bottom: 20px;
}

.content-single h2, 
.content-single h3, 
.content-single h4 {
  color: #2c3e50;
  margin: 30px 0 15px 0;
  font-weight: 600;
}

.content-single h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.content-single h3 {
  font-size: 1.5rem;
}

.content-single blockquote {
  border-right: 4px solid #3498db;
  background: #f8f9fa;
  padding: 20px;
  margin: 25px 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}



/* استایل پایه و مدرن برای حساب کاربری */
.woocommerce-privacy-policy-text{display: none;}
/* استایل‌های اصلی صفحه اکانت کاربری */


/* استایل اصلی صفحه حساب کاربری */
.woocommerce-account-flex {
  display: flex;
  direction: rtl;
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 500px;
  font-family: Vazir, Tahoma, sans-serif !important;
  margin-top: -40px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  margin:  20px 0;
  border-radius: 52px;
}

/* پروفایل کاربری */
.beauty-user-profile {
  text-align: center;
  border-radius: 20px;
  color: #2d3748;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  max-height: 143px;
  padding: 25px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.beauty-user-profile::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

.beauty-user-avatar {
  position: relative;
  z-index: 2;
}

.beauty-user-avatar img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.beauty-user-avatar img:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.6);
}

.beauty-default-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffa726, #ff9800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.beauty-user-info {
  position: relative;
  z-index: 2;
}

.beauty-user-info h3.beauty-user-name {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.beauty-user-welcome {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* سایدبار ناوبری */
.woocommerce-MyAccount-navigation.nav-account-customer-css-ali {
  width: 300px;
  border: none;
  border-radius: 20px;
  min-height: 75vh;
  background: white;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.woocommerce-MyAccount-navigation.nav-account-customer-css-ali ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-MyAccount-navigation-link {
  height: auto !important;
  margin: 8px 15px;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.woocommerce-MyAccount-navigation-link:last-child {
  border-bottom: none;
}

.woocommerce-MyAccount-navigation-link a {
  display: flex !important;
  align-items: center;
  padding: 15px 20px !important;
  color: #4a5568 !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.woocommerce-MyAccount-navigation-link a::before {
  content: '';
  position: absolute;
  right: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.05));
  transition: right 0.3s ease;
}

.woocommerce-MyAccount-navigation-link a:hover {
  background: #f8fafc !important;
  color: #667eea !important;
  transform: translateX(-5px);
}

.woocommerce-MyAccount-navigation-link a:hover::before {
  right: 0;
}

.woocommerce-MyAccount-navigation-link.is-active a {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  transform: translateX(-5px);
}

.woocommerce-MyAccount-navigation-link.is-active a::before {
  display: none;
}

/* محتوای اصلی */
.woocommerce-MyAccount-content {
  flex: 1;
  background: white;
  border: none;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  min-height: 600px;
}

/* استایل برای اطلاعیه‌ها */
.woocommerce-notices-wrapper {
  margin-bottom: 25px;
}

.woocommerce-error {
  background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
  border: none;
  border-radius: 15px;
  padding: 20px;
  list-style: none;
  color: white;
  box-shadow: 0 5px 15px rgba(245, 101, 101, 0.3);
}

.woocommerce-error li {
  margin: 0;
  padding: 0;
  font-weight: 500;
}

.woocommerce-info {
  background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
  border: none;
  border-radius: 15px;
  padding: 20px;
  color: white;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(66, 153, 225, 0.3);
  font-weight: 500;
}

/* دکمه‌ها */
.woocommerce-MyAccount-content .button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

 

.woocommerce-MyAccount-content .button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white;
}

.woocommerce-MyAccount-content .button:hover::before {
  right: 100%;
}

/* استایل برای جدول‌ها (در صورت وجود) */
.woocommerce-MyAccount-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.woocommerce-MyAccount-content table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  text-align: right;
  font-weight: 600;
}

.woocommerce-MyAccount-content table td {
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
  background: white;
}

.woocommerce-MyAccount-content table tr:hover td {
  background: #f8fafc;
}

/* فرم‌ها */
.woocommerce-MyAccount-content form {
  background: #f8fafc;
  padding: 25px;
  border-radius: 15px;
  margin: 20px 0;
}

.woocommerce-MyAccount-content .form-row {
  margin-bottom: 20px;
}

.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* رسپانسیو */
@media (max-width: 1024px) {
  .woocommerce-account-flex {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
  }
  
  .woocommerce-MyAccount-navigation.nav-account-customer-css-ali {
    width: 100%;
    min-height: auto;
    order: 1;
  }
  
  .woocommerce-MyAccount-content {
    order: 2;
    padding: 25px;
  }
  
  .beauty-user-profile {
    flex-direction: row;
    justify-content: flex-start;
    text-align: right;
    gap: 15px;
    max-height: none;
    padding: 20px;
  }
  
  .beauty-user-avatar {
    margin-bottom: 0;
  }
  
  .beauty-user-avatar img,
  .beauty-default-avatar {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  .woocommerce-account-flex {
    margin-top: -20px;
    padding: 10px;
  }
  
  .woocommerce-MyAccount-content {
    padding: 20px 15px;
  }
  
  .beauty-user-profile {
    padding: 15px;
  }
  
  .beauty-user-info h3.beauty-user-name {
    font-size: 18px;
  }
  
  .woocommerce-MyAccount-navigation-link a {
    padding: 12px 15px !important;
    font-size: 14px;
  }
  
  .woocommerce-MyAccount-content .button {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .woocommerce-MyAccount-navigation.nav-account-customer-css-ali {
    width: 100%;
  }
  
  .beauty-user-profile {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .beauty-user-avatar {
    margin-bottom: 10px;
  }
  
  .woocommerce-MyAccount-navigation-link {
    margin: 5px 10px;
  }
  
  .woocommerce-MyAccount-content {
    padding: 15px 10px;
  }
  
  .woocommerce-error,
  .woocommerce-info {
    padding: 15px;
    font-size: 14px;
  }
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.woocommerce-MyAccount-navigation.nav-account-customer-css-ali,
.woocommerce-MyAccount-content {
  animation: fadeInUp 0.6s ease-out;
}

/* اسکرول بار زیبا */
.woocommerce-MyAccount-navigation.nav-account-customer-css-ali::-webkit-scrollbar {
  width: 6px;
}

.woocommerce-MyAccount-navigation.nav-account-customer-css-ali::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.woocommerce-MyAccount-navigation.nav-account-customer-css-ali::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

.woocommerce-MyAccount-navigation.nav-account-customer-css-ali::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

 

/* بهبودهای ظاهری برای المان‌های خاص */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  color: #2d3748;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.woocommerce-MyAccount-content h2::after,
.woocommerce-MyAccount-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* استایل برای وضعیت‌های مختلف */
.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #fc8181 !important;
  border: 1px solid #fed7d7;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #fed7d7 !important;
  color: #c53030 !important;
}

.woocommerce-MyAccount-navigation-link--customer-logout.is-active a {
  background: linear-gradient(135deg, #fc8181 0%, #f56565 100%) !important;
  color: white !important;
  border: none;
}



/*============single product*/
:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --secondary: #9c27b0;
    --accent: #ff4081;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f8f8f8;
    --bg-dark: #2c3e50;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-dark: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

.bsp-single-product {
    background: var(--bg);
    min-height: 100vh;
}

.bsp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* .bsp-product-header {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
} */

.bsp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.bsp-breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.bsp-breadcrumb a:hover {
    color: var(--primary);
}

.bsp-product-main {
    padding: 40px 0;
}

.bsp-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.bsp-product-gallery {
    position: sticky;
    top: 20px;
}

.bsp-gallery-main {
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.bsp-main-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}



.bsp-thumb-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.bsp-thumb-image:hover,
.bsp-thumb-image.active {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.bsp-product-info {
    /* padding: 20px 0; */
}

.bsp-product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.3;
}

.bsp-taxonomies {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.bsp-categories,
.bsp-tags,
.bsp-brands {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bsp-categories:last-child,
.bsp-tags:last-child,
.bsp-brands:last-child {
    margin-bottom: 0;
}

.bsp-tax-label {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
    min-width: 60px;
}

.bsp-tax-item {
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.bsp-tax-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.bsp-short-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 16px;
    border-right: 3px solid var(--primary);
    padding-right: 15px;
}

.bsp-product-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.bsp-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bsp-stars {
    color: #ffc107;
    font-size: 20px;
}

.bsp-star {
    margin: 0 1px;
}

.bsp-rating-text {
    color: var(--text-light);
    font-size: 14px;
}

.bsp-sku {
    color: var(--text-light);
    font-size: 14px;
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.bsp-sku span {
    font-weight: 600;
    color: var(--text);
}

.bsp-price-section {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8f9fa 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.bsp-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.bsp-sale-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.bsp-regular-price {
    font-size: 20px;
    color: var(--text-light);
    text-decoration: line-through;
}

.bsp-current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

.bsp-discount {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.bsp-in-stock{
  font-size: 10px;
}

.bsp-stock-quantity {
    color: var(--text-light);
    font-size: 13px;
}

.bsp-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.bsp-spec {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.bsp-spec:last-child {
    border-bottom: none;
}

.bsp-spec span {
    font-weight: 600;
    color: var(--text);
}

.bsp-anarms {
    margin-bottom: 30px;
}

.bsp-anarms h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 600;
}

.bsp-anarms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bsp-anarm-tag {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow);
}

.bsp-add-to-cart-section {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.bsp-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.bsp-quantity label {
    font-weight: 600;
    color: var(--text);
    font-size: 16px;
}

.bsp-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
}

.bsp-qty-minus,
.bsp-qty-plus {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text);
}

.bsp-qty-minus:hover,
.bsp-qty-plus:hover {
    background: var(--primary);
    color: white;
}

.bsp-qty-input {
    width: 70px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 16px;
    background: var(--bg);
    font-weight: 600;
}

.bsp-action-buttons {
    display: flex;
    gap: 12px;
}

.bsp-add-to-cart-btn,
.bsp-quick-buy-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bsp-add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
}

.bsp-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-dark);
}

.bsp-quick-buy-btn {
    background: linear-gradient(135deg, var(--warning), #f57c00);
    color: white;
    box-shadow: var(--shadow);
}

.bsp-quick-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-dark);
}

.bsp-out-of-stock-message {
    text-align: center;
    padding: 30px 20px;
}

.bsp-out-of-stock-message p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 16px;
}

.bsp-notify-me {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.bsp-notify-me:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.bsp-product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.bsp-wishlist-btn,
.bsp-compare-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    font-weight: 500;
}

.bsp-wishlist-btn:hover,
.bsp-compare-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.bsp-product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bsp-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    border-right: 3px solid var(--primary);
    transition: var(--transition);
}

.bsp-feature:hover {
    transform: translateX(5px);
    background: var(--bg);
}

.bsp-feature-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.bsp-product-tabs {
    padding: 50px 0;
    position: relative;
}

.bsp-product-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.bsp-tabs-nav {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 5px;
}

.bsp-tab-btn {
    padding: 16px 32px;
    border: none;
    background: rgba(233, 30, 99, 0.1);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background-color: blueviolet;
    color: white;
}

.bsp-tab-btn.active {
    color: white;
    border-bottom-color: var(--primary);
    background:yellowgreen;
}

.bsp-tab-btn:hover {
    color: #000;
    background: rgba(255,255,255,0.05);
}

.bsp-tabs-content {
    min-height: 300px;
}

.bsp-tab-panel {
    display: none;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-dark);
    margin-top: 20px;
}

.bsp-tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bsp-product-description {
    line-height: 1.8;
    color: var(--text);
    font-size: 16px;
}

.bsp-product-description p {
    margin-bottom: 20px;
}

.bsp-product-description h1,
.bsp-product-description h2,
.bsp-product-description h3,
.bsp-product-description h4 {
    color: var(--text);
    margin: 30px 0 15px 0;
}

.bsp-specifications {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bsp-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.bsp-spec-row:hover {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius-sm);
    border-bottom-color: transparent;
}

.bsp-spec-label {
    font-weight: 600;
    color: var(--text);
    min-width: 150px;
}

.bsp-spec-value {
    color: var(--text-light);
    text-align: left;
    flex: 1;
}

.bsp-reviews {
    background: var(--bg);
}

/* استایل‌های سفارشی برای کامنت‌های ووکامرس */

/* استایل اصلی بخش کامنت‌ها */
.comment-respond {
  /* border-radius: 20px;
  padding: 10px;
  margin: 50px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden; */
}

.comment-respond::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* عنوان بخش کامنت */
.comment-reply-title {
  color: #2d3748;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}


.comment-reply-title small {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: normal;
}

#cancel-comment-reply-link {
  color: #e53e3e;
  text-decoration: none;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  background: #fed7d7;
  transition: all 0.3s ease;
}

#cancel-comment-reply-link:hover {
  background: #feb2b2;
  color: #c53030;
  transform: translateY(-1px);
}

/* فرم کامنت */
.comment-form {
  margin-top: 30px;
}

/* وضعیت کاربر لاگین شده */
.logged-in-as {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 25px;
  border-right: 4px solid #2196f3;
  font-size: 0.95rem;
  line-height: 1.6;
}

.logged-in-as a {
  color: #1976d2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin: 0 5px;
}

.logged-in-as a:hover {
  color: #0d47a1;
  text-decoration: underline;
}

.required-field-message {
  display: block;
  margin-top: 10px;
  color: #666;
  font-size: 0.9rem;
}

.required {
  color: #e53e3e;
  font-weight: bold;
}

/* فیلد متن کامنت */
.comment-form-comment {
  margin-bottom: 25px;
}

.comment-form-comment label {
  display: block;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
  font-size: 1.1rem;
  position: relative;
  padding-right: 10px;
}

.comment-form-comment label::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

#comment {
  width: 90% !important;
  min-height: 150px !important;
  padding: 20px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 15px !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  font-family: 'Vazir', 'Tahoma', sans-serif !important;
  transition: all 0.3s ease !important;
  resize: vertical !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

#comment:focus {
  outline: none !important;
  border-color: #667eea !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
  transform: translateY(-2px) !important;
}

/* دکمه ارسال */
.form-submit {
  margin: 30px;
  text-align: left;
}

#submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
  padding: 15px 35px !important;
  border-radius: 12px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  font-family: 'Vazir', 'Tahoma', sans-serif !important;
}

#submit::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  right: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
  transition: right 0.6s ease !important;
}

#submit:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
}

#submit:hover::before {
  right: 100% !important;
}

#submit:active {
  transform: translateY(-1px) !important;
}

/* شمارنده کاراکتر */
.comment-form-comment {
  position: relative;
}

.char-counter {
  position: absolute;
  left: 20px;
  bottom: 10px;
  font-size: 0.8rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 8px;
  border-radius: 10px;
  pointer-events: none;
}

.char-counter.warning {
  color: #ed8936;
}

.char-counter.error {
  color: #e53e3e;
  font-weight: bold;
}

/* استایل برای حالت‌های مختلف */
.comment-form .loading {
  opacity: 0.7;
  pointer-events: none;
}

.comment-form .success-message {
  background: #c6f6d5;
  color: #276749;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-right: 4px solid #38a169;
  font-weight: 600;
}

.comment-form .error-message {
  background: #fed7d7;
  color: #c53030;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-right: 4px solid #e53e3e;
  font-weight: 600;
}

/* رسپانسیو */
@media (max-width: 768px) {
  .comment-respond {
      padding: 30px 45px;
      margin: 30px 0;
      border-radius: 15px;
  }
  
  .comment-reply-title {
      text-align: right;
  }
  
  .comment-reply-title::after {
      right: 0;
      transform: none;
  }
  
  .logged-in-as {
      padding: 15px;
      font-size: 0.9rem;
  }
  
  #comment {
      padding: 15px !important;
      min-height: 120px !important;
  }
  
  #submit {
      width: 100% !important;
      padding: 15px !important;
      font-size: 1rem !important;
  }
  
  .form-submit {
      text-align: center;
  }
}

@media (max-width: 480px) {
  .comment-respond {
      padding: 25px 28px;
  }
  
  .comment-reply-title {
      font-size: 1.3rem;
  }
  
  .logged-in-as {
      text-align: center;
  }
  
  .logged-in-as a {
      display: inline-block;
      margin: 5px;
  }
}

/* انیمیشن‌ها */
@keyframes slideInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.comment-respond {
  animation: slideInUp 0.6s ease-out;
}



/* بهبودهای ظاهری */
.comment-form p {
  margin-bottom: 20px;
}

.comment-form .form-submit {
  margin-bottom: 0;
}

/* استایل برای فیلدهای اضافی (در صورت وجود) */
.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin-bottom: 20px;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* استایل برای رتبه‌بندی (در صورت استفاده از پلاگین رتبه‌بندی) */
.comment-form-rating {
  margin-bottom: 20px;
}

.star-rating {
  display: flex;
  gap: 5px;
  direction: ltr;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 1.5rem;
  color: #cbd5e0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.star-rating label:hover,
.star-rating input:checked ~ label {
  color: #f6ad55;
}

/* اسکرول بار زیبا برای textarea */
#comment::-webkit-scrollbar {
  width: 6px;
}

#comment::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

#comment::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

#comment::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}


/*  =====================realated============*/
.bsp-related-products {
  padding: 60px 0;
  background: var(--bg-light);
}

.bsp-section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: var(--text);
  font-weight: 700;
  position: relative;
}

.bsp-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.bsp-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* .bsp-product-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  max-width: 350px;
  min-width: 270px;
}

.bsp-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-dark);
}

.bsp-product-image {
  height: 220px;
  overflow: hidden;
  position: relative;
background:#ffff;
}

.bsp-product-image img {
  width: 180px;
  display: block;
  margin: auto;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.bsp-product-card:hover .bsp-product-image img {
  transform: scale(1.1);
}

.bsp-product-info {
  padding: 20px;
}

.bsp-product-info h3 {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.4;
  height: 45px;
  overflow: hidden;
}

.bsp-product-info h3 a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.bsp-product-info h3 a:hover {
  color: var(--primary);
}

.bsp-product-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
} */

@media (max-width: 1024px) {
  .bsp-product-grid {
      gap: 30px;
  }
  
  .bsp-container {
      padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .bsp-product-grid {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  
  .bsp-product-gallery {
      position: static;
  }
  
  .bsp-gallery-main {
      max-height: 350px;
  }
  
  .bsp-action-buttons {
      flex-direction: column;
  }
  
  .bsp-tabs-nav {
      flex-wrap: wrap;
  }
  
  .bsp-tab-btn {
      flex: 1;
      min-width: 140px;
      text-align: center;
      padding: 14px 20px;
      font-size: 14px;
  }
  
  .bsp-tab-panel {
      padding: 25px;
  }
  
  .bsp-product-actions {
      flex-wrap: wrap;
  }
  
  .bsp-wishlist-btn,
  .bsp-compare-btn {
      min-width: calc(50% - 6px);
  }
  
  .bsp-price {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
  }
  
  .bsp-spec-row {
      flex-direction: column;
      gap: 8px;
  }
  
  .bsp-spec-label {
      min-width: auto;
  }
}

@media (max-width: 480px) {
  .bsp-container {
      padding: 0 10px;
  }
  
  .bsp-product-title {
      font-size: 24px;
  }
  
  .bsp-specs {
      grid-template-columns: 1fr;
  }
  
  .bsp-tab-btn {
      padding: 12px 15px;
      font-size: 13px;
      min-width: 120px;
  }
  
  .bsp-product-actions {
      flex-direction: column;
  }
  
  .bsp-wishlist-btn,
  .bsp-compare-btn {
      min-width: 100%;
  }
  
  .bsp-taxonomies {
      padding: 12px;
  }
  
  .bsp-categories,
  .bsp-tags,
  .bsp-brands {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
  }
  
  .bsp-tax-label {
      min-width: auto;
  }
}



.bsp-product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
  max-width: 260px;
}

.bsp-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.bsp-product-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* استایل هدر و تصویر */
.bsp-product-header {
  position: relative;
  /* padding: 15px;
  padding-bottom: 0; */
}

.bsp-product-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.bsp-product-thumb {
  /* width: 100%; */
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.bsp-product-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 14px;
}

/* استایل وضعیت‌ها */
.bsp-product-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.bsp-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-align: center;
  line-height: 1;
	background:red;
}

.bsp-sale-badge { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.bsp-timer-badge { background: linear-gradient(135deg, #ff9f43, #feca57); }
.bsp-outofstock-badge { background: linear-gradient(135deg, #8395a7, #576574); }
.bsp-new-badge { background: linear-gradient(135deg, #00d2d3, #54a0ff); }

/* استایل تایمر */
.bsp-sale-timer {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  padding: 3px;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.bsp-timer-progress {
  height: 1px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 3px;
}

.bsp-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff9f43, #feca57);
  transition: width 1s linear;
}

.bsp-timer-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bsp-timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.bsp-timer-value {
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
}

.bsp-timer-label {
  font-size: 9px;
  color: #636e72;
  margin-top: 2px;
}

.bsp-timer-expired {
  font-size: 11px;
  color: #e74c3c;
  font-weight: 600;
  text-align: center;
}

/* استایل دکمه‌های سریع */
.bsp-product-actions {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  z-index: 2;
}

.bsp-product-card:hover .bsp-product-actions {
  opacity: 1;
  transform: translateX(0);
}

.bsp-quick-action {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: white;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bsp-quick-action:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.bsp-quick-action.active {
  background: #e91e63;
  color: white;
}

.bsp-compare-action.active {
  background: #2196f3;
  color: white;
}

/* استایل محتوا */
.bsp-product-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
}

.bsp-product-info {
  margin-bottom: 15px;
  flex-grow: 1;
}

.bsp-product-category {
  margin-bottom: 8px;
}

.bsp-product-category a {
  font-size: 11px;
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bsp-product-category a:hover {
  color: #e91e63;
}

.bsp-product-title {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

.bsp-product-title a {
  color: #2d3436;
  text-decoration: none;
}

.bsp-product-title a:hover {
  color: #e91e63;
}

.bsp-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.bsp-stars {
  display: flex;
  gap: 2px;
}

.bsp-star {
  font-size: 12px;
  color: #ddd;
}

.bsp-star.filled {
  color: #ffc107;
}

.bsp-rating-count {
  font-size: 11px;
  color: #6c757d;
}
.bsp-product-link .woocommerce-page img {
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
  width: 100% !important;
  margin: auto !important;
}
/* استایل فوتر */
.bsp-product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

.bsp-product-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bsp-price-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bsp-current-price,
.bsp-sale-price {
  font-size: 16px;
  font-weight: 700;
  color: #e91e63;
}

.bsp-regular-price {
  font-size: 13px;
  color: #6c757d;
  text-decoration: line-through;
}

.bsp-free-price {
  font-size: 16px;
  font-weight: 700;
  color: #27ae60;
}

.bsp-discount-percent {
  background: #e91e63;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* استایل دکمه‌های CTA */
.bsp-product-cta {
  flex-shrink: 0;
  margin: auto;
}

.bsp-add-to-cart-btn,
.bsp-free-cart-btn,
.bsp-out-of-stock-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.bsp-add-to-cart-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.bsp-add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.bsp-free-cart-btn {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
}

.bsp-free-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.bsp-out-of-stock-btn {
  background: #95a5a6;
  color: white;
  cursor: not-allowed;
}

.bsp-cart-icon {
  font-size: 14px;
}


/* ریسپانسیو */
@media (max-width: 768px) {
  .bsp-product-actions {
      opacity: 1;
      transform: translateX(0);
  }
  
  .bsp-product-footer {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
  }
  
  .bsp-product-price {
      justify-content: center;
  }
}

/* انیمیشن لودینگ */
@keyframes bspPulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.bsp-loading {
  animation: bspPulse 1.5s ease-in-out infinite;
}



/* استایل کامل صفحه چک اوت سفارشی */

/* استایل اصلی صفحات سبد خرید و تسویه حساب */
.bsp-cart-page,
.bsp-checkout-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* هدر صفحات */
.bsp-cart-header,
.bsp-checkout-header {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bsp-cart-header h1,
.bsp-checkout-header h1 {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* مراحل خرید */
.bsp-cart-steps,
.bsp-checkout-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.bsp-step {
    padding: 12px 24px;
    border-radius: 25px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.bsp-step.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.bsp-step:not(.active):hover {
    border-color: #667eea;
    color: #667eea;
}

/* طرح‌بندی اصلی */
.bsp-cart-layout{
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* بخش اصلی */
.bsp-cart-main,
.bsp-checkout-main {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* سبد خرید خالی */
.bsp-empty-cart {
    text-align: center;
    padding: 60px 30px;
    color: #64748b;
}

.bsp-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.bsp-empty-cart h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.bsp-empty-cart p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.bsp-continue-shopping {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bsp-continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* آیتم‌های سبد خرید */
.bsp-cart-items {
    padding: 0;
}

.bsp-cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 25px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
}

.bsp-cart-item:hover {
    background: #f8fafc;
}

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

.bsp-cart-item.bsp-loading::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.bsp-cart-item.bsp-loading::after {
    content: '⏳';
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    font-size: 1.5rem;
    z-index: 2;
}

/* تصویر محصول */
.bsp-item-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bsp-item-image img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bsp-cart-item:hover .bsp-item-image img {
    transform: scale(1.05);
}

/* جزئیات محصول */
.bsp-item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bsp-product-name {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.bsp-product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bsp-product-name a:hover {
    color: #667eea;
}

.bsp-product-price {
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.bsp-product-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 15px;
}

/* اقدامات محصول */
.bsp-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bsp-quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.bsp-qty-btn {
    background: #f8fafc;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: bold;
    color: #4a5568;
}

.bsp-qty-btn:hover {
    background: #667eea;
    color: white;
}

.bsp-qty-input {
    width: 50px;
    border: none;
    text-align: center;
    padding: 8px;
    font-size: 1rem;
    background: white;
    -moz-appearance: textfield;
}

.bsp-qty-input::-webkit-outer-spin-button,
.bsp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bsp-remove-item {
    background: #fed7d7;
    color: #c53030;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bsp-remove-item:hover {
    background: #feb2b2;
    transform: translateY(-1px);
}

.bsp-remove-icon {
    font-size: 1rem;
}

/* قیمت کل محصول */
.bsp-item-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2d3748;
    text-align: left;
    min-width: 100px;
}

/* اقدامات سبد خرید */
.bsp-cart-actions {
    padding: 25px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.bsp-clear-cart {
    background: #fed7d7;
    color: #c53030;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bsp-clear-cart:hover {
    background: #feb2b2;
    transform: translateY(-1px);
}

.woocommerce .col2-set, .woocommerce-page .col2-set {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: start;
}
.woocommerce-checkout-review-order{
   width: 50%;
  margin: auto;
  min-width: 300px;
}
/* سایدبار خلاصه سفارش */
/* .bsp-cart-sidebar, */
.bsp-checkout-sidebar {
    position: sticky;
    top: 20px;
    display: none;
}

/* .bsp-order-summary, */
.bsp-order-review {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
     display: none;
}
.bsp-order-summary{
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bsp-order-summary h3,
.bsp-order-review h3 {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid #f1f5f9;
    text-align: center;
}

/* ردیف‌های خلاصه */
.bsp-summary-row,
.bsp-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1rem;
}

.bsp-summary-row:last-child,
.bsp-total-row:last-child {
    border-bottom: none;
}

.bsp-coupon-row {
    color: #38a169;
    font-weight: 600;
}

.bsp-final-total {
    font-weight: 700;
    font-size: 1.3rem;
    color: #667eea;
}

/* بخش کوپن */
.bsp-coupon-section {
    margin: 20px 0;
    padding: 20px;
    background: #f0fff4;
    border-radius: 12px;
    border: 2px dashed #68d391;
}

.bsp-toggle-coupon {
    background: #68d391;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.bsp-toggle-coupon:hover {
    background: #48bb78;
    transform: translateY(-1px);
}

.bsp-coupon-form {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.bsp-coupon-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.bsp-coupon-input:focus {
    outline: none;
    border-color: #667eea;
}

.bsp-apply-coupon {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bsp-apply-coupon:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.bsp-coupon-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.bsp-coupon-message.success {
    background: #c6f6d5;
    color: #276749;
}

.bsp-coupon-message.error {
    background: #fed7d7;
    color: #c53030;
}

/* بخش پرداخت */
.bsp-checkout-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 3px solid #f1f5f9;
}

.bsp-proceed-checkout {
    display: block;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    margin-bottom: 15px;
}

.bsp-proceed-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.bsp-security-note {
    text-align: center;
    color: #38a169;
    font-size: 0.9rem;
    font-weight: 600;
}

/* استایل‌های فرم تسویه حساب */
.bsp-form-section {
    background: white;
    padding: 30px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.bsp-form-section:hover {
    background: #fafbff;
}

.bsp-form-section:last-child {
    border-bottom: none;
}

.bsp-form-section h3 {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bsp-form-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

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

.bsp-form-group {
    display: flex;
    flex-direction: column;
}

.bsp-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 0.95rem;
}

.bsp-form-group input,
.bsp-form-group textarea,
.bsp-form-group select {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.bsp-form-group input:focus,
.bsp-form-group textarea:focus,
.bsp-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bsp-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* روش‌های ارسال و پرداخت */
.bsp-shipping-methods,
.bsp-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bsp-shipping-method,
.bsp-payment-method {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.bsp-shipping-method:hover,
.bsp-payment-method:hover {
    border-color: #667eea;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bsp-shipping-method input,
.bsp-payment-method input {
    margin-left: 15px;
}

.bsp-shipping-title {
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

.bsp-shipping-cost {
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
}

/* دکمه ثبت سفارش */
.bsp-place-order {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.bsp-place-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.bsp-place-order:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* نوتیفیکیشن‌ها */
.bsp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.bsp-notification.success {
    background: #c6f6d5;
    color: #276749;
    border-right: 4px solid #38a169;
}

.bsp-notification.error {
    background: #fed7d7;
    color: #c53030;
    border-right: 4px solid #e53e3e;
}

.bsp-notification.info {
    background: #bee3f8;
    color: #2c5aa0;
    border-right: 4px solid #3182ce;
}

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

/* لودینگ */
.bsp-loading {
    text-align: center;
    padding: 15px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 600;
}

/* رسپانسیو */
@media (max-width: 1024px) {
    .bsp-cart-layout,
    .bsp-checkout-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bsp-cart-sidebar,
    .bsp-checkout-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .bsp-cart-page,
    .bsp-checkout-page {
        padding: 15px;
    }
    
    .bsp-cart-header,
    .bsp-checkout-header {
        padding: 20px;
    }
    
    .bsp-cart-header h1,
    .bsp-checkout-header h1 {
        font-size: 1.8rem;
    }
    
    .bsp-cart-steps,
    .bsp-checkout-steps {
        gap: 10px;
    }
    
    .bsp-step {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .bsp-cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .bsp-item-total {
        grid-column: 1 / -1;
        text-align: right;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #f1f5f9;
    }
    
    .bsp-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bsp-cart-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bsp-continue-shopping,
    .bsp-clear-cart {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .bsp-cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .bsp-item-image {
        width: 120px;
        margin: 0 auto;
    }
    
    .bsp-item-actions {
        justify-content: center;
    }
    
    .bsp-order-summary,
    .bsp-order-review,
    .bsp-form-section {
        padding: 20px;
    }
    
    .bsp-coupon-form {
        flex-direction: column;
    }
}

/* انیمیشن‌های ظریف */
.bsp-cart-item,
.bsp-form-section,
.bsp-shipping-method,
.bsp-payment-method {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* اسکرول بار زیبا */
.bsp-review-items::-webkit-scrollbar {
    width: 6px;
}

.bsp-review-items::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.bsp-review-items::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.bsp-review-items::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* بهبودهای ظاهری */
.bsp-back-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f7fafc;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.bsp-back-to-cart:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

/* استایل برای محصولات در خلاصه سفارش */
.bsp-review-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.bsp-review-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.bsp-review-item:last-child {
    border-bottom: none;
}

.bsp-review-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bsp-review-details h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}

.bsp-review-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
}

.bsp-review-price {
    color: #667eea;
    font-weight: 600;
}



.css-0{display: none;}
.wc-block-components-sidebar-layout {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto 16px;
  position: relative;
  padding: 20px !important;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.wc-block-components-main {
  padding-left: 4.5283018868%;
  width: 60% !important;
}
@media screen and (max-width:768px) {
  .wc-block-components-main {
    padding-left:0;
    width: 100% !important;
  }
}
.wc-block-checkout__actions_row .wc-block-components-button{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  font-family: Vazir;
  width: 200px;
  border-radius: 20px;
}
.wc-block-components-order-summary .wc-block-components-order-summary-item {
  display: flex;
  font-size: .875em;
  padding-bottom: 1px;
  padding-top: 16px;
  width: 100%;
  flex-wrap: wrap;
}

/*علی*/
/* استایل اختصاصی صفحه پرداخت ووکامرس - فقط CSS */
.woocommerce-checkout .woocommerce {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
  font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

/* هدر سفارشی با CSS */


/* مراحل خرید با CSS */

.woocommerce-checkout .woocommerce:after::before {
  content: 'سبد خرید';
  padding: 12px 24px;
  border-radius: 25px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
}

.woocommerce-checkout .woocommerce:after::after {
  content: 'تکمیل اطلاعات';
  padding: 12px 24px;
  border-radius: 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* طرح‌بندی اصلی با CSS Grid */
.woocommerce-checkout .col2-set {
direction: rtl;
}

/* استایل‌های فرم */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #order_review_heading {
  color: #2d3748;
  margin-bottom: 25px;
  font-size: 1.3rem;
  font-weight: 700;
  border-right: 4px solid #667eea;
  padding-right: 15px;
}

/* فیلدهای فرم */
.woocommerce-checkout .form-row {
  margin-bottom: 20px;
}

.woocommerce-checkout .form-row label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #4a5568;
  font-size: 0.95rem;
  display: block;
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: inherit;
  box-sizing: border-box;
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* بخش کوپن */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
  background: #f0fff4;
  padding: 20px;
  margin: 20px 0;
  border-radius: 12px;
  border: 2px dashed #68d391;
}

.woocommerce-checkout .woocommerce-info {
  background: transparent;
  border: none;
  color: #276749;
  padding: 0;
  margin: 0;
}

.woocommerce-checkout .showcoupon {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-checkout .checkout_coupon {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 15px 0;
}

/* سایدبار خلاصه سفارش */
.woocommerce-checkout #order_review {
 /* display: none; */
}

.woocommerce-checkout #order_review_heading {
  color: #2d3748;
  margin-bottom: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  padding-bottom: 15px;
  border-bottom: 3px solid #f1f5f9;
  text-align: center;
  border-right: none;
}

/* جدول محصولات */
.woocommerce-checkout .shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.woocommerce-checkout .shop_table th {
  background: #f8fafc;
  padding: 15px;
  text-align: right;
  font-weight: 600;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
}

.woocommerce-checkout .shop_table td {
  padding: 15px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.woocommerce-checkout .product-name {
  font-weight: 600;
  color: #2d3748;
}

.woocommerce-checkout .product-quantity {
  font-size: 0.9rem;
  color: #64748b;
}

/* روش‌های پرداخت */
.woocommerce-checkout .wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.woocommerce-checkout .wc_payment_method {
  margin-bottom: 10px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.woocommerce-checkout .wc_payment_method:hover {
  border-color: #667eea;
  transform: translateX(-5px);
}

.woocommerce-checkout .wc_payment_method label {
  display: flex;
  align-items: center;
  padding: 20px;
  margin: 0;
  cursor: pointer;
  font-weight: 600;
  color: #2d3748;
  background: white;
}

.woocommerce-checkout .wc_payment_method input[type="radio"] {
  margin-left: 15px;
}

.woocommerce-checkout .payment_box {
  padding: 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #64748b;
  border-radius: 0 0 10px 10px;
}

/* دکمه ثبت سفارش */
.woocommerce-checkout .place-order {
  padding: 30px;
  background: #f8fafc;
  border-top: 3px solid #f1f5f9;
  border-radius: 0 0 20px 20px;
}

.woocommerce-checkout #place_order {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.woocommerce-checkout #place_order:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* استایل برای Select2 (استان) */
.woocommerce-checkout .select2-container--default .select2-selection--single {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  height: 48px;
  padding: 8px;
}

.woocommerce-checkout .select2-container--default .select2-selection--single:focus {
  outline: none;
  border-color: #667eea;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 32px;
  color: #4a5568;
}

/* استایل برای چک‌باکس */
.woocommerce-checkout .woocommerce-form__input-checkbox {
  margin-left: 10px;
}

.woocommerce-checkout #ship-to-different-address {
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* جمع‌بندی قیمت‌ها */
.woocommerce-checkout .cart-subtotal,
.woocommerce-checkout .order-total {
  font-weight: 600;
}

.woocommerce-checkout .order-total {
  font-size: 1.2rem;
  color: #667eea;
}

/* رسپانسیو */
@media (max-width: 1024px) {
  .woocommerce-checkout .col2-set {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  
  .woocommerce-checkout #order_review {
      position: static;
      order: -1;
  }
}

@media (max-width: 768px) {
  .woocommerce-checkout .woocommerce {
      padding: 15px;
  }
  
  .woocommerce-checkout .woocommerce-billing-fields,
  .woocommerce-checkout .woocommerce-shipping-fields,
  .woocommerce-checkout .woocommerce-additional-fields {
      padding: 4px;
  }
  
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
      float: none;
      width: 100%;
  }
  
  .woocommerce-checkout .col-1,
  .woocommerce-checkout .col-2 {
      width: 100%;
      float: none;
  }
}

@media (max-width: 480px) {
  .woocommerce-checkout #order_review,
  .woocommerce-checkout .woocommerce-billing-fields,
  .woocommerce-checkout .woocommerce-shipping-fields {
      padding: 15px;
  }
  
  .woocommerce-checkout .shop_table {
      font-size: 0.9rem;
  }
  
  .woocommerce-checkout .shop_table th,
  .woocommerce-checkout .shop_table td {
      padding: 10px 5px;
  }
}

/* انیمیشن‌ها */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout #order_review {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
/* استایل جدول مقایسه */
.bsp-compare-table-container-final {
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  overflow-x: auto;
  animation: fadeInUp 0.6s ease;
}

.bsp-compare-table-final {
  width: 100%;
  border-collapse: collapse;
  border-radius: 15px;
  overflow: hidden;
  min-width: 800px;
}

.bsp-compare-table-final th,
.bsp-compare-table-final td {
  padding: 1.5rem;
  border: 1px solid rgba(236,240,241,0.8);
  text-align: center;
  transition: all 0.3s ease;
}

.bsp-compare-feature-final {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  font-weight: 700;
  width: 200px;
  font-size: 1rem;
  position: sticky;
  left: 0;
  z-index: 2;
}

.bsp-compare-product-final {
  background: #f8f9fa;
  vertical-align: top;
  min-width: 250px;
}

.bsp-compare-product-final:hover {
  background: rgba(52,152,219,0.05);
  transform: translateY(-2px);
}

.bsp-product-header-final {
  padding: 1rem;
}

.bsp-product-image-final {
  position: relative;
  margin-bottom: 1.5rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.bsp-product-image-final:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.bsp-product-image-final img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bsp-product-image-final:hover img {
  transform: scale(1.1);
}

.bsp-remove-compare-final {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.95);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #e74c3c;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bsp-remove-compare-final:hover {
  background: #e74c3c;
  color: white;
  transform: scale(1.1);
}

.bsp-product-title-final {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.bsp-product-title-final a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.bsp-product-title-final a:hover {
  color: #3498db;
}

.bsp-product-price-final {
  color: #e91e63;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  background: rgba(233,30,99,0.1);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  display: inline-block;
}

.bsp-product-actions-final {
  margin-top: 1.5rem;
}

.bsp-add-to-cart-final {
  background: linear-gradient(135deg, #27ae60, #219a52);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 15px rgba(39,174,96,0.3);
  position: relative;
  overflow: hidden;
}

.bsp-add-to-cart-final::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.bsp-add-to-cart-final:hover:not(:disabled) {
  background: linear-gradient(135deg, #219a52, #27ae60);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39,174,96,0.4);
}

.bsp-add-to-cart-final:hover:not(:disabled)::before {
  left: 100%;
}

.bsp-add-to-cart-final:disabled {
  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bsp-in-stock-final {
  color: #27ae60;
  font-weight: 700;
  background: rgba(39,174,96,0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  display: inline-block;
}

.bsp-out-of-stock-final {
  color: #e74c3c;
  font-weight: 700;
  background: rgba(231,76,60,0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  display: inline-block;
}

.bsp-rating-stars-final {
  color: #f39c12;
  font-size: 1.3rem;
  font-weight: 700;
}

/* استایل ویژگی‌های مقایسه */
.bsp-feature-row-final:hover {
  background: rgba(52,152,219,0.05);
}

.bsp-feature-row-final td {
  font-weight: 500;
  color: #2c3e50;
}

.bsp-feature-row-final:hover td {
  color: #3498db;
  transform: translateX(5px);
}

/* دکمه‌های مقایسه در کارت محصول */
.bsp-compare-btn-single-final {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid #3498db;
  color: #3498db;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bsp-compare-btn-single-final:hover {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52,152,219,0.3);
}

.bsp-compare-btn-single-final.bsp-in-compare-final {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

/* دکمه مقایسه در لوپ محصولات */
.bsp-compare-loop-final {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.bsp-compare-btn-loop-final {
  background: rgba(255,255,255,0.95);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: #3498db;
}

.bsp-compare-btn-loop-final:hover {
  background: #3498db;
  color: white;
  transform: scale(1.1);
}

.bsp-compare-btn-loop-final.bsp-in-compare-final {
  background: #3498db;
  color: white;
  animation: pulse 2s infinite;
}

/* ویجت مقایسه */
.bsp-compare-widget-final {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  animation: slideInLeft 0.5s ease;
}

.bsp-compare-widget-final a {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(52,152,219,0.4);
  transition: all 0.3s ease;
  position: relative;
  font-size: 1.5rem;
}

.bsp-compare-widget-final a:hover {
  background: linear-gradient(135deg, #2980b9, #3498db);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(52,152,219,0.6);
}

.bsp-compare-widget-final .bsp-compare-count {
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 15px;
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(233,30,99,0.3);
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% {
      box-shadow: 0 0 0 0 rgba(52,152,219,0.4);
  }
  70% {
      box-shadow: 0 0 0 10px rgba(52,152,219,0);
  }
  100% {
      box-shadow: 0 0 0 0 rgba(52,152,219,0);
  }
}

/* رسپانسیو */
@media (max-width: 1200px) {
  .bsp-compare-container-final {
      max-width: 100%;
      padding: 0 0.5rem;
  }
  
  .bsp-compare-header-final {
      flex-direction: column;
      gap: 1.5rem;
      text-align: center;
  }
  
  .bsp-compare-table-container-final {
      padding: 1rem;
  }
}

@media (max-width: 768px) {
  .bsp-compare-page-final {
      padding: 1rem 0;
  }
  
  .bsp-compare-header-final h1 {
      font-size: 1.8rem;
  }
  
  .bsp-compare-stats-final {
      flex-direction: column;
      gap: 1rem;
  }
  
  .bsp-compare-table-container-final {
      overflow-x: auto;
      border-radius: 15px;
  }
  
  .bsp-compare-table-final {
      min-width: 600px;
  }
  
  .bsp-product-image-final img {
      width: 120px;
      height: 120px;
  }
  
  .bsp-compare-widget-final {
      bottom: 20px;
      left: 20px;
  }
  
  .bsp-compare-widget-final a {
      width: 60px;
      height: 60px;
      font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .bsp-compare-header-final {
      padding: 1.5rem;
  }
  
  .bsp-compare-header-final h1 {
      font-size: 1.5rem;
  }
  
  .bsp-empty-compare-final {
      padding: 3rem 1.5rem;
  }
  
  .bsp-empty-icon-final {
      font-size: 4rem;
  }
  
  .bsp-compare-table-final th,
  .bsp-compare-table-final td {
      padding: 1rem 0.5rem;
  }
  
  .bsp-product-image-final img {
      width: 100px;
      height: 100px;
  }
}

/* اسکرول بار سفارشی */
.bsp-compare-table-container-final::-webkit-scrollbar {
  height: 8px;
}

.bsp-compare-table-container-final::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.bsp-compare-table-container-final::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 10px;
}

.bsp-compare-table-container-final::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
}

/* استایل برای ویژگی‌های خاص */
.bsp-feature-highlight {
  background: linear-gradient(135deg, #fff9e6, #fff3cd) !important;
  font-weight: 700 !important;
  color: #e67e22 !important;
}

.bsp-best-value {
  position: relative;
}

.bsp-best-value::before {
  content: "🏆 بهترین ارزش";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(243,156,18,0.3);
  z-index: 1;
}

/* استایل برای محصولات ویژه */
.bsp-featured-product .bsp-product-price-final {
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: white;
  animation: pulse 2s infinite;
}

/* افکت‌های hover پیشرفته */
.bsp-compare-product-final {
  position: relative;
  overflow: hidden;
}

.bsp-compare-product-final::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52,152,219,0.1), transparent);
  transition: left 0.6s;
}

.bsp-compare-product-final:hover::before {
  left: 100%;
}










/*=====================مقایسه=========================
.bsp-compare-page-final {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 2rem 0;
}

.bsp-compare-container-final {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bsp-compare-header-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bsp-compare-header-final h1 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.bsp-compare-stats-final {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bsp-compare-count-final {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.bsp-clear-compare-final {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.bsp-clear-compare-final:hover {
    background: #c0392b;
}

.bsp-empty-compare-final {
    text-align: center;
    background: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bsp-empty-icon-final {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.bsp-empty-compare-final h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.bsp-empty-compare-final p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.bsp-shop-btn-final {
    background: #3498db;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.bsp-shop-btn-final:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.bsp-loading-final {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* استایل جدول مقایسه */
.bsp-compare-table-final {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bsp-compare-table-final th,
.bsp-compare-table-final td {
  padding: 1rem;
  border: 1px solid #ecf0f1;
  text-align: center;
}

.bsp-compare-feature-final {
  background: #2c3e50;
  color: white;
  font-weight: 600;
  width: 200px;
}

.bsp-compare-product-final {
  background: #f8f9fa;
  vertical-align: top;
}

.bsp-product-header-final {
  padding: 1rem;
}

.bsp-product-image-final {
  position: relative;
  margin-bottom: 1rem;
}

.bsp-product-image-final img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
}

.bsp-remove-compare-final {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  color: #e74c3c;
  transition: all 0.3s ease;
}

.bsp-remove-compare-final:hover {
  background: #e74c3c;
  color: white;
}

.bsp-product-title-final {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.bsp-product-title-final a {
  color: #2c3e50;
  text-decoration: none;
}

.bsp-product-title-final a:hover {
  color: #3498db;
}

.bsp-product-price-final {
  color: #e91e63;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.bsp-product-actions-final {
  margin-top: 1rem;
}

.bsp-add-to-cart-final {
  background: #27ae60;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
}

.bsp-add-to-cart-final:hover:not(:disabled) {
  background: #219a52;
}

.bsp-add-to-cart-final:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

.bsp-in-stock-final {
  color: #27ae60;
  font-weight: 600;
}

.bsp-out-of-stock-final {
  color: #e74c3c;
  font-weight: 600;
}

.bsp-rating-stars-final {
  color: #f39c12;
  font-size: 1.2rem;
}

/* دکمه‌های مقایسه */
.bsp-compare-btn-single-final {
  background: #f8f9fa;
  border: 2px solid #3498db;
  color: #3498db;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.bsp-compare-btn-single-final:hover {
  background: #3498db;
  color: white;
}

.bsp-compare-btn-single-final.bsp-in-compare-final {
  background: #3498db;
  color: white;
}

.bsp-compare-loop-final {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.bsp-compare-btn-loop-final {
  background: rgba(255,255,255,0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bsp-compare-btn-loop-final:hover {
  background: #3498db;
  color: white;
}

.bsp-compare-btn-loop-final.bsp-in-compare-final {
  background: #3498db;
  color: white;
}

/* ویجت */
.bsp-compare-widget-final {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
}

.bsp-compare-widget-final a {
  background: #3498db;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  position: relative;
}

.bsp-compare-widget-final a:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.bsp-compare-widget-final .bsp-compare-count {
  background: #e91e63;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  text-align: center;
}


/* استایل اصلی صفحه مقالات */
.articles-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
  background: #f8fafc;
  min-height: 100vh;
}

/* هدر صفحه */
.articles-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 0;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.articles-breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 30px;
  backdrop-filter: blur(10px);
}

.breadcrumbs {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: white;
}

.breadcrumbs .separator {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs .current {
  color: white;
  font-weight: 600;
}

.articles-hero {
  padding: 50px 30px;
  text-align: center;
  color: white;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* جستجو */
.articles-search {
  max-width: 500px;
  margin: 0 auto;
}

.search-form {
  width: 100%;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.search-field:focus {
  outline: none;
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.search-submit {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #667eea;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit:hover {
  background: #5a67d8;
  transform: translateY(-50%) scale(1.1);
}

/* طرح‌بندی اصلی */
.articles-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
  align-items: start;
}

/* فیلترها */
.articles-filters {
  background: white;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-weight: 600;
  color: #4a5568;
  font-size: 0.9rem;
}

.sort-select,
.category-select {
  padding: 8px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.sort-select:focus,
.category-select:focus {
  outline: none;
  border-color: #667eea;
}

/* گرید مقالات */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

/* کارت مقاله */
.article-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.article-thumbnail {
  position: relative;
  overflow: hidden;
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

.article-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 3rem;
}

.article-categories {
  position: absolute;
  top: 15px;
  right: 15px;
}

.article-category {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.article-content {
  padding: 25px;
}

.article-title {
  margin: 0 0 15px 0;
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 700;
}

.article-title a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-title a:hover {
  color: #667eea;
}

.article-excerpt {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.meta-author,
.meta-date,
.meta-views {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;

}

.meta-author i,
.meta-date i,
.meta-views i {
  font-size: 0.9rem;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.read-more:hover {
  transform: translateX(-5px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.article-comments {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 0.85rem;
}

/* صفحه‌بندی */
.articles-pagination {
  text-align: center;
  margin-top: 40px;
}

.articles-pagination .page-numbers {
  display: inline-flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.articles-pagination .page-numbers li {
  margin: 0;
}

.articles-pagination .page-numbers a,
.articles-pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #4a5568;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 45px;
}

.articles-pagination .page-numbers a:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

.articles-pagination .page-numbers .current {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.articles-pagination .page-numbers .dots {
  border: none;
  background: transparent;
}

/* سایدبار */
.articles-sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-widget {
  background: white;
  border-radius: 15px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.widget-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.widget-header i {
  font-size: 1.2rem;
}

.widget-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.widget-content {
  padding: 20px;
}

/* ویجت دسته‌بندی‌ها */
.categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.categories-list li {
  border-bottom: 1px solid #f1f5f9;
}

.categories-list li:last-child {
  border-bottom: none;
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  text-decoration: none;
  color: #4a5568;
  transition: all 0.3s ease;
}

.category-link:hover {
  color: #667eea;
  transform: translateX(-5px);
}

.category-name {
  font-weight: 500;
}

.category-count {
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ویجت مقالات پربازدید */
.popular-posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.popular-post {
  border-bottom: 1px solid #f1f5f9;
}

.popular-post:last-child {
  border-bottom: none;
}

.post-link {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.post-link:hover {
  transform: translateX(-5px);
}

.post-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-image-placeholder {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.post-info {
  flex: 1;
  min-width: 0;
}

.post-title {
  margin: 0 0 5px 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-meta {
  font-size: 0.8rem;
  color: #64748b;
}

/* ویجت تگ‌ها */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-link {
  background: #f1f5f9;
  color: #4a5568;
  padding: 6px 12px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tag-link:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

/* حالت بدون مقاله */
.no-articles {
  text-align: center;
  padding: 60px 30px;
  grid-column: 1 / -1;
}

.no-articles i {
  font-size: 4rem;
  color: #cbd5e0;
  margin-bottom: 20px;
}

.no-articles h3 {
  color: #4a5568;
  margin-bottom: 15px;
}

.no-articles p {
  color: #64748b;
  margin-bottom: 25px;
}

.back-to-articles {
  background: #667eea;
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-to-articles:hover {
  background: #5a67d8;
  transform: translateY(-2px);
}

/* رسپانسیو */
@media (max-width: 1024px) {
  .articles-layout {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  
  .articles-sidebar {
      position: static;
      order: -1;
  }
  
  .articles-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .articles-page {
      padding: 15px;
  }
  
  .articles-hero {
      padding: 30px 20px;
  }
  
  .page-title {
      font-size: 2rem;
  }
  
  .articles-filters {
      flex-direction: column;
      align-items: stretch;
      gap: 15px;
  }
  
  .filter-group {
      justify-content: space-between;
  }
  
  .articles-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  
  .article-meta {
      gap: 15px;
  }
}

@media (max-width: 480px) {
  .articles-header {
      border-radius: 15px;
  }
  
  .page-title {
      font-size: 1.6rem;
  }
  
  .article-content {
      padding: 20px;
  }
  
  .article-footer {
      flex-direction: column;
      gap: 15px;
      align-items: stretch;
  }
  
  .read-more {
      justify-content: center;
  }
  
  .articles-pagination .page-numbers {
      flex-wrap: wrap;
      justify-content: center;
  }
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.article-card {
  animation: fadeInUp 0.6s ease-out;
}

.sidebar-widget {
  animation: fadeInUp 0.5s ease-out;
}

/* بهبودهای ظاهری */
.about-widget .widget-content p {
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.no-posts,
.no-tags {
  color: #94a3b8;
  font-style: italic;
  text-align: center;
  display: block;
  padding: 10px 0;
}

/*==========================================احراز هویت===================*/
/* استایل نوتیفیکیشن سفارشی */
.bsp-custom-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: white;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  min-width: 300px;
  max-width: 90%;
  transition: transform 0.3s ease;
  border-right: 4px solid #27ae60;
}

.bsp-notification-show {
  transform: translateX(-50%) translateY(0);
}

.bsp-notification-error {
  border-right-color: #e74c3c;
}

.bsp-notification-info {
  border-right-color: #3498db;
}

.bsp-notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.bsp-notification-message {
  flex: 1;
  font-size: 14px;
  color: #2c3e50;
}

.bsp-notification-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #7f8c8d;
  margin-right: 8px;
}

.bsp-notification-close:hover {
  color: #e74c3c;
}

/* استایل لودینگ */
.bsp-loading {
  opacity: 0.7;
  pointer-events: none;
}

.bsp-loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: bsp-spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes bsp-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* استایل نوتیفیکیشن سفارشی */
.bsp-custom-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: white;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  min-width: 300px;
  max-width: 90%;
  transition: transform 0.3s ease;
  border-right: 4px solid #27ae60;
}

.bsp-notification-show {
  transform: translateX(-50%) translateY(0);
}

.bsp-notification-error {
  border-right-color: #e74c3c;
}

.bsp-notification-info {
  border-right-color: #3498db;
}

.bsp-notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.bsp-notification-message {
  flex: 1;
  font-size: 14px;
  color: #2c3e50;
}

.bsp-notification-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #7f8c8d;
  margin-right: 8px;
}

.bsp-notification-close:hover {
  color: #e74c3c;
}

/* استایل لودینگ */
.bsp-loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.bsp-loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: bsp-spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes bsp-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* استایل دکمه‌های فعال */
.bsp-wishlist-action.active {
  color: red;
  background-color: white;
}

.bsp-compare-action.active {
  color: blue;
  background-color: white;
}

/* استایل دکمه افزودن به سبد */
.bsp-add-to-cart-btn {
  transition: all 0.3s ease;
}

.bsp-add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bsp-free-cart-btn {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.bsp-free-cart-btn:hover {
  background: linear-gradient(135deg, #219653, #27ae60);
}

@media screen and (max-width:450px){
	.digi-action-buttons .bsp-add-to-cart-btn{
			position: fixed;
  bottom: 5px;
  left: 0;
  right: 0;
  z-index: 5;
	}

}