/*
Theme Name: Fashion Store
Theme URI: https://example.com/fashion-store
Author: Your Name
Author URI: https://example.com
Description: A modern and elegant WordPress theme for fashion stores with full WooCommerce integration
Version: 2.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: fashion-store
Tags: e-commerce, woocommerce, fashion, two-columns, custom-colors, custom-menu, featured-images
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 CSS Variables
2.0 Reset & Base
3.0 Typography
4.0 Layout
5.0 Header & Navigation - MODERN
6.0 Content & Posts
7.0 Hero Slider - MODERN
8.0 Categories - MODERN
9.0 Products - MODERN
10.0 Features - MODERN
11.0 Footer - MODERN
12.0 Sidebar & Widgets
13.0 Utilities
14.0 Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 CSS Variables
--------------------------------------------------------------*/
:root {
    --color-primary: #1a1a1a;
    --color-secondary: #ffffff;
    --color-accent: #e94560;
    --color-accent-light: #ff6b88;
    --color-text: #2d3436;
    --color-text-light: #636e72;
    --color-border: #f0f0f0;
    --color-bg: #ffffff;
    --color-bg-light: #fafafa;
    --color-success: #00d4aa;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --container-width: 1400px;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/*--------------------------------------------------------------
2.0 Reset & Base
--------------------------------------------------------------*/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*--------------------------------------------------------------
3.0 Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

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: var(--spacing-md);
}

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

    a:hover {
        color: var(--color-accent);
    }

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

/*--------------------------------------------------------------
4.0 Layout
--------------------------------------------------------------*/
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: var(--spacing-xl) 0;
}

body.no-sidebar .content-wrapper,
body.page .content-wrapper,
.front-page .content-wrapper {
    grid-template-columns: 1fr;
}

.content-area {
    min-width: 0;
}

/*--------------------------------------------------------------
5.0 Header & Navigation - MODERN
--------------------------------------------------------------*/

/* Header Top Bar */
.header-top {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d3436 100%);
    color: white;
    padding: 0.75rem 0;
    font-size: 13px;
    text-align: center;
    font-weight: 500;
}

    .header-top::before {
        content: '🎉 ';
    }

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-text {
    font-weight: 500;
}

/* Main Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

    .site-header.scrolled {
        box-shadow: var(--shadow-md);
    }

.header-main {
    padding: 1.5rem 0;
}

.header-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Site Branding */
.site-branding {
    flex: 1;
    text-align: center;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin: 0;
}

    .site-title a {
        background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        transition: transform var(--transition-base);
        display: inline-block;
    }

        .site-title a:hover {
            transform: scale(1.05);
        }

.custom-logo-link img {
    max-height: 50px;
    width: auto;
}

/* Header Icons */
.header-left,
.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-toggle,
.cart-icon,
.icon-btn,
.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
    color: var(--color-text);
}

    .search-toggle:hover,
    .cart-icon:hover,
    .icon-btn:hover,
    .mobile-menu-toggle:hover {
        background: var(--color-accent);
        color: white;
        transform: translateY(-2px);
    }

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Modern */
.main-navigation {
    border-bottom: none;
    background: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    justify-content: center;
    padding: 1rem 0;
}

    .nav-menu > li {
        position: relative;
    }

        .nav-menu > li > a {
            text-decoration: none;
            color: var(--color-text);
            font-weight: 600;
            font-size: 15px;
            position: relative;
            padding: 0.5rem 0;
            transition: color var(--transition-base);
        }

            .nav-menu > li > a::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 0;
                height: 3px;
                background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
                border-radius: 10px;
                transition: width var(--transition-base);
            }

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

                .nav-menu > li > a:hover::after,
                .nav-menu > li.current-menu-item > a::after {
                    width: 100%;
                }

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 9999;
    transition: left 0.3s;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-nav-menu {
    list-style: none;
}

    .mobile-nav-menu li {
        border-bottom: 1px solid var(--color-bg-light);
    }

    .mobile-nav-menu a {
        display: block;
        padding: 12px 0;
        color: var(--color-text);
        font-size: 15px;
    }

        .mobile-nav-menu a:hover {
            color: var(--color-accent);
        }

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

    .search-modal.active {
        display: block;
    }

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.search-modal-content {
    position: relative;
    max-width: 600px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color var(--transition-base);
}

    .search-close:hover {
        color: var(--color-accent);
    }

/*--------------------------------------------------------------
7.0 Hero Slider - MODERN
--------------------------------------------------------------*/
.hero-slider-modern {
    height: 700px;
    position: relative;
    overflow: hidden;
    margin-bottom: 100px;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .hero-slide.active {
        opacity: 1;
        z-index: 1;
    }

.hero-content-modern {
    color: white;
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

.hero-title-modern {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle-modern {
    font-size: 28px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 500;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 40px rgba(233, 69, 96, 0.4);
    transition: all var(--transition-base);
    cursor: pointer;
}

    .btn-modern:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 60px rgba(233, 69, 96, 0.5);
        color: white;
    }

.btn-arrow {
    font-size: 20px;
    transition: transform var(--transition-base);
}

.btn-modern:hover .btn-arrow {
    transform: translateX(5px);
}

/* Slider Controls */
.slider-nav-modern {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none;
    z-index: 10;
}

.slider-btn-modern {
    pointer-events: all;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

    .slider-btn-modern:hover {
        background: rgba(255,255,255,0.4);
        transform: scale(1.1);
    }

.slider-dots-modern {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot-modern {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all var(--transition-base);
}

    .dot-modern.active {
        background: white;
        width: 40px;
        border-radius: var(--radius-full);
    }

/*--------------------------------------------------------------
8.0 Sections Modern
--------------------------------------------------------------*/
.section-modern {
    padding: 100px 0;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-modern {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.section-desc-modern {
    font-size: 18px;
    color: var(--color-text-light);
    font-weight: 500;
}

/*--------------------------------------------------------------
9.0 Categories - MODERN
--------------------------------------------------------------*/
.categories-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card-modern {
    position: relative;
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

    .category-card-modern:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: var(--shadow-xl);
    }

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

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

.category-overlay-modern {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    color: white;
    transition: background var(--transition-base);
}

.category-card-modern:hover .category-overlay-modern {
    background: linear-gradient(180deg, transparent 0%, rgba(233,69,96,0.9) 100%);
}

.category-name-modern {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.category-count-modern {
    opacity: 0.9;
    font-size: 16px;
}

.category-link-absolute {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/*--------------------------------------------------------------
10.0 Products - MODERN
--------------------------------------------------------------*/
.products-section-modern {
    background: var(--color-bg-light);
}

.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.product-card-modern {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

    .product-card-modern:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
    }

.product-img-wrapper-modern {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--color-bg-light);
}

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

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

.badge-modern {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    box-shadow: var(--shadow-sm);
}

.product-info-modern {
    padding: 20px;
}

.product-category-modern {
    font-size: 12px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-name-modern {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

    .product-name-modern a {
        color: var(--color-text);
        text-decoration: none;
        transition: color var(--transition-base);
    }

        .product-name-modern a:hover {
            color: var(--color-accent);
        }

.product-rating-modern {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    align-items: center;
}

.star-modern {
    color: #ffa502;
    font-size: 14px;
}

.star-empty {
    color: #ddd;
}

.rating-count {
    font-size: 13px;
    color: var(--color-text-light);
    margin-left: 4px;
}

.product-price-modern {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

    .product-price-modern del {
        font-size: 16px;
        color: var(--color-text-light);
        margin-left: 8px;
        font-weight: 400;
    }

    .product-price-modern ins {
        text-decoration: none;
    }

/*--------------------------------------------------------------
11.0 Features - MODERN
--------------------------------------------------------------*/
.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card-modern {
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-border);
    transition: all var(--transition-base);
}

    .feature-card-modern:hover {
        transform: translateY(-8px);
        border-color: var(--color-accent);
        box-shadow: var(--shadow-lg);
    }

.feature-icon-modern {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    transition: transform var(--transition-base);
}

.feature-card-modern:hover .feature-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.feature-title-modern {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.feature-text-modern {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/*--------------------------------------------------------------
12.0 Footer - MODERN
--------------------------------------------------------------*/
.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3436 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 32px;
    margin-top: 100px;
}

.footer-widgets {
    padding: 0 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.footer-widget h3,
.footer-widget .widget-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 16px;
}

    .footer-widget h3::after,
    .footer-widget .widget-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
        border-radius: 10px;
    }

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

    .footer-widget ul li {
        margin-bottom: 12px;
        border-bottom: none;
        padding: 0;
    }

        .footer-widget ul li a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: all var(--transition-base);
            display: inline-block;
        }

            .footer-widget ul li a:hover {
                color: white;
                padding-left: 8px;
            }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    background: transparent;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/*--------------------------------------------------------------
13.0 Utilities
--------------------------------------------------------------*/
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

    .btn-primary:hover {
        background: #ff5252;
        border-color: #ff5252;
        color: white;
    }

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

    .btn-outline:hover {
        background: var(--color-primary);
        color: white;
    }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.4);
}

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

    .back-to-top:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 32px rgba(233, 69, 96, 0.5);
    }

/* Screen Reader */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link:focus {
    clip: auto !important;
    height: auto;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/*--------------------------------------------------------------
14.0 Animations
--------------------------------------------------------------*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/*--------------------------------------------------------------
15.0 Responsive Design
--------------------------------------------------------------*/
@media (max-width: 1200px) {
    .hero-title-modern {
        font-size: 56px;
    }

    .section-title-modern {
        font-size: 42px;
    }
}

@media (max-width: 1024px) {
    .categories-grid-modern,
    .products-grid-modern,
    .features-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Hide desktop menu */
    .nav-menu {
        display: none;
    }

    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    .site-title {
        font-size: 24px;
    }

        .site-title a {
            font-size: 24px;
        }

    /* Hero */
    .hero-slider-modern {
        height: 500px;
        margin-bottom: 60px;
    }

    .hero-title-modern {
        font-size: 42px;
    }

    .hero-subtitle-modern {
        font-size: 20px;
    }

    .btn-modern {
        padding: 14px 32px;
        font-size: 14px;
    }

    /* Sections */
    .section-modern {
        padding: 60px 0;
    }

    .section-title-modern {
        font-size: 36px;
    }

    .section-header-modern {
        margin-bottom: 40px;
    }

    /* Grids */
    .categories-grid-modern,
    .products-grid-modern,
    .features-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-card-modern {
        height: 300px;
    }

    .category-name-modern {
        font-size: 22px;
    }

    /* Footer */
    .footer-widgets {
        padding: 60px 0 30px;
    }

    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Slider Controls */
    .slider-btn-modern {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .slider-nav-modern {
        padding: 0 20px;
    }

    /* Content Wrapper */
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .site-title {
        font-size: 20px;
    }

    .header-icons {
        gap: 0.5rem;
    }

    .icon-btn,
    .search-toggle,
    .cart-icon {
        width: 40px;
        height: 40px;
    }

    .header-main {
        padding: 1rem 0;
    }

    /* Hero */
    .hero-slider-modern {
        height: 400px;
        margin-bottom: 50px;
    }

    .hero-title-modern {
        font-size: 32px;
    }

    .hero-subtitle-modern {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .btn-modern {
        padding: 14px 32px;
        font-size: 14px;
    }

    /* Sections */
    .section-modern {
        padding: 50px 0;
    }

    .section-title-modern {
        font-size: 28px;
    }

    .section-desc-modern {
        font-size: 16px;
    }

    /* All grids single column */
    .categories-grid-modern,
    .products-grid-modern,
    .features-grid-modern {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-card-modern {
        height: 250px;
    }

    .category-name-modern {
        font-size: 20px;
    }

    .feature-card-modern {
        padding: 32px 20px;
    }

    .feature-icon-modern {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    /* Slider Controls */
    .slider-nav-modern {
        padding: 0 10px;
    }

    .slider-btn-modern {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .slider-dots-modern {
        bottom: 20px;
    }

    .dot-modern {
        width: 10px;
        height: 10px;
    }

        .dot-modern.active {
            width: 30px;
        }

    /* Search Modal */
    .search-modal-content {
        margin: 50px 20px;
        padding: 30px;
    }
}

/*--------------------------------------------------------------
16.0 Search Form
--------------------------------------------------------------*/
.search-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

    .search-form label {
        flex: 1;
        margin: 0;
    }

    .search-form input[type="search"] {
        width: 100%;
        padding: 15px 20px;
        border: 2px solid var(--color-border);
        border-radius: var(--radius-md);
        font-size: 16px;
        font-family: var(--font-primary);
        transition: border-color var(--transition-base);
    }

        .search-form input[type="search"]:focus {
            outline: none;
            border-color: var(--color-accent);
        }

.search-submit {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .search-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(233, 69, 96, 0.3);
    }

/*--------------------------------------------------------------
17.0 Sidebar & Widgets
--------------------------------------------------------------*/
.widget-area {
    font-size: 15px;
}

.widget {
    margin-bottom: 40px;
    padding: 25px;
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.widget ul {
    list-style: none;
}

    .widget ul li {
        padding: 8px 0;
        border-bottom: 1px solid var(--color-border);
    }

        .widget ul li:last-child {
            border-bottom: none;
        }

        .widget ul li a {
            transition: color var(--transition-base);
        }

            .widget ul li a:hover {
                color: var(--color-accent);
            }

/*--------------------------------------------------------------
18.0 Posts & Content
--------------------------------------------------------------*/
article {
    margin-bottom: 40px;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 32px;
    margin-bottom: 15px;
}

    .entry-title a {
        color: var(--color-primary);
        transition: color var(--transition-base);
    }

        .entry-title a:hover {
            color: var(--color-accent);
        }

.entry-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--color-text-light);
    flex-wrap: wrap;
}

.post-thumbnail {
    margin-bottom: 25px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

    .post-thumbnail img {
        transition: transform var(--transition-slow);
    }

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

.entry-content {
    line-height: 1.8;
}

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

.read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

    .read-more:hover {
        background: var(--color-accent);
        color: white;
        transform: translateY(-2px);
    }

/*--------------------------------------------------------------
19.0 Pagination
--------------------------------------------------------------*/
.pagination,
.posts-pagination {
    margin: 50px 0;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-block;
    padding: 10px 15px;
    background: var(--color-bg-light);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

    .page-numbers:hover,
    .page-numbers.current {
        background: var(--color-primary);
        color: white;
        border-color: var(--color-primary);
    }

    .page-numbers.dots {
        background: transparent;
        border: none;
    }

/*--------------------------------------------------------------
20.0 Accessibility
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --color-primary: #000000;
        --color-accent: #ff0000;
        --color-border: #000000;
    }
}

/*--------------------------------------------------------------
21.0 Print Styles
--------------------------------------------------------------*/
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .search-modal,
    .mobile-menu,
    .back-to-top,
    .slider-nav-modern,
    .slider-dots-modern {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }
}
/**
 * استایل Top Bar برای فرانت‌اند
 * این کدها را به فایل style.css قالب خود اضافه کنید
 */

/* ========================================
   Top Bar Styles
   ======================================== */

.header-top {
    position: relative;
    z-index: 1000;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-top-text {
    display: inline-block;
}

.header-top-link {
    display: inline-block;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

    .header-top-link:hover {
        opacity: 0.8;
        text-decoration: none;
    }

/* Animation - Slide Down */
@keyframes slideDownTopBar {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-top {
    animation: slideDownTopBar 0.5s ease;
}

/* ========================================
   RTL Support
   ======================================== */

[dir="rtl"] .header-top {
    direction: rtl;
}

[dir="rtl"] .header-top-content {
    flex-direction: row-reverse;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .header-top {
        font-size: 13px;
        padding: 10px 15px;
    }

    .header-top-content {
        gap: 8px;
    }

    .header-top-text {
        font-size: 12px;
    }

    .header-top-link {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header-top {
        font-size: 12px;
        padding: 8px 12px;
    }

    .header-top-content {
        flex-direction: column;
        gap: 5px;
    }
}

/* ========================================
   Optional: Close Button
   (اگر بخواهید دکمه بستن اضافه کنید)
   ======================================== */

.header-top-close {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

    .header-top-close:hover {
        opacity: 1;
    }

[dir="rtl"] .header-top-close {
    left: auto;
    right: 15px;
}

@media (max-width: 768px) {
    .header-top-close {
        font-size: 18px;
        left: 10px;
    }

    [dir="rtl"] .header-top-close {
        right: 10px;
    }
}

/* ========================================
   Dark/Light Mode Support
   ======================================== */

/* اگر قالب شما از Dark Mode پشتیبانی می‌کند */
@media (prefers-color-scheme: dark) {
    .header-top {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* ========================================
   Print Styles (مخفی کردن در چاپ)
   ======================================== */

@media print {
    .header-top {
        display: none;
    }
}

/* ========================================
   Accessibility
   ======================================== */

.header-top a:focus,
.header-top-close:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .header-top {
        border-bottom: 2px solid currentColor;
    }

    .header-top-link {
        text-decoration: underline !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .header-top {
        animation: none;
    }

    .header-top,
    .header-top-link,
    .header-top-close {
        transition: none;
    }
}

/* ========================================
   Additional Effects (اختیاری)
   ======================================== */

/* Gradient Background Effect */
.header-top.gradient-effect {
    background: linear-gradient(90deg, var(--topbar-bg-start, #1a1a1a) 0%, var(--topbar-bg-end, #2a2a2a) 100%);
}

/* Pulse Animation for Important Messages */
@keyframes pulseTopBar {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.9;
    }
}

.header-top.pulse-effect {
    animation: pulseTopBar 2s ease-in-out infinite;
}

/* Marquee Effect for Long Text (اختیاری) */
.header-top.marquee-effect .header-top-text {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .header-top.marquee-effect .header-top-text {
        animation-duration: 15s;
    }
}

/* ========================================
   Sticky Top Bar (چسبنده)
   ======================================== */

.header-top.sticky-topbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Color Variations (الگوهای رنگی آماده)
   ======================================== */

/* Success Theme (سبز) */
.header-top.theme-success {
    background-color: #00a32a;
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Warning Theme (نارنجی) */
.header-top.theme-warning {
    background-color: #f97316;
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Info Theme (آبی) */
.header-top.theme-info {
    background-color: #2271b1;
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Danger Theme (قرمز) */
.header-top.theme-danger {
    background-color: #d63638;
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Premium Theme (بنفش) */
.header-top.theme-premium {
    background-color: #7c3aed;
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Light Theme (روشن) */
.header-top.theme-light {
    background-color: #f8f9fa;
    color: #1a1a1a;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

/* برای RTL */
.rtl .mobile-menu {
    right: auto;
    left: -100%;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* زمانی که منو فعال است */
.mobile-menu.active {
    right: 0;
}

.rtl .mobile-menu.active {
    left: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f8f8;
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mobile-menu-close {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

    .mobile-menu-close:hover {
        color: #000;
    }

/* Mobile Menu Content */
.mobile-menu-content {
    padding: 20px 0;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .mobile-nav-menu li {
        border-bottom: 1px solid #eee;
    }

    .mobile-nav-menu a {
        display: block;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        font-size: 16px;
        transition: all 0.3s;
    }

        .mobile-nav-menu a:hover,
        .mobile-nav-menu .current-menu-item > a {
            background: #f5f5f5;
            color: #000;
            padding-right: 30px;
        }

.rtl .mobile-nav-menu a:hover,
.rtl .mobile-nav-menu .current-menu-item > a {
    padding-right: 20px;
    padding-left: 30px;
}

/* Overlay برای بستن منو */
body.mobile-menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* مخفی کردن در دسکتاپ */
@media (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-menu {
        display: none;
    }
}
/*--------------------------------------------------------------
اصلاح جهت منو از راست به چپ - اضافه شده در انتها
--------------------------------------------------------------*/

/* تغییر جهت منوی اصلی - با قدرت بیشتر */
.main-navigation .nav-menu,
.nav-menu,
#primary-menu,
ul.nav-menu,
.main-navigation ul.nav-menu {
    display: flex !important;
    flex-direction: row-reverse !important;
    list-style: none !important;
    gap: 2.5rem !important;
    justify-content: center !important;
    padding: 1rem 0 !important;
    margin: 0 !important;
}

    /* اطمینان از نمایش صحیح آیتم‌های منو */
    .main-navigation .nav-menu > li,
    .nav-menu > li,
    #primary-menu > li {
        position: relative !important;
        display: inline-block !important;
        order: 0 !important;
    }

        .main-navigation .nav-menu > li > a,
        .nav-menu > li > a,
        #primary-menu > li > a {
            text-decoration: none !important;
            color: var(--color-text) !important;
            font-weight: 600 !important;
            font-size: 15px !important;
            position: relative !important;
            padding: 0.5rem 0 !important;
            transition: color var(--transition-base) !important;
            display: block !important;
        }

            /* خط زیر منو */
            .main-navigation .nav-menu > li > a::after,
            .nav-menu > li > a::after,
            #primary-menu > li > a::after {
                content: '' !important;
                position: absolute !important;
                bottom: 0 !important;
                right: 0 !important;
                left: auto !important;
                width: 0 !important;
                height: 3px !important;
                background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light)) !important;
                border-radius: 10px !important;
                transition: width var(--transition-base) !important;
            }

            .main-navigation .nav-menu > li > a:hover::after,
            .main-navigation .nav-menu > li.current-menu-item > a::after,
            .nav-menu > li > a:hover::after,
            .nav-menu > li.current-menu-item > a::after,
            #primary-menu > li > a:hover::after,
            #primary-menu > li.current-menu-item > a::after {
                width: 100% !important;
            }

            .main-navigation .nav-menu > li > a:hover,
            .nav-menu > li > a:hover,
            #primary-menu > li > a:hover {
                color: var(--color-accent) !important;
            }

/* برای RTL */
body.rtl .main-navigation .nav-menu,
body.rtl .nav-menu,
body.rtl #primary-menu,
html[dir="rtl"] .main-navigation .nav-menu,
html[dir="rtl"] .nav-menu,
html[dir="rtl"] #primary-menu {
    flex-direction: row-reverse !important;
}

/* برای موبایل */
@media (max-width: 768px) {
    .main-navigation {
        display: none !important;
    }

    .nav-menu {
        display: none !important;
    }
}
/*--------------------------------------------------------------
END OF STYLESHEET
--------------------------------------------------------------*/
