/* --- 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);
    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 & Navigation --- */
.site-header {
    background: #fff;
    padding-top: 15px;
    position: sticky;
    top: 0;
    z-index: 1002; /* Corrected: Raised z-index to be above the overlay */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.logo img {
    height: 60px;
    width: auto;
    vertical-align: middle;
}
        /* * This is the media query for responsiveness.
         * On screens 768px wide or smaller, the styles inside this block will apply.
        */
        @media (max-width: 768px) {
            .logo {
                /* We change the text-alignment to center, which centers the image inside */
                text-align: center;
            }
        }

/* --- Header Search --- */
.header-search {
    flex-grow: 1;
    min-width: 250px;
}

.header-search form {
    display: flex;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.header-search select,
.header-search input[type="text"] {
    border: none;
    padding: 10px;
    background-color: #fff;
}

.header-search select {
    background-color: #e9ecef;
}

.header-search input[type="text"] {
    flex-grow: 1;
}

.header-search button {
    background-color: var(--menu-red);
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* --- Header Actions --- */
.header-actions {
    display: flex;
    align-items: center;
}

/* --- Red Navigation Bar --- */
.navigation-bar {
    background-color: var(--menu-red);
}

.navigation-bar .container {
    position: relative;
    padding: 0 20px;
}

/* --- j-menu Styles --- */
.desktop-main-menu-wrapper ul.j-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px; /* Reduced gap */
}

    .desktop-main-menu-wrapper ul.j-menu > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 8px; /* Reduced horizontal padding */
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem; /* Reduced font size */
    white-space: nowrap; /* 👈 prevent text wrapping */
    transition: background-color 0.3s, transform 0.2s;
}


.desktop-main-menu-wrapper ul.j-menu > li > a i {
    font-size: 1.1rem;
    min-width: 18px;
    text-align: center;
}

.desktop-main-menu-wrapper ul.j-menu > li > a:hover {
    background-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Active state for current page */
.desktop-main-menu-wrapper ul.j-menu > li.active > a {
    background-color: rgba(0, 0, 0, 0.25);
    font-weight: 600;
}

/* --- 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;
}

/* --- Cart Button --- */
#cart-button {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color 0.3s;
}

#cart-button:hover {
    background: var(--primary-hover);
}

/* --- 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;
    }
}