/* =============================================
   Global Styles & Variables
   ============================================= */

:root {
    --primary-color: #5c00d4;
    /* Main Purple */
    --secondary-color: #f5f3fa;
    /* Light Purple Background */
    --text-color: #1a1a1a;
    --text-light: #5e5e5e;
    --border-color: #e0e0e0;
    /* Gray border */
    --white: #ffffff;
    --highlight: #ff3a71;
    /* Giveaway Pink */
    --star-color-filled: #d4a13e;
    --star-color-empty: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-type: none;
}

.header-container,
.main-nav,

/* Keep .main-nav here for desktop padding */

.footer-container,
.category-grid-container,
.specials-container,
.review-container,
.brand-marquee-container,
.product-carousel-container,
.faq-container,
.newsletter-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =============================================
   Header: Top Bar
   ============================================= */

header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* === UPDATED: Styles for the logo image === */

.logo a img.logo-image {
    height: 45px;
    /* Increased from 35px */
    width: auto;
}


/* === END UPDATED STYLES === */


/* Container to position dropdown relative to search bar */

.search-bar-container {
    position: relative;
    width: 40%;
    /* Match original search bar width */
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    border-radius: 20px;
    padding: 8px 15px;
    /* Removed width: 40% from here */
}

.search-bar i {
    color: var(--text-light);
    margin-right: 10px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 16px;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.header-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}


/* =============================================
   Header: Main Navigation
   ============================================= */

.main-nav {
    height: 50px;
    border-top: 1px solid var(--border-color);
    background-color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 30px;
}

.nav-links li {
    height: 100%;
    position: relative;
}

.nav-links li>a {
    display: flex;
    align-items: center;
    height: 100%;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links li>a i.fa-chevron-down {
    /* Target only dropdown arrows */
    font-size: 12px;
    margin-left: 5px;
}

.nav-links li:hover>a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-giveaways {
    background-color: var(--highlight);
    color: var(--white) !important;
    padding: 6px 15px;
    border-radius: 15px;
    height: auto !important;
    /* Overrides parent li height */
    border-bottom: none !important;
    /* Remove hover border */
}

.nav-giveaways:hover {
    color: var(--white) !important;
    opacity: 0.9;
}


/* --- HIDE MOBILE LINKS ON DESKTOP --- */

.mobile-only,
.mobile-separator {
    /* UPDATED */
    display: none !important;
}


/* =============================================
   Header: Dropdown Menus (UPDATED)
   ============================================= */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: none;
    gap: 30px;
    /* <-- FIX 1: Reduced horizontal gap between columns */
    z-index: 1100;
}

.dropdown-popular {
    display: none;
    flex-direction: row;
    width: 400px;
}

.dropdown-categories {
    display: none;
    flex-direction: row;
    width: 700px;
}

.dropdown-trigger:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* <-- FIX 2: Reduced vertical gap between links */
    flex-grow: 1;
    /* <-- FIX 3: Replaced fixed width */
    flex-basis: 0;
    /* <-- FIX 3: To make columns distribute evenly */
}

.dropdown-menu a {
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
}

.dropdown-menu a:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    text-decoration: none;
}


/* =============================================
   Live Search Dropdown
   ============================================= */

.search-results-dropdown {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: calc(100% + 5px);
    /* Position below search bar */
    left: 0;
    width: 100%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    /* Limit height and allow scroll */
    overflow-y: auto;
    z-index: 1500;
    /* Ensure it's above other elements */
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    /* Light separator */
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--secondary-color);
}

.search-result-image {
    width: 45px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.search-result-info {
    flex-grow: 1;
    overflow: hidden;
}

.search-result-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.search-result-tag {
    flex-shrink: 0;
    margin-left: 10px;
    background-color: var(--highlight);
    color: var(--white);
    padding: 3px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.search-results-footer {
    padding: 10px 15px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    border-top: 1px solid #f0f0f0;
}

.search-results-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

.search-results-message {
    padding: 15px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}


/* =============================================
   Hero Slider
   ============================================= */

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 20px auto;
    aspect-ratio: 16 / 6;
    overflow: hidden;
    border-radius: 20px;
    background-color: var(--secondary-color);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-pagination .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-pagination .dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-pagination .dot.active {
    background-color: var(--white);
    transform: scale(1.1);
}


/* =============================================
   Category Grid Section
   ============================================= */

.category-grid {
    padding: 60px 20px;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.grid-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.grid-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(92, 0, 212, 0.1);
    transform: translateY(-5px);
}

.grid-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.grid-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.grid-item p {
    display: none;
}

.grid-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 10px;
}


/* =============================================
   Specials Section
   ============================================= */

.specials-section {
    padding: 60px 20px;
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
}

.specials-container {
    display: flex;
    gap: 30px;
}

.deal-of-day {
    flex-basis: 30%;
}

.weekly-specials {
    flex-basis: 70%;
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.specials-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.deal-of-day h3 {
    margin-bottom: 0;
}

.countdown-timer {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.discount-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--highlight);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.deal-card {
    display: block;
    background-color: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.deal-card:hover {
    box-shadow: 0 8px 20px rgba(92, 0, 212, 0.1);
    transform: translateY(-5px);
}

.deal-image {
    width: 100%;
    height: 75%;
    object-fit: cover;
}

.deal-footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 25%;
    border-top: 1px solid var(--border-color);
}

.deal-footer h4 {
    font-size: 18px;
    font-weight: 600;
}

.deal-footer span,
.specials-info span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.deal-card:hover .deal-footer span,
.specials-card:hover .specials-info span {
    color: var(--primary-color);
}


/* Weekly Specials Grid */

.weekly-specials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.specials-card {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.specials-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(92, 0, 212, 0.08);
}

.specials-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 15px;
    border: 1px solid var(--border-color);
}

.specials-info {
    flex-grow: 1;
}

.specials-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}


/* =============================================
   Review Section
   ============================================= */

.review-section {
    padding: 60px 20px;
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
}

.review-section .section-header p {
    max-width: 450px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.review-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(92, 0, 212, 0.1);
    transform: translateY(-5px);
}

.review-rating {
    /* Style for review section stars */
    color: #28a745;
    font-size: 16px;
    margin-bottom: 15px;
}

.review-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.review-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1;
}

.review-author {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 20px;
}

.view-all-reviews-link {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.view-all-reviews-link:hover {
    opacity: 0.8;
}


/* =============================================
   Product Carousel Section
   ============================================= */

.product-carousel-section {
    padding: 60px 0;
}

.product-carousel-section.alt-bg {
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-header-row .section-header {
    text-align: left;
    margin-bottom: 0;
}

.section-header-row .section-header p {
    margin: 0;
    max-width: none;
}

.view-all-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 20px;
}


/* Product Card Styling */

.product-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(92, 0, 212, 0.1);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image .discount-tag {
    top: 12px;
    left: 12px;
    font-size: 11px;
}

.product-info {
    padding: 15px;
}

.product-info h4 {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}


/* === UPDATED PRODUCT RATING STYLES v4 === */

.product-rating {
    font-size: 14px;
    /* Base size */
    margin-bottom: 8px;
    /* Space below the rating line */
    line-height: 1;
    /* Prevent extra space below stars */
}


/* Style ALL star icons initially (sets default spacing) */

.product-rating i {
    margin-right: 2px;
    /* Small space between stars */
}


/* Style SOLID stars (filled and half) - NEW GOLDEN COLOR */

.product-rating i.fa-solid {
    /* Targets fa-star and fa-star-half-stroke */
    color: var(--star-color-filled);
    /* Use variable */
}


/* Style REGULAR stars (empty outline) - GREY */

.product-rating i.fa-regular.fa-star {
    color: var(--star-color-empty);
    /* Use variable */
}


/* Style the review count text specifically */

.review-count {
    display: block;
    /* Make it a block element to force it below */
    font-size: 13px;
    /* Slightly smaller text */
    color: var(--text-light);
    /* Lighter text color */
    font-weight: 500;
    margin-top: 4px;
    /* Add a little space above the review count */
}


/* === END UPDATED STYLES v4 === */

.product-slider {
    margin: 0 30px;
    padding: 5px;
}

.product-slider .swiper-button-next,
.product-slider .swiper-button-prev {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-slider .swiper-button-next:hover,
.product-slider .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: var(--white);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 15px rgba(92, 0, 212, 0.2);
}

.product-slider .swiper-button-next {
    right: -24px;
}

.product-slider .swiper-button-prev {
    left: -24px;
}

.product-slider .swiper-button-next::after,
.product-slider .swiper-button-prev::after {
    display: none;
}

.product-slider .swiper-button-next i,
.product-slider .swiper-button-prev i {
    font-size: 16px;
}

.product-slider .swiper-button-disabled {
    opacity: 0.2;
    pointer-events: none;
}


/* =============================================
   Brand Marquee Section
   ============================================= */

.brand-marquee-section {
    padding: 60px 0;
    background-color: #f8f9fc;
    /* LIGHTER BG */
    overflow-x: hidden;
}

.brand-marquee-section .section-header {
    margin-bottom: 40px;
    text-align: left;
}

.brand-marquee-section .section-header h2 {
    color: var(--text-color);
    /* DARK TEXT */
    font-size: 28px;
}

.brand-marquee-section .section-header p {
    color: var(--text-light);
    /* LIGHTER TEXT */
    font-size: 16px;
    max-width: 500px;
    margin: 10px 0 0 0;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

#marquee-bottom {
    margin-top: 20px;
}

.marquee-content {
    display: flex;
    width: max-content;
    will-change: transform;
}

.scroll-left {
    animation: scroll-left 40s linear infinite;
}

.scroll-right {
    animation: scroll-right 40s linear infinite;
}

.marquee-item {
    flex-shrink: 0;
    width: 180px;
    /* Width of the white box */
    height: 90px;
    /* Height of the white box */
    margin: 0 10px;
    background-color: var(--white);
    /* White background */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    /* Padding inside the white box */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    border: 1px solid var(--border-color);
    /* Add a subtle border */
}

.marquee-item img {
    max-width: 150px;
    /* Max width for logo */
    max-height: 200px;
    /* Max height for logo */
    object-fit: contain;
    /* Make sure logo fits inside */
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.faq-section {
    padding: 60px 20px;
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    font-size: 14px;
    color: var(--primary-color);
    transition: transform 0.3s ease-in-out;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.faq-answer p {
    padding: 0 0 20px 0;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.newsletter-section {
    padding: 50px 20px;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.newsletter-container {
    max-width: 700px;
    text-align: center;
}

.newsletter-container h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.newsletter-container p {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

.newsletter-form input {
    flex-grow: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
}

.newsletter-form button {
    border: none;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    padding: 15px 25px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.newsletter-form button:hover {
    opacity: 0.9;
}


/* =============================================
   Site Footer
   ============================================= */

.site-footer {
    background-color: #0f132e;
    color: #a9b0d6;
    padding: 60px 20px 20px 20px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #a9b0d6;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-payments {
    border-top: 1px solid #3a3f5a;
    padding-top: 30px;
}

.footer-payments h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.payment-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.payment-links a {
    color: #a9b0d6;
    font-size: 13px;
    transition: color 0.3s ease;
}

.payment-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #3a3f5a;
}

.footer-copyright p {
    font-size: 13px;
    color: #a9b0d6;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: #a9b0d6;
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--white);
}


/* =============================================
   ALL MOBILE RESPONSIVE STYLES
   ============================================= */

body.no-scroll {
    overflow: hidden;
}

.mobile-menu-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
}

@media (max-width: 1024px) {
    /* Tablet */
    .search-bar-container {
        display: none;
    }
    .grid-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
    .specials-container {
        flex-direction: column;
    }
    .review-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile */
    .header-container {
        flex-wrap: wrap;
        /* Allow header items to wrap */
        height: auto;
        /* Allow height to expand */
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .logo {
        flex-grow: 1;
        /* Let logo take available space */
    }
    /* Show mobile search bar */
    .search-bar-container {
        display: block;
        /* SHOW the search bar */
        width: 100%;
        /* Make it full width */
        order: 3;
        /* Put it at the bottom of the header */
        margin-top: 10px;
        /* Add space above it */
    }
    .header-links {
        display: none;
    }
    /* Hide DESKTOP top-right links */
    .mobile-menu-toggle {
        display: block;
    }
    .mobile-only,
    .mobile-separator {
        /* UPDATED */
        display: block !important;
    }
    /* === NEW: Style for the mobile separator === */
    .mobile-separator {
        margin-top: 15px !important;
        padding-top: 15px !important;
        border-top: 1px solid var(--border-color);
    }
    .header-container,
    .main-nav,
    .product-carousel-container,
    .review-container,
    .brand-marquee-container,
    .faq-container,
    .newsletter-container {
        padding: 0 15px;
    }
    .hero-slider {
        aspect-ratio: 16 / 9;
        border-radius: 0;
        margin: 0 auto 20px auto;
    }
    .slider-pagination {
        bottom: 10px;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 2000;
        overflow-y: auto;
        display: block;
        border-top: none;
        padding: 0;
    }
    .main-nav.active {
        right: 0;
    }
    .mobile-menu-close {
        display: block;
    }
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 60px 20px 20px 20px;
        gap: 0;
    }
    .nav-links li {
        width: 100%;
        height: auto;
    }
    .nav-links li>a {
        height: auto;
        width: 100%;
        padding: 15px 10px;
        border-bottom: 1px solid var(--border-color) !important;
        font-size: 18px;
    }
    .nav-links li:hover>a {
        color: var(--text-color);
        border-bottom-color: var(--border-color) !important;
    }
    .nav-links li>a i.fa-chevron-down {
        margin-left: auto;
    }
    /* Ensure arrow is right-aligned */
    .nav-giveaways {
        padding: 15px 10px;
        border-radius: 0;
        text-align: center;
        width: 100%;
    }
    .nav-giveaways:hover {
        opacity: 1;
    }
    .dropdown-trigger:hover .dropdown-menu {
        display: none;
    }
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 15px;
        width: 100% !important;
        flex-direction: column;
        gap: 0;
    }
    .dropdown-trigger.open .dropdown-menu {
        display: flex;
    }
    .dropdown-trigger.open>a {
        color: var(--primary-color);
        background-color: var(--secondary-color);
    }
    .dropdown-trigger.open>a i.fa-chevron-down {
        transform: rotate(180deg);
    }
    .dropdown-menu ul {
        width: 100%;
        gap: 0;
    }
    .dropdown-menu a {
        padding: 10px;
        border-bottom: 1px dashed var(--border-color);
        font-size: 16px;
    }
    .dropdown-menu ul:last-child li:last-child a {
        border-bottom: none;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .section-header p {
        font-size: 16px;
    }
    .grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    .weekly-specials-grid {
        grid-template-columns: 1fr;
    }
    .deal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
    .view-all-link {
        margin-left: 0;
    }
    .product-carousel-section {
        padding: 40px 0;
    }
    .review-grid {
        grid-template-columns: 1fr;
    }
    .view-all-reviews-link {
        display: block;
        text-align: center;
    }
    .marquee-item {
        width: 140px;
        height: 70px;
        padding: 10px;
    }
    .brand-marquee-section .section-header h2 {
        font-size: 24px;
    }
    .marquee-content.scroll-left {
        animation-duration: 35s;
    }
    .marquee-content.scroll-right {
        animation-duration: 40s;
    }
    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 25px;
    }
    .newsletter-form {
        flex-direction: column;
        border: none;
        background: transparent;
    }
    .newsletter-form input {
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }
    .newsletter-form button {
        margin-top: 10px;
        border-radius: 8px;
    }
    .product-card .product-info {
        padding: 12px;
    }
    .product-card .product-info h4 {
        font-size: 14px;
        margin-bottom: 5px;
    }
    .product-card .product-rating {
        font-size: 12px;
        margin-bottom: 5px;
    }
    .product-card .review-count {
        font-size: 11px;
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .grid-item {
        padding: 15px 10px;
    }
    .grid-item h3 {
        font-size: 14px;
    }
}

.account-dropdown-trigger {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.account-dropdown-trigger .account-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease;
    padding: 5px;
    border-radius: 4px;
}

.account-dropdown-trigger .account-link i.fa-chevron-down {
    font-size: 12px;
}

.account-dropdown-trigger:hover .account-link {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

.account-dropdown-trigger .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 10px;
    display: none;
    gap: 0;
    z-index: 1100;
    width: 260px;
}

.account-dropdown-trigger:hover .dropdown-menu {
    display: block;
}

.account-dropdown-trigger .dropdown-menu ul {
    width: 100%;
    flex-direction: column;
    gap: 0;
}

.account-dropdown-trigger .dropdown-menu a {
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 6px;
}

.account-dropdown-trigger .dropdown-menu a i {
    width: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
}

.account-dropdown-trigger .dropdown-menu a:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

.account-dropdown-trigger .dropdown-menu a:hover i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .account-dropdown-trigger {
        display: none;
    }
}

.flash-sale-section .product-card {
    border-color: #FF5733;
    transition: transform 0.3s ease;
    position: relative;
}

.flash-sale-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 87, 51, 0.2);
}

.product-badge.flash-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #FF5733;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.flash-sale-timer {
    background-color: var(--secondary-color);
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 10px;
    text-align: center;
}

.flash-sale-timer .timer-part {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    padding: 0 2px;
}

.just-for-you-section .product-card {
    border-color: #d6e4ff;
}

.just-for-you-section .product-card:hover {
    border-color: #0052cc;
    box-shadow: 0 10px 20px rgba(0, 82, 204, 0.1);
}

.load-more-btn-container {
    text-align: center;
    padding: 20px 0 40px 0;
    border-top: 1px solid var(--border-color);
    margin: 40px 20px 0 20px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.load-more-btn i {
    font-size: 14px;
}

.load-more-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 0, 212, 0.1);
}