/* --- Professional Color Palette & Fonts --- */
:root {
    --deep-maroon: #5D101D; /* Rich Indian traditional color */
    --gold: #C5A059;
    --leaf-green: #2D5A27;
    --soft-cream: #FFFDF9;
    --dark-text: #2C2C2C;
}

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

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

/* --- Navigation Fix (Prevents 'Shattered' Text) --- */
header {
    background: #fff;
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    flex: 0 0 180px; /* Gives the logo a fixed, safe area */
}

.site-logo {
    width: 100%;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--deep-maroon);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

/* --- Hero Banner Improvements --- */


.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 4rem); /* Responsive text size */
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* --- Product Section Styling --- */
.product-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--deep-maroon);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 10px auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.2);
}

.product-image-wrapper {
    width: 100%;
    height: 280px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole product is visible without cropping */
    background: #fdfdfd;
}

/* --- Footer Fix (Unformatted Text Fix) --- */
footer {
    background: var(--deep-maroon);
    color: #fff;
    padding: 60px 5% 20px;
    text-align: center;
    border-top: 5px solid var(--gold);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-content p {
    margin: 10px 0;
    font-size: 1rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 15px;
        font-size: 0.8rem;
    }
    
    .hero {
        height: 50vh;
    }
}

/* --- Product Info Decoration --- */
.product-info {
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 1. Highlighted Product Name */
.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--deep-maroon);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 2. Smaller Sized Product Details */
.product-details {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 20px;
    height: 3em; /* Limits to 2 lines for uniform look */
    overflow: hidden;
}

/* 3. WhatsApp Button Styling */
.wa-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366; /* Official WhatsApp Green */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.wa-order-btn:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.wa-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1); /* Makes the icon white */
}
/* --- Product Frame Decoration --- */
.product-card-frame {
    background: #ffffff;
    border: 1px solid #e0e0e0; /* The Frame */
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-card-frame:hover {
    border-color: var(--gold); /* Frame turns gold on hover */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* --- WhatsApp Icon Size Fix --- */
.wa-btn-icon {
    width: 20px !important; /* Forces the icon to be small */
    height: 20px !important;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

/* --- Button with Solid Background --- */
.wa-order-btn {
    background-color: #25D366; /* WhatsApp Green Background */
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    border: none;
    transition: background 0.3s;
}

.wa-order-btn:hover {
    background-color: #128C7E;
    color: #ffffff;
}

/* --- Image Scaling within Frame --- */
.product-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps the whole product visible in the frame */
}
/* --- Hero Banner Fixes --- */
/* --- New Hero Section with Light Professional Background --- */
.hero-light {
    height: 60vh;
    /* Soft gradient: Sandalwood Cream to White */
    background: linear-gradient(135deg, #FFF9F0 0%, #a7368961 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #F0E6D2; /* Subtle divider */
    position: relative;
    overflow: hidden;
}

/* Optional: Add a subtle decorative pattern in the background */
.hero-light::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.03; /* Very faint */
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

/* Typography Adjustments for Light Background */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 6vw, 4rem);
    color: var(--deep-maroon); /* Darker text for visibility on light bg */
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--leaf-green); /* Professional green for organic feel */
    margin-bottom: 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Button remains prominent */
.shop-now-btn {
    background-color: var(--gold);
    color: #FFFFFF;
    padding: 16px 40px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px; /* More professional rectangular look */
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.shop-now-btn:hover {
    background-color: var(--deep-maroon);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 16, 29, 0.2);
}

/* Typography Styling */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 4rem);
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--gold); /* Uses your brand gold for contrast */
    margin-bottom: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Shop Now Button Styling */
.shop-now-btn {
    background-color: var(--gold);
    color: #FFFFFF;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid var(--gold);
}

.shop-now-btn:hover {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-3px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-overlay {
        padding: 20px;
        width: 90%;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
}
/* --- About Us Section Styling --- */
.about-section {
    padding: 80px 5%;
    background-color: #ffffff;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap; /* Makes it responsive for mobile */
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--gold); /* Traditional accent shadow */
}

.about-text {
    flex: 1.2;
    min-width: 300px;
}

.section-title-left {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--deep-maroon);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.trust-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.icon-item {
    background: var(--soft-cream);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--deep-green);
    border: 1px solid var(--gold);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-image img {
        box-shadow: 10px 10px 0px var(--gold);
    }
}
/* --- Testimonials Styling --- */
.testimonials-section {
    padding: 80px 5%;
    background-color: var(--soft-cream);
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--gold);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.feedback {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.customer-name {
    font-family: 'Playfair Display', serif;
    color: var(--deep-maroon);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.stars {
    color: var(--gold);
    font-size: 0.9rem;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Hero Title Visibility Fix --- */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 6vw, 4rem);
    
    /* Strong Professional Contrast */
    color: #3d0a13; /* A very deep maroon/brown for readability */
    
    margin-bottom: 15px;
    font-weight: 800; /* Extra bold for visibility */
    
    /* Subtle shadow to define the text against light backgrounds */
    text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.1); 
    
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    
    /* Using the deep green for the sub-text */
    color: #1e3d1a; 
    
    margin-bottom: 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}
/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.float-icon {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1); /* Makes SVG white */
}

/* --- Professional Footer Formatting --- */
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.footer-contact h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    margin-bottom: 15px;
}

.footer-contact p {
    margin: 8px 0;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Mobile Fix for Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
/* Badge for Kj-000 ID */
.product-id-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--deep-maroon);
    color: white;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.product-card-frame {
    position: relative; /* Essential for badge positioning */
    /* ... existing frame styles ... */
}

/* Styling for 'Know More' */
.know-more-link {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.know-more-link:hover {
    color: var(--deep-maroon);
    text-decoration: underline;
}

.product-short-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

/* Sidebar and Layout Fixes */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}
.submit-btn {
    background: #5D101D;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}
.submit-btn:hover { background: #3d0a13; }
.action-btn {
    padding: 5px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    color: white;
}
.action-btn.edit { background: #27ae60; }
.action-btn.delete { background: #e74c3c; }
.cancel-link { margin-left: 15px; color: #777; font-size: 0.9rem; }
/* --- Modal Background --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

/* --- Animation --- */
.animate-pop {
    animation: modalPop 0.3s ease-out;
}
@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 1000px;
    border-radius: 15px;
    position: relative;
}

.modal-body { display: flex; gap: 30px; }

/* --- Gallery & Navigation --- */
.modal-gallery { flex: 1; text-align: center; }
.main-display { position: relative; height: 350px; background: #f9f9f9; border-radius: 10px; }
.main-display img { height: 100%; object-fit: contain; cursor: zoom-in; }

.nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.2); color: white; border: none;
    padding: 10px; cursor: pointer; font-size: 20px;
}
.prev { left: 0; } .next { right: 0; }

/* --- Scrollable Text --- */
.modal-info { flex: 1; display: flex; flex-direction: column; max-height: 450px; }
.scrollable-text {
    overflow-y: auto;
    margin: 20px 0;
    padding-right: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

/* --- Enlarged Image Viewer --- */
.image-viewer {
    display: none; position: fixed; z-index: 3000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); justify-content: center; align-items: center;
}
.image-viewer img { max-width: 90%; max-height: 90%; border: 3px solid #fff; }
/* --- Mobile Optimization (under 768px) --- */
@media (max-width: 768px) {
    /* Modal Fixes */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    .modal-body {
        flex-direction: column; /* Stack image on top of text */
        gap: 20px;
    }
    .main-display {
        height: 250px; /* Shorter for mobile screens */
    }
    .modal-info {
        max-height: none; /* Let it grow with content */
    }
    .modal-title {
        font-size: 1.6rem !important;
    }

    /* About Section Fixes */
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    /* Grid Adjustments */
    .product-grid {
        grid-template-columns: 1fr; /* Single column on small phones */
    }
}