:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --text: #2c3e50;
    --bg: #f8f9fa;
    --bg-darker: #e9ecef;
    --bg-darkest: #dee2e6;
    --bg-footer: #ced4da;
    --surface: #ffffff;
    --success: #2ecc71;
    --border: #e5e7eb;
    --danger: #e74c3c;
    --warning: #f1c40f;
    --border: #eee;
}

/* Themes */
[data-theme="dark"] {
    --primary: #8e9eeb;
    --secondary: #a37ac2;
    --text: #e0e0e0;
    --bg: #121212;
    --bg-darker: #050505;
    --bg-darkest: #000000;
    --bg-footer: #000000;
    --surface: #1e1e1e;
    --border: #333;
}

[data-theme="light"] {
    /* Default values */
}

[data-theme="blue"] {
    --primary: #3b82f6;
    --secondary: #2563eb;
    --bg: #eff6ff;
    --bg-darker: #dbeafe;
    --bg-darkest: #bfdbfe;
    --bg-footer: #93c5fd;
    --surface: #ffffff;
    --text: #1e3a8a;
}

[data-theme="green"] {
    --primary: #10b981;
    --secondary: #059669;
    --bg: #ecfdf5;
    --bg-darker: #d1fae5;
    --bg-darkest: #a7f3d0;
    --bg-footer: #6ee7b7;
    --surface: #ffffff;
    --text: #064e3b;
}

[data-theme="gray"] {
    --primary: #6b7280;
    --secondary: #4b5563;
    --bg: #f3f4f6;
    --bg-darker: #e5e7eb;
    --bg-darkest: #d1d5db;
    --bg-footer: #9ca3af;
    --surface: #ffffff;
    --text: #111827;
}

[data-theme="orange"] {
    --primary: #f97316;
    --secondary: #ea580c;
    --bg: #fff7ed;
    --bg-darker: #ffedd5;
    --bg-darkest: #fed7aa;
    --bg-footer: #fdba74;
    --surface: #ffffff;
    --text: #7c2d12;
}

[data-theme="red"] {
    --primary: #ef4444;
    --secondary: #dc2626;
    --bg: #fef2f2;
    --bg-darker: #fee2e2;
    --bg-darkest: #fecaca;
    --bg-footer: #fca5a5;
    --surface: #ffffff;
    --text: #7f1d1d;
}

[data-theme="yellow"] {
    --primary: #eab308;
    --secondary: #ca8a04;
    --bg: #fefce8;
    --bg-darker: #fef9c3;
    --bg-darkest: #fef08a;
    --bg-footer: #fde047;
    --surface: #ffffff;
    --text: #422006;
}

[data-theme="cyan"] {
    --primary: #00bcd4;
    --secondary: #0097a7;
    --bg: #e0f7fa;
    --bg-darker: #b2ebf2;
    --bg-darkest: #80deea;
    --bg-footer: #4dd0e1;
    --surface: #ffffff;
    --text: #006064;
}

[data-theme="purple"] {
    --primary: #9c27b0;
    --secondary: #7b1fa2;
    --bg: #f3e5f5;
    --bg-darker: #e1bee7;
    --bg-darkest: #ce93d8;
    --bg-footer: #ba68c8;
    --surface: #ffffff;
    --text: #4a148c;
}

[data-theme="lavender"] {
    --primary: #7986cb;
    --secondary: #5c6bc0;
    --bg: #e8eaf6;
    --bg-darker: #c5cae9;
    --bg-darkest: #9fa8da;
    --bg-footer: #7986cb;
    --surface: #ffffff;
    --text: #283593;
}

[data-theme="khaki"] {
    --primary: #afb42b;
    --secondary: #827717;
    --bg: #f9fbe7;
    --bg-darker: #f0f4c3;
    --bg-darkest: #e6ee9c;
    --bg-footer: #dce775;
    --surface: #ffffff;
    --text: #33691e;
}

[data-theme="burgundy"] {
    --primary: #a93226;
    --secondary: #922b21;
    --bg: #fdedec;
    --bg-darker: #fadbd8;
    --bg-darkest: #f5b7b1;
    --bg-footer: #ec7063;
    --surface: #ffffff;
    --text: #641e16;
}

[data-theme="smoke"] {
    --primary: #546e7a;
    --secondary: #455a64;
    --bg: #eceff1;
    --bg-darker: #cfd8dc;
    --bg-darkest: #b0bec5;
    --bg-footer: #90a4ae;
    --surface: #ffffff;
    --text: #263238;
}

[data-theme="violet"] {
    --primary: #8e44ad;
    --secondary: #71368a;
    --bg: #f4ecf7;
    --bg-darker: #e8daef;
    --bg-darkest: #d2b4de;
    --bg-footer: #bb8fce;
    --surface: #ffffff;
    --text: #4a235a;
}

[data-theme="lilac"] {
    --primary: #ce93d8;
    --secondary: #ba68c8;
    --bg: #f8f1fa;
    --bg-darker: #f3e5f5;
    --bg-darkest: #e1bee7;
    --bg-footer: #ce93d8;
    --surface: #ffffff;
    --text: #6a1b9a;
}

[data-theme="brown"] {
    --primary: #8d6e63;
    --secondary: #6d4c41;
    --bg: #efebe9;
    --bg-darker: #d7ccc8;
    --bg-darkest: #bcaaa4;
    --bg-footer: #a1887f;
    --surface: #ffffff;
    --text: #3e2723;
}

[data-theme="navy"] {
    --primary: #1d4ed8;
    --secondary: #1e3a8a;
    --bg: #f1f5f9;
    --bg-darker: #e2e8f0;
    --bg-darkest: #cbd5f5;
    --bg-footer: #93c5fd;
    --surface: #ffffff;
    --text: #0f172a;
}

[data-theme="teal"] {
    --primary: #0d9488;
    --secondary: #0f766e;
    --bg: #ecfeff;
    --bg-darker: #cffafe;
    --bg-darkest: #a5f3fc;
    --bg-footer: #67e8f9;
    --surface: #ffffff;
    --text: #115e59;
}

[data-theme="gold"] {
    --primary: #d97706;
    --secondary: #b45309;
    --bg: #fffbeb;
    --bg-darker: #fef3c7;
    --bg-darkest: #fde68a;
    --bg-footer: #fbbf24;
    --surface: #ffffff;
    --text: #78350f;
}

[data-theme="rose"] {
    --primary: #e11d48;
    --secondary: #be123c;
    --bg: #fff1f2;
    --bg-darker: #ffe4e6;
    --bg-darkest: #fecdd3;
    --bg-footer: #fb7185;
    --surface: #ffffff;
    --text: #881337;
}

[data-theme="slate"] {
    --primary: #0f172a;
    --secondary: #1e293b;
    --bg: #f1f5f9;
    --bg-darker: #e5e7eb;
    --bg-darkest: #cbd5e1;
    --bg-footer: #94a3b8;
    --surface: #ffffff;
    --text: #020617;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-darker);
    transition: background-color 0.3s ease;
}

.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1002;
}

/* Search Bar Styles */
.search-container {
    flex: 1;
    margin: 0 20px;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    border-radius: 50px;
    overflow: hidden;
    background: var(--bg);
    transition: all 0.3s ease;
    padding: 8px 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

.search-form:focus-within {
    background: var(--surface);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.1);
}

.search-icon-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 12px;
    transition: color 0.3s;
}

.search-icon-btn:hover {
    color: var(--primary);
}

.search-icon-btn svg {
    width: 20px;
    height: 20px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 5px 0;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 10px;
    z-index: 1005;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.search-result-emoji {
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    border-radius: 4px;
    margin-right: 15px;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

.search-result-meta {
    font-size: 0.8rem;
    color: #666;
}

.search-result-price {
    font-weight: bold;
    color: var(--primary);
    margin-left: 10px;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s linear;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        align-items: center;
    }

    .navbar-brand {
        order: 1;
        flex: 0 0 auto;
    }

    .hamburger-menu {
        order: 2;
        display: flex;
        margin-left: auto;
    }

    .search-container {
        order: 3;
        flex: 1 0 100%;
        width: 100%;
        max-width: 100%;
        margin: 10px 0 0 0;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; /* Full width for better mobile experience */
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1001;
        padding: 80px 20px;
    }

    .navbar-menu.active {
        right: 0;
    }

    .navbar-menu a {
        font-size: 1.2rem;
        margin: 10px 0;
    }

    .user-menu {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-top: 20px;
    }

    .user-menu > a, .user-menu > span {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .navbar-menu .user-menu .nav-icon-btn {
        width: 100%;
        max-width: none;
        height: auto;
        padding: 10px 20px;
        border-radius: 20px;
        background: var(--bg-darkest);
        color: var(--text);
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: none;
        font-size: 1rem;
        justify-content: flex-start;
        text-align: left;
        gap: 10px;
    }

    .navbar-menu .user-menu .nav-icon-label {
        display: inline-block;
    }
    
    .cart-button {
        display: inline-block !important;
        width: auto !important;
        align-self: center;
        margin: 10px 0;
    }
    
    #cart-count {
        width: auto;
        /* Reset positioning if needed, but global styles should work if parent is small */
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
}

@media (max-width: 768px) {
    body.menu-open .category-tabs-bar {
        display: none;
    }
}

.navbar-menu a {
    font-weight: 500;
    color: var(--text);
    transition: color 0.3s;
    white-space: nowrap;
}

.navbar-menu a:hover {
    color: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.category-tabs-bar {
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    background: var(--bg-darkest);
    position: relative;
    z-index: 1001;
}
.category-tabs-bar .container {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 10px;
    max-width: 100%;
}
.category-tabs-bar .container::-webkit-scrollbar {
    display: none;
}
.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.category-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.category-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    transform: translateY(-2px);
}
.category-tab-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 2px;
}

.category-submenu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    z-index: 1005;
    padding: 10px 0;
}
.category-submenu-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-submenu-inner::-webkit-scrollbar { display: none; }
.category-submenu-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    align-items: start;
    padding: 0 20px;
}
.category-submenu-col {
    min-width: 0;
}
.category-submenu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.category-submenu-col1 .category-submenu-list {
    flex-direction: column;
    align-items: stretch;
}
.category-submenu-sub1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}
.category-submenu-sub1:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eef2ff;
}
.category-submenu-sub1.active {
    border-color: var(--primary);
    background: linear-gradient(90deg, rgba(102,126,234,0.15), rgba(118,75,162,0.12));
    color: var(--text);
}
.category-submenu-sub1:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}
.category-submenu-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease-in-out;
}
.category-submenu-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eef2ff;
}
.category-submenu-empty {
    color: var(--text);
    opacity: 0.7;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
}

@media (max-width: 768px) {
    .category-submenu-wrap {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .category-submenu-col1 .category-submenu-list {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    .category-submenu-sub1 {
        border-radius: 999px;
        padding: 8px 12px;
        font-size: 0.85rem;
        font-weight: 700;
    }
}

.user-name {
    white-space: nowrap;
    font-weight: 600;
}

.user-name-link {
    white-space: nowrap;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    text-align: center;
    display: inline-block;
    transition: color 0.3s;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: var(--bg-darkest);
    color: var(--text);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.admin-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
    margin-right: 10px;
}

.admin-icon-link:hover {
    background: rgba(0,0,0,0.05);
}

.cart-button {
    position: relative;
    font-size: 1.2rem;
    padding: 5px;
}

#cart-count {
    background: var(--danger);
    color: white;
    border-radius: 10px;
    padding: 0 4px;
    font-size: 0.7rem;
    position: absolute;
    top: -2px;
    right: -2px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1px solid var(--surface);
}

.login-btn, .register-btn, .logout-btn, .profile-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.login-btn, .register-btn {
    color: var(--primary);
    border: 2px solid var(--primary);
}

.login-btn:hover, .register-btn:hover {
    background: var(--primary);
    color: white !important;
}

.logout-btn {
    background: var(--bg-darkest);
    color: var(--text);
    border: 1px solid rgba(0,0,0,0.05);
}

.logout-btn:hover {
    background: var(--primary);
    color: white !important;
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--bg-darker);
    color: var(--text);
    padding: 20px 0;
    text-align: center;
    margin-bottom: 20px;
    /* border-radius ve shadow kaldırıldı, sayfa ile bütünleşmesi için */
    box-shadow: none;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.hero-btn {
    background: var(--primary);
    color: white;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ===== CATEGORIES ===== */
.categories-section {
    padding: 20px 0 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.category-card {
    background: var(--surface);
    padding: 15px 20px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    border: 1px solid #eee;
    text-decoration: none;
    color: var(--text);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.category-icon {
    font-size: 1.5rem;
    background: var(--bg);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 0;
    transition: background 0.3s;
    flex-shrink: 0;
}

.category-card:hover .category-icon {
    background: #eef2ff;
}

.category-card h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

/* ===== PRODUCTS GRID ===== */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px 0;
    margin-bottom: 40px;
}

.product-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e5e7eb;
}

.product-card .product-title {
    color: #2c3e50;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    font-weight: normal;
}

.new-price {
    color: var(--danger);
}

.product-card .sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--danger);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Favorite Button Style */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    border-color: #e0e0e0;
}

.favorite-btn span {
    font-size: 24px;
    line-height: 1;
    margin-top: 2px;
}

.add-to-cart-btn {
    margin-top: auto;
    background: transparent !important;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    font-weight: 600;
    width: 48px;
    height: 48px;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1;
    margin-left: auto; /* Push to right if in flex container */
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    background: var(--bg) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.add-to-cart-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.add-to-cart-btn:disabled {
    border-color: #e0e0e0;
    color: #999;
    background: transparent !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none;
}

/* Large Add to Cart Button (Details Page) */
.add-to-cart-btn-large {
    flex: 1;
    background: transparent !important;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0 30px;
    height: 54px;
    font-size: 1.8rem;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn-large:hover {
    transform: translateY(-3px);
    background: var(--bg) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

.add-to-cart-btn-large:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.add-to-cart-btn-large.disabled {
    border-color: #e0e0e0;
    color: #999;
    background: transparent !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none;
}

.add-to-cart-btn-large .spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
}

.add-to-cart-btn-large.loading .spinner {
    display: inline-block;
}

.add-to-cart-btn-large.loading .btn-text,
.add-to-cart-btn-large.loading .btn-icon {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s;
}

.add-to-cart-btn-large.added {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.35);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== AUTH PAGES ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: border-color 0.3s;
    font-size: 1rem;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.auth-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #888;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #ffcdd2;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #c8e6c9;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-darkest);
    padding: 40px 0;
    margin-top: auto;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text);
}

/* ===== TOAST ===== */
.app-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-toast.success {
    background: #2ecc71;
}

.app-toast.error {
    background: #e74c3c;
}

@keyframes slideIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== PRODUCT PAGE & FILTERS ===== */
.products-page {
    display: flex;
    gap: 30px;
    padding: 40px 0;
}

/* Filters Modernization */
.filters-sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 100px;
    height: fit-content;
    align-self: flex-start;
    min-width: 240px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.filters-sidebar .filter-group select,
.filters-sidebar .filter-group input[type="text"] {
    color: #2c3e50;
}

#brandList {
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    padding: 8px;
    background-color: #fcfcfc;
    display: none; /* Varsayılan olarak gizli */
    margin-top: 5px;
}

.brand-item {
    margin-bottom: 2px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
    margin: 0;
    padding: 3px 4px;
    border-radius: 4px;
    transition: background 0.1s;
}

.checkbox-label:hover {
    background: #f1f5f9;
}

.checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.filters-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-sidebar h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    display: block;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.2s;
    background-color: #f8fafc;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Range Slider Styling */
input[type=range] {
    width: 100%;
    margin: 10px 0;
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid #fff;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 2px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #cbd5e0;
}

.price-output {
    display: block;
    text-align: right;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
    padding: 6px 0;
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: var(--primary);
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

/* Brand List Scroll */
#brandList {
    /* max-height: 200px;  Removed for full height */
    /* overflow-y: auto;   Removed for full height */
    padding-right: 5px;
}

.filter-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-btn:hover {
    background: var(--secondary);
}

.products-content {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.no-products {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 15px;
    color: #888;
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .products-page {
        flex-direction: column;
    }
    .filters-sidebar {
        width: 100%;
        position: static;
        z-index: auto;
    }
}

/* ===== ADMIN PANEL ===== */
.admin-page {
    padding: 40px 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.stat-info h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

.stat-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Tab Headers & Content */
.admin-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tab-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
}

@media (max-width: 768px) {
    .admin-page {
        padding: 20px 0;
    }

    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-bottom: 16px;
        scrollbar-width: thin;
    }

    .admin-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .admin-tabs::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 999px;
    }

    .tab-btn {
        flex-shrink: 0;
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tab-header > div {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .table-container {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 720px;
    }
}

/* Tables */
.table-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, 
.admin-table td {
    padding: 10px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 0.95rem;
}

.admin-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    white-space: nowrap;
}

.admin-table td {
    white-space: normal;
    word-break: break-word;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    min-width: 80px;
}
.status-pending { background: #fff3e0; color: #ef6c00; border: 1px solid #ffe0b2; }
.status-approved { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.status-shipped { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
.status-cancelled { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.status-default { background: #f5f5f5; color: #666; border: 1px solid #e0e0e0; }

/* Tracking Input */
.tracking-input {
    width: 100%;
    min-width: 100px;
    max-width: 140px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.9em;
}
.tracking-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
    outline: none;
}

.admin-table tr:hover {
    background-color: #f8f9fa;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.product-emoji {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

/* Badges */
.stock-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.stock-badge.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.stock-badge.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.role-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.role-badge.admin {
    background: #fff3e0;
    color: #ef6c00;
}

.role-badge.user {
    background: #e3f2fd;
    color: #1565c0;
}

.sale-badge-small {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Admin ButonlarÄ± - Modern ve Kibar TasarÄ±m */
.actions-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 140px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.action-btn.approve {
    background-color: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.action-btn.approve:hover:not(:disabled) {
    background-color: #a7f3d0;
    transform: translateY(-1px);
}

.action-btn.ship {
    background-color: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.action-btn.ship:hover:not(:disabled) {
    background-color: #bfdbfe;
    transform: translateY(-1px);
}

.action-btn.cancel {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.action-btn.cancel:hover:not(:disabled) {
    background-color: #fecaca;
    transform: translateY(-1px);
}

.action-btn.delete {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.action-btn.delete:hover:not(:disabled) {
    background-color: #e5e7eb;
    color: #111827;
    transform: translateY(-1px);
}

/* Tablo HÃ¼cre HizalamasÄ± */
.admin-table td.actions {
    vertical-align: middle;
    padding: 12px;
}

/* Admin Butonları - Modernize Edilmiş */
.edit-btn, .delete-btn, .add-btn, .submit-btn,
.inline-action-btn {
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
}

/* Renkler ve Durumlar */
.edit-btn { 
    background: #e3f2fd; 
    color: #1976d2; 
}
.edit-btn:hover { 
    background: #bbdefb; 
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(25, 118, 210, 0.2);
}

.delete-btn { 
    background: #ffebee; 
    color: #c62828; 
}
.delete-btn:hover { 
    background: #ffcdd2; 
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(198, 40, 40, 0.2);
}

.add-btn { 
    background: #e8f5e9; 
    color: #2e7d32; 
    font-weight: 600; 
}
.add-btn:hover { 
    background: #c8e6c9; 
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.2);
}

.submit-btn { 
    background: var(--primary); 
    color: white; 
    padding: 8px 20px;
    font-weight: 600;
}
.submit-btn:hover { 
    background: var(--secondary); 
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}
.submit-btn:disabled { 
    background: #ccc; 
    cursor: not-allowed; 
    transform: none;
    box-shadow: none;
}

/* Inline Action Buttons (İptal/Kaydet vb.) */
.inline-action-btn {
    min-width: 100px;
}

.inline-btn-submit {
    background: var(--primary);
    color: white;
}
.inline-btn-submit:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.inline-btn-cancel {
    background: #f1f2f6;
    color: #636e72;
}
.inline-btn-cancel:hover {
    background: #dfe4ea;
    color: #2d3436;
    transform: translateY(-2px);
}

.inline-btn-primary {
    background: var(--primary);
    color: white;
}
.inline-btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.inline-btn-edit {
    background: #e3f2fd; 
    color: #1976d2;
    min-width: auto; /* İkon butonlar için genişlik sınırlamasını kaldır */
}
.inline-btn-edit:hover {
    background: #bbdefb;
}

.inline-btn-delete {
    background: #ffebee; 
    color: #c62828;
    min-width: auto;
}
.inline-btn-delete:hover {
    background: #ffcdd2;
}

.inline-btn-warning {
    background: #fff3e0;
    color: #ef6c00;
    min-width: auto;
}
.inline-btn-warning:hover {
    background: #ffe0b2;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

/* SweetAlert2 Özelleştirmesi */
div:where(.swal2-container) div:where(.swal2-popup) {
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    border-radius: 20px !important;
    padding: 2em !important;
}

div:where(.swal2-container) button:where(.swal2-styled) {
    border-radius: 10px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.close:hover {
    color: #333;
}

/* Common Components */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #eee;
}

/* ===== GLOBAL MOBILE RESPONSIVENESS ===== */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .auth-page {
        padding: 20px 10px;
    }
    
    .auth-card {
        padding: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-image {
        height: 180px;
        font-size: 3rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
}

/* ===== FOOTER LINKS ===== */
.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-links a {
    color: #666;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.separator {
    color: #ccc;
}

/* ===== CAROUSEL STYLES ===== */
.product-carousel-wrapper {
    position: relative;
    padding: 0 20px;
}

.product-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 5px; /* Extra padding for shadows */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-carousel::-webkit-scrollbar {
    display: none;
}

.product-carousel .product-card {
    min-width: 250px;
    max-width: 250px;
    flex: 0 0 auto;
    margin: 0; /* Override any grid margins */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-darkest);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 24px;
    color: var(--text);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--bg-darkest);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 22px;
    color: var(--text);
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.slider-nav-btn.prev { left: 10px; }
.slider-nav-btn.next { right: 10px; }

.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: var(--bg-darkest);
    color: var(--text);
    border-radius: 50%;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    margin: 0 3px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-icon-label {
    display: none;
    margin-left: 8px;
    font-weight: 600;
}

.nav-icon-btn:hover {
    background-color: var(--primary);
    color: white !important;
    transform: translateY(-2px);
}

.carousel-btn.prev { left: -15px; }
.carousel-btn.next { right: -15px; }

/* Carousel Responsive */
@media (max-width: 768px) {
    .product-carousel-wrapper {
        padding: 0 10px;
    }
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    .carousel-btn.prev {
        left: -5px;
    }
    .carousel-btn.next {
        right: -5px;
    }
    .product-carousel .product-card {
        min-width: 200px;
        max-width: 200px;
    }
}
