/* ===============================
   GLOBAL & VARIABLES
================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --brand-honey: #C8861A;
    --brand-honey-soft: #E2A634;
    --brand-olive: #3D5A1E;
    --brand-olive-light: #4F6B2F;
    --text-heading: #2C2010;
    --text-muted: #6B5F4F;
    --text-light: #FFFFFF;
    --border-light: #E0D4BC;
    --border-soft: #EAE0CF;
    --bg-page: #F5F0E8;
    --bg-card: #FFFFFF;
    --bg-header: #FFFFFF;
    --shadow-header: 0 2px 12px rgba(90,70,40,0.10);
    --shadow-card: 0 4px 16px rgba(120,90,40,0.10);
    --radius-card: 12px;
}

* { box-sizing: border-box; }

body {
    background: var(--bg-page);
    font-family: 'Nunito', sans-serif;
    color: var(--text-heading);
    margin: 0;
}

a { text-decoration: none; }

/* ===============================
   HEADER
================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    box-shadow: var(--shadow-header);
    border-bottom: 1px solid var(--border-light);
}

.navbar-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
}

/* ===============================
   BRAND
================================ */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-honey-soft);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--text-heading);
}

.brand-text small {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--brand-honey);
    text-transform: uppercase;
    font-weight: 700;
}

/* ===============================
   NAV LINKS (with dropdowns)
================================ */
.nav-center {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-item-wrap {
    position: relative;
}

.nav-center a.nav-link-item {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-heading);
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nav-center a.nav-link-item:hover {
    background: #F5EDD8;
    color: var(--brand-honey);
}

.nav-center a.nav-link-item .nav-arrow {
    font-size: 10px;
    opacity: 0.6;
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(90,70,40,0.14);
    border: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.18s ease;
    z-index: 2000;
}

.nav-item-wrap:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    transition: 0.15s;
}

.nav-dropdown a:first-child { border-radius: 10px 10px 0 0; }
.nav-dropdown a:last-child  { border-radius: 0 0 10px 10px; }

.nav-dropdown a:hover {
    background: #F5EDD8;
    color: var(--brand-honey);
}

/* ===============================
   RIGHT NAV
================================ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Search */
.nav-search {
    display: flex;
    align-items: center;
    background: #F5F0E8;
    border: 1.5px solid var(--border-light);
    border-radius: 30px;
    padding: 6px 14px;
    gap: 8px;
    transition: 0.2s;
}

.nav-search:focus-within {
    border-color: var(--brand-honey);
    box-shadow: 0 0 0 3px rgba(200,134,26,0.12);
}

.nav-search input {
    border: none;
    background: transparent;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    outline: none;
    width: 200px;
    color: var(--text-heading);
}

.nav-search input::placeholder { color: #AAA; }

.nav-search .search-icon {
    color: var(--brand-honey);
    font-size: 16px;
}

/* Cart */
.cart-icon {
    font-size: 22px;
    color: var(--text-heading);
    position: relative;
    text-decoration: none;
    padding: 4px;
}

.cart-icon:hover { color: var(--brand-honey); }

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--brand-honey);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* Hamburger */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--text-heading);
    cursor: pointer;
}

/* Profile */
.profile-dropdown { position: relative; }

.profile-btn {
    background: var(--brand-olive);
    border: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Nunito', sans-serif;
}

.profile-btn:hover { background: var(--brand-olive-light); }

.profile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.15s ease;
    pointer-events: none;
    border: 1px solid var(--border-light);
}

.profile-menu a {
    padding: 11px 16px;
    font-size: 13px;
    color: var(--text-heading);
    text-decoration: none;
    display: block;
    font-weight: 600;
}

.profile-menu a:hover { background: #F5EDD8; }
.profile-menu .logout { color: #b33; }

.profile-dropdown:hover .profile-menu,
.profile-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

/* ===============================
   MOBILE NAV
================================ */
@media (max-width: 991px) {
    .menu-toggle { display: block; }
    .nav-search { display: none; }

    .nav-center {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        display: none;
        box-shadow: 0 8px 20px rgba(90,70,40,0.12);
        border-radius: 0 0 16px 16px;
        overflow: hidden;
        border: 1px solid var(--border-soft);
        z-index: 2000;
        padding: 8px 0;
    }

    .nav-center.show { display: flex; }

    .nav-item-wrap { width: 100%; }

    .nav-center a.nav-link-item {
        width: 100%;
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-soft);
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 0;
        border: none;
        border-left: 3px solid var(--brand-honey-soft);
        margin-left: 16px;
    }
}

/* ===============================
   HERO SLIDER
================================ */
.hero-slider {
    height: 380px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/slider.png') no-repeat center center;
    background-size: cover;
    z-index: 0;
}

.hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slider .slide {
    width: 100%;
    position: relative;
    z-index: 2;
}

.slide-content {
    max-width: 520px;
    margin-left: 80px;
    color: #fff;
}

.slide-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-content p {
    font-size: 17px;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.88);
    font-style: italic;
}

.btn-primary-custom {
    background: var(--brand-honey);
    color: #fff;
    padding: 12px 36px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    transition: 0.2s;
    border: none;
}

.btn-primary-custom:hover {
    background: #A86E12;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-slider { height: 280px; }
    .slide-content { margin-left: 24px; margin-right: 24px; }
    .slide-content h1 { font-size: 28px; }
    .slide-content p { font-size: 14px; }
}

/* ===============================
   FILTER BAR
================================ */
.filter-bar {
    background: #fff;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
}

.filter-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.category-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.category-pill {
    padding: 7px 18px;
    border-radius: 6px;
    background: #F5F0E8;
    border: 1.5px solid var(--border-light);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-heading);
    transition: 0.2s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Nunito', sans-serif;
}

.category-pill.active,
.category-pill:hover {
    background: var(--brand-olive);
    color: #fff;
    border-color: var(--brand-olive);
}

.filter-select {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1.5px solid var(--border-light);
    background: #F5F0E8;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-heading);
    outline: none;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
}

.filter-select:focus {
    border-color: var(--brand-honey);
}

/* ===============================
   SECTION HEADING
================================ */
.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-heading);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 24px;
    margin-top: 36px;
}

/* ===============================
   PRODUCT CARD
================================ */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 0;
    position: relative;
    height: 100%;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: 0.25s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(120,90,40,0.16);
}

/* Badge */
.badge-custom {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brand-honey);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 5px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Image container */
.product-image {
    background: #F8F4EC;
    padding: 20px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
}

.product-image img {
    max-height: 145px;
    max-width: 100%;
    object-fit: contain;
}

/* Card body */
.product-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Title */
.product-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
    line-height: 1.3;
}

/* Price */
.product-card .price {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-honey);
    margin-bottom: 14px;
    font-family: 'Nunito', sans-serif;
}

/* Actions */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.product-actions form {
    flex: 1;
    margin: 0;
}

/* Add to Cart Button */
.btn-cart {
    background: var(--brand-olive);
    color: #fff;
    border: none;
    padding: 11px 0;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    transition: 0.2s ease;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.3px;
}

.btn-cart:hover { background: var(--brand-olive-light); }

/* Buy Now */
.btn-buy {
    background: #FFF3D6;
    border: 1.5px solid var(--brand-honey);
    color: var(--brand-honey);
    padding: 11px 0;
    border-radius: 6px;
    font-weight: 700;
    flex: 1;
    text-align: center;
    transition: 0.2s ease;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    font-family: 'Nunito', sans-serif;
}

.btn-buy:hover {
    background: var(--brand-honey);
    color: #fff;
}

.btn-buy.disabled,
.btn-buy:disabled {
    background: #F0EDE8;
    border: 1.5px solid #D5CEBC;
    color: #AAA;
    pointer-events: none;
    font-size: 12px;
}

/* ===============================
   TRUST BADGES
================================ */
.trust-bar {
    background: #fff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 28px 0;
    margin-top: 50px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    border-right: 1px solid var(--border-light);
}

.trust-item:last-child { border-right: none; }

.trust-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.trust-text strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-heading);
}

.trust-text span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===============================
   LOAD MORE
================================ */
.btn-load-more {
    background: var(--brand-olive);
    color: var(--text-light);
    padding: 12px 44px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    font-weight: 800;
    transition: 0.25s ease;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-load-more:hover {
    background: var(--brand-olive-light);
    transform: translateY(-2px);
}

/* ===============================
   FOOTER
================================ */
.main-footer {
    margin-top: 0;
    background: var(--text-heading);
    color: rgba(255,255,255,0.7);
}

.footer-top {
    background: var(--brand-honey);
    padding: 16px 0;
}

.footer-top .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-top a {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    opacity: 0.9;
    transition: 0.15s;
}

.footer-top a:hover { opacity: 1; }
.footer-top span { color: rgba(255,255,255,0.4); }

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.pay-badge {
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===============================
   UTILITY
================================ */
.product-section { padding-bottom: 40px; }

@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}

@media (min-width: 1200px) {
    .col-xl-3-custom {
        flex: 0 0 auto;
        width: 25%;
    }
}

@media (max-width: 768px) {
    .trust-item {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 12px 10px;
    }
    .trust-item:last-child { border-bottom: none; }
    .footer-payments { justify-content: flex-start; margin-top: 8px; }
}