/**
 * E-Ticaret Ana Stil Dosyası
 * Modern ve Premium Tasarım
 */

/* =====================================================
   CSS VARIABLES - PREMIUM THEME
   ===================================================== */
:root {
    /* Primary Colors - Elegant Indigo */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --primary-soft: rgba(79, 70, 229, 0.1);

    /* Accent Colors */
    --accent: #f97316;
    --accent-dark: #ea580c;

    /* Status Colors */
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.1);
    --error: #ef4444;
    --error-soft: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Neutrals - Refined Grays */
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748b;
    --gray-500: #94a3b8;
    --gray-400: #cbd5e1;
    --gray-300: #e2e8f0;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --white: #ffffff;

    /* Design Tokens */
    --border: #e2e8f0;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.modal-open,
body.drawer-open {
    overflow: hidden;
}

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

a:hover {
    color: var(--primary-dark);
}

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

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

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

/* =====================================================
   CONTAINER
   ===================================================== */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   HEADER - PREMIUM DESIGN
   ===================================================== */
/* Marquee/Kayan Yazı Barı */
.marquee-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
}

.marquee-content {
    display: flex;
    animation: marquee 60s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    padding: 0 50px;
    display: inline-flex;
    align-items: center;
}

.marquee-content span::after {
    content: "✦";
    margin-left: 50px;
    opacity: 0.6;
}

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

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

.marquee-bar:hover .marquee-content {
    animation-play-state: paused;
}

.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

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

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

/* Search Bar - Elegant Design */
.search-form {
    flex: 1;
    max-width: 550px;
    min-width: 300px;
    margin: 0 auto;
    display: flex;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition);
}

.search-form:focus-within {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.search-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: var(--dark);
}

.search-form input::placeholder {
    color: var(--gray-500);
}

.search-form button {
    padding: 14px 20px;
    background: transparent;
    color: var(--gray-500);
    transition: all var(--transition);
}

.search-form:focus-within button {
    color: var(--primary);
}

.search-form button:hover {
    color: var(--primary-dark);
}

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

.header-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
    position: relative;
}

.header-btn:hover {
    background: var(--gray-100);
    color: var(--dark);
}

.header-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.header-btn.active {
    background: var(--primary-soft);
    color: var(--primary);
}

/* Cart Button Special */
.cart-btn {
    background: var(--gray-100);
}

.cart-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Wishlist Button */
.wishlist-btn {
    background: var(--gray-100);
}

.wishlist-btn:hover {
    background: var(--error-soft);
    color: var(--error);
}

.wishlist-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-badge 2s infinite;
}

.mobile-menu-toggle {
    display: none;
    padding: 10px;
    color: var(--gray-700);
}

/* Navigation - Dark & Sleek */
.main-nav {
    background: var(--dark);
    position: relative;
    z-index: 999;
}

.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.nav-menu>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition);
    transform: translateX(-50%);
}

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

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

/* Submenu */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    list-style: none;
    z-index: 1001;
    padding: 8px;
    border: 1px solid var(--gray-200);
    margin-top: 2px;
}

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

.submenu a {
    display: block;
    padding: 12px 16px;
    color: var(--gray-700);
    font-size: 14px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.submenu a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

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

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

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

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-700);
    font-size: 14px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--dark);
}

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

/* =====================================================
   CART DRAWER - SLIDING PANEL
   ===================================================== */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-2xl);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.cart-drawer-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-drawer-header .cart-count {
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.cart-drawer-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--gray-500);
    transition: all var(--transition);
}

.cart-drawer-close:hover {
    background: var(--gray-200);
    color: var(--dark);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}

.cart-empty-icon {
    width: 100px;
    height: 100px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.cart-empty-icon svg {
    width: 48px;
    height: 48px;
    color: var(--gray-400);
}

.cart-empty h4 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 8px;
}

.cart-empty p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

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

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}

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

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-variant {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-item-remove {
    color: var(--gray-400);
    padding: 4px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.cart-item-remove:hover {
    color: var(--error);
    background: var(--error-soft);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 4px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    transition: all var(--transition);
}

.cart-item-qty button:hover {
    background: var(--white);
    color: var(--dark);
}

.cart-item-qty span {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

/* Cart Footer */
.cart-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-subtotal span {
    font-size: 14px;
    color: var(--gray-600);
}

.cart-subtotal strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.cart-drawer-footer .btn {
    width: 100%;
    margin-bottom: 10px;
}

.cart-drawer-footer .btn:last-child {
    margin-bottom: 0;
}

/* =====================================================
   AUTH MODAL - LOGIN/REGISTER
   ===================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

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

.modal {
    background: var(--white);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-2xl);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 28px 28px 0;
    text-align: center;
}

.modal-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--gray-500);
    font-size: 15px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--gray-400);
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--dark);
}

.modal-body {
    padding: 28px;
    position: relative;
}

.modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--gray-100);
    padding: 6px;
    border-radius: var(--radius-lg);
}

.modal-tab {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-align: center;
}

.modal-tab:hover {
    color: var(--dark);
}

.modal-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    transition: all var(--transition);
}

.social-btn:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

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

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--gray-400);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* Auth Form */
.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.auth-form .form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    outline: none;
    background: var(--gray-50);
}

.auth-form .form-control:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.auth-form .form-control::placeholder {
    color: var(--gray-400);
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    padding: 4px;
}

.password-toggle:hover {
    color: var(--gray-600);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-link {
    color: var(--primary);
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.modal-footer-text {
    text-align: center;
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 20px;
}

.modal-footer-text a {
    color: var(--primary);
    font-weight: 600;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content {
    flex: 1;
    padding: 48px 0;
}

/* =====================================================
   FOOTER - ELEGANT DESIGN
   ===================================================== */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 72px 0 0;
    margin-top: auto;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

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

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.footer-col ul a {
    color: var(--gray-400);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.footer-col ul a:hover {
    color: var(--white);
    padding-left: 4px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--gray-400);
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: all var(--transition);
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form input:focus {
    border-color: var(--primary);
    outline: none;
}

.newsletter-form button {
    padding: 14px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-payments img {
    height: 24px;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.footer-payments img:hover {
    opacity: 1;
}

/* =====================================================
   FLASH MESSAGES
   ===================================================== */
.flash-messages {
    padding: 16px 0;
}

.alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.alert:last-child {
    margin-bottom: 0;
}

.alert-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    opacity: 0.5;
    cursor: pointer;
    padding: 4px;
}

.alert-close:hover {
    opacity: 1;
}

/* =====================================================
   BUTTONS - PREMIUM STYLE
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    color: var(--white);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

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

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

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

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--dark);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-icon {
    padding: 12px;
}

.btn-block {
    width: 100%;
}

/* =====================================================
   FORMS - MODERN INPUTS
   ===================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--error);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    outline: none;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-control.is-invalid {
    border-color: var(--error);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px var(--error-soft);
}

.invalid-feedback {
    color: var(--error);
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-hint {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 6px;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-check-label {
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
}

/* Select */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

/* =====================================================
   CARDS - ELEGANT CONTAINERS
   ===================================================== */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* =====================================================
   PRODUCTS - PREMIUM GRID
   ===================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
}

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

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-badge {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
}

.product-badge.sale {
    background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
    color: var(--white);
}

.product-badge.new {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
}

.product-badge.hot {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--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);
    z-index: 10;
}

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

/* Mobile: Butonları her zaman göster */
@media (max-width: 768px) {
    .product-actions {
        opacity: 1;
        transform: translateX(0);
        top: 8px;
        right: 8px;
        gap: 6px;
    }

    .product-action-btn {
        width: 36px;
        height: 36px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

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

.product-action-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    color: var(--gray-600);
    transition: all var(--transition);
}

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

.product-action-btn.in-wishlist {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1);
}

.product-action-btn.in-wishlist:hover {
    background: #ef4444;
    color: var(--white) !important;
}

.product-action-btn.in-wishlist svg {
    fill: #ef4444 !important;
    stroke: #ef4444 !important;
}

.product-action-btn.in-wishlist:hover svg {
    fill: var(--white) !important;
    stroke: var(--white) !important;
}

.wishlist-btn.in-wishlist {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444 !important;
}

.wishlist-btn.in-wishlist:hover {
    background: #ef4444;
    color: var(--white) !important;
}

.wishlist-btn.in-wishlist svg {
    fill: #ef4444 !important;
    stroke: #ef4444 !important;
}

.wishlist-btn.in-wishlist:hover svg {
    fill: var(--white) !important;
    stroke: var(--white) !important;
}

.product-action-btn.wishlisted,
.wishlist-btn.wishlisted {
    color: var(--error);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-name a {
    color: inherit;
}

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

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

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

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

.product-price .discount {
    font-size: 12px;
    font-weight: 700;
    color: var(--error);
    background: var(--error-soft);
    padding: 4px 8px;
    border-radius: var(--radius);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-rating .stars {
    display: flex;
    gap: 2px;
}

.product-rating svg {
    width: 16px;
    height: 16px;
    fill: var(--gray-300);
}

.product-rating svg.filled {
    fill: var(--accent);
}

.product-rating span {
    font-size: 13px;
    color: var(--gray-500);
}

.product-add-to-cart {
    width: 100%;
    margin-top: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition);
}

.product-card:hover .product-add-to-cart {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}

.pagination a {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

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

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.pagination .disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    border: 2px solid var(--gray-200);
    cursor: not-allowed;
}

/* =====================================================
   LOADING SPINNER
   ===================================================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* =====================================================
   TOOLTIPS
   ===================================================== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: var(--dark);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    pointer-events: none;
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1280px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-form {
        order: 3;
        max-width: 100%;
        min-width: auto;
        flex-basis: 100%;
        margin-top: 12px;
        margin-left: 0;
        margin-right: 0;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-btn span {
        display: none;
    }

    .header-btn {
        padding: 12px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 998;
        box-shadow: var(--shadow-lg);
    }

    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu>li>a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .has-submenu .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.3);
        margin: 0;
        padding: 0;
    }

    .has-submenu .submenu a {
        padding-left: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-info {
        padding: 14px;
    }

    .product-name {
        font-size: 14px;
        margin: 8px 0;
        line-height: 1.3;
    }

    .product-price {
        margin-bottom: 8px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .product-price .current {
        font-size: 16px;
    }

    .product-price .old {
        font-size: 12px;
    }

    .product-rating {
        font-size: 11px;
    }

    .product-rating svg {
        width: 12px;
        height: 12px;
    }

    .product-category {
        font-size: 10px;
        margin-bottom: 4px;
    }

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

    .footer-brand {
        grid-column: span 1;
    }

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

    .cart-drawer {
        max-width: 100%;
    }

    .modal {
        max-width: 100%;
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
}

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

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-image {
        border-radius: 12px 12px 0 0;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .product-name a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-price {
        margin-bottom: 6px;
    }

    .product-price .current {
        font-size: 15px;
    }

    .product-price .old {
        font-size: 12px;
    }

    .product-rating {
        font-size: 11px;
    }

    .product-rating svg {
        width: 12px;
        height: 12px;
    }

    .product-badge {
        font-size: 10px;
        padding: 4px 8px;
        top: 8px;
        left: 8px;
    }

    .product-actions {
        top: 6px;
        right: 6px;
        gap: 4px;
    }

    .product-action-btn {
        width: 32px;
        height: 32px;
    }

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

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* =====================================================
   CATEGORY PAGES - OPTIMIZED STYLES
   ===================================================== */

/* Categories Page */
.categories-page,
.category-page {
    background: var(--gray-100);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 32px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color var(--transition);
}

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

.breadcrumb .separator {
    color: var(--gray-400);
}

.breadcrumb .current {
    color: var(--dark);
    font-weight: 500;
}

/* Categories Header */
.categories-header {
    margin-bottom: 40px;
    text-align: center;
}

.categories-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.categories-header p {
    color: var(--gray-600);
    font-size: 16px;
}

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

/* Category Card */
.category-card-full {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
}

.category-card-full:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.category-main {
    padding: 24px;
}

.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.category-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--gray-100);
}

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

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

.category-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 16px;
    transition: transform var(--transition-slow);
}

.category-card-full:hover .category-icon {
    transform: scale(1.05);
}

.category-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    transition: color var(--transition);
}

.category-link:hover .category-name {
    color: var(--primary);
}

.category-count {
    font-size: 14px;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* Category Children */
.category-children {
    border-top: 1px solid var(--gray-200);
    padding: 16px 24px;
    background: var(--gray-100);
}

.children-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.children-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.child-link {
    font-size: 13px;
    color: var(--gray-600);
    text-decoration: none;
    padding: 6px 12px;
    background: white;
    border-radius: var(--radius);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.child-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Category Page Header */
.category-header {
    margin-bottom: 32px;
}

.category-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.category-description {
    color: var(--gray-600);
    font-size: 16px;
    max-width: 600px;
    margin-bottom: 8px;
}

.product-count {
    font-size: 14px;
    color: var(--gray-500);
}

/* Subcategories */
.subcategories {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.subcategory-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 2px solid transparent;
}

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

.subcategory-card img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius);
}

.subcategory-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

/* Category Content Layout */
.category-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 120px;
    box-shadow: var(--shadow-sm);
}

.filter-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.filter-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: white;
    color: var(--gray-700);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-select:hover {
    border-color: var(--primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

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

.price-inputs input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.btn-filter {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

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

.clear-filters {
    display: block;
    text-align: center;
    color: var(--error);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.clear-filters:hover {
    background: var(--error-soft);
}

/* Products Area */
.products-area {
    min-height: 400px;
}

/* Products Grid - Trendyol Style Compact Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

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

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Product Card - Compact Trendyol Style */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: all var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.product-card .product-image {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--gray-100);
}

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

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

.product-card .product-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-400);
}

/* Product Badges */
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--error);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    z-index: 1;
}

.out-of-stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius);
    z-index: 2;
}

/* Product Info - Compact */
.product-info {
    padding: 12px;
}

.product-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.product-name:hover {
    color: var(--primary);
}

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

.product-rating .star {
    color: var(--gray-300);
    font-size: 12px;
}

.product-rating .star.filled {
    color: #fbbf24;
}

.product-rating .rating-count {
    font-size: 11px;
    color: var(--gray-500);
    margin-left: 4px;
}

/* Product Price - Compact */
.product-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.product-price .old-price {
    font-size: 12px;
    color: var(--gray-500);
    text-decoration: line-through;
}

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

/* Add to Cart Button - Compact */
.btn-add-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-add-cart:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-add-cart:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
}

.btn-add-cart svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.pagination .page-link:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.pagination .page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.no-products,
.no-categories {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--radius-xl);
}

.no-products svg,
.no-categories svg {
    color: var(--gray-400);
    margin: 0 auto 24px;
}

.no-products h3,
.no-categories h3 {
    font-size: 20px;
    color: var(--gray-700);
}

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

    .filters-sidebar {
        position: static;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .categories-header h1,
    .category-header h1 {
        font-size: 28px;
    }

    .subcategories {
        flex-direction: column;
    }

    .subcategory-card {
        width: 100%;
    }
}