/**
 * Corporate Theme - UI Components
 * Cart Sidebar, Mobile Menu, Notifications, User Dropdowns
 */

/* ==================== NAVBAR MEGA MENU STYLES ==================== */

.navbar { 
    /* padding değerleri header.php'den inline style ile gelir */
    box-shadow: 0 1px 0 rgba(0,0,0,0.06) !important;
    position: sticky;
    top: 0;
    z-index: 999;
    background: white !important;
    overflow: visible !important;
}

.navbar .container-fluid {
    overflow: visible !important;
}

.navbar-collapse {
    overflow: visible !important;
}

.navbar-nav { 
    gap: 0; 
    position: static !important;
    overflow: visible !important;
}

/* Hero Slider z-index fix */
.hero-slider {
    position: relative !important;
    z-index: 1 !important;
}

/* CRITICAL: Slides must be absolute to overlay properly */
.slide-item {
    position: absolute !important;
}

.slide-image {
    position: absolute !important;
}

/* Allow navigation buttons and dots to stay on top */
.slider-nav,
.slider-dots,
.slider-dot {
    z-index: 100 !important;
}

.nav-link {
    font-size: 16px !important; 
    font-weight: 500 !important; 
    color: #1f1f1f !important;
    padding: 12px  !important; 
    border-radius: 0 !important; 
    transition: all 0.15s !important;
    position: relative;
}

.nav-link:hover,
.mega-menu-item:hover > .nav-link,
.dropdown:hover > .nav-link { 
    background: transparent !important;
    color: #5546ff !important;
}

/* Active indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #5546ff;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav-link:hover::after,
.mega-menu-item:hover > .nav-link::after,
.dropdown:hover > .nav-link::after {
    transform: scaleX(1);
}

/* Dropdown arrow */
.nav-link.dropdown-toggle::after {
    transition: transform 0.2s;
    margin-left: 6px;
}

.nav-item.dropdown:hover .nav-link.dropdown-toggle::after,
.mega-menu-item:hover .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}

/* MEGA MENU - FULL WIDTH BG, CONTAINER İÇERİK */
.mega-menu-item {
    position: static !important;
}

.mega-menu-item .dropdown-menu.mega-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-10px) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    border-top: 1px solid #e5e7eb !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
    background: white !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    z-index: 99999 !important;
    overflow-x: hidden !important;
}

/* HOVER İLE AÇ */
.mega-menu-item:hover .dropdown-menu.mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* İçerik Container - FULL-WIDTH İÇİNDE CONTAINER */
.mega-menu-wrapper {
    display: grid;
    grid-template-columns: 3fr 1.2fr;
    gap: 0;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Sol ve Sağ Background'ları extend et */
.mega-menu-wrapper::before,
.mega-menu-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    pointer-events: none;
}

/* Sol taraf beyaz - sola genişlet */
.mega-menu-wrapper::before {
    background: white;
    right: 380px;
    left: -100vw;
    width: 200vw;
    z-index: -1;
}

/* Sağ taraf gri - sağa genişlet */
.mega-menu-wrapper::after {
    background: #f9fafb;
    left: calc(100% - 380px);
    right: -100vw;
    width: 200vw;
    z-index: -2;
}

.mega-menu-categories { 
    background: transparent;
    padding: 40px 56px 40px 56px;
    position: relative;
    z-index: 1;
}

/* Sol Taraf - 3 Sütun Grid */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Kategori Başlıkları - SADE */
.mega-menu-title {
    font-size: 14px !important; 
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    border: none !important;
    display: block !important;
    line-height: 1.3 !important;
}

.mega-menu-title a {
    color: #1a1a1a !important; 
    text-decoration: none !important;
    transition: color 0.2s !important;
    display: block !important;
}

.mega-menu-title a:hover { 
    color: #5546ff !important; 
}

/* Alt Kategoriler - YAN YANA VİRGÜLLE AYRILMIŞ */
.mega-menu-subcategories {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
    white-space: normal;
}

.mega-menu-subcategories a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
    display: inline-block;
}

.mega-menu-subcategories a:hover {
    color: #5546ff;
}

/* SAĞ TARAF - BAŞARI HİKAYELERİ (GRİ ZEMİN) */
.mega-menu-banner {
    background: #f9fafb;
    padding: 40px 32px 40px 32px;
    border: none;
    border-left: 1px solid #e5e7eb;
    position: relative;
    z-index: 1;
}

.mega-menu-banner-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Banner Header */
.mega-menu-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.mega-menu-banner-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px 0;
    letter-spacing: 0.5px;
}

.mega-menu-banner-link {
    font-size: 13px;
    font-weight: 500;
    color: #5546ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.mega-menu-banner-link:hover {
    color: #4338ca;
}

/* Success Stories Container */
.mega-menu-stories {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

/* Story Card - SADE */
.mega-menu-story-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 0;
}

.mega-menu-story-card:last-child {
    margin-bottom: 0;
}

.mega-menu-story-card:hover {
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/* Logo Container */
.mega-menu-story-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-menu-story-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

/* Story Info */
.mega-menu-story-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-menu-story-name {
    font-size: 13px;
    font-weight: 700;
    color: #5546ff;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.mega-menu-story-stat {
    font-size: 12px;
    font-weight: 500;
    color: #5546ff;
    margin: 0;
}

/* REGULAR DROPDOWN - style */
.dropdown-menu:not(.mega-menu) {
    border-radius: 6px !important; 
    padding: 8px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
    border: 1px solid #e5e7eb !important; 
    margin-top: 8px !important;
    min-width: 200px !important;
    transform: translateY(-10px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
}

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

.dropdown-menu:not(.mega-menu) .dropdown-item,
.dropdown-menu:not(.mega-menu) li a {
    display: block; 
    padding: 6px !important;
    font-size: 14px !important; 
    color: #111827 !important;
    border-radius: 6px !important; 
    transition: all 0.2s !important;
    font-weight: 500 !important; 
    text-decoration: none;
}

.dropdown-menu:not(.mega-menu) .dropdown-item:hover,
.dropdown-menu:not(.mega-menu) li a:hover {
    background: #f3f4f6 !important; 
    color: #5546ff !important;
}

@media (max-width: 1300px) {
    .mega-menu-wrapper {
        max-width: 100%;
        margin: 0 10px;
    }
}

@media (max-width: 991px) {
    .mega-menu-item .dropdown-menu.mega-menu {
        top: auto !important;
        position: absolute !important;
    }
    .mega-menu-wrapper { 
        grid-template-columns: 1fr !important; 
        gap: 0;
        margin: 0;
    }
    .mega-menu-categories {
        padding: 18px 10px;
    }
    .mega-menu-grid { 
        grid-template-columns: 1fr !important; 
        gap: 16px;
    }
    .mega-menu-banner { 
        order: -1;
        padding: 18px 10px;
        border-left: none;
        border-bottom: 1px solid #e5e7eb;
    }
}

/* ==================== CART SIDEBAR ==================== */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
    border-bottom: 2px solid #f0f0f0;
    background: #fafafa;
}

.cart-sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-sidebar-header h3 .cart-count-badge {
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.cart-close {
    background: #fff;
    border: 1px solid #e0e0e0;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.cart-close:hover {
    background: #f5f5f5;
    color: #1a1a1a;
    border-color: #ccc;
}

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

.cart-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.cart-sidebar-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.cart-sidebar-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.cart-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

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

.cart-item-image {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    position: relative;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

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

/* Placeholder for cart modal */
.placeholder-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #f0f0f0 0%, #f8f8f8 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.placeholder-image-small::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 32px;
    color: #d0d0d0;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

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

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.3;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-item-meta {
    font-size: 11px;
    color: #999;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    background: #f8f8f8;
    padding: 4px 10px;
    border-radius: 6px;
}

.cart-item-quantity span:first-child {
    color: #999;
    font-size: 11px;
}

.cart-item-quantity span:last-child {
    color: #1a1a1a;
    font-weight: 600;
}

.cart-item-price {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    white-space: nowrap;
}

.cart-item-price .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    font-weight: 400;
    margin-right: 6px;
    display: block;
    margin-bottom: 2px;
}

.cart-item-remove {
    position: absolute;
    top: 12px;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #999;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s;
    line-height: 1;
}

.cart-item-remove:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.cart-sidebar-footer {
    padding: 24px 20px;
    border-top: 2px solid #f0f0f0;
    background: #fafafa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.cart-total span:first-child {
    color: #666;
    font-size: 14px;
}

.cart-total span:last-child {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.cart-checkout-btn {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.cart-empty {
    text-align: center;
    padding: 60px 30px;
    color: #999;
}

.cart-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #e0e0e0;
    display: block;
}

.cart-empty p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* ==================== MOBILE MENU SIDEBAR ==================== */

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

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

.mobile-sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.mobile-close:hover {
    color: #000;
}

.mobile-sidebar-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-link {
    display: block;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    flex: 1;
    transition: background 0.2s;
}

.mobile-menu-link:hover {
    background: #f8f8f8;
    color: #000;
}

.mobile-toggle {
    background: none;
    border: none;
    padding: 16px 20px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.3s, color 0.2s;
}

.mobile-toggle:hover {
    color: #000;
}

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

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f8f8;
}

.mobile-submenu.active {
    max-height: 1000px;
}

.mobile-submenu .mobile-menu-link {
    padding-left: 40px;
    font-size: 14px;
    font-weight: 400;
}

.mobile-submenu .mobile-submenu .mobile-menu-link {
    padding-left: 60px;
    font-size: 13px;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

/* ==================== USER DROPDOWN ==================== */

#userDropdown {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: white;
    transition: all 0.2s;
}

#userDropdown:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

#userDropdown i {
    color: #495057;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    padding: 8px 0;
    min-width: 200px;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    width: 20px;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #212529;
}

.dropdown-item.text-danger:hover {
    background: #fff5f5;
    color: #dc3545;
}

.dropdown-divider {
    margin: 8px 0;
    border-color: #e9ecef;
}

/* Login/Register Buttons */
.btn-outline-dark {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s;
}

.btn-dark {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s;
}

/* ==================== BREADCRUMB ==================== */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 16px 0;
    margin: 0;
    list-style: none;
    background: transparent;
}

.breadcrumb-item {
    font-size: 14px;
    color: #666;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 8px;
    color: #999;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #5568d3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* ==================== MOBILE RESPONSIVE ==================== */

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
        max-height: 100vh;
        max-height: 100dvh; /* Dynamic viewport height for mobile */
    }
    
    .cart-sidebar-content {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 200px);
        max-height: calc(100dvh - 200px);
    }
    
    .cart-sidebar-footer {
        position: sticky;
        bottom: 0;
        padding: 16px;
        background: #fafafa;
        border-top: 2px solid #f0f0f0;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        margin-bottom: 25px;
    }
    
    .cart-checkout-btn {
        padding: 14px;
        font-size: 14px;
    }
    
    .breadcrumb {
        padding: 12px 0;
        font-size: 13px;
    }
    
    /* Mobile user dropdown */
    #userDropdown {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .btn-outline-dark,
    .btn-dark {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .dropdown-menu {
        min-width: 180px;
        font-size: 13px;
    }
}

/* ==================== NOTIFICATION MODAL ==================== */

.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

.notification-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.notification-modal-content {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

@keyframes iconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.notification-icon i {
    font-size: 48px;
}

/* Success Style */
.notification-icon.success {
    background: linear-gradient(135deg, #d4f4dd 0%, #a8e6cf 100%);
}

.notification-icon.success i {
    color: #10b981;
}

/* Error Style */
.notification-icon.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.notification-icon.error i {
    color: #ef4444;
}

/* Warning Style */
.notification-icon.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.notification-icon.warning i {
    color: #f59e0b;
}

/* Info Style */
.notification-icon.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.notification-icon.info i {
    color: #3b82f6;
}

.notification-message {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin: 0;
    animation: textFadeIn 0.4s ease-out 0.3s backwards;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .notification-modal-content {
        padding: 36px 28px;
        max-width: 340px;
    }
    
    .notification-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .notification-icon i {
        font-size: 36px;
    }
    
    .notification-message {
        font-size: 15px;
    }
}

/* ==================== CART ADDED MODAL ==================== */
.cart-added-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cart-added-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.cart-added-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px 36px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: cartModalSlideIn 0.35s ease-out;
}

@keyframes cartModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cart-added-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6b7280;
}

.cart-added-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: rotate(90deg);
}

.cart-added-close i {
    font-size: 18px;
}

.cart-added-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    animation: cartIconPulse 0.5s ease-out;
}

@keyframes cartIconPulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.cart-added-icon i {
    font-size: 40px;
    color: #059669;
}

.cart-added-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.cart-added-product-name {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 28px;
    line-height: 1.5;
    max-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-added-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-added-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.cart-added-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.cart-added-btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.cart-added-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.cart-added-btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

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

/* Mobile Responsive */
@media (max-width: 480px) {
    .cart-added-modal-content {
        padding: 32px 24px;
        margin: 16px;
        border-radius: 16px;
    }
    
    .cart-added-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }
    
    .cart-added-icon i {
        font-size: 32px;
    }
    
    .cart-added-title {
        font-size: 18px;
    }
    
    .cart-added-product-name {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .cart-added-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ==================== PREVIEW MODE BANNER ==================== */
.preview-mode-banner {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.preview-mode-banner .preview-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.preview-mode-banner .preview-content i {
    font-size: 18px;
}

.preview-mode-banner .preview-content span {
    font-size: 15px;
}

.preview-mode-banner .preview-exit-btn {
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.preview-mode-banner .preview-exit-btn:hover {
    background: rgba(255,255,255,0.3);
}

.preview-mode-spacer {
    height: 48px;
}

/* ==================== PROFESSIONAL DEMO BAR ==================== */
.demo-bar {
    background: #1a1a2e;
    color: #fff;
    padding: 0;
    position: relative;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.demo-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    gap: 20px;
}

.demo-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-bar-badge {
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.demo-bar-text {
    font-size: 13px;
    color: #a0a0b0;
}

.demo-bar-center {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
}

.demo-bar-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-preset-selector {
    display: flex;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    padding: 4px;
    border-radius: 8px;
}

.demo-preset-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.demo-preset-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.demo-preset-btn.active {
    background: #fff;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.demo-preset-btn i {
    font-size: 11px;
}

.demo-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-bar-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.demo-bar-admin-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
}

.demo-bar-admin-btn i {
    font-size: 11px;
    opacity: 0.7;
}

/* Demo Bar Responsive */
@media (max-width: 992px) {
    .demo-bar-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 12px 15px;
    }
    
    .demo-bar-left {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .demo-bar-center {
        order: 2;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .demo-bar-right {
        order: 3;
    }
    
    .demo-preset-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .demo-bar-text {
        display: none;
    }
    
    .demo-preset-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .demo-bar-admin-btn span {
        display: none;
    }
    
    .demo-bar-admin-btn {
        padding: 8px 10px;
    }
}

/* Legacy Demo Mode Banner (deprecated) */
.demo-mode-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: relative;
    z-index: 9999;
}

.demo-mode-banner .demo-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.demo-mode-banner .demo-content i {
    font-size: 18px;
}

.demo-mode-banner .demo-content span {
    font-size: 15px;
}

.demo-mode-banner .demo-credentials {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

@keyframes demo-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.demo-mode-banner .demo-icon {
    animation: demo-pulse 2s infinite;
}

@media (max-width: 768px) {
    .demo-mode-banner { font-size: 12px; padding: 10px 0; }
    .demo-mode-banner .demo-credentials { display: none; }
    .preview-mode-banner { font-size: 12px; padding: 10px 0; }
}

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

.footer-description {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-bottom-links {
    display: inline-flex;
    gap: 20px;
    font-size: 13px;
}

.footer-bottom-links a {
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-bottom-links a:hover {
    opacity: 1;
}

/* ==================== TOP MENU BAND ==================== */

.topmenu {
    background: linear-gradient(var(--topmenu-gradient-dir, to right), var(--topmenu-gradient-start, #404040), var(--topmenu-gradient-end, #2a2a2a)) !important;
    padding: var(--topmenu-padding, 12px) 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    min-height: 0 !important;
    height: auto !important;
}

.topmenu .topmenu-nav {
    display: flex;
    align-items: center;
    justify-content: var(--topmenu-justify, center);
    min-height: 0;
}

.topmenu .topmenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}

.topmenu .topmenu-list li {
    display: inline-block;
}

.topmenu .topmenu-list li a,
.topmenu .topmenu-list .nav-link {
    color: var(--topmenu-text-color, #ffffff) !important;
    text-decoration: none;
    font-size: var(--topmenu-font-size, 14px) !important;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0 !important;
    display: inline-block;
    line-height: 1;
}

.topmenu .topmenu-list li a:hover,
.topmenu .topmenu-list .nav-link:hover {
    color: var(--topmenu-hover-color, #007AFF) !important;
    opacity: 1;
    transform: translateY(-1px);
}

/* Debug Container */
.debug-container {
    margin: 10px auto;
}

/* ==================== SEARCH PANEL ==================== */

.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
}

.search-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    animation: searchFadeIn 0.3s ease;
}

.search-panel-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    margin: 120px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: searchSlideDown 0.3s ease;
    max-height: calc(100vh - 240px);
    display: flex;
    flex-direction: column;
}

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

.search-panel-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.search-input-wrapper .input-group-text {
    border-right: 0;
}

.search-input-wrapper .form-control:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    font-size: 14px;
    font-weight: 600;
    color: #0d6efd;
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.search-no-results i {
    font-size: 3rem;
    opacity: 0.25;
    margin-bottom: 15px;
}

@keyframes searchFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes searchSlideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Search Panel Mobile Responsive */
@media (max-width: 768px) {
    .search-panel-content {
        width: 95%;
        margin: 20px auto;
        max-height: calc(100vh - 40px);
    }
    
    .search-panel-header,
    .search-panel-body {
        padding: 15px;
    }
    
    .search-result-image {
        width: 50px;
        height: 50px;
    }
}

/* ==================== NEWSLETTER MODAL STYLES ==================== */

.newsletter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.newsletter-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.newsletter-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
    z-index: 10;
}

.newsletter-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.newsletter-modal-header {
    text-align: center;
    padding: 32px 24px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.newsletter-modal-header h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
}

.newsletter-modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.newsletter-modal-body {
    padding: 24px;
}

.newsletter-modal-body .form-group {
    margin-bottom: 16px;
}

.newsletter-modal-body .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.newsletter-modal-body .form-group label .required {
    color: #ef4444;
}

.newsletter-modal-body .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.newsletter-modal-body .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.newsletter-modal-body .form-control[readonly] {
    background: #f9fafb;
    color: #6b7280;
}

.newsletter-modal-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.kvkk-consent {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.kvkk-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}

.kvkk-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #667eea;
}

.kvkk-checkbox a {
    color: #667eea;
    text-decoration: underline;
}

.kvkk-checkbox a:hover {
    color: #5a67d8;
}

.newsletter-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.newsletter-modal-footer .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.newsletter-modal-footer .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.newsletter-modal-footer .btn-secondary:hover {
    background: #e5e7eb;
}

.newsletter-modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.newsletter-modal-footer .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-modal-footer .spinner {
    width: 16px;
    height: 16px;
    animation: newsletterSpin 1s linear infinite;
}

@keyframes newsletterSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .newsletter-modal-body .form-row {
        grid-template-columns: 1fr;
    }
    
    .newsletter-modal-footer {
        flex-direction: column;
    }
    
    .newsletter-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== STATS SECTION STYLES ==================== */

.stats-section-modern .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.stat-item-modern:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.stats-empty-state {
    text-align: center;
    padding: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

.stats-empty-state i {
    font-size: 48px;
    margin-bottom: 10px;
}

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item-modern {
    text-align: center;
    padding: 25px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-icon-modern {
    margin-bottom: 10px;
}

.stat-icon-modern img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.stat-icon-modern i {
    font-size: 32px;
}

.stat-number-modern {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label-modern {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-content {
    padding-left: 40px;
}

.stats-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

@media (max-width: 991px) {
    .stats-content {
        padding-left: 0 !important;
        text-align: center;
    }
    
    .stats-grid-modern {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .stats-section-modern .row {
        flex-direction: column !important;
    }
    
    .stats-section-modern .col-lg-7 {
        order: 1;
        width: 100%;
    }
    
    .stats-section-modern .col-lg-5 {
        order: 2;
        width: 100%;
        margin-top: 30px;
    }
    
    .stats-grid-modern {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
    
    .stat-item-modern {
        padding: 20px 10px !important;
    }
    
    .stat-number-modern {
        font-size: 1.8rem !important;
    }
    
    .stat-label-modern {
        font-size: 0.65rem !important;
    }
    
    .stat-icon-modern img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .stats-content {
        padding: 0 20px !important;
    }
}

@media (max-width: 576px) {
    .stats-grid-modern {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .stats-section-modern {
        padding: 40px 0 !important;
    }
    
    .stat-item-modern {
        padding: 15px 8px !important;
    }
    
    .stat-number-modern {
        font-size: 1.5rem !important;
    }
}

/* ==================== NAVBAR LAYOUT STYLES ==================== */

/* Full-width navbar layout */
.navbar-fullwidth {
    position: relative !important;
    overflow: visible !important;
    padding: 15px 0 !important;
}

.navbar-fullwidth > .container-fluid {
    overflow: visible !important;
}

/* Centered navbar layout */
.navbar-centered {
    position: relative !important;
    overflow: visible !important;
}

/* Magaza navbar layout */
.navbar-magaza {
    position: relative !important;
    overflow: visible !important;
}

/* Mobile header icons container with 18px gap */
.mobile-header-icons-gap {
    gap: 18px !important;
}

/* Mobile icon buttons - NO color override, let .header-icon class handle it */
.mobile-icon-btn,
.mobile-icon-btn.btn-link,
.btn.btn-link.mobile-icon-btn {
    text-decoration: none !important;
    font-size: 18px !important;
}

.mobile-icon-btn:hover,
.mobile-icon-btn.btn-link:hover {
    text-decoration: none !important;
}

.mobile-icon-btn:focus,
.mobile-icon-btn.btn-link:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle,
.mobile-menu-toggle.btn-link {
    color: inherit !important;
    font-size: 20px !important;
}

/* Desktop header icon buttons - NO color override, let .header-icon class handle it */
.navbar .header-icon-btn,
.navbar .header-icon-btn.btn-link,
.navbar .btn.btn-link.header-icon-btn,
.header-icon-btn,
.header-icon-btn.btn-link,
.btn.btn-link.header-icon-btn {
    text-decoration: none !important;
    font-size: 20px !important;
    padding: 0.375rem 0.5rem !important;
    background: transparent !important;
    border: none !important;
}

.navbar .header-icon-btn:hover,
.navbar .header-icon-btn.btn-link:hover,
.header-icon-btn:hover,
.header-icon-btn.btn-link:hover {
    text-decoration: none !important;
    background: transparent !important;
}

.navbar .header-icon-btn:focus,
.navbar .header-icon-btn.btn-link:focus,
.header-icon-btn:focus,
.header-icon-btn.btn-link:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Push notification status dot */
.push-notification-btn { 
    position: relative; 
}
.push-status-dot {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid white;
}
.push-notification-btn.subscribed .push-status-dot { 
    display: block !important; 
}

/* Header cart badge */
.header-cart-badge {
    display: none;
    font-size: 11px !important;
    top: 5px !important;
    right: -5px !important;
}

/* Cart badge - hidden by default, shown via JS */
.mobile-cart-badge {
    display: none;
    font-size: 10px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    top: -8px !important;
    right: -8px !important;
}

/* ==================== HOMEPAGE CATEGORIES SECTION ==================== */

.homepage-categories-section {
    padding: 60px 0;
    background: #f8f9fa;
}

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

.category-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.category-box:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.category-box-title {
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-primary), system-ui, -apple-system, sans-serif;
    color: #0066cc;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.category-box-title a {
    color: inherit;
    text-decoration: none;
}

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

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.subcategory-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.subcategory-item:hover {
    transform: scale(1.02);
}

.subcategory-item:hover .subcategory-name {
    color: #0066cc;
}

.subcategory-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.subcategory-item:hover .subcategory-image img {
    transform: scale(1.05);
}

.subcategory-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    color: #999;
    font-size: 32px;
}

.subcategory-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.category-discover-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #0066cc;
    text-decoration: none;
    padding-top: 8px;
    border-top: 1px solid #eee;
    width: 100%;
}

.category-discover-link:hover {
    color: #004499;
    text-decoration: underline;
}

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

/* Responsive: 2 columns on small tablet */
@media (max-width: 991px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .homepage-categories-section {
        padding: 40px 0;
    }
    
    .category-box {
        padding: 20px;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 575px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .homepage-categories-section {
        padding: 30px 0;
    }
    
    .category-box {
        padding: 16px;
    }
    
    .subcategory-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .subcategory-name {
        font-size: 11px;
    }
}
