/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #040347;
    --primary-text-dark: #FFFFFF;
    --primary-button: #F0AF16;
    --primary-button-text: #040347;
    --section-bg: #F7F7F9;
    --card-border: #767086;
    --hover-color: #D89A12;
    --white: #FFFFFF;
    --black: #000000;
    --gray: #666666;
    --light-gray: #F7F7F9;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Header Styles */
.header {
    background-color: var(--primary-bg);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    margin-bottom: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.header .container {
    padding-bottom: 15px;
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: none;
}

.header {
    color: var(--primary-text-dark);
}

.logo a {
    display: inline-block;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--primary-text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-button);
}

.btn-login {
    background-color: var(--primary-button);
    color: var(--primary-button-text);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: var(--hover-color);
}

.search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.categories-dropdown {
    position: relative;
}

.categories-btn {
    background-color: var(--white);
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    width: 150px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-btn:hover {
    border-color: var(--primary-button);
}

.arrow {
    margin-left: 5px;
    font-size: 12px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    min-width: 200px;
    width: 100%;
    max-width: 250px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.categories-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--primary-text-dark);
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: rgba(240, 175, 22, 0.2);
    color: var(--primary-button);
}

.dropdown-item:first-child {
    border-radius: 5px 5px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 5px 5px;
}

.search-form {
    display: flex;
    flex: 1;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
}

.search-btn {
    background-color: var(--primary-button);
    color: var(--primary-button-text);
    padding: 12px 25px;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: var(--hover-color);
}

/* Hero Section */
.hero-section {
    background-color: var(--section-bg);
    padding: 0;
    margin: 0;
    margin-top: 0;
    position: relative;
}

.main-content {
    margin-top: 0;
    padding-top: 0;
}

header + main,
.header + main {
    margin-top: 0;
    padding-top: 0;
}

.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 600px;
    height: 600px;
}

.hero-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    min-height: 600px;
    height: 600px;
}

.hero-slide.active {
    display: block;
    position: relative;
    opacity: 1;
    z-index: 1;
}

.hero-slide-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 600px;
    min-height: 600px;
    max-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(4, 3, 71, 0.7) 0%, rgba(4, 3, 71, 0.5) 50%, rgba(4, 3, 71, 0.3) 100%);
    z-index: 1;
}

.hero-slide-banner .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.hero-slide-banner .hero-content {
    justify-content: flex-start;
    text-align: left;
}

.hero-slide-banner .hero-text {
    max-width: 600px;
    color: var(--white);
    text-align: left;
}

.hero-slide-banner .hero-subtitle {
    color: var(--primary-button);
}

.hero-slide-banner .hero-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-slide-banner .hero-description {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn-shop-now {
    background-color: var(--primary-button);
    color: var(--primary-button-text);
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-shop-now:hover {
    background-color: var(--hover-color);
}

.hero-image-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}


/* Carousel Navigation */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-button);
    color: var(--primary-button-text);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--hover-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.indicator.active {
    background-color: var(--primary-button);
    transform: scale(1.3);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Featured Section */
.featured-section {
    padding: 40px 0;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--hover-color);
}

@media (hover: none) {
    .product-card:hover {
        transform: none;
    }
}

.product-image {
    width: 100%;
    height: 250px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Featured Products specific styling - images only, no padding */
.featured-section .product-card .product-image {
    padding: 0;
    background-color: transparent;
}

.featured-section .product-image img {
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-bg);
    margin-bottom: 10px;
}

.product-unit {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 5px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 15px;
}

.product-availability {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 10px;
}

.btn-add-cart {
    width: 100%;
    background-color: var(--primary-button);
    color: var(--primary-button-text);
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.btn-add-cart:hover {
    background-color: var(--hover-color);
}

/* Categories Section */
.categories-section {
    padding: 40px 0;
    background-color: var(--section-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.category-card {
    padding: 30px 35px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.category-yellow {
    background-color: #FFEB3B;
}

.category-green {
    background-color: #4CAF50;
}

.category-red {
    background-color: #FF9800;
}

.category-pink {
    background-color: #F8BBD0;
}

.category-content {
    z-index: 2;
    position: relative;
    max-width: 50%;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.category-yellow .category-title,
.category-pink .category-title {
    color: #333;
}

.category-green .category-title,
.category-red .category-title {
    color: var(--white);
}

.category-description {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-yellow .category-description,
.category-pink .category-description {
    color: #333;
}

.category-green .category-description,
.category-red .category-description {
    color: var(--white);
}

.btn-category {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.category-yellow .btn-category {
    background-color: #5D4037;
    color: var(--white);
}

.category-green .btn-category {
    background-color: var(--black);
    color: var(--white);
}

.category-red .btn-category {
    background-color: #D32F2F;
    color: var(--white);
}

.category-pink .btn-category {
    background-color: #C2185B;
    color: var(--white);
}

.btn-category:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.category-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    z-index: 1;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
}

/* Offers Section */
.offers-section {
    padding: 40px 0;
    background-color: var(--section-bg);
}

.offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.offer-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid var(--card-border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.offer-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Mobile: Show full images without cropping */
@media (max-width: 767.98px) {
    .offer-card img {
        object-fit: contain;
        height: auto;
        max-height: 300px;
        background-color: var(--light-gray);
        padding: 10px;
    }
}

/* About Section */
.about-section {
    padding: 40px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.about-image {
    position: relative;
    width: 100%;
    height: 400px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
}

.about-text p {
    margin-bottom: 20px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 0;
}

/* Shop Page */
.shop-page {
    padding: 30px 0;
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.sidebar {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

.categories-box {
    margin-bottom: 20px;
}

.categories-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-btn {
    background-color: var(--primary-button);
    color: var(--primary-button-text);
    padding: 12px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--hover-color);
}

.products-area {
    flex: 1;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.3;
}

.search-results {
    color: var(--gray);
    margin-bottom: 20px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    font-size: 18px;
}

.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination ul {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    min-width: 44px;
    min-height: 44px;
    text-align: center;
    border: 1px solid var(--card-border);
    border-radius: 5px;
    text-decoration: none;
    color: var(--black);
    transition: all 0.3s;
}

.pagination .active span {
    background-color: var(--primary-button);
    color: var(--primary-button-text);
    border-color: var(--primary-button);
}

.pagination a:hover {
    background-color: var(--section-bg);
    border-color: var(--primary-button);
}

/* Contact Page */
.contact-page {
    padding: 40px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-details-section {
    width: 100%;
}

.contact-details-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.branch-icon {
    font-size: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item a {
    color: var(--primary-button);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

.contact-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 5px;
    flex-wrap: wrap;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
}

.contact-icon {
    font-size: 24px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icon {
    font-size: 24px;
    text-decoration: none;
}

.map-section {
    background-color: var(--light-gray);
    border-radius: 10px;
    min-height: 400px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.map-placeholder {
    text-align: center;
    color: var(--gray);
    font-size: 18px;
}

/* Footer */
.footer {
    background-color: var(--primary-bg);
    color: var(--primary-text-dark);
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-search {
    display: flex;
    margin-bottom: 30px;
    gap: 10px;
    position: relative;
}

.footer-search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    min-height: 44px;
}

.footer-search svg {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.5;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info strong {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

.terms-section h3,
.partners-section h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.terms-section p {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 14px;
}

.partner-logos {
    display: flex;
    gap: 15px;
}

.partner-logo {
    padding: 15px 25px;
    border-radius: 5px;
    font-weight: bold;
    color: var(--white);
}

.partner-logo.uber {
    background-color: var(--black);
}

.partner-logo.pickme {
    background-color: var(--yellow);
    color: var(--black);
}

.partner-logo.eatme {
    background-color: #FF6B35;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

body.menu-open {
    overflow: hidden;
}

/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }

    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: var(--primary-bg);
    }

    .header-content {
        flex-wrap: wrap;
        margin-bottom: 15px;
    }

    .logo-image {
        height: 60px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 0;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        display: block;
        color: var(--primary-text-dark);
    }

    .btn-login {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        padding: 12px 25px;
    }

    .search-bar {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .categories-btn {
        width: 100%;
    }

    .search-form {
        width: 100%;
    }

    .search-btn-text {
        display: none;
    }

    .search-btn {
        padding: 12px 20px;
        min-width: 50px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 14px;
    }

    .btn-shop-now {
        padding: 12px 30px;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: 220px;
        padding: 10px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card {
        min-height: 200px;
        padding: 20px 15px;
    }

    .category-title {
        font-size: 22px;
    }

    .category-description {
        font-size: 14px;
    }

    .offers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .offer-card img {
        height: auto;
        min-height: 200px;
        max-height: 300px;
        object-fit: contain;
        width: 100%;
    }

    .about-image {
        height: 250px;
    }

    .about-text {
        font-size: 14px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
        margin-top: 20px;
    }

    .products-area {
        order: 1;
    }

    .page-title {
        font-size: 24px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }


    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .partner-logos {
        flex-direction: column;
    }

    .partner-logo {
        width: 100%;
        text-align: center;
    }

    .map-section {
        min-height: 250px;
        height: 300px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 0;
        width: 100%;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--primary-text-dark);
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-btn-text {
        display: none;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .header-content {
        margin-bottom: 20px;
    }

    .nav-menu {
        display: flex;
        gap: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-image {
        height: 280px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .shop-layout {
        grid-template-columns: 200px 1fr;
    }

    .search-btn-text {
        display: inline;
    }

    .contact-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .shop-layout {
        grid-template-columns: 250px 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .shop-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .hero-section,
    .featured-section,
    .categories-section,
    .offers-section,
    .about-section,
    .contact-page {
        padding: 60px 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .btn-login,
    .btn-shop-now,
    .btn-add-cart,
    .btn-category,
    .category-btn,
    .search-btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-input {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .product-card:hover,
    .offer-card:hover,
    .category-card:hover {
        transform: none;
    }
}

/* Landscape Mobile Optimizations */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding: 0;
    }

    .hero-slide {
        min-height: 400px;
        height: 400px;
    }

    .hero-slide-banner {
        min-height: 400px;
        height: 400px;
        max-height: 400px;
    }

    .hero-carousel {
        min-height: 400px;
        height: 400px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .product-image {
        height: 220px;
    }

    .hero-image-img {
        max-height: 250px;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 10px;
    }

    .category-card {
        min-height: 180px;
    }
}
