/* ========================================
   Mandani Shop - Professional Camera Store
   Dark Theme Design System
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #16161f;
    --bg-hover: #1e1e2a;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    
    --accent-primary: #ff6b35;
    --accent-secondary: #ff8c5a;
    --accent-gradient: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    
    --success: #00c853;
    --warning: #ffab00;
    --error: #ff5252;
    
    --border-color: #2a2a3a;
    --border-light: #3a3a4a;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
    
    /* Spacing */
    --container-width: 1400px;
    --section-padding: 80px;
    --card-radius: 16px;
    --btn-radius: 12px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 15px;
    direction: rtl;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Top Banner
   ======================================== */
.top-banner {
    background: var(--accent-gradient);
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.banner-content .separator {
    opacity: 0.5;
}

/* ========================================
   Header
   ======================================== */
.main-header {
    background: var(--bg-secondary);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-sub {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 14px 50px 14px 20px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-base);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform var(--transition-fast);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--btn-radius);
    color: var(--text-secondary);
    font-size: 13px;
    position: relative;
    transition: all var(--transition-base);
}

.action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.action-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn {
    background: var(--accent-gradient);
    color: white;
}

.cart-btn:hover {
    opacity: 0.9;
    color: white;
}

.cart-total {
    font-weight: 600;
}

.user-btn span {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ========================================
   Navigation
   ======================================== */
.main-nav {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-base);
}

.nav-item > a svg {
    width: 18px;
    height: 18px;
}

.nav-item:hover > a,
.nav-item.active > a {
    color: var(--accent-primary);
}

.nav-item.special > a {
    color: var(--accent-primary);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.dropdown-menu ul li a:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
    padding-right: 24px;
}

/* Mega Menu */
.mega-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 24px;
    min-width: 800px;
}

.mega-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.mega-column ul li a {
    padding: 8px 0;
}

.mega-featured {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
}

.mega-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.featured-content span {
    font-size: 11px;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-weight: 600;
}

.featured-content h5 {
    font-size: 16px;
    margin: 4px 0 8px;
}

.featured-content a {
    font-size: 13px;
    color: var(--accent-primary);
}

/* ========================================
   Hero Slider
   ======================================== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(10, 10, 15, 0.3), rgba(10, 10, 15, 0.9));
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 600px;
}

.slide-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.slide-price {
    margin-bottom: 32px;
}

.slide-price .price {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-primary);
}

.slide-price .old-price {
    font-size: 20px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 12px;
}

.slide-price .currency {
    font-size: 18px;
    color: var(--text-secondary);
    margin-right: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--btn-radius);
    transition: all var(--transition-base);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
}

.slider-btn:hover {
    background: var(--accent-primary);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot.active {
    background: var(--accent-primary);
    width: 32px;
    border-radius: 6px;
}

/* ========================================
   Features Bar
   ======================================== */
.features-bar {
    background: var(--bg-secondary);
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.section-header p {
    width: 100%;
    color: var(--text-muted);
    margin-top: -24px;
}

.section-tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-base);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--accent-gradient);
    color: white;
}

.view-all {
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-base);
}

.view-all:hover {
    color: var(--accent-secondary);
}

/* ========================================
   Categories Section
   ======================================== */
.categories-section {
    padding: var(--section-padding) 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all var(--transition-base);
}

.category-card:hover {
    transform: translateY(-8px);
}

.category-image {
    position: absolute;
    inset: 0;
}

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

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

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    text-align: center;
}

.category-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-info span {
    font-size: 12px;
    color: var(--accent-primary);
}

/* ========================================
   Products Section
   ======================================== */
.products-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

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

/* Product Card */
.product-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

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

.product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.product-badges span {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
}

.badge-new {
    background: var(--success);
    color: white;
}

.badge-sale {
    background: var(--error);
    color: white;
}

.badge-hot {
    background: var(--warning);
    color: #1a1a2e;
}

.product-wishlist {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.product-wishlist button {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.product-wishlist button:hover,
.product-wishlist button.active {
    color: var(--error);
    background: white;
}

.product-wishlist svg {
    width: 18px;
    height: 18px;
}

.product-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-tertiary);
}

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

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

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    margin: 8px 0;
}

.product-title a {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.product-rating .stars {
    color: var(--warning);
    font-size: 14px;
}

.product-rating span {
    font-size: 12px;
    color: var(--text-muted);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.old-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

.product-price .currency {
    font-size: 12px;
    color: var(--text-secondary);
}

.add-to-cart {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--btn-radius);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-base);
}

.add-to-cart svg {
    width: 18px;
    height: 18px;
}

.add-to-cart:hover {
    background: var(--accent-gradient);
}

/* Compact Product Card */
.product-card.compact {
    min-width: 240px;
}

.product-card.compact .product-image {
    aspect-ratio: 4/3;
}

.product-card.compact .product-info {
    padding: 16px;
}

.product-card.compact .product-title a {
    font-size: 14px;
}

.products-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.products-slider::-webkit-scrollbar {
    height: 6px;
}

.products-slider::-webkit-scrollbar-track {
    background: transparent;
}

.products-slider::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* ========================================
   Promo Section
   ======================================== */
.promo-section {
    padding: var(--section-padding) 0;
}

.promo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 450px;
}

.promo-banner {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
}

.promo-banner.large {
    grid-row: span 2;
}

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

.promo-banner:hover img {
    transform: scale(1.05);
}

.promo-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.promo-content span {
    font-size: 12px;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-weight: 600;
}

.promo-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 8px 0;
}

.promo-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

.promo-banner:not(.large) .promo-content {
    padding: 20px;
}

.promo-banner:not(.large) .promo-content h3 {
    font-size: 18px;
}

/* ========================================
   Brand Section
   ======================================== */
.brands-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.brand-item {
    height: 40px;
    opacity: 0.5;
    filter: grayscale(100%) brightness(2);
    transition: all var(--transition-base);
}

.brand-item:hover {
    opacity: 1;
    filter: none;
}

.brand-item img {
    height: 100%;
    width: auto;
}

/* ========================================
   Newsletter Section
   ======================================== */
.newsletter-section {
    padding: 60px 0;
    background: var(--accent-gradient);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.newsletter-text p {
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    padding: 16px 32px;
    background: var(--bg-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-base);
}

.newsletter-form button:hover {
    background: var(--bg-secondary);
}

/* ========================================
   Footer
   ======================================== */
.main-footer {
    background: var(--bg-secondary);
    padding: 60px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: white;
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition-base);
}

.footer-links ul li a:hover {
    color: var(--accent-primary);
    padding-right: 4px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-info svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.trust-badges {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.trust-badge {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 8px;
    padding: 8px;
    object-fit: contain;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-methods img {
    height: 32px;
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .mega-menu {
        min-width: 600px;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mega-featured {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .promo-grid {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }
    
    .promo-banner.large {
        grid-row: auto;
        grid-column: span 2;
        height: 300px;
    }
    
    .promo-banner:not(.large) {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        flex: 100%;
        margin-top: 16px;
    }
    
    .user-btn span {
        display: none;
    }
    
    .cart-total {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 48px;
    }
    
    .banner-content {
        font-size: 11px;
        gap: 8px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-actions .action-btn:not(.cart-btn) {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
    
    .hero-slider {
        height: 450px;
    }
    
    .slide-content {
        right: 5%;
        left: 5%;
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .slide-price .price {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .promo-banner.large {
        grid-column: auto;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    .promo-banner {
        height: 200px !important;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 26px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    .products-grid {
        gap: 12px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .current-price {
        font-size: 16px;
    }
}

/* New Arrivals Section */
.new-arrivals {
    background: var(--bg-primary);
}
