/*
Theme Name: Narmalo
Theme URI: https://narmalo.com
Author: Narmalo Team
Author URI: https://narmalo.com
Description: قالب فروشگاهی وردپرس برای فروشگاه نرمالو - فروش غذا و لوازم پت‌ها. این قالب با پشتیبانی کامل از WooCommerce و بهینه‌سازی شده برای SEO طراحی شده است.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: narmalo
Domain Path: /languages
Tags: e-commerce, woocommerce, pet-shop, shop, business, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support

Narmalo is a modern, SEO-optimized WordPress theme designed specifically for pet shops selling pet food and supplies.
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #231942;
    --secondary-color: #DDC4DD;
    --accent-color: #AEADF0;
    --text-color: #231942;
    --text-description: #4F517D;
    --background-color: #DCCFEC;
    --button-color: #AEADF0;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --font-primary: 'Kalameh', 'Tahoma', sans-serif;
    --font-secondary: 'Kalameh', 'Tahoma', sans-serif;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    direction: rtl;
    text-align: right;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-description);
}

.entry-summary,
.entry-excerpt {
    color: var(--text-description);
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-description);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Content Area */
.site-main {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(35, 25, 66, 0.1);
}

/* Header Styles */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(35, 25, 66, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.site-branding img {
    max-height: 60px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

/* Navigation - Mega Menu */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* مخفی کردن دکمه همبرگری در دسکتاپ */
.menu-toggle {
    display: none;
}

/* نمایش مگا منو در دسکتاپ */
.main-navigation.desktop-navigation {
    display: flex;
}

/* مخفی کردن header-left-section در دسکتاپ */
.header-left-section {
    display: none;
}

/* منو تمام صفحه - به صورت پیش‌فرض مخفی */
.fullscreen-menu-overlay {
    display: none;
    visibility: hidden;
    opacity: 0;
}

.main-navigation ul.mega-menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

.main-navigation ul.mega-menu > li {
    position: static;
}

.main-navigation ul.mega-menu > li > .menu-item-wrapper {
    position: relative;
}

.main-navigation ul.mega-menu > li > .menu-item-wrapper > .menu-item-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-navigation ul.mega-menu > li > .menu-item-wrapper > .menu-item-content > .menu-item-link {
    font-weight: 600;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.main-navigation ul.mega-menu > li > .menu-item-wrapper > .menu-item-content > .menu-item-link:hover {
    color: var(--text-description);
    background-color: var(--secondary-color);
}

.main-navigation ul.mega-menu > li.menu-item-has-children > .menu-item-wrapper {
    position: relative;
}

.menu-item-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.menu-toggle-icon {
    font-size: 0.6rem;
    margin-right: 0.25rem;
    transition: transform 0.3s ease;
    color: var(--text-description);
}

.main-navigation ul.mega-menu > li:hover > .menu-item-wrapper > .menu-item-content > .menu-toggle-icon {
    transform: rotate(180deg);
}

/* Mega Menu Dropdown */
.main-navigation ul.mega-menu > li.mega-menu-item:hover > .sub-menu,
.main-navigation ul.mega-menu > li.menu-item-has-children:hover > .sub-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
    opacity: 1;
    visibility: visible;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Standard Dropdown Menu */
.main-navigation .sub-menu:not(.mega-menu-dropdown) {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(35, 25, 66, 0.15);
    border-radius: 8px;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    z-index: 999;
    border: 1px solid var(--secondary-color);
}

/* Mega Menu Dropdown (Multi-column) */
.main-navigation .sub-menu.mega-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    box-shadow: 0 8px 25px rgba(35, 25, 66, 0.15);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 0.5rem;
    z-index: 999;
    border: 1px solid var(--secondary-color);
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

/* Multi-column Grid Layout */
.main-navigation .sub-menu.mega-menu-dropdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* Column Width Classes */
.main-navigation .sub-menu.mega-menu-dropdown .menu-column-1 {
    grid-column: span 1;
}

.main-navigation .sub-menu.mega-menu-dropdown .menu-column-2 {
    grid-column: span 2;
}

.main-navigation .sub-menu.mega-menu-dropdown .menu-column-3 {
    grid-column: span 3;
}

.main-navigation .sub-menu.mega-menu-dropdown .menu-column-4 {
    grid-column: span 4;
}

/* Submenu Items */
.main-navigation .sub-menu li {
    margin: 0;
    list-style: none;
}

.main-navigation .sub-menu li .menu-item-wrapper {
    display: flex;
    flex-direction: column;
}

/* Submenu Links */
.main-navigation .sub-menu .menu-item-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-navigation .sub-menu .menu-item-link:hover {
    background-color: var(--secondary-color);
    color: var(--text-description);
    padding-right: 1.25rem;
}

/* Menu Item with Image */
.main-navigation .sub-menu li.has-image .menu-item-wrapper {
    padding: 0;
}

.main-navigation .sub-menu li.has-image .menu-item-image {
    width: 100%;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light-gray);
}

.main-navigation .sub-menu li.has-image .menu-item-image a {
    display: block;
    text-decoration: none;
}

.main-navigation .sub-menu li.has-image .menu-item-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.main-navigation .sub-menu li.has-image:hover .menu-item-image img {
    transform: scale(1.08);
}

.main-navigation .sub-menu li.has-image .menu-item-content {
    padding: 0 0.5rem;
}

/* Menu Item Description */
.menu-item-description {
    display: block;
    font-size: 0.85rem;
    color: var(--text-description);
    margin-top: 0.25rem;
    line-height: 1.5;
}

/* Column Headers in Mega Menu */
.main-navigation .sub-menu.mega-menu-dropdown > li > .menu-item-wrapper > .menu-item-content > .menu-item-link {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--secondary-color);
    border-radius: 0;
}

.main-navigation .sub-menu.mega-menu-dropdown > li > .menu-item-wrapper > .menu-item-content > .menu-item-link:hover {
    background: transparent;
    color: var(--text-description);
    padding-right: 0;
}

/* Nested Submenus */
.main-navigation .sub-menu .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    background: transparent;
    padding: 0.5rem 0 0 0;
    margin: 0;
    border: none;
    border-radius: 0;
}

.main-navigation .sub-menu .sub-menu .menu-item-link {
    padding-right: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-description);
}

.main-navigation .sub-menu .sub-menu .menu-item-link:hover {
    padding-right: 2rem;
}

.main-navigation .sub-menu li.has-image a {
    padding: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Cart */
.header-cart {
    position: relative;
}

.cart-contents {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.cart-contents:hover {
    background: var(--text-description);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cart-icon {
    font-size: 1.2rem;
}

.cart-text {
    font-size: 0.9rem;
}

.cart-count {
    background: var(--white);
    color: var(--button-color);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.25rem;
}

/* Auth Links */
.header-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-link:hover {
    background: var(--secondary-color);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.auth-icon {
    font-size: 1.1rem;
}

.auth-text {
    white-space: nowrap;
}

/* User Account Dropdown */
.user-account-dropdown {
    position: relative;
    display: inline-block;
}

.user-account-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    white-space: nowrap;
}

.user-account-toggle:hover {
    background: var(--secondary-color);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.user-account-toggle[aria-expanded="true"] {
    background: var(--secondary-color);
}

.user-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: var(--text-description);
}

.user-account-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Account Menu */
.user-account-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(35, 25, 66, 0.15);
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
    animation: fadeInDown 0.2s ease;
    pointer-events: auto;
}

/* Invisible bridge to prevent menu from closing when moving mouse */
.user-account-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
    pointer-events: none;
}

.user-account-dropdown:hover .user-account-menu,
.user-account-dropdown.active .user-account-menu {
    display: block;
}

/* Keep menu open when hovering over it */
.user-account-dropdown:hover::after,
.user-account-dropdown.active::after {
    pointer-events: auto;
}

.user-account-menu li {
    margin: 0;
    padding: 0;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.account-menu-item:hover {
    background: var(--secondary-color);
    color: var(--text-color);
    padding-right: 1.5rem;
}

.account-menu-item .menu-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.account-menu-item .menu-text {
    flex: 1;
}

/* Logout Item */
.account-menu-item.logout-item {
    color: #dc3545;
}

.account-menu-item.logout-item:hover {
    background: #fee;
    color: #c82333;
}

/* Menu Divider */
.menu-divider {
    height: 1px;
    background: var(--secondary-color);
    margin: 0.5rem 0;
    padding: 0;
}

.menu-divider:hover {
    background: var(--secondary-color);
}

/* WooCommerce Styles */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.woocommerce ul.products li.product {
    background: var(--white);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.woocommerce ul.products li.product .price {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--text-color);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a {
    color: var(--text-color);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover {
    color: var(--text-description);
}

/* Product Description */
.woocommerce ul.products li.product .woocommerce-product-details__short-description,
.woocommerce-product-details__short-description {
    color: var(--text-description);
}

/* Entry Summary */
.entry-summary p,
.entry-excerpt {
    color: var(--text-description);
}

/* Page Content */
.page-content p,
.page-content li {
    color: var(--text-description);
}

/* Buttons */
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--button-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--button-color);
    opacity: 0.85;
    color: var(--white);
}

/* Footer */
.site-footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
}

.footer-widget a:hover {
    color: var(--white);
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Entry Content */
.entry-content {
    margin-top: 1.5rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
    color: var(--text-description);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
    color: var(--text-description);
}

.entry-content img {
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* Post Navigation */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comment-list {
    list-style: none;
    margin: 2rem 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.9rem;
    color: var(--text-description);
    margin-bottom: 1rem;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.search-form .search-field {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
}

.search-form .search-submit {
    padding: 0.75rem 1.5rem;
    background: var(--button-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Cart */
.header-cart {
    position: relative;
}

.cart-contents {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border-radius: 4px;
}

.cart-count {
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* مخفی کردن منو تمام صفحه در دسکتاپ */
@media (min-width: 769px) {
    .fullscreen-menu-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .header-wrapper {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
    }
    
    .main-navigation ul.mega-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .main-navigation ul.mega-menu > li > .menu-item-wrapper > .menu-item-content > .menu-item-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .main-navigation .sub-menu.mega-menu-dropdown {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .header-actions {
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        flex-wrap: nowrap;
    }
    
    /* لوگو - سمت راست */
    .site-branding {
        flex: 0 0 auto;
        order: 1;
    }
    
    .site-branding img {
        max-height: 45px;
        width: auto;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    /* Header Actions - فقط برای دسکتاپ */
    .header-actions {
        display: none;
    }
    
    /* مخفی کردن desktop cart در موبایل */
    .header-cart.desktop-cart {
        display: none;
    }
    
    /* مخفی کردن حساب کاربری در موبایل */
    .header-auth.desktop-only {
        display: none;
    }
    
    /* مخفی کردن مگا منو دسکتاپ در موبایل */
    .main-navigation.desktop-navigation {
        display: none !important;
    }
    
    /* سکشن سمت چپ - سبد خرید و منو */
    .header-left-section {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        order: 2;
        flex: 0 0 auto;
    }
    
    /* نمایش دکمه همبرگری در موبایل */
    .menu-toggle {
        display: flex !important;
    }
    
    /* سبد خرید موبایل */
    .header-cart.mobile-cart {
        position: relative;
        width: 40px;
        height: 40px;
    }
    
    .mobile-cart .cart-contents {
        padding: 0.5rem;
        max-width: 44px;
        max-height: 44px;
        justify-content: center;
        gap: 0.25rem;
        position: relative;
        background: var(--accent-color);
        color: var(--white);
        border-radius: 6px;
    }
    
    .mobile-cart .cart-contents .cart-text {
        display: none;
    }
    
    .mobile-cart .cart-contents .cart-icon {
        font-size: 1.3rem;
    }
    
    .mobile-cart .cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        background: var(--white);
        color: var(--accent-color);
        border: 1px solid;
    }
    
    /* مخفی کردن مگا منو در موبایل */
    .main-navigation ul.mega-menu {
        display: none !important;
    }
    
    /* دکمه منو همبرگری */
    .main-navigation {
        position: relative;
        flex: 0 0 auto;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--button-color);
        color: var(--white);
        border: none;
        padding: 0.6rem 1rem;
        border-radius: 6px;
        cursor: pointer;
        font-size: 1.2rem;
        min-width: 44px;
        height: 44px;
        transition: all 0.3s ease;
    }
    
    .menu-toggle:hover,
    .menu-toggle.active {
        background: var(--text-description);
        transform: scale(1.05);
    }
    
    .menu-icon {
        font-size: 1.3rem;
        line-height: 1;
    }
    
    /* منو تمام صفحه */
    .fullscreen-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: rgba(35, 25, 66, 0.98);
        backdrop-filter: blur(5px);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        overflow: hidden;
    }
    
    .fullscreen-menu-overlay.active {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .fullscreen-menu-content {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        min-height: 100vh;
        background: var(--white);
        padding: 0;
        animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    /* دکمه بستن منو */
    .menu-close {
        position: sticky;
        top: 1rem;
        right: 1rem;
        background: var(--button-color);
        color: var(--white);
        border: none;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        transition: all 0.3s ease;
        z-index: 10000;
        margin: 1rem 1rem 0 auto;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    
    .menu-close:hover,
    .menu-close:focus {
        background: var(--text-description);
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    }
    
    .close-icon {
        line-height: 1;
        font-weight: bold;
    }
    
    /* Wrapper برای منو */
    .fullscreen-menu-wrapper {
        padding: 0;
        width: 100%;
        max-width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    
    /* Header در منو تمام صفحه (اختیاری) */
    .fullscreen-menu-header {
        padding: 2rem 1.5rem 1rem;
        border-bottom: 2px solid var(--secondary-color);
        margin-bottom: 1rem;
    }
    
    .fullscreen-menu-header h2 {
        margin: 0;
        font-size: 1.5rem;
        color: var(--text-color);
    }
    
    .fullscreen-menu-wrapper ul.mega-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
    
    /* استایل‌های منو در fullscreen */
    .fullscreen-menu-wrapper ul.mega-menu > li {
        width: 100%;
        position: relative;
        margin: 0;
    }
    
    .fullscreen-menu-wrapper ul.mega-menu > li > .menu-item-wrapper {
        width: 100%;
        display: block;
    }
    
    .fullscreen-menu-wrapper ul.mega-menu > li > .menu-item-wrapper > .menu-item-content {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .fullscreen-menu-wrapper ul.mega-menu > li > .menu-item-wrapper > .menu-item-content > .menu-item-link {
        flex: 1;
        width: 100%;
        padding: 1.5rem 1.5rem;
        border-bottom: 1px solid var(--secondary-color);
        border-radius: 0;
        justify-content: space-between;
        align-items: center;
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--text-color);
        text-align: right;
        transition: all 0.3s ease;
        display: flex;
        min-height: 60px;
    }
    
    .fullscreen-menu-wrapper ul.mega-menu > li > .menu-item-wrapper > .menu-item-content > .menu-item-link:hover {
        background: var(--background-color);
        color: var(--text-description);
        padding-right: 2rem;
    }
    
    .fullscreen-menu-wrapper ul.mega-menu > li > .menu-item-wrapper > .menu-item-content > .menu-item-link:active {
        background: var(--secondary-color);
    }
    
    .fullscreen-menu-wrapper ul.mega-menu > li:last-child > .menu-item-wrapper > .menu-item-content > .menu-item-link {
        border-bottom: 1px solid var(--secondary-color);
    }
    
    /* استایل برای آیتم‌های بدون لینک */
    .fullscreen-menu-wrapper ul.mega-menu > li > .menu-item-wrapper > .menu-item-content {
        padding: 0;
    }
    
    .fullscreen-menu-wrapper ul.mega-menu > li.menu-item-has-children > .menu-item-wrapper > .menu-item-content > .menu-toggle-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        margin-right: 0.5rem;
        transition: transform 0.3s ease;
        width: 24px;
        height: 24px;
    }
    
    .fullscreen-menu-wrapper ul.mega-menu > li.menu-item-has-children.active > .menu-item-wrapper > .menu-item-content > .menu-toggle-icon {
        transform: rotate(180deg);
    }
    
    /* Mobile Submenu در fullscreen */
    .fullscreen-menu-wrapper .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--background-color);
        margin: 0;
        padding: 0.5rem 0;
        border-radius: 0;
        border: none;
        width: 100%;
        max-width: 100%;
        left: auto;
        right: auto;
        list-style: none;
    }
    
    .fullscreen-menu-wrapper .sub-menu.mega-menu-dropdown {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0.5rem 0;
    }
    
    .fullscreen-menu-wrapper .sub-menu li {
        width: 100%;
        margin: 0;
    }
    
    .fullscreen-menu-wrapper .sub-menu li .menu-item-wrapper {
        width: 100%;
    }
    
    .fullscreen-menu-wrapper .sub-menu li .menu-item-wrapper > .menu-item-content {
        width: 100%;
    }
    
    .fullscreen-menu-wrapper .sub-menu .menu-item-link {
        padding: 1.25rem 2.5rem;
        border-bottom: 1px solid var(--secondary-color);
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-description);
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
    }
    
    .fullscreen-menu-wrapper .sub-menu .menu-item-link:hover {
        background: var(--white);
        color: var(--text-color);
        padding-right: 3rem;
    }
    
    .fullscreen-menu-wrapper .sub-menu li:last-child .menu-item-link {
        border-bottom: 1px solid var(--secondary-color);
    }
    
    /* Mobile Menu Item with Image در fullscreen */
    .fullscreen-menu-wrapper .sub-menu li.has-image {
        padding: 1rem 0;
    }
    
    .fullscreen-menu-wrapper .sub-menu li.has-image .menu-item-image {
        margin-bottom: 0.75rem;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .fullscreen-menu-wrapper .sub-menu li.has-image .menu-item-image img {
        width: 100%;
        height: auto;
        display: block;
    }
    
    .fullscreen-menu-wrapper .sub-menu li.has-image .menu-item-content {
        padding: 0 1.5rem;
    }
    
    .fullscreen-menu-wrapper .sub-menu li.has-image .menu-item-link {
        padding: 0;
        border: none;
    }
    
    /* Menu Item Icon در fullscreen */
    .fullscreen-menu-wrapper .menu-item-icon {
        font-size: 1.3rem;
        margin-left: 0.75rem;
    }
    
    /* دکمه‌های ورود/ثبت نام در منو تمام صفحه */
    .fullscreen-menu-wrapper .mobile-menu-auth {
        border-top: 2px solid var(--secondary-color);
        padding: 2rem 1.5rem;
        background: var(--white);
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: auto;
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        z-index: 10;
    }
    
    .fullscreen-menu-wrapper .mobile-auth-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem;
        background: var(--white);
        color: var(--text-color);
        border: 2px solid var(--secondary-color);
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.3s ease;
        font-weight: 600;
        font-size: 1.1rem;
        width: 100%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .fullscreen-menu-wrapper .mobile-auth-link:hover {
        background: var(--secondary-color);
        color: var(--text-color);
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }
    
    .fullscreen-menu-wrapper .mobile-auth-link:active {
        transform: translateY(-1px);
    }
    
    .fullscreen-menu-wrapper .mobile-auth-link .auth-icon {
        font-size: 1.4rem;
        line-height: 1;
    }
    
    .fullscreen-menu-wrapper .mobile-auth-link .auth-text {
        flex: 1;
        text-align: center;
    }
    
    /* دکمه ورود */
    .fullscreen-menu-wrapper .mobile-login-link {
        background: var(--button-color);
        color: var(--white);
        border-color: var(--button-color);
    }
    
    .fullscreen-menu-wrapper .mobile-login-link:hover {
        background: var(--text-description);
        color: var(--white);
        border-color: var(--text-description);
    }
    
    /* دکمه ثبت نام */
    .fullscreen-menu-wrapper .mobile-register-link {
        background: var(--white);
        color: var(--text-color);
        border-color: var(--secondary-color);
    }
    
    .fullscreen-menu-wrapper .mobile-register-link:hover {
        background: var(--secondary-color);
        color: var(--text-color);
    }
    
    /* دکمه حساب کاربری */
    .fullscreen-menu-wrapper .mobile-account-link {
        background: var(--white);
        color: var(--text-color);
        border-color: var(--secondary-color);
    }
    
    /* دکمه خروج */
    .fullscreen-menu-wrapper .mobile-logout-link {
        background: #fee;
        color: #dc3545;
        border-color: #dc3545;
    }
    
    .fullscreen-menu-wrapper .mobile-logout-link:hover {
        background: #fcc;
        color: #c82333;
        border-color: #c82333;
    }
    
    /* جلوگیری از scroll body وقتی منو باز است */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* بهبود scroll در منو */
    .fullscreen-menu-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .fullscreen-menu-content::-webkit-scrollbar-track {
        background: var(--background-color);
    }
    
    .fullscreen-menu-content::-webkit-scrollbar-thumb {
        background: var(--secondary-color);
        border-radius: 3px;
    }
    
    .fullscreen-menu-content::-webkit-scrollbar-thumb:hover {
        background: var(--text-description);
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .woocommerce .products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .post-navigation .nav-links {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        padding: 0.75rem 0;
        gap: 0.5rem;
    }
    
    .site-branding img {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.1rem;
    }
    
    .header-actions {
        gap: 0.4rem;
    }
    
    .menu-toggle {
        padding: 0.5rem 0.75rem;
        min-width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .cart-contents {
        padding: 0.45rem;
        min-width: 40px;
        height: 40px;
    }
    
    .cart-contents .cart-icon {
        font-size: 1.2rem;
    }
    
    .main-navigation ul.mega-menu > li > .menu-item-wrapper > .menu-item-content > .menu-item-link {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-navigation .sub-menu .menu-item-link {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .mobile-menu-auth {
        padding: 0.875rem;
        gap: 0.65rem;
    }
    
    .mobile-auth-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .mobile-auth-link .auth-icon {
        font-size: 1.1rem;
    }
}

/* ============================================
   Authentication Popup Styles
   ============================================ */

/* Prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
}

/* Popup Overlay */
.auth-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 25, 66, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.auth-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.auth-popup-container {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(35, 25, 66, 0.3);
    width: 100%;
    max-width: 450px;
    margin: auto;
    animation: popupSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Close Button */
.auth-popup-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 1.2rem;
}

.auth-popup-close:hover {
    background: var(--secondary-color);
    transform: rotate(90deg);
}

.close-icon {
    line-height: 1;
}

/* Popup Content */
.auth-popup-content {
    padding: 2.5rem 2rem;
    position: relative;
}

/* Step Header */
.auth-step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-step-header h2 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.auth-step-header p {
    font-size: 0.95rem;
    color: var(--text-description);
    margin: 0;
    line-height: 1.6;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.required {
    color: #e74c3c;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--text-color);
    background: var(--white);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(174, 173, 240, 0.2);
}

.form-input::placeholder {
    color: var(--text-description);
    opacity: 0.6;
}

.form-input.otp-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 600;
    padding: 1rem;
}

.form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    display: none;
    margin-top: 0.25rem;
}

.form-error.show {
    display: block;
}

.form-help {
    display: block;
    font-size: 0.8rem;
    color: var(--text-description);
    margin-top: 0.25rem;
}

/* OTP Resend */
.otp-resend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-description);
    margin-top: -0.5rem;
}

.resend-link {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.resend-link:hover {
    color: var(--text-color);
}

.resend-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.resend-timer {
    color: var(--text-description);
    font-size: 0.85rem;
}

/* Checkbox */
.form-checkbox {
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--secondary-color);
    border-radius: 6px;
    background: var(--white);
    position: relative;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
}

.checkbox-text {
    flex: 1;
}

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    min-height: 50px;
}

.auth-btn-primary {
    background: var(--button-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(174, 173, 240, 0.3);
}

.auth-btn-primary:hover:not(:disabled) {
    background: var(--text-description);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(174, 173, 240, 0.4);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Step Transitions */
.auth-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Persian Date Picker */
.persian-date-picker-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 25, 66, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.persian-date-picker-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.persian-date-picker-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(35, 25, 66, 0.3);
    width: 100%;
    max-width: 400px;
    margin: auto;
    animation: popupSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.persian-date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--secondary-color);
}

.persian-date-picker-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 700;
}

.persian-date-picker-close {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 1.1rem;
}

.persian-date-picker-close:hover {
    background: var(--secondary-color);
    transform: rotate(90deg);
}

.persian-date-picker-body {
    padding: 1.5rem 2rem;
}

.persian-date-picker-year,
.persian-date-picker-month {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.picker-select {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--text-color);
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.picker-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(174, 173, 240, 0.2);
}

.year-prev,
.year-next,
.month-prev,
.month-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--button-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.year-prev:hover,
.year-next:hover,
.month-prev:hover,
.month-next:hover {
    background: var(--text-description);
    transform: scale(1.1);
}

.persian-date-picker-days {
    margin-top: 1.5rem;
}

.days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.days-header span {
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-description);
    padding: 0.5rem;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.picker-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    background: var(--white);
    transition: all 0.3s ease;
}

.picker-day:hover:not(.empty):not(.selected) {
    background: var(--secondary-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.picker-day.selected {
    background: var(--button-color);
    color: var(--white);
    border-color: var(--button-color);
}

.picker-day.empty {
    border: none;
    cursor: default;
    background: transparent;
}

.persian-date-picker-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--secondary-color);
}

.persian-date-picker-cancel,
.persian-date-picker-confirm {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.persian-date-picker-cancel {
    background: var(--light-gray);
    color: var(--text-color);
}

.persian-date-picker-cancel:hover {
    background: var(--secondary-color);
}

.persian-date-picker-confirm {
    background: var(--button-color);
    color: var(--white);
}

.persian-date-picker-confirm:hover {
    background: var(--text-description);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(174, 173, 240, 0.3);
}

body.date-picker-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-popup-container {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }
    
    .auth-popup-content {
        padding: 2rem 1.5rem;
    }
    
    .auth-step-header h2 {
        font-size: 1.5rem;
    }
    
    .form-input {
        padding: 0.75rem 0.875rem;
    }
    
    .persian-date-picker-container {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        margin-top: auto;
    }
    
    .persian-date-picker-header,
    .persian-date-picker-body,
    .persian-date-picker-footer {
        padding: 1.25rem 1.5rem;
    }
}

/* ========================================
   Hero Section Styles
   ======================================== */
.hero-section {
    margin: 2rem 0;
    padding: 0;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

/* Hero Slider */
.hero-slider-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(35, 25, 66, 0.1);
}

.hero-slider {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.hero-slider .swiper-slide {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-slide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-slide-placeholder span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin: 2rem;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(35, 25, 66, 0.15);
}

.hero-slide-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.hero-slide-subtitle {
    font-size: 1.1rem;
    color: var(--text-description);
    margin-bottom: 1.5rem;
}

.hero-slide-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--button-color);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-slide-button:hover {
    background-color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 25, 66, 0.2);
}

/* Swiper Navigation & Pagination */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: var(--white);
    background: rgba(35, 25, 66, 0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: rgba(35, 25, 66, 0.9);
    transform: scale(1.1);
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 20px;
    font-weight: 700;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--white);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--button-color);
    transform: scale(1.2);
}

/* Hero Products Cards */
.hero-products-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(35, 25, 66, 0.1);
    transition: all 0.3s ease;
    flex: 1;
}

.hero-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(35, 25, 66, 0.15);
}

.hero-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hero-product-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--light-gray);
}

.hero-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-product-card:hover .hero-product-image {
    transform: scale(1.05);
}

.hero-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: var(--text-description);
}

.hero-product-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

.hero-product-info {
    padding: 1.25rem;
}

.hero-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-product-sale-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ff4444;
}

.hero-product-regular-price {
    font-size: 1rem;
    color: var(--text-description);
    text-decoration: line-through;
    opacity: 0.7;
}

.hero-product-price-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Placeholder Cards */
.hero-product-placeholder-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--secondary-color);
}

.hero-product-placeholder-content {
    text-align: center;
    padding: 2rem;
}

.hero-product-placeholder-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.hero-product-placeholder-content p {
    color: var(--text-description);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-slider {
        min-height: 300px;
    }
    
    .hero-slide {
        min-height: 300px;
    }
    
    .hero-slide-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .hero-slide-title {
        font-size: 1.5rem;
    }
    
    .hero-slide-subtitle {
        font-size: 1rem;
    }
    
    .hero-product-image-wrapper {
        height: 180px;
    }
    
    .hero-product-info {
        padding: 1rem;
    }
    
    .hero-product-title {
        font-size: 1rem;
    }
    
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .hero-slider .swiper-button-next::after,
    .hero-slider .swiper-button-prev::after {
        font-size: 16px;
    }
}
