/**
 * Minimalist Header & Navigation Styles
 * Clean, modern design for 39mebel
 */

/* ========================================
   HEADER - MINIMALIST DESIGN
   ======================================== */

.site-header-refined {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: none !important;
}

/* Top bar - cleaner */
.header-top {
    background: #111827 !important;
    padding: 8px 0 !important;
}

.header-top-item {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.header-top-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px;
}

.header-top-link:hover {
    color: #fff !important;
}

/* Main header area */
.header-main {
    padding: 12px 0 !important;
}

.header-shell {
    gap: 40px !important;
}

/* Logo - cleaner */
.site-brand {
    text-decoration: none;
}

.logo-text-primary {
    color: #111827;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
}

.site-brand-note {
    font-size: 10px !important;
    color: #9ca3af;
    letter-spacing: 0.06em !important;
}

/* Search - minimal */
.header-search-form {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    height: 42px;
}

.header-search-form input {
    font-size: 14px;
    color: #111827;
}

.header-search-form input::placeholder {
    color: #9ca3af;
}

.header-search-form button {
    color: #6b7280;
}

.header-search-form button:hover {
    color: #2563eb;
}

.header-search-form:focus-within {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    background: #fff !important;
}

/* Header actions - pill buttons */
.header-actions {
    gap: 10px !important;
}

.header-phone-card {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 4px 8px !important;
    min-height: auto !important;
}

.header-phone-card:hover {
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.header-phone-label {
    font-size: 10px;
    color: #9ca3af;
}

.header-phone-number {
    font-size: 15px;
    color: #111827;
    font-weight: 700;
}

.header-link-pill {
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.header-link-pill:hover {
    border-color: #2563eb !important;
    color: #2563eb !important;
    transform: none !important;
    box-shadow: none !important;
}

.header-cta {
    background: #2563eb !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
}

.header-cta:hover {
    background: #1d4ed8 !important;
    color: #fff !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.header-cart-link {
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    box-shadow: none !important;
}

.header-cart-link:hover {
    border-color: #2563eb !important;
    color: #2563eb !important;
    transform: none !important;
    box-shadow: none !important;
}

.header-action-count {
    background: #2563eb !important;
    border-radius: 999px !important;
    min-width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
}

/* ========================================
   NAVIGATION - CLEAN
   ======================================== */

.main-nav {
    border-top: 1px solid #f3f4f6 !important;
    background: #fff !important;
}

.main-nav-list {
    gap: 36px !important;
    padding: 0 !important;
}

.main-nav-list > li > a {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    padding: 16px 0 !important;
}

.main-nav-list > li > a:hover {
    color: #2563eb !important;
}

.main-nav-list > li > a::after {
    background: #2563eb !important;
    bottom: 0 !important;
}

.main-nav-list > li.current-menu-item > a,
.main-nav-list > li.current-menu-ancestor > a {
    color: #2563eb !important;
}

/* ========================================
   MOBILE MENU - CLEAN
   ======================================== */

.mobile-nav {
    background: #fff !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
    width: min(360px, 100vw) !important;
}

.mobile-nav-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

.mobile-nav-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

.mobile-nav-subtitle {
    color: #6b7280 !important;
    font-size: 14px;
}

.mobile-nav-close {
    width: 40px !important;
    height: 40px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-list {
    gap: 4px !important;
}

.mobile-nav-list a {
    padding: 12px 14px !important;
    border-radius: 8px !important;
    background: transparent !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #111827 !important;
}

.mobile-nav-list a:hover {
    background: #f3f4f6 !important;
    color: #2563eb !important;
    border: none !important;
}

.mobile-nav-actions {
    gap: 10px !important;
    margin-top: 24px !important;
}

.mobile-nav-actions .btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.mobile-nav-overlay {
    background: rgba(0, 0, 0, 0.4) !important;
}

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

.mobile-menu-toggle {
    width: 42px !important;
    height: 42px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    display: none;
    align-items: center;
    justify-content: center;
    color: #374151;
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: inline-flex !important;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 991px) {
    .header-shell {
        grid-template-columns: auto 1fr auto !important;
        gap: 16px !important;
    }

    .header-search {
        display: none !important;
    }

    .header-phone-card {
        display: none !important;
    }

    .header-link-pill {
        display: none !important;
    }

    .header-cart-link {
        display: inline-flex !important;
    }
}

@media (max-width: 767px) {
    .header-main {
        padding: 10px 0 !important;
    }

    .logo-text-primary {
        font-size: 20px !important;
    }

    .site-brand-note {
        display: none;
    }

    .header-top-left {
        display: none !important;
    }

    .header-top-inner {
        justify-content: center !important;
    }
}
