/* ================================================
   Hazera Nursery - Custom Theme CSS
   Green/Nature Palette | Bootstrap 5 Extension
   ================================================ */

:root {
    --hn-green: #2d7a22;
    --hn-green-light: #4caf50;
    --hn-green-dark: #1b5e20;
    --hn-lime: #8bc34a;
    --hn-earth: #795548;
    --hn-cream: #f9fbe7;
    --hn-text: #2c2c2c;
    --hn-muted: #6c757d;
    --hn-border: #e0e8d8;
    --hn-shadow: 0 4px 24px rgba(45, 122, 34, .09);
    --hn-radius: 12px;
    --hn-radius-sm: 8px;
    --hn-transition: all .25s ease;
    --font-bangla: 'Hind Siliguri', sans-serif;
    --font-latin: 'Poppins', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-bangla);
    color: var(--hn-text);
    background: #f8fdf5;
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }
}

/* ── TOPBAR ── */
.topbar {
    background: linear-gradient(135deg, var(--hn-green-dark) 0%, var(--hn-green) 100%);
    font-family: var(--font-bangla);
}

.topbar a {
    color: rgba(255, 255, 255, .9);
    transition: var(--hn-transition);
}

.topbar a:hover {
    color: #fff;
}

/* ── HEADER TIER 1 ── */
.main-header {
    border-bottom: 1px solid var(--hn-border);
}

.actions-wrap .action-item {
    color: #444;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: var(--hn-transition);
}

.actions-wrap .action-item i {
    font-size: 1.1rem;
    color: #333;
}

.actions-wrap .action-item:hover {
    color: var(--hn-green);
}

/* ── MAIN NAVBAR (TIER 2) ── */
.sub-navbar {
    background: linear-gradient(90deg, #2d7a22, #43a047);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}

@media (max-width: 991.98px) {
    .sub-navbar {
        display: none !important;
    }
}

.sub-navbar .nav-link {
    color: rgba(255, 255, 255, .95) !important;
    padding: .8rem 1.25rem !important;
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--hn-transition);
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.sub-navbar .nav-link:hover,
.sub-navbar .nav-link.active {
    background: rgba(255, 255, 255, .15);
    color: #fff !important;
}

.sub-navbar .dropdown-menu {
    border-radius: 0 0 8px 8px;
    margin-top: 0;
}

/* Handle navbar-search center alignment improvements if needed */
.main-header .navbar-search {
    max-width: 100%;
}

/* ── NAVBAR ── */
.navbar {
    border-bottom: 2px solid var(--hn-border);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--hn-green), var(--hn-lime));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.logo-icon.sm {
    width: 32px;
    height: 32px;
    font-size: .9rem;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--font-latin);
    font-weight: 700;
    color: var(--hn-green-dark);
    font-size: 1.1rem;
    line-height: 1.1;
}

.logo-sub {
    font-size: .68rem;
    color: var(--hn-muted);
}

.nav-link {
    font-weight: 500;
    color: var(--hn-text) !important;
    border-radius: var(--hn-radius-sm);
    padding: .5rem .85rem !important;
    transition: var(--hn-transition);
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: var(--hn-green) !important;
}

/* ── SEARCH ── */
.search-input {
    border: 1.5px solid var(--hn-border);
    border-right: 0;
    border-radius: var(--hn-radius-sm) 0 0 var(--hn-radius-sm) !important;
    background: var(--hn-cream);
}

.search-input:focus {
    border-color: var(--hn-green);
    box-shadow: 0 0 0 3px rgba(45, 122, 34, .12);
}

.btn-search {
    background: var(--hn-green);
    color: #fff;
    border-radius: 0 var(--hn-radius-sm) var(--hn-radius-sm) 0 !important;
    border: none;
    padding: .5rem 1rem;
}

.btn-search:hover {
    background: var(--hn-green-dark);
    color: #fff;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-radius: var(--hn-radius-sm);
    background: #fff;
    z-index: 9999;
    max-height: 380px;
    overflow-y: auto;
    border: 1.5px solid var(--hn-border);
    display: none;
}

.search-suggestions .s-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--hn-transition);
    text-decoration: none;
    color: var(--hn-text);
}

.search-suggestions .s-item:hover {
    background: var(--hn-cream);
}

.search-suggestions .s-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
}

.search-suggestions .s-name {
    font-size: .9rem;
    font-weight: 500;
}

.search-suggestions .s-price {
    font-size: .8rem;
    color: var(--hn-green);
    font-weight: 600;
}

/* ── CART BTN ── */
.cart-btn {
    position: relative;
    color: var(--hn-text);
    text-decoration: none;
    padding: .4rem .6rem;
    border-radius: 8px;
    transition: var(--hn-transition);
}

.cart-btn:hover {
    background: var(--hn-cream);
    color: var(--hn-green);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--hn-green);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

/* ── HERO ── */
.hero-section {
    background: linear-gradient(135deg, #1b4d0f 0%, #2d7a22 40%, #4caf50 100%);
    min-height: 520px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.04)' d='M0,160L60,133.3C120,107,240,53,360,53.3C480,53,600,107,720,128C840,149,960,139,1080,122.7C1200,107,1320,85,1380,74.7L1440,64V320H0Z'/%3E%3C/svg%3E") bottom/cover no-repeat;
}

.hero-section .leaf-bg {
    position: absolute;
    right: -2%;
    top: -5%;
    font-size: 24rem;
    color: rgba(139, 195, 74, 0.15);
    /* Brand Lime Green with opacity */
    line-height: 1;
    transform: rotate(-15deg);
    z-index: 1;
    pointer-events: none;
}

.hero-section .leaf-bg-2 {
    position: absolute;
    left: -5%;
    bottom: -10%;
    font-size: 18rem;
    color: rgba(139, 195, 74, 0.1);
    /* Brand Lime Green with opacity */
    line-height: 1;
    transform: rotate(25deg);
    z-index: 1;
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-latin);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .85);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, .25);
    border-radius: 50px;
    padding: .4rem 1rem;
    color: #fff;
    font-size: .85rem;
    margin-bottom: 1.5rem;
}

.hero-img-wrap {
    position: relative;
}

.hero-img-wrap img {
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}

.hero-float-card {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: #fff;
    border-radius: var(--hn-radius);
    padding: 14px 18px;
    box-shadow: var(--hn-shadow);
    min-width: 160px;
}

.hero-float-card .fc-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hn-green);
}

.hero-float-card .fc-lbl {
    font-size: .75rem;
    color: var(--hn-muted);
}

/* ── SECTION TITLES ── */
.section-title {
    font-family: var(--font-latin);
    font-weight: 700;
    color: var(--hn-green-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    height: 3px;
    width: 50%;
    background: linear-gradient(135deg, var(--hn-green), var(--hn-lime));
    border-radius: 99px;
    margin-top: 6px;
}

.section-badge {
    display: inline-block;
    background: rgba(45, 122, 34, .1);
    color: var(--hn-green);
    border-radius: 50px;
    padding: .2rem .9rem;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

/* ── CATEGORY CARDS ── */
.cat-card {
    background: #fff;
    border-radius: var(--hn-radius);
    border: 2px solid var(--hn-border);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: var(--hn-transition);
    display: block;
}

.cat-card:hover {
    border-color: var(--hn-green);
    transform: translateY(-6px);
    box-shadow: var(--hn-shadow);
    color: var(--hn-text);
}

.cat-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(45, 122, 34, .1), rgba(139, 195, 74, .15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--hn-green);
    margin: 0 auto 1rem;
    transition: var(--hn-transition);
}

.cat-card:hover .cat-icon {
    background: var(--hn-green);
    color: #fff;
    transform: scale(1.1);
}

.cat-name {
    font-weight: 600;
    font-size: .95rem;
    color: var(--hn-text);
}

.cat-count {
    font-size: .78rem;
    color: var(--hn-muted);
}

/* ── PRODUCT CARDS ── */
.product-card {
    background: #fff;
    border-radius: var(--hn-radius);
    border: 1.5px solid var(--hn-border);
    overflow: hidden;
    transition: var(--hn-transition);
}

.product-card:hover {
    box-shadow: var(--hn-shadow);
    transform: translateY(-4px);
    border-color: var(--hn-green-light);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.badge-sale {
    background: #e53935;
    color: #fff;
    border-radius: 6px;
    padding: .2rem .6rem;
    font-size: .75rem;
    font-weight: 700;
}

.badge-new {
    background: var(--hn-green);
    color: #fff;
    border-radius: 6px;
    padding: .2rem .6rem;
    font-size: .75rem;
    font-weight: 700;
}

.badge-out {
    background: #9e9e9e;
    color: #fff;
    border-radius: 6px;
    padding: .2rem .6rem;
    font-size: .75rem;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--hn-transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 34px;
    height: 34px;
    background: #fff;
    color: var(--hn-green);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transition: var(--hn-transition);
}

.product-action-btn:hover {
    background: var(--hn-green);
    color: #fff;
}

.product-body {
    padding: 1rem;
}

.product-cat {
    font-size: .75rem;
    color: var(--hn-green);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.product-name {
    font-weight: 600;
    font-size: .95rem;
    margin: .3rem 0;
    color: var(--hn-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name:hover {
    color: var(--hn-green);
}

.product-stars {
    color: #ffc107;
    font-size: .75rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .5rem 0;
}

.price-main {
    font-family: var(--font-latin);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hn-green);
}

.price-old {
    font-family: var(--font-latin);
    font-size: .85rem;
    color: var(--hn-muted);
    text-decoration: line-through;
}

.btn-cart {
    background: linear-gradient(135deg, var(--hn-green), var(--hn-lime));
    color: #fff;
    border: none;
    border-radius: var(--hn-radius-sm);
    padding: .45rem 1rem;
    font-size: .85rem;
    font-weight: 500;
    width: 100%;
    transition: var(--hn-transition);
}

.btn-cart:hover {
    background: linear-gradient(135deg, var(--hn-green-dark), var(--hn-green));
    box-shadow: 0 4px 12px rgba(45, 122, 34, .3);
    transform: translateY(-1px);
}

.btn-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ── SHOP SIDEBAR ── */
.shop-sidebar {
    background: #fff;
    border-radius: var(--hn-radius);
    border: 1.5px solid var(--hn-border);
    padding: 1.5rem;
}

.sidebar-title {
    font-weight: 700;
    color: var(--hn-green-dark);
    font-size: 1rem;
    border-bottom: 2px solid var(--hn-border);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
}

.filter-cat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: .4rem .5rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--hn-text);
    font-size: .9rem;
    transition: var(--hn-transition);
}

.filter-cat-link:hover,
.filter-cat-link.active {
    background: rgba(45, 122, 34, .08);
    color: var(--hn-green);
    font-weight: 500;
}

.price-slider {
    accent-color: var(--hn-green);
}

/* ── BREADCRUMB ── */
.hn-breadcrumb {
    background: #fff;
    border-bottom: 1.5px solid var(--hn-border);
    padding: .7rem 0;
}

.breadcrumb-item a {
    color: var(--hn-green);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--hn-muted);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--hn-muted);
}

/* ── PRODUCT DETAIL ── */
.product-gallery-main {
    border-radius: var(--hn-radius);
    overflow: hidden;
    border: 2px solid var(--hn-border);
}

.product-gallery-main img {
    width: 100%;
    object-fit: contain;
    max-height: 420px;
}

.product-detail-price .main-price {
    font-family: var(--font-latin);
    font-size: 2rem;
    font-weight: 700;
    color: var(--hn-green);
}

.product-detail-price .old-price {
    font-family: var(--font-latin);
    font-size: 1.1rem;
    color: var(--hn-muted);
    text-decoration: line-through;
}

.stock-badge-in {
    background: rgba(45, 122, 34, .1);
    color: var(--hn-green);
    border-radius: 50px;
    padding: .2rem .8rem;
    font-size: .8rem;
    font-weight: 600;
}

.stock-badge-out {
    background: rgba(200, 0, 0, .08);
    color: #c00;
    border-radius: 50px;
    padding: .2rem .8rem;
    font-size: .8rem;
    font-weight: 600;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--hn-border);
    border-radius: var(--hn-radius-sm);
    overflow: hidden;
    width: fit-content;
}

.qty-control button {
    background: var(--hn-cream);
    border: none;
    padding: .4rem .9rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--hn-transition);
}

.qty-control button:hover {
    background: var(--hn-green);
    color: #fff;
}

.qty-control input {
    border: none;
    width: 52px;
    text-align: center;
    font-weight: 700;
    outline: none;
}

.nav-tabs .nav-link {
    color: var(--hn-muted);
}

.nav-tabs .nav-link.active {
    color: var(--hn-green);
    border-bottom-color: var(--hn-green);
}

/* ── CART ── */
.cart-table {
    background: #fff;
    border-radius: var(--hn-radius);
    border: 1.5px solid var(--hn-border);
    overflow: hidden;
}

.cart-table thead {
    background: var(--hn-cream);
}

.cart-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--hn-border);
}

.cart-summary {
    background: #fff;
    border-radius: var(--hn-radius);
    border: 1.5px solid var(--hn-border);
    padding: 1.5rem;
}

.cart-summary .sum-row {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    font-size: .95rem;
}

.cart-summary .sum-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--hn-green);
    border-top: 2px solid var(--hn-border);
    margin-top: .5rem;
    padding-top: .8rem;
}

/* ── CHECKOUT ── */
.checkout-card {
    background: #fff;
    border-radius: var(--hn-radius);
    border: 1.5px solid var(--hn-border);
    padding: 2rem;
}

/* ── BUTTONS ── */
.btn-hn-primary {
    background: linear-gradient(135deg, var(--hn-green), var(--hn-lime));
    color: #fff;
    border: none;
    border-radius: var(--hn-radius-sm);
    padding: .65rem 1.8rem;
    font-weight: 600;
    transition: var(--hn-transition);
}

.btn-hn-primary:hover {
    background: linear-gradient(135deg, var(--hn-green-dark), var(--hn-green));
    color: #fff;
    box-shadow: 0 5px 15px rgba(45, 122, 34, .3);
    transform: translateY(-2px);
}

.btn-hn-outline {
    border: 2px solid var(--hn-green);
    color: var(--hn-green);
    background: transparent;
    border-radius: var(--hn-radius-sm);
    padding: .6rem 1.6rem;
    font-weight: 600;
    transition: var(--hn-transition);
}

.btn-hn-outline:hover {
    background: var(--hn-green);
    color: #fff;
}

/* ── DASHBOARD ── */
.dashboard-sidebar {
    background: #fff;
    border-radius: var(--hn-radius);
    border: 1.5px solid var(--hn-border);
    overflow: hidden;
}

.dashboard-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: .75rem 1.25rem;
    color: var(--hn-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: var(--hn-transition);
}

.dashboard-nav-link:hover,
.dashboard-nav-link.active {
    background: rgba(45, 122, 34, .07);
    color: var(--hn-green);
    border-left-color: var(--hn-green);
    font-weight: 500;
}

/* ── MOBILE SIDEBAR ── */
.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    padding: .8rem 1.5rem !important;
    border-radius: 0;
    color: var(--hn-text) !important;
    border-left: 4px solid transparent;
    font-weight: 500;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(45, 122, 34, .06) !important;
    color: var(--hn-green) !important;
    border-left-color: var(--hn-green);
}

.offcanvas-title .logo-text {
    font-size: 1.2rem;
}

.sidebar-nav .collapse .nav-link {
    padding-top: .6rem !important;
    padding-bottom: .6rem !important;
    font-size: .9rem;
}

/* ── MOBILE BOTTOM NAV ── */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, .08);
    z-index: 1030;
    border-top: 1px solid var(--hn-border);
}

.nav-item-wrap {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--hn-muted);
    transition: var(--hn-transition);
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item span {
    font-size: .7rem;
    font-weight: 500;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--hn-green);
}

.home-wrap {
    position: relative;
    top: -15px;
}

.home-btn {
    width: 60px;
    height: 60px;
    background: var(--hn-green-dark) !important;
    color: #fff !important;
    border: 5px solid #fff;
    border-radius: 50%;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(45, 122, 34, .3);
}

.home-btn i {
    font-size: 1.5rem !important;
    margin-bottom: 0 !important;
}

.home-btn span {
    font-size: .65rem !important;
}

.cart-badge-sm {
    position: absolute;
    top: -5px;
    right: 15px;
    background: #e53935;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.order-status-badge {
    border-radius: 50px;
    padding: .25rem .75rem;
    font-size: .75rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.status-processing {
    background: #e3f2fd;
    color: #1565c0;
}

.status-shipped {
    background: #f3e5f5;
    color: #6a1b9a;
}

.status-delivered {
    background: rgba(45, 122, 34, .1);
    color: var(--hn-green-dark);
}

.status-cancelled {
    background: #ffebee;
    color: #c62828;
}

/* ── FOOTER ── */
.footer {
    background: linear-gradient(180deg, #1a3c12 0%, #0f2309 100%);
}

.footer-title {
    color: var(--hn-lime) !important;
    font-weight: 600;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: .5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: .875rem;
    transition: var(--hn-transition);
}

.footer-links a:hover {
    color: var(--hn-lime);
    padding-left: 4px;
}

.social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    margin-right: 6px;
    transition: var(--hn-transition);
}

.social-btn:hover {
    background: var(--hn-green);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* ── PAGINATION ── */
.hn-pagination .page-link {
    color: var(--hn-green);
    border-color: var(--hn-border);
    border-radius: 6px !important;
    margin: 0 2px;
}

.hn-pagination .page-item.active .page-link {
    background: var(--hn-green);
    border-color: var(--hn-green);
    color: #fff;
}

.hn-pagination .page-link:hover {
    background: rgba(45, 122, 34, .08);
    color: var(--hn-green-dark);
}

/* ── FORMS ── */
.form-control:focus,
.form-select:focus {
    border-color: var(--hn-green);
    box-shadow: 0 0 0 3px rgba(45, 122, 34, .12);
}

.form-label {
    font-weight: 500;
    font-size: .9rem;
    color: var(--hn-text);
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp .5s ease forwards;
}

/* ── MISC ── */
.dropdown-menu-animated {
    animation: fadeInUp .2s ease;
}

.text-success-light {
    color: var(--hn-lime) !important;
}

.bg-success-soft {
    background: rgba(45, 122, 34, .08) !important;
}

.text-success {
    color: var(--hn-green) !important;
}

.bg-success {
    background-color: var(--hn-green) !important;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--hn-border);
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: var(--hn-muted);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 380px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .cat-card {
        padding: 1.2rem 1rem;
    }

    .product-body {
        padding: .75rem;
    }
}

/* ── ABOUT PAGE REDESIGN ── */
.about-hero {
    background: linear-gradient(135deg, rgba(45, 122, 34, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 122, 34, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.mission-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--hn-border);
    height: 100%;
    transition: var(--hn-transition);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--hn-green-light);
}

.mission-icon {
    width: 70px;
    height: 70px;
    background: rgba(45, 122, 34, 0.1);
    color: var(--hn-green);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--hn-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: #fff;
    border: 3px solid var(--hn-green);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left-item {
    left: 0;
}

.right-item {
    left: 50%;
}

.right-item::after {
    left: -8px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--hn-border);
    transition: var(--hn-transition);
}

.timeline-content:hover {
    border-color: var(--hn-green);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 23px;
    }

    .right-item {
        left: 0%;
    }
}

/* ── SMALL QTY CONTROL (For Cards) ── */
.qty-control-wrapper {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid var(--hn-border);
    border-radius: 50px;
    padding: 2px;
    width: fit-content;
}

.btn-qty-sm {
    width: 28px;
    height: 28px;
    border-radius: 50% !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--hn-border);
    color: var(--hn-text);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--hn-transition);
}

.btn-qty-sm:hover {
    background: var(--hn-green);
    color: #fff;
    border-color: var(--hn-green);
}

.qty-input-sm {
    width: 35px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hn-green-dark);
}

.qty-input-sm:focus {
    outline: none;
}

.price-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/*  RATING INPUT  */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input label:hover,
.rating-input label:hover~label,
.rating-input input:checked~label {
    color: #ffc107 !important;
}

.rating-input label {
    transition: color 0.2s ease;
}

.review-item:last-child {
    border-bottom: none !important;
}

/* Mobile Overrides for Product Cards */
@media (max-width: 768px) {
    .product-card .qty-control-wrapper {
        display: none !important;
    }

    .product-card .price-qty-row {
        justify-content: center;
        text-align: center;
    }
}

/* Product Image Zoom */
.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-container img {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
    max-width: 100%;
    height: auto;
}

.zoom-container:hover img {
    transform: scale(2);
}

@media (max-width: 991px) {
    .zoom-container:hover img {
        transform: none;
    }

    .zoom-container {
        cursor: default;
    }
}



/* ── RATING INPUT ── */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    transition: color 0.2s ease;
    cursor: pointer;
    color: #ccc;
    font-size: 1.5rem;
}

.rating-input label:hover,
.rating-input label:hover~label,
.rating-input input:checked~label {
    color: #ffc107 !important;
}

.review-item:last-child {
    border-bottom: none !important;
}