/* Define variables for easy color changes */
/* Define variables for easy color changes */
/* Define variables for easy color changes */
:root {
    /* PRIMARY THEME COLOR (Single color for Light Mode/Default) */
    --primary-color: #E031BA; /* Pink/Maroon */
    
    /* LIGHT MODE VARIABLES (Default) */
    --background-color: #ffffff; /* White background */
    --text-color: #333333; /* Dark text */
    --card-bg: #f8f9fa; /* Light grey for cards/sections */
    --border-color: #e9ecef;

    --footer-bg: #212529; /* Dark background for footer (stays dark) */
    --footer-text: #adb5bd; /* Light grey for footer text */
}
/* ... rest of your CSS file ... */


/* --- GLOBAL RESETS AND BOX-SIZING FIXES --- */
/* ========================================= */
*{
    /* Critical Fix: Makes padding and border included in the element's width/height */
    box-sizing: border-box; 
}


/* style.css (Add this section for the global page load animation) */

/* 1. Define the Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Starts slightly below its final position */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Apply the Animation to the Main Content Area */
main {
    /* Apply the animation */
    animation: fadeIn 1.2s ease-out 0.2s forwards; 
    /* 1.2s duration, ease-out timing, 0.2s delay, stays at the end state */
    
    /* Initially hide the main content until the animation starts */
    opacity: 0; 
}

/* --- Global Styles --- */
/* --- Global Styles --- */
body {
    /* Use Roboto as the primary font for a clean, standard look */
    font-family: 'Roboto', sans-serif; 
    color: #333;
    margin: 0;
    padding: 0;
    /* FIX: Prevents horizontal scroll from overflowing content */
    overflow-x: hidden; 

}

/* Override default Bootstrap colors for 'Go Shop' buttons and links */
.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- CAROUSEL IMAGE BASE HEIGHT FIX (Desktop/Tablet) --- */
.carousel-item img {
    /* Base height for desktop/tablet screens */
    height: 480px !important; 
    /* Guarantees the entire image is visible, no cropping */
    object-fit: contain !important; 
}
/* ------------------------------------------------------- */

/* style.css (Top Bar Icons Gradient Hover Effect - Optional) */
.top-bar a {
    color: #495057; /* Default color */
    transition: all 0.3s ease-in-out;
}

.top-bar a:hover i { /* Target the icon inside the anchor tag */
    background-image: linear-gradient(
        to right, 
        var(--primary-color),
        #8a2be2 
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ========================================= */
/* --- CUSTOM MEDIA QUERIES --- */
/* ========================================= */

/* Targets devices with screens up to 768px wide (Tablets and below) */
@media (max-width: 768px) {
    /* 1. Font Size Optimization for Headings */
    h1 {
        font-size: 2rem !important; 
    }
    h2 {
        font-size: 1.75rem !important; 
    }
    .display-4 {
        font-size: 2.5rem !important;
    }

    /* 2. Top Bar Visibility (Hides the bar on small screens) */
    .top-bar {
        display: none !important;
    }
} /* Closing brace for 768px media query */

/* Targets devices with screens up to 576px wide (Smartphones) */
@media (max-width: 576px) {
    /* 1. Category Image Size Adjustment */
    .category-img {
        width: 100px;
        height: 100px;
        margin-bottom: 0.5rem; 
    }

    /* 2. Carousel Height Adjustment (This overrides the 480px rule above) */
    .carousel-item img {
        height: 300px !important;
        object-fit: contain !important; /* Force the image to fit fully */
    }
    
    /* Adjust caption to sit lower and take up less vertical space on phones */
    .carousel-caption {
        bottom: 5% !important; 
        padding: 0.5rem 1rem !important;
    }

    /* 3. Footer Adjustments */
    .footer .col-md-4 {
        text-align: center;
    }
    .footer p, .footer a {
        display: block;
        text-align: center;
    }
    .footer .social-icons {
        justify-content: center !important;
        display: flex;
    }
} /* Closing brace for 576px media query */


/* style.css (Social Icons Gradient Hover Effect - Optional) */

/* Base style for all social icons in the footer */
.footer .social-icons a {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    color: var(--footer-text); /* Default color (light gray) */
    transition: all 0.3s ease-in-out; /* Add smooth transition */
}

/* 💥 HOVER EFFECT: Apply the Gradient */
.footer .social-icons a:hover {
    /* Define the gradient */
    background-image: linear-gradient(
        to right, 
        var(--primary-color), /* #e031ba (Pink) */
        #8a2be2 /* Blue Violet */
    );
    
    /* CRITICAL: Clip the gradient to the shape of the icon */
    -webkit-background-clip: text;
    background-clip: text;
    
    /* CRITICAL: Make the icon color transparent so the gradient shows through */
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback for non-webkit browsers */
    
    /* Optional: Slight vertical lift */
    transform: translateY(-2px); 
}


/* --- Category Cards (Circles) --- */
.category-item {
    text-align: center;
}
.category-img {
    width: 150px; 
    height: 150px;
    border-radius: 50%;
    object-fit: contain;
    margin: 0 auto 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.category-img:hover {
    transform: scale(1.05);
}

/* --- Featured Product Cards (Rating Stars) --- */
.product-card .card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}
.product-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

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


.product-card .card-text {
    font-size: 0.85rem;
    color: #6c757d;
}
.rating .fa-star {
    color: gold;
}


/* --- About Page Services Boxes --- */
.service-box {
    text-align: center;
    padding: 2rem;
    border: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}
.service-box:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.service-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Contact Page Form --- */
.contact-form .form-control {
    border-radius: 0;
    margin-bottom: 1rem;
}
.contact-form .btn {
    width: 100%;
    padding: 0.75rem;
}

/* --- Back to Top Button Styles --- */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s;
}
.back-to-top-btn i {
    font-size: 1.2rem;
}

/* --- Carousel Control Colors (Black Arrows) --- */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: url("data:im:;age/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}
.carousel-control-prev,
.carousel-control-next {
    background: rgba(128, 128, 128, 0.2); /* Light transparent grey background for button area */
}
    
/* --- Footer Styles (Continued) --- */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0;
    font-size: 0.9rem;
    padding-top: 50px;
    padding-bottom: 50px;
}
.footer h5 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
}
.footer a {
    color: var(--footer-text);
    display: block;
    padding: 0.2rem 0;
}
.footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}
.footer .social-icons a {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    color: var(--footer-text);
}
.footer .social-icons a:hover {
    color: #ffffff;
}
.footer .subscribe-section input {
    border-radius: 0;
}
.footer .subscribe-section .btn {
    border-radius: 0;
}
.footer p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.footer ul {
    padding-left: 0;
}
.footer img {
    max-width: 100%;
    height: auto;
}


/* ----------------------------------------------------- */
/* --- Product Gallery Styles (Colorful and Mature) --- */
/* ----------------------------------------------------- */
.gallery-card {
    height: 100%;
    border-radius: 12px !important; 
    border: 1px solid #ddd !important; /* Lighter initial border */
    background-color: #ffffff;
    /* Smoother, stronger hover effect */
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    overflow: hidden; 
}
.gallery-card img {
    height: 250px;
    object-fit: contain;
    width: 100%;
    padding: 15px; 
    transition: transform 0.4s ease-in-out;
}
/* New Colorful Hover Effect: Stronger lift and a colourful glow */
.gallery-card:hover {
    transform: translateY(-8px); /* Lift higher for impact */
    /* Colorful and Mature Shadow: Uses primary colors for a glow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 
                0 0 15px 5px rgba(224, 49, 186, 0.5), /* Primary Pink Glow */
                0 0 30px 10px rgba(78, 84, 200, 0.3); /* Complementary Blue Glow */
    border-color: var(--primary-color) !important; /* Highlight border */
}
.gallery-item-link {
    text-decoration: none;
    color: inherit;
}

/* Button Styling (View Product - Classy Ghost Button) */
.gallery-card .btn-view-product {
    /* Mature: Use a transparent button with a colored border */
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Button Hover: Fills with solid color on card hover */
.gallery-card:hover .btn-view-product {
    background-color: var(--primary-color) !important;
    color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* --- Gradient Text Styling (NEW MATURE LOOK - SOLID COLOR) --- */
.gradient-text {
    /* NEW: Set color to a professional dark gray */
    color: #212529; 
    
    /* Ensure the text is bold and stands out */
    font-weight: 700; /* 700 is the 'bold' weight for Roboto */
    
    /* CRITICAL: Clear all gradient properties to show the solid text color */
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
}
   

/* style.css (Find and modify the Navbar link styles) */

/* Target the standard Bootstrap nav-link */
.nav-link {
    /* Add smooth transition to color changes */
    transition: color 0.3s ease-in-out, transform 0.2s; 
}

/* Add a subtle interactive effect */
.nav-link:hover {
    color: var(--primary-color) !important; 
    transform: translateY(-2px); /* Lifts the link slightly on hover */
}

/* style.css (Brand Logo Styling) */

.brand-logo-grid {
    /* Add extra bottom margin to rows to separate them */
    margin-bottom: 30px; 
}

.brand-logo {
    /* Ensure maximum height for uniform appearance */
    max-height: 50px; 
    width: auto;
    /* Optional: Apply a grayscale filter for a professional, clean look */
    filter: grayscale(100%); 
    opacity: 0.6; /* Make them slightly faded when inactive */
    transition: filter 0.5s ease-in-out, opacity 0.5s ease-in-out, transform 0.3s;
}

/* Hover Effect: Restore color, increase visibility, and slightly lift */
.brand-logo:hover {
    filter: grayscale(0%); /* Full color on hover */
    opacity: 1; /* Fully visible on hover */
    transform: scale(1.05); /* Subtle scale up */
    cursor: pointer;
}


/* --- NEW HOME PAGE STYLES --- */

/* Ensures the text in the carousel is visible over the background images */
.carousel-caption {
    /* Use 'bottom: 25%' to move the caption up slightly from the bottom edge */
    bottom: 25%; 
    background: rgba(0, 0, 0, 0.4); /* Subtle dark background for text readability */
    padding: 1rem 2rem;
    border-radius: 8px;
    left: 10%;
    right: 10%;
}
.carousel-caption h1, .carousel-caption p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Adds depth to text */
}

/* Promotional Banner - Highly colorful and classy look */
.promo-banner {
    /* Use a bold, eye-catching gradient */
    background-image: linear-gradient(
        to right, 
        #4e54c8,       /* Dark Blue/Purple */
        var(--primary-color) /* Pink/Maroon (from :root) */
    );
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    margin: 4rem auto; /* Ensures spacing */
    max-width: 90%;
    transform: rotateX(0deg);
    transition: transform 0.5s ease;
}

/* Add a subtle interactive hover effect to the banner */
.promo-banner:hover {
    transform: translateY(-5px);
}



/* --- NEW Lightbox Styles (Must be included in your CSS file) --- */
#productLightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* Ensure it's on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Black background with opacity */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Adds a cool blur effect */
}

#productLightbox.active {
    display: flex; /* Display as a flexible box when active */
}

#productLightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    /* Animation for the image pop-in */
    animation: zoomIn 0.3s; 
}

/* Lightbox Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Keyframe for the image pop-in animation */
@keyframes zoomIn {
    from {transform: scale(0.8);}
    to {transform: scale(1);}
}

/* ========================================= */
/* DARK MODE STYLES              */
/* ========================================= */
/* ========================================= */
/* DARK MODE STYLES (Overrides)              */
/* ========================================= */
body.dark-mode {
    /* Dark Mode Global Variables */
    --background-color: #121212; /* Very dark background */
    --text-color: #f1f1f1; /* Light text */
    --card-bg: #1e1e1e; /* Slightly lighter dark for cards */
    --border-color: #333333; /* Darker borders */
    
    /* DARK MODE GRADIENT DEFINITION (Active only in Dark Mode) */
    --dark-mode-gradient: linear-gradient(to right, #6A11CB, #E031BA, #FF8C00);

    /* Apply Dark Mode colors */
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Apply Dark Mode colors to specific Bootstrap elements for consistency */
body.dark-mode .navbar {
    background-color: var(--background-color) !important;
}

body.dark-mode .nav-link, 
body.dark-mode .top-bar a,
body.dark-mode .carousel-control-prev-icon,
body.dark-mode .carousel-control-next-icon {
    color: var(--text-color) !important;
}

body.dark-mode .card,
body.dark-mode .bg-light {
    background-color: var(--card-bg) !important;
    color: var(--text-color);
    border: 1px solid var(--border-color) !important;
}

body.dark-mode .shadow,
body.dark-mode .shadow-sm,
body.dark-mode .shadow-lg {
    /* Adjust shadow for dark theme */
    box-shadow: 0 0.5rem 1rem rgba(255, 255, 255, 0.15) !important; 
}

body.dark-mode .text-muted {
    color: #aaaaaa !important; /* Light gray for muted text */
}

body.dark-mode .container img{ 
    border-radius: 20%;
}

body.dark-mode .form-control {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

/* ========================================= */
/* DARK MODE GRADIENT APPLICATION            */
/* ========================================= */

/* Apply the custom three-color gradient to the .gradient-text element ONLY IN DARK MODE */
body.dark-mode .gradient-text {
    background-image: var(--dark-mode-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
}