/* ============================================
    HEADER PRINCIPAL
    ============================================ */

.site-header {
    background: #fff;
    border-bottom: 2px solid var(--foxb2c-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-top {
    padding: 1rem 0;
    border-bottom: 1px solid var(--foxb2c-border);
    background: var(--foxb2c-primary);
}

/* Logo */
.site-logo img {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s;
}

.site-logo:hover img {
    transform: scale(1.05);
}

/* Main Navigation */
.my-5 {
    margin-top: 1rem !important;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.main-nav .nav-link {
    color: var(--foxb2c-neutro);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    border-radius: 5px;
    white-space: nowrap;
}

.main-nav .nav-link:hover {
    color: var(--foxb2c-neutro);
    background: var(--foxb2c-secondary);
    background: rgba(0, 208, 199, 0.3);
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid var(--foxb2c-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--foxb2c-accent);
    background: rgba(0, 208, 199, 0.1);
    color: var(--foxb2c-primary);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--foxb2c-neutro);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Navigation - Hidden by default */
.mobile-nav-sidebar {
    display: none;
}

/* Mobile Overlay - Hidden by default */
.mobile-overlay {
    display: none;
}

/* Search Bar */
.header-search {
    padding: 1rem 0;
    background: var(--foxb2c-gradient);
}

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

.search-form {
    position: relative;
    width: 100%;
}

.search-form input {
    width: 100%;
    border-radius: 25px;
    padding: 0.75rem 3.5rem 0.75rem 1.5rem;
    border: 2px solid var(--foxb2c-border);
    transition: all 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: var(--foxb2c-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--foxb2c-primary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.search-form button:hover {
    background: #0052a3;
    transform: translateY(-50%) scale(1.05);
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.user-greeting {
    font-size: 0.85rem;
    color: var(--foxb2c-neutro);
    text-align: right;
}

.user-greeting a{
    text-decoration: none;
    color: var(--header-link);
}

.user-greeting b {
    color: var(--foxb2c-neutro);
    display: block;
    font-size: 0.95rem;
}

/* Cart Icon */
.cart-link {
    position: relative;
    display: inline-block;
    transition: transform 0.3s;
}

.cart-link:hover {
    transform: scale(1.1);
}

.cart-link i {
    font-size: 2rem;
    color: var(--foxb2c-neutro);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item{
    color: var(--txt-cor-breadcrumb);
    font-weight: normal;
}

.breadcrumb-item.active {
    font-weight: 500;
    text-transform: capitalize;
}

.breadcrumb-item a{
    color: var(--txt-cor-breadcrumb);
    text-decoration: none;
    text-transform: capitalize;
    font-weight: normal;
}

.breadcrumb-item a:hover{
    text-decoration: underline;
}


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

/* ============================================
    MOBILE STYLES
    ============================================ */

@media (max-width: 991px) {
    .mobile-toggle {
        display: block;
    }
    
    /* Hide desktop nav */
    .d-none.d-lg-block {
        display: none !important;
    }
    
    /* Show Mobile Navigation Sidebar */
    .mobile-nav-sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: 4px 0 12px rgba(0,0,0,0.15);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1001;
        padding: 4rem 0 2rem;
    }
    
    .mobile-nav-sidebar.active {
        left: 0;
        background: var(--foxb2c-secondary);
    }
    
    .mobile-nav-sidebar.active .site-logo {
        position: absolute;
        top: 17px;
        left: 16px;
    }
    
    .mobile-nav-sidebar .nav {
        flex-direction: column;
    }
    
    .mobile-nav-sidebar .nav-item {
        border-bottom: 1px solid var(--foxb2c-border);
    }
    
    .mobile-nav-sidebar .nav-link {
        padding: 1rem 1.5rem;
        color: var(--foxb2c-neutro);
        display: block;
        font-weight: 500;
    }
    
    .mobile-nav-sidebar .nav-link:hover {
        background: rgba(0, 208, 199, 0.1);
        color: var(--foxb2c-primary);
    }
    
    /* Mobile Dropdown */
    .mobile-nav-sidebar .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--foxb2c-secondary);
        display: none;
        padding: 0;
    }
    
    .mobile-nav-sidebar .dropdown-menu.show {
        display: block;
    }
    
    .mobile-nav-sidebar .dropdown-item {
        padding: 0.75rem 2rem;
        color: var(--foxb2c-neutro);
    }
    
    .mobile-nav-sidebar .dropdown-item:hover {
        background: var(--foxb2c-primary);
        color: var(--foxb2c-primary);
    }
    
    /* Mobile Overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    /* Mobile Close Button */
    .mobile-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        color: var(--foxb2c-neutro);
        cursor: pointer;
        z-index: 10;
    }
    
    .mobile-close:hover {
        color: var(--foxb2c-primary);
    }
    
    .site-logo img {
        max-width: 150px;
    }
    
    .desktop,
    .user-greeting {
        display: none;
    }
    
    .search-wrapper {
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    /* Ensure mobile elements are hidden on desktop */
    .mobile-nav-sidebar {
        display: none !important;
    }
    
    .mobile-overlay {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .header-top {
        padding: 0.75rem 0;
    }
    
    .header-search {
        padding: 0.75rem 0;
    }
    
    .site-logo img {
        max-width: 130px;
    }
    
    .cart-link i {
        font-size: 1.75rem;
    }
    
    .search-form input {
        padding: 0.65rem 3rem 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .search-form button {
        width: 36px;
        height: 36px;
    }
}
