/**
 * Header Etsy-Style CSS
 * CiftcidenEve - Modern Header Design
 *
 * Design System Variables from CLAUDE.md
 */

:root {
    /* Primary Colors */
    --color-primary: #1A6355;
    --color-accent: #b9475e;
    --color-accent-hover: #e79275;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #FFF3E5;
    --bg-overlay: rgba(0, 0, 0, 0.5);

    /* Text Colors */
    --text-primary: #1A6355;
    --text-secondary: #7d91a3;
    --text-dark: #4D4D4D;

    /* Borders & Shadows */
    --border-color: #e6e6e6;
    --shadow-default: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* Spacing */
    --header-height: 70px;
    --navbar-height: 50px;
    --mobile-header-height: 56px;

    /* Border Radius */
    --radius-default: 3px;
    --radius-round: 50%;
    --radius-pill: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index layers */
    --z-header: 100;
    --z-navbar: 99;
    --z-sticky: 200;
    --z-mobile-menu: 9999;
    --z-search-fab: 1000;
}

/* ==========================================================================
   DESKTOP HEADER
   ========================================================================== */

.header-etsy {
    background: var(--bg-primary) !important;
    height: var(--header-height) !important;
    border-bottom: 1px solid var(--border-color) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: var(--z-header) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
}

.header-etsy .header-container {
    max-width: 1230px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    visibility: visible !important;
    overflow: visible !important;
}

/* Logo */
.header-etsy .header-logo {
    flex-shrink: 0 !important;
}

.header-etsy .header-logo img {
    height: 48px !important;
    width: auto !important;
}

/* Search Bar - Desktop */
.header-etsy .header-search {
    flex: 1 !important;
    max-width: 600px !important;
    min-width: 200px !important;
}

.header-etsy .header-search-wrapper {
    position: relative;
    width: 100%;
}

.header-etsy .header-search-input {
    width: 100%;
    height: 44px;
    padding: 0 50px 0 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-family: 'Fira Sans', sans-serif;
    transition: border-color var(--transition-fast);
}

.header-etsy .header-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

.header-etsy .header-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-round);
    background: var(--color-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.header-etsy .header-search-btn:hover {
    background: var(--color-accent);
}

.header-etsy .header-search-btn svg {
    width: 18px;
    height: 18px;
}

/* Header Actions (Icons) */
.header-etsy .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

.header-etsy .header-action-item {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: var(--radius-round) !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    transition: all var(--transition-fast) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.header-etsy .header-action-item:hover {
    background: var(--bg-secondary);
    color: var(--color-accent);
    transform: scale(1.05);
}

.header-etsy .header-action-item:active {
    transform: scale(0.95);
}

.header-etsy .header-action-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
}

/* Cart Badge */
.header-etsy .header-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--color-accent);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-etsy .header-cart-badge:empty {
    display: none;
}

/* Auth Buttons - Desktop (Hidden - now using profile trigger) */
.header-etsy .header-auth-buttons {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.header-etsy .header-auth-btn {
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Fira Sans', sans-serif;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

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

.header-etsy .header-auth-btn.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(26, 99, 85, 0.25);
}

.header-etsy .header-auth-btn.btn-primary {
    background: var(--color-accent);
    color: white;
    border: 2px solid var(--color-accent);
}

.header-etsy .header-auth-btn.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(185, 71, 94, 0.3);
}

/* ==========================================================================
   PROFILE DROPDOWN WRAPPER
   ========================================================================== */

.header-profile-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 999999 !important;
}

/* ==========================================================================
   PROFILE TRIGGER BUTTON
   ========================================================================== */

.header-etsy .header-profile-trigger {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border: 2px solid var(--color-primary) !important;
    border-radius: 50% !important;
    background: transparent !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all var(--transition-fast) !important;
    overflow: hidden !important;
}

.header-etsy .header-profile-trigger:hover {
    background: var(--bg-secondary) !important;
    transform: scale(1.05) !important;
}

.header-etsy .header-profile-trigger svg {
    width: 20px !important;
    height: 20px !important;
    color: var(--color-primary) !important;
}

.header-etsy .header-profile-avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* ==========================================================================
   PROFILE DROPDOWN MENU
   ========================================================================== */

.header-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999999 !important;
    overflow: hidden;
}

.header-profile-dropdown.active {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    z-index: 999999 !important;
}

/* Dropdown Tabs */
.profile-dropdown-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: #fafafa;
}

.profile-tab {
    flex: 1;
    padding: 14px 8px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Fira Sans', sans-serif;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.profile-tab:hover {
    color: var(--color-primary);
    background: rgba(26, 99, 85, 0.05);
}

.profile-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: white;
}

/* Tab Badge for unread count */
.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    margin-left: 2px;
    background: var(--color-accent);
    color: white;
    font-size: 9px;
    font-weight: 600;
    border-radius: 8px;
    line-height: 1;
    flex-shrink: 0;
}

.profile-tab.active .tab-badge {
    background: var(--color-primary);
}

/* Menu Badge for pending orders count */
.menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #b9475e;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    line-height: 1;
    margin-left: auto;
    flex-shrink: 0;
}

.profile-dropdown-link:hover .menu-badge {
    background: #e79275;
}

/* Tab Content */
.profile-tab-content {
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.profile-tab-content.active {
    display: block;
}

/* Notifications and Messages containers */
.profile-dropdown-notifications,
.profile-dropdown-messages {
    padding: 8px;
    min-height: 100px;
}

.profile-dropdown-notifications:empty::after,
.profile-dropdown-messages:empty::after {
    content: 'Henüz bir şey yok';
    display: block;
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-dropdown-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* View all link */
.profile-dropdown-view-all {
    justify-content: center !important;
    color: var(--color-primary) !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.profile-dropdown-view-all span {
    text-align: center !important;
    width: 100% !important;
}

.profile-dropdown-view-all:hover {
    background: var(--bg-secondary) !important;
}

/* Center the view all section */
.profile-tab-content .profile-dropdown-section:last-child {
    text-align: center !important;
}

.profile-tab-content .profile-dropdown-section:last-child .profile-dropdown-view-all {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Add product link */
.profile-dropdown-add {
    color: var(--color-primary) !important;
    font-weight: 600 !important;
}

.profile-dropdown-add svg {
    color: var(--color-primary) !important;
}

/* Shop action links (Dükkan Aç, Abonelik Yenile, Abonelik Yönet) */
.profile-dropdown-shop-action {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #fff5eb 100%) !important;
    color: var(--color-primary) !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    margin: 4px 8px !important;
    padding: 10px 12px !important;
}

.profile-dropdown-shop-action svg {
    color: var(--color-primary) !important;
}

.profile-dropdown-shop-action:hover {
    background: linear-gradient(135deg, #ffe4d6 0%, #ffeee0 100%) !important;
}

.profile-dropdown-renew {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe8cc 100%) !important;
    color: #bf833a !important;
}

.profile-dropdown-renew svg {
    color: #bf833a !important;
}

.profile-dropdown-renew:hover {
    background: linear-gradient(135deg, #ffe8cc 0%, #ffd9a8 100%) !important;
}

.profile-dropdown-upgrade {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
    color: var(--color-primary) !important;
}

.profile-dropdown-upgrade svg {
    color: var(--color-primary) !important;
}

.profile-dropdown-upgrade:hover {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%) !important;
}

/* Dropdown Header */
.profile-dropdown-header {
    padding: 16px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #fff5eb 100%);
    border-bottom: 1px solid var(--border-color);
}

.profile-dropdown-user {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px;
    margin: -8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.profile-dropdown-user:hover {
    background: rgba(0, 0, 0, 0.03);
}

.profile-dropdown-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.profile-dropdown-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    object-fit: cover;
}

.profile-dropdown-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.profile-dropdown-avatar-placeholder svg {
    width: 24px;
    height: 24px;
}

.profile-dropdown-info {
    flex: 1;
    min-width: 0;
}

.profile-dropdown-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #e8e8e8;
    color: #666;
    font-size: 11px;
    font-weight: 500;
    border-radius: 10px;
}

.profile-dropdown-badge.badge-seller {
    background: var(--color-primary);
    color: white;
}

/* Dropdown Sections */
.profile-dropdown-section {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-dropdown-section:last-child {
    border-bottom: none;
}

.profile-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Fira Sans', sans-serif;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.profile-dropdown-link:hover {
    background: var(--bg-secondary);
    color: var(--color-primary);
}

.profile-dropdown-link:active {
    background: #f0e6dc;
}

.profile-dropdown-link svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.profile-dropdown-link:hover svg {
    color: var(--color-primary);
}

.profile-dropdown-link span {
    flex: 1;
}

/* Logout link */
.profile-dropdown-logout {
    color: #d63e2e !important;
}

.profile-dropdown-logout svg {
    color: #d63e2e !important;
}

.profile-dropdown-logout:hover {
    background: #fff5f5 !important;
    color: #c0392b !important;
}

/* Mobile adjustments for profile dropdown */
@media (max-width: 670px) {
    .header-profile-dropdown {
        position: fixed;
        top: 56px; /* Start from below mobile header */
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: none;
        border-radius: 0;
        transform: translateY(0);
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 99999; /* Higher than everything including dashboard sidebar */
        padding-bottom: 30px;
        overflow-y: auto;
        background: #fff;
    }

    .header-profile-dropdown.active {
        display: block;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 100000 !important; /* Must be higher than dashboard sidebar (9999) */
    }

    /* Conversation page z-index fix - ensure profile dropdown appears above messages area */
    .body-conversation .header-profile-dropdown.active {
        z-index: 100001 !important;
    }

    /* Lower z-index for conversation container when profile dropdown is open */
    body.profile-dropdown-open .container,
    body.profile-dropdown-open .responsive-messages,
    body.profile-dropdown-open .conversation-modern-container {
        z-index: auto !important;
        position: relative !important;
    }

    /* Hide sticky search when profile dropdown is open */
    body.profile-dropdown-open .mobile-search-sticky {
        display: none !important;
    }

    /* Hide feedback button when profile dropdown is open */
    body.profile-dropdown-open .feedback-trigger {
        display: none !important;
    }

    /* Hide dashboard sidebar/overlay/menu when profile dropdown is open */
    body.profile-dropdown-open .dashboard-sidebar,
    body.profile-dropdown-open .dashboard-menu-overlay,
    body.profile-dropdown-open .dashboard-menu,
    body.profile-dropdown-open .dashboard-layout .dashboard-sidebar,
    body.profile-dropdown-open .dashboard-mobile-header {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        z-index: -1 !important;
        pointer-events: none !important;
        transform: translateX(-100%) !important;
        left: -9999px !important;
        position: absolute !important;
    }

    .profile-dropdown-header {
        padding: 20px 16px;
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, var(--bg-secondary) 0%, #fff5eb 100%);
        z-index: 1;
    }

    .profile-dropdown-section {
        padding: 12px;
    }

    .profile-dropdown-link {
        padding: 14px 12px;
        font-size: 15px;
    }

    /* Ensure "Tümünü Gör" button is always visible */
    .profile-dropdown-view-all {
        margin-bottom: 8px;
    }

    /* Ensure all sections are visible - remove any height constraints */
    .profile-tab-content {
        max-height: none !important;
        overflow: visible !important;
    }

    /* Add extra padding at bottom for scrolling */
    .profile-tab-content:last-child {
        padding-bottom: 30px;
    }
}

/* ==========================================================================
   USER MENU - MODERN DESIGN (Legacy - kept for reference)
   ========================================================================== */

.header-user-menu-modern {
    position: relative !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.header-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 24px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'Fira Sans', sans-serif;
}

.header-user-trigger:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.header-user-trigger[aria-expanded="true"] {
    background: var(--bg-secondary);
    border-color: var(--color-primary);
}

.header-user-avatar-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.header-user-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-round);
    border: 2px solid var(--color-primary);
    object-fit: cover;
}

.header-user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-round);
    border: 2px solid var(--color-primary);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.header-user-avatar-placeholder svg {
    width: 20px;
    height: 20px;
}

.header-user-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--color-accent);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.header-user-trigger[aria-expanded="true"] .header-user-arrow {
    transform: rotate(180deg);
}

/* User Dropdown Panel */
.header-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.header-user-trigger[aria-expanded="true"] + .header-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown User Info Header */
.header-dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #fff5eb 100%);
    border-bottom: 1px solid var(--border-color);
}

.header-dropdown-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.header-dropdown-avatar img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-round);
    border: 2px solid var(--color-primary);
    object-fit: cover;
}

.header-dropdown-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-round);
    border: 2px solid var(--color-primary);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.header-dropdown-avatar-placeholder svg {
    width: 24px;
    height: 24px;
}

.header-dropdown-user-details {
    flex: 1;
    min-width: 0;
}

.header-dropdown-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.header-dropdown-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: var(--color-primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
}

.header-dropdown-store-badge svg {
    width: 12px;
    height: 12px;
}

.header-dropdown-member-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #e8e8e8;
    color: #666;
    font-size: 11px;
    font-weight: 500;
    border-radius: 10px;
}

/* Dropdown Sections */
.header-dropdown-section {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.header-dropdown-section:last-child {
    border-bottom: none;
}

.header-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Fira Sans', sans-serif;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.header-dropdown-link:hover {
    background: var(--bg-secondary);
    color: var(--color-primary);
}

.header-dropdown-link:active {
    background: #f0e6dc;
}

.header-dropdown-link svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.header-dropdown-link:hover svg {
    color: var(--color-primary);
}

.header-dropdown-link span {
    flex: 1;
}

.header-dropdown-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--color-accent);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Section */
.header-dropdown-footer {
    background: #fafafa;
}

.header-dropdown-logout {
    color: #d63e2e !important;
}

.header-dropdown-logout svg {
    color: #d63e2e !important;
}

.header-dropdown-logout:hover {
    background: #fff5f5 !important;
}

/* Mobile adjustments for user menu */
@media (max-width: 670px) {
    .header-user-menu-modern {
        display: none;
    }
}

/* Legacy user menu hide (old dropdown) */
.header-etsy .header-user-menu {
    display: none !important;
}

/* Hamburger Button - Visible on All Screens */
.header-etsy .header-hamburger {
    display: flex;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: var(--radius-round);
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.header-etsy .header-hamburger:hover {
    background: var(--bg-secondary);
}

.header-etsy .header-hamburger:active {
    background: #f0e6dc;
}

.header-etsy .header-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

.header-etsy .header-hamburger span:nth-child(1) {
    width: 20px;
}

.header-etsy .header-hamburger span:nth-child(2) {
    width: 16px;
}

.header-etsy .header-hamburger span:nth-child(3) {
    width: 20px;
}

.header-etsy .header-hamburger:hover span:nth-child(2) {
    width: 20px;
}

/* ==========================================================================
   MOBILE HEADER
   ========================================================================== */

@media (max-width: 670px) {
    .header-etsy {
        height: var(--mobile-header-height);
    }

    .header-etsy .header-container {
        padding: 0 4px;
        gap: 2px;
        justify-content: space-between;
    }

    .header-etsy .header-hamburger {
        order: 1;
        width: 28px;
        height: 28px;
        padding: 5px;
    }

    .header-etsy .header-hamburger span {
        width: 16px;
        height: 2px;
    }

    /* Logo - smaller and left-aligned */
    .header-etsy .header-logo {
        order: 2;
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        min-width: 0;
        margin-right: auto;
    }

    .header-etsy .header-logo img {
        height: 24px;
        width: auto;
        max-width: 80px;
        object-fit: contain;
    }

    /* Hide desktop search on mobile */
    .header-etsy .header-search {
        display: none;
    }

    .header-etsy .header-actions {
        order: 3;
        gap: 0;
        flex-shrink: 0;
    }

    .header-etsy .header-action-item {
        width: 28px;
        height: 28px;
    }

    .header-etsy .header-action-item svg {
        width: 16px;
        height: 16px;
    }

    /* Show all action icons on mobile */
    .header-etsy .header-favorites-icon,
    .header-etsy .header-social-box-icon,
    .header-etsy .header-cart-icon,
    .header-etsy .header-profile-trigger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Hide auth buttons on mobile (will be in menu) */
    .header-etsy .header-auth-buttons {
        display: none !important;
    }

    /* Show search icon on mobile */
    .header-etsy .header-search-mobile-trigger {
        display: flex !important;
    }

    /* Cart badge smaller on mobile */
    .header-etsy .header-cart-badge {
        min-width: 14px;
        height: 14px;
        font-size: 9px;
        top: -2px;
        right: -2px;
        padding: 0 3px;
    }

    /* Profile trigger smaller on mobile */
    .header-etsy .header-profile-trigger {
        width: 28px !important;
        height: 28px !important;
        border-width: 1.5px !important;
    }
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 400px) {
    .header-etsy .header-container {
        padding: 0 2px;
        gap: 1px;
    }

    .header-etsy .header-hamburger {
        width: 26px;
        height: 26px;
        padding: 4px;
    }

    .header-etsy .header-hamburger span {
        width: 14px;
    }

    .header-etsy .header-logo img {
        height: 22px;
        max-width: 70px;
    }

    .header-etsy .header-action-item {
        width: 26px !important;
        height: 26px !important;
    }

    .header-etsy .header-action-item svg {
        width: 14px !important;
        height: 14px !important;
    }

    .header-etsy .header-profile-trigger {
        width: 26px !important;
        height: 26px !important;
    }

    .header-etsy .header-cart-badge {
        min-width: 12px;
        height: 12px;
        font-size: 8px;
        top: -1px;
        right: -1px;
        padding: 0 2px;
    }

    /* Hide Sosyal Kutu icon on very small screens */
    .header-etsy .header-social-box-icon {
        display: none !important;
    }
}

@media (min-width: 671px) {
    .header-etsy .header-search-mobile-trigger {
        display: none !important;
    }

    /* Ensure all action items are visible on desktop/tablet */
    .header-etsy .header-favorites-icon,
    .header-etsy .header-social-box-icon,
    .header-etsy .header-cart-icon {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ==========================================================================
   TABLET BREAKPOINT (671px - 1050px)
   ========================================================================== */

@media (min-width: 671px) and (max-width: 1050px) {
    .header-etsy .header-container {
        gap: 12px !important;
        padding: 0 10px !important;
    }

    .header-etsy .header-search {
        max-width: 400px !important;
        min-width: 150px !important;
    }

    .header-etsy .header-search .search-header .field-button .field {
        padding: 0 80px 0 40px !important;
    }

    .header-etsy .header-actions {
        gap: 4px !important;
    }

    .header-etsy .header-action-item {
        width: 38px !important;
        height: 38px !important;
    }

    .header-etsy .header-action-item svg {
        width: 20px !important;
        height: 20px !important;
    }

    .header-etsy .header-auth-buttons {
        gap: 6px !important;
    }

    .header-etsy .header-auth-btn {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }

    .header-user-trigger {
        padding: 4px 8px 4px 4px !important;
    }

    .header-user-name {
        max-width: 80px !important;
        font-size: 13px !important;
    }

    /* Hide Sosyal Kutu on tablet to save space */
    .header-etsy .header-social-box-icon {
        display: none !important;
    }
}

/* ==========================================================================
   HAMBURGER MENU - DESKTOP (Left Sidebar) & MOBILE (Bottom Sheet)
   ========================================================================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: var(--z-mobile-menu);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==========================================================================
   DESKTOP: Left Sidebar Style (min-width: 671px)
   ========================================================================== */
@media (min-width: 671px) {
    .mobile-menu-panel {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: auto;
        width: 380px;
        max-width: 85vw;
        max-height: none;
        height: 100%;
        background: #ffffff;
        border-radius: 0 16px 16px 0;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        opacity: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        will-change: transform;
    }

    .mobile-menu-overlay.active .mobile-menu-panel {
        transform: translateX(0);
    }

    /* Hide handle on desktop */
    .mobile-menu-handle {
        display: none;
    }

    /* Adjust header for desktop sidebar */
    .mobile-menu-header {
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    /* Content scroll area for desktop */
    .mobile-menu-content {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
        overscroll-behavior: contain;
    }

    /* Close button position adjustment for desktop */
    .mobile-menu-close {
        position: absolute;
        top: 16px;
        right: 16px;
    }
}

/* ==========================================================================
   MOBILE: Bottom Sheet Style (max-width: 670px)
   ========================================================================== */
@media (max-width: 670px) {
    .mobile-menu-panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-height: 88vh; /* Reduced from 92vh for better spacing on notched iPhones */
        background: #ffffff;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%) scale(0.95);
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.3s ease-out;
        opacity: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.15);
        will-change: transform, opacity;
    }

    .mobile-menu-overlay.active .mobile-menu-panel {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Menu Handle */
.mobile-menu-handle {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 20px auto 12px; /* More top spacing for notched iPhones */
    flex-shrink: 0;
}

/* Menu Header with Close Button */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 12px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.mobile-menu-logo {
    flex-shrink: 0;
}

.mobile-menu-logo img {
    height: 36px;
    object-fit: contain;
}

.mobile-menu-close {
    flex-shrink: 0;
    margin-left: auto;
}

/* User Profile in Menu Header */
.mobile-menu-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    padding: 6px 10px;
    margin: -6px 0 -6px -10px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.mobile-menu-user-profile:active {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.mobile-menu-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    object-fit: cover;
}

.mobile-menu-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.mobile-menu-avatar-placeholder svg {
    width: 22px;
    height: 22px;
}

.mobile-menu-user-info {
    flex: 1;
    min-width: 0;
}

.mobile-menu-user-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.mobile-menu-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #e8e8e8;
    color: #666;
    font-size: 11px;
    font-weight: 500;
    border-radius: 10px;
}

.mobile-menu-user-badge.badge-seller {
    background: var(--color-primary);
    color: white;
}

.mobile-menu-user-badge svg {
    width: 10px;
    height: 10px;
}

.mobile-menu-user-arrow {
    width: 16px;
    height: 16px;
    color: #bbb;
    flex-shrink: 0;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-round);
    color: var(--text-dark);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
    background: rgba(0, 0, 0, 0.1);
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
}

/* Menu Content */
.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

/* Mini Search in Menu */
.mobile-menu-search {
    margin-bottom: 16px;
}

.mobile-menu-search-input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: white;
    font-size: 15px;
}

.mobile-menu-search-wrapper {
    position: relative;
}

.mobile-menu-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
}

/* Auth Section (Guest) */
.mobile-menu-auth-section {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-menu-auth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Fira Sans', sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-auth-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-auth-btn:active {
    transform: scale(0.97);
}

.mobile-menu-auth-btn.btn-login {
    background: var(--color-primary);
    color: white;
}

.mobile-menu-auth-btn.btn-register {
    background: var(--color-accent);
    color: white;
}

/* Quick Actions Grid (Logged In User) */
.mobile-menu-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.mobile-menu-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mobile-menu-quick-item:active {
    transform: scale(0.95);
    background: #f5f5f5;
}

.quick-item-icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(185, 71, 94, 0.15);
    border-radius: 12px;
    color: var(--color-accent);
    transition: all 0.2s ease;
}

.mobile-menu-quick-item:active .quick-item-icon {
    background: var(--color-primary);
    color: white;
}

.quick-item-icon svg {
    width: 22px;
    height: 22px;
}

.quick-item-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--color-accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-menu-quick-item span:last-child {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

/* Feature Links Grid */
.mobile-menu-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.mobile-menu-feature-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mobile-menu-feature-link:active {
    transform: scale(0.95);
    background: #f5f5f5;
}

.feature-link-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5f2 0%, #d4ede8 100%);
    border-radius: 10px;
    color: var(--color-primary);
}

.feature-link-icon.icon-store {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    color: var(--color-accent);
}

.feature-link-icon.icon-help {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.feature-link-icon.icon-contact {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.feature-link-icon svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-feature-link span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.2;
}

/* Old Quick Actions (legacy) */
.mobile-menu-quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mobile-menu-quick-btn {
    flex: 1;
    padding: 14px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Fira Sans', sans-serif;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.mobile-menu-quick-btn:active {
    transform: scale(0.97);
}

.mobile-menu-quick-btn.btn-login {
    background: var(--color-primary);
    color: white;
}

.mobile-menu-quick-btn.btn-login:hover {
    background: #155549;
}

.mobile-menu-quick-btn.btn-register {
    background: var(--color-accent);
    color: white;
}

.mobile-menu-quick-btn.btn-register:hover {
    background: #a33d52;
}

.mobile-menu-quick-btn.btn-store {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.mobile-menu-quick-btn.btn-store:hover {
    background: var(--color-primary);
    color: white;
}

/* Menu Sections */
.mobile-menu-section {
    margin-bottom: 16px;
}

.mobile-menu-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 0 4px;
}

/* Accordion Items */
.mobile-menu-accordion {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

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

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

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Fira Sans', sans-serif;
    transition: all var(--transition-fast);
    text-align: left;
}

.mobile-menu-link .category-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.mobile-menu-link .category-icon svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-link:hover {
    background: #fafafa;
}

.mobile-menu-link:hover .category-icon {
    color: var(--color-accent);
}

.mobile-menu-link:active {
    background: #f5f5f5;
}

/* SVG Icon in menu link */
.mobile-menu-link > svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.mobile-menu-link > span {
    text-align: left;
}

.mobile-menu-link > span:not(.category-icon) {
    flex: 1;
    margin-right: auto;
}

.mobile-menu-link .icon {
    width: 24px;
    height: 24px;
    margin-right: 0;
}

/* Logout link styling */
.mobile-menu-link.mobile-menu-logout {
    color: #d63e2e;
}

.mobile-menu-link.mobile-menu-logout svg {
    color: #d63e2e;
}

.mobile-menu-link.mobile-menu-logout:active {
    background: #fff5f5;
}

.mobile-menu-link .arrow {
    width: 22px;
    height: 22px;
    color: #bbb;
    transition: transform 0.25s ease, color 0.2s ease;
    padding: 4px;
    border-radius: 50%;
}

.mobile-menu-link .arrow:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-primary);
}

.mobile-menu-item.open .arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
}

/* Submenu */
.mobile-menu-submenu {
    display: none;
    background: linear-gradient(to bottom, #f8f8f8, #fff);
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
}

.mobile-menu-item.open .mobile-menu-submenu {
    display: block;
    animation: slideDown 0.25s ease;
}

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

.mobile-menu-submenu a {
    display: block;
    padding: 12px 16px 12px 24px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Fira Sans', sans-serif;
    transition: all var(--transition-fast);
    position: relative;
}

.mobile-menu-submenu a::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #ddd;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.mobile-menu-submenu a:hover {
    background: var(--bg-secondary);
    color: var(--color-primary);
    padding-left: 28px;
}

.mobile-menu-submenu a:hover::before {
    background: var(--color-primary);
    width: 6px;
    height: 6px;
}

.mobile-menu-submenu a:first-child {
    font-weight: 600;
    color: var(--color-primary);
}

.mobile-menu-submenu a:first-child::before {
    display: none;
}

/* ==========================================================================
   MOBILE BOTTOM SEARCH
   ========================================================================== */

/* Sticky Bottom Search Bar - Visible on All Screens */
.mobile-search-sticky {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    z-index: var(--z-search-fab);
    border-top: 1px solid #f0f0f0;
    align-items: center;
    gap: 10px;
}

/* WhatsApp icon in sticky search */
.mobile-search-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #25D366;
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

.mobile-search-whatsapp:hover {
    background: #20bd5a;
    transform: scale(1.05);
}

.mobile-search-whatsapp:active {
    transform: scale(0.95);
}

.mobile-search-whatsapp svg {
    width: 24px;
    height: 24px;
}

.mobile-search-sticky-wrapper {
    position: relative;
    flex: 1;
    max-width: 800px;
}

.mobile-search-sticky-input {
    width: 100%;
    height: 48px;
    padding: 0 85px 0 48px;
    border: 2px solid var(--color-primary);
    border-radius: 24px;
    font-size: 16px;
    font-family: 'Fira Sans', sans-serif;
    background: #fafafa;
    transition: all var(--transition-fast);
    box-sizing: border-box;
}

.mobile-search-sticky-input:focus {
    background: white;
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 71, 94, 0.15);
}

.mobile-search-sticky-input::placeholder {
    color: #999;
}

.mobile-search-sticky-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    width: 22px;
    height: 22px;
}

.mobile-search-sticky-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    min-width: 60px;
    padding: 0 16px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Fira Sans', sans-serif;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-sizing: border-box;
}

.mobile-search-sticky-btn:active {
    transform: translateY(-50%) scale(0.96);
    background: #a33d52;
}

/* FAB (Floating Action Button) */
.mobile-search-fab {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #a33d52 100%);
    color: white;
    border: none;
    border-radius: var(--radius-round);
    box-shadow: 0 4px 16px rgba(185, 71, 94, 0.4);
    cursor: pointer;
    z-index: calc(var(--z-search-fab) - 1);
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-search-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(185, 71, 94, 0.5);
}

.mobile-search-fab:active {
    transform: scale(0.95);
}

.mobile-search-fab svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Mobile adjustments for sticky search */
@media (max-width: 670px) {
    .mobile-search-fab {
        display: flex;
    }

    /* Add padding to body to prevent content from being hidden behind sticky search */
    body.has-mobile-search {
        padding-bottom: 80px;
    }
}

/* Desktop sticky search adjustments */
@media (min-width: 671px) {
    /* Add padding to body for desktop too */
    body {
        padding-bottom: 72px;
    }

    .mobile-search-sticky {
        justify-content: center;
        padding: 10px 20px;
    }

    .mobile-search-sticky-wrapper {
        max-width: 600px;
    }

    .mobile-search-sticky-input {
        height: 44px;
        font-size: 15px;
    }

    .mobile-search-sticky-btn {
        height: 34px;
        font-size: 14px;
        padding: 0 18px;
    }
}

/* Hide FAB when keyboard is open (search is focused) */
.mobile-search-sticky-input:focus ~ .mobile-search-fab-hide-trigger {
    display: none;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes cartBadgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.header-cart-badge.pulse,
.header-cart-badge.badge-updated {
    animation: cartBadgePulse 0.3s ease;
}

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

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

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   BODY OVERFLOW FIX (Prevent horizontal scroll after login)
   ========================================================================== */

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* Only lock scroll when mobile menu is actually open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ==========================================================================
   SEARCH WIDGET OVERRIDE (for existing search widget in new header)
   ========================================================================== */

.header-etsy .header-search .search-header {
    float: none !important;
    width: 100% !important;
}

.header-etsy .header-search .search-header form {
    width: 100% !important;
}

.header-etsy .header-search .search-header .field-button {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
}

.header-etsy .header-search .search-header .field-button span.icon-41 {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1 !important;
    opacity: 0.6 !important;
}

.header-etsy .header-search .search-header .field-button .field {
    flex: 1 !important;
    height: 46px !important;
    padding: 0 90px 0 46px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 23px !important;
    font-size: 15px !important;
    font-family: 'Fira Sans', sans-serif !important;
    transition: all var(--transition-fast) !important;
    width: 100% !important;
    background: #fafafa !important;
}

.header-etsy .header-search .search-header .field-button .field:hover {
    border-color: #ccc;
    background: #fff;
}

.header-etsy .header-search .search-header .field-button .field:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 99, 85, 0.1);
}

.header-etsy .header-search .search-header .field-button .field::placeholder {
    color: #999;
}

.header-etsy .header-search .search-header .field-button .button,
.header-etsy .header-search .search-header .field-button .search-box-button {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 36px !important;
    padding: 0 20px !important;
    background: var(--color-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Fira Sans', sans-serif !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
    letter-spacing: 0.3px !important;
    line-height: 36px !important;
    text-align: center !important;
    min-width: 70px !important;
}

.header-etsy .header-search .search-header .field-button .button:hover,
.header-etsy .header-search .search-header .field-button .search-box-button:hover {
    background: var(--color-accent);
    transform: translateY(-50%) scale(1.02);
}

.header-etsy .header-search .search-header .field-button .button:active,
.header-etsy .header-search .search-header .field-button .search-box-button:active {
    transform: translateY(-50%) scale(0.98);
}

.header-etsy .header-search .search-header .field-button button.icon-41 {
    display: none;
}

/* Autocomplete dropdown styling */
.header-etsy .header-search .auto-complete-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    margin-top: 6px;
    overflow: hidden;
}

/* Modern Search Results Styling - Compact */
.header-etsy .header-search .list-18-search {
    width: 100% !important;
    max-height: 360px;
    overflow-y: auto;
    padding: 4px 0;
    margin: 0;
    list-style: none;
}

.header-etsy .header-search .list-18-search > li {
    margin: 0 !important;
    padding: 10px 12px 10px 58px !important;
    border-radius: 0;
    transition: background 0.15s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    box-sizing: border-box;
}

.header-etsy .header-search .list-18-search > li:hover {
    background: #f8f5f2 !important;
}

.header-etsy .header-search .list-18-search > li:hover,
.header-etsy .header-search .list-18-search > li:hover * {
    background-color: #f8f5f2 !important;
}

.header-etsy .header-search .list-18-search > li:hover .title-5,
.header-etsy .header-search .list-18-search > li:hover .title-5 a {
    color: var(--color-primary) !important;
}

/* Avatar/Image - Left aligned */
.header-etsy .header-search .list-18-search > li .avatar {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.header-etsy .header-search .list-18-search > li .avatar img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
}

/* Content wrapper - flex column for title + description */
.header-etsy .header-search .list-18-search > li .title-5,
.header-etsy .header-search .list-18-search > li p.title-5 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    padding-right: 70px;
}

.header-etsy .header-search .list-18-search > li .title-5 a {
    color: inherit !important;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Description - hidden for compact */
.header-etsy .header-search .list-18-search > li .text-3.color-3,
.header-etsy .header-search .list-18-search > li p.text-3.color-3 {
    display: none;
}

/* Hide old type label */
.header-etsy .header-search .list-18-search > li .text-3.color-4,
.header-etsy .header-search .list-18-search > li p.text-3.color-4,
.header-etsy .header-search .list-18-search > li .icon-wrapper {
    display: none !important;
}

/* New Type Badge - Right side */
.header-etsy .header-search .list-18-search > li .search-result-type {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    padding: 4px 10px;
    background: #e8f5e9;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    font-family: 'Fira Sans', sans-serif;
}

.header-etsy .header-search .list-18-search > li:hover .search-result-type {
    background: var(--color-primary);
    color: white;
}

/* No results styling */
.header-etsy .header-search .list-18-search > .li-404 {
    padding: 20px 12px !important;
    text-align: center;
    display: block;
    min-height: auto;
}

.header-etsy .header-search .list-18-search > .li-404 .tittle-6 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.header-etsy .header-search .list-18-search > .li-404 .text-3 {
    font-size: 12px;
    color: #888;
}

/* Scrollbar styling */
.header-etsy .header-search .list-18-search::-webkit-scrollbar {
    width: 4px;
}

.header-etsy .header-search .list-18-search::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.header-etsy .header-search .list-18-search::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.header-etsy .header-search .list-18-search::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ==========================================================================
   EXISTING HEADER HIDE (hide old header container)
   ========================================================================== */

.container.container-border-1.bg-color-13.responsive-header {
    display: none !important;
}

/* ==========================================================================
   NAVBAR ADJUSTMENTS
   ========================================================================== */

/* Hide old desktop navbar completely */
.navbar.responsive-categories.desktop-navbar {
    display: none !important;
}

/* ==========================================================================
   CUSTOM NAVBAR (Mobile-style navbar for all screens)
   ========================================================================== */

.mobile-navbar-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: var(--color-primary);
    padding: 0;
    position: relative;
    z-index: var(--z-navbar);
}

.mobile-navbar-custom .mobile-navbar-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Fira Sans', sans-serif;
    transition: background var(--transition-fast), color var(--transition-fast);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-navbar-custom .mobile-navbar-item:last-child {
    border-right: none;
}

.mobile-navbar-custom .mobile-navbar-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-navbar-custom .mobile-navbar-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mobile-navbar-custom .mobile-navbar-item span {
    white-space: nowrap;
}

/* Mobile adjustments for custom navbar */
@media (max-width: 670px) {
    .mobile-navbar-custom {
        justify-content: space-around;
    }

    .mobile-navbar-custom .mobile-navbar-item {
        flex: 1;
        padding: 10px 6px;
        font-size: 11px;
        gap: 4px;
        border-right: none;
    }

    .mobile-navbar-custom .mobile-navbar-item svg {
        width: 16px;
        height: 16px;
    }
}

/* iPhone XR and similar devices (414px) */
@media (max-width: 450px) {
    .mobile-navbar-custom .mobile-navbar-item {
        flex-direction: column;
        gap: 3px;
        padding: 8px 4px;
        font-size: 10px;
    }

    .mobile-navbar-custom .mobile-navbar-item svg {
        width: 16px;
        height: 16px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .mobile-navbar-custom .mobile-navbar-item {
        flex-direction: column;
        gap: 2px;
        padding: 6px 2px;
        font-size: 9px;
    }

    .mobile-navbar-custom .mobile-navbar-item svg {
        width: 14px;
        height: 14px;
    }
}

/* Hide old mobile menu trigger in navbar on mobile */
@media (max-width: 670px) {
    .navbar .new-mobile-menu {
        display: none !important;
    }
}

/* Old mobile custom navbar section removed - styles now in CUSTOM NAVBAR section above */

/* ==========================================================================
   DESKTOP NAVBAR SVG ICONS (Blog, Üreticiler, Köklü Sohbetler)
   ========================================================================== */

.navbar .categories > ul > li.nav-blog-item,
.navbar .categories > ul > li.nav-topsellers-item,
.navbar .categories > ul > li.nav-koklu-sohbetler-item {
    position: relative;
}

.navbar .categories > ul > li.nav-blog-item > a .icon,
.navbar .categories > ul > li.nav-topsellers-item > a .icon,
.navbar .categories > ul > li.nav-koklu-sohbetler-item > a .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.navbar .categories > ul > li.nav-blog-item > a .icon svg,
.navbar .categories > ul > li.nav-topsellers-item > a .icon svg,
.navbar .categories > ul > li.nav-koklu-sohbetler-item > a .icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary);
    transition: stroke var(--transition-fast);
}

.navbar .categories > ul > li.nav-blog-item:hover > a .icon svg,
.navbar .categories > ul > li.nav-topsellers-item:hover > a .icon svg,
.navbar .categories > ul > li.nav-koklu-sohbetler-item:hover > a .icon svg {
    stroke: var(--color-accent);
}

/* Hide extra menu items on smaller screens */
@media (max-width: 1170px) {
    .navbar .categories > ul > li.nav-topsellers-item {
        display: none;
    }
}

@media (max-width: 1050px) {
    .navbar .categories > ul > li.nav-blog-item,
    .navbar .categories > ul > li.nav-koklu-sohbetler-item {
        display: none;
    }
}

/* ==========================================================================
   FOOTER BRAND LOGO
   ========================================================================== */

/* Footer brand row with logo */
footer .footer-brand-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

footer .footer-logo-link {
    display: inline-flex !important;
    align-items: center !important;
}

footer .footer-brand-logo {
    height: 45px !important;
    width: auto !important;
    max-width: 155px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
}

/* Hide old white amblem */
footer .white-amblem {
    display: none !important;
}

/* ==========================================================================
   FOOTER MOBILE FIXES
   ========================================================================== */

@media (max-width: 670px) {
    /* Ensure footer has enough bottom padding for sticky search bar */
    footer {
        padding-bottom: 85px !important;
    }

    footer > .container {
        padding: 0 !important;
    }

    footer .container.container-size-1 {
        padding: 0 15px !important;
    }

    /* Footer info section - stack vertically and center */
    footer .footer-info-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        padding: 20px 0 !important;
    }

    footer .footer-info-block {
        text-align: center !important;
        width: 100% !important;
        min-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    footer .footer-info-block h4 {
        font-size: 15px !important;
        font-weight: 600 !important;
        margin-bottom: 12px !important;
        color: white !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    /* Social links - horizontal and centered */
    footer .footer-social-links {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
        flex-wrap: nowrap !important;
    }

    footer .footer-social-links a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: transform 0.2s ease !important;
    }

    footer .footer-social-links a:active {
        transform: scale(0.9) !important;
    }

    footer .footer-social-links a img {
        width: 36px !important;
        height: 36px !important;
    }

    /* Contact info */
    footer .footer-info-block p {
        font-size: 14px !important;
        line-height: 2 !important;
        margin: 0 !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    footer .footer-contact-link {
        color: white !important;
        text-decoration: none !important;
    }

    /* Partners logos - horizontal and centered */
    footer .footer-partners {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
    }

    footer .footer-partners img {
        max-height: 40px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* Copyright section - complete overhaul */
    footer .copyright {
        text-align: center !important;
        padding: 20px 0 15px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    footer .copyright .clearfix {
        display: block !important;
    }

    /* All ULs in copyright */
    footer .copyright ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px 20px !important;
        margin: 0 0 15px 0 !important;
        padding: 0 10px !important;
        float: none !important;
        width: 100% !important;
        list-style: none !important;
        box-sizing: border-box !important;
    }

    footer .copyright ul.fright,
    footer .copyright ul.fleft {
        float: none !important;
        margin-bottom: 15px !important;
    }

    footer .copyright ul li {
        float: none !important;
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    footer .copyright ul li a {
        font-size: 14px !important;
        white-space: nowrap !important;
        color: rgba(255, 255, 255, 0.85) !important;
        text-decoration: none !important;
        padding: 8px 4px !important;
        display: inline-block !important;
    }

    footer .copyright ul li a:hover {
        color: white !important;
    }

    /* Made with love text */
    footer .copyright p,
    footer .copyright p.fleft,
    footer .copyright p.white-logo-icon {
        float: none !important;
        text-align: center !important;
        width: 100% !important;
        margin: 10px 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        font-size: 13px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        line-height: 1.6 !important;
    }

    footer .copyright p.white-logo-icon img.white-amblem,
    footer .copyright p img.white-amblem {
        display: none !important;
    }

    /* Footer brand logo mobile */
    footer .footer-brand-row .footer-brand-logo {
        height: 35px !important;
        width: auto !important;
        max-width: 130px !important;
    }

    footer .copyright p a.footer-link {
        color: white !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }

    /* UniversCode row */
    footer .footer-universcode-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 15px 0 !important;
        text-align: center !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    footer .footer-universcode-link {
        font-size: 12px !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    /* ETBIS badge */
    footer .etbis-badge {
        display: flex !important;
        justify-content: center !important;
    }

    footer .etbis-badge img {
        max-width: 90px !important;
        height: auto !important;
    }

    /* WhatsApp button - position above sticky search */
    .whatsapp-button-float {
        bottom: 95px !important;
        right: 12px !important;
        z-index: 999 !important;
        width: 50px !important;
        height: 50px !important;
    }

    /* FAB search button - hide on mobile since we have sticky search */
    .mobile-search-fab {
        display: none !important;
    }

    /* Grid blocks in footer */
    footer .grid > .grid-block {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    /* Hidden part visible */
    footer .footer-hidden-part {
        display: block !important;
        padding: 0 !important;
    }

    /* Toggle button hide */
    footer .toggle {
        display: none !important;
    }
}

/* ==========================================================================
   CART PAGE SPECIFIC FIXES
   ========================================================================== */

/* Ensure mobile search sticky works on cart page */
@media (max-width: 670px) {
    .body-cart .mobile-search-sticky {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .body-cart .mobile-menu-overlay {
        display: block !important;
    }
}

/* Ensure header displays correctly on cart page */
.body-cart .header-etsy {
    display: block !important;
    visibility: visible !important;
    height: var(--header-height) !important;
    overflow: visible !important;
}

.body-cart .header-etsy .header-container {
    display: flex !important;
    visibility: visible !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

.body-cart .header-etsy .header-logo {
    flex-shrink: 0 !important;
    order: 1 !important;
}

.body-cart .header-etsy .header-search {
    flex: 1 1 auto !important;
    max-width: 500px !important;
    min-width: 150px !important;
    order: 2 !important;
}

.body-cart .header-etsy .header-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    order: 3 !important;
    gap: 6px !important;
}

.body-cart .header-etsy .header-action-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.body-cart .header-etsy .header-favorites-icon,
.body-cart .header-etsy .header-social-box-icon,
.body-cart .header-etsy .header-cart-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 38px !important;
    height: 38px !important;
}

.body-cart .header-etsy .header-profile-trigger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 38px !important;
    height: 38px !important;
}

/* Cart page mobile header fixes */
@media (max-width: 670px) {
    .body-cart .header-etsy {
        height: var(--mobile-header-height) !important;
    }

    .body-cart .header-etsy .header-hamburger {
        display: flex !important;
    }

    .body-cart .header-etsy .header-actions {
        display: flex !important;
        gap: 2px !important;
    }

    .body-cart .header-etsy .header-action-item {
        width: 32px !important;
        height: 32px !important;
    }

    .body-cart .header-etsy .header-profile-trigger {
        width: 32px !important;
        height: 32px !important;
        border-width: 1.5px !important;
    }
}

/* ==========================================================================
   NOTIFICATION & MESSAGE LIST STYLES
   ========================================================================== */

/* Empty state styling */
.profile-dropdown-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.profile-dropdown-empty svg {
    margin-bottom: 12px;
    color: #ccc;
}

.profile-dropdown-empty p {
    margin: 0;
    font-size: 14px;
    color: #888;
}

/* Notification List */
.profile-notification-list,
.profile-message-list {
    max-height: 320px;
    overflow-y: auto;
}

/* Notification Item */
.profile-notification-item,
.profile-message-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
    position: relative;
}

.profile-notification-item:hover,
.profile-message-item:hover {
    background: #f9f9f9;
}

.profile-notification-item:last-child,
.profile-message-item:last-child {
    border-bottom: none;
}

/* New/Unread indicator */
.profile-notification-item.is-new,
.profile-message-item.is-unread {
    background: #f0f8ff;
}

.profile-notification-item.is-new:hover,
.profile-message-item.is-unread:hover {
    background: #e6f3ff;
}

/* Avatar */
.notification-avatar,
.message-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.notification-avatar img,
.message-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

/* Content */
.notification-content,
.message-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notification-user,
.message-user {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-text,
.message-preview {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time,
.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* Unread dot indicator */
.notification-dot,
.message-unread-dot {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

/* Scrollbar styling for notification/message lists */
.profile-notification-list::-webkit-scrollbar,
.profile-message-list::-webkit-scrollbar {
    width: 6px;
}

.profile-notification-list::-webkit-scrollbar-track,
.profile-message-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.profile-notification-list::-webkit-scrollbar-thumb,
.profile-message-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.profile-notification-list::-webkit-scrollbar-thumb:hover,
.profile-message-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Mobile adjustments */
@media (max-width: 670px) {
    .profile-notification-list,
    .profile-message-list {
        max-height: 50vh;
    }

    .profile-notification-item,
    .profile-message-item {
        padding: 14px 16px;
    }

    .notification-avatar,
    .message-avatar {
        width: 44px;
        height: 44px;
    }

    .notification-avatar img,
    .message-avatar img {
        width: 44px;
        height: 44px;
    }

    .notification-user,
    .message-user {
        font-size: 14px;
    }

    .notification-text,
    .message-preview {
        font-size: 13px;
    }
}


/* ==========================================================================
   CERTIFICATES GRID IN MOBILE MENU
   ========================================================================== */

/* Certificates grid - 3 columns */
.mobile-menu-certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* Certificate link styling */
.mobile-menu-certificate-link {
    background: white;
    border-radius: 10px;
    padding: 12px 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mobile-menu-certificate-link:hover {
    background: #f0faf7;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(26, 99, 85, 0.12);
}

/* Certificate icon - green theme */
.mobile-menu-certificate-link .icon-certificate-menu {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.mobile-menu-certificate-link .icon-certificate-menu svg {
    color: var(--color-primary);
}

.mobile-menu-certificate-link:hover .icon-certificate-menu {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.mobile-menu-certificate-link:hover .icon-certificate-menu svg {
    color: white;
}

/* Certificate text */
.mobile-menu-certificate-link span {
    font-size: 10px;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Mobile adjustments */
@media (max-width: 400px) {
    .mobile-menu-certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-menu-certificate-link {
        padding: 10px 6px;
    }

    .mobile-menu-certificate-link span {
        font-size: 9px;
    }
}


/* ==========================================================================
   LOGIN BUTTON (Not Logged In Users)
   ========================================================================== */

.header-etsy .header-login-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-accent);
    color: #fff !important;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.header-etsy .header-login-btn:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: scale(1.02);
}

.header-etsy .header-login-btn:active {
    transform: scale(0.98);
}

.header-etsy .header-login-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Mobile adjustments for login button */
@media (max-width: 670px) {
    .header-etsy .header-login-btn {
        padding: 6px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .header-etsy .header-login-btn svg {
        width: 14px;
        height: 14px;
    }

    .header-etsy .header-login-btn span {
        display: inline; /* Show text on mobile too */
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .header-etsy .header-login-btn {
        padding: 6px 8px;
        font-size: 10px;
    }

    .header-etsy .header-login-btn svg {
        width: 12px;
        height: 12px;
    }
}


/* ==========================================================================
   Default Avatar Fallback for Profile Menu Messages
   ========================================================================== */
.list-30 .avatar img.avatar-error,
.header-profile-dropdown .avatar img.avatar-error,
img.avatar-error {
    background: linear-gradient(135deg, #1A6355 0%, #238573 100%) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.9)'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"), linear-gradient(135deg, #1A6355 0%, #238573 100%) !important;
    background-size: 55% 55%, cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-radius: 50%;
}
