/* ==========================================
   EASYPARA RESPONSIVE DESIGN SYSTEM
   Mobile-First Approach
   ========================================== */

/* ==========================================
   BASE - MOBILE FIRST (320px+)
   All base styles are mobile-optimized
   ========================================== */

/* Responsive Container - MOBILE ONLY */
@media (max-width: 575px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        margin: 0 auto;
    }
}

/* ==========================================
   RESPONSIVE TYPOGRAPHY
   ========================================== */

/* ==========================================
   UTILITY CLASSES - DISPLAY
   ========================================== */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-flex {
        display: flex !important;
    }
}

@media (max-width: 991px) {
    .d-mobile-none {
        display: none !important;
    }

    .d-mobile-block {
        display: block !important;
    }

    .d-mobile-flex {
        display: flex !important;
    }
}

/* Mobile Typography (Base) - ONLY FOR MOBILE */
@media (max-width: 767px) {
    body {
        font-size: 14px;
        line-height: 1.6;
    }

    h1,
    .page-title,
    .product-title-enhanced {
        font-size: 24px;
        line-height: 1.2;
    }

    h2,
    .section-title {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }

    h3,
    .product-title {
        font-size: 13px;
        line-height: 1.4;
    }

    h4 {
        font-size: 15px;
    }

    h5,
    h6 {
        font-size: 14px;
    }
}

/* ==========================================
   RESPONSIVE NAVIGATION & HEADER
   ========================================== */

/* Top Bar - Mobile ONLY */
@media (max-width: 767px) {
    .top-bar {
        padding: 8px 0;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
    }

    .top-bar-item {
        font-size: 12px;
    }
}

/* Header - Mobile */
@media (max-width: 991px) {
    .site-header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .site-header__announcement {
        padding: 6px 0 !important;
        font-size: 11px !important;
        height: 32px;
        overflow: hidden;
    }

    .site-header__announcement-inner {
        display: flex;
        flex-wrap: nowrap !important;
        animation: ticker 15s linear infinite;
        white-space: nowrap;
        gap: 40px !important;
        justify-content: flex-start !important;
    }

    @keyframes ticker {
        0% {
            transform: translateX(100%);
        }

        100% {
            transform: translateX(-100%);
        }
    }

    .site-header__announcement-item {
        flex: 0 0 auto;
        text-transform: none !important;
        font-weight: 500 !important;
    }

    .site-header__announcement-item i {
        font-size: 12px !important;
    }

    .site-header__main {
        padding: 0 !important;
        height: 70px !important;
        /* Increased height to fit larger logo */
        display: flex !important;
        align-items: center !important;
        background: #fff !important;
    }

    .site-header__main>.container {
        width: 100% !important;
        padding: 0 !important;
        height: 100% !important;
        max-width: none !important;
    }

    .site-header__main-inner {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 70px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 12px !important;
        /* Reset Grid behavioral conflicts */
        grid-template-columns: none !important;
        grid-template-areas: none !important;
        gap: 0 !important;
    }

    /* Container for Toggle - FIXED WIDTH SIDE */
    .site-header__start {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: 70px !important;
        min-height: 70px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Menu Toggle - ENLARGED & PERFECTLY ALIGNED */
    .site-header__nav-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        /* Forces correct vertical centering within parent flow */
        align-items: flex-start !important;
        gap: 6px !important;
        margin: 0 !important;
        padding: 0 4px !important;
        width: 50px !important;
        /* Enlarged target */
        height: 70px !important;
        /* Matches main header height */
        background: transparent !important;
        border: none !important;
        flex: 0 0 auto !important;
        cursor: pointer !important;
        /* Override absolute positioning from base styles */
        position: relative !important;
        top: auto !important;
        transform: none !important;
    }

    .site-header__nav-toggle-line {
        display: block !important;
        width: 30px !important;
        /* EXTRA WIDE & VISIBLE */
        height: 3px !important;
        /* THICKER LINES */
        background-color: #1a5f4f !important;
        border-radius: 3px !important;
        transition: all 0.3s ease !important;
        margin: 0 !important;
        position: static !important;
    }

    .site-header__branding {
        flex: 0 0 auto !important;
        /* Don't grow, stay in center */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 10px !important;
        height: 100% !important;
        overflow: visible !important;
    }

    .site-logo {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        height: 70px !important;
        /* Force explicit height */
        width: auto !important;
        gap: 2px !important;
        /* ELIMINATE THE GAP */
        text-decoration: none !important;
    }

    .site-logo__image {
        max-height: 40px !important;
        width: auto !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .site-logo__text {
        display: flex !important;
        /* Show text on mobile */
        flex-direction: column !important;
        gap: 0 !important;
        /* Remove gap */
        line-height: 1.1 !important;
        margin-left: 2px !important;
        /* Tighter gap between image and text */
    }

    .site-logo__title {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: var(--primary-teal, #1a5f4f) !important;
        font-family: 'League Spartan', sans-serif !important;
        white-space: nowrap !important;
    }

    .site-logo__subtitle {
        font-size: 8px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: #666 !important;
        white-space: nowrap !important;
    }

    /* Compact Actions - Right Side - FIXED WIDTH SIDE */
    .site-header__actions {
        flex: 1 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        /* Tighter for mobile */
        height: 70px !important;
        /* Full header height */
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    .site-header__action-label,
    .site-header__action-caret {
        display: none !important;
    }

    .site-header__action--dropdown {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Ensure all direct children of actions are flex items */
    .site-header__actions>* {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
    }

    .site-header__action-btn,
    .site-header__action-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px !important;
        margin: 0 !important;
        color: #1a5f4f !important;
        font-size: 20px !important;
        text-decoration: none !important;
        background: transparent !important;
        border: none !important;
        min-width: 40px !important;
        height: 40px !important;
    }

    /* Toggleable Search - MOBILE ONLY */
    .site-header__search {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 70px !important;
        background: #fff !important;
        z-index: 5000 !important;
        margin: 0 !important;
        padding: 0 12px !important;
        display: none !important;
        align-items: center !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }

    .site-header__search.is-active {
        display: flex !important;
    }

    .site-search {
        width: 100% !important;
        height: 44px !important;
        background: #f1f3f2 !important;
        border-radius: 22px !important;
        padding: 0 4px 0 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border: 1px solid #eee !important;
        position: relative !important;
        margin: 0 !important;
    }

    .site-search__input {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        flex: 1 !important;
        height: 100% !important;
        padding: 0 12px !important;
        font-size: 15px !important;
        color: #333 !important;
        outline: none !important;
    }

    .site-search__close {
        background: none !important;
        border: none !important;
        padding: 8px !important;
        color: #1a5f4f !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }

    .site-search__submit {
        background: #1a5f4f !important;
        color: #fff !important;
        border: none !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        position: static !important;
        /* Reset absolute from desktop */
        transform: none !important;
        /* Reset translate from desktop */
    }

    .site-search__submit i {
        font-size: 14px !important;
    }

    .site-header__action {
        display: flex !important;
        align-items: center !important;
    }

    .site-header__action-btn,
    .site-header__action-link {
        padding: 6px !important;
        height: 70px !important;
        /* Match header height */
        min-width: 40px !important;
        background: transparent !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        position: relative !important;
    }

    .site-header__action-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .site-header__action-icon i {
        font-size: 20px !important;
    }

    .site-header__badge {
        position: absolute !important;
        top: 2px !important;
        right: 2px !important;
        min-width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 4px !important;
        margin: 0 !important;
        z-index: 10 !important;
    }
}

/* Navigation - Mobile */
.navigation {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 0;
}

.nav-link {
    padding: 8px 12px;
}

/* Site Header Nav - Mobile Drawer Fix */
@media (max-width: 991px) {
    .site-header__nav {
        position: fixed !important;
        top: 0;
        left: -100%;
        width: 280px !important;
        height: 100vh !important;
        background: #fff !important;
        z-index: 2000 !important;
        display: flex !important;
        flex-direction: column !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
        padding: 0 !important;
        transform: none !important;
        visibility: visible !important;
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 60px;
    }

    .site-nav__item {
        border-bottom: 1px solid #f0f0f0;
    }

    .site-nav__link {
        padding: 16px 20px !important;
        border-radius: 0 !important;
        background: transparent !important;
        justify-content: flex-start;
        gap: 15px !important;
    }

    .site-nav__link i {
        width: 20px;
        text-align: center;
        font-size: 18px;
    }

    .site-nav__link::after {
        display: none !important;
    }

    .site-header__nav.is-open {
        left: 0;
    }

    .site-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 1999 !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .site-nav-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    z-index: 3001 !important;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.mobile-menu-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (min-width: 992px) {
    .mobile-menu-close {
        display: none !important;
    }
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

/* Mobile Menu - Hidden by default */
.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding: 60px 0 20px;
    flex-direction: column;
}

/* Show menu when toggled */
.nav-menu.show {
    left: 0;
}

/* Mobile menu overlay */
.nav-menu.show::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Mobile nav items */
.nav-menu .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
}

.nav-menu .nav-link,
.nav-menu .nav-highlight {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    width: 100%;
    justify-content: flex-start;
}

.nav-menu .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: var(--light-gray);
    margin: 0;
}

@media (max-width: 991px) {
    .nav-menu .dropdown.open .dropdown-menu {
        display: block;
    }

    /* Mobile Accordion Styles */
    .site-nav__item--mega .mega-menu {
        display: none;
        background: #f8f9fa;
        padding: 0;
        box-shadow: none;
        border-top: 1px solid var(--border-light);
    }

    .site-nav__item--mega.is-active .mega-menu {
        display: block;
    }

    .site-nav__item--mega.is-active .site-nav__trigger i.fa-chevron-down {
        transform: rotate(180deg);
    }

    .site-nav__item--mega .mega-sidebar {
        width: 100% !important;
        background: transparent !important;
    }

    .site-nav__item--mega .mega-cat-list {
        padding: 0;
    }

    .site-nav__item--mega .mega-cat-link {
        padding: 12px 24px !important;
        border-bottom: 1px solid var(--border-light);
        font-size: 14px !important;
    }

    .site-nav__item--mega .mega-content {
        display: none !important;
        /* Hide dynamic sub-content on mobile for now to keep it simple */
    }
}

/* ==========================================
   RESPONSIVE PRODUCT GRIDS
   ========================================== */

/* Mobile: 2 Columns Grid */
@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        /* Slightly smaller gap for more card width */
        padding: 0 8px !important;
        /* Smaller container padding */
    }
}

/* Product Card - Mobile */
@media (max-width: 767px) {
    .product-card {
        max-width: 100%;
    }

    .product-image {
        height: auto;
        min-height: 200px;
    }

    .product-image img {
        height: 200px;
        object-fit: contain;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 13px;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .product-brand {
        font-size: 12px;
    }

    .product-price {
        margin: 8px 0;
    }

    .current-price {
        font-size: 14px !important;
        font-weight: 800 !important;
    }

    .old-price {
        font-size: 11px !important;
    }

    .product-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 40px;
    }

    .product-card-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .product-btn-add,
    .product-btn-buy {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 4px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 700;
        min-height: 44px;
        text-transform: none;
        transition: all 0.2s ease;
    }

    .product-btn-add {
        background: #f0faf8;
        color: #1a5f4f;
        border: 1.5px solid #1a5f4f !important;
    }

    .product-btn-buy {
        background: linear-gradient(135deg, #1a5f4f, #145246);
        color: #fff !important;
        border: none !important;
    }

    .product-btn-add:active,
    .product-btn-buy:active {
        transform: scale(0.95);
    }
}

/* ==========================================
   RESPONSIVE SECTIONS
   ========================================== */

@media (max-width: 767px) {
    .section {
        padding: 40px 0 !important;
        margin: 0 !important;
    }

    .section-header {
        margin-bottom: 24px;
        padding: 0 16px;
    }
}

.section-title,
.product-title,
.btn,
.product-btn,
.product-btn-add,
.product-btn-buy,
.btn-buy-primary {
    margin-bottom: 4px;
    font-family: 'League Spartan', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-subtitle,
.nav-link {
    font-size: 16px;
    font-family: 'League Spartan', sans-serif !important;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.section-footer {
    margin-top: 20px !important;
}

.btn-premium-more {
    padding: 10px 24px !important;
    font-size: 13px !important;
    border-radius: 30px !important;
}

/* ==========================================
   RESPONSIVE PRODUCT DETAIL
   ========================================== */

/* Mobile: Stack Gallery and Info */
.product-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
}

.product-gallery {
    position: static;
    /* Remove sticky on mobile */
}

.main-image {
    margin-bottom: 12px;
}

.main-image img {
    height: 300px;
    padding: 12px;
}

.thumbnail-gallery {
    gap: 8px;
}

.thumbnail-btn {
    width: 60px;
    height: 60px;
}

.product-info-enhanced {
    padding: 0;
}

.product-title-enhanced {
    font-size: 22px;
    margin-bottom: 12px;
}

.product-price-box {
    margin: 16px 0;
}

.price-large {
    font-size: 26px;
}

.price-original {
    font-size: 18px;
}

/* Actions - Mobile */
.product-actions {
    flex-direction: column;
    gap: 12px;
}

.quantity-selector {
    width: 100%;
    justify-content: center;
}

.add-to-cart-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    min-height: 48px;
}

.wishlist-btn {
    width: 100%;
    min-height: 48px;
}

/* ==========================================
   RESPONSIVE CART
   ========================================== */

.cart-section {
    padding: 20px 0;
}

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

.cart-items {
    overflow-x: auto;
}

.cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}

.item-image {
    width: 100%;
    max-width: 150px;
}

.item-details {
    width: 100%;
}

.item-title {
    font-size: 15px;
}

.item-price {
    font-size: 16px;
}

/* ==========================================
   RESPONSIVE FOOTER
   ========================================== */

.footer {
    padding: 30px 0 20px;
}

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

.footer-section {
    text-align: center;
}

.footer-title {
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-links {
    gap: 8px;
}

.footer-link {
    font-size: 14px;
    padding: 6px 0;
}

.newsletter-form {
    flex-direction: column;
    gap: 8px;
}

.newsletter-input {
    width: 100%;
}

.newsletter-btn {
    width: 100%;
    min-height: 44px;
}

/* ==========================================
   RESPONSIVE CAROUSEL/PROMO
   ========================================== */

.promo-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE 10+ */
}

.promo-carousel::-webkit-scrollbar {
    display: none !important;
    /* Chrome, Safari, etc. */
}

/* Also apply to other horizontal scroll areas if any */
.nav-menu,
.navigation {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.nav-menu::-webkit-scrollbar,
.navigation::-webkit-scrollbar {
    display: none !important;
}

.promo-card {
    min-width: 280px;
    scroll-snap-align: start;
}

/* Hero Carousel - Mobile */
#heroCarousel .carousel-item img {
    max-height: 250px;
}

.carousel-caption {
    padding: 16px;
}

.carousel-caption h5 {
    font-size: 18px;
}

.carousel-caption p {
    font-size: 13px;
}

/* Smaller carousel indicators on mobile */
#heroCarousel .carousel-indicators,
#heroCarousel .carousel-indicators * {
    padding: 2px 5px !important;
    gap: 4px !important;
    bottom: 6px !important;
}

#heroCarousel .carousel-indicators button,
#heroCarousel .carousel-indicators [type="button"],
#heroCarousel .carousel-indicators li,
#heroCarousel .carousel-indicators>* {
    width: 3px !important;
    height: 3px !important;
    min-width: 3px !important;
    min-height: 3px !important;
    max-width: 3px !important;
    max-height: 3px !important;
}

#heroCarousel .carousel-indicators button.active,
#heroCarousel .carousel-indicators [type="button"].active,
#heroCarousel .carousel-indicators li.active {
    width: 8px !important;
    min-width: 8px !important;
    max-width: 8px !important;
    height: 3px !important;
}

/* ==========================================
   RESPONSIVE CATEGORIES
   ========================================== */

/* Categories - Mobile ONLY */
@media (max-width: 767px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 16px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
}

/* ==========================================
   RESPONSIVE BRANDS
   ========================================== */

/* Brands - Mobile ONLY */
@media (max-width: 767px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .brand-card {
        padding: 16px;
    }
}

/* ==========================================
   ACCESSIBILITY - MOBILE
   ========================================== */

/* Touch Targets */
button,
.btn,
a.btn,
.product-btn,
.add-to-cart-btn,
.nav-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Focus States */
*:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* ==========================================
   SMALL MOBILE (max-width: 360px)
   ========================================== */

@media (max-width: 360px) {
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    h1,
    .page-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 1.25rem !important;
    }

    .product-image img {
        height: 180px;
    }

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

/* ==========================================
   TABLET - SMALL (min-width: 576px)
   ========================================== */

@media (min-width: 576px) {
    .container {
        max-width: 540px;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Typography */
    body {
        font-size: 15px;
    }

    h1,
    .page-title {
        font-size: 28px;
    }

    h2,
    .section-title {
        font-size: 22px;
    }

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

    .product-image img {
        height: 220px;
    }

    /* Categories: 3 columns */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    /* Brands: 3 columns */
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    /* Hero Carousel */
    #heroCarousel .carousel-item img {
        max-height: 320px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: row;
    }

    .newsletter-input {
        flex: 1;
    }

    .newsletter-btn {
        width: auto;
    }
}

/* ==========================================
   TABLET (min-width: 768px)
   ========================================== */

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    /* Typography */
    body {
        font-size: 16px;
    }

    h1,
    .page-title {
        font-size: 32px;
    }

    h2,
    .section-title {
        font-size: 26px;
    }

    h3,
    .product-title {
        font-size: 18px;
    }

    /* Header */
    .header-content {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .logo {
        width: auto;
        justify-content: flex-start;
    }

    .logo-text {
        display: flex;
    }

    .logo-img {
        max-height: 45px;
    }

    .search-container {
        flex: 1;
        order: 2;
    }

    .user-actions {
        width: auto;
        order: 3;
    }

    .user-action span {
        display: inline;
    }

    /* Top Bar */
    .top-bar-content {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
        font-size: 13px;
    }

    /* Products Grid: 3 Columns */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .product-image img {
        height: 240px;
    }

    /* Product Detail: 2 Columns */
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .main-image img {
        height: 400px;
    }

    .thumbnail-btn {
        width: 80px;
        height: 80px;
    }

    .product-title-enhanced {
        font-size: 26px;
    }

    .price-large {
        font-size: 32px;
    }

    /* Actions */
    .product-actions {
        flex-direction: row;
        align-items: center;
    }

    .add-to-cart-btn {
        width: auto;
    }

    .wishlist-btn {
        width: auto;
    }

    /* Cart */
    .cart-grid {
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }

    .cart-item {
        flex-direction: row;
        align-items: center;
    }

    .item-image {
        width: 120px;
    }

    .item-details {
        flex: 1;
    }

    /* Categories: 4 columns */
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* Brands: 4 columns */
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-section {
        text-align: left;
    }

    /* Hide mobile menu toggle */
    .mobile-menu-toggle {
        display: none;
    }

    /* Restore desktop navigation */
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        max-width: none;
        background: transparent;
        box-shadow: none;
        padding: 0;
        flex-direction: row;
        overflow-y: visible;
        display: flex !important;
        left: 0;
    }

    .nav-menu::before {
        display: none !important;
    }

    .nav-menu .nav-item {
        width: auto;
        border-bottom: none;
    }

    .nav-menu .nav-link,
    .nav-menu .nav-highlight {
        padding: 12px 16px;
        width: auto;
    }

    .nav-menu .dropdown-menu {
        position: absolute;
        background: var(--white);
        box-shadow: var(--shadow-medium);
        border: 1px solid var(--border-light);
    }
}

/* ==========================================
   DESKTOP - SMALL (min-width: 992px)
   ========================================== */

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    /* Typography */
    h1,
    .page-title {
        font-size: 38px;
    }

    h2,
    .section-title {
        font-size: 28px;
    }

    /* Products Grid: 4 Columns */
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .product-image img {
        height: 220px;
    }

    /* Product Detail */
    .product-detail-grid {
        gap: 60px;
    }

    .product-gallery {
        position: sticky;
        top: 120px;
    }

    .main-image img {
        height: 500px;
    }

    /* Hero */
    #heroCarousel .carousel-item img {
        max-height: 400px;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    /* Categories: 5 columns */
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* Brands: 5 columns */
    .brands-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==========================================
   DESKTOP (min-width: 1200px)
   ========================================== */

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    /* Typography */
    h1,
    .page-title {
        font-size: 48px;
    }

    h2,
    .section-title {
        font-size: 32px;
    }

    h3,
    .product-title {
        font-size: 18px;
    }

    /* Products maintain 4 columns but with more space */
    .products-grid {
        gap: 30px;
    }

    .product-image img {
        height: 250px;
    }

    .product-title-enhanced {
        font-size: 32px;
    }

    /* Hero */
    #heroCarousel .carousel-item img {
        max-height: 450px;
    }

    /* Categories: 6 columns */
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    /* Brands: 6 columns */
    .brands-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ==========================================
   LARGE DESKTOP (min-width: 1440px)
   ========================================== */

@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
    }

    /* Increased spacing for large screens */
    .section {
        padding: 80px 0;
    }

    .products-grid {
        gap: 32px;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {

    .header,
    .navigation,
    .footer,
    .user-actions,
    .add-to-cart-btn,
    .wishlist-btn,
    .mobile-menu-toggle {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .container {
        max-width: 100%;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   HIGH CONTRAST MODE
   ========================================== */

@media (prefers-contrast: high) {
    :root {
        --primary-teal: #006666;
        --text-primary: #000000;
        --border-light: #000000;
    }

    button,
    .btn,
    a {
        border: 2px solid currentColor;
    }
}

/* ==========================================
   DARK MODE SUPPORT - DISABLED
   ========================================== */

/* Dark mode disabled - force light mode always */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #ffffff !important;
        --light-gray: #f5f5f5 !important;
        --text-primary: #000000 !important;
        --text-secondary: #666666 !important;
        --border-light: #e0e0e0 !important;
    }

    html,
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        color-scheme: light !important;
    }
}