/**
 * Süzeller Oto Çıkma Parça - Ana Stil Dosyası
 * Modern, Mobil Uyumlu Tasarım
 */

/* CSS Variables */
:root {
    --primary-color: #1a237e;
    --primary-dark: #0d1642;
    --primary-light: #534bae;
    --secondary-color: #ff6f00;
    --secondary-dark: #c43e00;
    --accent-color: #00c853;
    --danger-color: #d32f2f;
    --warning-color: #f9a825;
    --info-color: #0288d1;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-dark: #212121;
    
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #9e9e9e;
    --text-white: #ffffff;
    
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --header-height: 70px;
    --sidebar-width: 260px;
}

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

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    min-height: 100vh;
}

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

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

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

ul, ol {
    list-style: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-narrow {
    max-width: 1000px;
}

/* Full Width Sections */
.section-full {
    width: 100%;
    padding: 60px 0;
}

.section-white {
    background: var(--bg-primary);
}

.section-gray {
    background: var(--bg-secondary);
}

/* Header */
.header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

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

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition-fast);
    background: white;
    border: 2px solid var(--border-color);
}

.icon-btn:hover {
    background: var(--bg-secondary);
}

.icon-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-primary);
}

.btn-favorite-detail {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-favorite-detail:hover {
    background: #e0e0e0;
}

.btn-favorite-detail svg {
    display: block;
}

.btn-share-detail {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-share-detail:hover {
    background: #e0e0e0;
}

.btn-share-detail svg {
    display: block;
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--secondary-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ========================================
   MOBILE FIXES - Temel Düzeltmeler
   ======================================== */

@media (max-width: 1024px) {
    /* Footer Logo */
    .footer-logo img {
        height: 35px;
    }

    /* Container */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* Header */
    .header {
        height: 60px;
    }

    .header-content {
        padding: 0 15px;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-bar {
        display: block;
        padding: 10px 15px;
        background: white;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 20px;
        background: var(--bg-secondary);
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
    }
    
    .mobile-menu-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    /* Mobile Nav */
    .mobile-nav {
        display: none;
        background: white;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    /* Hero Section - FORCE FULL WIDTH */
    .hero {
        padding: 40px 15px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .hero .container {
        padding: 0 !important;
        width: 100% !important;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    .hero p {
        font-size: 0.9375rem !important;
    }
    
    .hero .btn-lg {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Search Filters - FORCE FULL WIDTH */
    .search-filters {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 15px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .search-filters .filter-group {
        width: 100% !important;
    }
    
    .search-filters select,
    .search-filters button {
        width: 100% !important;
        padding: 14px 12px !important;
        font-size: 1rem !important;
        box-sizing: border-box !important;
    }
    
    /* Products Grid */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Desktop Nav Hidden */
    .nav {
        display: none;
    }
}

/* ========================================
   MOBILE MENU - HEADER ALTINDAN AÇILAN
   ======================================== */

/* Mobile Menu Toggle Bar */
.mobile-menu-bar {
    display: none;
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 15px;
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
}

.mobile-menu-toggle:hover {
    background: var(--border-color);
}

.mobile-menu-toggle .menu-arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active .menu-arrow {
    transform: rotate(180deg);
}

/* Mobile Navigation - Yukarıdan aşağıya kayan */
.mobile-nav {
    display: none;
    background: white;
    border-bottom: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-nav.active {
    display: block;
    max-height: 400px;
    padding: 15px;
}

/* Mobile Menu Arrow Icon */
.mobile-menu-toggle svg {
    display: inline-block;
    vertical-align: middle;
}

.mobile-menu-toggle.active svg {
    transform: rotate(180deg);
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
}

.mobile-nav-menu li a svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.mobile-nav-menu li a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.mobile-nav-menu li a:hover svg {
    color: var(--primary-color);
}

/* Show on mobile */
@media (max-width: 768px) {
    /* Footer Logo */
    .footer-logo img {
        height: 30px;
    }

    /* Mobile Menu Bar */
    .mobile-menu-bar {
        display: block;
        padding: 10px 15px;
    }
    
    /* Hide desktop nav */
    .nav {
        display: none;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Header adjustments */
    .header {
        height: 60px;
    }
    
    .header-content {
        padding: 0 15px;
        gap: 10px;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo svg {
        width: 32px;
        height: 32px;
    }
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    /* Footer Logo */
    .footer-logo img {
        height: 30px;
    }

    .section {
        padding: 40px 0;
    }
    
    .section-white,
    .section-gray {
        padding: 40px 0;
    }
}

/* Main Content */
.main {
    min-height: calc(100vh - var(--header-height) - 300px);
    padding: 40px 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 100px 0;
    min-height: 500px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::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"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Search Section */
.search-section {
    background: var(--bg-primary);
    padding: 40px 0;
    box-shadow: var(--shadow-md);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m6 9 6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

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

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

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

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

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title a {
    color: var(--primary-color);
    font-weight: 500;
}

.section-title a:hover {
    text-decoration: underline;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.cards-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.cards-grid-6 {
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    width: 100%;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .cards-grid-6 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Product Card */
.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
}

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

.product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new { background: var(--accent-color); color: white; }
.badge-used { background: var(--info-color); color: white; }
.badge-refurbished { background: var(--warning-color); color: var(--text-primary); }
.badge-featured { background: var(--secondary-color); color: white; }

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-fast);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

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

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

.product-info {
    padding: 18px;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

/* Ürün detay sayfası için spec-item - Marka/Model boyutunda */
.product-info-col .spec-item {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.product-info-col .spec-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Ürün kartları için spec-item - Küçük */
.spec-item {
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.spec-item svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Farklı renkler için - sadece ikon ve metin */
.spec-item:nth-child(1) { color: #5c6bc0; } /* Durum - mavi */
.spec-item:nth-child(2) { color: #26a69a; } /* Kalite - yeşil */
.spec-item:nth-child(3) { color: #ffa726; } /* Yıl - turuncu */
.spec-item:nth-child(4) { color: #ef5350; } /* Garanti - kırmızı */

.spec-item svg {
    flex-shrink: 0;
}

.product-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    flex-wrap: nowrap !important;
    overflow: hidden;
    white-space: nowrap;
}

.product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-old {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-inquiry {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.price-inquiry:hover {
    text-decoration: underline;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.stock-status {
    font-size: 0.75rem;
    font-weight: 500;
}

.stock-in { color: var(--accent-color); }
.stock-low { color: var(--warning-color); }
.stock-out { color: var(--danger-color); }

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.category-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 32px;
    height: 32px;
    color: #1976d2;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Brands Section */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    filter: grayscale(100%);
    opacity: 0.7;
}

.brand-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    box-shadow: var(--shadow-md);
}

.brand-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* WhatsApp Floating Button - Global (All Screens) */
.whatsapp-float {
    position: fixed !important;
    right: 15px !important;
    left: auto !important;
    bottom: 122px !important;
    width: 55px !important;
    height: 55px !important;
    background-color: #25D366 !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
    z-index: 2147483647 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.whatsapp-float svg {
    width: 26px !important;
    height: 26px !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6) !important;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 50px 0;
    color: white;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    opacity: 0.9;
    font-size: 0.875rem;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Sidebar & Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.sidebar {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.filter-option:hover {
    background-color: #f5f5f5;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-option span {
    font-size: 0.875rem;
    cursor: pointer;
    flex: 1;
    user-select: none;
}

.filter-option input[type="checkbox"]:checked + span,
.filter-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.filter-count {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.product-gallery {
    position: relative;
}

.gallery-main {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    margin-bottom: 15px;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: crosshair;
}

.gallery-magnifier {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid white;
    border-radius: 50%;
    pointer-events: none;
    display: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    background-repeat: no-repeat;
    background-color: white;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.product-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-meta-item .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.product-meta-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.product-detail-price {
    margin: 25px 0;
}

.product-detail-price .current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-detail-price .old {
    font-size: 1.25rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 15px;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-selector button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    font-size: 1.25rem;
    transition: background var(--transition-fast);
}

.quantity-selector button:hover {
    background: var(--border-color);
}

.quantity-selector input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    font-weight: 600;
}

/* Cart Page */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.cart-items {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 140px 120px 120px 100px;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.cart-item-quantity label,
.cart-item-price label,
.cart-item-subtotal label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.cart-item-quantity {
    text-align: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.quantity-input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.btn-minus,
.btn-plus {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.btn-minus:hover,
.btn-plus:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-item-price {
    text-align: center;
}

.cart-item-price span {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-subtotal {
    text-align: center;
}

.cart-item-subtotal span {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.cart-item-actions {
    text-align: center;
}

.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-delete:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

.cart-summary {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.cart-summary h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--border-color);
    border-bottom: none;
    margin-top: 10px;
    padding-top: 20px;
}

/* Login & Register */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.auth-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.auth-form .form-control {
    padding: 14px 16px;
}

.auth-form .btn {
    width: 100%;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.desktop-pagination { display: flex; }
.mobile-pagination { display: none; }

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination a {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
}

.pagination .current {
    background: var(--primary-color);
    color: white;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid var(--accent-color);
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: #fff3e0;
    color: #ef6c00;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid var(--info-color);
}

/* Modern Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 320px;
    max-width: 400px;
    animation: toastSlideIn 0.4s ease;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast.success::before { background: var(--accent-color); }
.toast.error::before { background: var(--danger-color); }
.toast.warning::before { background: var(--warning-color); }
.toast.info::before { background: var(--info-color); }

.toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.success .toast-icon { background: #e8f5e9; color: var(--accent-color); }
.toast.error .toast-icon { background: #ffebee; color: var(--danger-color); }
.toast.warning .toast-icon { background: #fff3e0; color: var(--warning-color); }
.toast.info .toast-icon { background: #e3f2fd; color: var(--info-color); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.toast-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: toastProgress 4s linear forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon svg {
    width: 50px;
    height: 50px;
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 1200px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

/* Mobile Filter Sidebar Styles - Global (All Screens) */
.mobile-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    left: 0;
    bottom: 144px;
    top: auto;
    transform: none;
    background: var(--primary-color);
    color: white;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    z-index: 9998;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.mobile-filter-toggle:hover {
    background: var(--primary-dark);
}

.mobile-filter-toggle span {
    display: block;
}

.mobile-filter-toggle svg {
    width: 20px;
    height: 20px;
}

.mobile-filter-clear {
    display: flex;
    align-items: center;
    gap: 6px;
    position: fixed;
    left: 0;
    bottom: 190px;
    top: auto;
    transform: none;
    background: white;
    color: var(--danger-color);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    z-index: 9998;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--danger-color);
}

.mobile-filter-clear:hover {
    background: #ffebee;
}

.mobile-filter-clear span {
    display: block;
}

.mobile-filter-clear svg {
    width: 18px;
    height: 18px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.mobile-filter-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    /* Mobile Filter Toggle Button - Fixed left protruding tab */
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        gap: 0;
        position: fixed;
        left: 0;
        bottom: 144px;
        top: auto;
        transform: none;
        z-index: 1000;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 0 8px 8px 0;
        padding: 12px 12px 12px 12px;
        font-size: 0.875rem;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 2px 0 8px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .mobile-filter-toggle span {
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: all 0.3s ease;
    }

    .mobile-filter-toggle:hover {
        background: var(--primary-dark);
        padding-right: 16px;
    }

    .mobile-filter-toggle:hover span {
        max-width: 100px;
        opacity: 1;
        margin-left: 8px;
    }

    .mobile-filter-toggle svg {
        flex-shrink: 0;
    }

    /* Mobile Clear Filters Button - positioned below Filtrele */
    .mobile-filter-clear {
        display: flex;
        align-items: center;
        gap: 0;
        position: fixed;
        left: 0;
        bottom: 100px;
        top: auto;
        transform: none;
        z-index: 1000;
        background: var(--bg-primary);
        color: var(--text-secondary);
        border: 1px solid var(--border-color);
        border-radius: 0 8px 8px 0;
        padding: 10px 10px 10px 10px;
        font-size: 0.875rem;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 2px 0 8px rgba(0,0,0,0.15);
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .mobile-filter-clear span {
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: all 0.3s ease;
    }

    .mobile-filter-clear:hover {
        background: var(--bg-secondary);
        color: var(--text-primary);
        padding-right: 14px;
    }

    .mobile-filter-clear:hover span {
        max-width: 100px;
        opacity: 1;
        margin-left: 8px;
    }

    .mobile-filter-clear svg {
        flex-shrink: 0;
    }

    /* Sidebar for mobile - hidden by default, slides from left */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-primary);
        z-index: 1001;
        border-radius: 0;
        padding: 0;
        margin: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 4px 0 15px rgba(0,0,0,0.15);
    }

    .sidebar.active {
        left: 0;
    }

    /* Sidebar header with close button */
    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-secondary);
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .sidebar-header .sidebar-title {
        margin: 0;
        padding: 0;
        border: none;
        font-size: 1.25rem;
    }

    .mobile-filter-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        color: var(--text-primary);
        cursor: pointer;
        border-radius: 50%;
        transition: background 0.2s ease;
    }

    .mobile-filter-close:hover {
        background: var(--bg-tertiary);
    }

    /* Sidebar content padding */
    .sidebar form {
        padding: 20px;
    }

    /* Overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .sidebar-overlay.active {
        display: block;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Footer Logo */
    .footer-logo img {
        height: 30px;
    }

    :root {
        --header-height: 60px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - var(--header-height));
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .cart-item-quantity,
    .cart-item-price,
    .cart-item-subtotal,
    .cart-item-actions {
        grid-column: 2;
        text-align: left;
    }
    
    .quantity-selector {
        justify-content: flex-start;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    /* Footer Logo */
    .footer-logo img {
        height: 30px;
    }

    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Header Actions */
    .header-actions {
        gap: 5px;
    }
    
    .header-actions .icon-btn {
        width: 36px;
        height: 36px;
    }
    
    /* Section Title */
    .section-title {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 0 35px;
    }

    /* Product Toolbar - Add padding for sorting and found info */
    .product-toolbar {
        padding: 0 35px;
    }
    
    /* Categories Grid */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Cards Grid - Add padding for spacing from screen edge */
    .cards-grid {
        padding: 0 35px;
    }
    
    .category-card {
        padding: 20px 10px;
    }
    
    /* Brands Grid */
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Toast Notifications */
    .toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
    
    /* Modal */
    .modal-content {
        padding: 25px;
        margin: 20px;
    }
    
    /* Search Form */
    .search-form {
        flex-direction: column;
    }
    
    /* Admin Grid */
    .admin-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Admin Tables */
    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Form Rows */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Page Header */
    .page-header {
        padding: 40px 0;
    }
    
    /* Main padding */
    .main {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    /* Footer Logo */
    .footer-logo img {
        height: 25px;
    }

    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-detail {
        padding: 20px;
    }
    
    .auth-container {
        padding: 25px;
        margin: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Categories - 2 columns on very small screens */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Brand items */
    .brand-item {
        height: 80px;
        padding: 10px;
    }
    
    /* Product card */
    .product-image {
        aspect-ratio: 4/3;
    }
    
    /* Admin cards */
    .admin-card {
        padding: 15px;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }
    
    /* Toast */
    .toast {
        padding: 12px 15px;
    }
    
    .toast-icon {
        width: 36px;
        height: 36px;
    }
    
    /* Sidebar account menu */
    .main > div[style*="grid-template-columns: 250px"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Cart page */
    .cart-container {
        gap: 20px;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 10px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-quantity,
    .cart-item-price,
    .cart-item-subtotal,
    .cart-item-actions {
        grid-column: 2;
        text-align: left;
    }
    
    .cart-item-quantity label,
    .cart-item-price label,
    .cart-item-subtotal label {
        font-size: 0.7rem;
    }
    
    .quantity-selector {
        justify-content: flex-start;
    }
    
    .btn-delete {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1001;
}

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

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: background var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.dropdown-menu hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 2000;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-fast);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.search-form {
    display: flex;
    gap: 15px;
}

.search-form .form-control {
    flex: 1;
}

/* Menu Overlay */
.menu-open {
    overflow: hidden;
}

.menu-open::after {
    content: '';
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* Fix body when menu open */
body.menu-open {
    overflow: hidden;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .icon-btn,
    .action-btn,
    .nav-link,
    .category-card,
    .product-card,
    .brand-item {
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:active,
    .icon-btn:active,
    .action-btn:active {
        transform: scale(0.95);
    }
    
    select,
    input,
    textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Landscape mode optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .product-actions,
    .btn {
        display: none !important;
    }
    
    .product-card {
        break-inside: avoid;
    }
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES - END OF FILE
   ======================================== */

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Categories single column */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Brands 2 columns */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Products single column */
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    /* Features single column */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer single column */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .desktop-pagination { display: none !important; }
    .mobile-pagination { display: flex !important; }

    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 0.8125rem;
    }
    
    /* Toast notifications */
    .toast-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
    
    /* Header actions smaller */
    .header-actions .icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .header-actions svg {
        width: 18px;
        height: 18px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.25rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9375rem;
    }
    
    .section-title h2 {
        font-size: 1.125rem;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .nav {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .icon-btn,
    .action-btn,
    .product-card,
    .category-card,
    .brand-item {
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:active,
    .icon-btn:active {
        transform: scale(0.96);
        transition: transform 0.1s;
    }
    
    /* Prevent zoom on iOS inputs */
    input,
    select,
    textarea {
        font-size: 16px;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image img,
    .category-icon,
    .brand-item img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Mobile Menu Button & Drawer Styles */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex !important;
    }

    .desktop-search {
        display: none !important;
    }

    .nav {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .mobile-menu-btn {
        display: none !important;
    }

    #mobileDrawer,
    #mobileDrawerOverlay {
        display: none !important;
    }

    .mobile-filter-toggle {
        display: none !important;
    }

    .mobile-filter-clear {
        display: none !important;
    }

    .sidebar-header {
        display: none !important;
    }
}

/* Contact Page Mobile Styles */
@media (max-width: 768px) {
    /* Footer Logo */
    .footer-logo img {
        height: 30px;
    }

    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .contact-form-card {
        padding: 20px !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    .main.container {
        padding: 20px 0 !important;
    }
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE DESIGN
   ======================================== */

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px !important;
    }

    /* Header */
    .header {
        height: 56px !important;
    }

    .header-content {
        padding: 0 15px !important;
        gap: 8px !important;
    }

    .logo img {
        height: 40px !important;
        width: auto !important;
    }

    .logo {
        font-size: 1.1rem !important;
        gap: 8px !important;
    }

    .nav {
        display: none !important;
    }

    .desktop-search {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }

    .header-actions {
        gap: 8px !important;
    }

    .admin-panel-btn {
        display: none !important;
    }

    .page-header h1 {
        font-size: 1.5rem !important;
    }

    .page-header {
        padding: 30px 0 !important;
    }

    .hero h1 {
        font-size: 1.5rem !important;
    }

    .hero p {
        font-size: 0.875rem !important;
    }

    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .product-card,
    .category-card {
        border-radius: 12px !important;
    }

    .product-info {
        padding: 15px !important;
    }

    .product-title {
        font-size: 0.95rem !important;
    }

    .price-current {
        font-size: 1.1rem !important;
    }

    .btn-lg {
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }

    .section-title h2 {
        font-size: 1.25rem !important;
    }

    .section-full {
        padding: 30px 0 !important;
    }

    .main {
        padding: 30px 0 !important;
    }

    .content-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        z-index: 9999 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
    }

    .sidebar.active {
        transform: translateX(0) !important;
    }

    .product-detail {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 20px !important;
    }

    .gallery-main {
        aspect-ratio: 1 !important;
    }

    .gallery-thumbs {
        gap: 8px !important;
    }

    .gallery-thumb {
        width: 60px !important;
        height: 60px !important;
    }

    .pagination {
        gap: 5px !important;
    }

    .desktop-pagination { display: none !important; }
    .mobile-pagination { display: flex !important; }

    .pagination a,
    .pagination span {
        padding: 8px 12px !important;
        font-size: 0.875rem !important;
    }
}

/* Medium Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 20px !important;
    }

    /* Header */
    .header {
        height: 60px !important;
    }

    .header-content {
        padding: 0 20px !important;
        gap: 12px !important;
    }

    .logo img {
        height: 45px !important;
        width: auto !important;
    }

    .logo {
        font-size: 1.25rem !important;
        gap: 10px !important;
    }

    .nav {
        display: none !important;
    }

    .desktop-search {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
    }

    .admin-panel-btn {
        display: none !important;
    }

    .page-header h1 {
        font-size: 1.75rem !important;
    }

    .hero h1 {
        font-size: 1.75rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }

    .product-detail {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
        padding: 25px !important;
    }

    .content-layout {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .section-full {
        padding: 40px 0 !important;
    }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Footer Logo */
    .footer-logo img {
        height: 35px;
    }

    .container {
        padding: 0 25px !important;
    }

    /* Header - FORCE MOBILE STYLE */
    .header {
        height: 65px !important;
    }

    .header-content {
        padding: 0 25px !important;
        gap: 15px !important;
    }

    .logo img {
        height: 50px !important;
        width: auto !important;
    }

    .logo {
        font-size: 1.35rem !important;
        gap: 12px !important;
    }

    /* HIDE DESKTOP NAVIGATION */
    .nav,
    nav.nav,
    header .nav,
    .header .nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .desktop-search,
    .header-search-form,
    form.desktop-search {
        display: none !important;
        visibility: hidden !important;
    }

    /* SHOW MOBILE MENU BUTTON */
    .mobile-menu-btn,
    button.mobile-menu-btn,
    .header-actions .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }

    .admin-panel-btn {
        display: none !important;
    }

    /* Force WhatsApp and Filter buttons to show on tablet */
    .whatsapp-float {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        right: 15px !important;
        bottom: 122px !important;
    }

    .mobile-filter-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        left: 0 !important;
        bottom: 144px !important;
    }

    .mobile-filter-clear {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        left: 0 !important;
        bottom: 190px !important;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .brands-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .product-detail {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding: 30px !important;
    }

    .content-layout {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 300px !important;
        max-width: 80% !important;
        height: 100vh !important;
        z-index: 9999 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
    }

    .sidebar.active {
        transform: translateX(0) !important;
    }

    .gallery-thumbs {
        gap: 10px !important;
    }

    .gallery-thumb {
        width: 70px !important;
        height: 70px !important;
    }

    .sidebar-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 20px !important;
        border-bottom: 1px solid #eee !important;
    }

    .sidebar-title {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: var(--primary-color) !important;
    }

    .mobile-filter-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        background: none !important;
        border: none !important;
        font-size: 1.5rem !important;
        cursor: pointer !important;
        color: #666 !important;
    }
}

/* All Mobile & Tablet Combined */
@media (max-width: 1024px) {
    /* Force hide desktop navigation */
    .nav {
        display: none !important;
    }

    /* Force full width on mobile */
    .hero .container,
    .search-section .container {
        padding: 0 20px !important;
    }

    /* Grid adjustments */
    .cards-grid-4,
    .cards-grid-6 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Form adjustments */
    .form-control {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }

    /* Touch targets */
    .btn,
    .icon-btn,
    .nav-link {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    /* Text adjustments */
    h1, h2, h3 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Image adjustments */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Scrollbar hiding for cleaner mobile look */
    ::-webkit-scrollbar {
        width: 6px !important;
        height: 6px !important;
    }

    ::-webkit-scrollbar-thumb {
        background: #ccc !important;
        border-radius: 3px !important;
    }
}

/* Landscape Mobile */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero h1 {
        font-size: 1.25rem !important;
    }

    .hero p {
        font-size: 0.875rem !important;
    }

    .section-full {
        padding: 20px 0 !important;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}
