html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* This prevents the "side-scrolling" or shifting issue */
}

* {
    box-sizing: border-box; /* Ensures padding doesn't add to width */
}

/* --- 1. Global Variables & Reset --- */
:root {
    --primary-blue: #003366;
    --accent-gold: #D4AF37;
    --whatsapp-green: #25D366;
    --light-gray: #f9f9f9;
    --text-dark: #333;
    --white: #ffffff;
    --stock-green: #22863a;
    --out-red: #cb2431;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-gray);
}

/* --- 2. Top Contact Bar --- */
.contact-bar {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    display: flex;
    justify-content: space-between;
    padding: 10px 5%;
    font-size: 0.85rem;
    font-weight: bold;
}

@media (max-width: 600px) {
    .contact-bar {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

/* --- Header & Navigation Fix --- */
header {
    background-color: #4F0A0D;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

nav {
    display: flex;
    flex-direction: column; /* Stacks Logo, Tagline, and Nav */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo-container {
    text-align: center;
    width: 100%;
}

.tagline {
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 5px;
    letter-spacing: 1px;
    opacity: 0.9;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin-top: 15px; /* Creates the little space before nav icons */
    padding: 0;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

nav ul li a:hover {
    color: var(--accent-gold);

}
nav ul li a:active {
    color: var(--accent-gold);

}

/* --- Responsive Adjustments for Mobile --- */
@media (max-width: 600px) {
    .logo {
        font-size: 1.1rem; /* Shrinks slightly to fit smaller phone screens */
    }
    
    nav ul {
        gap: 15px; /* Tighter gap for small screens */
    }
}

/* --- Desktop Layout (Optional: if you want it to revert on PC) --- */
@media (min-width: 850px) {
    nav {
        flex-direction: row; /* Keeps it side-by-side on computers */
        justify-content: space-between;
    }
    .logo-container {
        text-align: left;
        width: auto;
    }
    nav ul {
        margin-top: 0;
    }
}

/* --- Balanced Header Styles --- */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensures logos stay on edges */
    width: 100%;
    max-width: 100vw; /* Prevents overflow */
    padding: 5px 10px;
    box-sizing: border-box; /* Includes padding in width calculation */
}

.header-logo {
    height: clamp(50px, 8vw, 100px); /* Logos shrink on smaller phones */
    width: auto;
    flex-shrink: 0; /* Prevents logos from getting squashed */
}

.logo-container {
    flex: 1; /* Takes up the middle space */
    text-align: center;
    min-width: 0; /* Important for text-wrapping/shrinking */
}

.logo {
    font-size: clamp(0.95rem, 4vw, 1.9rem); /* Magically scales text based on screen size */
    font-weight: 650;
    color: var(--accent-gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Adds "..." if it absolutely won't fit */
    letter-spacing: 2px;
    font-style: bold;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 3vw, 30px);
    width: 100%;
    padding: 5px 0;
    
}

.tagline {
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-style: italic;
    letter-spacing: 1px;
}

/* --- Mobile Fix --- */

/* --- Optimized Mobile Header for Small Screens --- */
@media (max-width: 900px) {
    
    .header-main {
        flex-direction: column; /* Stacks Logo on top of Name */
        align-items: center;
        gap: 10px; /* Space between logo and text */
        padding: 15px 10px;
    }

    .header-logo {
        height: 100px; /* Forces a large, visible size */
        width: auto;
        margin-bottom: 5px;
    }

    .logo-container {
        text-align: center;
        width: 100%;
    }

    .logo {
        font-size: 1.6rem; /* Keeps the brand name bold and big */
        font-weight: 650;
        color: var(--accent-gold);
        
        /* THE CRITICAL CHANGE: */
        white-space: normal; /* Allows text to wrap to 2 lines so it doesn't squash the logo */
        line-height: 1.2;
        display: block;
    }

    .tagline {
        font-size: 0.8rem;
        margin-top: 4px;
        display: block;
    }

    /* Keep Navigation Icons clean at the bottom */
    .nav-links {
        gap: 15px;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.1); /* Subtle separator */
    }
}

/* --- New Hero Slider Section --- */
.hero-slider-section {
    height: 75vh;
    width: 100%;
    position: relative;
    overflow: hidden; /* Hides the images outside the frame */
    
}

/* The Sliding Track */
.hero-track {
    display: flex;
    width: 400%; /* Enough room for 4 images side-by-side */
    height: 100%;
    animation: heroSlide 20s linear infinite;
}

.hero-slide {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures photos fill the area without stretching */
}

/* THE LIGHT OVERLAY: Creates the opacity you asked for */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Very light tint just to make the button stand out slightly */
    background: rgba(0, 0, 0, 0.2); 
    display: flex;
    align-items: flex-end; /* Pushes content to the bottom */
    justify-content: center;
    padding-bottom: 50px; /* Space from the bottom edge */
    z-index: 2;
}

.hero-btn-container {
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--white); /* White text looks better on a darker overlay */
    margin-bottom: 20px;
    /* This shadow ensures the text is readable on any background */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.dealer-text {
    margin-top: 25px;
    font-weight: bold;
    color: var(--white);
    font-size: 1.1rem;
    /* Darker background for the text bubble */
    background: rgba(0, 51, 102, 0.7); 
    /* background: #4F0A0D; */
    padding: 12px 20px;
    display: inline-block;
    border-radius: 30px;
    border: 1px solid var(--accent-gold);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #4F0A0D;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: var(--white);
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .hero-overlay {
        padding-bottom: 30px; /* Closer to bottom on phones */
    }
    .btn-primary {
        padding: 12px 30px;
        font-size: 0.9rem;
         color: #4F0A0D;
    }
}

/* THE ANIMATION: Moves from 0 to 75% then resets */
@keyframes heroSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-75%); }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 600px) {
    .hero-slider-section {
        height: 60vh; /* Shorter on mobile */
    }
    
    .hero-content h1 {
        font-size: 1.8rem; /* Smaller text to fit phones */
        padding: 0 10px;
    }

    .dealer-text {
        font-size: 0.9rem;
        margin-top: 15px;
    }
}

/* --- 5. Products Section & Filters --- */
#products {
    padding: 20px 5%;
    background-color: var(--light-gray);
}

.filter-container {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #4F0A0D;
    background: transparent;
    color: #4F0A0D;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- 2. THE MOBILE FIX (2-Column Grid) --- */
@media (max-width: 600px) {
    /* Forces exactly 2 columns side-by-side */
    .product-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; /* Tighter gap so items stay large enough */
        padding: 10px;
    }
}
/* --- All variables and resets are correct as you sent them --- */

.card {
    position: relative; 
    background: var(--white);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;  
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.badge-container {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 100; 
}

.status-badge {
    font-size: 0.6rem;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-in { background-color: #e6ffed; color: var(--stock-green); border: 1px solid var(--stock-green); }
.status-out { background-color: #fff5f5; color: var(--out-red); border: 1px solid var(--out-red); }

.card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-top: 10px;
    margin-bottom: 10px;
}

.brand-tag {
    background: rgba(212, 175, 55, 0.7);
    color: #4F0A0D;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}
/* Remaining CSS remains the same... */

.card h3 {
        font-size: 0.9rem; /* Smaller text to prevent overlapping */
        line-height: 1.2;
        margin-bottom: 5px;
        min-height: 2.4em; /* Keeps titles aligned even if one is longer */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .brand-tag {
        font-size: 0.65rem;
        padding: 2px 6px;
        margin-bottom: 5px;
    }
    .whatsapp-btn {
        padding: 6px;
        font-size: 0.8rem;
        border-radius: 1px;
    }

.category-text {
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
    font-size: 0.75rem;
}

.card button {
    background-color: var(--whatsapp-green);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    font-size: 1rem;
    transition: background 0.3s;
}

.card button:hover {
    background-color: #1ebe54;
}

/* --- 7. Contact & Map --- */
#contact {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 850px) {
    .contact-container { grid-template-columns: 1fr; }
}

/* --- 8. Footer --- */
footer {
    background-color: #4F0A0D;
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
}
.btn-insta {
    display: inline-block;
    margin-top: 20px;
    color: #E1306C;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #E1306C;
    padding: 10px 20px;
    border-radius: 5px;
}
.btn-primary {
    background-color: var(--accent-gold);
    color: #4F0A0D;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: transform 0.3s, background 0.3s;
    display: inline-block;
}
.btn-primary:hover {
    transform: scale(1.05);
    background-color: #e5be47;
}
.section-header {

    text-align: center;

    margin-bottom: 50px;

}



.section-header h2 {

    font-size: 2.2rem;

    color: #4F0A0D;

    margin-bottom: 10px;

}
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding-bottom: 20px;
}

.page-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #4F0A0D;
    background: white;
    color: #4F0A0D;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn.active {
    background: #4F0A0D;
    color: var(--accent-gold);
    border-color: #4F0A0D;
}

.page-btn:hover:not(.active) {
    background: var(--light-gray);
    transform: translateY(-3px);
}

/* --- Trust Section Styling --- */
.trust-section {
    padding: 60px 5%;
    background-color: #fffdf5; /* Very light gold tint for the background */
    border-top: 3px solid var(--accent-gold);
    border-bottom: 3px solid var(--accent-gold);
    margin: 20px 0; /* Adds a bit of space above and below the borders */
}

.trust-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trust-item h3 {
    color: #4F0A0D;
    margin: 15px 0 10px;
    font-size: 1.2rem;
}

.trust-item p {
    color: #666;
    font-size: 0.9rem;
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
}

/* --- Google Review CTA Styling --- */
/* --- Updated Google Review CTA with Golden Borders --- */
.review-cta {
    background-color: #fffdf5;
    color: #4F0A0D;
    padding: 60px 5%;
    text-align: center;
    font-weight: 700;
    
    
    /* Matching Golden Borders */
    border-top: 3px solid var(--accent-gold);
    border-bottom: 3px solid var(--accent-gold);
    
    /* Adds a little separation from the sections above and below */
    margin-top: 10px; 
}

.review-content h2 {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-review {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--accent-gold);
    color: #4F0A0D;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-review:hover {
    background-color: var(--accent-gold);
    color: #4F0A0D;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}


/* --- Floating WhatsApp Button --- */
/* --- Floating WhatsApp Button (Middle-Right Position) --- */
/* --- Floating WhatsApp Button (Enhanced for Mobile) --- */
.whatsapp-float {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 2000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-content {
    background-color: var(--whatsapp-green);
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 30px 0 0 30px;
    box-shadow: -4px 4px 15px rgba(0,0,0,0.3);
    border: 2px solid var(--white);
    border-right: none;
    /* This animation makes it hard to miss */
    animation: pulse-green 2s infinite; 
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-text {
    color: white;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1rem;
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
}

/* --- MOBILE SPECIFIC FIX --- */
@media (max-width: 600px) {
    .whatsapp-float {
        /* Move it slightly lower than exact middle so it doesn't block main text */
        top: 60%; 
    }
    
    .whatsapp-content {
        padding: 15px; /* Bigger touch area for thumbs */
        border-radius: 40px 0 0 40px;
    }

    .whatsapp-text {
        display: inline-block; /* Keep the text visible even on mobile! */
        font-size: 0.9rem;
    }

    .whatsapp-float img {
        width: 35px; /* Much larger icon */
        height: 35px;
    }
}


/*Proposed new CSS (conceptual) */

.filter-card {
    /* Styles for the premium square card */
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    background: white;
}

.filter-card:hover, .filter-card.active {
    border-color: var(--accent-gold); /* Highlight on click */
}


/* Individual Card Styling */
.filter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 15px;
    background: white;
    border: 4px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-card img {
    width: 60px;           /* Standard size for category icons */
    height: 60px;          /* Keeps them perfectly square */
    object-fit: contain;   /* Prevents the image from stretching or looking squashed */
    margin-bottom: 8px;    /* Space between the icon and the text below it */
    display: block;        /* Ensures proper centering */
}
/* Mobile Tweak: Make icons slightly smaller on phones so more fit in the frame */
@media (max-width: 600px) {
    .filter-card img {
        width: 60px;
        height: 60px;
    }
    
    .filter-card {
        min-width: 80px;   /* Shrink the card width for mobile */
        padding: 10px;
    }
}

.filter-card span {
    font-size: 0.85rem;
    font-weight: bold;
    color: #4F0A0D;
}

.filter-card.active {
    border-color: var(--accent-gold);
    background: #fffdf5;
}



/* 1. The Container: This allows the horizontal swipe */
.filter-carousel {
    width: 100%;
    overflow-x: auto; /* This is the "Magic" line for swiping */
    padding: 15px 0;
    background: #fff;
    /* This makes the swiping feel "snappy" and smooth on iPhones/Androids */
    -webkit-overflow-scrolling: touch; 
    /* Hides the ugly scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

/* 2. Hide Scrollbar for Chrome/Safari */
.filter-carousel::-webkit-scrollbar {
    display: none;
}

/* 3. The Track: This keeps all buttons in a single long row */
.filter-track {
    display: flex;
    gap: 12px;
    width: max-content; /* Ensures it stays as wide as all buttons combined */
    padding: 0 20px; /* Adds a little "breathing room" at the start and end */
}




/* --- Hot Deals Mini-Carousel --- */


.deals-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.deal-card {
    min-width: 160px; /* Small enough to see the next card peaking in */
    max-width: 160px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #eee;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.deal-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--accent-gold);
    color: #4F0A0D;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}

.deal-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin: 5px 0;
    /* background-color: white; */
}

.deal-card h4 {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-claim {
    display: block;
    font-size: 0.75rem;
    background: #4F0A0D;
    color: white;
    text-decoration: none;
    padding: 6px;
    border-radius: 6px;
    font-weight: bold;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* The track for Hot Deals */
.deals-track {
    display: flex;
    gap: 15px;
    width: max-content; 
    animation: scrollDeals 15s linear infinite;
}

/* Pause when the user touches or hovers over a deal */
.deals-track:hover, 
.deals-track:active {
    animation-play-state: paused;
}

/* THE ANIMATION ENGINE */
@keyframes scrollDeals {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves half the distance (the first set) */
}

/* Ensure the container hides the overflow */
.deals-container {
    overflow: hidden;
    width: 100%;
    background: #fff;
}



.deals-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 0 20px; /* This pushes the dot and text away from the side */
    font-size: 1rem;
}

.pulse-icon {
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    flex-shrink: 0; /* Prevents the dot from getting flattened */
    animation: pulse-red 1.5s infinite;
}


.back-to-top {
    position: fixed;
    bottom: 95px; /* Sits exactly above the WhatsApp bubble */
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #4F0A0D;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold); /* Adds a premium gold rim */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Modern "pop" effect */
    
    /* Initial Hidden State */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5); /* Starts small */
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1); /* Pops into full size */
}

/* Add a hover effect for desktop users */
.back-to-top:hover {
    background-color: var(--accent-gold);
    color: #4F0A0D;
    transform: translateY(-5px); /* Jumps up slightly when hovered */
}