
/* ---- استایل‌های پیش‌بارگذار ---- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--body-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.custom-logo-link img {
    max-height: 80px;
    width: auto;
}

/* برای صفحه‌نمایش‌های کوچک */
@media (max-width: 768px) {
    .custom-logo-link img {
        max-height: 60px;
    }
} 
.preloader.loaded {
    opacity: 0;
}

.loader-container {
    text-align: center;
}

.elevator-loader {
    position: relative;
    width: 80px;
    height: 100px;
    margin: 0 auto 20px;
}

.elevator-box {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: elevator-animation 2s infinite;
}

.elevator-floor {
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--gray-color);
    left: 50%;
    transform: translateX(-50%);
}

.elevator-floor-1 {
    bottom: 0;
}

.elevator-floor-2 {
    bottom: 33%;
}

.elevator-floor-3 {
    bottom: 66%;
}

@keyframes elevator-animation {
    0%, 100% { top: 0; }
    25% { top: calc(100% - 40px - 5px); }
    50% { top: calc(66% - 20px); }
    75% { top: calc(33% - 20px); }
}

.loading-text {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 10px;
}

/* ---- استایل‌های عمومی ---- */
body {
    background-color: var(--body-bg);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* ---- استایل‌های نوار بالایی ---- */
.top-navbar {
    transition: background-color var(--transition-speed) ease;
}

body.dark-mode .top-navbar {
    background-color: var(--header-bg) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.top-info-item {
    color: var(--dark-color);
    transition: color var(--transition-speed) ease;
}

.top-info-item a {
    color: var(--dark-color);
    transition: color var(--transition-speed) ease;
}

.top-info-item:hover a, 
.top-info-item a:hover {
    color: var(--primary-color);
}

body.dark-mode .top-info-item,
body.dark-mode .top-info-item a {
    color: var(--footer-text);
}

.dropdown-toggle::after {
    vertical-align: middle;
    margin-right: 5px;
}

.theme-btn {
    background: none;
    border: none;
    color: var(--dark-color);
    padding: 0;
    font-size: 1.2rem;
    cursor: pointer;
}

body.dark-mode .theme-btn {
    color: var(--footer-text);
}

/* ---- استایل‌های منوی اصلی ---- */
.main-navbar {
    background-color: var(--primary-color) !important;
    transition: all var(--transition-speed) ease;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.brand-text {
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.navbar-nav .nav-link i {
    margin-left: 5px;
}

.calculator-btn-wrapper {
    position: relative;
}

.calculator-btn {
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.calculator-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

/* ---- استایل‌های جستجو ---- */
.search-wrapper {
    margin-right: 15px;
}

.search-toggle-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.search-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

body.dark-mode .search-dropdown {
    background-color: var(--header-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 5px);
}

.search-form {
    position: relative;
}

.search-dropdown .form-control {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    padding-left: 45px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .search-dropdown .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
}

.search-form .btn {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.search-close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: all var(--transition-speed) ease;
}

.search-close-btn:hover {
    color: var(--dark-color);
    transform: rotate(90deg);
}

body.dark-mode .search-close-btn:hover {
    color: var(--footer-text);
}

.search-category-wrapper {
    width: 120px;
}

.search-category-wrapper .form-select {
    height: 100%;
    border-radius: 0;
    border-left: none;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .search-category-wrapper .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
}

.popular-searches {
    padding-top: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.popular-searches-label {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-left: 10px;
}

.popular-searches-links a {
    display: inline-block;
    margin-left: 10px;
    color: var(--dark-color);
    font-size: 0.85rem;
    transition: all var(--transition-speed) ease;
}

body.dark-mode .popular-searches-links a {
    color: var(--footer-text);
}

.popular-searches-links a:hover {
    color: var(--primary-color);
}
/* ---- استایل‌های سبد خرید ---- */
.cart-area {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 500;
}

.cart-link {
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

body.dark-mode .cart-link {
    color: var(--footer-text);
}

.mini-cart-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    transform: translateY(10px);
}

body.dark-mode .mini-cart-dropdown {
    background-color: var(--header-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cart-link:hover .mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.mini-cart-items {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.mini-cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mini-cart-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

body.dark-mode .mini-cart-item {
    border-color: rgba(255, 255, 255, 0.1);
}

.mini-cart-img {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-right: 15px;
    flex-shrink: 0;
}

.mini-cart-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-cart-info {
    flex-grow: 1;
}

.mini-cart-info h6 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.mini-cart-info .quantity-price {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.mini-cart-remove {
    margin-left: 10px;
}

.mini-cart-remove a {
    color: var(--danger-color);
    font-size: 1.1rem;
    opacity: 0.7;
    transition: all var(--transition-speed) ease;
}

.mini-cart-remove a:hover {
    opacity: 1;
}

.mini-cart-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px;
}

body.dark-mode .mini-cart-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.mini-cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
}

.mini-cart-actions {
    display: flex;
    gap: 10px;
}

.mini-cart-actions .btn {
    flex: 1;
}

.arrow-up {
    position: absolute;
    top: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

body.dark-mode .arrow-up {
    border-bottom-color: var(--header-bg);
}

.empty-cart {
    padding: 30px 20px;
    text-align: center;
    color: var(--gray-color);
}

.empty-cart-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* RTL compatibility */
html[dir="rtl"] .mini-cart-dropdown {
    right: 0;
    left: auto;
}

html[dir="rtl"] .arrow-up {
    right: 20px;
    left: auto;
}

html[dir="rtl"] .mini-cart-img {
    margin-right: 15px;
    margin-left: 0;
}

html[dir="rtl"] .mini-cart-remove {
    margin-right: 10px;
    margin-left: 0;
}

/* ---- استایل‌های مگامنو ---- */
.mega-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
}

body.dark-mode .mega-menu-container {
    background-color: var(--header-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mega-menu-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-title {
    font-size: 1.05rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark-color);
}

body.dark-mode .mega-menu-title {
    color: var(--footer-text);
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 10px;
}

.mega-menu-list a {
    color: var(--dark-color);
    position: relative;
    transition: all var(--transition-speed) ease;
    display: inline-block;
    padding-right: 15px;
}

body.dark-mode .mega-menu-list a {
    color: var(--gray-color);
}

.mega-menu-list a::before {
    content: '\F282';
    font-family: "bootstrap-icons";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.mega-menu-list a:hover {
    color: var(--primary-color);
    padding-right: 20px;
}

.mega-menu-list a:hover::before {
    opacity: 1;
}

.mega-menu-featured {
    position: relative;
}

.featured-product {
    position: relative;
    overflow: hidden;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1;
}

.featured-image img {
    transition: all var(--transition-speed) ease;
}

.featured-image:hover img {
    transform: scale(1.05);
}

.featured-title a {
    color: var(--dark-color);
    transition: all var(--transition-speed) ease;
}

body.dark-mode .featured-title a {
    color: var(--footer-text);
}

.featured-title a:hover {
    color: var(--primary-color);
}

.featured-price {
    color: var(--primary-color);
    font-weight: 600;
}

.mega-menu-calculator-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mega-menu-brands {
    padding-top: 15px;
}

.brands-title {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.brand-item {
    display: inline-block;
    margin-left: 15px;
    margin-bottom: 10px;
    color: var(--dark-color);
    transition: all var(--transition-speed) ease;
    padding: 5px;
}

body.dark-mode .brand-item {
    color: var(--footer-text);
}

.brand-item:hover {
    color: var(--primary-color);
}

.brand-image {
    height: 25px;
    width: auto;
    opacity: 0.7;
    transition: all var(--transition-speed) ease;
}

.brand-item:hover .brand-image {
    opacity: 1;
}

/* ---- استایل‌های نوار اعلان ---- */
.announcement-bar {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    padding: 10px 0;
    position: relative;
    font-weight: 500;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.announcement-text {
    flex-grow: 1;
    text-align: center;
    color: var(--primary-color);
    font-weight: 500;
}

.announcement-cta a {
    color: var(--primary-color);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.announcement-cta a:hover {
    opacity: 0.8;
}

.announcement-close {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    padding: 0 10px;
    transition: all var(--transition-speed) ease;
}

.announcement-close:hover {
    color: var(--dark-color);
}

body.dark-mode .announcement-close:hover {
    color: white;
}

/* ---- استایل‌های نوتیفیکیشن ---- */
#notification-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1050;
}

.notification {
    background-color: white;
    border-right: 4px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    width: 300px;
    animation: slideIn 0.3s ease forwards;
}

body.dark-mode .notification {
    background-color: var(--header-bg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    border-right-color: var(--success-color);
}

.notification-warning {
    border-right-color: var(--warning-color);
}

.notification-error {
    border-right-color: var(--danger-color);
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

body.dark-mode .notification-title {
    color: var(--footer-text);
}

.notification-message {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---- استایل‌های دکمه بازگشت به بالا ---- */
#topBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 24px;
    box-shadow: 0 3px 8px rgba(var(--primary-color-rgb), 0.3);
    transition: all var(--transition-speed) ease;
}

#topBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.5);
}

/* ---- استایل‌های خبرنامه ---- */
.newsletter-section {
    background-color: #f8f9fa;
    transition: background-color var(--transition-speed) ease;
}

body.dark-mode .newsletter-section {
    background-color: rgba(255, 255, 255, 0.03);
}

.newsletter-wrapper {
    background-color: white;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><rect width="100%" height="100%" fill="rgba(255, 170, 0, 0.03)"/><path d="M30,90 L50,70 L70,90 L90,70 L110,90 L130,70 L150,90 L170,70" stroke="rgba(255, 170, 0, 0.1)" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-position: bottom right;
    background-repeat: no-repeat;
    transition: all var(--transition-speed) ease;
}

body.dark-mode .newsletter-wrapper {
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.newsletter-title {
    color: var(--dark-color);
    font-weight: 600;
}

body.dark-mode .newsletter-title {
    color: var(--footer-text);
}

.newsletter-desc {
    color: var(--gray-color);
}

.newsletter-form .input-group {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.newsletter-form .form-control {
    height: 50px;
    border-radius: 0;
}

.newsletter-form .btn {
    padding-right: 30px;
    padding-left: 30px;
    font-weight: 500;
}

/* ---- استایل‌های فوتر ---- */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-contact-item {
    margin-bottom: 15px;
}

.contact-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-text {
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--footer-text);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.footer-social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.footer-widget-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-right: 15px;
}

.footer-widget-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--footer-text);
    opacity: 0.8;
    transition: all var(--transition-speed) ease;
    position: relative;
    padding-right: 15px;
    display: inline-block;
}

.footer-links a::before {
    content: '\F282';
    font-family: "bootstrap-icons";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateX(-5px);
}

.footer-links a:hover::before {
    opacity: 1;
}

.trust-badge {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trust-badge-img {
    max-height: 70px;
    max-width: 100%;
}

.support-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(var(--primary-color-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
}

.support-phone a {
    color: var(--footer-text);
    transition: all var(--transition-speed) ease;
    font-weight: 500;
    font-size: 1.1rem;
}

.support-phone a:hover {
    color: var(--primary-color);
}

.footer-divider {
    background-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.copyright {
    opacity: 0.7;
}

.payment-label {
    opacity: 0.7;
}

.payment-icons {
    display: inline-flex;
}

.payment-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    margin-right: 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.payment-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/**
 * استایل‌های دکمه‌های شناور با موقعیت‌های متفاوت
 */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

/* دکمه‌های سمت چپ */
.floating-buttons-left {
    left: 20px;
    right: auto;
}

/* دکمه سمت راست */
.floating-buttons-right {
    right: 20px;
    left: auto;
}

.floating-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-button:hover {
    transform: translateY(-5px);
}

/* استایل حالت فعال برای دکمه اسکرول به بالا */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* سازگاری RTL */
html[dir="rtl"] .floating-buttons-left {
    right: 20px;
    left: auto;
}

html[dir="rtl"] .floating-buttons-right {
    left: 20px;
    right: auto;
}

/* استایل‌های پاسخگو */
@media (max-width: 576px) {
    .floating-buttons-left,
    .floating-buttons-right {
        bottom: 10px;
    }
    
    .floating-buttons-left {
        left: 10px;
    }
    
    .floating-buttons-right {
        right: 10px;
    }
    
    .floating-button {
        width: 45px;
        height: 45px;
        margin-top: 8px;
    }
}

/* ---- استایل‌های پنل چت ---- */
.chat-panel {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 350px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 99;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

body.dark-mode .chat-panel {
    background-color: var(--header-bg);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.chat-panel.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-title {
    font-size: 1rem;
    font-weight: 500;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.chat-close:hover {
    transform: rotate(90deg);
}

.chat-body {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
}

.chat-message.admin .chat-bubble {
    background-color: #f1f1f1;
    border-bottom-left-radius: 5px;
}

body.dark-mode .chat-message.admin .chat-bubble {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--footer-text);
}

.chat-message.user .chat-bubble {
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
    text-align: right;
}

.chat-footer {
    padding: 10px 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .chat-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.chat-form {
    display: flex;
    align-items: center;
}

.chat-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    margin-right: 10px;
}

body.dark-mode .chat-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ---- مسئول‌پذیری ---- */
@media (max-width: 1199.98px) {
    .mega-menu-container {
        width: 100%;
    }
}

.navbar {
    
        white-space: nowrap;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 15px;
        border-radius: var(--border-radius);
        margin-top: 15px;
    }
    
    .search-dropdown {
        width: 300px;
    }
    
    .mega-menu-container {
        position: static;
        box-shadow: none;
        padding: 15px;
    }
    
    .chat-panel {
        width: 300px;
    }
    
    .mega-menu {
        width: 100% !important;
        max-width: 100%;
    }
    
    .user-account-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .auth-forms {
        padding: 20px;
    }
    
    .verification-code-inputs .code-input {
        width: 40px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .support-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 575.98px) {
    .top-navbar {
        font-size: 0.9rem;
    }
    
    .navbar-brand .brand-text {
        font-size: 1.1rem;
    }
    
    .search-dropdown {
        width: 260px;
    }
    
    .search-category-wrapper {
        display: none;
    }
    
    .welcome-title {
        font-size: 1.3rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .verification-code-inputs .code-input {
        width: 35px;
        height: 45px;
        font-size: 1.1rem;
    }
}



/* استایل اسلایدر اصلی */



/* ==================== استایل اسلایدر حرفه‌ای ==================== */
.hero-slider-section {
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-slider, 
.default-hero-slider {
    height: 700px;
}

@media (max-width: 1200px) {
    .hero-slider, 
    .default-hero-slider {
        height: 600px;
    }
}

@media (max-width: 991px) {
    .hero-slider, 
    .default-hero-slider {
        height: 500px;
    }
}

@media (max-width: 767px) {
    .hero-slider, 
    .default-hero-slider {
        height: 450px;
    }
}

/* تصویر پس‌زمینه و افکت‌ها */
.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-position: center;
    background-size: cover;
    transition: transform 10s ease;
    transform: scale(1.1);
}

.swiper-slide-active .slide-bg {
    transform: scale(1);
}

/* گرادیان روی تصویر */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(75deg, 
        rgba(0,0,0,0.85) 0%, 
        rgba(0,0,0,0.65) 50%, 
        rgba(0,0,0,0.4) 100%);
}

/* محتوای اسلاید */
.slide-content {
    position: relative;
    z-index: 10;
    color: #fff;
    padding: 3rem;
    border-radius: 15px;
    max-width: 650px;
}

/* عنوان اسلاید */
.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background-image: linear-gradient(45deg, #fff, #f0f0f0);
    background-size: 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* توضیحات اسلاید */
.slide-description {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

/* ویژگی‌های محصول */
.slide-features {
    margin-bottom: 2rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-tag {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-tag i {
    color: var(--primary-color);
}

/* دکمه‌های اسلاید */
.slide-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-glow {
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.5);
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-glow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn-glow:hover::before {
    transform: translateX(0);
}

.btn-outline-light {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* تصویر محصول کنار متن */
.slide-product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.slide-product-image img {
    max-height: 400px;
    max-width: 100%;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.floating-element {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* کنترل‌های اسلایدر */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* شماره‌گذاری اسلایدها */
.slide-numbers {
    font-family: "Poppins", sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
}

.current-slide {
    font-size: 2rem;
    font-weight: 600;
}

.slide-divider {
    width: 40px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

.total-slides {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* دکمه‌های ناوبری */
.navigation-buttons {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.nav-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.5);
}

/* پگینیشن */
.swiper-pagination {
    position: relative;
    width: auto !important;
    bottom: 0 !important;
    margin: 0 20px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 10px;
    background-color: var(--primary-color);
}

/* پیشرفت زمانی اسلایدر */
.slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.1);
}

.slider-progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    transition: width linear;
}

/* عناصر دکوراتیو */
.slide-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.decoration-circle-1 {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.decoration-circle-2 {
    position: absolute;
    bottom: 10%;
    left: 15%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    opacity: 0.5;
}

.decoration-line-1 {
    position: absolute;
    top: 0;
    right: 20%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0), 
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0));
}

.decoration-dots {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0.3;
}

/* انیمیشن‌ها */
.split-text {
    opacity: 0;
}

.swiper-slide-active .split-text,
.default-hero-slider .split-text {
    opacity: 1;
}

.swiper-slide .animation-element {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.swiper-slide-active .animation-element,
.default-hero-slider .animation-element {
    opacity: 1;
    transform: translateY(0);
}

.swiper-slide-active .animation-element:nth-child(2),
.default-hero-slider .animation-element:nth-child(2) {
    transition-delay: 0.2s;
}

.swiper-slide-active .animation-element:nth-child(3),
.default-hero-slider .animation-element:nth-child(3) {
    transition-delay: 0.4s;
}

.swiper-slide-active .animation-element:nth-child(4),
.default-hero-slider .animation-element:nth-child(4) {
    transition-delay: 0.6s;
}

/* انیمیشن برای اسلاید پیش‌فرض */
.appear-animation {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUpIn 1s forwards;
}

@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-delay="0.3"] {
    animation-delay: 0.3s;
}

[data-delay="0.5"] {
    animation-delay: 0.5s;
}

[data-delay="0.7"] {
    animation-delay: 0.7s;
}

/* واکنش‌گرایی */
@media (max-width: 991px) {
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
    
    .slide-content {
        padding: 2rem;
    }
    
    .current-slide {
        font-size: 1.5rem;
    }
    
    .slide-divider {
        width: 30px;
    }
    
    .total-slides {
        font-size: 1rem;
    }
    
    .nav-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-content {
        padding: 1.5rem;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .slide-numbers {
        display: none;
    }
    
    .slider-controls {
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .slide-title {
        font-size: 1.7rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .feature-tags {
        gap: 0.5rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .btn-lg {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .nav-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .slide-buttons .btn {
        width: 100%;
    }
    
    .slide-buttons .ms-3 {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* حالت تاریک */
@media (prefers-color-scheme: dark) {
    .feature-tag {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .btn-outline-light {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* ---- استایل‌های بخش ویژگی‌ها ---- */
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

body.dark-mode .feature-card {
    background-color: var(--header-bg);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: all var(--transition-speed) ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
}

body.dark-mode .feature-title {
    color: var(--footer-text);
}

.feature-description {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* ---- استایل‌های بخش دسته‌بندی‌ها ---- */
.section-heading {
    margin-bottom: 40px;
}

.section-subtitle {
    display: inline-block;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

body.dark-mode .section-subtitle {
    background-color: rgba(var(--primary-color-rgb), 0.2);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

body.dark-mode .section-title {
    color: var(--footer-text);
}

.section-description {
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
}

.category-image {
    position: relative;
    overflow: hidden;
    padding-top: 70%;
}

.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transition: all var(--transition-speed) ease;
}

.category-card:hover .category-content {
    background-color: rgba(var(--primary-color-rgb), 0.8);
    bottom: 0;
}

.category-icon {
    width: 50px;
    height: 50px;
    background-color: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
    font-size: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.category-card:hover .category-icon {
    transform: rotate(360deg);
}

.category-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: white;
}

.category-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

.category-link {
    display: block;
    width: 100%;
    height: 100%;
    color: white;
}

.category-link:hover {
    color: white;
}

/* ---- استایل‌های محاسبه‌گر آسانسور ---- */
.calculator-section {
    background-color: white;
    position: relative;
    overflow: hidden;
}

body.dark-mode .calculator-section {
    background-color: var(--body-bg);
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 50%;
    z-index: 0;
}

.calculator-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(var(--secondary-color-rgb), 0.05);
    border-radius: 50%;
    z-index: 0;
}

.calculator-image-wrapper {
    position: relative;
    z-index: 2;
}

.calculator-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    z-index: 3;
}

.badge-inner {
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(20deg);
    animation: pulse 2s infinite;
}

.badge-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.calculator-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    transition: all var(--transition-speed) ease;
    border-radius: var(--border-radius);
}

.calculator-image-wrapper:hover .calculator-overlay {
    opacity: 1;
}

.calculator-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.calculator-feature-item .feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
    margin-right: 15px;
}

.calculator-feature-item .feature-text {
    flex-grow: 1;
}

.calculator-feature-item h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

body.dark-mode .calculator-feature-item h5 {
    color: var(--footer-text);
}

.calculator-feature-item p {
    margin-bottom: 0;
    color: var(--gray-color);
}

/* ---- استایل‌های محصولات ویژه ---- */
.product-filters {
    margin-bottom: 20px;
}

.product-filters .nav-link {
    color: var(--dark-color);
    background-color: transparent;
    border: none;
    padding: 8px 15px;
    margin-right: 5px;
    border-radius: 30px;
    transition: all var(--transition-speed) ease;
}

body.dark-mode .product-filters .nav-link {
    color: var(--footer-text);
}

.product-filters .nav-link.active,
.product-filters .nav-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.product-card {
    position: relative;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

body.dark-mode .product-card {
    background-color: var(--header-bg);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-badges .badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* 4:3 aspect ratio */
}

.product-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
}

.product-card:hover .product-thumbnail img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    transform: translateY(100%);
    transition: all var(--transition-speed) ease;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.product-card:hover .product-actions {
    transform: translateY(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-speed) ease;
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.product-content {
    padding: 20px;
}

.product-category {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.product-category a {
    color: var(--gray-color);
    transition: all var(--transition-speed) ease;
}

.product-category a:hover {
    color: var(--primary-color);
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.product-title a {
    color: var(--dark-color);
    transition: all var(--transition-speed) ease;
}

body.dark-mode .product-title a {
    color: var(--footer-text);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.star-rating {
    color: #ffc107;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.rating-count {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.product-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.product-price del {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-right: 5px;
    font-weight: normal;
}

.product-price ins {
    text-decoration: none;
}

/* ---- بخش تبلیغات ---- */
.promo-card {
    position: relative;
    height: 100%;
    min-height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 1;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: -1;
}

.promo-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.promo-subtitle {
    display: inline-block;
    background-color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.promo-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.promo-description {
    margin-bottom: 20px;
    opacity: 0.9;
}

.promo-card .btn {
    transition: all var(--transition-speed) ease;
}

.promo-card:hover .btn {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ---- استایل‌های کاروسل ---- */
.bestsellers-carousel {
    position: relative;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.carousel-control {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--dark-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

body.dark-mode .carousel-control {
    background-color: var(--header-bg);
    color: var(--footer-text);
    border-color: rgba(255, 255, 255, 0.1);
}

.carousel-control:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ---- بخش مزایا و نصب ---- */
.benefits-section {
    position: relative;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--primary-color-rgb), 0.02);
    z-index: -1;
}

.benefit-item {
    margin-bottom: 30px;
    transition: all var(--transition-speed) ease;
}

.benefit-item:hover {
    transform: translateX(-10px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all var(--transition-speed) ease;
}

.benefit-item:hover .benefit-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.benefit-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

body.dark-mode .benefit-text h4 {
    color: var(--footer-text);
}

.benefit-text p {
    color: var(--gray-color);
    margin-bottom: 0;
}

.installation-steps {
    margin-top: 30px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
    position: relative;
}

body.dark-mode .step-item {
    background-color: var(--header-bg);
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-item::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 30px;
    width: 2px;
    height: 25px;
    background-color: rgba(var(--primary-color-rgb), 0.2);
}

.step-item:last-child::before {
    display: none;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-content {
    flex-grow: 1;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

body.dark-mode .step-content h4 {
    color: var(--footer-text);
}

.step-content p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* استایل بخش شمارنده آمار */
.counter-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding: 80px 0;
}

.counter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.counter-section .container {
    position: relative;
    z-index: 2;
}

.counter-item {
    padding: 30px 15px;
    transition: all 0.3s ease;
}

.counter-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.counter-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.counter-title {
    font-size: 18px;
    font-weight: 500;
}

@media (max-width: 767px) {
    .counter-icon {
        font-size: 36px;
    }
    
    .counter-number {
        font-size: 30px;
    }
    
    .counter-title {
        font-size: 16px;
    }
}

/* ---- بخش وبلاگ ---- */
.blog-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

body.dark-mode .blog-card {
    background-color: var(--header-bg);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-thumbnail {
    position: relative;
    overflow: hidden;
}

.blog-thumbnail img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    text-align: center;
    z-index: 1;
}

.date-day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.blog-category a {
    color: var(--primary-color);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.blog-category a:hover {
    opacity: 0.8;
}

.blog-author {
    color: var(--gray-color);
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.blog-title a {
    color: var(--dark-color);
    transition: all var(--transition-speed) ease;
}

body.dark-mode .blog-title a {
    color: var(--footer-text);
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.read-more i {
    margin-right: 5px;
    transition: all var(--transition-speed) ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more:hover i {
    transform: translateX(-5px);
}

/* ---- بخش برندها ---- */
.brand-item {
    text-align: center;
    padding: 20px;
    transition: all var(--transition-speed) ease;
}

.brand-link {
    display: block;
    opacity: 0.6;
    transition: all var(--transition-speed) ease;
}

.brand-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.brand-link img {
    max-height: 50px;
    max-width: 100%;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

body.dark-mode .brand-name {
    color: var(--footer-text);
}

/* استایل‌های صفحات کاربری */

/* ---- صفحه ورود و ثبت‌نام ---- */
.authentication-page {
    background-color: #f8f9fa;
    min-height: calc(100vh - 250px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

body.dark-mode .authentication-page {
    background-color: var(--body-bg);
}

.auth-container {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

body.dark-mode .auth-container {
    background-color: var(--header-bg);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.auth-banner {
    background-color: var(--primary-color);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    position: relative;
    background-image: url('data:image/svg+xml,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="smallGrid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255, 255, 255, 0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23smallGrid)" /></svg>');
    background-size: cover;
    overflow: hidden;
}

.auth-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.auth-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.banner-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.banner-text {
    margin-bottom: 40px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.auth-features {
    position: relative;
    z-index: 1;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-text p {
    opacity: 0.9;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.auth-forms {
    padding: 30px;
}

.auth-header {
    margin-bottom: 30px;
}

.nav-auth {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

body.dark-mode .nav-auth {
    border-bottom-color: var(--dark-border-color);
}

.nav-auth .nav-link {
    border: none;
    border-radius: var(--border-radius);
    color: var(--dark-color);
    padding: 10px 20px;
    font-weight: 500;
    transition: var(--transition-speed) ease;
}

body.dark-mode .nav-auth .nav-link {
    color: var(--footer-text);
}

.nav-auth .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

body.dark-mode .form-title {
    color: var(--footer-text);
}

.form-desc {
    color: var(--gray-color);
    margin-bottom: 25px;
}

.verification-code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.verification-code-inputs .code-input {
    width: 50px;
    height: 60px;
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    text-align: center;
    border: 1px solid #ccc;
}

body.dark-mode .verification-code-inputs .code-input {
    background-color: var(--dark-input-bg);
    border-color: var(--dark-border-color);
    color: var(--footer-text);
}

.code-timer {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.phone-display {
    font-weight: 500;
    color: var(--primary-color);
}

.auth-divider {
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: #eee;
}

body.dark-mode .auth-divider::before {
    background-color: var(--dark-border-color);
}

.auth-divider span {
    position: relative;
    padding: 0 15px;
    background-color: white;
    color: var(--gray-color);
}

body.dark-mode .auth-divider span {
    background-color: var(--header-bg);
    color: var(--footer-text);
}

.traditional-login, .traditional-register {
    margin-top: 30px;
}

.traditional-login h5, .traditional-register h5 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--dark-color);
}

body.dark-mode .traditional-login h5,
body.dark-mode .traditional-register h5 {
    color: var(--footer-text);
}

/* ---- صفحه حساب کاربری ---- */
.my-account-page {
    background-color: #f8f9fa;
    min-height: calc(100vh - 250px);
    padding: 40px 0;
}

body.dark-mode .my-account-page {
    background-color: var(--body-bg);
}

.user-account-sidebar {
    position: sticky;
    top: 100px;
}

.user-profile-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
}

body.dark-mode .user-profile-card {
    background-color: var(--header-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    margin-bottom: 15px;
}

.user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 3px;
}

.user-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

body.dark-mode .user-name {
    color: var(--footer-text);
}

.user-phone {
    color: var(--gray-color);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.account-navigation {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

body.dark-mode .account-navigation {
    background-color: var(--header-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.account-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .account-nav-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.account-nav-item:last-child {
    border-bottom: none;
}

.account-nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--dark-color);
    transition: var(--transition-speed) ease;
}

body.dark-mode .account-nav-link {
    color: var(--footer-text);
}

.account-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--primary-color);
}

body.dark-mode .account-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.account-nav-item.active .account-nav-link {
    background-color: var(--primary-color);
    color: white;
}

.account-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

body.dark-mode .account-card {
    background-color: var(--header-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.account-card-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .account-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.account-card-title {
    margin-bottom: 0;
    font-size: 1.3rem;
    color: var(--dark-color);
}

body.dark-mode .account-card-title {
    color: var(--footer-text);
}

.account-card-body {
    padding: 20px;
}

.dashboard-welcome {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

body.dark-mode .dashboard-welcome {
    background-color: var(--header-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.welcome-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

body.dark-mode .welcome-title {
    color: var(--footer-text);
}

.welcome-text {
    color: var(--gray-color);
    margin-bottom: 0;
}

.dashboard-illustration img {
    max-width: 100%;
    height: auto;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    align-items: center;
    transition: var(--transition-speed) ease;
}

body.dark-mode .stat-card {
    background-color: var(--header-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.stat-icon.green {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stat-icon.orange {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.stat-icon.blue {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.stat-info {
    flex-grow: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-color);
}

body.dark-mode .stat-value {
    color: var(--footer-text);
}

.stat-label {
    color: var(--gray-color);
    margin-bottom: 0;
}

.section-title {
    position: relative;
    font-size: 1.3rem;
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: var(--dark-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .section-title {
    color: var(--footer-text);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.support-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: var(--transition-speed) ease;
}

body.dark-mode .support-card {
    background-color: var(--header-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.support-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.support-content {
    flex-grow: 1;
}

.support-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

body.dark-mode .support-content h4 {
    color: var(--footer-text);
}

.support-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.address-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
}

body.dark-mode .address-card {
    background-color: var(--header-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.address-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .address-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.address-card-title {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--dark-color);
}

body.dark-mode .address-card-title {
    color: var(--footer-text);
}

.address-card-body {
    padding: 20px;
}

.empty-address {
    color: var(--gray-color);
    font-style: italic;
}

.address-edit-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
}

body.dark-mode .address-edit-form {
    background-color: rgba(255, 255, 255, 0.05);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

body.dark-mode .empty-state-title {
    color: var(--footer-text);
}

.empty-state-description {
    color: var(--gray-color);
    margin-bottom: 20px;
}

/* ---- مسئول‌پذیری ---- */
@media (max-width: 991.98px) {
    .user-account-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .auth-forms {
        padding: 20px;
    }
    
    .verification-code-inputs .code-input {
        width: 40px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .support-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 575.98px) {
    .welcome-title {
        font-size: 1.3rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .verification-code-inputs .code-input {
        width: 35px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/**
 * استایل‌های مربوط به هدر پیشرفته
 */

/* استایل‌های نوار اعلان */
.announcement-bar {
    font-weight: 500;
}

/* استایل‌های مگامنو */
.mega-menu {
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 0;
    padding: 20px;
}

.category-title {
    position: relative;
    padding-bottom: 10px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.category-title a:hover {
    color: var(--primary-color) !important;
}

.cat-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.subcategory-list li a {
    transition: all 0.2s ease;
    display: block;
    padding: 5px 0;
}

.subcategory-list li a:hover {
    color: var(--primary-color) !important;
    transform: translateX(-5px);
}

/* مینی سبد خرید و منوی حساب کاربری */
.mini-cart-dropdown,
.account-dropdown {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;  /* تنظیم از سمت راست */
    transform: translateX(0); /* حذف ترنسفورم */
    width: 320px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    margin-top: 15px;
}

/* اصلاح موقعیت فلش بالای منو */
.arrow-up {
    position: absolute;
    top: -10px;
    left: auto;
    right: 20px; /* تنظیم از سمت راست */
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
}

/* اطمینان از عملکرد صحیح hover */
.cart-link,
.account-link {
    position: relative; /* مهم برای موقعیت‌دهی درست به فرزندان */
}

/* تقویت قوانین hover برای اطمینان از نمایش منو */
.cart-link:hover .mini-cart-dropdown,
.account-link:hover .account-dropdown {
    display: block !important; 
}

/* استایل برای حالت دارک مود */
body.dark-mode .mini-cart-dropdown,
body.dark-mode .account-dropdown {
    background-color: #2d2d2d;
}

body.dark-mode .arrow-up {
    border-bottom-color: #2d2d2d;
}

.mini-cart-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.mini-cart-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.mini-cart-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mini-cart-remove a {
    color: #dc3545;
    font-size: 18px;
}

.account-links li {
    margin-bottom: 10px;
}

.account-links li:last-child {
    margin-bottom: 0;
}

.account-links a {
    color: var(--body-text-color);
    transition: all 0.2s ease;
    display: block;
    padding: 5px 0;
}

.account-links a:hover {
    color: var(--primary-color);
}

/* استایل جستجو */
.search-results-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

/* استایل منوی موبایل */
.offcanvas {
    max-width: 80%;
}

.mobile-menu .list-group-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 12px 15px;
}

.mobile-menu-arrow {
    transition: transform 0.3s ease;
}

.mobile-menu-arrow.rotate {
    transform: rotate(180deg);
}

.mobile-submenu {
    margin: 0 0 10px;
    display: none;
}

/* دکمه حالت شب/روز */
.dark-mode-toggle .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    transition: all 0.3s ease;
    background-color: #f0f0f0;
}

body.dark-mode .dark-mode-toggle .btn {
    background-color: #333;
}

/* استایل‌های منوی چسبان */
.sticky-top {
    transition: all 0.3s ease;
}

.sticky-top.scrolled {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* نشانگر وضعیت برای آیکون‌های هدر */
.icon-wrapper {
    position: relative;
}

/* استایل‌های هدر موبایل */
.mobile-header-row {
    width: 100%;
}

.site-branding-mobile img {
    max-height: 50px;
    width: auto;
}

.site-branding-mobile .site-title {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.mobile-actions .header-icon {
    color: var(--text-color);
    font-size: 1.2rem;
    position: relative;
}

@media (max-width: 767.98px) {
    .navbar-toggler {
        padding: 0.375rem 0.75rem;
        font-size: 1.1rem;
        border: 1px solid rgba(0,0,0,0.1);
        background-color: transparent;
    }
    
    body.dark-mode .navbar-toggler {
        border-color: rgba(255,255,255,0.1);
        color: var(--text-color);
    }
    
    /* تنظیم سایز لوگو در موبایل */
    .site-branding-mobile .custom-logo {
        max-width: 120px;
    }
    
    /* تنظیم دکمه منو همبرگر */
    .navbar-toggler .bi-list {
        font-size: 1.75rem !important;
    }
    
    /* عدم نمایش دکمه ناوبری در منوی اصلی در موبایل */
    .main-navigation .navbar-toggler {
        display: none;
    }
}

/* استایل‌های وضعیت کاربر */
.status-indicator {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.logged-in {
    background-color: var(--success-color);
}

/* بازنویسی استایل‌های کلاس dark-mode */
body.dark-mode .mobile-header-row .header-icon {
    color: var(--dark-text-color);
}

body.dark-mode .site-branding-mobile .site-title a {
    color: var(--dark-text-color);
}



/* استایل‌های بخش محصولات ویژه */
.featured-products-section {
    position: relative;
    padding: 70px 0;
    overflow: hidden;
}

/* استایل عنوان بخش */
.section-heading {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.section-badge {
    display: inline-block;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
    position: relative;
}

.section-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.title-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.title-separator span {
    position: relative;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.title-separator span::before,
.title-separator span::after {
    content: "";
    position: absolute;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.title-separator span::before {
    left: 0;
}

.title-separator span::after {
    right: 0;
}

/* استایل فیلترها */
.product-filter-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 -5px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background-color: var(--card-bg);
    border: none;
    border-radius: 50px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.filter-btn i {
    margin-left: 6px;
    font-size: 16px;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

/* استایل کارت محصول */
.product-card {
    position: relative;
    border-radius: 12px;
    background-color: var(--card-bg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-labels {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-labels span {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: #fff;
}

.label-sale {
    background-color: #ff3d58;
}

.label-hot {
    background-color: #ffa700;
}

.label-out {
    background-color: #666;
}

.product-thumb {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.product-thumb a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.05);
}

.product-action {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -50px;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 3;
}

.product-card:hover .product-action {
    bottom: 0;
    opacity: 1;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background-color: var(--text-color);
    color: #fff;
    transform: translateY(-3px);
}

.product-info {
    padding: 20px;
    position: relative;
}

.product-category {
    margin-bottom: 5px;
}

.product-cat {
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.product-cat:hover {
    color: var(--primary-color);
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-rating {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.star-rating-wrap {
    display: flex;
    align-items: center;
}

.star-rating-wrap.empty i {
    color: #ddd;
    font-size: 14px;
    margin-left: 2px;
}

.rating-count {
    margin-right: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.product-price {
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

.product-price del {
    font-weight: normal;
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 5px;
}

.product-price ins {
    text-decoration: none;
}

.product-bottom {
    text-align: center;
}

.btn-add-cart {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.btn-add-cart:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.out-of-stock {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f5f5f5;
    color: #999;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
}

/* دکمه نمایش همه محصولات */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 35px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.btn-view-all span {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.btn-view-all i {
    margin-right: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.btn-view-all::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-view-all:hover {
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
    color: #fff;
}

.btn-view-all:hover::before {
    width: 100%;
    right: auto;
    left: 0;
}

.btn-view-all:hover i {
    transform: translateX(-5px);
}

/* واکنش‌گرایی */
@media (max-width: 991px) {
    .section-title {
        font-size: 28px;
    }
    
    .filter-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        justify-content: start;
        flex-wrap: nowrap;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .product-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 24px;
    }
    
    .product-thumb {
        padding-top: 75%;
    }
    
    .product-title {
        font-size: 15px;
        height: 45px;
    }
    
    .product-price {
        font-size: 16px;
    }
}

/* تطبیق حالت تاریک */
body.dark-mode .btn-view-all::before {
    background-color: #333;
}

body.dark-mode .product-action {
    background-color: rgba(40, 40, 40, 0.9);
}

body.dark-mode .filter-btn.active,
body.dark-mode .filter-btn:hover,
body.dark-mode .btn-action,
body.dark-mode .btn-add-cart,
body.dark-mode .btn-view-all {
    background-color: var(--dark-primary-color);
    border-color: var(--dark-primary-color);
}

body.dark-mode .btn-add-cart:hover {
    background-color: transparent;
    color: var(--dark-primary-color);
}

body.dark-mode .section-badge {
    background-color: rgba(var(--dark-primary-rgb), 0.2);
    color: var(--dark-primary-color);
}

body.dark-mode .product-price {
    color: var(--dark-primary-color);
}

body.dark-mode .title-separator span,
body.dark-mode .title-separator span::before,
body.dark-mode .title-separator span::after,
body.dark-mode .section-badge::before {
    background-color: var(--dark-primary-color);
}