/* ============================================
   MODERN PREMIUM E-COMMERCE HEADER - 2025
   ============================================ */

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

/* ANTI-SQUASH FORCE DESKTOP - DISABLED FOR RESPONSIVE CHECK
html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
}
*/
html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Removed forced min-width on containers to fix layout issues */
/* The body min-width is sufficient to prevent squashing */

:root {
    /* Color Palette */
    --gradient-start: #f8f7ff;
    --gradient-end: #f0f4ff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #ffffff;
    /* New light text color */
    --accent-purple: #8b7bd8;
    --accent-blue: #6b9bd8;
    --border-color: #e5e5e5;
    --shadow-light: rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --header-height: 80px;
    --container-padding: 40px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ============================================
   MAIN HEADER (Solid White with Border)
   ============================================ */

/* ============================================
   MAIN HEADER (Solid White with Border)
   ============================================ */

.main-header {
    position: relative;
    /* Changed from absolute to relative */
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #ffffff;
    /* White background */
    border-bottom: 1px solid var(--border-color);
    /* Gray border */
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-container {
    max-width: 1920px;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    position: relative;
}

/* ============================================
   LOGO
   ============================================ */

.logo {
    flex-shrink: 0;
    margin-right: 20px;
    position: relative;
    left: 0;
    transform: none;
    z-index: 10;
    order: -1;
}

.logo a {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
    /* Dark text */
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-shadow: none;
    white-space: nowrap;
}

.logo a:hover {
    color: var(--accent-purple);
    transform: translateY(-1px);
    text-shadow: 2px 2px 4px rgba(139, 123, 216, 0.3);
}

/* ============================================
   NAVIGATION MENU
   ============================================ */

.main-nav {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    margin-left: 0;
    margin-right: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}

.nav-link {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    /* Dark text */
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    /* Purple underline */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-purple);
    opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* HEADER ICONS & INTERACTIONS */
.header-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    /* Boşluk minimuma indirildi */
    flex-shrink: 0;
    margin-left: auto;
    white-space: nowrap;
}

.mobile-menu-toggle,
.mobile-categories-btn,
.mobile-search-btn {
    display: none !important;
}

/* İkon yanındaki yazılar */
.icon-label {
    display: inline-block;
    font-size: 11px;
    /* Font biraz küçültüldü */
    font-weight: 600;
    margin-left: 3px;
    /* İkonla yazı arası minimize edildi */
    color: var(--text-primary);
    white-space: nowrap;
    transition: all 0.2s;
}

.icon-btn {
    position: relative;
    height: 36px;
    padding: 0 4px;
    /* Buton içi boşluk azaltıldı */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    /* Transparent background */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: none;
}

.icon-btn i {
    font-size: 14px;
    color: var(--text-primary);
    /* Dark icons */
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    border-color: var(--text-primary);
}

.icon-btn:hover i {
    color: var(--text-primary);
}

.icon-btn:active {
    transform: translateY(0);
}

/* Cart Count Badge */
/* Cart Count Badge (Gizlendi) */
/* Cart Count Badge (Gizlendi) */
.cart-count {
    display: none !important;
}

/* Inline Search Bar (Toggleable) */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 15px;
    justify-content: flex-end;
    /* Sağa yaslı */
}

.search-input {
    width: 0;
    /* Başlangıçta kapalı */
    opacity: 0;
    visibility: hidden;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    background: #ffffff;
    color: #333;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Yumuşak geçiş */
    position: absolute;
    right: 36px;
    /* Butonun solundan başlasın */
    z-index: 10;
}

/* Aktif olduğunda açılacak stil */
.search-container.active .search-input {
    width: 250px;
    /* İstenen uzunluk */
    opacity: 1;
    visibility: visible;
    padding: 0 12px 0 16px;
    /* Sağda ve solda boşluk */
    border-color: #e0e0e0;
    right: 36px;
}

.search-btn {
    position: relative;
    z-index: 20;
    /* Inputun üzerinde kalsın */
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.search-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.search-container.active .search-btn {
    background: transparent;
    /* Açıkken arka plan olmasın */
}

.search-input:focus {
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.search-container.active .search-btn {
    background: white;
    color: var(--text-primary);
    transform: none;
}

.search-container.active .search-btn i {
    color: var(--text-primary);
}

/* User Dropdown (Keep white background for dropdowns) */
.user-menu-container {
    position: relative;
    padding-bottom: 10px;
    /* Bridge gap for hover */
    margin-bottom: -10px;
}

/* Enable Hover */
.user-menu-container:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    word-break: break-word;
    /* Ensure long emails wrap */
    overflow: hidden;
    /* Contain content */
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

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

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

/* Standard Dropdown Item */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

/* Compact Dropdown Item (User Request) */
.dropdown-item.compact {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 400;
}

.dropdown-item:hover {
    background: #f8f7ff;
    color: var(--accent-purple);
}

/* Sidebar (Keep existing styles) */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

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

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1003;
    display: flex;
    flex-direction: column;
}


.icon-btn {
    background: transparent;
    border: 1px solid transparent;
    font-size: 14px;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    width: auto;
    padding: 0 6px;
    border-radius: 16px;
}

.icon-btn .icon-label {
    font-size: 10px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    display: inline-block;
}

/* Hover Effects */
.icon-btn:hover {
    background-color: #f5f5f5;
    color: var(--accent-purple);
}

.icon-btn:hover .icon-label {
    color: var(--accent-purple);
}

/* Icon Only Buttons (like Search Loop inside input) should remain manageable */
.icon-btn:empty,
.icon-btn.icon-only {
    width: 32px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

/* Specific Search Button Styling - Merged with top section */
/* Removed redundant block to fix width issues */

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-badge {
    background: var(--accent-purple);
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
}

.close-sidebar {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-sidebar:hover {
    background: #f5f5f5;
    color: var(--text-primary);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
}

/* Sidebar Items */
.sidebar-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    background: #f5f5f5;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
    line-height: 1.4;
}

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

.item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qty-btn:hover {
    transform: translateY(-1px);
}

.qty-val {
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #ff5252;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: rgba(255, 82, 82, 0.1);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
    color: var(--accent-purple);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 18px;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    font-family: var(--font-primary);
}

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

.btn-primary:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: #f8f8f8;
}

/* ============================================
   CART & FAVORITES SIDEBARS
   ============================================ */

.cart-sidebar,
.favorites-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
    /* Z-Index higher than header (1100) */
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active,
.favorites-sidebar.active {
    transform: translateX(0);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
    margin-top: auto;
}

.checkout-btn {
    display: block;
    text-align: center;
    text-decoration: none;
}

/* ============================================
   GRADIENT HERO SECTION
   ============================================ */

.gradient-hero {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f7ff;
    padding: 60px 20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #8b7bd8, #a29bfe);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #fab1a0, #ff7675);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--text-primary) 0%, #6c5ce7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-hero {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-hero {
    background: var(--text-primary);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: black;
}

.btn-secondary-hero {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--text-primary);
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-purple);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-stats {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-menu-toggle i {
    font-size: 22px;
    color: var(--text-primary);
}

.mobile-menu-toggle:hover {
    background: white;
}

.mobile-menu-toggle:hover i {
    color: var(--text-primary);
}

/* ============================================
   CATEGORY PAGES & CONTENT
   ============================================ */

/* Adjust main content to start after the hero video */
.main-content {
    position: relative;
    background: white;
    z-index: 2;
}

/* Breadcrumb */
.breadcrumb {
    background: #fafafa;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb i {
    font-size: 12px;
    color: var(--text-secondary);
}

.breadcrumb span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Category Hero */
.category-hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 60px 20px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 32px;
}

.category-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(139, 123, 216, 0.15);
    flex-shrink: 0;
}

.category-icon i {
    font-size: 48px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-info h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.category-info p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Subcategories Section */
.subcategories-section {
    padding: 80px 20px;
    background: #ffffff;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
    text-align: center;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.subcategory-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.subcategory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 123, 216, 0.15);
    border-color: var(--accent-purple);
}

.subcategory-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 12px;
    margin-bottom: 20px;
}

.subcategory-icon i {
    font-size: 28px;
    color: var(--accent-purple);
}

.subcategory-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.subcategory-items {
    list-style: none;
    margin-bottom: 20px;
}

.subcategory-items li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.subcategory-items li::before {
    content: '�';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: bold;
}

.subcategory-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-purple);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.subcategory-link:hover {
    gap: 12px;
}

.subcategory-link i {
    font-size: 12px;
}

/* Category Cards Grid (Homepage) */
.categories-section {
    padding: 80px 20px;
    background: transparent;
}

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

.category-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(139, 123, 216, 0.2);
    border-color: var(--accent-purple);
}

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

.category-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.category-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 40px 20px 20px;
    color: white;
    text-align: center;
}

.category-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.category-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --container-padding: 24px;
    }

    .nav-menu {
        gap: 24px;
    }

    .nav-link {
        font-size: 14px;
    }

    .header-icons {
        gap: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --container-padding: 16px;
    }

    .header-container {
        gap: 16px;
        padding: 0 16px;
    }

    .logo {
        left: 0;
        transform: none;
    }

    .logo a {
        font-size: 24px;
        font-weight: 900;
    }

    .main-nav {
        display: block;
        /* Show nav for our custom mobile strip */
    }

    .header-icons {
        gap: 12px;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
        /* Larger touch target for mobile */
        min-height: 44px;
        min-width: 44px;
    }

    .icon-btn i {
        font-size: 18px;
    }

    .mobile-menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        min-height: 44px;
        min-width: 44px;
    }

    .sidebar {
        width: 100%;
    }

    .search-input {
        position: absolute;
        top: 100%;
        right: 0;
        width: calc(100vw - 32px);
        margin-right: 0;
        background: white;
        color: var(--text-primary);
        font-size: 16px;
        /* Larger font for mobile readability */
    }

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

    /* Improved mobile touch interactions */
    .nav-link,
    .category-card,
    .subcategory-card {
        min-height: 44px;
        /* Ensure touch targets are large enough */
    }

    /* Better mobile category cards */
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .category-card {
        padding: 20px 16px;
    }

    .category-card .category-icon {
        margin-bottom: 12px;
    }

    .category-card .category-icon i {
        font-size: 36px;
    }

    .category-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .category-card p {
        font-size: 12px;
    }

    /* Mobile hero improvements */
    .hero-slider {
        min-height: 300px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 18px;
    }

    /* Mobile footer improvements */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-grid-wrapper {
        padding: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
    }

    .header-icons {
        gap: 8px;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
        min-width: 44px;
        min-height: 44px;
    }

    .icon-btn i {
        font-size: 16px;
    }

    .cart-count {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
    }

    /* Better small mobile layout */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-card {
        padding: 16px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .category-card .category-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .category-card .category-icon i {
        font-size: 28px;
    }

    .category-card h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .category-card p {
        font-size: 12px;
        line-height: 1.3;
    }

    /* Small mobile footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-grid-wrapper {
        padding: 16px;
    }

    .footer-title {
        font-size: 14px;
    }

    .footer-links a {
        font-size: 12px;
    }
}

/* ============================================
    SITE INTRODUCTION BANNER
    ============================================ */

.site-intro-banner {
    width: 80%;
    max-width: 1500px;
    height: 330px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    margin: 10% auto;
    border-radius: 0;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 600px;
    padding: 0 20px;
}

.banner-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 24px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.btn-banner {
    background: var(--accent-purple);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 123, 216, 0.3);
}

.btn-banner:hover {
    background: #7c6bd1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 123, 216, 0.4);
}

/* ============================================
    BRANDS SECTION
    ============================================ */

.brands-section {
    padding: 80px 20px;
    background: white;
}

.brands-slider-container {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: #fafafa;
    padding: 40px 0;
}

.brands-slider-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.brands-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brands-slide.active {
    opacity: 1;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.brand-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.brand-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 123, 216, 0.2);
    border-color: var(--accent-purple);
}

.brand-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-circle:hover img {
    transform: scale(1.1);
}

/* Brands Slider Navigation */
.brands-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    font-size: 24px;
    padding: 12px 16px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.brands-slider-btn:hover {
    background: var(--accent-purple);
    color: white;
    border-color: var(--accent-purple);
    transform: translateY(-50%) scale(1.1);
}

.brands-slider-btn.prev {
    left: 20px;
}

.brands-slider-btn.next {
    right: 20px;
}

/* Brands Slider Dots */
.brands-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.brand-dot.active {
    background: var(--accent-purple);
    width: 40px;
    border-radius: 6px;
}

.brand-dot:hover {
    background: rgba(139, 123, 216, 0.7);
}

/* ============================================
    FUTURE CONTENT SECTION
    ============================================ */

.future-content {
    width: 80%;
    max-width: 1500px;
    margin: 10% auto;
    padding: 80px 20px;
    background: #fafafa;
    border-radius: 0;
}

.content-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 0;
    border: 2px dashed var(--border-color);
}

.content-placeholder h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.content-placeholder p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mobile responsive for banner content */
@media (max-width: 768px) {
    .site-intro-banner {
        margin: 20px 0;
    }

    .banner-content h2 {
        font-size: 28px;
    }

    .banner-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .btn-banner {
        padding: 12px 24px;
        font-size: 14px;
    }

    .brands-slider-container {
        padding: 20px 0;
    }

    .brands-slider-wrapper {
        height: 300px;
    }

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

    .brand-circle {
        width: 120px;
        height: 120px;
    }

    .brands-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        padding: 8px 12px;
    }

    .content-placeholder {
        padding: 40px 16px;
    }

    .content-placeholder h2 {
        font-size: 20px;
    }

    .content-placeholder p {
        font-size: 14px;
    }
}



.slide-content .btn:hover {
    background: #7c6bd1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 123, 216, 0.4);
}

/* Mobile responsive for slide content */
@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .slide-content .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Responsive image containers */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

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

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

/* ============================================
    LOADING STATES & MICRO-INTERACTIONS
    ============================================ */

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 123, 216, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-purple);
    animation: spin 1s ease-in-out infinite;
}

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

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Button loading states */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

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

/* Hover animations */
.category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 123, 216, 0.1), rgba(107, 155, 216, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    z-index: -1;
}

.category-card:hover::before {
    opacity: 1;
}

/* Icon animations */
.icon-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* Cart count animation */
.cart-count {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-count.updated {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {

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

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

/* Search input animation */
.search-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Product card hover effects */
.sidebar-item {
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background: rgba(139, 123, 216, 0.05);
    border-radius: 8px;
    padding: 8px;
    margin: -8px;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
    SMOOTH SCROLLING
    ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
    ACCESSIBILITY
    ============================================ */

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-purple);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 500;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Focus indicators */
.icon-btn:focus-visible,
.nav-link:focus-visible,
.logo a:focus-visible,
.category-card:focus-visible,
.subcategory-card:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image accessibility */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Image loading states for accessibility */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* High contrast mode for images */
@media (prefers-contrast: high) {
    img {
        filter: contrast(1.2);
    }

    .category-image img {
        border: 1px solid var(--text-primary);
    }
}

/* Reduced motion for image animations */
@media (prefers-reduced-motion: reduce) {
    .category-image img {
        transition: none;
    }

    img[loading="lazy"] {
        transition: none;
        opacity: 1;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
        --accent-purple: #0000ff;
    }

    .icon-btn,
    .nav-link {
        border: 2px solid var(--text-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

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

/* Main Footer Grid (Gray Box) */
.footer-grid-wrapper {
    background: #222;
    border-radius: 24px;
    padding: 60px;
    margin-bottom: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    align-items: start;
}


.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    white-space: nowrap;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li i {
    font-size: 16px;
    color: var(--accent-purple);
    min-width: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.working-hours,
.working-hours-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.6;
}

.working-hours i {
    margin-top: 2px;
}

/* Payment Logos */
.payment-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.payment-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 80px;
}

.payment-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.payment-logo i {
    font-size: 24px;
    color: var(--accent-purple);
}

.payment-logo span {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.payment-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* Footer Bottom */


/* Footer Responsive */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 15px;
        margin-top: 60px;
    }

    .footer-grid-wrapper {
        padding: 24px;
    }

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

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

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

/* Mega Menu styles have been moved to mega_menu_styles.css to prevent conflicts */

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1002;
    display: none;
    padding: 10px 0;
}

.search-results.active {
    display: block;
}

.search-section-title {
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    margin-top: 5px;
}

.search-section-title:first-child {
    margin-top: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    cursor: pointer;
}

.search-result-item:hover,
.search-result-item.selected {
    background: #f0f4ff;
}

.search-result-item i {
    color: var(--text-secondary);
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-name {
    font-weight: 500;
    font-size: 14px;
}

.search-result-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================
   UI IMPROVEMENTS (Auto-Added)
   ============================================ */

/* Active State for Header Icons */
.icon-btn.active,
.search-container.active .search-btn {
    background: #f3f0ff !important;
    color: var(--accent-purple) !important;
    transform: scale(1.05);
    border: 1px solid var(--accent-purple-light, #dcd6f7);
    box-shadow: 0 0 0 4px rgba(139, 123, 216, 0.1);
}

.icon-btn.active i,
.search-container.active .search-btn i {
    color: var(--accent-purple) !important;
}

/* Refined Dropdown Animation */
.user-dropdown {
    transform-origin: top right;
    transform: translateY(10px) scale(0.95);
}

.user-dropdown.active {
    transform: translateY(0) scale(1);
}

/* Search Input Visibility Force */
.search-container.active .search-input {
    visibility: visible !important;
    opacity: 1 !important;
    width: 320px !important;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: -200px;
    /* Başlangıçta gizli */
    left: 0;
    width: 100%;
    background-color: #1a1a1a !important;
    /* Premium Koyu Gri */
    color: #fff !important;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 999999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transition: bottom 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    font-family: 'Poppins', sans-serif;
    border-top: 1px solid #333;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-text {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #e0e0e0;
    max-width: 800px;
}

.cookie-text a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.cookie-text a:hover {
    color: #aaa;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.cookie-btn-accept {
    background-color: #fff;
    color: #000;
}

.cookie-btn-accept:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background-color: transparent;
    color: #aaa;
    border: 1px solid #444;
}

.cookie-btn-decline:hover {
    border-color: #fff;
    color: #fff;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;

        .cookie-btn {
            flex: 1;
        }
    }
}

/* --- HYBRID CATEGORY PAGE STYLES --- */

/* 1. Subcategory Chips (Top Scrollable Bar) */
.subcategory-chips-section {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
    position: sticky;
    top: 60px;
    /* Below sticky header */
    z-index: 900;
}

.subcategory-chips-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 5px;
    /* Space for scrollbar if any */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.subcategory-chips-wrapper::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.sub-chip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 50px;
    /* Capsule shape */
    font-size: 13px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sub-chip i {
    color: #8b7bd8;
    font-size: 14px;
}

.sub-chip:hover {
    background: #8b7bd8;
    color: #fff;
    border-color: #8b7bd8;
}

.sub-chip:hover i {
    color: #fff;
}

/* 2. Listing Controls (Filter/Sort) */
.listing-controls {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .subcategory-chips-section {
        top: 105px;
        /* Header + Subnav on mobile */
        padding: 10px 0;
    }

    .category-hero {
        padding: 1rem 0 !important;
        /* Smaller hero on mobile */
    }

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

    .products-grid {
        /* Ensure 2-column on mobile as per previous rules */
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Page Main Title */
.page-main-title {
    text-align: center !important;
    color: #000;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
    margin: 40px 0 20px;
}