/* 
    Premium Landing Page Styles for UttamKhadya 
    Brand: Healthy Indian Food / Cold Pressed Oils
    Color Palette: Cream (#F8F5EE), Forest Green (#2E4A32), Mustard Gold (#C6922F)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700;900&display=swap');

:root {
    --bg-cream: #F8F5EE;
    --primary-green: #234E33;
    --accent-gold: #C6922F;
    --accent-gold-light: #d9a93d;
    --earth-brown: #5D4037;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* --- Global Utilities --- */
.section-padding {
    padding: 100px 0;
}

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

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

.btn-premium {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.35s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
}

.btn-primary-gold {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    color: var(--white);
    border: none;
    box-shadow: 0 10px 30px rgba(198, 146, 47, 0.3);
}

.btn-primary-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(198, 146, 47, 0.45);
    color: var(--white);
}

.nav-link i {
    color: var(--primary-green);
    transition: color 0.3s ease;
}

.nav-link:hover i {
    color: var(--accent-gold);
}

.navbar-toggler i {
    color: var(--primary-green);
}

.btn-outline-green {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline-green:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-3px);
}

/* --- Progress Bar --- */
#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent-gold);
    z-index: 9999;
}

/* --- Organic Blobs --- */
.bg-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(198, 146, 47, 0.18) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    top: 10%;
    right: -100px;
}

.blob-2 {
    bottom: 20%;
    left: -150px;
    background: radial-gradient(circle, rgba(46, 74, 50, 0.12) 0%, transparent 70%);
}

/* --- Navbar --- */
.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

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

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar {
    transition: all 0.4s ease;
    padding: 10px 0;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar.scrolled {
    background: var(--glass-bg);
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: var(--primary-green);
    font-weight: 500;
    margin: 0 15px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 140px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(248, 245, 238, 0.9), rgba(248, 245, 238, 0.2));
    z-index: 1;
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    color: var(--text-muted);
}

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

.floating-hero-img {
    animation: floating 6s ease-in-out infinite;
    max-width: 100%;
}

@keyframes floating {
    0% {
        transform: translate(0, 0px);
    }

    50% {
        transform: translate(0, 20px);
    }

    100% {
        transform: translate(0, -0px);
    }
}

/* --- Marquee Strip --- */
.ingredient-strip {
    background: var(--primary-green);
    color: var(--white);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

.marquee-item {
    display: inline-block;
    padding: 0 40px;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* --- Feature Cards --- */
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: var(--white);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

/* --- Product Cards --- */
.product-card {
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-img-wrapper {
    overflow: hidden;
    aspect-ratio: 1/1;
}

.product-card img {
    transition: transform 0.6s ease;
}

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

.product-info {
    padding: 25px;
    text-align: center;
}

.price {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.2rem;
}

/* --- About Section --- */
.about-image-container {
    position: relative;
    padding: 20px;
}

.about-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border: 5px solid var(--accent-gold);
    z-index: -1;
    transform: translate(-20px, -20px);
}

/* --- Process Timeline --- */
.process-step {
    text-align: center;
    position: relative;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-green);
    z-index: 2;
    position: relative;
}

/* --- Testimonials --- */
.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* --- Newsletter --- */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-green), #1e3321);
    color: var(--white);
    border-radius: 30px;
    padding: 60px;
}

.newsletter-input {
    border-radius: 50px 0 0 50px;
    padding: 15px 30px;
    border: none;
}

.newsletter-btn {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
    background: var(--accent-gold);
    color: var(--white);
    border: none;
}

/* --- Preloader --- */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader img {
    width: 100px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Section Dividers --- */
.wave-divider {
    width: 100%;
    line-height: 0;
    direction: ltr;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-fill {
    fill: var(--bg-cream);
}

/* --- Trust Metrics --- */
.trust-metric-item {
    text-align: center;
}

.counter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    font-family: 'Playfair Display', serif;
}

/* --- Premium Modals --- */
.premium-modal-content {
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg-cream);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.premium-modal-header {
    background: linear-gradient(135deg, var(--primary-green), #1e3321);
    padding: 25px;
}

.premium-modal-content .form-control {
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #fff !important;
}

.premium-modal-content .form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(198, 146, 47, 0.1);
}

.premium-modal-content .input-group-text {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    color: var(--primary-green);
}

.premium-link {
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.premium-link:hover {
    color: var(--primary-green);
    text-decoration: underline !important;
}

/* --- Cart Specific Premium --- */
@media (min-width: 576px) {
    #cartModal .modal-dialog {
        max-width: 550px;
    }
}

.premium-modal-content .table thead th {
    background: #f1ede4;
    color: var(--primary-green);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 12px 6px;
}

.premium-modal-content .table td {
    padding: 12px 6px;
    border-color: rgba(0, 0, 0, 0.03);
    font-size: 0.88rem;
}

.premium-modal-content .qty-control-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.premium-modal-content .qty-control-btn:hover {
    background: var(--primary-green);
    color: var(--white);
}

.premium-modal-content .total-row {
    background: #f9f7f2 !important;
}

.btn-danger-soft {
    background-color: #ffebee;
    color: #c62828;
    border: none;
    border-radius: 8px;
}

/* --- Footer Enhancements --- */
footer .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

footer a.text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
    display: inline-block;
}

footer a.text-muted:hover {
    color: var(--accent-gold) !important;
    text-decoration: none;
    transform: translateX(5px);
}

footer a {
    transition: all 0.3s ease;
}

footer .list-unstyled li {
    margin-bottom: 12px;
}

footer h5 {
    color: var(--accent-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

/* --- Category View Styles --- */
.product-view-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-view-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.product-view-card .card-img-top {
    transition: transform 0.5s ease;
}

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

.btn-outline-green {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
}

.btn-outline-green:hover {
    background: var(--primary-green);
    color: #fff;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #ccc;
}

/* --- Cart Button & Qty Control --- */
.btn-add-to-cart {
    background-color: var(--primary-green);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background-color: #1b3d32;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 77, 0.3);
}

.qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 5px;
    width: 100%;
}

.qty-btn {
    background: #fff;
    border: 1px solid #dee2e6;
    color: var(--primary-green);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

.qty-value {
    font-weight: 700;
    color: var(--primary-green);
    min-width: 30px;
    text-align: center;
}

.product-view-card .action-container {
    width: 100%;
}

/* --- Global Premium Badges --- */
.premium-badge {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.5em 1em;
}

/* --- Geolocation & Saved Addresses styling --- */
.btn-premium-dark {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    transition: all 0.3s ease;
}

.btn-premium-dark:hover {
    background-color: #1a3a26;
    color: var(--white);
}

.bg-light-hover:hover {
    background-color: #f1ede4 !important;
    cursor: pointer;
}

/* Custom Product Links */
.hover-green {
    transition: color 0.3s ease;
}

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

/* Horizontal Scroll Utilities */
.custom-horizontal-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 24px;
    gap: 24px;
    -webkit-overflow-scrolling: touch;
}

.custom-horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.custom-horizontal-scroll::-webkit-scrollbar-track {
    background: #f1ede4;
    border-radius: 10px;
}

.custom-horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.custom-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

.scroll-card-wrapper {
    flex-shrink: 0;
    width: 320px;
    /* Enforces beautiful proportional desktop width */
}

@media (max-width: 576px) {
    .scroll-card-wrapper {
        width: 280px;
        /* Comfortable mobile width */
    }
}

/* --- Product Details Modal Custom Upgrades --- */
.details-modal-title {
    font-size: 1.4rem;
}

.details-modal-image-wrapper {
    height: 240px;
    width: 100%;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
}

.details-modal-image {
    height: 240px;
    width: 240px;
    /* height: 240px;
    width: 100%; */
    object-fit: cover;
}

.details-modal-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.details-modal-description {
    font-size: 0.9rem;
    text-align: justify;
}