/**
 * CrocCity Furniture - Luxury Header & Navigation
 * Professional, compact, and elegant design
 */

/* ========================================
   ANNOUNCEMENT BAR
   ======================================== */
.announcement-bar {
    background: linear-gradient(135deg, #6B4E3D 0%, #5a3f2f 100%);
    color: white;
    text-align: center;
    padding: 10px 15px;
}

.announcement-text {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

.announcement-text i {
    margin-right: 8px;
}

/* ========================================
   MAIN HEADER
   ======================================== */
.luxury-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.luxury-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.luxury-header.header-hidden {
    transform: translateY(-100%);
}

.header-main {
    width: 100%;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 30px;
}

/* ========================================
   LOGO
   ======================================== */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.header-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B4E3D;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #6B4E3D;
    letter-spacing: 0.5px;
}

.logo-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ========================================
   NAVIGATION
   ======================================== */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 15.5px;
    font-weight: 500;
    color: #2C2C2C;
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #6B4E3D;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #C89B6C;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ========================================
   HEADER ACTIONS
   ======================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.header-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #2C2C2C;
    font-size: 19px;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.header-action:hover {
    color: #6B4E3D;
    background: #FAF8F6;
}

.action-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #C89B6C;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    line-height: 1;
}

.search-toggle {
    display: none;
}

/* ========================================
   SEARCH BAR
   ======================================== */
.header-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.header-search.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    max-width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 18px;
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

.search-input {
    flex: 1;
    padding: 12px 120px 12px 50px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #2C2C2C;
    background-color: #FAF8F6;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #6B4E3D;
    background-color: white;
}

.search-submit {
    position: absolute;
    right: 4px;
    padding: 10px 28px;
    background: #6B4E3D;
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: #5a3f2f;
}

/* ========================================
   MOBILE MENU TOGGLE
   ======================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #6B4E3D;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle:hover span {
    background: #C89B6C;
}

/* ========================================
   MOBILE SIDEBAR
   ======================================== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    overflow-y: auto;
    transition: right 0.4s ease;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #6B4E3D;
}

.sidebar-logo .logo-icon {
    width: 28px;
    height: 28px;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #2C2C2C;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: #FAF8F6;
    color: #6B4E3D;
}

.mobile-sidebar-nav {
    padding: 10px 0;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    border-bottom: 1px solid #f5f5f5;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: #2C2C2C;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #FAF8F6;
    color: #6B4E3D;
}

.sidebar-link i {
    width: 20px;
    font-size: 18px;
    color: #C89B6C;
}

.sidebar-badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #C89B6C;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
}

.sidebar-divider {
    height: 10px;
    background: #FAF8F6;
    border: none;
}

/* ========================================
   MOBILE OVERLAY
   ======================================== */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet and below (991px) */
@media (max-width: 991px) {
    .header-wrapper {
        padding: 14px 0;
    }

    .header-nav {
        display: none;
    }

    .search-toggle {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions {
        gap: 10px;
    }

    .logo-name {
        font-size: 20px;
    }

    .logo-tagline {
        font-size: 10px;
    }
}

/* Mobile (767px) */
@media (max-width: 767px) {
    .announcement-bar {
        font-size: 12px;
        padding: 8px 10px;
    }

    .header-wrapper {
        padding: 12px 0;
        gap: 20px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-name {
        font-size: 18px;
    }

    .logo-tagline {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .header-action {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .action-badge {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        padding: 0 4px;
    }

    .mobile-sidebar {
        width: 280px;
        right: -280px;
    }
}

/* Small mobile (575px) */
@media (max-width: 575px) {
    .header-wrapper {
        gap: 15px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .logo-name {
        font-size: 16px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-action {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .search-input {
        padding: 12px 18px 12px 50px;
    }

    .search-submit {
        position: static;
        width: 100%;
        margin-top: 10px;
        padding: 12px;
        border-radius: 25px;
    }

    .search-input-wrapper {
        flex-direction: column;
    }
}
