 :root {
    /* Main Colors */
    --color-primary: #E60000;
    --color-secondary: #000000;
    --color-supporting: #FFFFFF;
    
    /* RGB values for transparent overlays */
    --color-primary-rgb: 230, 0, 0;
    --color-secondary-rgb: 0, 0, 0;
    --color-supporting-rgb: 255, 255, 255;

    /* Accent Colors */
    --color-accent-light: #F2F2F2;
    --color-accent-dark: #808080;
}
 
/* --- Base Styles --- */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--color-secondary);
    line-height: 1.6;
    background-color: var(--color-supporting);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* --- Top Bar (Red Strip) --- */
.top-bar {
    background-color: var(--color-primary);
    color: var(--color-supporting);
    text-align: center;
    padding: 0.2px 0;
    font-size: 0.8rem;
    position: relative;
        overflow: hidden; /* Hide content when height shrinks/transforms */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;    


}
 body.scrolled .top-bar {
    /* Option A: Slide it up and off screen */
    transform: translateY(-100%); 
    opacity: 0;
    /* You may need to set height to 0 if transform causes layout issues */
    /* height: 0; */ 
}

/* ----------------------------- */
/* --- HERO SECTION STYLES --- */
/* ----------------------------- */
.hero-section {
     background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 70vh;
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    position: relative;
    text-align: center;
}


.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--color-secondary-rgb), 0.5); /* Black overlay */
}

.hero-content {
    color: var(--color-supporting);
    z-index: 1;
    max-width: 500px;
    padding-left: 0; /* Ensures centering works */
    text-align: center;
}

.hero-content .subtitle {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    padding: 5px 15px;
    border: 1px solid rgba(var(--color-supporting-rgb), 0.5);
    display: inline-block;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0 30px 0;
    line-height: 1.1;
   }

.shop-button {
    background-color: var(--color-primary);
    color: var(--color-supporting);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.shop-button:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}



 /* ------------------------------------------- */
/* --- Mobile Layout (Max Width: 768px) --- */
/* ------------------------------------------- */
@media (max-width: 768px) {
    
 

/* 2. Reduce Text Sizes */
.hero-content {
    /* Content width remains at 90% */
    max-width: 80%; 
 }

.hero-content .subtitle {
    /* Further reduced font size for subtitle */
    font-size: 0.7rem;    
    padding: 2px 8px; /* Reduced vertical padding */
    margin-bottom: 3px; /* Reduced margin */
}

.hero-content h1 {
    /* Significantly reduced font size for main heading (as requested) */
    font-size: 1.4rem;    
    margin: 3px 0 15px 0; /* Reduced margins */
}
.shop-button {
        /* *** REDUCED SIZE FOR SHOP BUTTON *** */
        /* Original: padding: 8px 18px; font-size: 0.85rem; */
        padding: 6px 15px; /* Reduced padding (makes button smaller) */
        font-size: 0.55rem; /* Reduced font size (makes text smaller) */
    }
    
}



/* --- NEW SLIDER CONTAINER STYLES --- */
.hero-slider-container {
    /* Ensures relative positioning for navigation dots */
    position: relative;
    overflow: hidden; /* Crucial: Hides slides that are off-screen */
    width: 100%;
}

.hero-slider {
    /* Set all slides horizontally */
    display: flex;
    /* Disable all wrapping */
    flex-wrap: nowrap;
    /* Transition for the sliding movement */
    transition: transform 0.8s ease-in-out;
    /* Start at 0 */
    transform: translateX(0);
}

/* --- INDIVIDUAL SLIDE STYLES (Use existing .hero-section content styles) --- */
.hero-section.slide {
    /* Essential: Each slide must be 100% of the parent container width */
    flex: 0 0 100%;
    /* Restore the height and background properties */
    height: 70vh; /* Restore original height */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    /* Ensure the overlay is inside the slide */
    overflow: hidden;
}


 /* ----------------------------- */
/* --- SLIDER DOTS STYLES --- */
/* ----------------------------- */
.slider-dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%); 
    z-index: 2; /* Above the hero content */
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.slider-dot.active {
    background-color: var(--color-primary); /* Red color for active dot */
    transform: scale(1.8);
}

@media (max-width: 768px) {
 
    /* 1. Reduce Slider Height */
    .hero-section.slide {
        /* Align with the previous .hero-section height for mobile */
        /* Previous value was 35vh for a very compact look */
        height: 35vh; 
    }

    /* 2. Adjust Slider Dots Position */
    .slider-dots-container {
        /* Move the dots closer to the bottom edge of the slide */
        bottom: 10px; /* Reduced from 20px */
            gap: 7px;

    }

    /* 3. Reduce Dot Size (Optional, but aligns with overall reduction) */
    .slider-dot {
        width: 8px; /* Reduced from 10px */
        height: 8px; /* Reduced from 10px */
    }
    
    /* 4. Ensure the content inside the slide also uses the smaller mobile font sizes */
    /* Note: These styles rely on your previous CSS for .hero-content, .subtitle, h1, and .shop-button 
       being applied correctly within the .hero-section.slide (since it has the same classes). 
       The styles below are a reminder/repetition of what should already be applied to the content: */
    
    .hero-content .subtitle {
        font-size: 0.7rem; 
    }
    .hero-content h1 {
        font-size: 1.1rem; 
        margin-top: 10px;
    }
    .shop-button {
        padding: 5px 13px;
        font-size: 0.52rem;
    }
    
}
/* -------------------------------------- */
/* --- NEW: SLIDER ARROW STYLES --- */
/* -------------------------------------- */
.slider-arrow {
    position: absolute;
    top: 50%;
    /* Pull up to truly center the icon vertically */
    transform: translateY(-50%);
    z-index: 3; /* Ensure arrows are above the content (z-index 1) and dots (z-index 2) */
    
    /* Styling */
    background: rgba(var(--color-secondary-rgb), 0.3); /* Semi-transparent black */
    color: var(--color-supporting); /* White icon */
    border: none;
    padding: 15px 10px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.slider-arrow:hover {
    background-color: var(--color-primary); /* Red hover effect */
}

/* Positioning the arrows */
.slider-arrow.prev {
    left: 0;
    /* Round corners only on the outer edge */
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.slider-arrow.next {
    right: 0;
    /* Round corners only on the outer edge */
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

/* --- Mobile Adjustments for Arrows --- */
@media (max-width: 768px) {
    .slider-arrow {
        /* Make arrows smaller on mobile */
        padding: 8px 5px;
        font-size: 1rem;
    }
}




/* --- NEW SLIDER CONTAINER STYLES --- */
.hero-slider-container {
    /* Ensures relative positioning for navigation dots */
    position: relative;
    overflow: hidden; /* Crucial: Hides slides that are off-screen */
    width: 100%;
}

.hero-slider {
    /* Set all slides horizontally */
    display: flex;
    /* Disable all wrapping */
    flex-wrap: nowrap;
    /* Transition for the sliding movement */
    transition: transform 0.8s ease-in-out;
    /* Start at 0 */
    transform: translateX(0);
}

/* --- INDIVIDUAL SLIDE STYLES (Use existing .hero-section content styles) --- */
.hero-section.slide {
    /* Essential: Each slide must be 100% of the parent container width */
    flex: 0 0 100%;
    /* Restore the height and background properties */
    height: 70vh; /* Restore original height */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    /* Ensure the overlay is inside the slide */
    overflow: hidden;
}
 

/* ------------------------------------------- */
/* --- Mobile Layout (Max Width: 768px) --- */
/* ------------------------------------------- */
@media (max-width: 768px) {
    /* ... (Previous mobile styles for navigation, header, etc. go here) ... */

    /* -------------------------------------- */
    /* --- SLIDER-SPECIFIC MOBILE FIXES --- */
    /* -------------------------------------- */

    /* 1. Reduce Slider Height */
    .hero-section.slide {
        /* Align with the previous .hero-section height for mobile */
        /* Previous value was 35vh for a very compact look */
        height: 35vh; 
    }

    /* 2. Adjust Slider Dots Position */
    .slider-dots-container {
        /* Move the dots closer to the bottom edge of the slide */
        bottom: 10px; /* Reduced from 20px */
    }

    /* 3. Reduce Dot Size (Optional, but aligns with overall reduction) */
    .slider-dot {
        width: 8px; /* Reduced from 10px */
        height: 8px; /* Reduced from 10px */
    }
    
    /* 4. Ensure the content inside the slide also uses the smaller mobile font sizes */
    /* Note: These styles rely on your previous CSS for .hero-content, .subtitle, h1, and .shop-button 
       being applied correctly within the .hero-section.slide (since it has the same classes). 
       The styles below are a reminder/repetition of what should already be applied to the content: */
    
    .hero-content .subtitle {
        font-size: 0.7rem; 
    }
    .hero-content h1 {
        font-size: 1.1rem; 
        margin-top: 10px;
    }
    .shop-button {
        padding: 5px 13px;
        font-size: 0.52rem;
    }
    
}



/* --------------------------------------------------- */
/* --- NEW: CATEGORY OFFERS SECTION STYLES --- */
/* --------------------------------------------------- */
.category-offers-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 50px 30px; /* Top/bottom padding, matches header side padding */
    background-color: var(--color-supporting);
}

.category-card {
    flex: 1 1 30%; /* Allows cards to grow/shrink but maintain a 30% width base */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(var(--color-secondary-rgb), 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--color-secondary-rgb), 0.2);
}

.category-card img {
    width: 100%;
    height: 350px;
    object-fit: cover; /* Ensures the images cover the card area */
    display: block;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05); /* Zoom effect on hover */
}

/* --- Offer Overlay (Red Banner) --- */
.offer-overlay {
    position: absolute;
    top: 20px;
    left: 0;
    background-color: var(--color-primary); /* Red background */
    color: var(--color-supporting); /* White text */
    padding: 8px 15px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    z-index: 10;
    /* Creating the slight angled cutout look */
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

/* --- Product Title Bar --- */
.product-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(var(--color-secondary-rgb), 0.7); /* Semi-transparent black */
    color: var(--color-supporting); /* White text */
    padding: 15px 10px;
    text-align: center;
}

.product-title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}
/* --- Responsive Adjustments for Mobile --- */
@media (max-width: 768px) {
    .category-offers-section {
        /* FIX 1: Change to row direction and allow horizontal scrolling */
        flex-direction: row; 
        flex-wrap: nowrap; /* Keep all items in a single row */
        overflow-x: auto; /* Enable horizontal scrolling */
        -webkit-overflow-scrolling: touch; /* Improves scroll smoothness on iOS */
        
        /* You might want to remove space-between so items stick together better */
        justify-content: flex-start; /* Aligns cards to the start */
        
        padding: 30px 15px;
        gap: 15px;
    }

    .category-card {
        /* FIX 2: Give cards a fixed minimum width so they don't shrink too small */
        flex: 0 0 70%; /* Prevents shrinking (0 0) and sets a base width (70% of container) */
        /* You can adjust 70% to show more or less of the next card */
        min-height: 200px;
    }
    
    /* ... (rest of your existing mobile styles remain) ... */

    .offer-overlay {
        font-size: 0.8rem;
        padding: 5px 10px;
        top: 10px;
    }.category-card img {
     height: 100%;
 }


    .product-title {
        padding: 10px 5px;
    }

    .product-title h3 {
        font-size: 1rem;
    }
}


/* --------------------------------------------------- */
/* --- FLOATING UTILITY BUTTONS (Click-to-Open) --- */
/* --------------------------------------------------- */
 
/* Define a global variable if you haven't already */
:root {
    /* Example color variables - adjust these to match your theme */
    --color-primary: #007bff; /* Example: Blue */
    --color-secondary: #333; /* Example: Dark Gray */
    --color-supporting: #fff; /* Example: White (for the icon) */
}

 

 
/* --------------------------------------------------- */
/* --- NEW ARRIVALS & PRODUCT CARD STYLES --- */
/* --------------------------------------------------- */

.new-arrivals-section {
    padding: 60px 30px; /* Standard section padding */
    position: relative;
}

/* Ensure content is centered and contained */
.container {
    max-width: 1100px; /* Max width for content */
    margin: 0 auto;
    /* Important for containing the product grid and slider buttons */
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: -10px;
}


/* --- Product Grid/Slider Layout (Core Fix) --- */
.product-grid {
    display: flex; /* Use flexbox for horizontal sliding */
    overflow-x: scroll; /* Allow horizontal scrolling */
    scroll-snap-type: x mandatory; /* Snap scrolling to each item */
    -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
    gap: 30px;
    padding-bottom: 20px; /* Space for scrollbar or shadow */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.product-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* --- Individual Product Card Styling --- */

/* Base Card Width (PC Mode: 4 cards visible) */
.product-card {
    /* KEY FIX: Define a fixed width using flex-shrink/grow = 0, so 4 cards fit with the 30px gap */
    /* Calculation: (100% / 4) - (30px * 3 / 4) = 25% - 22.5px */
    flex: 0 0 calc((100% / 4) - 22.5px); 
    
    background-color: var(--color-supporting); /* White background */
    border-radius: 0px;
    overflow: hidden;
    /* Use flex column to stack image, info, and actions */
    display: flex; 
    flex-direction: column;
    transition: box-shadow 0.3s;
    position: relative;
    scroll-snap-align: start; /* Snap the beginning of the card to the container start */
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-primary); /* Red background */
    color: var(--color-supporting); /* White text */
    padding: 8px 10px;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1;
    z-index: 10;
}

.product-info {
    padding: 15px;
    /* Use flex-grow to take up available space between image and fixed action bar */
    flex-grow: 1; 
    text-align: center;
}

.product-name {
    font-size: 1rem;
    font-weight: 550;
    line-height: 1.3;
    margin: 0 0 8px 0;
    min-height: 1.2em;
}

.product-rating {
    color: #FFC107;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.product-rating .rating-value {
    color: var(--color-accent-dark);
    font-size: 0.8rem;
    margin-left: 5px;
}

/* --- PRICE STYLES --- */
.product-prices {
    display: flex;
    justify-content: center;
    align-items: baseline; /* Align prices along the baseline */
    gap: 8px; /* Space between old and new price */
    margin: 0; 
}

.old-price {
    font-size: 0.9rem; 
    font-weight: 400; 
    color: var(--color-accent-dark); 
    opacity: 0.7; 
}

.old-price del {
    display: inline;
}

.new-price {
    font-size: 1.1rem; 
    font-weight: 600; 
    color: var(--color-primary); 
    margin: 0; 
}

.product-price { 
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}
/* --- END PRICE STYLES --- */


.product-actions {
    display: flex;
    /* Common styles: positioned absolutely within .product-card */
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    
    /* PC: Start position right below the image container (280px high) */
    top: 250px; /* Changed from 250px to 280px to match .product-image-container height */
    
    /* Initially hidden and shifted up by its own height to prepare for slide-up/down effect */
    opacity: 0;
    transform: translateY(-100%); 
    transition: opacity 0.3s ease, transform 0.3s ease;
    
    background-color: var(--color-supporting);
    z-index: 10; 
    border-radius: 0; /* Should be 8px for the full action bar */
}

/* On hover, slide the product actions down to its natural position (top: 280px) */
.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0); /* Slides down to cover the product info */
}

 
 


/* --- Slide Buttons Positioning and Styling --- */
.slider-btn {
    position: absolute;
    /* Adjusted top position to roughly center within the product cards' height */
    top: 50%; 
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-accent-light);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slider-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-supporting);
}

.slider-btn-prev {
    left: -20px; 
}

.slider-btn-next {
    right: -20px; 
}


/* --------------------------------------------------- */
/* --- MOBILE RESPONSIVENESS (2 products per row) --- */
/* --------------------------------------------------- */
@media (max-width: 768px) {
    .new-arrivals-section {
        padding: 40px 15px;
    }
 
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .product-grid {
        gap: 15px;
    }
    
    /* Mobile Card Width (KEY FIX: 2 cards visible) */
    .product-card {
        /* Calculation: (100% / 2) - (15px * 1 / 2) = 50% - 7.5px */
        flex: 0 0 calc((100% / 2) - 7.5px); 
        min-height: auto;
    }

    .product-image-container {
        height: 180px;
    }

    .product-name {
        font-size: 0.85rem;
        min-height: 1.8rem;
    }

    /* Adjust price font size for mobile */
    .product-price,
    .new-price {
        font-size: 0.9rem;
    }
    .old-price {
        font-size: 0.75rem;
    }

    /* FIX: Mobile/Tablet actions - make them permanently visible and place them at the bottom */
    .product-actions {
        /* *** KEY CHANGE 1: Override PC absolute positioning and make it visible *** */
        position: static; 
        order: 3; /* Use flexbox 'order' property to push it to the bottom */
        opacity: 1; /* Make visible */
        transform: translateY(0); /* Reset transform */
        border-radius: 0 0 8px 8px;
        border-top: 1px solid var(--color-accent-light);
    }
    
    .product-info {
        order: 2; 
    }
    
    .product-image-container {
        order: 1;
    }

    .add-to-cart-btn {
        padding: 6px 4px;
        font-size: 0.65rem;
        border-radius: 0 0 0 8px; /* Apply bottom-left radius for mobile */
    }

    .wishlist-btn,
    .quickview-btn {
        width: 30px;
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    .quickview-btn {
        border-radius: 0 0 8px 0; /* Apply bottom-right radius for mobile */
    }

    .slider-btn {
         top: 40%; 

    width: 30px;
    height: 30px;
   
}

    /* Adjust slider buttons to be inside the viewable area */
    .slider-btn-prev {
        left: 0; 
    }

    .slider-btn-next {
        right: 0;
    }
}

.product-filters {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif; /* Proper quotes and fallback */
}

.filter-tab {
    background: none;
    border: none;
    padding: 8px 15px;
    margin: 0 5px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-accent-dark); /* Default text color */
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.filter-tab:hover {
    color: var(--color-primary); /* Hover color */
}

/* Active Tab Indicator */
.filter-tab.active {
    color: var(--color-primary);
    font-weight: 600;
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15%;
    right: 15%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
}
 /* Media query for screens smaller than 600px (e.g., most phones) */
@media (max-width: 600px) {
    
    .product-filters {
        /* Reduce overall margin/padding if needed */
        margin-bottom: 20px;
    }
    
    .filter-tab {
        /* Reduce padding for narrower tabs */
        padding: 6px 10px; 
        /* Reduce font size for smaller screens */
        font-size: 0.9rem; 
        /* Use a slightly larger margin to prevent crowding */
        margin: 5px 3px;
    }

   
}

/* --------------------------------------------------- */
/* --- NEW: FEATURE VIDEO & GUARANTEE SECTION --- */
/* --------------------------------------------------- */

.feature-video-section {
    padding: 0 30px; /* Standard horizontal padding */
    padding-top: 50px;
    background-color: var(--color-accent-light); /* Light gray background for separation */
}

/* --- 1. Video Banner Styles (The main image/CTA area) --- */
.video-banner-container {
    height: 400px; /* Fixed height for the banner */
    background-image: url('placeholder-kitchen-video.jpg'); /* Placeholder image */
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 50px; /* Space between video and features */
    overflow: hidden;
}

/* Dark Overlay for contrast */
.video-banner-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--color-secondary-rgb), 0.4); /* Darker overlay for text contrast */
}

.video-content {
    color: var(--color-supporting); /* White text */
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-cta h2 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.video-cta h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 -10px 0;
}

.play-button-icon {
    /* Use a large icon for the play button */
    font-size: 6rem; 
    color: var(--color-supporting);
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.play-button-icon:hover {
    color: var(--color-primary); /* Red hover effect */
    transform: scale(1.1);
}

/* Secondary CTA Button (e.g., Get a Plumber) */
.secondary-cta-btn {
    background-color: var(--color-primary);
    color: var(--color-supporting);
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 10px;
    display: inline-block;
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.secondary-cta-btn:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}


/* --- 2. Guarantee Features Styles --- */
.guarantee-features {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 60px; /* Ensures section bottom padding */
}

.feature-card {
    flex: 1; /* Equal width for all cards */
    text-align: center;
    padding: 20px 10px;
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--color-primary); /* Red icon color */
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--color-secondary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-accent-dark);
    line-height: 1.4;
    margin: 0;
}

/* --- Mobile Adjustments (Max Width: 768px) --- */
@media (max-width: 768px) {
    .feature-video-section {
        padding: 0 15px;
        padding-top: 30px;
    }

    .video-banner-container {
        height: 180px; /* Reduced height on mobile */
        margin-bottom: 30px;
    }
.video-cta h2 {
    /* Reduced from 1rem to 0.75rem */
    font-size: 0.75rem; 
    /* Reduced from 1px to 0.5px */
    letter-spacing: 0.5px; 
    margin-top: -5px;
 }

.video-cta h1 {
    /* Reduced from 1.8rem to 1.2rem */
    font-size: 1.2rem; 
    margin-bottom: -5px;
}

.play-button-icon {
    /* Reduced from 3rem to 1.5rem */
    font-size: 3rem; /* Much smaller play icon */
}

.secondary-cta-btn {
    /* Reduced padding */
    padding: 5px 10px; 
    /* Reduced from 0.85rem to 0.75rem */
    font-size: 0.65rem; 
    /* Reduced margin-top */
    margin-top: -3px; 
}
/* Stack features vertically on mobile and reduce sizes */
.guarantee-features {
    /* Reduced padding-bottom for smaller vertical space */
    padding-bottom: 20px; 
    
    /* Reduced gap between stacked features */
    gap: 10px; 
    
    flex-direction: column;
}

.feature-icon i {
    /* Reduced icon size */
    font-size: 1.5rem; 
}

.feature-card {
    /* Reduced heading size */
    h3 { 
        font-size: 0.9rem; 
    }
    
    /* Reduced paragraph text size */
    p { 
        font-size: 0.7rem; 
    }
}
}


/* --------------------------------------------------- */
/* --- DEAL OF THE WEEK SPECIFIC STYLES --- */
/* --------------------------------------------------- */
.main-section-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 30px;
        color: var(--color-primary); /* Assuming a red/accent color */

}

 
/* --- Countdown Timer Styling --- */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    /* REDUCED: Smaller padding for the overall container */
    padding: 6px 10px; 
    background-color: #f7f7f7; /* Light background for the timer */
    border-top: 1px solid var(--color-accent-light);
    border-bottom: 1px solid var(--color-accent-light);
    /* REDUCED: Smaller gap between items */
    gap: 8px; 
}

.countdown-timer .timer-label {
    /* REDUCED: Smaller font size */
    font-size: 0.75rem; 
    font-weight: 500;
    color: var(--color-accent-dark);
    margin-right: 3px; /* Reduced margin */
}

.countdown-timer .time-value {
    /* Style for the actual time numbers (00d, 00h, etc.) */
    /* REDUCED: Smaller font size */
    font-size: 0.9rem; 
    font-weight: 600;
    color: var(--color-primary); /* Red color for urgency */
    /* REDUCED: Smaller inner padding */
    background-color: var(--color-supporting); /* White background for the time block */
    padding: 1px 3px;
    border-radius: 4px;
    line-height: 1;
    /* REDUCED: Smaller minimum width */
    min-width: 30px; 
    text-align: center;
    /* Optional: make time blocks visually distinct */
    border: 1px solid var(--color-primary);
}

/* Ensure the product info and actions remain below the timer */
.deal-of-the-week-section .product-card {
    /* Reset order if you use flex 'order' in the base card */
    display: flex;
    flex-direction: column; 
}

/* Override mobile layout to ensure timer is between image and info */
@media (max-width: 768px) {
    
    /* 1. Target the Timer Container for overall sizing and layout */
    .product-card .countdown-timer {
        order: 2; /* Place timer below image (order 1) */
        padding: 3px 6px; 
        gap: 4px;
        /* NEW: Set a consistent, small font size for the whole timer */
        font-size: 0.7rem; 
        /* NEW: Center the content for cleaner horizontal alignment */
        justify-content: center; 
    }
    .deal-of-the-week-section {
        padding: 40px 15px;
    }
.main-section-title {
        margin-top: -5px;
 
}
    /* 2. Target the Timer Label ("Ends in:") */
    .deal-of-the-week-section .countdown-timer .timer-label {
        /* Adjusted from 0.6rem to inherit/0.7rem for consistency, 
           or use 0.6rem if you prefer it smaller than the time values */
        font-size: 0.6rem;
         /* NEW: Ensure label doesn't take up excessive space */
        line-height: 1.2; 
    }

    /* 3. Target the Time Values (00d, 00h, etc.) */
    .deal-of-the-week-section .countdown-timer .time-value {
        /* Adjusted from 0.7rem to match container font or slightly larger */
        font-size: 0.5rem; 
        /* Further reduced min-width for time blocks */
        min-width: 18px; 
        /* Further reduced inner padding for time values */
        padding: 0 1px; 
        font-weight: 600;
        /* NEW: Remove margin for tight packing (if margin was present) */
        margin: 0; 
        /* NEW: Ensure text is centered within the narrow block */
        text-align: center;
    }
    
    /* Ensure the product info still sits below the timer */
    .deal-of-the-week-section .product-card .product-info {
        order: 3; /* Place product info below timer */
        padding-top: 8px; 
    }
}



/* --------------------------------------------------- */
/* --- NEW: SERVICES PROMOTION SECTION STYLES --- */
/* --------------------------------------------------- */
.plumbing-promo-section {
    padding: 60px 0; /* Padding applied here instead of the container */
    background-color: var(--color-accent-light); /* Light grey background */
}

.plumbing-promo-section .promo-container {
    /* Set up the 3-column layout on desktop */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 0 30px; /* Use standard side padding for alignment */
}

/* --- Image Columns --- */
.promo-image-left,
.promo-image-right {
    /* Fixed width for desktop to balance the content */
    flex: 0 0 30%;
    overflow: hidden;
    height: 450px; /* Fixed height for visual consistency */
    position: relative;
 }

.promo-image-left img,
.promo-image-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Content Column --- */
.promo-content {
    flex: 1 1 40%; /* Takes up slightly more space than the images */
    text-align: center;
    max-width: 500px;
}

.promo-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary); /* Highlight the main heading in red */
    margin-bottom: 20px;
    line-height: 1.2;
}

.promo-copy {
    font-size: 1rem;
    color: var(--color-secondary);
    margin-bottom: 30px;
    padding: 0 10px;
}
 

/* ------------------------------------- */
/* --- Responsive Adjustments (Mobile) --- */
/* ------------------------------------- */
@media (max-width: 768px) {
    .plumbing-promo-section {
        padding: 30px 0;
    }
    
    .plumbing-promo-section .promo-container {
        /* Stack elements vertically on mobile */
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    .promo-image-left,
    .promo-image-right {
        /* Images span full width, reduced height */
        flex: 1 1 100%;
        width: 100%;
        height: 250px; 
    }

    /* Order change for better flow on mobile: Image 1, Content, Image 2 */
    .promo-image-left {
        order: 1;
    }
    .promo-content {
        order: 2;
        padding: 0 10px;
    }
    .promo-image-right {
        order: 3;
    }

    .promo-heading {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .promo-copy {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}



/* --------------------------------------------------- */
/* --- UPDATED REVIEW/TESTIMONIALS SECTION STYLES --- */
/* --------------------------------------------------- */

.review-section {
    padding: 60px 30px;
    background-color: var(--color-supporting); /* White background */
}
 @media (max-width: 767px) {
    .review-section .section-title {
        font-size: 1.2rem; /* Smaller size for mobile screens */
        
    }
}
/* Ensure the slider wrapper is responsive and hides off-screen content */
.review-slider-container {
    position: relative;
    overflow: hidden;
    margin: 30px auto;
    max-width: 950px; /* Wider container to match the image spacing */
    border: 1px solid var(--color-accent-light); /* Subtle border around the slider */
    padding: 20px 0; /* Add vertical padding for visual spacing */
}

.review-slider {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out; 
    transform: translateX(0);
}

/* --- Review Card Styles (Each slide) --- */
.review-card {
    /* KEY: Each card takes up 100% of the container width */
    flex: 0 0 100%;
    
    background-color: var(--color-supporting); /* Card interior is white */
    padding: 40px;
    display: flex; /* Use flex to align image and text side-by-side */
    align-items: flex-start; /* Align items to the top (image and text block) */
    gap: 30px;
    margin-left: -20px;
}

/* --- Reviewer Avatar (Circular Image) --- */
.reviewer-avatar {
    flex-shrink: 0; /* Prevents the avatar from shrinking */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    /* Optional: Add a subtle shadow */
    box-shadow: 0 4px 10px rgba(var(--color-secondary-rgb), 0.1);
}

.reviewer-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
 }

/* --- Review Text Details --- */
.review-details {
    flex-grow: 1; /* Allows the text area to fill the remaining space */
    text-align: left; /* Align text to the left as shown in the image */
}

.review-rating.star-display {
    color: #FFC107; /* Gold/Yellow for stars */
    font-size: 1.2rem;
    margin-bottom: 10px;
    /* Ensure stars are left-aligned */
    text-align: left;
}

.review-text {
    font-size: 1rem;
    font-style: normal; /* Remove italic */
    color: var(--color-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.reviewer-name {
    font-weight: 700;
    color: #E60000; /* Use a distinct blue for the name, matching the image */
    font-size: 0.95rem;
    margin-top: 15px;
    margin-bottom: 0px;
    text-transform: uppercase;
}

.reviewer-title {
    font-size: 0.85rem;
    color: var(--color-accent-dark);
    margin: 0;
}

 /* Positioning the arrows right next to the review card border */
.review-slider-container .slider-arrow {
    position: absolute;
    top: 90%;
    transform: translateY(-50%);
    z-index: 10;
    
    background: var(--color-supporting); /* White background for the circle */
    border: 1px solid var(--color-accent-dark);
    border-radius: 50%;
    
    width: 40px; /* Size the button */
    height: 40px;
    line-height: 40px;
    padding: 0;
    
    font-size: 1.2rem;
    color: var(--color-accent-dark);
    box-shadow: 0 2px 5px rgba(var(--color-secondary-rgb), 0.1);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.review-slider-container .slider-arrow:hover {
    background-color: var(--color-primary);
    color: var(--color-supporting);
    border-color: var(--color-primary);
}

.review-prev-arrow {
    left: 10px; /* Position close to the edge */
}
.review-next-arrow {
    right: 10px; /* Position close to the edge */
}


/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    .review-section {
        padding: 40px 15px;
    }
    
    .review-slider-container {
        max-width: 100%;
        padding: 10px 0;
        
    }
    
    .review-card {
        flex-direction: column; /* Stack vertically */
        align-items: center; /* Center everything */
        padding: 30px 20px;
    }
    
    .reviewer-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .review-details {
        text-align: center; /* Center text details on mobile */
    }
    
    .review-rating.star-display {
        text-align: center;
    }

    .review-text {
        font-size: 0.95rem;
    }
    
    .review-slider-container .slider-arrow {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 1rem;
        top: 95%;
        transform: translateY(-50%);
    }
    
    .review-prev-arrow {
        left: 100px;
    }
    .review-next-arrow {
        right: 100px;
    }
}


/* --------------------------------------------------- */
/* --- NEW: PROMOTIONAL BANNERS SECTION STYLES --- */
/* --------------------------------------------------- */

.promotional-banners {
    /* Standard padding or use a container class if you have one */
    padding: 50px 30px; 
    display: flex;
    justify-content: center;
    gap: 30px; /* Space between the two banner cards */
    max-width: 1200px; /* Optional: Align with your main content width */
    margin: 0 auto;
}

.banner-card {
    flex: 1; /* Both cards take equal width */
    height: 350px; /* Fixed height for visual consistency */
    position: relative;
    overflow: hidden;
    color: var(--color-supporting); /* White text over image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(var(--color-secondary-rgb), 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.banner-card:hover {
    box-shadow: 0 8px 25px rgba(var(--color-secondary-rgb), 0.2);
    transform: translateY(-2px);
}

/* --- Content Styling & Overlay --- */
.banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Subtle dark overlay to ensure text readability */
    background: rgba(var(--color-secondary-rgb), 0.4); 
}

.banner-card .content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 1; /* Keep content above the overlay */
    text-align: left;
    max-width: 70%;
}

.banner-card .discount {
    display: inline-block;
    background-color: var(--color-primary); /* Red highlight */
    padding: 5px 10px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 3px;
}

.banner-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* --------------------------------------------------- */
/* --- MOBILE MODE (Banners Stack) --- */
/* --------------------------------------------------- */

@media (max-width: 768px) {
    .promotional-banners {
         flex-direction: column; 
         margin-top: -50px;
        padding: 30px 20px; /* Adjust padding for smaller screens */
        gap: 20px; /* Slightly less space between stacked cards */
    }

    .banner-card {
        /* When stacking, the cards should take the full available width */
        flex: none; 
        width: 100%;
        /* A slightly smaller height for better mobile viewing */
        height: 180px; 
    }

    .banner-card .content {
        /* Center content or adjust for smaller width */
        left: 20px; 
        max-width: 90%; 
    }

    .banner-card h2 {
        /* Reduce font size for smaller screens */
        font-size: 1.5rem; 
        margin-bottom: 15px;
    }

    .banner-card .discount {
        /* Adjust padding for smaller highlight */
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}
  





/* --------------------------------------------------- */
/* --- NEW: PARTNER BRAND SECTION STYLES --- */
/* --------------------------------------------------- */

.partner-brand-section {
    padding: 40px 30px; /* Reduced padding from 60px to 40px */
    background-color: var(--color-accent-light); /* Light background for contrast */
    text-align: center;
}

/* Ensure content is centered and contained */
.partner-brand-section .container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative; /* For positioning potential arrows */
}

.brand-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-secondary);
}


/* --- Brand Grid/Slider Layout (Horizontal Scrolling) --- */
.brand-grid {
    display: flex;
    overflow-x: scroll; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Snap scrolling to each item */
    -webkit-overflow-scrolling: touch;
    gap: 20px; /* Slightly less gap than products */
    padding-bottom: 5px; 
    
    /* *** ADDITION FOR SMOOTH AUTO-SCROLLING *** */
    scroll-behavior: smooth; 
    
    /* Hide scrollbar for a cleaner look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.brand-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* --- Individual Brand Card Styling --- */
.brand-card {
    /* Desktop: Show 6 brands at once with 20px gap */
    /* Calculation: (100% / 6) - (20px * 5 / 6) ≈ 16.66% - 16.66px */
    flex: 0 0 calc((100% / 6) - 16.66px); 
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    height: 100px; /* Fixed height for consistent presentation */
        
    transition: transform 0.3s, opacity 0.3s;
    cursor: pointer;
    
    scroll-snap-align: start;
}

.brand-card:hover {
    transform: scale(1.05);
    opacity: 0.9;
 }

.brand-card img {
    max-width: 80%;
    max-height: 70%;
    height: auto;
    width: auto;
    object-fit: contain; /* Ensure logo is contained without cropping */
    filter: grayscale(100%); /* Optional: Display logos in grayscale */
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
}

.brand-card:hover img {
    filter: grayscale(0%); /* Show color on hover */
    opacity: 1;
}


/* --- Mobile Adjustments (Max Width: 768px) --- */
@media (max-width: 768px) {
    .partner-brand-section {
        padding: 30px 15px;
    }
    .brand-section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    .brand-card {
        /* Mobile: Show 3 brands at once */
        /* Calculation: (100% / 3) - (20px * 2 / 3) ≈ 33.33% - 13.33px */
        flex: 0 0 calc((100% / 3) - 13.33px);
        height: 80px;
    }
}




/* --- NEW: SHARE MODAL STYLES --- */

/* Overlay - hides the modal and dims the background */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* Hide by default */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of other content */
}

/* Modal Box */
.share-modal {
    background-color: var(--color-supporting, #fff);
    border-radius: 0px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-accent-light, #eee);
    padding-bottom: 10px;
}
.modal-header h3 {
    margin: 0;
    font-weight: 700;
    color: var(--color-secondary, #333);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-accent-dark, #666);
    line-height: 1;
}

/* Social Icons */
.modal-social-icons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.modal-social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-accent-light, #f6f6f6);
    color: var(--color-secondary, #333);
    font-size: 1.1rem;
    transition: background-color 0.2s, color 0.2s;
}
.modal-social-icons a:hover {
    background-color: var(--color-primary);
    color: var(--color-supporting, #fff);
}

/* Link Copy Box */
.modal-link-copy {
    display: flex;
    border: 1px solid var(--color-accent-dark, #aaa);
    border-radius: 0px;
    overflow: hidden;
}
#productLinkInput {
    flex-grow: 1;
    border: none;
    padding: 10px;
    font-size: 0.9rem;
    background-color: var(--color-supporting, #fff);
    color: var(--color-secondary, #333);
    cursor: text;
}
.copy-btn {
    background-color: var(--color-primary);
    color: var(--color-supporting, #fff);
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.copy-btn:hover {
    background-color: var(--color-secondary, #333);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .modal-social-icons {
        /* Allow icons to wrap if space is too tight */
        flex-wrap: wrap; 
        gap: 10px;
        justify-content: center;
    }

   .share-modal {
        /* This ensures there's a 15px gap between the edge of the screen and the modal box */
        margin: 0 20px; 
        /* The width: 90%; from the desktop style will now respect this margin */
        width: auto; /* Reset width to automatically fit content/margin */
    }

}









 
































 
         .product-page-container {
            max-width: 1200px;
            margin: 40px auto 80px auto;
            padding: 0 30px;
            margin-top: 0;
            padding-top: 0;
        }

        .page-header-container {
            background-color: #f6f6f6ff;
            padding: 40px 30px; 
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .breadcrumb {
            font-size: 0.9rem;
            color: var(--color-accent-dark);
            margin-bottom: 0;
        }

        .breadcrumb a {
            color: var(--color-accent-dark);
            transition: color 0.2s;
        }

        .breadcrumb a:hover {
            color: var(--color-primary);
        }

        .current-page {
            font-weight: 600;
            color: var(--color-secondary);
        }

        /* --- Mobile Responsiveness Adjustments for Breadcrumb --- */
        @media (max-width: 768px) {
            .page-header-container {
                padding: 15px 15px;
            }
            .product-page-container {
         
        padding: 0 10px; /* Adjust this value to control side gap */
        
        /* Remove or reduce the top margin (currently `margin: 40px auto 80px auto;` on desktop) */
        margin-top: 0; 
    }
        }
 

        .product-info {
            display: flex;
            gap: 40px;
            margin-bottom: 50px;
        }

        /* 1. Gallery Column (Left) */
        .product-gallery {
            flex: 1 1 50%;
            /* border: 1px solid var(--color-accent-light); */
            border-radius: 0px;
            overflow: hidden;
            max-width: 50%;
        }

            .main-image {
            width: 100%;
            height: 500px;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: var(--color-accent-light);
            margin-bottom: 10px;
            /* Key for animation: prevent overflow from showing elements outside */
            position: relative; 
             cursor: crosshair; /* Indicates a tool/precision action */
    
    /* IMPORTANT: Set to visible so the zoom result box can be placed outside */
    /* If you want the zoom box to stay inside the image area, use: overflow: hidden; */
    overflow: hidden; 
        }
 
/* The element that shows the zoomed-in portion */
#zoom-result {
    position: absolute;
    border: 1px solid #d4d4d4;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

    /* Set the size and location of the zoom window */
    width: 400px; /* Example size */
    height: 400px; /* Example size */
    
    /* Position it outside to the right of the main image */
    right: -410px; /* Adjusted to be 10px outside the 400px width */
    top: 0;

    z-index: 99; /* Ensure it stays above other elements */
    display: none; /* Hide by default */
    background-repeat: no-repeat;
    background-color: white; /* Prevent transparent background */
    
    /* Add a slight border radius for style */
    border-radius: 2px;
}

/* Hide the result box on smaller screens */
@media (max-width: 1024px) {
    #zoom-result {
        display: none !important; 
    }
}
            .main-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 0px;
            transition: opacity 0.3s ease, transform 0.3s ease;
            will-change: opacity, transform;
        }
        
        /* Class added by JS to start the animation */
        .main-image img.slide-in {
            animation: slideInFromRight 0.3s ease-out;
        }

        /* Define the animation */
        @keyframes slideInFromRight {
            0% {
                transform: translateX(10%); /* Start slightly off-screen to the right */
                opacity: 0;
            }
            100% {
                transform: translateX(0); /* End at normal position */
                opacity: 1;
            }
        }
        /* NEW: Thumbnail Gallery Styles */
        .thumbnail-gallery {
            display: flex;
            gap: 10px;
            /* margin-top: 10px; REMOVED, as it's now a sibling */
            overflow-x: auto;
            padding-bottom: 5px;
        }

        .thumbnail {
            width: 80px;
            height: 80px;
            object-fit: cover;
            cursor: pointer;
            border: 2px solid transparent;
            transition: border-color 0.2s, opacity 0.2s;
            border-radius: 0px;
            opacity: 0.8;
            flex-shrink: 0;
        }

        .thumbnail:hover {
            opacity: 1;
            border-color: var(--color-accent-dark);
        }

      .thumbnail.active-thumb {
            border-color: var(--color-primary);
            opacity: 1;
            /* Increase the size of the active thumbnail */
            width: 100px; /* New desired width */
            height: 100px; /* New desired height */
            /* Add a transition for the size change for a smoother effect (optional) */
            transition: all 0.3s ease-in-out;
        }

        /* 2. Details Column (Right) */
        .product-details {
            flex: 1 1 50%;
            padding-left: 10px;
        }

        .product-name {
            font-size: 1.8rem;
            font-weight: 700;
            margin: 0 0 10px 0;
            line-height: 1.1;
            color: var(--color-secondary);
        }

        .product-brand {
            font-size: 1rem;
            color: var(--color-accent-dark);
            margin: 0 0 0 0;
        }
        .product-brand span {
            font-weight: 600;
            color: var(--color-secondary);
        }

        /* Rating */
        .product-rating-summary {
            margin-bottom: 10px;
         }

        .rating-stars i {
            color: #FFC107;
            font-size: 1.1rem;
        }

        .rating-review-count {
            font-size: 0.9rem;
            color: var(--color-accent-dark);
            margin-left: 5px;
        }

        @media (max-width: 767px) {
            .product-name {
                margin: 0 0 5px 0; /* Reduced gap after product name */
            }
             .product-brand {
            font-size: 0.8rem;
            color: var(--color-accent-dark);
            margin: 0 0 0 0;
        }

            .product-rating-summary {
                margin-bottom: 5px; /* Reduced gap after rating summary */
            }
            .product-brand {
                
                    margin-bottom: -15px;
                }
        }
        .separator {
            border: 0;
            height: 1px;
            background-color: var(--color-accent-light);
            margin: 25px 0;
        }

        /* Container to center all content */
.pricing-stock-container {
    display: flex; /* Use flexbox for vertical stacking and centering */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
}

/* Price container - adjust gap/alignment */
.product-prices-big {
    display: flex;
    align-items: baseline;
    gap: 15px;
    /* Optional: Ensure the price group itself doesn't stretch */
    justify-content: center; 
}

/* Discount Badge - No changes needed to existing styles, but listed for completeness */
.discount-badge-big {
    background-color: var(--color-primary);
    color: var(--color-supporting);
    padding: 5px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Old Price - No changes needed to existing styles */
.old-price-big {
    font-size: 1.3rem;
    color: var(--color-accent-dark);
    text-decoration: line-through;
    opacity: 0.7;
}

/* New Price - No changes needed to existing styles */
.new-price-big {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Stock Info - Will be centered by the parent container's align-items: center */
.stock-info {
    font-size: 1rem;
    font-weight: 600;
    color: #28a745;
    margin-top: 5px; /* Add a small vertical space below prices */
}
.stock-info i {
    margin-right: 5px;
}

        .short-description {
            font-size: 1rem;
            color: var(--color-secondary);
            line-height: 1.5;
            margin-bottom: 20px;
        }

        /* Urgency Block */
        .urgency-block {
            background-color: var(--color-accent-light);
            padding: 15px;
            border-radius: 0px;
            margin-bottom: 0px;
         }

        .urgency-text {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--color-secondary);
            margin: 0 0 0px 0;
        }
        .urgency-text i {
            color: var(--color-primary);
            margin-right: 8px;
        }
 
 
/* Style for the icon and its color */
.urgency-text i {
    color: var(--color-primary);
    margin-right: 8px;
    /* Apply the animation to the icon */
    animation: fire-flicker 1.5s infinite alternate;
    display: inline-block; /* Essential for transform to work */
}

/* Keyframes for the 'fire-flicker' animation */
@keyframes fire-flicker {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        text-shadow: 0 0 2px var(--color-primary); /* Subtle glow */
    }
    33% {
        transform: scale(1.05) rotate(1deg);
        opacity: 0.95;
    }
    66% {
        transform: scale(0.98) rotate(-1deg);
        opacity: 1;
        text-shadow: 0 0 4px var(--color-primary); /* Stronger glow */
    }
    100% {
        transform: scale(1.03) rotate(0deg);
        opacity: 0.9;
    }
}
        .countdown-timer {
            font-size: 0.9rem;
            color: var(--color-accent-dark);
            font-weight: 600;
        }
        .countdown-timer i {
            color: var(--color-primary);
            margin-right: 8px;
        }
        .timer-value {
            color: var(--color-primary);
        }/* --- Mobile Responsiveness (Reduced Size) --- */
@media (max-width: 600px) {
    .urgency-block {
        padding: 10px;
    }.thumbnail.active-thumb {
        width: 60px; /* Reduced active size for mobile (still bigger than default) */
        height: 60px;
    }

    /* Grouping text and timer for margin reduction, then setting individual font sizes */
    .urgency-text,
    .countdown-timer {
        margin: 0 0 0px 0; /* Apply reduced margin to both text and timer elements */
    }

   

    .urgency-text {
        font-size: 0.8rem;
    }

    .countdown-timer {
        font-size: 0.8rem;
    }
}

        /* Quantity Selector */
        .product-actions-group {
            display: flex;
            gap: 15px;
            align-items: center;
            margin-bottom: 15px;
        }

        .quantity-selector {
            display: flex;
            border: 1px solid var(--color-accent-dark);
            border-radius: 0px;
            overflow: hidden;
            background-color: var(--color-accent-light);

        }

        .qty-btn {
            background: none;
            border: none;
            color: var(--color-secondary);
            padding: 10px 15px;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .qty-btn:hover {
            background-color: var(--color-accent-light);
        }

        /* Container to use Flexbox for alignment */
        .quantity-selector {
            display: flex;
            align-items: center; /* Vertically centers all items */
            justify-content: center; /* Centers the whole group horizontally (optional) */
            border: 1px solid #ccc; /* Example border for the whole group */
            border-radius: 0px; /* Optional rounding for the group */
            width: fit-content; /* Makes the container only as wide as its content */
        }

        /* Styling for the buttons (minus and plus) */
        .qty-btn {
            /* Base styling */
            background-color: transparent;
            border: none;
            cursor: pointer;
            font-size: 1.1rem;
            padding: 10px 12px;
            height: 100%; /* Ensures button height matches container height */
            
            /* Separator line between input and button (Optional) */
            border-left: 1px solid #ccc; 
            border-right: 1px solid #ccc;
        }

        /* Specific styling for the input field to remove borders and align text */
        .qty-input {
            width: 60px;
            text-align: center;
            border: none; /* Crucial for clean integration with the buttons */
            font-size: 1.3rem;
            font-weight: 500;
            color: var(--color-secondary);
            padding: 10px 0;
            
            /* Spinner removal (as per your previous code) */
            -moz-appearance: textfield; 
            outline: none; /* Remove focus outline */
        }

        /* Spinner removal for Webkit browsers (Chrome, Safari, etc.) */
        .qty-input::-webkit-outer-spin-button,
        .qty-input::-webkit-inner-spin-button {
            -webkit-appearance: none; 
            margin: 0;
        }

        /* Remove border on the first and last button sides to integrate with container border */
        .quantity-selector .qty-btn:first-child {
            border-right: none;
        }

        .quantity-selector .qty-btn:last-child {
            border-left: none;
        }

        /* Optional: Better padding/border management */
        .quantity-selector .qty-btn:first-child {
            padding-left: 12px;
            border-right: 1px solid #ccc; /* Add back separator */
        }

        .quantity-selector .qty-btn:last-child {
            padding-right: 12px;
            border-left: 1px solid #ccc; /* Add back separator */
        }

        /* Tidy up the button borders */
        .quantity-selector .qty-btn:first-child {
            border-top-left-radius: 3px;
            border-bottom-left-radius: 3px;
            border-right: 1px solid #ccc;
        }

        .quantity-selector .qty-btn:last-child {
            border-top-right-radius: 3px;
            border-bottom-right-radius: 3px;
            border-left: 1px solid #ccc;
        }

/* Large Buttons (Provided by User) */
.add-to-cart-btn-lg,
.buy-now-btn-lg {
    flex-grow: 1;
    padding: 15px 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

 
/* Spinner Styles for the Add to Cart Button (Renamed) */
.product-loading-spinner {
    display: inline-block;
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    border: 3px solid rgba(255, 255, 255, 0.3); /* Light border (for the circle shape) */
    border-radius: 50%;
    border-top-color: #fff; /* The rotating part of the circle (visible color) */
    animation: spin 0.8s ease-in-out infinite;
    flex-shrink: 0;
    margin-top: 0px; /* Prevents spinner from shrinking inside flex containers */
}

/* Keyframe Animation (Unchanged) */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Additional style for button when loading to hide original content and manage size */
.add-to-cart-btn-lg.loading {
    /* Use fixed padding or min-width to ensure the button doesn't collapse */
    padding: 15px; 
    width: auto; 
    min-width: 50px; /* Example: Ensure it maintains a minimum size */
    justify-content: center; /* Center the spinner */
}

.add-to-cart-btn.loading,
.add-to-cart-btn-related.loading {
    padding: 10px; /* Smaller padding for smaller buttons */
    min-width: 40px; 
    justify-content: center;
}


@media (max-width: 600px) {
 .add-to-cart-btn-lg.loading {
    /* Use fixed padding or min-width to ensure the button doesn't collapse */
    padding: 15px; 
    width: auto; 
    min-width: 50px; /* Example: Ensure it maintains a minimum size */
    justify-content: center; /* Center the spinner */
}
.product-loading-spinner {
    display: inline-block;
    width: 13px; /* Adjust size as needed */
    height: 13px; /* Adjust size as needed */
 
    margin-top: 0px; /* Prevents spinner from shrinking inside flex containers */
}

}
        .add-to-cart-btn-lg {
            background-color: var(--color-secondary);
            color: var(--color-supporting);
        }
        .add-to-cart-btn-lg:hover {
            background-color: var(--color-primary);
        }
            

            
        .buy-now-btn-lg {
            background-color: var(--color-primary);
            color: var(--color-supporting);
            margin-bottom: 25px;
            width: 100%;
        }
        .buy-now-btn-lg:hover {
            background-color: var(--color-secondary);
        }

        /* Meta Links */
        .meta-links {
            font-size: 0.9rem;
            color: var(--color-accent-dark);
            margin-bottom: 25px;
        }
        .meta-links a {
            color: var(--color-accent-dark);
            transition: color 0.2s;
        }
        .meta-links a:hover {
            color: var(--color-primary);
        }
        .meta-links i {
            margin-right: 3px;
        }

 /* PC View Styles */

/* Confidence Badges */
.confidence-badges {
    display: flex;
    justify-content: space-between;
    /* Increase gap slightly to accommodate the separator */
    gap: 15px; 
    margin-top: 15px;
    
    /* Added for gray box background */
    background-color: #f0f0f0; /* A light gray color */
    border: 1px solid #ccc; /* Optional: a subtle border */
    padding: 15px; /* Added padding to make the box more distinct */
    border-radius: 1px; /* Optional: rounded corners */
}

.badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    /* Ensures the badge doesn't collapse around the pseudo-element */
    position: relative; 
}

/* ADD THE PIPE SEPARATOR AFTER EACH BADGE EXCEPT THE LAST ONE (PC VIEW) */
.badge:not(:last-child)::after {
    content: "|"; /* The pipe character */
    color: #ccc; /* A subtle color for the separator */
    font-weight: 300; /* Lighter font weight for the separator */
    margin-left: 15px; /* Spacing between the badge content and the pipe */
}

.badge i {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-right: 5px;
}

 

/* Mobile View Styles */

/* Stacks badges on screens 600px wide or smaller, centers them, and reduces size */
@media (max-width: 600px) {
    .confidence-badges {
        /* Change the main axis direction to vertical */
        flex-direction: column; 
        /* ALIGN ITEMS TO CENTER for horizontal centering of the stacked badges */
        align-items: center; 
        /* Increase the gap for better vertical separation */
        gap: 10px; 
    }
    
    /* HIDE THE PIPE SEPARATOR IN MOBILE VIEW */
    .badge:not(:last-child)::after {
        content: none; 
    }

    .badge {
        /* SET A SMALLER MAX WIDTH for the badges to reduce their size */
        max-width: 150px; 
        
        /* Set the width to auto or a percentage, respecting the max-width */
        width: auto; 
        
        /* Remove the minimum width constraint */
        min-width: auto;

        /* Add margin: 0 auto; to CENTER THE BADGE ITSELF horizontally */
        margin: 0 auto;
        
        /* Ensure badges are block-level to take up full width for the centered margin to work */
        display: block; 
    }
    
    /* ADD UNDERLINE AFTER EVERY BADGE EXCEPT THE LAST ONE */
    .badge:not(:last-child) {
        /* Add a bottom border */
        border-bottom: 1px solid #ccc; /* Adjust color and thickness as needed */
        
        /* Add some padding at the bottom to separate the badge text from the underline */
        padding-bottom: 10px; 
        
        /* Add some margin at the bottom to separate the underline from the next badge */
        margin-bottom: 10px;
    }
}   /* -------------------------------------- */
        /* --- MOBILE RESPONSIVENESS (< 768px) --- */
        /* -------------------------------------- */
       @media (max-width: 768px) {
    /* Main Product Info Layout */
    .product-info {
        flex-direction: column;
        /* Reduced gap from 20px */
        gap: 15px; 
    }
 
    /* Product Image Gallery */
    .product-gallery {
        max-width: 100%;
        flex: 1 1 100%;
    }

    /* Main Image */
    .main-image {
        /* Reduced height from 350px */
        height: 280px; 
    }

    /* Thumbnail Images */
    .thumbnail {
        /* Reduced size from 60px */
        width: 50px; 
        height: 50px;
    }

    /* Product Details Block */
    .product-details {
        /* Padding-left remains 0, no reduction possible */
        padding-left: 0; 
    }

    /* Product Name/Title */
    .product-name {
        /* Reduced font-size from 1.8rem */
        font-size: 1.2rem;
        margin-top :20px;
     }

    /* Price and Stock Container */
    .pricing-stock-container {
        flex-direction: column;
                 justify-content: center; 

        /* Reduced gap from 10px */
        gap: 5px; 
    }
            
    /* New Price */
    .new-price-big {
        /* Reduced font-size from 2rem */
        font-size: 1rem;
         
    }
.product-prices-big {
        /* NEW: Ensure this price block takes full width so text-align can center it */
        width: 100%; 
        /* NEW: Center the content within the flex row */
        justify-content: center; 
    }
    /* Old Price */
    .old-price-big {
        /* Reduced font-size from 1.1rem */
        font-size: 0.9rem; 
    }

    /* Action Buttons Group */
    .product-actions-group {
        /* --- MODIFICATION START: SIDE-BY-SIDE QTY AND ADD TO CART --- */
        flex-direction: row; /* Change back to row layout */
        flex-wrap: nowrap; /* Prevent wrapping */
        gap: 10px; 
        /* --- MODIFICATION END --- */
    }
            
    /* Quantity Selector */
    .quantity-selector {
        /* --- MODIFICATION START: MAKE QTY SMALLER, ON THE LEFT --- */
        width: 30%; /* Allocate specific width */
        flex-shrink: 0; /* Prevent it from shrinking too much */
         justify-content: center; 
     }
            
 
          /* Specific styling for the input field to remove borders and align text */
.qty-input {
      font-size: 1rem;
     flex-grow: 1;
        width: 30px;
                    padding: 15px 0;


 }  
    /* Large Add-to-Cart Button */
    .add-to-cart-btn-lg {
        /* --- MODIFICATION START: MAKE ADD TO CART WIDER, ON THE RIGHT --- */
        width: 70%; /* Allocate the remaining width */
        flex-grow: 1; /* Ensure it fills remaining space */
        /* --- MODIFICATION END --- */

        /* Added a small padding reduction example (can be applied to button style) */
        padding: 15px 15px; 
        font-size: 1rem; /* Reduced font size */
    }

    /* Buy Now Button */
    .buy-now-btn-lg {
        /* Reduced margin-bottom from 20px */
        margin-bottom: 15px; 
        padding: 15px 15px; /* Reduced padding */
        font-size: 1rem; /* Reduced font size */
    }

    /* Confidence Badges (e.g., trust icons) */
    .confidence-badges {
        flex-direction: column;
        /* Reduced gap from 10px */
        gap: 5px; 
    }
}

.gallery-hint {
    text-align: center;
    font-size: 1rem;
    color: var(--color-accent-dark);
    margin-top: 10px;
    padding: 5px 0;
    opacity: 0.7; /* Keep it subtle */
    transition: opacity 0.3s;
}

/* -------------------------------------- */
/* --- SCROLL ICON ANIMATION KEYFRAMES --- */
/* -------------------------------------- */
@keyframes scroll-suggest {
    0% {
        transform: translateX(3px); /* Start slightly right */
        opacity: 0.8;
    }
    50% {
        transform: translateX(-3px); /* Move left */
        opacity: 1;
    }
    100% {
        transform: translateX(3px); /* Move back to the start (right) */
        opacity: 0.8;
    }
}

/* Apply styles and animation to the icon */
.gallery-hint i {
    margin-right: 5px;
    color: var(--color-primary); /* Use a primary color for the icon */
    
    /* Apply the animation properties */
    animation: scroll-suggest 1.5s infinite ease-in-out; 
    display: inline-block; /* Essential for 'transform' to work */
}

/* Optional: Make the hint more prominent on small screens */
@media (max-width: 768px) {
    .gallery-hint {
        opacity: 1;
            font-size: 0.8rem;

         border-top: 1px solid var(--color-accent-light);
        padding-top: 10px;
    }
}
 


.product-trust-block {
    margin-top: -15px;
    margin-bottom: 20px;
    /* --- Added for Centering --- */
    max-width: 500px; /* Adjust this width as needed */
    margin-left: auto;
    margin-right: auto;
 }
/* --- Your Existing Styles --- */
.product-live-view {
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-live-view i {
    margin-right: 8px;
    font-size: 1.1rem;
    animation: pulse-live 1.5s infinite ease-in-out;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.15); }
}

/* --- NEW Styles for Animation --- */

/* 1. Wrapper for the number: This contains the spinning overflow */
.viewer-count-wrap {
    display: inline-block;
    overflow: hidden; 
    position: relative; 
    /* Set the height to one line of text using the 'em' unit based on the parent font size */
    line-height: 1; /* Essential to prevent layout shifts */
    height: 1em;   /* Exactly the height of one line */
    vertical-align: middle;
}

/* 2. The count element itself (must be display: block for vertical movement) */
#viewer-count {
    display: block; 
    /* Match the font weight of the surrounding text */
    font-weight: 500; 
}

/* 3. Defines the actual spinning motion */
@keyframes spin-up {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-100%); opacity: 0.5; } 
    100% { transform: translateY(0); opacity: 1; }
}

/* 4. Class for the animated number when updating */
.spinning {
    display: block;
    /* Ensure the animated text matches the original font weight */
    font-weight: 500; 
    animation: spin-up 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.15); }
}

.shipping-info-item {
    font-size: 0.95rem;
    color: #808080;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    /* --- Added for Centering Inline Content --- */
    justify-content: center;
    /* --- End Added for Centering Inline Content --- */
}
.shipping-info-item i {
    color: #808080;
    margin-right: 8px;
    font-size: 1.1rem;
}

.secure-checkout-box {
    border: 1px solid var(--color-accent-light);
    background-color: #fcfcfc;
    /* Reduced padding from 20px to 12px */
    padding: 12px; 
    text-align: center; /* Already centers the text inside the box */
    border-radius: 0px;
    /* Reduced margin-top from 20px to 10px */
    margin-top: 10px; 
}

.secure-checkout-box p {
    /* Reduced font-size from 0.9rem to 0.8rem */
    font-size: 0.8rem; 
    font-weight: 600;
    color: var(--color-secondary);
    /* Reduced margin-bottom from 15px to 8px */
    margin-bottom: 8px; 
        margin-top: -3px; 

    text-transform: uppercase;
    text-align: center; /* Ensures text is centered */
}

.payment-logos {
    display: flex;
    justify-content: center; /* Already centers the payment logos */
    /* Reduced gap from 15px to 8px */
    gap: 15px; 
    flex-wrap: wrap; 
}

.payment-logos img {
    /* Reduced logo height from 25px to 18px */
    height: 18px; 
    width: auto;
    object-fit: contain;
}
/* Apply these styles when the screen width is 600px or less (Mobile View) */
@media (max-width: 600px) {
    /* --- Product Live View Changes --- */
    .product-live-view {
        /* Reduced font size for mobile readability */
        font-size: 0.95rem; 
        /* Reduced bottom margin for tighter content */
        margin-bottom: 8px; 
        /* Ensure it is centered on mobile too */
        justify-content: center; 
    }
    
    .product-live-view i {
        /* Slightly reduce icon size */
        font-size: 1rem; 
        /* Reduce spacing between icon and text */
        margin-right: 5px; 
    }

    /* --- Shipping Info Item Changes --- */
    .shipping-info-item {
        /* Reduce font size to match the live view */
        font-size: 0.85rem; 
        /* Reduce spacing between items */
        margin-bottom: 5px; 
        /* Ensure display: flex; if you want aligned icons and text */
        display: flex; 
        align-items: center; 
        /* Ensure it is centered on mobile too */
        justify-content: center; 
    }

    .shipping-info-item i {
        /* Slightly reduce icon size */
        font-size: 0.75rem; 
        /* Reduce spacing between icon and text */
        margin-right: 5px; 
    }
    .secure-checkout-box p {
    /* Reduced font-size from 0.9rem to 0.8rem */
    font-size: 0.7rem; 
     
    
}
}
















/* ==================================== */
/* 3. Product Overview Tabs Section */
/* ==================================== */
.product-overview-tabs-section {
   max-width: 1200px;
    margin: 40px auto;
    /* ADJUSTMENTS FOR BORDER START HERE */
    padding: 30px; /* Increased internal padding to make space for the border */
    border: 1px solid #ddd; /* Gray Border */
    border-radius: 0px; /* Optional: adds rounded corners */
    /* ADJUSTMENTS FOR BORDER END HERE */
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--color-accent-light);
    margin-bottom: -5px;
    overflow-x: auto;
    
    justify-content: center; /* Default: Center tabs on larger screens */
}

.tab-link {
    background: none;
    border: none;
    padding: 5px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;

    color: var(--color-accent-dark);
    border-bottom: 2px solid transparent; 
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevents tabs from shrinking */
    outline: none;
    margin-bottom: 20px;
 
}

.tab-link:hover:not(.active) {
    color: var(--color-primary);
}

/* Active Tab Styling */
.tab-link.active {
    color: var(--color-secondary);
    /* Active state: bold, primary color underline */
    border-bottom: 2px solid var(--color-primary); 
}

/* Tab Content */
.tab-content {
    display: none; /* Hide all content by default */
    padding: 10px 0;
    line-height: 1.6;
}

.tab-content.active-content {
    display: block; /* Show the active content */
}

.about-item-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
    padding-top: 10px;
}

.tab-content p {
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.tab-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.product-features-list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    color: var(--color-secondary);
}

.product-features-list li {
    margin-bottom: 8px;
}

/* Technical Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    max-width: 500px;
}

.specs-table th, .specs-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--color-accent-light);
}

.specs-table th {
    font-weight: 600;
    background-color: #f9f9f9;
    width: 40%;
    color: var(--color-secondary);
}

.specs-table td {
    color: var(--color-accent-dark);
    width: 60%;
}

/* Review Styles */
.review-item {
    border: 1px solid var(--color-accent-light);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0px;
}
.review-rating {
    color: #FFC107;
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.review-author {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--color-accent-dark);
    margin-bottom: 10px;
}
.review-text {
    font-size: 1rem;
    color: var(--color-secondary);
}

/* --- Mobile Adjustments (Aggressively Reduced Sizes) --- */
@media (max-width: 768px) {
    .product-overview-tabs-section {
        padding: 0 10px; /* Reduced horizontal padding */
        margin: 15px auto; /* Reduced vertical margin */
    }

    /* Tabs Navigation and Links */
    .tabs-nav {
        margin-bottom: -5px; /* Reduced space below tabs */
        justify-content: flex-start; /* Ensures Description tab is always visible on the left */
    }
    .tab-link {
        padding: 15px 12px; /* Reduced tab padding */
        font-size: 0.85rem; /* Smaller font for tabs */
            margin-bottom: 10px;


    }

    /* Tab Content Headings and Text */
    .tab-content {
        padding: 5px 0; /* Reduced content vertical padding */
    }
    .about-item-heading {
        font-size: 1.3rem; /* Smaller main heading */
        margin-bottom: 10px;
    }
    .tab-content h3 {
        font-size: 1.05rem; /* Smaller sub-heading */
        margin-top: 15px;
        margin-bottom: 8px;
    }
    .tab-content p, 
    .product-features-list li,
    .review-text {
        font-size: 0.95rem; /* Slightly smaller body text */
        margin-bottom: 10px;
    }
    .product-features-list {
        margin-left: 15px; /* Reduced list indent */
    }
    
    /* Technical Specs Table */
    .specs-table th, 
    .specs-table td {
        padding: 8px; /* Reduced table cell padding */
        font-size: 0.9rem; /* Smaller table text */
    }

    /* Review Styles */
    .review-item {
        padding: 10px; /* Reduced review box padding */
        margin-bottom: 10px;
    }
    .review-rating {
        font-size: 1rem; /* Smaller rating stars */
    }
    .review-author {
        font-size: 0.85rem; /* Smaller author text */
        margin-bottom: 5px;
    }
}
 

/* --- Mobile Adjustments (Kept from original block) --- */
@media (max-width: 768px) {
    /* Review Styles for Mobile */
    .review-item {
        padding: 10px; /* Reduced review box padding */
        margin-bottom: 10px;
    }
    .review-rating {
        font-size: 1rem; /* Smaller rating stars */
    }
    .review-author {
        font-size: 0.85rem; /* Smaller author text */
        margin-bottom: 5px;
    }
    .reviews-container {
        flex-direction: column; /* Stacks the columns vertically */
        gap: 0;
    }
    .review-form-wrapper {
        margin-top: 20px;
        padding: 15px 10px; /* Reduced padding on mobile */
    }
}
 :root {
    /* Main Colors */
    --color-primary: #E60000;
    --color-secondary: #000000;
    --color-supporting: #FFFFFF;
    
    /* RGB values for transparent overlays */
    --color-primary-rgb: 230, 0, 0;
    --color-secondary-rgb: 0, 0, 0;
    --color-supporting-rgb: 255, 255, 255;

    /* Accent Colors */
    --color-accent-light: #F2F2F2;
    --color-accent-dark: #808080;
}


/* --- Mobile Adjustments (Kept from original block) --- */

@media (max-width: 768px) {

    /* Review Styles for Mobile */
    /* Targeting the new individual review item class */
    .single-review-item { 
        padding: 10px; /* Reduced review box padding */
        margin-bottom: 10px;
        /* The border and background are inherited from the general style below */
    }

    .review-rating-stars {
        font-size: 1rem; /* Smaller rating stars */
    }

    .review-author {
        font-size: 0.85rem; /* Smaller author text */
        margin-bottom: 5px;
    }

    .reviews-container {
        flex-direction: column; /* Stacks the columns vertically */
        gap: 0;
    }

    .review-form-wrapper {
        margin-top: 20px;
        padding: 15px 10px; /* Reduced padding on mobile */
    }

}/* --- Root Variables --- */

 /* --------------------------------------------------- */
/* --- RELATED PRODUCTS SECTION STYLES --- */
/* --------------------------------------------------- */

.related-products-section {
    padding: 10px 30px; /* Standard section padding */
    position: relative;
    margin-bottom: -80px;
 }

.section-title-related {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: -10px;
}

/* --- Product Grid/Slider Layout (Core Fix) --- */
.related-product-grid {
    display: flex; /* Use flexbox for horizontal sliding */
    overflow-x: scroll; /* Allow horizontal scrolling */
    scroll-snap-type: x mandatory; /* Snap scrolling to each item */
    -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
    gap: 30px;
    padding-bottom: 20px; /* Space for scrollbar or shadow */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.related-product-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* --- Individual Product Card Styling --- */

/* Base Card Width (PC Mode: 4 cards visible) */
.product-card-related {
    /* KEY FIX: Define a fixed width using flex-shrink/grow = 0, so 4 cards fit with the 30px gap */
    flex: 0 0 calc((100% / 4) - 22.5px);
    
    background-color: var(--color-supporting); /* White background */
    border-radius: 0px;
    overflow: hidden;
    /* Use flex column to stack image, info, and actions */
    display: flex; 
    flex-direction: column;
    transition: box-shadow 0.3s;
    position: relative;
    scroll-snap-align: start; /* Snap the beginning of the card to the container start */
}

.product-image-container-related {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.product-image-container-related img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discount-badge-related {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-primary); /* Red background */
    color: var(--color-supporting); /* White text */
    padding: 8px 10px;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1;
    z-index: 10;
}

.product-info-related {
    padding: 15px;
    /* Use flex-grow to take up available space between image and fixed action bar */
    flex-grow: 1; 
    text-align: center;
}

.product-name-related {
    font-size: 1rem;
    font-weight: 550;
    line-height: 1.3;
    margin: 0 0 8px 0;
    min-height: 2.6em;
}

.product-rating-related {
    color: #FFC107;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.product-rating-related .rating-value-related {
    color: var(--color-accent-dark);
    font-size: 0.8rem;
    margin-left: 5px;
}

/* --- PRICE STYLES --- */
.product-prices-related {
    display: flex;
    justify-content: center;
    align-items: baseline; /* Align prices along the baseline */
    gap: 8px; /* Space between old and new price */
    margin: 0; 
}

.old-price-related {
    font-size: 0.9rem; 
    font-weight: 400; 
    color: var(--color-accent-dark); 
    opacity: 0.7; 
}

.old-price-related del {
    display: inline;
}

.new-price-related {
    font-size: 1.1rem; 
    font-weight: 600; 
    color: var(--color-primary); 
    margin: 0; 
}

.product-price-related { 
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}
/* --- END PRICE STYLES --- */


.product-actions-related {
    display: flex;
    /* Common styles: positioned absolutely within .product-card */
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    
    /* PC: Start position right below the image container (280px high) */
    top: 250px; 
    
    /* Initially hidden and shifted up by its own height to prepare for slide-up/down effect */
    opacity: 0;
    transform: translateY(-100%); 
    transition: opacity 0.3s ease, transform 0.3s ease;
    
    background-color: var(--color-supporting);
    z-index: 10; 
    border-radius: 0; 
}

/* On hover, slide the product actions down to its natural position (top: 280px) */
.product-card-related:hover .product-actions-related {
    opacity: 1;
    transform: translateY(0); /* Slides down to cover the product info */
}


 
/* --- Base Button Style: .add-to-cart-btn-related (Provided by User) --- */
.add-to-cart-btn-related {
    flex-grow: 1;
    background-color: var(--color-secondary);
    color: var(--color-supporting);
    border: none;
    font-size: 0.83rem;
    font-weight: 550;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s, color 0.3s; 
    text-transform: uppercase;
    
    border-radius: 0 0 0 0px;
    position: relative;
    overflow: hidden; 

    /* === FIX: Set Fixed Dimensions and Box Model === */
    padding: 10px 8px; /* Base padding */
    min-width: 100px; 
    height: 40px; 
    box-sizing: border-box; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- UNIQUE LOADING SPINNER STYLES: .related-product-spinner --- */

/* Spinner Styles for the Related Products Button */
.related-product-spinner {
    display: inline-block;
    width: 20px; /* Size consistent with standard spinners */
    height: 20px; 
    border: 3px solid rgba(255, 255, 255, 0.3); /* Light border */
    border-radius: 50%;
    border-top-color: #fff; /* Visible rotating arc */
    animation: spin-related 0.8s ease-in-out infinite; /* Uses unique animation name */
    flex-shrink: 0; 
}

/* Unique Keyframe Animation */
@keyframes spin-related {
    to {
        transform: rotate(360deg);
    }
}

/* Style for the button when the loading state is active */
.add-to-cart-btn-related.loading {
    /* Use the button's fixed dimensions and centering */
    padding: 0; /* Remove padding to fully utilize height and center the spinner perfectly */
    min-width: 100px; /* Maintain width */
    height: 40px; /* Maintain height */
    justify-content: center; /* Ensure the spinner is centered */
    /* Text/Icon visibility is handled by the JavaScript replacing innerHTML */
}

.add-to-cart-btn-related:hover {
    background-color: var(--color-primary); /* Red hover */
}

 
 

.wishlist-btn-related,
.quickview-btn-related {
    width: 45px;
    background-color: var(--color-supporting);
    color: var(--color-secondary);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s, background-color 0.3s;
    padding: 10px 0;
    border-left: 1px solid var(--color-accent-light);
    border-radius: 0; 
    position: relative; /* Needed for spinner */
    overflow: hidden; /* Needed for spinner */
}

/* PC: Apply bottom-right radius to the last button */
.quickview-btn-related {
    border-radius: 0 0 8px 0;
}

.wishlist-btn-related:hover i,
.quickview-btn-related:hover i {
    color: var(--color-primary);
}

/* Slider Buttons Styling (Uses the base slider button style but targets the related section's buttons) */
.slider-btn-related {
    position: absolute;
    top: 50%; 
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-accent-light);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slider-btn-related:hover {
    background-color: var(--color-primary);
    color: var(--color-supporting);
}

.slider-btn-prev {
    left: -20px; 
}

.slider-btn-next {
    right: -20px; 
}

/* 1. KEYFRAME ANIMATION */
/* Must be defined globally for the spinner to work */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 2. BASE BUTTON ADJUSTMENTS (Used by both generic and related) */
/* Ensure all wishlist buttons have position: relative and overflow: hidden */
.wishlist-btn,
.wishlist-btn-related {
    width: 45px;
    background-color: var(--color-supporting);
    color: var(--color-secondary);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s, background-color 0.3s;
    padding: 10px 0;
    border-left: 1px solid var(--color-accent-light);
    border-radius: 0;

    /* KEY FOR SPINNER PLACEMENT */
    position: relative;
    overflow: hidden;
}

/* 3. WISHLIST SPINNER ELEMENT (Generic and Related) */
.wishlist-spinner,
.wishlist-spinner-related {
    display: none; /* Hidden by default */
    width: 1em; 
    height: 1em;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 0.6s linear infinite;
    
    /* CENTERING FIX: Set top/left to 50% and use translate(-50%, -50%) */
    position: absolute;
    top: 30%;
    left: 25%;
    transform: translate(-50%, -50%);
}

/* 4. ANIMATING STATE (Toggled by JavaScript) */

/* Apply styles when the button is in the 'animating' state */
.wishlist-btn.animating,
.wishlist-btn-related.animating {
    pointer-events: none; /* Disable clicks while animating */
    background-color: var(--color-supporting);
}

/* Hide the heart icon when animating (generic) */
.wishlist-btn.animating i {
    opacity: 0;
}

/* Hide the heart icon when animating (related) */
.wishlist-btn-related.animating i {
    opacity: 0;
}


/* Show the spinner when animating (generic) */
.wishlist-btn.animating .wishlist-spinner {
    display: block;
}

/* Show the spinner when animating (related) */
.wishlist-btn-related.animating .wishlist-spinner-related {
    display: block;
}

 

/* --------------------------------------------------- */
/* --- MOBILE RESPONSIVENESS FOR RELATED PRODUCTS --- */
/* --------------------------------------------------- */
@media (max-width: 768px) {
    .related-products-section {
        padding: 40px 15px;
        margin-bottom: -100px;
    }

    .section-title-related {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .related-product-grid {
        gap: 15px;
    }.related-product-spinner {
    display: inline-block;
    width: 12px; /* Size consistent with standard spinners */
    height: 12px; 
    border: 3px solid rgba(255, 255, 255, 0.3); /* Light border */
    border-radius: 50%;
    border-top-color: #fff; /* Visible rotating arc */
    animation: spin-related 0.8s ease-in-out infinite; /* Uses unique animation name */
    flex-shrink: 0; 
}
    .wishlist-spinner,
.wishlist-spinner-related {
    display: none; /* Hidden by default */
    width: 1em; 
    height: 1em;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 0.6s linear infinite;
    
    /* CENTERING FIX: Set top/left to 50% and use translate(-50%, -50%) */
    position: absolute;
    top: 25%;
    left: 20%;
    transform: translate(-50%, -50%);
}
    /* Mobile Card Width (KEY FIX: 2 cards visible) */
    .product-card-related {
        /* Calculation: (100% / 2) - (15px * 1 / 2) = 50% - 7.5px */
        flex: 0 0 calc((100% / 2) - 7.5px); 
        min-height: auto;
    }

    .product-image-container-related {
        height: 180px;
    }

    .product-name-related {
        font-size: 0.85rem;
        min-height: 2.8em;
    }

    /* Adjust price font size for mobile */
    .product-price-related,
    .new-price-related {
        font-size: 0.9rem;
    }
    .old-price-related {
        font-size: 0.75rem;
    }

    /* FIX: Mobile/Tablet actions - make them permanently visible and place them at the bottom */
    .product-actions-related {
        /* *** KEY CHANGE 1: Override PC absolute positioning and make it visible *** */
        position: static; 
        order: 3; /* Use flexbox 'order' property to push it to the bottom */
        opacity: 1; /* Make visible */
        transform: translateY(0); /* Reset transform */
        border-radius: 0 0 8px 8px;
        border-top: 1px solid var(--color-accent-light);
    }
    
    .product-info-related {
        order: 2; 
    }
    
    .product-image-container-related {
        order: 1;
    }

    .add-to-cart-btn-related {
        padding: 6px 4px;
        font-size: 0.65rem;
        border-radius: 0 0 0 8px; /* Apply bottom-left radius for mobile */
        
        /* === MOBILE FIX: Adjust dimensions for consistency === */
        height: 30px; /* Adjust height for mobile buttons */
        min-width: 60px; /* Adjust min-width for mobile buttons */
    }

    /* FIX: Mobile Loading State - Prevent Size Jump */
    .add-to-cart-btn-related.loading {
        /* Keep the dimensions consistent for mobile */
        min-width: 60px; 
        height: 30px;    
        padding: 0; 
    }

    .wishlist-btn-related,
    .quickview-btn-related {
        width: 30px;
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    .quickview-btn-related {
        border-radius: 0 0 8px 0; /* Apply bottom-right radius for mobile */
    }

    .slider-btn-related {
        top: 40%; 
        width: 30px;
        height: 30px;
    }

    /* Adjust slider buttons to be inside the viewable area */
    .slider-btn-prev {
        left: 0; 
    }

    .slider-btn-next {
        right: 0;
    }
}





@media (max-width: 470px) {
    .product-prices-related {
        /* KEY FIX: Change flex direction to stack prices vertically */
        display: flex;
        flex-direction: column;
        
        /* Optional: Reduce the vertical gap if they are too far apart */
        gap: 2px; 
        
        /* Center the text elements within the column */
        align-items: center; 
    }

    /* Optional: Ensure the old price is centered when stacked */
    .old-price {
        text-align: center;
    }
}





/* 1. Keyframes for the spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* 2. Style for the spinner element */
.button-spinner {
    display: inline-block;
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    border: 3px solid rgba(255, 255, 255, 0.3); /* Light border (for the circle shape) */
    border-radius: 50%;
    border-top-color: #fff; /* The rotating part of the circle (visible color) */
    animation: spin 0.8s ease-in-out infinite;
    flex-shrink: 0;
    margin: 0; /* Resetting any conflicting margin */
}

/* 3. Style for the button when loading */
/* This will hide the text and change the button's appearance */
.buy-now-btn-lg.loading {
    /* Optional: Change background/color when loading */
    /* *** MODIFICATION HERE: Changed to black background *** */
    background-color: #000; 
    color: #fff;
    pointer-events: none; /* Prevents further clicks */
     transition: none; /* Stop hover/transition effects while loading */
}

.buy-now-btn-lg.loading .fas {
    display: none; /* Hide the icon */
}

.buy-now-btn-lg.loading span.button-text {
    display: none; /* Hide the text */
}


@media (max-width: 470px) {
    .button-spinner {
    display: inline-block;
    width: 15px; /* Adjust size as needed */
    height: 15px; /* Adjust size as needed */
    border: 3px solid rgba(255, 255, 255, 0.3); /* Light border (for the circle shape) */
    border-radius: 50%;
    border-top-color: #fff; /* The rotating part of the circle (visible color) */
    flex-shrink: 0;
    margin: 0; /* Resetting any conflicting margin */
}
}