
:root {
    --brand-primary: #7A4632;
    --brand-accent: #C9973F;
    --brand-accent-light: #E8C68A;
    --brand-bg-warm: #F6F1EA;
    --brand-bg-light: #F8F4EE;
    --brand-text-dark: #3C2B22;
    --brand-border: #EFE9E2;
    --brand-discount: #B0553F;
    --brand-instock: #8A9A7E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--brand-text-dark);
}

/* ---------- Navbar ---------- */

.navbar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--brand-text-dark);
    padding: 14px 28px;
    /* border-radius: 14px; */
    /* margin: 16px; */
    box-shadow: 0 8px 24px -8px rgba(122, 70, 50, 0.45);
}

.navbar a{
    text-decoration: none;
}
.logo {
    flex-shrink: 0;
    text-decoration: none;
    display: inline-block;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 21px;
    color: #FFFFFF;
    letter-spacing: -0.4px;
}

.logo-accent {
    color: #E8C68A;
    position: relative;
}

.logo-dot {
    position: absolute;
    top: -6px;
    right: -8px;
    width: 4.5px;
    height: 4.5px;
    border-radius: 50%;
    background: #FFFFFF;
}

.search-bar {
    flex-grow: 1;
    display: flex;
    height: 38px;
}

.search-bar input {
    flex-grow: 1;
    border: none;
    background: rgba(255,255,255,0.94);
    border-radius: 9px 0 0 9px;
    padding: 0 14px;
    font-size: 13px;
    outline: none;
    font-family: 'Inter', sans-serif;
    color: var(--brand-text-dark);
}

.search-btn {
    width: 40px;
    background: var(--brand-accent);
    border: none;
    border-radius: 0 9px 9px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #FFFFFF;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.agent-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    color: #F3E8DC;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

.agent-btn i {
    color: var(--brand-accent);
    font-size: 15px;
}

.nav-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.14);
    margin: 0 4px;
}

.nav-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    transition: background 0.15s ease;
}

.nav-icon-btn:hover {
    background: rgba(255,255,255,0.1);
}

.nav-icon-btn i {
    font-size: 19px;
    color: #F3E8DC;
}

.cart-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background: var(--brand-accent-light, #E8C68A);
    color: #4A2E1F;
    font-size: 8.5px;
    font-weight: 700;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--brand-primary);
}

/* CATEGORIES */
.category-bar {
    display: flex;
    align-items: center;
    gap: 26px;
    background: #3c2b22ef;
    padding: 10px 28px;
}

.cat-links-scroll {
    display: flex;
    align-items: center;
    gap: 26px;
}

.cat-all-wrap {
    position: relative;
}

.cat-all {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cat-all i {
    font-size: 15px;
}

.cat-all-caret {
    font-size: 12px !important;
    opacity: 0.7;
}

.cat-all-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    min-width: 220px;
    padding: 8px;
    z-index: 50;
}

.cat-all-dropdown.open {
    display: block;
}

.cat-all-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--brand-text-dark);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
}

.cat-all-dropdown a:hover {
    background: var(--brand-bg-warm);
}

.cat-all-dropdown a i {
    font-size: 16px;
    color: var(--brand-accent);
    width: 18px;
}

.cat-all-divider {
    height: 1px;
    background: var(--brand-border);
    margin: 6px 4px;
}

.cat-link {
    color: #F0E0D2;
    font-size: 13px;
    text-decoration: none;
    padding-bottom: 2px;
}

.cat-link:hover {
    color: #FFFFFF;
}

.cat-link.active {
    color: #FFFFFF;
    font-weight: 700;
    border-bottom: 2px solid var(--brand-accent-light);
}


/* popup message - add to cart */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--brand-text-dark);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */

/* Tablet: navbar wraps to two rows, search bar goes full-width below */
@media (max-width: 860px) {
    .navbar {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 12px;
    }

    .logo {
        order: 1;
    }

    .nav-actions {
        order: 2;
        margin-left: auto;
    }

    .search-bar {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        height: 40px;
    }

    .category-bar {
        padding: 10px 16px;
        gap: 18px;
    }

    .cat-links-scroll {
        gap: 18px;
        overflow-x: auto;
        white-space: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .cat-links-scroll::-webkit-scrollbar {
        display: none;
    }

    .cat-all,
    .cat-link {
        flex-shrink: 0;
    }
}

/* Small phones: trim navbar further */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .logo-text {
        font-size: 17px;
    }

    .agent-btn span {
        display: none;
    }

    .agent-btn {
        padding: 8px 10px;
    }

    .agent-btn i {
        font-size: 17px;
    }

    .nav-divider {
        display: none;
    }

    .nav-icon-btn {
        width: 34px;
        height: 34px;
    }

    .search-bar input {
        font-size: 12.5px;
    }

    .toast {
        left: 16px;
        right: 16px;
        transform: translateY(20px);
        text-align: center;
    }

    .toast.show {
        transform: translateY(0);
    }
}