/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007BFF;
    --primary-hover: #0056b3;
    --dark-bg: #1a1a2e;
    --light-bg: #f4f4f9;
    --text-color: #333;
    --light-text: #f0f0f0;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --menu-red: #e74c3c;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: var(--light-bg);
    
    /* --- FIX: UPDATED BACKGROUND IMAGE PATH --- */
    /* Note: We removed '/public_html/...' because browsers cannot read server paths.
       If this still doesn't work, try adding '/public' in front: url('/public/images/bg-Banner-Website.png')
    */
    background-image: url('/images/bg-Banner-Website.png');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: var(--text-color);
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
    background-color: #f8f9fa;
    padding: 8px 0;
    font-size: 1.1rem;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Social Media Icons --- */
.social-media {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-media a {
    color: #6c757d;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.2s;
}

.social-media a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}


/* --- Header Actions --- */
.header-actions {
    display: flex;
    align-items: center;
}

/* --- Red Navigation Bar --- */
.navigation-bar {
    background-color: #314f92;
}

.navigation-bar .container {
    position: relative;
    padding: 0 10px;
}

/* --- j-menu Styles --- */

/* 1. Global Reset for Menu Items */
.desktop-main-menu-wrapper ul.j-menu,
.desktop-main-menu-wrapper ul.j-menu * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* --- BASE DESKTOP STYLES (For very large screens > 1600px) --- */
.desktop-main-menu-wrapper ul.j-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center; /* Centers the menu */
    align-items: center;
    gap: 0; 
    
    /* CRITICAL FIX: Allows menu to wrap to a 2nd line if it absolutely cannot fit */
    flex-wrap: wrap; 
}

.desktop-main-menu-wrapper ul.j-menu > li > a {
    display: flex;
    align-items: center;
    gap: 0.25rem; 
    
    /* Standard Padding for huge screens */
    padding: 0.9375rem 0.8rem; 
    
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem; 
    white-space: nowrap; 
    transition: background-color 0.3s, transform 0.2s;
}

.desktop-main-menu-wrapper ul.j-menu > li > a i {
    font-size: 1.1rem;
    min-width: 1.125rem;
    text-align: center;
}

.desktop-main-menu-wrapper ul.j-menu > li > a:hover {
    background-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.desktop-main-menu-wrapper ul.j-menu > li.active > a {
    background-color: rgba(0, 0, 0, 0.25);
    font-weight: 600;
}

/* --- COMPACT DESKTOP & 125% SCALE FIX (992px to 1600px) --- */
/* This targets your 1920x1080 screen at 125% scale (which equals 1536px) */
@media (min-width: 992px) and (max-width: 1600px) {
    .desktop-main-menu-wrapper ul.j-menu > li > a {
        /* Reduce padding drastically to fit 13 items on one line */
        padding: 0.9375rem 0.4rem; 
        
        /* Slightly reduce font size */
        font-size: 0.8rem; 
        
        /* Reduce gap between icon and text */
        gap: 0.15rem;
    }
    
    .desktop-main-menu-wrapper ul.j-menu > li > a i {
        font-size: 0.95rem; /* Smaller icons */
    }
}

/* --- TABLET / LAPTOP MODE (769px to 991px) --- */
@media (min-width: 769px) and (max-width: 991px) {
    .desktop-main-menu-wrapper ul.j-menu > li > a {
        padding: 0.8rem 0.35rem; 
        font-size: 0.75rem; /* Very compact text */
    }
    
    .desktop-main-menu-wrapper ul.j-menu > li > a i {
        font-size: 0.9rem;
    }
}

/* --- MOBILE RESPONSIVENESS (Max-width 768px) --- */
@media (max-width: 768px) {

    .desktop-main-menu-wrapper {
        width: 100%;
    }

    .desktop-main-menu-wrapper ul.j-menu {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .desktop-main-menu-wrapper ul.j-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .desktop-main-menu-wrapper ul.j-menu > li:last-child {
        border-bottom: none;
    }

    .desktop-main-menu-wrapper ul.j-menu > li > a {
        padding: 0.875rem 1.25rem; 
        font-size: 1rem; 
        justify-content: flex-start;
        width: 100%;
        
        /* Disable hover movement on touch */
        transform: none !important; 
    }

    .desktop-main-menu-wrapper ul.j-menu > li > a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: none;
    }
}

/* --- BASE DESKTOP STYLES (For very large screens > 1600px) --- */
.desktop-main-menu-wrapper ul.j-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center; 
    align-items: center;
    
    /* CHANGED: Prevent wrapping so it stays on one line */
    flex-wrap: nowrap; 
    white-space: nowrap; /* Ensures text doesn't break awkwardly */
    width: 100%; /* Ensure it uses full width */
}

/* ... (Keep your standard li > a styles) ... */

/* --- COMPACT DESKTOP FIX (Updated for better fit) --- */
/* Range: 992px to 1700px (Increased max-width slightly to catch more laptop scales) */
@media (min-width: 992px) and (max-width: 1700px) {
    .desktop-main-menu-wrapper ul.j-menu > li > a {
        /* CHANGED: Drastically reduced horizontal padding (0.2rem) */
        padding: 0.9375rem 0.2rem; 
        
        /* CHANGED: Slightly smaller font to guarantee fit */
        font-size: 0.78rem; 
        
        gap: 0.15rem;
    }
    
    .desktop-main-menu-wrapper ul.j-menu > li > a i {
        font-size: 0.9rem; /* Slightly smaller icons */
        min-width: 1rem;
    }
}
/*End Menu Bar*/

/* --- Special Offer Button --- */
.special-offer-item a {
    position: relative;
    display: inline-block;
    padding: 3px; /* Controls the border thickness */
    border-radius: 50px;
    overflow: hidden;
    text-decoration: none;
    margin: 5px 0;
    transition: transform 0.2s;
}

.special-offer-item a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    background: conic-gradient(
        from 0deg,
        #3498db, #9b59b6, #e74c3c, #f1c40f, #3498db
    );
    animation: rotate-gradient 4s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.special-offer-item a .links-text {
    position: relative;
    z-index: 2;
    display: block;
    background: #fff;
    padding: 6px 15px;
    border-radius: 48px;
    color: #27ae60;
    font-weight: bold;
}

.special-offer-item a:hover {
    transform: scale(1.05);
}


/* --- Mobile Menu Trigger --- */
.menu-trigger {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 15px 0;
}

/* --- Slideshow Styles --- */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    overflow: hidden; /* Prevent child elements from causing scroll */
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    vertical-align: middle;
    object-fit: cover;
}

.slide-text {
    color: #f2f2f2;
    font-size: 1.5rem;
    padding: 20px;
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
}

.slide-text h1 {
    margin: 0;
    font-size: 3rem;
}

.slide-text p {
    font-size: 1rem;
    margin-top: 10px;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .slide-text h1 {
        font-size: 2.5rem;
    }
    .slide-text p {
        font-size: 1rem;
    }
    .prev, .next {
        font-size: 16px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .slide-text {
        font-size: 1rem;
        padding: 15px;
        bottom: 20px;
    }
    .slide-text h1 {
        font-size: 2rem;
    }
    .slide-text p {
        font-size: 0.9rem;
    }
    .prev, .next {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .slide-text {
        font-size: 0.9rem;
        padding: 10px;
        bottom: 15px;
    }
    .slide-text h1 {
        font-size: 1.5rem;
    }
    .slide-text p {
        font-size: 0.8rem;
    }
    .prev, .next {
        font-size: 12px;
        padding: 8px;
    }
}


@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Gradient Animation Keyframes */
@keyframes rotate-gradient {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.featured-products { padding: 60px 0; }
.featured-products h2 { text-align: center; font-size: 2.5rem; margin-bottom: 40px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }

.product-card img { max-width: 100%; height: auto; margin-bottom: 15px; }
.product-card h3 { font-size: 1.2rem; margin: 10px 0; }
.product-price { font-size: 1.3rem; font-weight: bold; color: var(--primary-color); margin-bottom: 20px; }

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
.btn:hover { background: var(--primary-hover); transform: translateY(-2px); }


/* --- Footer --- */
.site-footer {
    background: var(--dark-bg);
    color: var(--light-text);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .site-header .container {
        justify-content: space-between;
    }

    .header-search {
        order: 3;
        width: 100%;
        margin-top: 15px;
        min-width: unset;
    }

    .menu-trigger {
        display: block; /* Show hamburger */
    }

    /* Hide desktop nav, style mobile nav as a slide-out drawer */
    .desktop-main-menu-wrapper {
        display: block; /* Keep it in the DOM */
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen */
        width: 280px;
        height: 100%;
        background-color: #2c3e50;
        box-shadow: 2px 0 5px rgba(0,0,0,0.5);
        transition: left 0.3s ease-in-out;
        z-index: 1001; /* Above the header */
    }

    .desktop-main-menu-wrapper.active {
        left: 0; /* Slide into view */
    }

    .desktop-main-menu-wrapper ul.j-menu {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 60px;
        gap: 0;
    }

    .desktop-main-menu-wrapper ul.j-menu > li > a {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .desktop-main-menu-wrapper ul.j-menu > li > a i {
        font-size: 1.2rem;
    }
    
    /* --- FIX for Special Offer button in mobile menu --- */
    .special-offer-item a::before {
        display: none; /* Hide the gradient pseudo-element */
    }

    /* Revert special offer button styles for mobile menu */
    .special-offer-item a {
        padding: 15px 20px !important; /* Match other menu items */
        margin: 0;
        overflow: visible;
        background: none;
        box-shadow: none;
    }

    .special-offer-item a .links-text {
        background: none;
        padding: 0;
        color: white;
        font-weight: 500;
    }
}

/* Responsive styles for the top bar */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .contact-info {
        justify-content: center;
        text-align: center;
    }
}


/*Our App*/
/* Define the flowing gradient animation */
    @keyframes gradient-flow {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }

    /* Apply the animation */
    .animated-border-gradient {
        /* Define the colors: Green -> Pink -> Purple -> Blue -> Back to Green for smooth loop */
        background: linear-gradient(270deg, #4ade80, #ec4899, #9333ea, #3b82f6, #4ade80);
        background-size: 400% 400%;
        animation: gradient-flow 3s ease infinite;
    }