/*
Theme Name: Shopshop - Modern Glass UI
Description: A modern WooCommerce theme with glass morphism design inspired by One UI 7
Version: 1.0.0
Author: Your Name
Text Domain: shopshop
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Import Shabnam Font */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/shabnam-font@v5.0.1/dist/font-face.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Shabnam', 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Shabnam Font Class */
.shabnam-font {
    font-family: 'Shabnam', 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Vazir Font Class (Fallback) */
.vazir-font {
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root {
    /* Color Palette - One UI 7 Inspired */
    --primary-color: #007AFF;
    --primary-dark: #0056CC;
    --secondary-color: #5856D6;
    --accent-color: #FF9500;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --error-color: #FF3B30;
    
    /* Glass Morphism Colors */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-backdrop: blur(20px);
    
    /* Dark Mode Colors */
    --dark-bg: #1C1C1E;
    --dark-surface: #2C2C2E;
    --dark-text: #FFFFFF;
    --dark-text-secondary: #8E8E93;
    
    /* Light Mode Colors */
    --light-bg: #F2F2F7;
    --light-surface: #FFFFFF;
    --light-text: #1C1C1E;
    --light-text-secondary: #8E8E93;
    
    /* Typography */
    --font-primary: 'Shabnam', 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: var(--dark-bg);
        --surface-color: var(--dark-surface);
        --text-color: var(--dark-text);
        --text-secondary: var(--dark-text-secondary);
    }
}

/* Light Mode */
@media (prefers-color-scheme: light) {
    :root {
        --bg-color: var(--light-bg);
        --surface-color: var(--light-surface);
        --text-color: var(--light-text);
        --text-secondary: var(--light-text-secondary);
    }
}

/* Base Styles */
body {
    font-family: 'Shabnam', var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background: #00209d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glass Morphism Utility Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}


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

/* Header Styles - Glass Morphism */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    float: right;
    width: 100%;
}

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--font-size-xl);
    transition: all 0.3s ease;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.logo-text {
    font-weight: 700;
    font-size: var(--font-size-xl);
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Search Toggle Button */
.search-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    cursor: pointer;
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    width: 90%;
    max-width: 600px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.search-overlay.active .search-content {
    transform: translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.search-header h3 {
    color: white;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0;
}

.search-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.search-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: var(--spacing-lg) var(--spacing-xl);
    padding-right: 4rem;
    width: 100%;
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: var(--font-size-lg);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.2);
}

.search-submit {
    position: absolute;
    right: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.action-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.action-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-text {
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error-color);
    color: white;
    border-radius: var(--radius-full);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 700;
    animation: pulse 2s infinite;
}

/* Main Navigation - Center */
.main-navigation {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--font-size-base);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* Header Right - Logo and Mobile Menu */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-lg);
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: var(--font-size-xl);
    transition: all 0.3s ease;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-logo:hover {
    color: white;
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.site-logo:hover .logo-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(5deg);
}

.logo-text {
    font-weight: 700;
}

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

}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.menu-text {
    font-size: var(--font-size-xs);
    color: white;
    font-weight: 500;
}

/* Main Content */
.site-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}


.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
}

.hero-cta {
    display: inline-flex;
    gap: var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-base);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Brands Container */
.brands-container {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brands-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.brands-swiper {
    padding: var(--spacing-md) 0;
    overflow: visible;
}

.brands-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.brands-swiper .swiper-slide > div {
    width: 100%;
    height: 100%;
}

.brand-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: inherit;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.brand-card:hover .brand-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.brand-emoji {
    font-size: 2rem;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.brand-card:hover .brand-emoji {
    filter: grayscale(0);
    transform: scale(1.1);
}

.brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.brand-card:hover .brand-image {
    filter: grayscale(0);
    transform: scale(1.1);
}

.brand-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
    margin-bottom: 0;
}

.brand-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
}

.brand-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
}

.brand-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Swiper Navigation */
.brands-next,
.brands-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brands-next:hover,
.brands-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.brands-next {
    right: -25px;
}

.brands-prev {
    left: -25px;
}

.brands-next::after,
.brands-prev::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
}

.brands-next::after {
    border-left: 8px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 2px;
}

.brands-prev::after {
    border-right: 8px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-right: 2px;
}

/* Products Navigation */
.products-next,
.products-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-next:hover,
.products-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.products-next {
    right: -25px;
}

.products-prev {
    left: -25px;
}

.products-next::after,
.products-prev::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
}

.products-next::after {
    border-left: 8px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 2px;
}

.products-prev::after {
    border-right: 8px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-right: 2px;
}

/* Products Swiper */
.products-swiper {
    padding: var(--spacing-2xl) 0;
    overflow: visible;
}

.products-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.products-swiper .product-card {
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    float: none;
    margin: 0;
}

/* Product Grid (for other pages) */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--spacing-xl) !important;
    padding: var(--spacing-2xl) 0 !important;
}

/* Force product cards to fit in grid */
.products-grid .product-card {
    display: block;
    width: 24%;
    margin: 0.5%;
    float: right;
}

/* Responsive grid for products */
@media (max-width: 1200px) {
    .products-grid .product-card {
        width: 32%;
    }
}

@media (max-width: 768px) {
    .products-grid .product-card {
        width: 48%;
    }
}

@media (max-width: 480px) {
    .products-grid .product-card {
        width: 100%;
        float: none;
    }
}

/* Shop Page Specific Styles */
.shop-content {
    display: block;
    width: 100%;
    margin-top: var(--spacing-2xl);
}

.shop-sidebar {
    background: var(--glass-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    height: fit-content;
    position: sticky;
    top: var(--spacing-xl);
}

.shop-main {
    float: right;
    width: 100%;
    min-height: 500px;
}

.shop-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.shop-header .page-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.filter-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all 0.3s ease;
}

.filter-toggle:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.shop-sorting select {
    background: var(--glass-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.sidebar-content h3 {
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

.widget {
    margin-bottom: var(--spacing-xl);
}

.widget h4 {
    color: var(--text-primary);
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.price-range input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.price-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.category-filter ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter li {
    margin-bottom: var(--spacing-xs);
}

.category-filter a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.category-filter a:hover {
    color: var(--primary-color);
}

.category-filter .count {
    background: var(--primary-color);
    color: white;
    font-size: var(--font-size-xs);
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: auto;
}

.product-card {
    position: relative;
    display: block;
    width: 24%;
    margin: 0.5%;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    list-style: none;
    float: right;
}

.product-card .product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    padding: var(--spacing-lg);
}

.product-card .product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.product-card .product-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.4;
}

.product-card .product-price {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: var(--spacing-lg);
}

.product-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.product-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.stars {
    color: var(--accent-color);
}

.rating-count {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}


/* About Section */
.about-section {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
}

.about-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-3xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
    /* 4 columns for desktop */
}

.feature-item {
    text-align: center;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    display: block;
}

.feature-item h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-md);
}

.feature-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* Footer */
.site-footer {
    float: right;
    width: 100%;
    background:#062f5d;
    color: var(--dark-text);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.footer-logo {
    margin-bottom: var(--spacing-lg);
}

.footer-logo-img {
    max-height: 60px;
    width: auto;
    border-radius: var(--radius-md);
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover svg {
    color: white;
    transform: scale(1.1);
}

/* Specific social media colors */
.social-link[aria-label*="اینستاگرام"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
}

.social-link[aria-label*="تلگرام"]:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.social-link[aria-label*="واتساپ"]:hover {
    background: #25d366;
    border-color: #25d366;
}

.social-link[aria-label*="فیس‌بوک"]:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link[aria-label*="توییتر"]:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-link[aria-label*="یوتیوب"]:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.social-link[aria-label*="لینکدین"]:hover {
    background: #0077b5;
    border-color: #0077b5;
}

/* Animation for social links */
@keyframes socialPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
}

.social-link:active {
    animation: socialPulse 0.6s;
}

/* Responsive social links */
@media (max-width: 768px) {
    .social-links {
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: var(--dark-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--dark-surface);
    color: var(--dark-text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .feature-item {
        padding: var(--spacing-md);
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-md);
    }
    
    .feature-item h3 {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-sm);
    }
    
    .feature-item p {
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .feature-item {
        padding: var(--spacing-sm);
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .feature-item h3 {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xs);
    }
    
    .feature-item p {
        font-size: var(--font-size-xs);
    }
    
    .header-content {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .site-branding {
        order: 2;
        justify-self: center;
    }
    
    .main-navigation {
        order: 1;
        display: none;
    }
    
    .header-actions {
        order: 3;
        justify-self: start;
        display: flex;
        gap: var(--spacing-sm);
    }
    
    .search-toggle,
    .cart-link {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--radius-md);
        padding: var(--spacing-sm) var(--spacing-md);
        color: white;
        font-size: var(--font-size-sm);
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
    }
    
    .search-toggle:hover,
    .cart-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        color: white;
    }
    
    .action-text {
        font-size: var(--font-size-xs);
        font-weight: 500;
    }
   

    
    .menu-text {
        font-size: var(--font-size-xs);
        font-weight: 500;
    }
    
    .search-content {
        width: 95%;
        padding: var(--spacing-lg);
    }
    
    .search-input {
        font-size: var(--font-size-base);
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .action-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
    
    .action-text {
        display: none;
    }
   
    
    .site-logo {
        font-size: var(--font-size-lg);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .brands-container {
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-md);
    }
    
    .brands-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-lg);
    }
    
    .brands-next,
    .brands-prev {
        display: none;
    }
    
    .products-next,
    .products-prev {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .feature-item {
        padding: var(--spacing-md);
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-md);
    }
    
    .feature-item h3 {
        font-size: var(--font-size-lg);
    }
    
    .brand-card {
        padding: var(--spacing-lg);
    }
    
    .brand-icon {
        width: 60px;
        height: 60px;
    }
    
    .brand-emoji {
        font-size: 1.5rem;
    }
    
    .brand-name {
        font-size: var(--font-size-lg);
    }
    
    /* Products grid responsive handled above */
    
    .shop-content {
        display: block;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: var(--spacing-sm) 0;
    }
    
    .search-input {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .site-logo {
        font-size: var(--font-size-base);
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
   
    
    .hamburger span {
        width: 18px;
        height: 2px;
    }
    
    .menu-text {
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    /* Products grid responsive handled above */
    
    .shop-content {
        display: block;
        width: 100%;
    }
    
    .shop-toolbar {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .feature-item {
        padding: var(--spacing-sm);
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .feature-item h3 {
        font-size: var(--font-size-base);
    }
    
    .feature-item p {
        font-size: var(--font-size-sm);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


.products-grid .product-card {
    display: block;
    width: 24%;
    margin: 0.5%;
    float: right;
}


/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}


/* Focus Styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background: var(--primary-color);
    color: white;
}

ul.products,.products-wrapper {
    float: right;
    width: 100%;
}

/* Loading states */
.single_add_to_cart_button.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.single_add_to_cart_button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--glass-backdrop);
    box-shadow: var(--shadow-lg);
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    margin-right: var(--spacing-sm);
}

.notification-close:hover {
    color: var(--text-primary);
}