/* ══════════════════════════════
   File Name: style.css
   Cleaned - No Duplicates
══════════════════════════════ */

/* ══════════════════════════════
   FONT FACE DECLARATIONS
══════════════════════════════ */
@font-face {
    font-family: 'Inter';
    src: url("fonts/Inter-VariableFont_opsz,wght.ttf") format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url("fonts/Inter-Italic-VariableFont_opsz,wght.ttf") format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* ══════════════════════════════
   ROOT VARIABLES
══════════════════════════════ */
:root {
    /* Brand */
    --color-primary:       #e05a2a;
    --color-primary-hover: #c2410c;
    --color-primary-rgb:   224, 90, 42;

    /* Bootstrap overrides */
    --bs-primary:          var(--color-primary);
    --bs-primary-rgb:      var(--color-primary-rgb);
    --bs-link-color:       var(--color-primary);
    --bs-link-hover-color: var(--color-primary-hover);

    /* Hero gradient */
    --hero-from: var(--color-primary);
    --hero-to:   var(--color-primary-hover);

    /* Layout */
    --navbar-height:    74px;
    --navbar-height-sm: 66px;
    --body-bg:          #f5f7fb;

    /* Surfaces */
    --color-surface:    #ffffff;
    --color-border:     #eef2f6;
    --color-border-alt: #e9edf2;
    --color-bg-hover:   #f1f5f9;
    --color-bg-light:   #f8fafd;

    /* Text */
    --color-text-dark:  #1e2f3e;
    --color-text-body:  #1f3b4c;
    --color-text-title: #1f3e4c;
}

/* ══════════════════════════════
   GLOBAL STYLES
══════════════════════════════ */
* {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: var(--body-bg);
    overflow-x: hidden;
    padding-top: var(--navbar-height); /* Space for fixed navbar */
}

/* ══════════════════════════════
   BUTTON OVERRIDES
══════════════════════════════ */
.btn {
    border-radius: 4px !important;
}

.btn-primary,
.btn-outline-primary {
    border-radius: 4px !important;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color:     var(--color-primary);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: var(--color-primary-hover);
    border-color:     var(--color-primary-hover);
}

.btn-outline-primary {
    color:        var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    border-color:     var(--color-primary);
}

.text-primary {
    color: var(--color-primary) !important;
}

/* ══════════════════════════════
   TOP NAVBAR - STICKY (FIXED)
══════════════════════════════ */
.navbar-custom {
    background:    var(--color-surface);
    box-shadow:    0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    padding:       0.7rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    position:      fixed;
    top:           0;
    left:          0;
    right:         0;
    z-index:       1030;
}

.menu-btn {
    background:    transparent;
    border:        none;
    font-size:     1.8rem;
    padding:       0;
    margin-right:  12px;
    width:         40px;
    height:        40px;
    display:       inline-flex;
    align-items:   center;
    justify-content: center;
    border-radius: 4px;
    transition:    all 0.2s ease;
    color:         var(--color-text-dark);
}

.menu-btn:hover {
    background-color: #f0f4f9;
    transform:        scale(0.96);
}

.brand-logo {
    font-weight:     800;
    font-size:       1.65rem;
    letter-spacing:  -0.3px;
    background:      linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    background-clip: text;
    -webkit-background-clip: text;
    color:           transparent;
    text-decoration: none;
    display:         inline-flex;
    align-items:     center;
    gap:             8px;
}

.brand-logo i {
    background: none;
    color:      var(--color-primary);
    font-size:  1.8rem;
}

.nav-icon-btn {
    background:      transparent;
    border:          none;
    font-weight:     500;
    font-size:       0.95rem;
    padding:         0.45rem 1rem;
    border-radius:   4px;
    transition:      all 0.2s;
    color:           var(--color-text-body);
    display:         inline-flex;
    align-items:     center;
    gap:             8px;
    text-decoration: none;
    position:        relative;
}

.nav-icon-btn i {
    font-size: 1.2rem;
}

.nav-icon-btn:hover {
    background-color: var(--color-bg-hover);
    color:            var(--color-primary);
}

.dropdown-toggle-custom {
    background:    transparent;
    border:        none;
    padding:       0.45rem 1rem;
    font-weight:   500;
    border-radius: 4px;
    display:       flex;
    align-items:   center;
    gap:           6px;
}

.dropdown-toggle-custom:hover {
    background-color: var(--color-bg-hover);
}

/* ══════════════════════════════
   CART BADGE
══════════════════════════════ */
.cart-badge {
    background-color: var(--color-primary);
    color:            white;
    border-radius:    4px;
    font-size:        0.7rem;
    font-weight:      600;
    padding:          0.15rem 0.55rem;
    margin-left:      5px;
    display:          inline-flex;
    align-items:      center;
    justify-content:  center;
    line-height:      1;
    min-width:        1.2rem;
}

/* ══════════════════════════════
   MULTICOLOR BAR
══════════════════════════════ */
.multicolor-bar {
    position:   fixed;
    top:        68px;
    left:       0;
    width:      100%;
    height:     7px;
    display:    flex;
    z-index:    1029;
    background: var(--color-surface);
}

.bar-segment {
    height:     100%;
    flex:       1;
    transition: all 0.2s ease;
}

/* ══════════════════════════════
   HERO BANNER
══════════════════════════════ */
.hero-banner {
    background:    linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
    padding:       3rem 1.5rem;
    margin-top:    0;
    position:      relative;
    overflow:      hidden;
    box-shadow:    0 4px 12px rgba(0, 0, 0, 0.08);
    text-align:    center;
    border-radius: 0;
}

.hero-banner::before {
    content:        "🌿🍃🥬";
    position:       absolute;
    right:          0;
    bottom:         0;
    font-size:      140px;
    opacity:        0.08;
    pointer-events: none;
    transform:      rotate(-8deg);
    white-space:    pre;
}

.hero-banner .hero-title {
    font-size:     2rem;
    font-weight:   700;
    letter-spacing: -0.3px;
    color:         #ffffff;
    text-shadow:   0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.75rem;
}

.hero-banner .hero-subtext {
    font-size:    1.2rem;
    font-weight:  500;
    color:        rgba(255, 255, 255, 0.95);
    max-width:    700px;
    margin-left:  auto;
    margin-right: auto;
}

/* Hero Search Pill */
.search-pill-large {
    background:    var(--color-surface);
    border-radius: 4px;
    padding:       0;
    box-shadow:    0 8px 20px rgba(0, 0, 0, 0.12);
    max-width:     550px;
    margin:        1.5rem auto 0;
    display:       flex;
    align-items:   center;
    overflow:      hidden;
}

.search-pill-large input {
    border:      none;
    outline:     none;
    font-size:   1rem;
    padding:     0.8rem 1.2rem;
    background:  transparent;
    width:       100%;
    flex:        1;
}

.search-pill-large button {
    background:  var(--color-primary);
    border:      none;
    padding:     0.8rem 1.8rem;
    font-size:   0.95rem;
    font-weight: 600;
    color:       white;
    transition:  0.2s;
    display:     inline-flex;
    align-items: center;
    gap:         8px;
    white-space: nowrap;
    cursor:      pointer;
    margin:      0;
    height:      100%;
}

.search-pill-large button i {
    font-size:   1rem;
    line-height: 1;
}

.search-pill-large button:hover {
    background: var(--color-primary-hover);
}

/* Browse Link Hero */
.browse-link-hero {
    color:           white;
    text-decoration: none;
    font-weight:     600;
    font-size:       1rem;
    display:         inline-flex;
    align-items:     center;
    gap:             8px;
    background:      rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding:         0.5rem 1.4rem;
    border-radius:   4px;
    transition:      0.2s;
    margin-top:      1.2rem;
}

.browse-link-hero:hover {
    background: rgba(255, 255, 255, 0.35);
    color:      #fff9e0;
}

/* ══════════════════════════════
   DROPDOWN MENU
══════════════════════════════ */
.navbar-custom .dropdown-menu {
    border-radius: 4px;
    border:        1px solid var(--color-border);
    box-shadow:    0 8px 24px rgba(0, 0, 0, 0.08);
    padding:       0.5rem 0;
}

.dropdown-item:active {
    background-color: #f0f4fa;
}

/* ══════════════════════════════
   SIDEBAR (OFFCANVAS)
══════════════════════════════ */
.offcanvas-sidebar {
    width:      300px;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border-alt);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.03);
    top:        var(--navbar-height) !important;
    height:     calc(100% - var(--navbar-height)) !important;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.offcanvas-header {
    border-bottom: 1px solid #eef2f8;
    padding:       1.2rem 1.2rem;
    background:    #fefefe;
}

.offcanvas-header .btn-close {
    background-size: 0.9rem;
}

.offcanvas-title {
    font-weight: 700;
    font-size:   1.3rem;
    color:       var(--color-text-title);
}

.offcanvas-backdrop.show {
    opacity:        0.5;
    backdrop-filter: blur(2px);
}

/* Sidebar Navigation */
.sidebar-nav {
    list-style: none;
    padding:    0;
    margin:     0;
}

.sidebar-nav li {
    border-bottom: 1px solid #f0f3f8;
}

.sidebar-nav .nav-link-category {
    display:         flex;
    align-items:     center;
    gap:             14px;
    padding:         0.85rem 1.2rem;
    color:           var(--color-text-dark);
    font-weight:     500;
    font-size:       0.95rem;
    text-decoration: none;
    transition:      all 0.2s;
    background:      var(--color-surface);
    border-radius:   0;
}

.sidebar-nav .nav-link-category i {
    font-size:  1.2rem;
    width:      26px;
    color:      var(--color-primary);
    transition: transform 0.1s ease;
}

.sidebar-nav .nav-link-category:hover {
    background:   var(--color-bg-light);
    color:        var(--color-primary-hover);
    padding-left: 1.5rem;
}

.sidebar-nav .nav-link-category:hover i {
    transform: translateX(3px);
}

/* ══════════════════════════════
   FLASH MESSAGES & ALERTS
══════════════════════════════ */
.alert {
    border-radius: 4px !important;
}

.btn-close:focus {
    box-shadow: none;
}

/* ══════════════════════════════
   UTILITY CLASSES
══════════════════════════════ */
[x-cloak] {
    display: none !important;
}

.container,
.container-fluid {
    position: relative;
    z-index:  1;
}

/* ══════════════════════════════
   RESPONSIVE ADJUSTMENTS
══════════════════════════════ */
@media (max-width: 768px) {
    body {
        padding-top: var(--navbar-height-sm);
    }

    .navbar-custom {
        padding: 0.5rem 1rem;
    }

    .multicolor-bar {
        top: var(--navbar-height-sm);
    }

    .offcanvas-sidebar {
        top:    var(--navbar-height-sm) !important;
        height: calc(100% - var(--navbar-height-sm)) !important;
    }

    .brand-logo {
        font-size: 1.3rem;
    }

    .nav-icon-btn span:not(.cart-badge) {
        display: none;
    }

    .nav-icon-btn i {
        font-size: 1.3rem;
    }

    .nav-icon-btn {
        padding: 0.4rem 0.7rem;
    }

    .hero-banner {
        padding: 2rem 1rem;
    }

    .hero-banner .hero-title {
        font-size: 1.4rem;
    }

    .hero-banner .hero-subtext {
        font-size: 0.95rem;
    }

    .search-pill-large {
        max-width: 90%;
    }

    .search-pill-large button {
        padding:   0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}
















/* ── Hero banner — full (home/shop) ─────────────────────────── */
    .hero-banner {
        background: linear-gradient(135deg, #1a3c2e 0%, #2d6a4f 60%, #52b788 100%);
        color: #fff;
        padding: 48px 0 40px;
    }
    .hero-title {
        font-size: clamp(1.25rem, 3vw, 1.9rem);
        font-weight: 700;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    .hero-subtext {
        font-size: 0.95rem;
        opacity: 0.82;
        margin-bottom: 22px;
    }
    .search-pill-large {
        display: flex;
        background: #fff;
        border-radius: 50px;
        overflow: hidden;
        max-width: 540px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.18);
        margin-bottom: 18px;
    }
    .search-pill-large input {
        flex: 1; border: none; outline: none;
        padding: 12px 20px; font-size: 0.95rem; color: #212529;
    }
    .search-pill-large button {
        background: #2d6a4f; color: #fff; border: none;
        padding: 12px 22px; font-size: 0.9rem; font-weight: 600;
        cursor: pointer; transition: background 0.15s;
        border-radius: 0 50px 50px 0;
    }
    .search-pill-large button:hover { background: #1a3c2e; }
    .browse-link-hero {
        color: rgba(255,255,255,0.85);
        font-size: 0.88rem;
        text-decoration: none;
        border-bottom: 1px dashed rgba(255,255,255,0.4);
        transition: color 0.15s;
    }
    .browse-link-hero:hover { color: #fff; }

    /* ── Hero banner — inner pages ───────────────────────────────── */
    .hero-inner {
        background: linear-gradient(135deg, #1a3c2e 0%, #2d6a4f 100%);
        color: #fff;
        padding: 28px 0 24px;
        border-bottom: 3px solid rgba(82,183,136,0.4);
    }
    .hero-inner-icon {
        font-size: 2rem;
        opacity: 0.9;
        line-height: 1;
    }
    .hero-inner-title {
        font-size: clamp(1.2rem, 2.5vw, 1.6rem);
        font-weight: 700;
        line-height: 1.2;
        margin: 0;
    }
    .hero-inner-breadcrumb {
        font-size: 0.8rem;
        opacity: 0.7;
        margin-top: 4px;
    }
    .hero-inner-breadcrumb a {
        color: rgba(255,255,255,0.75);
        text-decoration: none;
    }
    .hero-inner-breadcrumb a:hover { color: #fff; text-decoration: underline; }
    .hero-inner-breadcrumb .sep { margin: 0 6px; opacity: 0.5; }







/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer {
    background:  #1a2535;
    color:       #adb5bd;
    padding:     3rem 0 1.5rem;
    margin-top:  4rem;
    font-size:   0.88rem;
}
.site-footer .footer-brand {
    font-size:       1.3rem;
    font-weight:     800;
    background:      linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    background-clip: text;
    -webkit-background-clip: text;
    color:           transparent;
    display:         inline-block;
    margin-bottom:   0.5rem;
}
.site-footer .footer-tagline {
    font-size:     0.82rem;
    color:         #6c7a8d;
    margin-bottom: 1rem;
}
.site-footer h6 {
    color:          #e2e8f0;
    font-size:      0.78rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom:  0.85rem;
}
.site-footer a {
    color:           #7a8a9e;
    text-decoration: none;
    display:         block;
    margin-bottom:   0.4rem;
    transition:      color 0.15s;
}
.site-footer a:hover { color: var(--color-primary); }
.site-footer .footer-divider {
    border-color: #2a3548;
    margin:       1.5rem 0 1rem;
}
.site-footer .footer-bottom {
    font-size:       0.78rem;
    color:           #4a5568;
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    flex-wrap:       wrap;
    gap:             0.5rem;
}
.site-footer .footer-social a {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           32px;
    height:          32px;
    border-radius:   50%;
    background:      #2a3548;
    color:           #7a8a9e;
    font-size:       0.9rem;
    margin-bottom:   0;
    transition:      background 0.15s, color 0.15s;
}
.site-footer .footer-social a:hover {
    background: var(--color-primary);
    color:      #fff;
}
.footer-badge {
    display:       inline-flex;
    align-items:   center;
    gap:           6px;
    background:    #2a3548;
    border-radius: 6px;
    padding:       0.3rem 0.7rem;
    font-size:     0.75rem;
    color:         #7a8a9e;
    margin-right:  6px;
    margin-bottom: 6px;
}