/* === ROOT VARIABLES & RESET === */
:root {
    --color-primary: #d4b257; /* Gold/Yellow */
    --color-primary-dark: #c9a86a;
    --color-secondary: #f3f3f3; /* Light Gray BG */
    --color-dark: #1a2533; /* Dark Blue */
    --color-text: #333;
    --color-text-light: #555;
    --font-main: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    background-color: #ffffff;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 15px;
    color: var(--color-text-light);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
}
.btn-secondary {
    background-color: #f4f4f4;
    color: var(--color-text);
    border: 1px solid #ddd;
}
.btn-secondary:hover {
    background-color: #eee;
}
.btn-large {
    font-size: 1.1rem;
    padding: 15px 35px;
}

/* === HEADER & NAVIGATION === */
.main-header {
    background-color: var(--color-primary);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.nav-links {
    display: flex;
}
.nav-links li {
    margin: 0 15px;
}
.nav-links a {
    color: #fff;
    font-weight: 600;
    transition: opacity 0.3s;
}
.nav-links a:hover {
    opacity: 0.8;
}
.nav-btn {
    background-color: #fff;
    color: var(--color-primary);
}
.nav-btn:hover {
    background-color: #f4f4f4;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    min-height: 60vh;
    background-image: url('../img/hero-background.jpg'); /* ADD YOUR IMAGE */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 37, 51, 0.7); /* Dark Blue Overlay */
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.hero-content h1 {
    font-size: 3rem;
}
.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.1rem;
    color: #f4f4f4;
    margin-bottom: 30px;
}

/* === ABOUT SECTION === */
.about-section {
    background-color: #fff;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-text h3 {
    color: var(--color-primary);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}
.about-cards {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}
.about-card {
    flex: 1;
    background-color: var(--color-secondary);
    padding: 20px;
    border-radius: 5px;
}
.about-card h4 {
    margin-bottom: 10px;
}
.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* === FEATURED PRODUCTS === */
.featured-section {
    background-color: var(--color-secondary);
}
.featured-section h2 {
    text-align: center;
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-image {
    height: 250px;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    margin-top: auto;
}
.product-info .btn {
    width: 100%;
    text-align: center;
}

/* === WHY CHOOSE US === */
.why-choose-section {
    background-color: #fff;
}
.why-choose-grid {
    display: grid;
    /* This is the desktop default: 2 columns */
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.why-choose-image img {
    border-radius: 8px;
}
.why-choose-content h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.why-choose-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--color-primary);
}
.why-choose-intro {
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 15px;
}
.why-choose-list {
    margin-top: 30px;
}
.why-choose-list li {
    margin-bottom: 25px;
}
.why-choose-list h4 {
    margin-bottom: 5px;
    color: var(--color-dark);
}
.why-choose-list p {
    margin-bottom: 0;
}

/* === TESTIMONIALS === */
.testimonials-section {
    background-color: var(--color-secondary);
}
.testimonials-section h2 {
    text-align: center;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}
.testimonial-card span {
    font-weight: 700;
    color: var(--color-primary);
}

/* === FOOTER === */
.main-footer {
    background-color: var(--color-dark);
    color: #b0b8c1;
    padding: 50px 0 20px;
}
.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 0.9rem;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3a4b60;
    font-size: 0.9rem;
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .nav-links, .nav-btn {
        display: none; /* Simplification for demo. Use JS for a toggle menu. */
    }

    /* About Section - Mobile */
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-text {
        order: 1; /* Text first */
    }
    .about-image {
        order: 2; /* Image second */
    }
    .about-cards {
        flex-direction: column;
    }

    /* Why Choose Us - Mobile */
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    .why-choose-content {
        order: 1; /* All text content first */
    }
    .why-choose-image {
        order: 2; /* Image after all text */
    }

    /* Testimonials - Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
/* === ANIMATION CLASSES === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    /* We use 'cubic-bezier' for a nice 'ease-out' effect.
      The '0s' delay is important. We will add a delay
      to individual staggered items if needed.
    */
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1), 
                transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1) 0s;
}

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

/* Staggered animation delays */
.product-card.fade-in:nth-child(2),
.testimonial-card.fade-in:nth-child(2) {
    transition-delay: 0.1s;
}
.product-card.fade-in:nth-child(3),
.testimonial-card.fade-in:nth-child(3) {
    transition-delay: 0.2s;
}


/* === MOBILE NAVIGATION === */
.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}
.hamburger .line {
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 6px 0;
    transition: all 0.3s ease;
}
/* === NEW MOBILE MENU === */
.mobile-nav {
    display: none; /* Hidden on desktop by default */
}

/* === MOBILE RESPONSIVENESS (Update) === */
/* === MOBILE RESPONSIVENESS (Update) === */
@media (max-width: 768px) {
    
    /* HIDE the original desktop nav and button */
    .nav-links {
        display: none;
    }
    .nav-btn {
        display: none;
    }

    /* SHOW the hamburger */
    .hamburger {
        display: block;
    }

    /* Hamburger animation (keep this as you had it) */
    .hamburger.toggle .line1 {
        transform: rotate(-45deg) translate(-7px, 7px);
    }
    .hamburger.toggle .line2 {
        opacity: 0;
    }
    .hamburger.toggle .line3 {
        transform: rotate(45deg) translate(-7px, -7px);
    }

    /* STYLES FOR THE NEW MOBILE MENU
    */
    .mobile-nav {
        display: block; /* Make it visible on mobile */
        position: fixed;
        top: 60px; /* Height of your header */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--color-dark);
        z-index: 999; /* Make sure it's on top */
        
        /* Start off-screen (to the right) */
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
    }

    /* The 'is-open' class will be toggled by JS */
    .mobile-nav.is-open {
        transform: translateX(0);
    }
    
    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
    }
    
    .mobile-nav-links li {
        margin: 20px 0;
    }
    
    .mobile-nav-links a {
        color: #fff;
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    /* Style for the 'Shop Now' button inside the mobile menu */
    .mobile-nav-links .btn {
        background-color: var(--color-primary);
        color: #fff;
    }

    /* ... keep your other mobile styles ... */
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-text { order: 1; }
    .about-image { order: 2; }
    .about-cards { flex-direction: column; }

    .why-choose-grid { grid-template-columns: 1fr; }
    .why-choose-content { order: 1; }
    .why-choose-image { order: 2; }

    .testimonials-grid { grid-template-columns: 1fr; }
}

/* === PRODUCTS PAGE === */
.products-page-section {
    padding: 60px 0;
}
.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}
.page-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
}
/* We can reuse the featured-grid and product-card styles */


/* === PRODUCT DETAIL PAGE === */
.product-detail-page {
    padding: 60px 0;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
.product-detail-image img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
}
.product-detail-info h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
}
.product-detail-price {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.product-detail-description {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}
.product-detail-variation {
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.product-detail-stock {
    margin-bottom: 25px;
}
.stock-in {
    color: #28a745;
    font-weight: 600;
}
.stock-out {
    color: #dc3545;
    font-weight: 600;
}
.product-detail-form .form-group {
    /* Ensure the form group for variation takes up space if not using flex */
    width: 100%; 
    margin-bottom: 20px;
}

.product-detail-form label {
    font-weight: 700;
    color: var(--color-dark);
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Style the actual select box */
.product-detail-form select#variationSelect {
    appearance: none; /* Hide default dropdown arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    
    width: 100%;
    padding: 12px 40px 12px 15px; /* Add padding for the custom arrow */
    font-size: 1rem;
    line-height: 1.5;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-detail-form select#variationSelect:hover {
    border-color: #ccc;
}

.product-detail-form select#variationSelect:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 178, 87, 0.2); /* Subtle glow */
}

/* Style the options within the dropdown */
.product-detail-form select#variationSelect option {
    padding: 10px;
    background-color: #fff;
    color: #333;
    font-size: 1rem;
}


/* --- QUANTITY & ADD TO CART FORM FIXES --- */

.product-detail-form {
    /* Make the form layout cleaner: Variation on top, QTY/Button on bottom */
    flex-direction: column; 
    align-items: flex-start;
    padding: 25px; /* Slightly more padding */
    border: 1px solid #eee; /* Add a subtle border */
}

.form-group-quantity {
    /* Ensure this group and the button are on the same line */
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%; /* Take full width of the container */
    margin-top: 15px;
}

.form-group-quantity input[type="number"] {
    width: 80px; /* Slightly wider input */
    padding: 12px;
}

.product-detail-form .btn {
    /* Adjust button size and placement */
    width: auto;
    padding: 12px 30px; 
    font-size: 1.1rem;
    flex-grow: 1; /* Make the button use the remaining space */
}

/* Ensure mobile stacking looks good */
@media (max-width: 500px) {
    .form-group-quantity {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .product-detail-form .btn {
        width: 100%;
        margin-top: 15px;
    }
}

/* Info sections below */
.product-detail-tabs {
    border-top: 1px solid #eee;
    padding-top: 40px;
}
.info-section {
    margin-bottom: 40px;
}
.info-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    display: inline-block;
}
.info-section p {
    line-height: 1.7;
    color: var(--color-text-light);
}

/* Product Facts Table */
.product-facts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.product-facts-table tr {
    border-bottom: 1px solid #eee;
}
.product-facts-table tr:last-child {
    border-bottom: none;
}
.product-facts-table td {
    padding: 15px 10px;
    vertical-align: top;
}
.product-facts-table td:first-child {
    font-weight: 600;
    color: var(--color-dark);
    width: 30%; /* Left column */
}
.product-facts-table td:last-child {
    color: var(--color-text-light);
    width: 70%; /* Right column */
}


/* === MOBILE STYLES for Product Detail === */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 30px;
    }
    
    .product-detail-info h1 {
        font-size: 1.8rem;
    }
    
    .product-detail-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-group-quantity {
        justify-content: space-between;
    }
    
    .form-group-quantity input[type="number"] {
        width: 100px;
    }
    
    .product-facts-table td {
        display: block;
        width: 100% !important; /* Stack table cells */
    }
    .product-facts-table td:first-child {
        padding-bottom: 5px;
    }
    .product-facts-table td:last-child {
        padding-top: 0;
        padding-left: 15px;
    }
}
/* === SCROLL TO TOP BUTTON STYLES === */
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* Ensure it is above all content, including your mobile menu */
    
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-btn:hover {
    background-color: var(--color-primary-dark);
}

/* Class to make the button visible via JavaScript */
.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Adjust for mobile screens */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* === WHATSAPP FLOATING BUTTON STYLES === */

/* Base container (Anchor tag) */
.whatsapp-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Positioned on the left */
    z-index: 1010; /* Higher than scroll-to-top button (1000) */
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    background-color: #25d366; /* WhatsApp Green */
    color: #fff;
    text-decoration: none;
    
    /* Initial state: Only the icon width is visible */
    width: 50px; 
    height: 50px;
    border-radius: 50px; /* Makes it round */
    padding: 0 10px;
    overflow: hidden; /* Hides the text initially */
    
    transition: width 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.whatsapp-float-btn:hover {
    background-color: #128c7e; /* Darker green on hover */
    /* On desktop hover, expand the width to show the text */
    width: 150px;
    /* NEW: Add padding back when expanded */
    padding: 0 10px;
}

.whatsapp-float-btn:hover .whatsapp-text {
    /* NEW: Show text when expanded */
    display: block; 
}

/* WhatsApp Icon Styling */
.whatsapp-icon {
    font-size: 1.8rem;
    flex-shrink: 0; /* Prevents the icon from shrinking */
}

/* Text Styling */
.whatsapp-text {
    /* NEW: Hide the text completely when button is closed */
    display: none; 
    
    margin-left: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap; 
}

/* === MOBILE/SMALL SCREEN ADJUSTMENTS === */
@media (max-width: 768px) {
    /* Mobile-specific fix for the "expanded" state */
    .whatsapp-float-btn {
        bottom: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
    }
    
    /* Mobile: Use JavaScript to toggle this class instead of :hover */
    .whatsapp-float-btn.active {
        width: 140px;
        background-color: #128c7e; 
        /* NEW: Add padding back when expanded on mobile */
        padding: 0 10px;
    }

    /* NEW: Show text when mobile is active */
    .whatsapp-float-btn.active .whatsapp-text {
        display: block;
    }

    .whatsapp-icon {
        font-size: 1.6rem;
    }
}

/* === TESTIMONIALS SECTION MODIFICATIONS === */

/* Modify card layout to push the author block to the bottom if needed */
.testimonial-card {
    /* Change to Flexbox to align content vertically and ensure equal card heights */
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Important for equal height in the grid */
}

/* Style for the new container holding the picture and name */
.testimonial-author {
    display: flex;
    align-items: center; /* Vertically centers text with the picture */
    margin-top: 15px; /* Adds space between quote and author info */
    padding-top: 15px;
    border-top: 1px solid var(--color-secondary); /* Optional line for separation */
}

/* Profile Picture Styling */
.testimonial-author img {
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Makes the image a circle */
    object-fit: cover; /* Ensures the image fills the area without distortion */
    margin-right: 12px;
    /* Optional: Small border */
    border: 2px solid var(--color-primary-dark);
}

/* Ensure the name is bold and clear */
.testimonial-author span {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 0.9rem;
}

/* Adjust the quote margin */
.testimonial-card p {
    margin-bottom: 10px; 
    /* Ensures the quote takes up the remaining vertical space */
    flex-grow: 1; 
}

/* === CONTACT PAGE STYLES === */

/* --- 2. Contact Info Section --- */
.contact-info-section {
    padding: 60px 0;
    color: #fff; /* White text on dark background */
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.info-item {
    padding: 20px;
    /* Optional: add a subtle background for each item */
    background-color: rgba(255, 255, 255, 0.08); 
    border-radius: 8px;
}

.info-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.info-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.info-item p,
.info-item a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
}

.info-item a:hover {
    color: var(--color-primary);
}


/* --- 3. Contact Form Section --- */
.contact-form-section {
    padding: 80px 0;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}


/* --- 4. Map Section --- */
.map-section {
    padding: 0 0 80px 0;
}

.google-map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-style: italic;
    font-size: 1.2rem;
}


/* --- Mobile Adjustments --- */
@media (max-width: 600px) {
    .form-group-half {
        grid-template-columns: 1fr; /* Stack first and last name fields */
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr; /* Stack contact details */
    }
    
    .google-map-placeholder {
        height: 300px;
    }
}

/* === FLOATING CART BUTTON === */
.cart-float-btn {
    position: fixed;
    bottom: 80px; /* Above WhatsApp button */
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 998;
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.cart-float-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-float-btn:hover {
    background-color: #000;
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545; /* Red badge */
    color: white;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

@media (max-width: 768px) {
    .cart-float-btn {
        right: 15px;
        bottom: 75px; /* Adjust based on mobile layout */
        width: 45px;
        height: 45px;
    }
}

/* === CHECKOUT PAGE STYLES === */
.checkout-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Left column wider */
    gap: 40px;
    align-items: start;
}

.checkout-form-container, .order-summary-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.checkout-form-container h2, .order-summary-box h2 {
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.phone-input-group {
    display: flex;
}

.phone-code-display {
    width: 80px;
    background-color: #eee;
    border: 1px solid #ddd;
    border-right: none;
    text-align: center;
    color: #555;
    border-radius: 4px 0 0 4px;
}

.phone-input-group input[type="tel"] {
    border-radius: 0 4px 4px 0;
    flex-grow: 1;
}

/* Checkout Table */
.checkout-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.checkout-table th, .checkout-table td {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.checkout-table td:last-child, .checkout-table th:last-child {
    text-align: right;
}

.order-total th {
    font-size: 1.2rem;
    color: var(--color-primary);
    border-top: 2px solid #ddd;
    border-bottom: none;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 25px;
}

.payment-option {
    margin-bottom: 15px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
}

.payment-option label {
    font-weight: 700;
    margin-left: 5px;
    color: var(--color-dark);
    cursor: pointer;
}

.payment-info {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    padding-left: 20px;
    display: none; /* Hidden by default, JS can toggle if needed, or use CSS sibling selector */
}

.payment-option input:checked ~ .payment-info {
    display: block;
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr; /* Stack name fields */
    }
    
    .order-summary-box {
        order: -1; /* Optional: Show summary first on mobile? Or keep at bottom. Remove this line to keep at bottom. */
    }
}

/* === CART PAGE STYLES === */
.cart-page-section {
    padding: 60px 0;
    min-height: 60vh; /* Ensure footer doesn't jump up on empty cart */
}

/* --- Empty State --- */
.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 30px;
}

.empty-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-cart-message h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* --- Cart Table --- */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    margin-bottom: 40px;
}

.cart-table th {
    background-color: var(--color-secondary);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--color-dark);
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* Product Column */
.cart-product-info {
    display: flex;
    align-items: center;
}

.cart-img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.cart-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cart-details h3 a {
    color: var(--color-dark);
}

.cart-details small {
    color: var(--color-text-light);
}

/* Quantity Column */
.qty-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-group input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.3s;
}

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

.btn-remove {
    color: #dc3545; /* Red */
    font-size: 1.1rem;
}

.btn-remove:hover {
    color: #a71d2a;
}

.cart-price, .cart-subtotal {
    font-weight: 600;
    color: var(--color-dark);
}

/* --- Cart Summary & Totals --- */
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.cart-totals-box {
    background-color: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.cart-total-row.final-total {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 10px;
}

.shipping-note {
    font-size: 0.85rem;
    color: #888;
    text-align: right;
    margin-bottom: 20px;
}

/* === MOBILE RESPONSIVENESS (Cart Table) === */
@media (max-width: 768px) {
    .cart-table thead {
        display: none; /* Hide header on mobile */
    }
    
    .cart-table tr {
        display: block;
        border-bottom: 2px solid #eee;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border: none;
    }
    
    /* Show labels via data-label attribute */
    .cart-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-text-light);
        margin-right: 15px;
    }
    
    /* Exception for Product Info (Image/Name) */
    .cart-table td.cart-product-info {
        display: flex;
        justify-content: flex-start;
    }
    .cart-table td.cart-product-info::before {
        content: none;
    }
    
    .cart-summary-row {
        flex-direction: column-reverse; /* Totals on top of 'Continue Shopping' */
        align-items: center;
    }
    
    .cart-totals-box {
        max-width: 100%;
    }
    
    .cart-actions {
        width: 100%;
        text-align: center;
    }
}

/* === CHECKOUT FORM STYLING FIXES === */

/* 1. General Input Styling (Stronger Selectors) */
.checkout-form-container input[type="text"],
.checkout-form-container input[type="email"],
.checkout-form-container input[type="tel"],
.checkout-form-container input[type="number"] {
    width: 100%;
    padding: 12px 15px; /* More padding */
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-main);
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-top: 5px; /* Space between label and input */
}

/* Focus state for inputs */
.checkout-form-container input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 178, 87, 0.1); /* Gold glow */
}

/* Label styling */
.checkout-form-container label {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.95rem;
    margin-bottom: 5px;
    display: block;
}


/* 2. Custom Searchable Dropdown Styles */
.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.select-selected {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 12px 15px;
    cursor: pointer;
    position: relative;
    margin-top: 5px;
}

/* Add an arrow icon */
.select-selected:after {
    content: "";
    position: absolute;
    top: 18px;
    right: 15px;
    border: 6px solid transparent;
    border-color: #333 transparent transparent transparent;
}

/* If dropdown is open, flip arrow */
.select-selected.select-arrow-active:after {
    border-color: transparent transparent #333 transparent;
    top: 10px;
}

.select-items {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    max-height: 300px; /* Scrollable height */
    overflow-y: auto;
}

/* The search box inside the dropdown */
.select-search {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #eee;
    outline: none;
    font-size: 0.95rem;
}

.options-list {
    max-height: 250px;
}

.option-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
}

.option-item:hover {
    background-color: var(--color-secondary);
}

.select-hide {
    display: none;
}

/* Styles for the success page */
    .success-section {
        padding: 60px 0;
        background-color: #f9f9f9;
        min-height: 70vh;
    }
    .success-container {
        max-width: 800px;
        margin: 0 auto;
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.07);
        padding: 40px;
        text-align: center;
    }
    .success-icon {
        font-size: 60px;
        color: #28a745;
        margin-bottom: 20px;
    }
    .success-container h1 {
        font-size: 2.5rem;
        color: #333;
        margin-bottom: 15px;
    }
    .success-container p {
        font-size: 1.1rem;
        color: #555;
        margin-bottom: 30px;
    }

    /* Order Summary Box */
    .order-summary-box {
        background-color: #fdfdfd;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 25px;
        text-align: left;
        margin-bottom: 30px;
    }
    .order-summary-box h2 {
        font-size: 1.5rem;
        color: #333;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }
    .summary-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .summary-list li {
        display: flex;
        justify-content: space-between;
        font-size: 1rem;
        color: #555;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .summary-list li:last-child {
        border-bottom: none;
    }
    .summary-list li strong {
        color: #333;
        font-weight: 600;
    }
    .summary-list li span {
        font-weight: 500;
    }

    /* Order Details Table */
    .order-details-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 30px;
        text-align: left;
    }
    .order-details-table th,
    .order-details-table td {
        padding: 15px;
        border: 1px solid #eee;
        font-size: 0.95rem;
    }
    .order-details-table th {
        background-color: #f7f7f7;
        font-weight: 600;
    }
    .order-details-table td {
        color: #555;
    }
    .product-name {
        font-weight: 600;
        color: #333;
    }

    /* Billing Address */
    .billing-address-box {
        text-align: left;
        background-color: #fdfdfd;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 25px;
    }
    .billing-address-box h3 {
        font-size: 1.4rem;
        color: #333;
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }
    .billing-address-box address {
        font-style: normal;
        line-height: 1.7;
        color: #555;
    }

    .continue-shopping-btn {
        display: inline-block;
        margin-top: 30px;
        padding: 12px 30px;
        background-color: #007bff;
        color: #fff;
        text-decoration: none;
        border-radius: 5px;
        font-weight: 600;
        transition: background-color 0.3s ease;
    }
    .continue-shopping-btn:hover {
        background-color: #0056b3;
    }

    /* --- Add this to the bottom of your style.css --- */

/* Language Selector (Shared Styles) */
.language-selector {
    display: flex;
    align-items: center;
    margin: 0 15px; /* Spacing for desktop */
}

.lang-btn {
    color: #333; /* Your standard text color */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    padding: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-btn:hover {
    color: #007bff; /* Your primary color */
}

/* This class will be added by JS to show the current language */
.lang-btn.active {
    color: #007bff; /* Your primary color */
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lang-divider {
    color: #ccc;
    margin: 0 5px;
    font-size: 0.9em;
}

/* Mobile Nav Specific */
.mobile-lang-header {
    padding: 10px 20px 0;
    color: #999;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Adjustments for mobile-nav context */
.mobile-nav .language-selector {
    padding: 5px 20px 10px; /* Add some padding in the menu */
    margin: 0;
    justify-content: flex-start;
}

/* Hide desktop selector on mobile */
@media (max-width: 768px) {
    #desktopLangSelector {
        display: none;
    }
}

/* --- Add this to the BOTTOM of your style.css --- */

/* * Force-hides the Google Translate top banner.
 */

/* This hides the <iframe> element */
iframe.goog-te-banner-frame {
    display: none !important;
}

/* This hides the container div for the <iframe> */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

/* * This is the MOST IMPORTANT part.
 * Google's script adds an inline style: "top: 40px !important;"
 * We must override it.
*/
body {
    top: 0px !important;
}