body{
    background:#f5f5f5;
}

/* TOP BAR */

.top-bar{
    background:#6b3d18;
    color:white;
    padding:10px 0;
    font-size:14px;
    font-weight:500;
}

/* MAIN HEADER */

.main-header{
    background:white;
}

.logo{
    width:90px;
}

.company-name{
    color:#6b3d18;
    font-weight:700;
}

/* SEARCH */

.search-box{
    display:flex;
    border:2px solid #6b3d18;
    border-radius:40px;
    overflow:hidden;
    height:50px;
}

.search-input{
    border:none !important;
    box-shadow:none !important;
    flex:1;
    padding-left:20px;
}

.category-select{
    border:none;
    border-left:1px solid #ddd;
    padding:0 15px;
    outline:none;
}

.search-btn{
    background:#6b3d18;
    color:white;
    border:none;
    width:60px;
    font-size:20px;
}

/* ICONS */

.header-icons{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:25px;
}

.header-icons a{
    color:#333;
    font-size:24px;
    position:relative;
    text-decoration:none;
}

.cart-count{
    position:absolute;
    top:-8px;
    right:-10px;
    background:#6b3d18;
    color:white;
    width:20px;
    height:20px;
    border-radius:50%;
    font-size:12px;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* NAVIGATION */

.navigation-bar{
    background:white;
    border-top:1px solid #eee;
    border-bottom:1px solid #eee;
}

.category-btn{
    background:#6b3d18;
    color:white;
    border:none;
    padding:14px 25px;
    border-radius:8px;
    font-weight:600;
    margin-right:30px;
}

.nav-menu{
    display:flex;
    list-style:none;
    margin:0;
    padding:0;
    gap:35px;
}

.nav-menu li a{
    text-decoration:none;
    color:#333;
    font-weight:600;
}

.nav-menu li a:hover{
    color:#6b3d18;
}

/* MOBILE */

@media(max-width:991px){

    .header-icons{
        justify-content:center;
        margin-top:20px;
    }

    .nav-menu{
        display:none;
    }

    .category-btn{
        width:100%;
        margin:15px 0;
    }

    .search-box{
        margin-top:20px;
    }
}


.nav-menu a {
    color: #333;
    text-decoration: none;
    padding: 18px 15px;
    display: block;
    transition: .3s;
}

.nav-menu a:hover {
    color: #d4af37;
}

.nav-menu a.active {
    color: #d4af37;
    font-weight: 700;
    border-bottom: 3px solid #d4af37;
}

.invisible{
    visibility: hidden;
}

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

.mobile-header {
    display: none;
    background: #fff;
    width: 100%;
    position: relative;
    z-index: 1000;
}

.mobile-header-bar {
    height: 64px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

/* HAMBURGER */

.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    padding: 8px;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #6b3d18;
    border-radius: 3px;
}

/* BRAND */

.mobile-brand {
    color: #6b3d18;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.mobile-brand:hover {
    color: #6b3d18;
}

/* CART */

.mobile-cart {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 22px;
    text-decoration: none;
}

.mobile-cart:hover {
    color: #6b3d18;
}

.mobile-cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    background: #6b3d18;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SEARCH */

.mobile-search {
    padding: 10px 16px 14px;
    background: #fff;
}

.mobile-search form {
    margin: 0;
}

.mobile-search-box {
    height: 46px;
    display: flex;
    align-items: center;
    border: 2px solid #6b3d18;
    border-radius: 30px;
    overflow: hidden;
}

.mobile-search-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 16px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
}

.mobile-search-box button {
    width: 50px;
    height: 100%;
    border: none;
    background: #6b3d18;
    color: #fff;
    font-size: 17px;
}

/* SHOW MOBILE HEADER */

@media (max-width: 991px) {

    .mobile-header {
        display: block !important;
    }

}

/* HIDE MOBILE HEADER ON DESKTOP */

@media (min-width: 992px) {

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

}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1998;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;

    width: 82%;
    max-width: 340px;
    height: 100vh;

    background: #ffffff;

    z-index: 1999;

    transform: translateX(-100%);
    transition: transform 0.3s ease;

    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);

    overflow-y: auto;
}

/* MENU HEADER */

.mobile-menu-header {
    height: 64px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #6b3d18;
    color: #ffffff;

    font-size: 20px;
    font-weight: 700;
}

.mobile-menu-close {
    border: none;
    background: transparent;

    color: #ffffff;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;
}

/* MENU LINKS */

.mobile-menu-links {
    display: flex;
    flex-direction: column;

    padding: 10px 0;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;

    gap: 16px;

    padding: 16px 22px;

    color: #333333;

    text-decoration: none;

    font-size: 16px;

    border-bottom: 1px solid #eeeeee;
}

.mobile-menu-links a:hover {
    background: #f7f7f7;
    color: #6b3d18;
}

.mobile-menu-links i {
    width: 24px;

    text-align: center;

    color: #6b3d18;
}

/* =========================================
   OPEN STATE
   ========================================= */

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .mobile-menu-drawer {
    transform: translateX(0);
}

body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

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

@media (min-width: 992px) {

    .mobile-menu-drawer,
    .mobile-menu-overlay {
        display: none !important;
    }

}

/* =========================================
   HAMBURGER ANIMATION
   ========================================= */

.mobile-menu-toggle span {
    transition: transform 0.25s ease,
                opacity 0.2s ease;
}

/* OPEN STATE */

body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}



.mobile-menu-links {
    padding: 8px 0;
}

.mobile-menu-links a {
    min-height: 56px;
    padding: 14px 22px;

    border-bottom: 1px solid #f0f0f0;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

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

.mobile-menu-links a:hover {
    padding-left: 27px;
}

.mobile-menu-links i {
    font-size: 17px;
}

.mobile-menu-links span {
    font-weight: 500;
}

/* Better close-button touch area */

.mobile-menu-close {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
}

/* Slightly softer drawer */

.mobile-menu-drawer {
    border-radius: 0 12px 12px 0;
}

/* Keep the overlay smooth */

.mobile-menu-overlay {
    backdrop-filter: blur(2px);
}