/* ── 724 Fason Baskı - Header & Navigation CSS ── */
:root {
    --header-dark: #070512;
    --header-light: #110d24;
    --cmyk-cyan: #0084c7;
    --cmyk-magenta: #d80074;
    --cmyk-yellow: #f59e0b;
    --cmyk-black: #0b0914;
    --text-gray: #94a3b8;
    --text-dark: #ffffff;
}

/* Top Shipping Banner Styling */
.shipping-banner-wrapper {
    background-color: var(--header-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    padding: 0.65rem 1rem;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 101;
}

.shipping-banner-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 280px;
}

.shipping-truck-circle {
    background-color: var(--cmyk-magenta);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(216, 0, 116, 0.5);
    animation: pulse-pink 2s infinite;
}

.shipping-truck-circle i {
    color: #ffffff;
    font-size: 1.1rem;
}

.shipping-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.shipping-banner-title {
    font-weight: 800;
    font-size: 0.88rem;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.shipping-banner-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

.shipping-banner-mid {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
}

.shipping-banner-mid span.pink-bold {
    color: #ff3399;
    font-weight: 800;
}

.shipping-banner-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.countdown-container-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.3px;
}

.countdown-label {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.68rem;
}

.countdown-time-val {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #38bdf8;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
    letter-spacing: 0.5px;
}

/* CMYK Under-Bar Stripe */
.cmyk-stripe-bar {
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, 
        var(--cmyk-cyan) 0%, var(--cmyk-cyan) 25%, 
        var(--cmyk-magenta) 25%, var(--cmyk-magenta) 50%, 
        var(--cmyk-yellow) 50%, var(--cmyk-yellow) 75%, 
        #334155 75%, #334155 100%
    );
    position: relative;
    z-index: 101;
}

/* Navigation Menu & Logo Styling */
.site-nav-container {
    background: rgba(15, 12, 34, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    font-family: 'Inter', sans-serif;
}

.site-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.site-logo-custom {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    user-select: none;
}
.site-logo-custom img {
    height: 48px;
    max-height: 48px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
}
.site-logo-custom img.logo-dark-mode {
    display: block !important;
}
.site-logo-custom img.logo-light-mode {
    display: none !important;
}
html[data-theme="light"] .site-logo-custom img.logo-dark-mode {
    display: none !important;
}
html[data-theme="light"] .site-logo-custom img.logo-light-mode {
    display: block !important;
}

/* Center Nav Menu Links */
.header-menu-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.menu-link-item {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.4rem 0.2rem;
}

.menu-link-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--cmyk-magenta);
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.menu-link-item:hover {
    color: #ffffff;
}

.menu-link-item:hover::after {
    width: 80%;
}

.header-dropdown-wrap {
    position: relative;
    display: inline-block;
}
.header-dropdown-wrap:hover .header-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #0f0c22;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}
html[data-theme="light"] .header-dropdown-menu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}
html[data-theme="light"] .dropdown-item {
    color: #1e293b;
}
.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
}
html[data-theme="light"] .dropdown-item:hover {
    background: #f1f5f9;
    color: #0284c7;
}
.dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

/* User Profile Dropdown Styles */
.user-dropdown-wrap {
    position: relative;
    display: inline-block;
}
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.user-profile-btn:hover,
.user-dropdown-wrap:hover .user-profile-btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: #38bdf8;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}
html[data-theme="light"] .user-profile-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}
html[data-theme="light"] .user-profile-btn:hover,
html[data-theme="light"] .user-dropdown-wrap:hover .user-profile-btn {
    background: #e2e8f0;
    border-color: #0284c7;
}
.user-avatar-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #00a8e8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}
.user-wallet-pill {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid #10b981;
    color: #10b981;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 290px;
    background: #0d0a21;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1100;
}
.user-dropdown-wrap:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
html[data-theme="light"] .user-dropdown-menu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.user-dropdown-header {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    margin-bottom: 0.65rem;
}
html[data-theme="light"] .user-dropdown-header {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.user-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.55rem;
    transition: all 0.15s ease;
}
html[data-theme="light"] .user-dropdown-item {
    color: #334155;
}
.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
    transform: translateX(3px);
}
html[data-theme="light"] .user-dropdown-item:hover {
    background: #f1f5f9;
    color: #0284c7;
}
.user-dropdown-item.danger:hover {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
}
.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.45rem 0;
}
html[data-theme="light"] .user-dropdown-divider {
    background: #e2e8f0;
}

/* Right Nav Auth & Actions Panel */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-user-info {
    font-size: 0.78rem;
    color: var(--text-gray);
    margin-right: 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.nav-user-info strong {
    color: #ffffff;
    font-weight: 700;
}

.nav-user-info span {
    font-size: 0.68rem;
    color: #94a3b8;
}

/* Pulse Animations */
@keyframes pulse-pink {
    0% { box-shadow: 0 0 0 0 rgba(216, 0, 116, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(216, 0, 116, 0); }
    100% { box-shadow: 0 0 0 0 rgba(216, 0, 116, 0); }
}

/* Responsive menu tweaks */
@media (max-width: 1024px) {
    .header-menu-links {
        display: none;
    }
    .nav-links {
        display: none !important;
    }
    .mobile-nav-actions {
        display: flex !important;
    }
    .shipping-banner-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    .shipping-banner-left {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .shipping-banner-wrapper {
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        padding: 0.35rem 0.5rem !important;
        gap: 0.5rem !important;
    }
    .shipping-banner-left {
        flex: none !important;
        min-width: unset !important;
        gap: 0.35rem !important;
        justify-content: center !important;
    }
    .shipping-truck-circle {
        width: 24px !important;
        height: 24px !important;
    }
    .shipping-truck-circle i {
        font-size: 0.75rem !important;
    }
    .shipping-banner-title {
        font-size: 0.72rem !important;
        font-weight: 700 !important;
    }
    .shipping-banner-desc {
        display: none !important;
    }
    .shipping-banner-mid {
        display: none !important;
    }
    .shipping-banner-right {
        flex: none !important;
    }
    .countdown-container-box {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
        border-radius: 0.35rem !important;
        gap: 0.35rem !important;
    }
    .countdown-label {
        font-size: 0.6rem !important;
    }
    .countdown-time-val {
        font-size: 0.75rem !important;
    }
    .site-nav {
        padding: 0.4rem 0.5rem !important;
        gap: 0.5rem !important;
    }
    .site-logo-custom img {
        height: 38px !important;
        max-height: 38px !important;
        max-width: 220px !important;
    }
}

/* Mobile Navigation Controls */
.mobile-nav-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.mobile-cart-icon-btn {
    position: relative;
    color: var(--slate-900);
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-cart-icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--cmyk-magenta);
    color: white;
    border-radius: 50%;
    font-size: 0.62rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-menu-toggle-btn {
    background: var(--slate-900);
    border: none;
    color: white;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-toggle-btn:hover {
    background: var(--cmyk-magenta);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: flex-end;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Drawer Content */
.mobile-drawer-content {
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #110d26;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
    overflow-y: auto;
    position: relative;
}

.mobile-drawer-overlay.open .mobile-drawer-content {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.mobile-drawer-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    transition: color 0.2s;
}

.mobile-drawer-close-btn:hover {
    color: var(--cmyk-magenta);
}

/* Drawer User Profile Section */
.mobile-drawer-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #191436;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.mobile-drawer-user-info.admin-mode {
    background: rgba(225, 29, 72, 0.15);
    border-color: rgba(225, 29, 72, 0.3);
}

.mobile-drawer-user-icon {
    font-size: 1.75rem;
    color: var(--primary);
}

.mobile-drawer-user-info.admin-mode .mobile-drawer-user-icon {
    color: var(--cmyk-magenta);
}

.mobile-drawer-user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.mobile-drawer-user-welcome {
    font-size: 0.7rem;
    color: var(--slate-400);
    font-weight: 500;
    text-align: left;
}

.mobile-drawer-user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
}

/* Drawer Links list styling */
.mobile-drawer-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-drawer-section-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 1.25rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.25rem;
    text-align: left;
}

.mobile-drawer-section-title:first-of-type {
    margin-top: 0;
}

.mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mobile-drawer-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--slate-400);
    transition: color 0.2s;
}

.mobile-drawer-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.mobile-drawer-link:hover i {
    color: #38bdf8;
}

.mobile-drawer-link.admin {
    color: #34d399;
}
.mobile-drawer-link.admin i {
    color: #34d399;
}
.mobile-drawer-link.admin:hover {
    background-color: rgba(16, 185, 129, 0.15);
}

.mobile-drawer-link.danger {
    color: #f43f5e;
}
.mobile-drawer-link.danger i {
    color: #f43f5e;
}
.mobile-drawer-link.danger:hover {
    background-color: rgba(225, 29, 72, 0.15);
}
