/**
 * Kaanuro Group - Global Stylesheet
 *
 * IMPORTANT:
 * This file intentionally contains ONLY global styles.
 * Component/section styles such as navbar, hero, categories,
 * product cards, footer, etc. belong in their own CSS files.
 */

/* =========================================================
   1. GLOBAL DESIGN TOKENS
   ========================================================= */
:root {
    /* Brand colors */
    --primary-green: #2d6a4f;
    --dark-green: #1b4332;
    --light-green: #40916c;
    --accent: #52b788;
    --accent-hover: #40916c;

    /* Surfaces */
    --beige: #f8f5f0;
    --beige-dark: #ede8df;
    --white: #ffffff;

    /* Text */
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;

    /* Shared visual tokens */
    --shadow: 0 4px 20px rgba(27, 67, 50, 0.08);
    --radius: 12px;
    --radius-lg: 20px;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;

    /* Typography */
    --base-font-size: 16px;
    --base-line-height: 1.6;
    --heading-line-height: 1.25;

    --h1-size: 2.25rem;
    --h2-size: 1.75rem;
    --h3-size: 1.375rem;
}

/* =========================================================
   2. GLOBAL RESET / FOUNDATION
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: var(--base-font-size);
    line-height: var(--base-line-height);
    color: var(--text-dark);
    background-color: var(--beige);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
}

/* =========================================================
   3. GLOBAL TYPOGRAPHY
   ========================================================= */
.font-display {
    font-family: 'Playfair Display', serif;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-green);
    line-height: var(--heading-line-height);
}

h1 {
    font-size: var(--h1-size);
    margin-bottom: var(--space-3);
}

h2 {
    font-size: var(--h2-size);
    margin-bottom: var(--space-3);
}

h3 {
    font-size: var(--h3-size);
    margin-bottom: var(--space-2);
}

.lead {
    margin-bottom: var(--space-3);
    font-size: 1.05rem;
    color: #3a3a3a;
}

/* =========================================================
   4. GLOBAL UTILITY CLASSES
   ========================================================= */
.text-dark-green {
    color: var(--dark-green) !important;
}

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

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

.bg-dark-green {
    background-color: var(--dark-green) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-beige {
    background-color: var(--beige) !important;
}

.text-muted-2 {
    color: rgba(0, 0, 0, 0.55);
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* =========================================================
   5. GLOBAL BUTTON STYLES
   These are reusable brand utilities, not section styles.
   ========================================================= */
.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    padding: 8px 14px;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline-accent {
    padding: 6px 12px;
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-outline-accent:hover,
.btn-outline-accent:focus {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* =========================================================
   6. GLOBAL FORM CONTROLS
   Keep only site-wide defaults here.
   ========================================================= */
.form-control {
    padding: 10px 12px;
    font-size: 0.95rem;
    border-radius: var(--radius);
}

/* =========================================================
   7. GLOBAL BADGE HELPER
   ========================================================= */
.badge-count {
    position: absolute;
    top: -2px;
    right: -8px;
    min-width: 18px;
    font-size: 0.65rem;
}

/* =========================================================
   1. NAVBAR
   ========================================================= */
.navbar {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
}

.navbar .container {
    align-items: center;
}

.navbar-brand {
    flex: 0 0 auto;
    padding-top: 0;
    padding-bottom: 0;
    margin-right: var(--space-3);
    text-decoration: none;
}

.site-logo {
    display: block;
    width: 150px;
    height: auto;
}

/* =========================================================
   2. DESKTOP NAVIGATION
   ========================================================= */
.navbar .navbar-collapse {
    align-items: center;
}

.navbar .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--accent);
}

.navbar-nav {
    align-items: center;
}

/* =========================================================
   3. SEARCH
   ========================================================= */
.navbar .search-bar {
    width: 100%;
    max-width: 600px;
}

.navbar .search-bar .form-control {
    height: 44px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--beige-dark);
    border-right: 0;
    border-radius: 50px 0 0 50px;
    background-color: var(--beige);
}

.navbar .search-bar .form-control:focus {
    border-color: var(--beige-dark);
    box-shadow: none;
}

.navbar .search-bar .btn-accent {
    min-width: 48px;
    border-radius: 0 50px 50px 0;
}

/* =========================================================
   4. CART / WISHLIST COUNTERS
   ========================================================= */
.navbar .badge-count {
    position: absolute;
    top: 0;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 2px 5px;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
}

/* =========================================================
   5. ACCOUNT DROPDOWN
   ========================================================= */
.navbar .dropdown-menu {
    min-width: 200px;
}

/* =========================================================
   6. MOBILE TOGGLE
   Bootstrap handles the collapse breakpoint. The custom
   button opens the separate mobile offcanvas menu.
   ========================================================= */
.navbar-toggler {
    padding: 0.35rem 0.5rem;
}

/* =========================================================
   7. MOBILE OFFCANVAS
   ========================================================= */
#mobileMenu {
    width: min(320px, 85vw);
}

#mobileMenu .offcanvas-header {
    padding: 18px 16px;
    color: var(--dark-green);
}

#mobileMenu .offcanvas-body {
    padding: 0;
}

#mobileMenu .list-group-item {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
}

#mobileMenu .list-group-item i {
    width: 20px;
    text-align: center;
}

#mobileMenu .list-group-item:hover,
#mobileMenu .list-group-item:focus {
    background-color: #f5f8f5;
}

#mobileMenu .btn-close {
    opacity: 1;
}

/* =========================================================
   8. RESPONSIVE NAVBAR
   ========================================================= */
@media (max-width: 991px) {
    .site-logo {
        width: 140px;
    }
}

@media (max-width: 575px) {
    .navbar {
        min-height: 64px;
    }

    .site-logo {
        width: 125px;
    }
}

/*
 * Kaanuro Group - Hero Carousel
 * Component-specific styles only
 */

/* Hero section */
.hero-carousel-section {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    line-height: 0;
}

#homeBannerCarousel {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

/* Desktop: 1600 x 550 */
#homeBannerCarousel .carousel-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1600 / 550;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #fff;
}

#homeBannerCarousel .carousel-item {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

.hero-banner-link,
.hero-banner-picture {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.hero-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center center;
    margin: 0;
    padding: 0;
}

/* Carousel controls */
#homeBannerCarousel .carousel-control-prev,
#homeBannerCarousel .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 1;
}

#homeBannerCarousel .carousel-control-prev {
    left: 15px;
}

#homeBannerCarousel .carousel-control-next {
    right: 15px;
}

#homeBannerCarousel .carousel-control-prev i,
#homeBannerCarousel .carousel-control-next i {
    color: #000;
    font-size: 18px;
}

/* Carousel indicators */
#homeBannerCarousel .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
}

#homeBannerCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    margin: 0 4px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #fff;
    background-color: transparent;
    opacity: 1;
}

#homeBannerCarousel .carousel-indicators button.active {
    background-color: #fff;
}

/* Tablet */
@media (max-width: 991px) {
    #homeBannerCarousel .carousel-control-prev,
    #homeBannerCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

/* Mobile: 1536 x 1024 */
@media (max-width: 767px) {
    #homeBannerCarousel .carousel-inner {
        aspect-ratio: 1536 / 1024;
    }

    #homeBannerCarousel .carousel-indicators {
        bottom: 10px;
        gap: 5px;
    }

    #homeBannerCarousel .carousel-indicators button {
        width: 9px;
        height: 9px;
        margin: 0 3px;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    #homeBannerCarousel .carousel-control-prev,
    #homeBannerCarousel .carousel-control-next {
        display: none;
    }

    #homeBannerCarousel .carousel-indicators {
        bottom: 8px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    #homeBannerCarousel .carousel-item {
        transition: none;
    }
}

/*
 * Kaanuro Group - Categories
 * Component-specific styles only
 */

/* Section heading */
.category-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    line-height: 1.3;
    font-weight: 500;
}

.category-subtitle {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.6;
}

.category-title-line {
    width: 35px;
    height: 5px;
    right: 0;
    bottom: -5px;
}

/* Horizontal category slider */
.category-slider {
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.category-slider::-webkit-scrollbar {
    display: none;
}

/* Category card */
.category-card {
    width: 195px;
    height: 220px;
    background: #e5eee7;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.category-card img {
    object-fit: cover;
}

/* Fallback when a category has no image */
.category-fallback {
    background: #e5eee7;
    color: #4f8f68;
    font-size: 40px;
}

/* Image overlay */
.category-overlay {
    background: rgba(0, 0, 0, 0.30);
    pointer-events: none;
}

/* Category title over image */
.category-name {
    font-size: 18px;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
    z-index: 2;
}

/* Arrow inside each category card */
.category-arrow {
    width: 35px;
    height: 35px;
    background: #fff;
    color: #555;
    font-size: 16px;
    z-index: 3;
}

/* Previous / next controls */
.category-slider-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #285d3b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    z-index: 20;
}

.category-slider-btn:hover {
    background: #f5f5f5;
}

.category-prev {
    left: 12px;
}

.category-next {
    right: 12px;
}

/* Large tablet */
@media (max-width: 1199px) {
    .category-heading {
        font-size: 36px;
    }

    .category-subtitle {
        font-size: 20px;
    }

    .category-card {
        width: 180px;
        height: 210px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .category-heading {
        font-size: 32px;
    }

    .category-subtitle {
        font-size: 18px;
    }

    .category-card {
        width: 170px;
        height: 205px;
    }

    .category-slider-btn {
        width: 38px;
        height: 38px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .category-heading {
        font-size: 26px;
        line-height: 1.35;
    }

    .category-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }

    .category-title-line {
        width: 28px;
        height: 4px;
        bottom: -4px;
    }

    .category-slider {
        gap: 12px !important;
        padding-left: 45px !important;
        padding-right: 45px !important;
    }

    .category-card {
        width: 155px;
        height: 190px;
    }

    .category-name {
        font-size: 15px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .category-arrow {
        width: 32px;
        height: 32px;
        margin: 7px !important;
        font-size: 14px;
    }

    .category-slider-btn {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .category-prev {
        left: 7px;
    }

    .category-next {
        right: 7px;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .category-heading {
        font-size: 22px;
    }

    .category-subtitle {
        font-size: 14px;
    }

    .category-card {
        width: 145px;
        height: 175px;
    }

    .category-name {
        font-size: 14px;
        line-height: 1.2;
    }

    .category-arrow {
        width: 30px;
        height: 30px;
    }

    .category-slider-btn {
        width: 32px;
        height: 32px;
    }
}

/* Extra-small mobile */
@media (max-width: 400px) {
    .category-heading {
        font-size: 20px;
    }

    .category-subtitle {
        font-size: 13px;
    }

    .category-card {
        width: 135px;
        height: 165px;
    }

    .category-name {
        font-size: 13px;
    }
}

/*
 * Kaanuro Group - Product Cards
 * Component-specific styles only
 */

/*
 * Kaanuro Group - Product Cards
 * Shared by homepage, shop/category pages and related products
 */

/* =================================
   Product Section
   ================================= */

.product-section {
    background: var(--white);
}

.section-title {
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--dark-green);
    font-weight: 700;
}

.section-subtitle {
    margin-bottom: 0;
    color: var(--text-muted);
}


/* =================================
   Product Card
   ================================= */

.product-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(27, 67, 50, 0.07);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(82, 183, 136, 0.25);
    box-shadow: 0 12px 28px rgba(27, 67, 50, 0.12);
}

.product-card:focus-within {
    border-color: rgba(82, 183, 136, 0.35);
    box-shadow: 0 0 0 0.15rem rgba(82, 183, 136, 0.12);
}


/* =================================
   Product Image
   ================================= */

.product-card-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--beige);
}

.product-card .card-img-top {
    display: block;
    width: 100%;
    height: 220px;
    /* padding: 14px; */
    object-fit: cover;
    object-position: center;
    background: var(--beige);
    transition: transform 0.35s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.025);
}


/* =================================
   Product Badges
   ================================= */

.product-card .badge-sale,
.product-card .badge-new {
    position: absolute;
    top: 12px;
    z-index: 3;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.product-card .badge-sale {
    left: 12px;
    background: #e63946;
}

.product-card .badge-new {
    right: 12px;
    background: var(--accent);
}


/* =================================
   Product Content
   ================================= */

.product-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 175px;
    padding: 1rem;
}

.product-card .card-body > small {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.product-card .card-title {
    min-height: 2.8em;
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.product-card .card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.product-card .card-title a:hover {
    color: var(--dark-green);
}


/* =================================
   Product Price
   ================================= */

.product-card .product-price {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--dark-green);
}

.product-card .product-price-old {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: line-through;
}


/* =================================
   Product Button
   ================================= */

.product-card .card-body .btn {
    margin-top: auto;
    min-height: 40px;
    font-weight: 600;
}


/* =================================
   Optional Card Actions
   ================================= */

.product-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-card:hover .product-card-actions,
.product-card:focus-within .product-card-actions {
    opacity: 1;
}


/* =================================
   Empty State
   ================================= */

.empty-state {
    padding: 60px 20px;
}


/* =================================
   Tablet
   ================================= */

@media (max-width: 1199px) {
    .product-card .card-img-top {
        height: 205px;
    }
}


/* =================================
   Mobile
   ================================= */

@media (max-width: 767px) {
    .product-card {
        border-radius: var(--radius);
    }

    .product-card .card-img-top {
        height: 180px;
        padding: 12px;
    }

    .product-card .card-body {
        min-height: 165px;
        padding: 0.85rem;
    }

    .product-card .card-title {
        min-height: 2.6em;
        font-size: 0.9rem;
    }

    .product-card .card-body > small {
        font-size: 0.72rem;
    }

    .product-card .product-price {
        font-size: 0.98rem;
    }

    .product-card .product-price-old {
        font-size: 0.78rem;
    }

    .product-card .card-body .btn {
        min-height: 38px;
        padding: 0.55rem 0.7rem;
        font-size: 0.8rem;
    }

    .product-card .badge-sale,
    .product-card .badge-new {
        top: 9px;
        padding: 4px 8px;
        font-size: 0.65rem;
    }

    .product-card .badge-sale {
        left: 9px;
    }

    .product-card .badge-new {
        right: 9px;
    }
}


/* =================================
   Small Mobile
   ================================= */

@media (max-width: 575px) {
    .product-card .card-img-top {
        height: 165px;
    }

    .product-card .card-body {
        min-height: 158px;
        padding: 0.75rem;
    }

    .product-card .card-title {
        min-height: 2.5em;
        font-size: 0.84rem;
    }

    .product-card .product-price {
        font-size: 0.93rem;
    }

    .product-card .card-body .btn {
        min-height: 36px;
        padding: 0.5rem 0.6rem;
        font-size: 0.76rem;
    }
}

/* =========================================================
   PRODUCT DETAIL
   ========================================================= */

/* =========================================================
   ORDER DETAIL
   ========================================================= */
.order-detail-page {
    min-width: 0;
}

.order-detail-page .order-detail-header h4 {
    overflow-wrap: anywhere;
}

.order-detail-actions {
    flex-wrap: wrap;
}

.order-status-panel {
    gap: 0.75rem 1.25rem !important;
}

.order-status-panel > span {
    min-width: 0;
}

.order-timeline {
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.order-item-row {
    align-items: flex-start;
}

.order-item-row:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

.order-item-thumb {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    object-fit: cover;
}

.order-item-total {
    white-space: nowrap;
}

.order-summary-panel,
.order-address-panel,
.order-cancel-panel {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .order-detail-page {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .order-detail-header {
        align-items: flex-start !important;
    }

    .order-detail-actions {
        width: 100%;
    }

    .order-detail-actions .btn {
        flex: 1 1 0;
    }

    .order-status-panel {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.65rem !important;
    }

    .order-tracking-panel,
    .order-items-panel,
    .order-summary-panel,
    .order-address-panel,
    .order-cancel-panel {
        padding: 1rem !important;
    }

    .order-item-row {
        display: grid !important;
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 0.75rem !important;
        row-gap: 0.5rem;
    }

    .order-item-thumb {
        width: 64px;
        height: 64px;
        grid-row: span 2;
    }

    .order-item-row > .flex-grow-1 {
        min-width: 0;
    }

    .order-item-total {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 575.98px) {
    .order-detail-page > .row > .col-lg-3,
    .order-detail-page > .row > .col-lg-9 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .order-detail-header h4 {
        font-size: 1.35rem;
    }

    .order-detail-actions .btn {
        font-size: 0.8rem;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .order-item-row {
        font-size: 0.9rem;
    }
}

/* testimonial section */
.testimonial-section {
    background: var(--dark-green);
    color: #fff;
    padding: 24px 16px 22px;
}
.testimonial-shell {
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}
.testimonial-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
}
.testimonial-subtitle {
    max-width: 540px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255,255,255,0.82);
    font-weight: 400;
}
.testimonial-cards-viewport {
    position: relative;
    width: 100%;
    margin: 42px auto 0;
    overflow: hidden;
    padding: 16px 0 24px;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.testimonial-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    width: max-content;
    transition: transform 0.7s ease;
    padding: 8px 0 16px;
}
.testimonial-card {
    flex: 0 0 auto;
    width: min(320px, 78vw);
    min-height: 290px;
    padding: 28px 24px;
    border-radius: 18px;
    background: #f7fbf7;
    color: #284b31;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    transition: transform 0.7s ease, opacity 0.7s ease, box-shadow 0.7s ease;
    opacity: 0.55;
    transform: scale(0.88);
}
.testimonial-card.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 18px 38px rgba(0,0,0,0.22);
}
.testimonial-avatar {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #dff2ea, #b8d9c8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e422c;
    font-size: 1.4rem;
    font-weight: 700;
}
.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.testimonial-avatar span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e422c;
}
.testimonial-card .testimonial-quote {
    max-width: 100%;
    margin: 0;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4f6255;
    font-weight: 400;
}
.testimonial-card .testimonial-name {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: #1e422c;
}
.testimonial-product {
    margin-top: 14px;
    color: #71907a;
    font-size: 0.78rem;
}
@media (max-width: 767px) {
    .testimonial-section {
        padding: 62px 16px 52px;
    }
    .testimonial-title {
        margin-bottom: 16px;
    }
    .testimonial-subtitle {
        max-width: 620px;
    }
    .testimonial-cards-viewport {
        margin-top: 32px;
    }
    .testimonial-track {
        gap: 16px;
    }
}
@media (max-width: 480px) {
    .testimonial-title {
        letter-spacing: -0.04em;
    }
    .testimonial-subtitle {
        font-size: 1rem;
    }
    .testimonial-cards-viewport {
        mask-image: none;
    }
}


/* Breadcrumb */
.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}


/* Product Gallery */
.product-gallery .main-image-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--beige);
    cursor: zoom-in;
}

.main-product-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.main-image-wrap:hover .main-product-image {
    transform: scale(1.02);
}

.zoom-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}


/* Gallery Thumbnails */
.gallery-thumb {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--accent);
}


/* Product Price */
.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-green);
}


/* Quantity */
.quantity-input {
    max-width: 130px;
}

.quantity-input .form-control {
    max-width: 60px;
}


/* Product Tabs */
.product-tabs .nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
}

.product-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    white-space: nowrap;
}

.product-tabs .nav-link.active {
    color: var(--dark-green);
    border-bottom-color: var(--accent);
    background: transparent;
}

@media (max-width: 991.98px) {
    .product-gallery .main-image-wrap {
        margin-bottom: 1rem;
    }

    .main-product-image {
        height: 420px;
    }

    .product-info {
        padding: 1.25rem;
    }

    .product-detail-price {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .product-gallery {
        padding: 0.75rem !important;
    }

    .main-product-image {
        height: 320px;
    }

    .gallery-thumb {
        height: 60px;
    }

    .product-info h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        line-height: 1.2;
    }

    .product-info .row.g-3 {
        --bs-gutter-y: 1rem;
    }

    .product-info .quantity-input {
        max-width: 120px;
    }

    .product-info .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .product-info .btn:last-child {
        margin-bottom: 0;
    }

    .product-tabs {
        padding: 1rem !important;
    }

    .product-tabs .nav {
        gap: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .product-tabs .nav-link {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .container.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .breadcrumb {
        font-size: 0.82rem;
        overflow-x: auto;
        white-space: nowrap;
    }

    .main-product-image {
        height: 260px;
    }

    .gallery-thumb {
        height: 52px;
    }

    .zoom-btn {
        width: 36px;
        height: 36px;
        bottom: 10px;
        right: 10px;
    }

    .product-detail-price {
        font-size: 1.5rem;
    }

    .quantity-input {
        max-width: 110px;
    }

    .review-item {
        padding-bottom: 1rem;
    }
}


/* Benefits */
.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--beige-dark);
}


/* =========================================================
   PRODUCT IMAGE LIGHTBOX
   ========================================================= */

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-lightbox[hidden] {
    display: none !important;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    border-radius: 50%;
}

/*
 * Kaanuro Group - Why Choose Us
 * Component-specific styles only
 */

.why-choose-section {
    background: var(--beige);
}

.why-choose-section .section-subtitle {
    margin-bottom: 0;
}

/* Benefit card */
.benefit-card {
    height: 100%;
    padding: 30px;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(27, 67, 50, 0.12);
}

/* Benefit icon */
.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--accent),
        var(--light-green)
    );
    color: var(--white);
    font-size: 1.5rem;
}

.benefit-card h5 {
    margin-bottom: 0.5rem;
}

/* Tablet */
@media (max-width: 991px) {
    .benefit-card {
        padding: 26px 22px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .benefit-card {
        padding: 24px 20px;
    }

    .benefit-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 14px;
        font-size: 1.35rem;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .benefit-card {
        padding: 22px 18px;
    }
}

/*
 * Kaanuro Group - Promo Banner
 * Component-specific styles only
 */

.promo-section {
    background: var(--white);
}

.promo-banner {
    padding: 40px;
    background: var(--beige-dark);
    border-left: 5px solid var(--accent);
    border-radius: var(--radius-lg);
}

.promo-banner h3 {
    margin-bottom: 0.5rem;
}

.promo-banner p {
    line-height: 1.6;
}

/* Tablet */
@media (max-width: 991px) {
    .promo-banner {
        padding: 32px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .promo-banner {
        padding: 28px 24px;
        text-align: center;
        border-left: 0;
        border-top: 4px solid var(--accent);
    }

    .promo-banner h3 {
        font-size: 1.4rem;
    }

    .promo-banner p {
        font-size: 0.95rem;
    }

    .promo-banner .btn {
        width: 100%;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .promo-banner {
        padding: 24px 18px;
    }

    .promo-banner h3 {
        font-size: 1.25rem;
    }

    .promo-banner p {
        font-size: 0.9rem;
    }
}

/*
 * Kaanuro Group - Newsletter
 * Component-specific styles only
 */

.newsletter-section-wrap {
    background: var(--beige);
}

.newsletter-section {
    padding: 50px;
    background: linear-gradient(
        135deg,
        var(--primary-green),
        var(--dark-green)
    );
    border-radius: var(--radius-lg);
    color: var(--white);
}

.newsletter-section h3 {
    color: var(--white);
}

.newsletter-section > p {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    height: 50px;
    padding: 12px 20px;
    border: 0;
    border-radius: 50px 0 0 50px;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
}

.newsletter-form .btn {
    height: 50px;
    padding: 12px 30px;
    border-radius: 0 50px 50px 0;
    white-space: nowrap;
}

/* Tablet */
@media (max-width: 991px) {
    .newsletter-section {
        padding: 40px 32px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .newsletter-section {
        padding: 32px 22px;
    }

    .newsletter-section h3 {
        font-size: 1.45rem;
    }

    .newsletter-section > p {
        font-size: 0.95rem;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .newsletter-form .col-8,
    .newsletter-form .col-4 {
        width: 100%;
    }

    .newsletter-form .form-control,
    .newsletter-form .btn {
        height: 48px;
    }

    .newsletter-form .form-control {
        border-radius: 50px;
    }

    .newsletter-form .btn {
        border-radius: 50px;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .newsletter-section {
        padding: 28px 18px;
    }

    .newsletter-section h3 {
        font-size: 1.3rem;
    }

    .newsletter-section > p {
        font-size: 0.9rem;
    }
}

/*
 * Kaanuro Group - Footer
 * Component-specific styles only
 */

.site-footer {
    margin-top: 58px;
    padding: 64px 0 28px;
    background: linear-gradient(
        180deg,
        #1b4d39 0%,
        #153f2f 100%
    );
    color: var(--white);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 32px;
    align-items: start;
}

.footer-brand,
.footer-column {
    min-width: 0;
}

/* Footer logo */
.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-logo img {
    display: block;
    width: 165px;
    height: 80px;
    object-fit: contain;
}

.footer-brand p {
    max-width: 290px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

/* Social links */
.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* Column headings */
.footer-column h6 {
    margin: 0 0 18px;
    color: #d9f3e5;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Footer lists */
.footer-links,
.footer-contact-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links li + li,
.footer-contact-list li + li {
    margin-top: 10px;
}

.footer-links a,
.footer-contact-list span {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--white);
}

/* Contact */
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.footer-contact-list i {
    width: 16px;
    flex: 0 0 16px;
    margin-top: 4px;
    color: #a9d3b6;
    text-align: center;
}

/* Copyright */
.footer-bottom {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
}

/* Tablet */
@media (max-width: 991px) {
    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .site-footer {
        margin-top: 40px;
        padding: 48px 0 24px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-logo img {
        width: 150px;
        height: 70px;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .site-footer {
        margin-top: 32px;
        padding-top: 42px;
    }

    .footer-column h6 {
        margin-bottom: 14px;
    }

    .footer-links li + li,
    .footer-contact-list li + li {
        margin-top: 8px;
    }

    .social-links {
        margin-top: 16px;
    }

    .footer-bottom {
        margin-top: 26px;
        padding-top: 16px;
        font-size: 0.85rem;
    }
}

/*
 * Kaanuro Group - Authentication
 * Shared styles for login, register, forgot-password and reset-password
 */

/* Authentication page */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.auth-card .form-control {
    padding: 12px 16px;
    border: 1px solid var(--beige-dark);
    border-radius: var(--radius);
}

.auth-card .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(82, 183, 136, 0.25);
}

.auth-card .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.auth-card a {
    text-underline-offset: 2px;
}

/* Tablet */
@media (max-width: 991px) {
    .auth-wrapper {
        padding: 32px 0;
    }

    .auth-card {
        max-width: 460px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .auth-wrapper {
        min-height: auto;
        padding: 28px 0;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .auth-card h2 {
        font-size: 1.7rem;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .auth-wrapper {
        padding: 20px 0;
    }

    .auth-card {
        padding: 24px 18px;
        border-radius: var(--radius);
    }

    .auth-card h2 {
        font-size: 1.5rem;
    }

    .auth-card .d-flex.justify-content-between {
        gap: 12px;
        flex-wrap: wrap;
    }
}

.cart-quantity {
    max-width: 120px;
}

.cart-item:last-child {
    border-bottom: none !important;
}

.cart-summary {
    position: sticky;
    top: 90px;
}

@media (max-width: 991px) {
    .cart-summary {
        position: static;
    }
}

/*
 * Kaanuro Group - Checkout
 * Component-specific styles only
 */

/* Keep the checkout page layout on top of Bootstrap */
.checkout-page {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

/* Reusable checkout panel */
.checkout-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* Address cards */
.checkout-address-card {
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.checkout-address-card:hover {
    border-color: var(--accent) !important;
}

.checkout-address-card.selected {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 1px var(--accent);
}

/* Payment choices */
.payment-option {
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.payment-option:hover {
    border-color: var(--accent) !important;
    background-color: rgba(82, 183, 136, 0.03);
}

.payment-option:has(input:checked) {
    border-color: var(--accent) !important;
}

/* Sticky summary on larger screens */
.sticky-checkout-summary {
    position: sticky;
    top: 90px;
}

/* Coupon */
.checkout-coupon-row {
    min-width: 0;
}

.checkout-coupon-row .form-control {
    min-width: 0;
}

/* Summary amounts */
.checkout-summary-item {
    gap: 1rem;
}

.checkout-summary-item > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.checkout-total {
    font-size: 1.1rem;
}

/* Mobile */
@media (max-width: 991px) {
    .sticky-checkout-summary {
        position: static;
    }
}

@media (max-width: 767px) {
    .checkout-page {
        padding-top: 1rem;
    }

    .checkout-page > h1 {
        margin-bottom: 1.25rem !important;
    }

    .checkout-panel {
        border-radius: var(--radius);
    }

    .checkout-address-card {
        padding: 1rem !important;
    }

    .checkout-coupon-row {
        flex-wrap: nowrap;
    }

    .checkout-coupon-row .btn {
        flex: 0 0 auto;
    }
}

@media (max-width: 575px) {
    .checkout-panel {
        padding: 1.1rem !important;
    }

    .checkout-page h1 {
        font-size: 1.8rem;
    }

    .checkout-address-header {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.75rem;
    }

    .checkout-address-header .btn {
        width: 100%;
    }

    .checkout-coupon-row .btn {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/*
 * Kaanuro Group - Shop
 * Component-specific styles only
 */

/* ================================
   Shop Header
   ================================ */

.shop-hero {
    background: var(--white);
}

.shop-hero .container {
    padding-top: 2px;
    padding-bottom: 2px;
}

.shop-hero .breadcrumb {
    margin-bottom: 0.65rem;
    font-size: 0.88rem;
}

.shop-hero .breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.shop-hero .breadcrumb a:hover {
    text-decoration: underline;
}

.shop-hero h1 {
    margin-bottom: 0.2rem;
}

.shop-toolbar {
    min-width: 0;
}

.shop-sort-form {
    flex: 0 0 auto;
    padding: 6px 8px 6px 10px;
    border: 1px solid var(--beige-dark);
    border-radius: 999px;
    background: var(--white);
}

.shop-sort-form label {
    margin: 0;
    white-space: nowrap;
}

.shop-sort-select {
    width: auto;
    min-width: 155px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    border: 0;
    box-shadow: none !important;
    background-color: transparent;
}

.shop-sort-select:focus {
    border: 0;
    box-shadow: none !important;
}

/* ================================
   Shop Main Layout
   ================================ */

.shop-results {
    min-width: 0;
}

/* ================================
   Filters
   ================================ */

.shop-filter-panel {
    position: sticky;
    top: 90px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.shop-filter-panel .form-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-dark);
}

.shop-filter-panel .form-control,
.shop-filter-panel .form-select {
    border-color: var(--beige-dark);
}

.shop-filter-panel .form-control:focus,
.shop-filter-panel .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.15rem rgba(82, 183, 136, 0.15);
}

.shop-filter-panel .form-check {
    min-height: 1.5rem;
}

.shop-filter-panel .form-check-input {
    cursor: pointer;
}

.shop-filter-panel .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.shop-filter-panel .form-check-label {
    cursor: pointer;
}

/* ================================
   Category Description
   ================================ */

.shop-results > .alert {
    border-radius: var(--radius);
    color: var(--text-dark);
}

/* ================================
   Empty Results
   ================================ */

.shop-empty-state {
    padding: 60px 20px;
}

/* ================================
   Pagination
   ================================ */

.shop-results .pagination {
    justify-content: center;
    gap: 4px;
}

.shop-results .pagination .page-link {
    border-radius: 999px;
}

/* ================================
   Tablet
   ================================ */

@media (max-width: 1199px) {
    .shop-sort-select {
        min-width: 140px;
    }
}

@media (max-width: 991px) {
    .shop-filter-panel {
        position: static;
    }

    .shop-sort-form {
        width: auto;
    }
}

/* ================================
   Mobile
   ================================ */

@media (max-width: 767px) {
    .shop-hero {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .shop-hero .breadcrumb {
        font-size: 0.78rem;
        margin-bottom: 0.5rem;
    }

    .shop-hero h1 {
        font-size: 1.9rem;
    }

    .shop-toolbar {
        align-items: stretch !important;
    }

    .shop-sort-form {
        width: 100%;
        justify-content: space-between;
    }

    .shop-sort-select {
        flex: 1 1 auto;
        min-width: 0;
    }

    .shop-filter-panel {
        padding: 1.2rem !important;
        border-radius: var(--radius);
    }

    .shop-results .row {
        --bs-gutter-x: 0.9rem;
        --bs-gutter-y: 1rem;
    }

    .shop-empty-state {
        padding: 48px 18px;
    }
}

/* ================================
   Small Mobile
   ================================ */

@media (max-width: 575px) {
    .shop-hero h1 {
        font-size: 1.65rem;
    }

    .shop-hero .breadcrumb {
        font-size: 0.75rem;
    }

    .shop-sort-form {
        padding: 5px 6px 5px 9px;
    }

    .shop-sort-form label {
        font-size: 0.78rem;
    }

    .shop-sort-select {
        font-size: 0.82rem;
    }

    .shop-filter-panel {
        padding: 1rem !important;
    }

    .shop-empty-state {
        padding: 40px 14px;
    }
}
