/* ========================================
   BanshiVaidik - Custom Styles
   ======================================== */

/* ========== CSS Variables (Brand Colors) ========== */
:root {
    /* Primary Brand Colors */
    --primary-red: #C41E3A;
    --primary-gold: #D4AF37;
    --primary-cream: #F5E6D3;
    --primary-green: #2D5016;

    /* Neutral Colors */
    --white: #FFFFFF;
    --black: #000000;
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #F8F9FA;
    --border-color: #DEE2E6;

    /* Status Colors */
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 15px;
}

/* ========== Global Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hindi/Devanagari Text */
.hindi-text,
.devanagari {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-red);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ========== Typography ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-dark);
}

h1 {
    font-size: clamp(1.875rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-gold);
}

/* ========== Buttons ========== */
.btn-primary {
    background: var(--primary-red);
    border: none;
    color: var(--white);
    padding: 12px 32px;
    font-weight: 500;
    transition: var(--transition-normal);
    border-radius: 4px;
}

.btn-primary:hover {
    background: #A01828;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    background: transparent;
    padding: 10px 30px;
    font-weight: 500;
    transition: var(--transition-normal);
    border-radius: 4px;
}

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

.btn-gold {
    background: var(--primary-gold);
    border: none;
    color: var(--gray-dark);
    padding: 12px 32px;
    font-weight: 600;
    transition: var(--transition-normal);
    border-radius: 4px;
}

.btn-gold:hover {
    background: #C9A532;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== Header & Navigation ========== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

.navbar {
    padding: 0.75rem 0;
    position: relative;
}

/* Desktop navbar styles - default */
.navbar-brand img {
    height: 50px;
    width: auto;
    transition: var(--transition-fast);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--gray-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-red);
}

/* Desktop-specific styles */
@media (min-width: 992px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand img {
        height: 50px;
        width: auto;
    }

    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-nav {
        display: flex;
        flex-direction: row;
        margin: 0 auto;
    }

    .nav-icons {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Mobile Header Optimization */
/* Mobile Header Structure */
.mobile-header {
    display: none;
}

.mobile-logo {
    height: 40px;
    width: auto;
}

.mobile-actions {
    gap: 0.75rem;
}

.mobile-actions .btn-link,
.mobile-actions a {
    color: var(--gray-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-actions i {
    font-size: 1.3rem;
}

/* Cart Badge */
.cart-badge {
    top: -5px;
    right: -8px;
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
    padding: 0.2em 0.4em;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop Navigation Icons */
.nav-icons .nav-link,
.nav-icons .btn-link {
    color: var(--gray-dark);
    padding: 0.5rem;
    transition: var(--transition-fast);
}

.nav-icons .nav-link:hover,
.nav-icons .btn-link:hover {
    color: var(--primary-red);
}

.nav-icons .position-relative .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    padding: 0.25em 0.5em;
}

@media (max-width: 991px) {
    .mobile-header {
        display: block !important;
    }

    /* Hide desktop logo on mobile */
    .navbar-brand.d-none.d-lg-block {
        display: none !important;
    }

    .site-header {
        padding: 0;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        padding: 0;
        margin: 0;
    }

    .mobile-logo {
        height: 45px;
    }

    /* Mobile menu toggle styling */
    .navbar-toggler {
        border: none;
        padding: 0.4rem;
        background: transparent;
        color: var(--gray-dark);
        font-size: 1.25rem;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

    .navbar-toggler i {
        font-size: 1.25rem;
    }

    /* Mobile actions styling */
    .mobile-actions .btn-link {
        padding: 0.4rem;
        border: none;
        background: transparent;
        min-width: 44px;
        min-height: 44px;
    }

    .mobile-actions .btn-link:focus {
        box-shadow: none;
        outline: none;
    }

    .mobile-actions a {
        padding: 0.4rem;
        min-width: 44px;
        min-height: 44px;
    }

    /* Collapsed menu styling */
    .navbar-collapse {
        margin-top: 1rem;
    }

    .navbar-nav {
        padding: 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Hide desktop nav icons on mobile */
    .nav-icons {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .site-header {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .navbar {
        padding: 0.45rem 0;
    }

    .mobile-logo {
        height: 40px;
    }

    .navbar-toggler {
        font-size: 1.2rem;
        padding: 0.35rem;
    }

    .mobile-actions i {
        font-size: 1.3rem;
    }

    .mobile-actions {
        gap: 0.5rem;
    }

    .cart-badge {
        top: -4px;
        right: -6px;
        font-size: 0.55rem;
        min-width: 15px;
        height: 15px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.4rem 0;
    }

    .mobile-logo {
        height: 36px;
    }

    .navbar-toggler {
        font-size: 1.15rem;
        padding: 0.3rem;
        min-width: 40px;
        min-height: 40px;
    }

    .mobile-actions .btn-link,
    .mobile-actions a {
        padding: 0.3rem;
        min-width: 40px;
        min-height: 40px;
    }

    .mobile-actions i {
        font-size: 1.2rem;
    }
}

/* Mega Menu Dropdown */
.mega-dropdown .dropdown-menu {
    display: none;
}

.mega-dropdown:hover .dropdown-menu {
    display: block;
}

/* Mega Menu Dropdown */
.mega-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    background: white;
    z-index: 1000;
}

.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    text-decoration: none;
    color: var(--gray-dark);
    background: white;
    border: 1px solid transparent;
}

.mega-menu-item:hover {
    background: var(--primary-cream);
    color: var(--primary-red);
    border-color: rgba(196, 30, 58, 0.1);
    transform: translateY(-2px);
}

.mega-menu-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    flex-shrink: 0;
}

.mega-menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-menu-icon i {
    font-size: 1.5rem;
    color: var(--primary-red);
}

.mega-menu-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.mega-menu-content h6 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mega-menu-content small {
    font-size: 0.75rem;
    color: var(--gray-medium);
    display: block;
    white-space: nowrap;
}

/* Mobile Mega Menu */
@media (max-width: 991px) {
    .mega-dropdown {
        position: relative;
    }

    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        margin-top: 0.5rem;
        padding: 1rem;
        border-radius: 8px;
    }

    .mega-menu-item {
        padding: 0.75rem;
    }

    .mega-menu-icon {
        width: 40px;
        height: 40px;
    }

    .mega-menu-content h6 {
        font-size: 0.85rem;
    }

    .mega-dropdown .dropdown-menu {
        display: none !important;
    }

    .mega-dropdown .dropdown-menu.show {
        display: block !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .mega-menu {
        max-width: 95%;
    }
}

.nav-icons .nav-link {
    font-size: 1.25rem;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Mobile Menu */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========== Hero Carousel Section ========== */
.hero-carousel {
    margin-top: -1px;
    /* Remove gap from header */
}

.carousel-section {
    position: relative;
    width: 100%;
}

#heroCarousel {
    position: relative;
    height: 500px;
}

/* Carousel Image */
.carousel-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark overlay for better text readability */
/* .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(196, 30, 58, 0.3) 50%,
            rgba(0, 0, 0, 0.5) 100%);
} */

/* Carousel Caption */
.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 10;
    text-align: center;
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.carousel-description {
    font-size: 1.25rem;
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.carousel-buttons .btn {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-normal);
}

.carousel-buttons .btn-primary {
    background: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.carousel-buttons .btn-primary:hover {
    background: #A01830;
    border-color: #A01830;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(196, 30, 58, 0.4);
}

.carousel-buttons .btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.carousel-buttons .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: var(--transition-fast);
}

.carousel-indicators .active {
    background-color: var(--primary-red);
    width: 40px;
    border-radius: 6px;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(196, 30, 58, 0.8);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Carousel Fade Effect */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 1s;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

/* Animation Classes */
.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Carousel */
@media (max-width: 1200px) {
    .carousel-title {
        font-size: 3rem;
    }

    .carousel-description {
        font-size: 1.15rem;
    }
}

@media (max-width: 992px) {

    #heroCarousel,
    .carousel-image-wrapper {
        height: 500px;
    }

    .carousel-title {
        font-size: 2.5rem;
    }

    .carousel-description {
        font-size: 1.1rem;
    }

    .carousel-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {

    #heroCarousel,
    .carousel-image-wrapper {
        height: 450px;
    }

    .carousel-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .carousel-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .carousel-buttons {
        flex-direction: column;
        align-items: center;
    }

    .carousel-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 576px) {

    #heroCarousel,
    .carousel-image-wrapper {
        height: 160px;
    }

    .carousel-title {
        font-size: 1.75rem;
    }

    .carousel-description {
        font-size: 0.95rem;
    }

    .carousel-buttons .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.95rem;
    }

    .carousel-indicators {
        bottom: -5px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

/* ========== Hero Section (Static Fallback) ========== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-cream) 0%, var(--white) 100%);
    padding: 100px 0;
}

.hero-content h1 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.hero-content .tagline {
    color: var(--primary-gold);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ========== Product Cards ========== */
.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    background: var(--gray-light);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-red);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.product-badge.new {
    background: var(--success);
}

.product-badge.sale {
    background: var(--danger);
}

.product-badge.organic {
    background: var(--primary-green);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-gold);
    color: var(--gray-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
}

.product-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    margin-top: auto;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.price-original {
    font-size: 1rem;
    color: var(--gray-medium);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.price-savings {
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}

.product-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-add-cart:hover {
    background: #A01828;
}

.btn-quick-view {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-quick-view:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* Mobile Product Card Optimizations */
@media (max-width: 575px) {
    .product-card {
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .product-image {
        padding-top: 100%;
    }

    .product-body {
        padding: 10px;
    }

    .product-title {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 6px;
        min-height: 35px;
    }

    .product-description {
        font-size: 0.75rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .product-price {
        margin-bottom: 10px;
    }

    .price-current {
        font-size: 1.1rem;
    }

    .price-original {
        font-size: 0.8rem;
    }

    .price-savings {
        font-size: 0.7rem;
        display: block;
        margin-top: 4px;
    }

    /* Hide quick view button on mobile */
    .btn-quick-view {
        display: none !important;
    }

    /* Full width add to cart button */
    .product-actions {
        margin-top: 8px;
        gap: 0;
    }

    .btn-add-cart {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.8rem;
        font-weight: 600;
    }

    /* Product badges smaller on mobile */
    .product-badge {
        top: 6px;
        left: 6px;
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    .discount-badge {
        top: 6px;
        right: 6px;
        padding: 3px 8px;
        font-size: 0.7rem;
    }
}

/* ========== Category Cards ========== */
.category-card {
    background: transparent;
    border-radius: 8px;
    overflow: visible;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    text-align: center;
    position: relative;
    padding-bottom: 5px;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card:hover .category-image {
    background: #f5f5f5;
}

.category-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.category-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 5px;
}

.category-body {
    padding: 0;
}

.category-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-dark);
    margin-bottom: 0;
    line-height: 1.3;
}

.category-count {
    display: none;
}

/* Horizontal Scroll Wrapper */
.horizontal-scroll-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* Scroll Navigation Arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scroll-arrow:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-arrow.left {
    left: -20px;
}

.scroll-arrow.right {
    right: -20px;
}

.scroll-arrow i {
    color: var(--gray-dark);
    font-size: 1.2rem;
}

@media (max-width: 991px) {
    .scroll-arrow {
        display: none;
    }
}

.horizontal-scroll-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem 1.5rem 0.5rem;
    margin: 0 -0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll-item {
    flex: 0 0 140px;
    min-width: 140px;
    max-width: 140px;
}

/* Desktop - show more items */
@media (min-width: 1400px) {
    .horizontal-scroll-item {
        flex: 0 0 calc(12.5% - 1.75rem);
        min-width: calc(12.5% - 1.75rem);
        max-width: calc(12.5% - 1.75rem);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .horizontal-scroll-item {
        flex: 0 0 calc(14.28% - 1.71rem);
        min-width: calc(14.28% - 1.71rem);
        max-width: calc(14.28% - 1.71rem);
    }
}

/* Laptop - 6 items visible */
@media (min-width: 992px) and (max-width: 1199px) {
    .horizontal-scroll-item {
        flex: 0 0 calc(16.666% - 1.67rem);
        min-width: calc(16.666% - 1.67rem);
        max-width: calc(16.666% - 1.67rem);
    }
}

/* Tablet - 4 items visible */
@media (min-width: 768px) and (max-width: 991px) {
    .horizontal-scroll-item {
        flex: 0 0 calc(25% - 1.5rem);
        min-width: calc(25% - 1.5rem);
        max-width: calc(25% - 1.5rem);
    }
}

/* Mobile - scrollable */
@media (max-width: 767px) {
    .horizontal-scroll-item {
        flex: 0 0 120px;
        min-width: 120px;
        max-width: 120px;
    }

    .horizontal-scroll-container {
        gap: 1.25rem;
        padding: 1rem 0 1.5rem 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .horizontal-scroll-item {
        flex: 0 0 110px;
        min-width: 110px;
        max-width: 110px;
    }
    
    .horizontal-scroll-container {
        gap: 1rem;
    }
}

/* ========== Section Styles ========== */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.95rem;
    font-weight: 700;
    /* color: var(--primary-red); */
    color: #2C3E50;
    margin-bottom: 0.65rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-medium);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #C41E3A, #D4A574);
    margin: 0 auto 20px;
    border-radius: 2px;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--gray-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-description {
    color: #CCCCCC;
    margin-bottom: 1.5rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #CCCCCC;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-gold);
    color: var(--gray-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #CCCCCC;
}

/* ========== Back to Top Button ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-gold);
    color: var(--gray-dark);
    transform: translateY(-5px);
}

/* ========== Responsive Design ========== */
@media (max-width: 991px) {
    :root {
        --section-padding: 60px 0;
    }

    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 20px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ========== Loading States ========== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--primary-red);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== Blog Cards ========== */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.15);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 350px;
    padding-top: 60%;
    /* 5:3 aspect ratio */
    overflow: hidden;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-meta i {
    color: var(--primary-red);
    font-size: 0.9rem;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--primary-red);
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-read-more:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

.blog-read-more i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(4px);
}

/* Mobile blog cards */
@media (max-width: 767px) {
    .blog-card {
        width: 320px;
        min-width: 320px;
        max-width: 320px;
        flex-shrink: 0;
    }

    .blog-content {
        padding: 1.25rem;
    }

    .blog-title {
        font-size: 1rem;
    }

    .blog-excerpt {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .blog-card {
        width: calc(100vw - 90px);
        min-width: calc(100vw - 90px);
        max-width: calc(100vw - 90px);
    }
}

/* ========== Mobile Horizontal Scroll ========== */
/* Mobile-specific horizontal scroll for all sections */
@media (max-width: 767px) {
    .mobile-horizontal-scroll {
        overflow: visible;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .mobile-scroll-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-red) var(--gray-light);
        padding: 1rem 0 1.5rem 0;
        gap: 1rem;
        margin: 0 !important;
        --bs-gutter-x: 0 !important;
        --bs-gutter-y: 0 !important;
    }

    .mobile-scroll-row::-webkit-scrollbar {
        height: 6px;
    }

    .mobile-scroll-row::-webkit-scrollbar-track {
        background: var(--gray-light);
        border-radius: 10px;
    }

    .mobile-scroll-row::-webkit-scrollbar-thumb {
        background: var(--primary-red);
        border-radius: 10px;
    }

    .mobile-scroll-item {
        flex: 0 0 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        width: 280px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Override Bootstrap column classes on mobile */
    .mobile-scroll-row > [class*="col-"] {
        flex: 0 0 280px !important;
        max-width: 280px !important;
        width: 280px !important;
    }
}

/* Small mobile - show full width card */
@media (max-width: 480px) {
    .mobile-scroll-item {
        flex: 0 0 calc(100% - 60px);
        min-width: calc(100% - 60px);
        max-width: calc(100% - 60px);
    }
}

/* ========== Testimonials Auto-Scroll ========== */
.testimonials-auto-scroll {
    position: relative;
    overflow: hidden;
}

.testimonials-scroll-track {
    display: flex;
    animation: testimonial-scroll 30s linear infinite;
    transition: animation-play-state 0.3s;
}

.testimonials-scroll-track:hover {
    animation-play-state: paused;
}

@keyframes testimonial-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile testimonials - manual scroll with hint */
@media (max-width: 991px) {
    .testimonials-auto-scroll {
        margin: 0 -15px;
        padding: 0 15px;
    }

    .testimonials-scroll-track {
        animation: none;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-red) var(--gray-light);
        padding: 1rem 0 1.5rem 0;
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .testimonials-scroll-track::-webkit-scrollbar {
        height: 6px;
    }

    .testimonials-scroll-track::-webkit-scrollbar-track {
        background: var(--gray-light);
        border-radius: 10px;
    }

    .testimonials-scroll-track::-webkit-scrollbar-thumb {
        background: var(--primary-red);
        border-radius: 10px;
    }

    .testimonials-scroll-track .mobile-scroll-item {
        flex: 0 0 300px;
        min-width: 300px;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .testimonials-scroll-track .mobile-scroll-item {
        flex: 0 0 calc(100% - 60px);
        min-width: calc(100% - 60px);
        max-width: calc(100% - 60px);
    }
}

/* Desktop - Keep grid layout for non-mobile sections */
@media (min-width: 768px) {
    .mobile-horizontal-scroll .mobile-scroll-row {
        display: flex !important;
        flex-wrap: wrap !important;
        overflow-x: visible;
    }

    .mobile-scroll-item {
        flex: 0 0 auto;
        min-width: auto;
        max-width: none;
    }
}

/* ========== Trust Cards (Native Ingredients & Quality Assurance) ========== */
.trust-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.12);
}

.trust-card-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #F5F5F5;
}

.trust-card-image-wrapper img,
.trust-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trust-card:hover .trust-card-image-wrapper img,
.trust-card:hover .trust-card-img {
    transform: scale(1.05);
}

.trust-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.trust-card-content h6,
.trust-card-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.trust-card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Sections Background */
.native-ingredients-section {
    background: #F8F9FA;
}

.quality-assurance-section {
    background: #FFF9F0;
}

.section-background-overlay {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .trust-card-image-wrapper {
        height: 200px;
    }
    
    .trust-card-content {
        padding: 16px;
    }
    
    .trust-card-content h6,
    .trust-card-content h4 {
        font-size: 1rem;
    }
    
    .trust-card-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .trust-card-image-wrapper {
        height: 180px;
    }
}

/* ========== Utility Classes ========== */
.text-primary {
    color: var(--primary-red) !important;
}

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

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

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

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

/* Spacing Utilities */
.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

