@import url('base.css');
@import url('components.css');
@import url('accessibility.css');

/* =====================
   Root Variables
   ===================== */
:root {
    --primary-color: #8B0000;
    --secondary-color: #CD853F;
    --accent-color: #8B4513;
    --text-color: #2C1810;
    --light-text: #4A3528;
    --white: #FFFFFF;
    --black: #000000;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    --body-bg: #FFF8F0;
    --card-bg: #FFFFFF;
    --card2-bg: #FFF8F0;
    --light-bg: #FFF8F0;
    --border-color: #E0D3C3;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --dark-color: #4A3528;
    --success-color: #28A745;
    --warning-color: #FFC107;
    --danger-color: #DC3545;
    --info-color: #17A2B8;
    --spice-brown: #4A0404;
    --transition-speed: 0.3s;
    --error-color: #B22222;
    --background-light: #FFF8E7;
    --background-dark: #2C1810;
}

[data-theme="dark"] {
    --primary-color: #FF6B6B;
    --secondary-color: #FFD700;
    --accent-color: #FFA500;
    --text-color: #FFE4B5;
    --light-text: #FFDAB9;
    --body-bg: #1A1A1A;
    --card-bg: #2D2D2D;
    --card2-bg: #333333;
    --light-bg: #2D2D2D;
    --border-color: #404040;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    --dark-color: #FFD700;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
    --info-color: #2196F3;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--body-bg);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

img {
    max-width: 100%;
    height: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: contain;
}

/* =====================
   Theme Toggle
   ===================== */
#theme-toggle {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}
#theme-toggle:hover { color: var(--accent-color); }
#theme-toggle i { font-size: 1.2rem; }

/* =====================
   Navbar
   ===================== */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}
.navbar.scrolled {
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* =====================
   Card
   ===================== */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
            box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-radius: 8px;
    overflow: hidden;
}
.card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow);
}
.card-body {
    background-color: var(--card-bg);
    color: var(--text-color);
}
.card-title { color: var(--text-color); }
.card-text { color: var(--light-text); }

/* =====================
   Accessibility
   ===================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: var(--light-text);
    padding: 8px;
    z-index: 100;
    transition: top 0.3s ease;
}
.skip-link:focus { top: 0; }

:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Navbar */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    margin-left: 0;
    padding-left: 0;
}

.navbar-brand img {
    height: 100px;
    width: auto;
    border-radius: 8px;
    margin-left: 0;
}

.navbar-brand span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1.35rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-link.active {
    color: var(--secondary-color) !important;
}

/* Home Button */
.home-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 1000;
    /* Note: AI chatbot toggle is positioned above this button (bottom: 100px) */
}

.home-button:hover {
    transform: translateY(-5px);
    background: var(--secondary-color);
    color: var(--white);
}

.home-button i {
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero > .container,
.hero > .hero-content {
    position: relative;
    z-index: 1;
}

.hero::before {
    background: linear-gradient(to right, rgba(139, 0, 0, 0.8), rgba(212, 175, 55, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    animation: fadeInUp 2s ease;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* About Page Hero */
body:has(.navbar-brand[href="../index.html"]) .hero:has(h1:contains("Our Story")) {
    background-image: url('../images/hero/about-hero.jpg');
}

/* Products Page Hero */
body:has(.navbar-brand[href="../index.html"]) .hero:has(h1:contains("Premium Spice Collection")) {
    background-image: url('../images/hero/products-hero.jpg');
}

/* Recipes Page Hero */
body:has(.navbar-brand[href="../index.html"]) .hero:has(h1:contains("Authentic Maharashtrian Recipes")) {
    background-image: url('../images/hero/recipes-hero.jpg');
}

/* Contact Page Hero */
body:has(.navbar-brand[href="../index.html"]) .hero:has(h1:contains("Get in Touch")) {
    background-image: url('../images/hero/contact-hero.jpg');
}

/* Hero Section - Other Pages */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 0;
    text-align: center;
    margin-top: 0;
}

.page-hero h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Buttons */
.btn-spice {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

.btn-spice:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
    color: var(--white);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--card2-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.card-body {
    padding: 1.5rem;
    background-color: var(--card2-bg);
}

.card-title {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-details h5 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.product-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.product-details li {
    color: var(--text-color);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.btn-show-more {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    padding: 0;
    margin: 1rem 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-show-more:hover {
    color: var(--secondary-color);
}

.btn-show-more i {
    transition: transform 0.3s ease;
}

.btn-show-more.active i {
    transform: rotate(180deg);
}

/* Why Choose Us Section */
.bg-light {
    background-color: var(--light-bg) !important;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.feature-title {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-text {
    color: var(--light-text);
    margin-bottom: 0;
}

/* Health Benefits Section */
.benefits-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.benefits-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.benefits-card .card-title {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefits-card .card-title i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.benefits-card .card-text {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.benefits-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.benefits-card ul li {
    color: var(--light-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.benefits-card ul li i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .benefits-card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .feature-icon {
    color: var(--secondary-color);
}

[data-theme="dark"] .feature-card:hover .feature-icon {
    color: var(--accent-color);
}

[data-theme="dark"] .benefits-card .card-title i {
    color: var(--secondary-color);
}

[data-theme="dark"] .benefits-card ul li i {
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

footer h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

footer p {
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

footer .list-unstyled li {
    margin-bottom: 0.8rem;
}

footer .list-unstyled a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-bottom: 2px;
}

footer .list-unstyled a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

footer .list-unstyled a:hover {
    color: var(--accent-color);
}

footer .list-unstyled a:hover::after {
    width: 100%;
}

footer .social-icons a {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-right: 1rem;
    transition: var(--transition);
}

footer .social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Contact Information in Footer */
footer .contact-info {
    color: var(--white);
}

footer .contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

footer .contact-info i {
    color: var(--secondary-color);
}

/* Important Footer Links */
footer .important-link {
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--secondary-color);
    text-underline-offset: 4px;
}

footer .important-link:hover {
    color: var(--accent-color);
    text-decoration-color: var(--white);
}

/* Section Headings */
section h2 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Card Content */
.card-body {
    color: var(--text-color);
}

.card-body h3 {
    color: var(--text-color);
    font-weight: 600;
}

.card-body p {
    color: var(--text-color);
    opacity: 0.9;
}

/* Form Labels */
.form-label {
    color: var(--text-color);
    font-weight: 500;
}

/* Navigation Links */
.navbar-dark .navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Health Benefits Section */
.card .fa-heart {
    color: var(--secondary-color);
}

.card .fa-brain {
    color: var(--primary-color);
}

/* Simple Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-text {
        font-size: 1rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }

/* Accessibility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .btn-spice,
    .navbar-dark,
    footer {
        border: 2px solid currentColor;
    }
}

/* Hero Section Enhancements */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(139, 69, 19, 0.7), rgba(211, 84, 0, 0.7));
    animation: gradientShift 10s ease infinite;
}

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

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(to right, var(--background-light), #FFF0E0);
    border-radius: 15px;
    padding: 3rem 0;
}

.newsletter-form .form-control {
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.newsletter-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(211, 84, 0, 0.25);
}

/* Footer Enhancements */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: var(--white) ;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

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

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer p {
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer .contact-info {
    color: var(--white);
}

.footer .contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer .contact-info i {
    color: var(--secondary-color);
}

.footer .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer .social-links a {
    color: var(--secondary-color);
    font-size: 1.4rem;
    transition: var(--transition);
}

.footer .social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    color: var(--white);
    margin: 0;
    font-size: 0.9rem;
}

/* Animation Enhancements */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.spice-image-container {
    animation: float 6s ease-in-out infinite;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 600;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--body-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-bar {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Navigation Animation */
.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* Image Hover Effects */
.img-hover {
    transition: transform 0.3s ease;
}

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

/* Section Headers */
section h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* Product Cards - Signature Blends */
.product-card {
    background-color: var(--card2-bg);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    will-change: transform;
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--card2-bg);
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.product-rating i {
    color: #ffd700;
    font-size: 0.9rem;
}

.product-rating span {
    color: var(--dark-color);
    font-size: 0.9rem;
}

.product-description {
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-details {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.product-details h5 {
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-details ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.product-details li {
    color: var(--dark-color);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.product-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-tag {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
}

.unit {
    font-size: 0.9rem;
    color: var(--dark-color);
    opacity: 0.8;
}

/* Individual Spice Cards */
.spice-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.spice-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.spice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    will-change: transform;
}

.spice-card:hover .spice-image img {
    transform: scale(1.02);
}

.spice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spice-card:hover .spice-overlay {
    opacity: 1;
}

.btn-quick-view {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quick-view:hover {
    background: var(--primary-color);
    color: var(--white);
}

.spice-content {
    padding: 1.5rem;
}

.spice-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.spice-rating {
    color: #FFC107;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.spice-rating span {
    color: var(--text-light);
    margin-left: 0.3rem;
}

.spice-description {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.spice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Featured Spices Section */
.featured-spices {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--light-bg), #fff);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.spice-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.spice-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: var(--card2-bg);
    border: 1px solid var(--border-color);
}

.spice-item:hover {
    transform: translateY(-10px);
}

.spice-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

.spice-item:hover .spice-image img {
    transform: scale(1.1);
}

.spice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.spice-info {
    color: #fff;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.spice-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.spice-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spice-rating i {
    color: #ffd700;
}

.spice-rating span {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.spice-info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.spice-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spice-actions .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-details {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Modal Content Styles */
.modal-spice-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--card2-bg);
    border-radius: 15px;
    overflow: hidden;
}

.modal-spice-image {
    border-radius: 10px;
    overflow: hidden;
}

.modal-spice-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    max-height: 400px;
}

.modal-spice-info {
    padding: 2rem;
    background: var(--card2-bg);
}

.modal-spice-info h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.modal-description {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-spice-info .product-details {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-spice-info .details-section {
    margin-bottom: 1.5rem;
}

.modal-spice-info .details-section h5 {
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.modal-spice-info .details-section ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.modal-spice-info .details-section li {
    color: var(--dark-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.modal-spice-info .btn-show-more {
    background: none;
    border: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
    margin: 1rem 0;
}

.modal-spice-info .btn-show-more:hover {
    color: var(--primary-color);
}

.modal-spice-info .btn-show-more i {
    transition: transform 0.3s ease;
}

.modal-spice-info .btn-show-more:hover i {
    transform: translateY(2px);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.modal-content {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.modal-title {
    color: var(--text-color);
    font-weight: 600;
}

.modal-body {
    color: var(--light-text);
}

/* Individual Spices Section */
.individual-spices {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--light-bg), #fff);
}

.spice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.spice-tile {
    background: var(--card2-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.spice-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.spice-tile .spice-image {
    height: 250px;
    position: relative;
}

.spice-tile .spice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.spice-tile:hover .spice-image img {
    transform: scale(1.1);
}

.spice-tile .spice-content {
    padding: 1.5rem;
    background: var(--card2-bg);
}

.spice-tile h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.spice-tile .spice-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.spice-tile .spice-rating i {
    color: #ffd700;
    font-size: 0.9rem;
}

.spice-tile p {
    font-size: 0.9rem;
    color: var(--dark-color);
    margin: 1rem 0;
    line-height: 1.5;
}

.spice-tile .spice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.spice-tile .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.btn-buy {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Spice Modal */
.spice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spice-modal.active {
    display: flex;
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .spice-showcase {
        grid-template-columns: 1fr;
    }

    .spice-image {
        height: 300px;
    }

    .spice-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .spice-tile .spice-image {
        height: 200px;
    }
}

/* Modal Content Styles */
.modal-spice-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-spice-image {
    border-radius: 10px;
    overflow: hidden;
}

.modal-spice-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    max-height: 400px;
}

.modal-spice-info {
    padding: 1rem;
}

.modal-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-ingredients,
.modal-usage {
    margin-bottom: 2rem;
}

.modal-ingredients h4,
.modal-usage h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.modal-ingredients ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.modal-ingredients li {
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.5rem;
    background: var(--light-bg);
    border-radius: 5px;
    text-align: center;
}

.modal-usage p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-spice-details {
        grid-template-columns: 1fr;
    }

    .modal-spice-image {
        height: 250px;
    }

    .modal-ingredients ul {
        grid-template-columns: 1fr;
    }
}

/* Update button styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-outline {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

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

/* Update navbar styles */
.navbar {
    background-color: var(--primary-color);
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

.navbar.scrolled {
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.navbar .container {
    padding-left: 0 !important;
}

/* Update card styles */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--card-bg);
    box-shadow: var(--box-shadow);
    height: 100%;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.card-body {
    padding: 1.5rem;
    background-color: var(--card-bg);
}

.card-title {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Update loading animation */
.loading-bar {
    border-color: var(--light-bg);
    border-top-color: var(--primary-color);
}

/* Update section backgrounds */
.bg-light {
    background-color: var(--light-bg) !important;
}

/* Update text colors */
.text-primary {
    color: var(--primary-color) !important;
}

/* Update feature icons */
.feature-icon {
    color: var(--primary-color);
}

/* Update footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
}

footer a {
    color: var(--secondary-color);
}

footer a:hover {
    color: var(--accent-color);
}

/* Update hero section */
.hero::before {
    background: linear-gradient(to right, rgba(139, 0, 0, 0.8), rgba(212, 175, 55, 0.8));
}

/* Update process steps */
.process-step .step-number {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Update team section */
.team-member img {
    border: 3px solid var(--primary-color);
}

/* Update social icons */
.social-icons a {
    color: var(--secondary-color);
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* Recipe Card Specific */
.recipe-card {
    background-color: var(--card2-bg);
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.recipe-card .card-body {
    background-color: var(--card2-bg);
    padding: 1.5rem;
}

.recipe-card .card-title {
    color: var(--text-color);
    font-weight: 600;
}

.recipe-card .card-text {
    color: var(--text-color);
    opacity: 0.9;
}

/* Contact Card Specific */
.contact-card {
    background-color: var(--card2-bg);
    border: none;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-card .card-title {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-card .form-label {
    color: var(--text-color);
    font-weight: 500;
}

.contact-card .form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    background-color: var(--white);
}

.contact-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 165, 0, 0.25);
}

/* Card Animations */
@keyframes simpleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Common Card Animation */
.card {
    opacity: 0;
    animation: simpleFadeIn 0.5s ease forwards;
}

/* Card Delays */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
