/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --ink: #1B140E;
    --ink-2: #241B12;
    --parchment: #F4EAD9;
    --brass: #D9C9AC;
    --brass-bright: #E4BE7C;
    --terracotta: #B54828;
    --terracotta-bright: #D25837;
    --deep-red: #7A241A;
    --line: rgba(201, 161, 90, 0.28);
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.4);

    --primary-color: var(--terracotta);
    --primary-hover: var(--terracotta-bright);
    --secondary-color: var(--brass-bright);
    --secondary-hover: var(--brass);
    --dark-color: var(--parchment);
    --light-bg: var(--ink);
    --card-bg: var(--ink-2);
    --border-color: var(--line);
    --text-main: #D9C9AC;
    --text-muted: rgba(244, 234, 217, 0.6);
    --font-sans: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--dark-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Header & Navigation */
.navbar-custom {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    background-color: rgba(27, 20, 14, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    transition: var(--transition-smooth);
}

.navbar-brand {
    flex-shrink: 0 !important;
}

.navbar-brand img {
    height: 60px; /* Mobile height */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

@media (min-width: 992px) {
    .navbar-brand img {
        height: 75px; /* Desktop height */
    }
}

.nav-link-custom {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 10px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-link-custom:hover, 
.nav-link-custom.active {
    color: var(--primary-color) !important;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: calc(100% - 20px);
}

/* Offcanvas Drawer Mobile Styles & Desktop Actions */
.header-actions-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 991.98px) {
    .offcanvas {
        background-color: var(--light-bg) !important;
        border-right: 1px solid var(--border-color) !important;
    }
    .offcanvas-header {
        background-color: var(--card-bg);
        border-bottom: 1px solid var(--border-color);
    }
    .offcanvas-body {
        display: flex !important;
        flex-direction: column !important;
    }
    .offcanvas-body .nav-link-custom {
        font-size: 1.1rem;
        padding: 0.8rem 1rem !important;
        border-bottom: 1px solid var(--border-color);
    }
    .offcanvas-body .nav-link-custom::after {
        display: none !important;
    }
    .header-actions-container {
        flex-direction: column;
        width: 100%;
        margin-top: 1.5rem;
        border-top: 1px solid var(--border-color) !important;
        padding-top: 1rem;
        gap: 1rem;
    }
}

/* Header Search Dropdown Styles */
.header-actions-container .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Primary Button Custom */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
    transition: var(--transition-smooth);
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.3);
}

.btn-secondary-custom {
    background-color: transparent;
    color: var(--primary-color) !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    border: 2px solid var(--primary-color);
    transition: var(--transition-smooth);
}

.btn-secondary-custom:hover {
    background-color: var(--primary-color);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Hero Section with Spices Background Animation */
.hero-section {
    background: linear-gradient(135deg, rgba(181, 72, 40, 0.04) 0%, rgba(228, 190, 124, 0.05) 100%), var(--light-bg);
    padding: 100px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(181, 72, 40, 0.04) 0%, rgba(27, 20, 14, 0) 70%);
    top: -200px;
    right: -100px;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background-image: url('../images/spices-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    bottom: -60px;
    left: -40px;
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
    animation: rotateSpice 90s linear infinite;
}

@keyframes rotateSpice {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


.hero-subtitle {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 3px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.08));
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Category Section */
.section-title-wrapper {
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
}

.category-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(211, 47, 47, 0.2);
}

.category-card:hover .category-card-img img {
    transform: scale(1.08);
}

.category-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.category-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Card Grid */
.product-card {
    height: 390px;
    perspective: 1000px;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
}

@media (max-width: 576px) {
    .product-card {
        height: 350px;
    }
}

.product-tag {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: 50px !important;
    z-index: 100 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35) !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.product-card:hover .product-tag {
    opacity: 1 !important;
    transform: scale(1.05) !important;
}

/* Different tag colors */
.product-tag.tag-bestseller {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important; /* Gold */
}

.product-tag.tag-new-arrival {
    background: linear-gradient(135deg, #059669, #10b981) !important; /* Emerald */
}

.product-tag.tag-hot {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important; /* Red */
}

.product-tag.tag-popular {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important; /* Purple */
}

.product-tag.tag-trending {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important; /* Blue */
}

.product-card-img {
    height: 100% !important;
    width: 100%;
    position: absolute !important;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    transform: rotateY(0deg);
    z-index: 2;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: var(--card-bg) !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card-img .main-img {
    position: relative;
    z-index: 1;
}

.product-card-img .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 2;
    transform: scale(1.05);
}

.product-card-img .fallback-img-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    transition: var(--transition-smooth);
}

.product-card:hover .product-card-img {
    transform: rotateY(-180deg);
}

.product-card:hover .product-card-body {
    transform: rotateY(0deg);
    z-index: 2;
}

.product-card:hover .product-card-img:has(.hover-img) .main-img {
    opacity: 0;
    transform: scale(0.95);
}

.product-card:hover .product-card-img .hover-img {
    opacity: 1;
    transform: scale(1);
}

.product-card:hover .fallback-img-icon {
    transform: scale(1.1);
    opacity: 0.35;
}

.product-card-body {
    height: 100% !important;
    width: 100%;
    position: absolute !important;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    z-index: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: var(--card-bg) !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem !important;
    text-align: center;
    box-shadow: var(--shadow);
}


.product-category-lbl {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.product-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.product-card-price {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.price-now {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-color);
}

.price-was {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card-footer {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.product-card-footer .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Features Block */
.feature-box {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
    transition: var(--transition-smooth);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-color: rgba(13, 148, 136, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-box-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-box-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Client logos slider styling */
.clients-section {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3.5rem 0;
}

.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    padding: 0 1.5rem;
}

.client-logo-item span {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.55;
    transition: var(--transition-smooth);
}

.client-logo-item:hover span {
    color: var(--primary-color);
    opacity: 1;
}

/* Testimonials section */
.testimonial-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
    position: relative;
}

.testimonial-quote-icon {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 3rem;
    color: rgba(13, 148, 136, 0.06);
    line-height: 1;
}

.testimonial-rating {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f1f5f9;
}

.testimonial-user-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-color);
}

.testimonial-user-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

/* Footer Section */
.footer-top {
    background-color: var(--dark-color);
    color: #ffffff;
    padding: 80px 0 50px 0;
}

.footer-logo img {
    height: 60px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.footer-about-text {
    color: #D9C9AC;
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.footer-social-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-heading {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2.5px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

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

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

.footer-links-list a {
    color: #94a3b8;
    font-size: 0.92rem;
}

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

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    color: #94a3b8;
}

.footer-contact-item i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 3px;
}

.footer-bottom {
    background-color: #020617; /* Darker slate */
    color: #64748b;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
}

/* Inner Banner */
.inner-banner {
    background: url('../images/inner-banner.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: #ffffff;
    position: relative;
}

.inner-banner-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.inner-banner-breadcrumbs {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.inner-banner-breadcrumbs a {
    color:red;
}
.inner-text{
    color: white !important;
}
.inner-banner-breadcrumbs a:hover {
    color: var(--secondary-color);
}

/* Form Styles */
.form-control-custom {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

.hover-primary {
    transition: var(--transition-smooth);
}
.hover-primary:hover {
    color: var(--primary-color) !important;
}

.thumbnail-slider-container::-webkit-scrollbar {
    display: none;
}
.thumbnail-slider-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* Floating WhatsApp Button */
.whatsapp-float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.whatsapp-float-btn:hover {
    background-color: #128c7e;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(18, 140, 126, 0.45);
}

/* FAQ Accordion Styling */
.faq-accordion .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 15px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    transition: var(--transition-smooth);
}
.faq-accordion .accordion-item:hover {
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.03);
    border-color: rgba(211, 47, 47, 0.2);
}
.faq-accordion .accordion-button {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark-color);
    padding: 1.25rem 1.5rem;
    background-color: transparent;
    box-shadow: none;
    border: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(211, 47, 47, 0.02);
}
.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23111827'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}
.faq-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d32f2f'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* Custom Testimonials Carousel Controls */
.testimonial-carousel-control {
    width: 45px !important;
    height: 45px !important;
    background-color: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--primary-color) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    opacity: 0.9 !important;
}
.testimonial-carousel-control i {
    font-size: 1rem !important;
}
.testimonial-carousel-control:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.2) !important;
    opacity: 1 !important;
}
.testimonial-carousel-prev {
    left: -20px !important;
}
.testimonial-carousel-next {
    right: -20px !important;
}

/* Why Nimmis Premium Background & Layer Overlay */
.why-nimmis-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.why-nimmis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 7, 8, 0.96) 0%, rgba(48, 14, 16, 0.96) 100%);
    z-index: -1;
}

/* Category Circle scroll settings */
.scrollbar-hidden::-webkit-scrollbar {
    display: none !important;
}
.scrollbar-hidden {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Category Grid & Cards Styling */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-grid-item {
    flex: 0 0 calc(50% - 6px); /* 2 columns on mobile */
    max-width: 180px;
}

.category-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(211, 47, 47, 0.15);
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.08);
    background-color: var(--light-bg);
}

.category-card-img-wrapper {
    width: 100%;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    background-color: #ffffff;
}

.category-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-card-img-wrapper {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.15);
}

.category-card-title {
    font-size: 0.8rem !important;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.35;
    transition: color 0.3s ease;
    height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card:hover .category-card-title {
    color: var(--primary-color) !important;
}

.category-card-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary-hover);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.category-card:hover .category-card-btn {
    color: var(--primary-color);
    transform: translateX(4px);
}

@media (min-width: 768px) {
    .category-grid {
        gap: 16px;
    }
    .category-grid-item {
        flex: 0 0 160px; /* tablet size grid */
        max-width: 180px;
    }
    .category-card {
        padding: 1rem 0.75rem;
        min-height: 230px;
    }
    .category-card-img-wrapper {
        height: 120px;
    }
    .category-card-title {
        font-size: 0.85rem !important;
    }
}

@media (min-width: 1200px) {
    .category-grid {
        gap: 12px;
    }
    .category-grid-item {
        flex: 1 1 0px;
        min-width: 140px;
        max-width: 185px;
    }
    .category-card {
        min-height: 255px;
        padding: 1rem 0.75rem;
    }
    .category-card-img-wrapper {
        height: 135px;
    }
}

/* Hero Search Bar Styles */
.hero-search-form .input-group {
    transition: var(--transition-smooth);
    border-color: #e5e7eb !important;
}
.hero-search-form .input-group:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 30px rgba(211, 47, 47, 0.12) !important;
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.75rem;
    }
    .inner-banner {
        padding: 60px 0;
    }
    .inner-banner-title {
        font-size: 2.2rem;
    }
    .why-nimmis-section {
        background-attachment: scroll !important;
    }
    .testimonial-carousel-prev {
        left: 0px !important;
    }
    .testimonial-carousel-next {
        right: 0px !important;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.85rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.95rem;
    }
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
    }
    .section-title {
        font-size: 1.65rem;
    }
    .section-subtitle {
        font-size: 0.78rem;
    }
    
    /* Product card mobile sizing */
    .product-card-body {
        padding: 0.85rem !important;
    }
    .product-card-title {
        font-size: 0.92rem !important;
        height: 2.5rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }
    .product-category-lbl {
        font-size: 0.65rem !important;
        margin-bottom: 0.2rem !important;
    }
    .product-card-price {
        margin-bottom: 0.75rem !important;
        gap: 6px !important;
    }
    .price-now {
        font-size: 1.05rem !important;
    }
    .price-was {
        font-size: 0.82rem !important;
    }
    .product-card-footer {
        gap: 5px !important;
    }
    .product-card-footer .btn {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
    }
    .product-tag {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }
    
    /* Category circles mobile image size */
    .category-scroll-wrapper .category-compact-card .rounded-circle {
        width: 82px !important;
        height: 82px !important;
    }
    .category-scroll-wrapper .category-compact-card h6 {
        font-size: 0.82rem !important;
    }
    
    /* Brand logo strip sizing */
    .clients-section img {
        max-height: 48px !important;
    }
}

/* Hero Badge & Glow */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(211, 47, 47, 0.05);
    border: 1px solid rgba(211, 47, 47, 0.12);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.22) 0%, rgba(234, 179, 8, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(20px);
}

/* Hero Slider & Carousel Styles */
.hero-slider-section {
    position: relative;
    width: 100%;
}
.banner-carousel .carousel-item {
    height: 580px;
    background-color: #000000;
}
.banner-carousel .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.banner-carousel .carousel-caption {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    z-index: 10;
}
.banner-carousel .carousel-caption h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.banner-carousel .carousel-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.8rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.banner-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    opacity: 0.6;
    margin: 0 5px;
    transition: all 0.3s ease;
}
.banner-carousel .carousel-indicators .active {
    background-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}
.banner-carousel .carousel-control-prev,
.banner-carousel .carousel-control-next {
    width: 50px;
    opacity: 0.8;
    z-index: 12;
}
.banner-carousel .carousel-control-prev:hover,
.banner-carousel .carousel-control-next:hover {
    opacity: 1;
}


/* Scroll Reveal Animations */
.reveal-fade, .reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}
.reveal-fade {
    transform: scale(0.96);
}
.reveal-up {
    transform: translateY(35px);
}
.reveal-left {
    transform: translateX(-40px);
}
.reveal-right {
    transform: translateX(40px);
}

.revealed {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Carousel Caption Animations */
.carousel-item-next.carousel-item-start .animate-fadeInUp,
.carousel-item-prev.carousel-item-end .animate-fadeInUp,
.active.carousel-item .animate-fadeInUp {
    animation: fadeInUp 0.8s both 0.2s;
}
.carousel-item-next.carousel-item-start .animate-fadeInUp-2,
.carousel-item-prev.carousel-item-end .animate-fadeInUp-2,
.active.carousel-item .animate-fadeInUp-2 {
    animation: fadeInUp 0.8s both 0.4s;
}
.carousel-item-next.carousel-item-start .animate-fadeInUp-3,
.carousel-item-prev.carousel-item-end .animate-fadeInUp-3,
.active.carousel-item .animate-fadeInUp-3 {
    animation: fadeInUp 0.8s both 0.6s;
}
.carousel-item-next.carousel-item-start .animate-fadeInUp-4,
.carousel-item-prev.carousel-item-end .animate-fadeInUp-4,
.active.carousel-item .animate-fadeInUp-4 {
    animation: fadeInUp 0.8s both 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Instagram Grid Overlays */
.insta-grid-item {
    display: block;
    position: relative;
    overflow: hidden;
    background-color: #000000;
}
.insta-grid-item img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.insta-grid-item:hover img {
    transform: scale(1.08);
}
.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(211, 47, 47, 0.88); /* Crimson overlay */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}
.insta-grid-item:hover .insta-overlay {
    opacity: 1;
}

/* Media Queries for Slider */
@media (max-width: 991px) {
    .banner-carousel .carousel-item {
        height: 520px;
    }
    .banner-carousel .carousel-caption h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .banner-carousel .carousel-item {
        height: 480px;
    }
    .banner-carousel .carousel-caption {
        background: rgba(0, 0, 0, 0.65);
        align-items: center;
        text-align: center;
        padding: 0 15px;
    }
    .banner-carousel .carousel-caption h1 {
        font-size: 2rem;
    }
    .banner-carousel .carousel-caption p {
        font-size: 1rem;
    }

}

/* Partner Logo Card Hover Effect */
.partner-card {
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    transition: var(--transition-smooth) !important;
}
.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.1) !important;
}

/* Header Search Focus Transition */
.header-search-form .input-group {
    transition: all 0.3s ease;
}
.header-search-form .form-control {
    width: 110px;
    transition: width 0.3s ease;
}
.header-search-form .form-control:focus {
    width: 155px !important;
}
.header-search-form .input-group:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.15) !important;
    background-color: #ffffff !important;
}
.mobile-search-form .input-group:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.1) !important;
    background-color: #ffffff !important;
}

/* Home Page About Us Section Styling */
.about-us-home-section {
    position: relative;
    overflow: hidden;
}

.about-image-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}

.about-image-grid .grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
}

.about-image-grid .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.about-image-grid .grid-item:hover img {
    transform: scale(1.04);
}

.about-image-grid .grid-item-large {
    grid-row: 1 / span 2;
    grid-column: 1;
}

.about-image-grid .grid-item-sub:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.about-image-grid .grid-item-sub:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.about-image-grid .grid-item-sub:nth-child(4) {
    grid-column: 3;
    grid-row: 1;
}

.about-image-grid .grid-item-sub:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

/* About Us Right Content Styling */
.about-heading {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.5px;
    position: relative;
}

.about-content-wrapper {
    max-width: 580px;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2D3748;
    font-weight: 400;
}

/* Red Solid Highlight Badges matching the image */
.about-text .highlight-badge {
    background-color: #ff0000; /* Solid vibrant red */
    color: #ffffff;
    padding: 2px 8px;
    font-weight: 700;
    display: inline;
    border-radius: 2px;
    line-height: 1.5;
    word-break: keep-all;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.about-text .highlight-text-badge {
    background-color: #ff0000; /* Solid vibrant red */
    color: #ffffff;
    padding: 1px 6px;
    font-weight: 700;
    border-radius: 2px;
    white-space: nowrap;
}

/* Learn More Button - solid black box matching the image */
.btn-learn-more {
    background-color: #000000;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: capitalize;
    padding: 0.8rem 2.5rem;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-learn-more:hover {
    background-color: #222222;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive design for About Us Section */
@media (max-width: 1199px) {
    .about-heading {
        font-size: 2.4rem;
    }
    .about-text {
        font-size: 1rem;
    }
}

@media (max-width: 991px) {
    .about-us-home-section {
        padding: 4rem 0 !important;
    }
    .about-image-grid {
        max-width: 550px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .about-image-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 8px;
    }
    .about-image-grid .grid-item {
        grid-column: auto !important;
        grid-row: auto !important;
        aspect-ratio: 1;
    }
    .about-image-grid .grid-item-large {
        grid-column: 1 / span 2 !important;
        aspect-ratio: 1.4 / 1;
    }
    .about-heading {
        font-size: 2rem;
    }
    .about-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* Bestsellers Horizontal Slider Section */
.new-arrivals-slider-section {
    background: linear-gradient(rgba(247, 249, 252, 0.95), rgba(247, 249, 252, 0.95)), url('../images/spices-bg.png');
    background-repeat: repeat;
    background-size: 300px;
    border-bottom: 1px solid var(--border-color);
}

.featured-blue-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 400px;
}

.featured-blue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(30, 60, 114, 0.25) !important;
}

.featured-blue-card:hover .featured-pouch-img {
    transform: scale(1.05) rotate(2deg);
}

.bestsellers-subtitle {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.bestsellers-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

@media (max-width: 767px) {
    .bestsellers-subtitle {
        font-size: 0.75rem;
    }
    .bestsellers-title {
        font-size: 1.45rem;
        line-height: 1.35;
    }
    .featured-blue-card {
        min-height: 320px;
    }
}

/* Floating Tomato Effect */
@keyframes floatTomato {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.floating-tomato {
    animation: floatTomato 4s ease-in-out infinite;
}

.tomato-2 {
    animation-delay: 1.5s;
}

.tomato-3 {
    animation-delay: 2.8s;
}

.filter-drop {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

/* Horizontal scroller */
.horizontal-product-scroller {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 10px 5px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar IE/Edge */
}

.horizontal-product-scroller::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.scroller-product-card-wrapper {
    flex: 0 0 280px; /* fixed width cards */
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 18px;
    padding-left: 18px;
}

.scroller-product-card-wrapper:last-child {
    border-right: none;
}

/* 3D Flip Card Container & Inner Structure */
.product-flip-card {
    perspective: 1000px;
    width: 100%;
    height: 260px;
}

.product-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.product-flip-card:hover .product-flip-card-inner {
    transform: rotateY(180deg);
}

.product-flip-card-front, .product-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ink-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    padding: 0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.product-flip-card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.product-flip-card-back {
    transform: rotateY(180deg);
    background-color: var(--ink-2);
}

.flip-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-flip-card-front:hover .flip-product-img {
    transform: scale(1.05);
}

.back-image-effect {
    transform: scale(1.05);
    filter: brightness(0.95) contrast(1.05);
}

/* Subtle premium border/overlay on back */
.back-overlay-border {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px dashed rgba(255, 177, 0, 0.35);
    border-radius: 12px;
    pointer-events: none;
}



/* Responsive adjustments */
@media (max-width: 767px) {
    .product-flip-card {
        height: 210px;
    }
}

.scroller-card-title {
    font-size: 0.85rem !important;
    font-weight: 700;
    line-height: 1.3;
    height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .scroller-card-title {
        font-size: 0.95rem !important;
        line-height: 1.4;
        height: 42px;
    }
}

/* Scroll to Top Button Styling */
.scroll-to-top-btn {
    position: fixed;
    bottom: 105px; /* Stay above the whatsapp floating button which is at bottom: 30px */
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #ffffff !important;
    border-radius: 50%;
    border: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}

.scroll-to-top-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.4);
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive adjust */
@media (max-width: 991px) {
    .scroller-product-card-wrapper {
        flex: 0 0 230px;
    }
}

/* Bestsellers Drag to scroll cursor classes */
.horizontal-product-scroller {
    cursor: grab;
    user-select: none;
}
.horizontal-product-scroller.active-dragging {
    cursor: grabbing;
    scroll-behavior: auto !important;
}

/* Testimonials continuous scroll marquee styles */
.testimonials-marquee-container {
    overflow: hidden;
    width: 100%;
    display: flex;
    padding: 15px 0;
}

.testimonials-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: testimonialMarqueeScroll 45s linear infinite;
}

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

.testimonial-marquee-card {
    /* 5 cards on desktop layout */
    flex: 0 0 calc(20vw - 20px);
    min-width: 280px; /* safety fallback */
}

@keyframes testimonialMarqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-33.3333%, 0, 0);
    }
}

/* Adjust card widths responsively */
@media (max-width: 1200px) {
    .testimonial-marquee-card {
        flex: 0 0 calc(33.333vw - 20px);
    }
}

@media (max-width: 768px) {
    .testimonial-marquee-card {
        flex: 0 0 calc(50vw - 15px);
    }
}

@media (max-width: 480px) {
    .testimonial-marquee-card {
        flex: 0 0 calc(100vw - 30px);
    }
}



/* Brochure Theme - Double Dashed Rotating Borders */
.dashed-circle-border {
    position: relative;
    max-width: 100%;
    aspect-ratio: 1;
}
.dashed-circle-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px dashed var(--primary-color);
    border-radius: 50%;
    animation: rotateDashed 40s linear infinite;
    z-index: 1;
    pointer-events: none;
}
.dashed-circle-border::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 3px dashed var(--secondary-color);
    border-radius: 50%;
    animation: rotateDashedReverse 30s linear infinite;
    z-index: 1;
    pointer-events: none;
}
@keyframes rotateDashed {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes rotateDashedReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Sizing utilities for circular borders */
.dashed-circle-size-sm {
    width: 240px;
    height: 240px;
}
.dashed-circle-size-md {
    width: 300px;
    height: 300px;
}
.dashed-circle-size-lg {
    width: 400px;
    height: 400px;
}
@media (max-width: 575px) {
    .dashed-circle-size-sm {
        width: 200px;
        height: 200px;
    }
    .dashed-circle-size-md {
        width: 240px;
        height: 240px;
    }
    .dashed-circle-size-lg {
        width: 280px;
        height: 280px;
    }
}

/* Blending Cards Styling */
.blending-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.blending-card:hover {
    transform: translateY(-8px);
    border-color: rgba(211, 47, 47, 0.15);
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.08);
}
.blending-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.blending-card-icon.icon-danger {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--primary-color);
}
.blending-card-icon.icon-warning {
    background-color: rgba(217, 119, 6, 0.15);
    color: #d97706;
}
.blending-card-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    transition: color 0.4s ease;
}
.blending-card:hover .blending-card-number {
    color: rgba(211, 47, 47, 0.15);
}
.blending-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
}
.blending-card-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Blending Quote Box */
.blending-quote-box {
    background-color: #ffffff;
    border: 1px dashed rgba(211, 47, 47, 0.2);
    border-radius: 20px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.blending-quote-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../images/spices-bg.png');
    background-size: 250px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.04;
    pointer-events: none;
}
.quote-icon-left {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 2rem;
    color: var(--primary-color);
}
.quote-icon-right {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary-color);
}
@media (max-width: 767px) {
    .blending-quote-box {
        padding: 2.5rem 1.5rem !important;
    }
    .quote-icon-left {
        left: 10px;
        top: 10px;
        font-size: 1.5rem;
    }
    .quote-icon-right {
        right: 10px;
        bottom: 10px;
        font-size: 1.5rem;
    }
}

/* Why Choose Us Pillars */
.pillar-card {
    transition: var(--transition-smooth);
}
.pillar-card:hover {
    background-color: #ffffff !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.pillar-card:hover .pillar-icon-wrapper {
    transform: translateY(-5px) scale(1.05);
}
.pillar-icon-wrapper {
    transition: var(--transition-smooth);
}

/* Hover Utility Classes */
.hover-up {
    transition: var(--transition-smooth);
}
.hover-up:hover {
    transform: translateY(-5px);
}
.transition-smooth {
    transition: var(--transition-smooth);
}

/* Disable translation effects of scroll reveal on mobile to prevent clumsy lagging, overflow, and layout shifts */
@media (max-width: 767px) {
    .reveal-fade, .reveal-left, .reveal-right, .reveal-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Seasonings Card Design */
.seasonings-card {
    max-width: 380px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}
.seasonings-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(211, 47, 47, 0.1);
    border-color: rgba(211, 47, 47, 0.1);
}
.seasonings-card-inner {
    border-radius: 18px;
    overflow: hidden;
    background-color: #fcfbf9;
    aspect-ratio: 1;
}
.seasonings-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.seasonings-card:hover .seasonings-card-inner img {
    transform: scale(1.05);
}



/* FAQ Accordion Custom Styling */
.faq-section {
    background-color: #faf6ee !important;
}
.faq-accordion .accordion-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-accordion .accordion-item:hover {
    transform: translateY(-2px);
    border-color: rgba(211, 47, 47, 0.15);
    box-shadow: 0 8px 22px rgba(211, 47, 47, 0.05);
}
.faq-accordion .accordion-button {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark-color);
    background-color: transparent;
    padding: 1.25rem 1.5rem;
    border: none;
    transition: all 0.3s ease;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: transparent;
    box-shadow: none;
}
.faq-accordion .accordion-button::after {
    transition: transform 0.3s ease;
}
.faq-accordion .accordion-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280 !important;
}


/* Blog Card Styling */
.blog-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(211, 47, 47, 0.15);
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.08);
}
.blog-card-img {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #fcfbf9;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.blog-card:hover .blog-card-img img {
    transform: scale(1.08);
}
.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card:hover .blog-card-title {
    color: var(--primary-color);
}
.blog-card-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Product Detail Gallery Styles */
.main-image-container {
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}
.main-image-container img {
    transition: transform 0.1s ease-out;
}
.thumbnail-box {
    width: 70px;
    height: 70px;
    cursor: pointer;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    background-color: #ffffff;
}
.thumbnail-box.active {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15) !important;
}
.thumbnail-box:hover {
    border-color: rgba(211, 47, 47, 0.5) !important;
}


/* Product Gallery Responsive Sizing */
.main-image-container {
    height: 480px !important;
    background-color: #ffffff !important;
}
.thumbnail-slider-container {
    max-height: 480px !important;
    overflow-y: auto;
    overflow-x: auto;
}
@media (max-width: 768px) {
    .main-image-container {
        height: 350px !important;
    }
    .thumbnail-slider-container {
        max-height: 80px !important;
    }
}


/* Hero Slider Section Custom Styles */
.hero-slider-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Carousel */
.banner-carousel {
    width: 100%;
    position: relative;
}

.banner-carousel .carousel-inner,
.banner-carousel .carousel-item {
    width: 100%;
}

/* Important: No fixed height, no object-fit cover */
.banner-carousel picture {
    display: block;
    width: 100%;
}

.banner-carousel .banner-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Caption Overlay */
.carousel-caption-custom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    text-align: left;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.70) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

/* Text */
.hero-badge {
    display: inline-block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(5px);
    margin-bottom: 16px;
}

.hero-title {
    color: #ffffff;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.hero-description {
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 650px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Indicators */
.banner-carousel .carousel-indicators {
    bottom: 20px;
    z-index: 15;
}

.banner-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    opacity: 0.6;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.banner-carousel .carousel-indicators .active {
    background-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

/* Controls */
.banner-carousel .carousel-control-prev,
.banner-carousel .carousel-control-next {
    width: 55px;
    opacity: 0.85;
    z-index: 15;
}

.banner-carousel .carousel-control-prev:hover,
.banner-carousel .carousel-control-next:hover {
    opacity: 1;
}

/* Animation */
.active.carousel-item .animate-fadeInUp {
    animation: fadeInUp 0.8s both 0.2s;
}

.active.carousel-item .animate-fadeInUp-2 {
    animation: fadeInUp 0.8s both 0.4s;
}

.active.carousel-item .animate-fadeInUp-3 {
    animation: fadeInUp 0.8s both 0.6s;
}

.active.carousel-item .animate-fadeInUp-4 {
    animation: fadeInUp 0.8s both 0.8s;
}

/* Tablet */
@media only screen and (max-width: 991px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 18px;
    }
}

/* Mobile */
@media only screen and (max-width: 767px) {
    .carousel-caption-custom {
        align-items: center;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.35) 45%,
            rgba(0, 0, 0, 0.20) 100%
        );
        text-align: center;
    }

    .carousel-caption-custom .container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 7px 13px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 30px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .hero-buttons {
        justify-content: center;
        gap: 10px;
    }

    .hero-buttons .btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .banner-carousel .carousel-control-prev,
    .banner-carousel .carousel-control-next {
        display: none;
    }

    .banner-carousel .carousel-indicators {
        bottom: 10px;
    }
}

/* ==========================================================================
   Nimmi's Masala Dark Theme Overrides & Modern Features
   ========================================================================== */

/* Global Dark Theme Backgrounds & Overrides */
body, .main-content-wrapper {
    background-color: var(--light-bg);
    color: var(--text-main);
}

/* Alternating Section Backgrounds (Ink #1B140E and Ink-2 #241B12) */
.main-content-wrapper section:not(.hero-slider-section) {
    border-bottom: 1px solid var(--border-color) !important;
}

.main-content-wrapper section:not(.hero-slider-section):nth-of-type(odd),
.main-content-wrapper section:not(.hero-slider-section).bg-white:nth-of-type(odd),
.main-content-wrapper section:not(.hero-slider-section).bg-light:nth-of-type(odd),
.main-content-wrapper section:not(.hero-slider-section)[style*="background-color"]:nth-of-type(odd) {
    background-color: var(--ink) !important;
}

.main-content-wrapper section:not(.hero-slider-section):nth-of-type(even),
.main-content-wrapper section:not(.hero-slider-section).bg-white:nth-of-type(even),
.main-content-wrapper section:not(.hero-slider-section).bg-light:nth-of-type(even),
.main-content-wrapper section:not(.hero-slider-section)[style*="background-color"]:nth-of-type(even) {
    background-color: var(--ink-2) !important;
}

/* Cards & Divs Inside Sections Adaptation */
.main-content-wrapper section div.bg-white:not(.partner-card), 
.main-content-wrapper section div.bg-light:not(.partner-card),
.main-content-wrapper section .card,
.main-content-wrapper section .testimonial-card,
.main-content-wrapper section .testimonial-card-inner,
.main-content-wrapper section .feature-box,
.main-content-wrapper section .faq-accordion .accordion-item,
.main-content-wrapper section .blog-card,
.main-content-wrapper section .pillar-card,
.main-content-wrapper section .seasonings-card-inner {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow) !important;
}

/* Partner Brand Cards: Keep white background for brand logo visibility */
.partner-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Header offcanvas and search drop-down dark adaptation */
.offcanvas {
    background-color: var(--light-bg) !important;
    border-left: 1px solid var(--border-color) !important;
    border-right: 1px solid var(--border-color) !important;
}

.offcanvas-header {
    background-color: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.offcanvas-title {
    color: var(--parchment) !important;
}

.offcanvas-body {
    background-color: var(--light-bg) !important;
}

/* High Contrast Legible Text for Dark Theme */
body, p, span, li, a, td, th, label, input, textarea, select {
    color: var(--text-main);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--parchment) !important;
}

/* Overriding Bootstrap text-dark, text-secondary, and dark about text */
.text-dark, .text-black, .text-secondary, .about-text, .scroller-card-title, .bestsellers-title {
    color: var(--parchment) !important;
}

.text-muted, .text-white-50, .text-black-50, .faq-accordion .accordion-body {
    color: rgba(244, 234, 217, 0.6) !important;
}

/* Warning & Light Buttons text remains dark for legibility */
.btn-warning, .btn-warning.text-dark, .btn-warning *, .btn-warning.text-dark * {
    color: #111827 !important;
}

/* Testimonial Cards Font Color Refinements */
.testimonial-card-inner h6, 
.testimonial-card-inner .text-dark, 
.testimonial-card-inner .testimonial-user-name {
    color: var(--parchment) !important;
}

.testimonial-card-inner p,
.testimonial-card-inner .testimonial-text {
    color: rgba(244, 234, 217, 0.7) !important;
}

/* Form Fields */
.form-control-custom, .form-control {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--parchment) !important;
}

.form-control-custom:focus, .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(181, 72, 40, 0.25) !important;
}

.form-control-custom::placeholder, .form-control::placeholder {
    color: rgba(244, 234, 217, 0.4) !important;
}

.border-light, .border {
    border-color: var(--border-color) !important;
}

/* Inner Banner Overlay for high legibility */
.inner-banner {
    position: relative;
    overflow: hidden;
}

.inner-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(27, 20, 14, 0.45), rgba(27, 20, 14, 0.65));
    z-index: 1;
}

.inner-banner > * {
    position: relative;
    z-index: 2;
}

.inner-banner-title {
    color: var(--parchment) !important;
    font-weight: 800;
}

.inner-banner-breadcrumbs a {
    color: var(--primary-color) !important;
}

.inner-banner-breadcrumbs a:hover {
    color: var(--secondary-color) !important;
}

/* Category Auto-Scroll Marquee Styles */
.category-marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 15px 0;
}

.category-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}

.category-marquee-track:hover {
    animation-play-state: paused;
}

.category-marquee-item {
    flex: 0 0 270px;
    width: 270px;
}

.category-marquee-item .category-card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    padding: 0 !important;
    transition: var(--transition-smooth) !important;
    height: 100% !important;
    min-height: 365px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden !important;
}

.category-marquee-item .category-card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--primary-color) !important;
}

/* Image Size Big for homepage categories */
.category-marquee-item .category-card-img-wrapper {
    width: 100% !important;
    height: 300px !important; /* Bigger image height */
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--light-bg) !important;
    transition: var(--transition-smooth) !important;
    box-shadow: none !important;
}

.category-marquee-item .category-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-marquee-item .category-card:hover .category-card-img-wrapper img {
    transform: scale(1.08);
}

.category-marquee-item .category-card-title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--parchment) !important;
    margin: auto 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 15px 10px !important;
    transition: color 0.3s ease !important;
}

.category-marquee-item .category-card:hover .category-card-title {
    color: var(--primary-color) !important;
}

.category-marquee-item .category-card-title i {
    transition: transform 0.3s ease !important;
}

.category-marquee-item .category-card:hover .category-card-title i {
    transform: translateX(4px) !important;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-33.3333% - 6.666px));
    }
}

/* Video Grid Card Styles */
.video-grid-card {
    transition: var(--transition-smooth);
}

.video-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
    border-color: var(--primary-color) !important;
}

.play-btn-glow {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(181, 72, 40, 0.6);
    transition: var(--transition-smooth);
}

.video-grid-card:hover .play-btn-glow {
    transform: scale(1.15);
    background-color: var(--primary-hover);
    box-shadow: 0 0 30px rgba(210, 88, 55, 0.9);
}

.video-card-overlay {
    transition: var(--transition-smooth);
}

.video-grid-card:hover .video-card-overlay {
    background: linear-gradient(to top, rgba(27, 20, 14, 0.95) 0%, rgba(27, 20, 14, 0.3) 60%, rgba(27, 20, 14, 0.5) 100%) !important;
}

/* Additional layout alignments */
.testimonial-user-name, .feature-box-title, .partner-card h5, .testimonial-card h5 {
    color: var(--parchment) !important;
}

.btn-close-white {
    filter: invert(1) grayscale(1) brightness(2);
}

/* ==========================================================================
   Nimmi's Masala Dark Theme Modernization & Visual Parity Overrides
   ========================================================================== */

/* 1. Section Backgrounds & Marquee Overrides */
.new-arrivals-slider-section {
    background: linear-gradient(rgba(36, 27, 18, 0.95), rgba(36, 27, 18, 0.95)), url('../images/spices-bg.png') !important;
}

.why-choose-pillars {
    background-color: var(--ink-2) !important;
}

.art-blending-section {
    background-color: var(--ink) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.faq-section {
    background-color: var(--ink) !important;
}

/* 2. Card Components Styling */
.blending-card, 
.blending-quote-box,
.pillar-card,
.testimonial-card,
.testimonial-card-inner,
.testimonial-card-inner.bg-white,
.category-card,
.category-marquee-item .category-card,
.seasonings-card,
.blog-card {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

.pillar-card:hover,
.testimonial-card-inner:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary-color) !important;
}

.blending-card-number {
    color: rgba(255, 255, 255, 0.08) !important;
}

.blending-card:hover .blending-card-number {
    color: rgba(211, 47, 47, 0.3) !important;
}

.blending-quote-box {
    border-color: rgba(211, 47, 47, 0.3) !important;
}

.category-card-img-wrapper,
.seasonings-card-inner,
.blog-card-img {
    background-color: var(--ink-2) !important;
}

/* 3. Catalog Sidebar & Filter Bar Overrides */
.col-lg-3 > .card, 
.col-lg-9 > .d-flex {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

.list-group-item-action,
.list-group-item {
    background-color: transparent !important;
    color: var(--text-muted) !important;
    border-color: var(--border-color) !important;
    transition: all 0.3s ease !important;
}

.list-group-item-action.text-secondary {
    color: var(--text-muted) !important;
}

.list-group-item-action:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--parchment) !important;
    padding-left: 8px !important;
    border-radius: 8px !important;
}

.list-group-item-action.text-danger {
    background-color: rgba(255, 177, 0, 0.1) !important;
    color: var(--secondary-color) !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    border-radius: 8px !important;
}

.list-group-item-action.text-danger i {
    color: var(--secondary-color) !important;
}

/* 4. Specifications Table Dark Mode */
.table {
    --bs-table-bg: var(--card-bg) !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
    --bs-table-border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

.table th, .table td {
    background-color: transparent !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

.table th.bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--parchment) !important;
}

/* 5. Product Details Gallery & Search Bar Overrides */
.main-image-container, 
.thumbnail-box {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

.header-search-form .input-group:focus-within,
.mobile-search-form .input-group:focus-within {
    background-color: var(--card-bg) !important;
}

/* 6. Footer Dark Mode Alignment */
footer, .footer-top, .footer-bottom, .footer-section {
    background-color: #000000 !important;
}

.footer-links-list a,
.footer-contact-item {
    color: var(--text-muted) !important;
}

.footer-links-list a:hover {
    color: var(--secondary-color) !important;
}

/* 7. Product Card & Image Flip Overrides */
.product-card {
    perspective: none !important;
    transform-style: flat !important;
    transition: var(--transition-smooth) !important;
    height: 435px !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    position: relative !important;
}

.product-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}

.product-card-img,
.product-card-body {
    display: none !important; /* Hide old elements to avoid conflicts */
}

/* New Flipping Image Box Styles */
.product-image-flip-box {
    height: 280px !important;
    width: 100% !important;
    perspective: 1000px !important;
    background-color: var(--light-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
    overflow: hidden !important;
    position: relative !important;
}

.product-image-flip-inner {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-style: preserve-3d !important;
}

.product-card:hover .product-image-flip-inner {
    transform: rotateY(180deg) !important;
}

.product-image-front,
.product-image-back {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    backface-visibility: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important; /* Full bleed image */
}

.product-image-front {
    background-color: var(--light-bg) !important;
    transform: rotateY(0deg) !important;
}

.product-image-back {
    background-color: var(--ink-2) !important;
    transform: rotateY(180deg) !important;
}

.product-image-front img,
.product-image-back img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important; /* Cover container completely */
    transition: transform 0.5s ease !important;
}

.product-card:hover .product-image-front img {
    transform: scale(1.08) !important;
}

.product-card:hover .product-image-back img {
    transform: scale(1.08) !important;
}

.product-image-front .fallback-img-icon,
.product-image-back .fallback-img-icon {
    font-size: 3.5rem !important;
    color: var(--primary-color) !important;
    opacity: 0.25 !important;
}

/* Fixed Details Section Below */
.product-card-body-fixed {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0.6rem 0.85rem 0.5rem 0.85rem !important;
    text-align: center !important;
    background-color: var(--card-bg) !important;
    position: relative !important;
    z-index: 5 !important;
}

.product-card-body-fixed .product-category-lbl {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 0.15rem !important;
    display: block !important;
}

.product-card-body-fixed .product-card-title {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--parchment) !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.3rem !important;
}

.product-card-body-fixed .product-card-price {
    margin-bottom: 0.15rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.product-card-body-fixed .price-now {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--secondary-color) !important;
}

.product-card-body-fixed .price-was {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    text-decoration: line-through !important;
}

.btn-enquire-action {
    display: block !important;
    width: 100% !important;
    padding: 0.75rem 1rem !important; /* Increased padding */
    text-align: center !important;
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border-top: 1px solid var(--border-color) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    transition: var(--transition-smooth) !important;
    margin-top: auto !important;
    z-index: 10 !important;
}

.btn-enquire-action:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Mobile responsive card heights */
@media (max-width: 576px) {
    .product-card {
        height: 345px !important; /* Increased height */
    }
    .product-image-flip-box {
        height: 190px !important; /* Adjusted image box */
    }
    .product-card-body-fixed {
        padding: 0.6rem 0.5rem !important;
    }
    .product-card-body-fixed .product-card-title {
        font-size: 0.75rem !important;
        height: 2.1rem !important;
        margin-bottom: 0.15rem !important;
    }
    .btn-enquire-action {
        padding: 0.65rem 0.5rem !important; /* Increased padding */
        font-size: 0.75rem !important;
        letter-spacing: 0.5px !important;
    }
}

/* 8. Clients logos & FAQ accordion buttons */
.clients-section {
    background-color: var(--ink-2) !important;
}

.faq-accordion .accordion-item {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

.faq-accordion .accordion-button {
    color: var(--parchment) !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary-color) !important;
}

.faq-accordion .accordion-body {
    color: var(--text-main) !important;
}

/* 9. Trust/Features Strip Section Styles */
.trust-strip-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1.5rem 0;
}

.trust-strip-track {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    animation: none; /* No scroll on desktop */
}

.trust-strip-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.trust-strip-item.duplicate {
    display: none !important; /* Hide duplicate marquee elements on desktop */
}

.trust-icon-wrapper {
    width: 55px;
    height: 55px;
    background-color: rgba(181, 72, 40, 0.1);
    border: 1px solid rgba(181, 72, 40, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(181, 72, 40, 0.15);
    transition: all 0.3s ease;
}

.trust-strip-item:hover .trust-icon-wrapper {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(181, 72, 40, 0.3);
}

.trust-content {
    display: flex;
    flex-direction: column;
}

.trust-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--parchment);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.trust-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes trustMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Mobile responsive auto scroll for trust strip */
@media (max-width: 991px) {
    .trust-strip-wrapper {
        padding: 1.15rem 0;
    }
    .trust-strip-item.duplicate {
        display: flex !important; /* Show duplicates on mobile for seamless loop */
    }
    .trust-strip-track {
        width: max-content;
        gap: 50px;
        animation: trustMarquee 18s linear infinite; /* Enable scrolling loop */
    }
    .trust-strip-item {
        min-width: 190px;
    }
    .trust-strip-wrapper:hover .trust-strip-track {
        animation-play-state: paused;
    }
}

/* 10. Mobile navbar toggler hamburger visibility */
.navbar-toggler-icon {
    filter: invert(1) !important;
}
.navbar-toggler:focus {
    box-shadow: none !important;
}

/* 11. Header Mobile Search, X close button, and Phone contrast fixes */
.mobile-search-form .input-group,
.desktop-search-form .input-group {
    background-color: var(--ink-2) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.mobile-search-form .input-group .input-group-text,
.desktop-search-form .input-group .input-group-text {
    background-color: transparent !important;
    border: none !important;
    color: var(--primary-color) !important;
}

.mobile-search-form .input-group i,
.desktop-search-form .input-group i,
.desktop-search-form .input-group .btn-link i {
    color: var(--primary-color) !important;
}

.mobile-search-form .form-control,
.desktop-search-form .form-control {
    color: var(--parchment) !important;
    background-color: transparent !important;
    border: none !important;
}

.mobile-search-form .form-control::placeholder,
.desktop-search-form .form-control::placeholder {
    color: var(--text-muted) !important;
}

.desktop-search-form .input-group .btn-link {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Ensure phone text color override handles dark headers correctly */
.header-actions-container a.text-light {
    color: var(--parchment) !important;
}

.header-actions-container a.text-light:hover {
    color: var(--primary-color) !important;
}

/* Mobile Enquiry Button in Header */
.btn-enquiry-header {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.05rem;
    padding: 0.5rem 1rem;
    border: none !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.25);
}

.btn-enquiry-header:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.35);
}

/* Blog Detail Page Dark Mode Styles */
.blog-detail-article {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow) !important;
    color: var(--text-main) !important;
}

.blog-detail-article .border-bottom {
    border-bottom-color: var(--border-color) !important;
}

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

.blog-html-content {
    color: var(--text-main) !important;
}

.blog-html-content p,
.blog-html-content ul,
.blog-html-content ol,
.blog-html-content li {
    color: var(--text-muted) !important;
}

.blog-html-content h1,
.blog-html-content h2,
.blog-html-content h3,
.blog-html-content h4,
.blog-html-content h5,
.blog-html-content h6 {
    color: var(--dark-color) !important;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.blog-sidebar-card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow) !important;
    color: var(--text-main) !important;
}

.blog-sidebar-card .border-bottom {
    border-bottom-color: var(--border-color) !important;
}

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

/* Categories Page Grid Cards */
.category-page-card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    padding: 0 !important;
    transition: var(--transition-smooth) !important;
    height: 100% !important;
    min-height: 350px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden !important;
}

.category-page-card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--primary-color) !important;
}

.category-page-card-img-wrapper {
    width: 100% !important;
    height: 280px !important;
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--light-bg) !important;
    transition: var(--transition-smooth) !important;
    box-shadow: none !important;
}

.category-page-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-page-card:hover .category-page-card-img-wrapper img {
    transform: scale(1.08);
}

.category-page-card-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: var(--parchment) !important;
    margin: auto 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 15px 10px !important;
    transition: color 0.3s ease !important;
}

.category-page-card:hover .category-page-card-title {
    color: var(--primary-color) !important;
}

.category-page-card-title i {
    transition: transform 0.3s ease !important;
}

.category-page-card:hover .category-page-card-title i {
    transform: translateX(4px) !important;
}

/* Amazon-style Magnifier CSS */
@media (min-width: 992px) {
    .main-image-container {
        position: relative !important;
        cursor: crosshair !important;
    }
    
    .zoom-lens {
        position: absolute !important;
        width: 140px !important;
        height: 140px !important;
        border: 2px dashed var(--secondary-color) !important;
        background-color: rgba(255, 177, 0, 0.15) !important;
        pointer-events: none !important;
        z-index: 100 !important;
        display: none;
        border-radius: 8px !important;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.3) !important;
    }
    
    .zoom-result {
        position: absolute !important;
        left: 105% !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border: 2px solid var(--border-color) !important;
        border-radius: 16px !important;
        background-repeat: no-repeat !important;
        background-color: #ffffff !important;
        z-index: 1000 !important;
        display: none;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
        overflow: hidden !important;
    }
}

@media (max-width: 991px) {
    .main-image-container img {
        transition: transform 0.2s ease !important;
    }
}

/* Detail Page Thumbnail Styling */
.thumbnail-box {
    border: 2px solid transparent !important;
    transition: all 0.25s ease !important;
    background-color: var(--card-bg) !important;
    width: 65px !important;
    height: 65px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.thumbnail-box.active,
.thumbnail-box:hover {
    border-color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 177, 0, 0.25) !important;
}

/* Detail Page Custom Video Embed Clean Layout */
#mainProductVideoContainer {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
}

#mainProductVideoContainer iframe {
    width: 130% !important;
    height: 130% !important;
    position: absolute !important;
    top: -15% !important;
    left: -15% !important;
    border: none !important;
    pointer-events: none !important;
}

/* Mobile Zoom Lightbox Overlay */
.mobile-zoom-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 10, 8, 0.98) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    transition: opacity 0.3s ease !important;
    pointer-events: none;
}

.mobile-zoom-lightbox.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-zoom-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    transition: background 0.2s !important;
}

.mobile-zoom-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.mobile-zoom-img-wrapper {
    width: 90% !important;
    height: 80% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.mobile-zoom-img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.25s ease-out !important;
    cursor: zoom-in !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

.mobile-zoom-img.zoomed {
    transform: scale(2.5) !important;
    cursor: zoom-out !important;
}
/* Responsive Image-based Inner Banner */
.inner-banner-img-wrap {
    position: relative;
    width: 100%;
    height: 300px; /* Fixed standard desktop height */
    overflow: hidden;
    background: #111;
}

.inner-banner-img-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* Soft light-dark overlay for readability */
    z-index: 1;
}

.inner-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover !important; /* Fit dynamically without stretching */
    object-position: center !important;
    display: block;
}

.inner-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.inner-banner-title {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
}

.inner-banner-breadcrumbs {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    color: #fff;
}

.inner-banner-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 991px) {
    .inner-banner-img-wrap {
        height: 240px; /* Tablet height */
    }
    .inner-banner-title {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .inner-banner-img-wrap {
        height: 180px; /* Slightly taller mobile banner to fit text neatly */
    }
    .inner-banner-title {
        font-size: 20px !important;
        line-height: 1.2 !important;
        margin-bottom: 0.2rem !important;
    }

    .inner-banner-breadcrumbs {
        font-size: 11px !important;
        margin-top: 6px !important;
        line-height: 1.4 !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px 6px !important;
    }

    /* Mobile Header Layout Adjustments to Keep Logo, Enquiry, and Toggler on the Same Line */
    .navbar > .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }
    .navbar-brand img {
        height: 48px !important; /* Increased logo height */
    }
    .brand-text {
        margin-left: 0.15rem !important;
    }
    .brand-text .brand-name {
        font-size: 1.1rem !important; /* Scaled brand name font size */
    }
    .brand-text .brand-sub {
        font-size: 0.58rem !important; /* Scaled brand subtitle font size */
        letter-spacing: 0.8px !important;
    }
    .btn-enquiry-header {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.7rem !important;
        margin-right: 0.25rem !important;
        letter-spacing: 0.02rem !important;
        align-self: center !important;
    }
    .navbar-toggler {
        padding: 0.35rem 0.55rem !important; /* Increased hamburger button padding */
        align-self: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .navbar-toggler-icon {
        width: 1.85rem !important; /* Increased hamburger icon width */
        height: 1.85rem !important; /* Increased hamburger icon height */
    }
}

/* Policy Page Overrides */
.policy-card {
    border: none !important;
}

/* Footer Bottom Links styling */
.footer-policy-links a {
    color: var(--text-muted) !important;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.footer-policy-links a:hover {
    color: var(--primary-color) !important;
}

