/* ===== CSS Reset & Base Styles ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden !important;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

:root {
    --primary-color: #00a5a5;
    --primary-dark: #008585;
    --accent-color: #E60000;
    --accent-dark: #CC0000;
    --text-dark: #2d2d2d;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: #e8f4f4;
    padding-top: 160px;
    line-height: 1.6;
    direction: ltr;
    text-align: left;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== Header Styles ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 99999;
}

/* Top Red Strip */
.top-strip {
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 0;
}

.top-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 12px;
}

.top-link {
    color: var(--white);
    font-weight: 500;
    transition: opacity 0.3s;
}

.top-link:hover {
    opacity: 0.8;
}

.top-links .separator {
    color: rgba(255, 255, 255, 0.6);
}

/* Main Header */
.main-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 8px;
    color: var(--white);
    background: var(--accent-color);
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.partner-badges {
    display: flex;
    gap: 15px;
    align-items: center;
}

.partner-badges .badge-item {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--bg-light);
}

.badge-placeholder {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

/* Search Form */
.header-center {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    background: var(--accent-color);
    padding: 11px 22px;
    border-radius: 0 4px 4px 0;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--accent-dark);
}

/* Cart Section */
.header-right {
    display: flex;
    align-items: center;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 4px;
    color: var(--text-dark);
    transition: all 0.3s;
    background: var(--white);
}

.cart-link:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.cart-info {
    display: flex;
    flex-direction: column;
}

.cart-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Cart Badge for Mobile */
.cart-badge {
    display: none;
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
}

.cart-link {
    position: relative;
}

/* ===== Navigation ===== */
.main-nav {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 0;
    overflow: visible;
}

.main-nav .container {
    overflow: visible;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 18px 24px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-item.highlight .nav-link {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-item.highlight .nav-link:hover {
    border-bottom-color: var(--primary-color);
}

.nav-item.sale .nav-link {
    background: var(--accent-color);
    color: var(--white);
    border-radius: 4px;
}

.nav-item.sale .nav-link:hover {
    background: var(--accent-dark);
}

/* Dropdown Menu */
.nav-item.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 28px;
}

/* ===== Image Slider ===== */
.image-slider {
    margin-top: 20px;
    padding: 20px 0;
}

.image-slider-2 {
    padding: 20px 0;
}

.image-slider-container,
.image-slider-container-2 {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: var(--white);
    overflow: hidden;
}

.image-slide,
.image-slide-2 {
    display: none;
    width: 100%;
}

.image-slide.active,
.image-slide-2.active {
    display: block;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slider-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Slider Controls */
.image-slider-btn,
.image-slider-btn-2 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    width: 35px;
    height: 35px;
    border-radius: 3px;
    font-size: 18px;
    font-weight: normal;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-slider-btn:hover,
.image-slider-btn-2:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.image-slider-btn.prev,
.image-slider-btn-2.prev {
    left: 25px;
}

.image-slider-btn.next,
.image-slider-btn-2.next {
    right: 25px;
}

.image-slider-dots,
.image-slider-dots-2 {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.image-dot,
.image-dot-2 {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.image-dot.active,
.image-dot-2.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.image-dot:hover,
.image-dot-2:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ===== Main Content ===== */
.main-content {
    padding: 40px 0;
    background: var(--bg-light);
}

.main-content .container {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-section {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.filter-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.articles-list {
    max-height: 500px;
    overflow-y: auto;
    padding-left: 5px;
}

.articles-list::-webkit-scrollbar {
    width: 6px;
}

.articles-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.article-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.article-item:last-child {
    border-bottom: none;
}

.article-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.article-link {
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s;
}

.article-link:hover {
    transform: translateX(-5px);
}

.categories-list {
    list-style: none;
}

.categories-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    color: var(--text-dark);
    font-size: 14px;
    transition: color 0.3s, padding 0.3s;
    display: block;
}

.categories-list a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* ===== Product Section ===== */
.product-section {
    flex: 1;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: var(--text-dark);
}

.section-title .highlight {
    color: var(--accent-color);
}

/* ===== Mega Deals Slider ===== */
.mega-deals {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-control-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    color: #666;
    font-size: 18px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.slider-control-btn:hover {
    background: var(--white);
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-control-btn.prev-btn {
    order: 1;
}

.slider-control-btn.next-btn {
    order: 2;
}

.mega-slider-container {
    overflow: hidden;
    position: relative;
}

.mega-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.mega-card {
    min-width: calc(25% - 15px);
    flex-shrink: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    z-index: 2;
}

.badge-promo {
    background: var(--accent-color);
}

.badge-new {
    background: #10b981;
}

.badge-bestseller {
    background: #f59e0b;
}

.product-image {
    margin-bottom: 12px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 220px;
    min-height: 180px;
    object-fit: contain;
}

.mega-card .product-image img {
    max-height: 200px;
    min-height: 160px;
}

.image-placeholder {
    display: inline-block;
}

.image-placeholder svg {
    width: 120px;
    height: 120px;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    min-height: 38px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 12px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-add-cart {
    flex: 1;
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    text-align: center;
}

.btn-add-cart:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
}

.btn-view {
    background: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-view:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 5px solid var(--primary-color);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 10px;
}

.payment-methods {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.payment-title {
    font-size: 14px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.payment-logos {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.payment-logo {
    background: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}

.logo-placeholder {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

.payment-logo.bank .logo-placeholder {
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.copyright,
.powered-by {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 5px 0;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ===== Mobile Menu Styles ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 3px 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

.mobile-search-bar {
    display: none;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
}

.mobile-search-bar.active {
    display: block;
}

.mobile-search-bar .search-form {
    max-width: 100%;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Hide/Show utilities for mobile */
.hide-mobile {
    display: inline;
}

.show-mobile-inline {
    display: none;
}

.mobile-only-nav {
    display: none;
}

/* ===== Responsive Design ===== */

/* Desktop - 993px and above */
@media screen and (min-width: 993px) {
    .mobile-menu-toggle,
    .mobile-search-toggle,
    .mobile-search-bar {
        display: none !important;
    }
    
    .header-center {
        display: block !important;
    }
    
    .partner-badges {
        display: flex !important;
    }
    
    .cart-link .cart-info {
        display: flex !important;
    }
    
    /* Container width for desktop */
    .container {
        max-width: 1300px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
    }
    
    .main-nav {
        position: static !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        padding-top: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        background: var(--white) !important;
        border-top: 1px solid var(--border-color) !important;
    }
    
    .main-nav .container {
        overflow: visible !important;
    }
    
    .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        overflow: visible !important;
    }
    
    .nav-item {
        position: relative !important;
        border-bottom: none !important;
    }
    
    .nav-item.dropdown {
        position: relative !important;
    }
    
    .nav-item.dropdown .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
        transition: all 0.3s ease !important;
        display: block !important;
        min-width: 280px !important;
        background: var(--white) !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
        border-radius: 0 0 8px 8px !important;
        z-index: 9999 !important;
        padding: 10px 0 !important;
        list-style: none !important;
    }
    
    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    .dropdown-menu li {
        padding: 0 !important;
    }
    
    .dropdown-menu a {
        display: block !important;
        padding: 12px 24px !important;
        color: var(--text-dark) !important;
    }
}

/* Tablet and smaller */
@media screen and (max-width: 992px) {
    body {
        padding-top: 130px !important;
    }
    
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .partner-badges {
        display: none !important;
    }
    
    .header-center {
        max-width: 300px;
    }
    
    .main-content .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100% !important;
        display: block;
    }
    
    .mega-card {
        min-width: calc(33.333% - 15px);
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Mobile - 768px and below */
@media screen and (max-width: 768px) {
    body {
        padding-top: 70px !important;
    }
    
    /* Top Strip */
    .top-strip {
        padding: 3px 0;
    }
    
    .top-links {
        font-size: 10px;
        gap: 5px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile-inline {
        display: inline !important;
    }
    
    .mobile-only-nav {
        display: block !important;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 5px;
        padding-top: 5px;
    }
    
    .mobile-only-nav .nav-link {
        color: #fff !important;
    }
    
    /* Main Header */
    .main-header {
        padding: 8px 0;
    }
    
    .header-content {
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        order: -1;
        flex-shrink: 0;
    }
    
    .mobile-search-toggle {
        display: flex !important;
        flex-shrink: 0;
    }
    
    .header-left {
        flex: 1;
        min-width: 0;
    }
    
    .logo .logo-image {
        height: 40px !important;
        width: auto !important;
    }
    
    .header-center {
        display: none !important;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
    }
    
    .cart-link {
        padding: 6px 8px;
        border: none;
    }
    
    .cart-link .cart-info {
        display: none !important;
    }
    
    .cart-badge {
        display: block !important;
    }
    
    .cart-link svg {
        width: 22px;
        height: 22px;
    }
    
    /* Mobile Navigation Drawer */
    .main-nav {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        background: var(--white) !important;
        z-index: 9999 !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
        padding-top: 20px !important;
        box-shadow: 2px 0 15px rgba(0,0,0,0.2) !important;
        border-top: none !important;
    }
    
    .main-nav.active {
        left: 0 !important;
    }
    
    .main-nav .container {
        padding: 0 !important;
    }
    
    .nav-menu {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    .nav-link {
        padding: 15px 20px !important;
        font-size: 14px !important;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        border-bottom: none !important;
    }
    
    .nav-item.dropdown .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
        background: var(--bg-light) !important;
        padding: 0 !important;
        min-width: 100% !important;
    }
    
    .nav-item.dropdown.open .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-menu a {
        padding: 12px 20px 12px 35px !important;
    }
    
    .nav-item.sale .nav-link {
        margin: 10px 15px;
        border-radius: 6px;
    }
    
    /* Sliders */
    .image-slider,
    .image-slider-2 {
        padding: 10px 0 !important;
    }
    
    .image-slider-container,
    .image-slider-container-2 {
        padding: 0 !important;
        margin: 0 10px !important;
        border-radius: 8px !important;
    }
    
    .slider-image {
        border-radius: 8px;
    }
    
    .image-slider-btn,
    .image-slider-btn-2 {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }
    
    .image-slider-btn.prev,
    .image-slider-btn-2.prev {
        left: 15px !important;
    }
    
    .image-slider-btn.next,
    .image-slider-btn-2.next {
        right: 15px !important;
    }
    
    .image-slider-dots,
    .image-slider-dots-2 {
        bottom: 10px;
        gap: 8px;
    }
    
    .image-dot,
    .image-dot-2 {
        width: 8px;
        height: 8px;
    }
    
    /* Main Content */
    .main-content {
        padding: 15px 0 !important;
    }
    
    .main-content .container {
        padding: 0 10px !important;
        gap: 15px;
    }
    
    .section-title {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    /* Mega Deals Slider */
    .mega-deals {
        margin-bottom: 25px !important;
    }
    
    .section-header {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }
    
    .mega-slider-container {
        overflow: hidden !important;
    }
    
    .mega-slider-wrapper {
        gap: 10px !important;
    }
    
    .mega-card {
        min-width: calc(50% - 5px) !important;
        flex-shrink: 0 !important;
    }
    
    .slider-control-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    
    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .product-card {
        padding: 10px !important;
        border-radius: 10px !important;
    }
    
    .product-image img {
        max-height: 150px !important;
        min-height: 120px !important;
        width: 100% !important;
        object-fit: contain !important;
    }
    
    .product-name {
        font-size: 11px !important;
        min-height: 28px !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
    }
    
    .product-price {
        margin-bottom: 8px !important;
    }
    
    .current-price {
        font-size: 14px !important;
    }
    
    .old-price {
        font-size: 10px !important;
    }
    
    .product-actions {
        flex-direction: column !important;
        gap: 5px !important;
    }
    
    .btn-add-cart {
        width: 100% !important;
        padding: 8px !important;
        font-size: 11px !important;
    }
    
    .btn-view {
        display: none !important;
    }
    
    /* Sidebar */
    .sidebar {
        width: 100% !important;
        margin-top: 20px !important;
    }
    
    .sidebar-section {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .sidebar-title {
        font-size: 14px !important;
    }
    
    /* Footer */
    .site-footer {
        padding: 25px 0 15px !important;
        margin-top: 30px !important;
    }
    
    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .footer-title {
        font-size: 14px !important;
    }
    
    .footer-links a {
        font-size: 12px !important;
    }
    
    .payment-logos {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .payment-logo {
        padding: 6px 10px !important;
        min-width: 50px !important;
    }
    
    .back-to-top {
        width: 40px !important;
        height: 40px !important;
        right: 10px !important;
        bottom: 10px !important;
        font-size: 18px !important;
    }
}

/* Small Mobile - 480px and below */
@media screen and (max-width: 480px) {
    body {
        padding-top: 65px !important;
    }
    
    .top-strip {
        display: none !important;
    }
    
    .main-header {
        padding: 6px 0 !important;
    }
    
    .logo .logo-image {
        height: 35px !important;
    }
    
    .mobile-menu-toggle {
        width: 38px !important;
        height: 38px !important;
    }
    
    .hamburger-line {
        width: 20px !important;
    }
    
    .mega-card {
        min-width: 100% !important;
    }
    
    .product-grid {
        gap: 8px !important;
    }
    
    .product-card {
        padding: 8px !important;
    }
    
    .product-image img {
        max-height: 130px !important;
        min-height: 100px !important;
    }
    
    .product-name {
        font-size: 10px !important;
        min-height: 24px !important;
    }
    
    .current-price {
        font-size: 13px !important;
    }
    
    .btn-add-cart {
        padding: 7px !important;
        font-size: 10px !important;
    }
    
    .image-slider-btn,
    .image-slider-btn-2 {
        width: 26px !important;
        height: 26px !important;
        font-size: 11px !important;
    }
    
    .image-slider-btn.prev,
    .image-slider-btn-2.prev {
        left: 3px;
    }
    
    .image-slider-btn.next,
    .image-slider-btn-2.next {
        right: 3px;
    }
    
    .image-slider-dots,
    .image-slider-dots-2 {
        bottom: 10px;
        gap: 8px;
    }
    
    .image-dot,
    .image-dot-2 {
        width: 10px;
        height: 10px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .footer-links li {
        margin-bottom: 5px;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .sidebar-section {
        padding: 15px;
        border-radius: 10px;
    }
    
    .sidebar-title {
        font-size: 16px;
    }
}

/* ===== Touch-Friendly Improvements ===== */
@media (hover: none) and (pointer: coarse) {
    .btn-add-cart:active,
    .btn-view:active {
        transform: scale(0.95);
    }
    
    .product-card:hover {
        transform: none;
    }
}

/* ===== Additional Mobile Fixes ===== */
@media screen and (max-width: 768px) {
    .product-section {
        order: 0 !important;
    }
    
    .sidebar {
        order: 1 !important;
    }
    
    .articles-list {
        max-height: 250px !important;
    }
    
    .cart-table {
        display: block !important;
        overflow-x: auto !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important;
    }
    
    .notification {
        top: 75px !important;
        width: 92% !important;
        left: 4% !important;
        transform: none !important;
        max-width: none !important;
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
}

@media screen and (max-width: 480px) {
    .quick-view-content {
        width: 98% !important;
        max-height: 95vh !important;
        border-radius: 12px !important;
    }
    
    .quick-view-body {
        padding: 12px !important;
        grid-template-columns: 1fr !important;
    }
    
    .quick-view-info h2 {
        font-size: 16px !important;
    }
    
    .qv-price {
        font-size: 20px !important;
    }
    
    .qv-actions {
        flex-direction: column !important;
    }
    
    .qv-quantity {
        justify-content: center !important;
        margin-bottom: 10px !important;
    }
    
    .filter-select {
        padding: 10px !important;
        font-size: 14px !important;
    }
}

/* ===== Force All Images to be Responsive ===== */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* ===== Prevent Horizontal Scroll ===== */
.site-header,
.site-footer {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ===== Critical Mobile Fixes ===== */
@media screen and (max-width: 768px) {
    /* Force container width */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Header fixes */
    .site-header {
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .header-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .header-left {
        flex: 0 1 auto !important;
        max-width: 60% !important;
    }
    
    /* Product grid fixes */
    .product-section {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .product-grid {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .product-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Slider fixes */
    .mega-slider-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .mega-slider-wrapper {
        width: auto !important;
    }
    
    .image-slider-container,
    .image-slider-container-2 {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        margin: 0 10px !important;
    }
    
    /* Footer fixes */
    .site-footer {
        width: 100% !important;
        max-width: 100vw !important;
        padding-bottom: 80px !important;
    }
    
    .footer-columns {
        width: 100% !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .footer-column {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 15px 0 !important;
    }
    
    .footer-column:last-child {
        border-bottom: none;
    }
    
    .footer-title {
        font-size: 14px !important;
        margin-bottom: 10px !important;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-title::after {
        content: '+';
        font-size: 18px;
        font-weight: 300;
    }
    
    .footer-column.expanded .footer-title::after {
        content: '−';
    }
    
    .footer-links {
        display: none;
        padding-left: 10px;
    }
    
    .footer-column.expanded .footer-links {
        display: block;
    }
    
    .footer-links li {
        margin-bottom: 8px !important;
    }
    
    .footer-links a {
        font-size: 13px !important;
    }
    
    .footer-social {
        display: flex;
        justify-content: center;
        margin-top: 10px !important;
    }
    
    .payment-methods {
        padding: 15px 0 !important;
    }
    
    .payment-title {
        font-size: 12px !important;
        text-align: center;
    }
    
    .payment-logos {
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .payment-logo {
        width: 40px !important;
        height: 25px !important;
    }
    
    .footer-bottom {
        padding: 15px 0 !important;
    }
    
    .copyright {
        font-size: 11px !important;
        text-align: center;
    }
}

/* ===== Mobile Bottom Navigation ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9998;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav {
    display: none;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    font-size: 10px;
    padding: 5px 10px;
    position: relative;
    transition: color 0.2s;
    min-width: 60px;
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    margin-bottom: 3px;
}

.bottom-nav-item span {
    font-weight: 500;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary-color);
}

.bottom-nav-item.active svg {
    stroke: var(--primary-color);
}

.bottom-nav-cart {
    position: relative;
}

.bottom-cart-badge {
    position: absolute;
    top: 0;
    right: 10px;
    background: var(--accent-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

@media screen and (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
    }
    
    body {
        padding-bottom: 70px !important;
    }
    
    .back-to-top {
        bottom: 80px !important;
    }
}
