﻿/* ============================================================
   LAYOUT STYLES - Pink/Purple Theme
   ============================================================ */

/* Root Variables - Pink/Purple Theme */
:root {
    --primary-pink: #E91E8C;
    --primary-purple: #7C3AED;
    --pink-light: #FDF0F8;
    --purple-light: #EDE9FE;
    --gradient-pink: linear-gradient(135deg, #E91E8C 0%, #7C3AED 100%);
    --gradient-soft: linear-gradient(135deg, #FDF0F8 0%, #EDE9FE 100%);
    --text-dark: #2D1B4E;
    --text-muted: #7B6B8A;
    --border-light: #F3E5F5;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(124,58,237,0.08);
    --shadow-md: 0 4px 16px rgba(233,30,140,0.12);
}

/* Base responsive fixes */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
}

body {
    overflow-x: hidden !important;
    width: 100% !important;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ========== MODAL STYLES ========== */
.modal {
    background: rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}

.modal-content {
    background: linear-gradient(135deg, #FFF5F9 0%, #FDF0F8 100%);
    color: var(--text-dark);
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #E91E8C 0%, #7C3AED 100%);
    border-bottom: none;
    padding: 16px 24px;
}

    .modal-header .modal-title {
        font-family: 'DM Sans', sans-serif;
        font-size: 18px;
        font-weight: 600;
        color: white;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        background: transparent;
        -webkit-text-fill-color: white;
        padding: 0;
    }

        .modal-header .modal-title i {
            color: white;
            font-size: 18px;
        }

    .modal-header .btn-close {
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        padding: 8px;
        opacity: 1;
        transition: all 0.2s;
    }

        .modal-header .btn-close:hover {
            background: rgba(255,255,255,0.3);
            transform: rotate(90deg);
        }

.modal-body {
    padding: 20px 24px;
    background: transparent;
    color: var(--text-dark);
}

@media (max-width: 480px) {
    .modal-body {
        padding: 16px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-footer {
        padding: 12px 16px;
    }

    .modal-body .btn-primary,
    .modal-body .btn-outline-primary,
    .modal-body .btn-secondary {
        width: 100%;
        margin-bottom: 8px;
    }
}

.modal-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 8px;
}

.modal-body .text-muted {
    color: var(--text-muted) !important;
    font-size: 13px;
}

.modal-footer {
    background: rgba(253, 240, 248, 0.8);
    border-top: 1px solid var(--border-light);
    padding: 12px 24px;
}

.modal-body .form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.modal-body .form-control {
    border: 1.5px solid #F3E5F5;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s ease;
    background: white;
}

    .modal-body .form-control:focus {
        border-color: var(--primary-pink);
        box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
        outline: none;
    }

.modal-body .btn-primary,
.modal-footer .btn-primary {
    background: linear-gradient(135deg, #E91E8C 0%, #7C3AED 100%);
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

    .modal-body .btn-primary:hover,
    .modal-footer .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(233, 30, 140, 0.3);
    }

/* ========== FLOATING SIDEBAR ========== */
.floating-toggle-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.floating-sidebar {
    position: fixed;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    border: 1px solid pink;
}

    .floating-sidebar.open {
        right: 0;
    }

.floating-toggle {
    background: #25D366;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    color: white;
}

.sidebar-item.location {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .sidebar-item.location i {
        color: #fff;
    }

.sidebar-item {
    width: 42px;
    height: 42px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    color: #fff;
    transition: all 0.3s ease;
}

    .sidebar-item i {
        pointer-events: none;
    }

    .sidebar-item:hover {
        transform: scale(1.1);
    }

.whatsapp {
    color: #25D366;
}

.facebook {
    color: #1877F2;
}

.instagram {
    color: #E1306C;
}

.address {
    color: #ff4ecd;
}

@media (max-width: 480px) {
    .sidebar-item {
        width: 26px;
        height: 26px;
        margin: 6px 0;
        font-size: 16px;
        min-width: 24px;
        min-height: 24px;
    }

        .sidebar-item.location {
            width: 26px;
            height: 26px;
        }
}

/* ========== FLOATING BUTTONS ========== */
.floating-buttons {
    position: fixed;
    bottom: 24px;
    z-index: 999;
}

    .floating-buttons.left {
        left: 20px;
    }

    .floating-buttons.right {
        right: 20px;
    }

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
    }

        .floating-buttons.left {
            left: 16px;
        }

        .floating-buttons.right {
            right: 16px;
        }

    .floating-btn {
        width: 48px;
        height: 48px;
    }

        .floating-btn svg {
            width: 22px;
            height: 22px;
        }
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #c17b4c;
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .floating-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(233, 30, 140, 0.3);
    }

    .floating-btn svg {
        width: 24px;
        height: 24px;
    }

.btn-tooltip {
    position: absolute;
    bottom: 65px;
    background: var(--primary-purple);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.floating-btn:hover .btn-tooltip {
    opacity: 1;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-pink);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ========== ADDRESS POPUP MODAL ========== */
.address-popup,
.chat-modal,
.quick-contact-modal {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: linear-gradient(135deg, #FFF5F9 0%, #FDF0F8 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    max-width: 340px;
    width: calc(100% - 40px);
    overflow: hidden;
}

@media (max-width: 768px) {
    .address-popup,
    .chat-modal,
    .quick-contact-modal {
        bottom: 80px;
        right: 12px;
        max-width: 320px;
        width: calc(100% - 24px);
    }
}

@media (max-width: 480px) {
    .address-popup,
    .chat-modal,
    .quick-contact-modal {
        width: calc(100% - 24px);
        max-width: none;
        bottom: 70px;
        right: 12px;
        left: auto;
    }
}

.address-popup.show,
.chat-modal.show,
.quick-contact-modal.show {
    display: block;
    animation: fadeUp 0.2s ease;
}

.address-header,
.chat-header,
.quick-contact-header {
    background: #c17b4c;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .address-header h3,
    .chat-header h3,
    .quick-contact-header h3 {
        font-size: 16px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .address-header h3 svg,
        .chat-header h3 svg {
            width: 20px;
            height: 20px;
        }

.address-close,
.chat-close,
.quick-contact-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.address-body {
    padding: 16px;
}

.address-detail {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

/* ========== MAIN NAVBAR ========== */
.navbar {
    padding-top: 0px;
    width: 100%;
    overflow-x: visible !important;
    position: relative;
}

.nav-top {
    width: 100%;
    overflow-x: hidden;
}

    .nav-top .container {
        padding: 0 15px;
    }

.nav-top-content {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    font-size: 12px;
    scrollbar-width: none;
}

    .nav-top-content::-webkit-scrollbar {
        display: none;
    }

@media (max-width: 480px) {
    .nav-top-content {
        font-size: 10px;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }
}

.nav-main {
    width: 100%;
}

    .nav-main .container {
        width: 100%;
        padding: 0 15px;
    }

.nav-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

@media (max-width: 768px) {
    .nav-main-content {
        flex-wrap: wrap;
    }

    .nav-logo {
        flex-shrink: 0;
    }

    .mobile-search-toggle {
        display: flex !important;
    }

    .nav-actions {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .nav-toggle {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .nav-main-content {
        gap: 8px;
    }

    .nav-logo span {
        font-size: 16px;
    }

    .logo-img {
        height: 32px;
    }

    .nav-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

        .nav-btn span {
            display: none;
        }

        .nav-btn i {
            font-size: 18px;
        }
}

@media (min-width: 769px) {
    .mobile-search-toggle {
        display: none !important;
    }

    .nav-toggle {
        display: none !important;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.nav-logo span {
    font-weight: 700;
    font-size: 18px;
    background: #c17b4c;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-search {
    flex: 1;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
}

@media (max-width: 768px) {
    .nav-search {
        display: none;
    }
}

.nav-search input {
    width: 100%;
    padding: 10px 16px 10px 52px;
    height: 44px;
    line-height: 1.2;
    box-sizing: border-box;
    border: 1.5px solid var(--border-light);
    border-radius: 40px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.nav-search-icon {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.nav-btn-cart {
    background: #bb1b80;
    color: white;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-pink);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.allMattress {
    color: white;
}

.mobile-search-container {
    width: 100%;
    background: white;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
}

.mobile-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

    .mobile-search-wrapper input {
        flex: 1;
        padding: 10px 12px 10px 44px;
        border: 1.5px solid var(--border-light);
        border-radius: 40px;
        font-size: 14px;
        outline: none;
    }

.mobile-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
}

.nav-categories {
    width: 100%;
    background: white;
    border-top: 1px solid var(--border-light);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

@media (max-width: 768px) {
    .nav-categories {
        display: none;
    }

        .nav-categories.show {
            display: block;
        }
}

.nav-categories-content {
    display: flex;
    gap: 20px;
    padding: 12px 16px;
    white-space: nowrap;
    min-width: min-content;
}

.nav-cat-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #c17b4c;
    padding: 6px 16px;
    border-radius: 40px;
}

    .nav-cat-link:hover {
        background: linear-gradient(135deg, #7C3AED, #E91E8C);
        color: white !important;
    }

.nav-toggle {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--primary-purple);
    cursor: pointer;
    display: none;
    padding: 8px;
}

.mobile-search-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--primary-purple);
    cursor: pointer;
    display: none;
    padding: 8px;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    overflow: visible !important;
}

.user-menu {
    display: none;
    position: absolute;
    top: 110%;
    right: 10px;
    min-width: 220px;
    max-width: calc(100vw - 20px);
    background: #bb1b80;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.25s ease;
}

    .user-menu.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .user-menu a,
    .user-menu .logout-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        color: #f1f5f9;
        text-decoration: none;
        font-size: 14px;
        transition: 0.2s;
        width: 100%;
        background: none;
        border: none;
        cursor: pointer;
    }

        .user-menu a i,
        .user-menu .logout-btn i {
            color: #ff9ed4;
            width: 18px;
        }

        .user-menu a:hover,
        .user-menu .logout-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.95rem;
        }

.modal-submit-btn {
    background: white;
    color: var(--purple);
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-navigation {
    color: white !important;
    max-width: 100%;
}

    .nav-navigation:hover {
        color: navajowhite !important;
    }

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert messages */
.alert-success, .alert-warning, .alert-info {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: calc(100% - 40px);
    background: linear-gradient(135deg, #f57abf, #9f72ed) !important;
    border: 1px solid purple;
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .alert-success, .alert-warning, .alert-info {
        top: 70px;
        right: 12px;
        left: 12px;
        max-width: none;
        font-size: 12px;
        padding: 10px 16px;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Chat Modal Specific Styles */
.chat-modal .chat-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
}

.chat-message {
    margin-bottom: 12px;
    display: flex;
}

    .chat-message.bot {
        justify-content: flex-start;
    }

    .chat-message.user {
        justify-content: flex-end;
    }

.message-content {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    position: relative;
}

.chat-message.bot .message-content {
    background: #f0f0f0;
    color: #333;
}

.chat-message.user .message-content {
    background: #c17b4c;
    color: white;
}

.chat-timestamp {
    font-size: 10px;
    opacity: 0.7;
    display: block;
    margin-top: 4px;
}

.chat-footer {
    display: flex;
    padding: 12px;
    border-top: 1px solid #eee;
    gap: 8px;
}

    .chat-footer input {
        flex: 1;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 20px;
        outline: none;
    }

    .chat-footer button {
        background: #c17b4c;
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        color: white;
        cursor: pointer;
    }

/* Quick Contact Options */
.quick-contact-options {
    padding: 16px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

    .contact-option:hover {
        background: #f9f9f9;
    }

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-details h4 {
    margin: 0;
    font-size: 14px;
}

.contact-details p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.contact-details small {
    font-size: 10px;
    color: #999;
}

.whatsapp .contact-icon {
    color: #25D366;
}

.phone .contact-icon {
    color: #E91E8C;
}

.email .contact-icon {
    color: #7C3AED;
}
/* ============================================
   COMPLETE MOBILE RESPONSIVE CSS
   ============================================ */

/* Mobile Base Styles */
@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Top Bar Mobile */
    .brand-topbar-container {
        flex-direction: column !important;
        padding: 10px 15px !important;
        gap: 10px !important;
    }

    .brand-topbar-left {
        font-size: 11px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .brand-topbar-search {
        width: 100% !important;
        max-width: 100% !important;
        order: 3 !important;
    }

        .brand-topbar-search .brand-search input {
            font-size: 13px !important;
            padding: 8px 35px !important;
        }

    .brand-topbar-right {
        font-size: 11px !important;
        text-align: center !important;
    }

    /* Hero Video Section Mobile */
    .hero-video-section {
        height: 100vh !important;
        min-height: 550px !important;
    }

    .hero-nav-container {
        flex-direction: column !important;
        padding: 12px 15px !important;
        gap: 12px !important;
    }

    .hero-logo {
        width: 100% !important;
        justify-content: center !important;
    }

    .hero-logo-img {
        height: 40px !important;
        width: 40px !important;
    }

    .hero-logo-title {
        font-size: 1rem !important;
    }

    .hero-logo-tagline {
        font-size: 0.6rem !important;
    }

    /* Mobile Menu Toggle */
    .hero-mobile-toggle {
        display: flex !important;
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 20;
    }

    /* Mobile Actions Menu */
    .hero-actions {
        display: none !important;
        width: 100% !important;
        flex-direction: column !important;
        gap: 10px !important;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        padding: 15px;
        border-radius: 12px;
        margin-top: 10px;
    }

        .hero-actions.show {
            display: flex !important;
        }

    .hero-login-btn,
    .hero-cart-btn,
    .hero-service-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px !important;
    }

        .hero-login-btn span,
        .hero-cart-btn span,
        .hero-service-btn span {
            display: inline-block !important;
        }

    /* Hero Content Mobile */
    .hero-content {
        align-items: flex-start !important;
        padding-top: 100px !important;
    }

    .hero-container {
        padding: 0 20px !important;
    }

    .hero-text {
        text-align: center !important;
        max-width: 100% !important;
    }

    .hero-badge {
        font-size: 11px !important;
        padding: 4px 14px !important;
        margin-bottom: 15px !important;
    }

    .hero-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .hero-description {
        font-size: 14px !important;
        margin-bottom: 25px !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .hero-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
    }

    /* Product Grid Mobile */
    .product-grid,
    .items-grid,
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-card {
        margin-bottom: 0 !important;
    }

    .product-image-wrapper {
        height: 160px !important;
    }

    .product-name {
        font-size: 13px !important;
    }

    .price-current {
        font-size: 16px !important;
    }

    .price-old {
        font-size: 11px !important;
    }

    /* Category Grid Mobile */
    .category-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 24px !important;
    }

    .section-sub {
        font-size: 14px !important;
        padding: 0 15px !important;
    }

    /* Trust Bar Mobile */
    .trust-bar {
        padding: 20px 0 !important;
    }

    .trust-items {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 0 20px !important;
    }

    .trust-item {
        justify-content: center !important;
        text-align: center !important;
    }

    /* Testimonials Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }

    /* Newsletter Mobile */
    .newsletter {
        padding: 40px 20px !important;
    }

        .newsletter h2 {
            font-size: 24px !important;
        }

        .newsletter p {
            font-size: 14px !important;
        }

    .newsletter-form {
        flex-direction: column !important;
        background: transparent !important;
        gap: 10px !important;
    }

        .newsletter-form input {
            border-radius: 50px !important;
            padding: 12px 20px !important;
            background: white !important;
        }

        .newsletter-form button {
            border-radius: 50px !important;
            width: 100% !important;
        }

    /* Footer Mobile */
    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 20px !important;
    }

    .footer-brand {
        text-align: center !important;
    }

    .footer-social {
        justify-content: center !important;
    }

    .footer-col {
        text-align: center !important;
    }

    .footer-col-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer-links li {
        justify-content: center !important;
    }

    /* Floating Sidebar Mobile */
    .floating-sidebar {
        right: -40px !important;
    }

        .floating-sidebar.open {
            right: 0 !important;
        }

    .sidebar-item {
        width: 35px !important;
        height: 35px !important;
        margin: 5px 0 !important;
        font-size: 14px !important;
    }

    /* Modal Mobile */
    .modal-dialog {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }

    .modal-body {
        padding: 20px !important;
    }

    /* Cart Page Mobile */
    .cart-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px 15px !important;
    }

    .cart-item-card {
        flex-direction: column !important;
        text-align: center !important;
    }

    .cart-item-img {
        margin: 0 auto !important;
    }

    .cart-item-actions {
        align-items: center !important;
        width: 100% !important;
    }

    .order-summary {
        position: static !important;
        margin-top: 20px !important;
    }

    /* Product Detail Page Mobile */
    .detail-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 20px 15px !important;
    }

    .detail-name {
        font-size: 24px !important;
    }

    .detail-price {
        font-size: 28px !important;
    }

    .detail-actions {
        flex-direction: column !important;
    }

    .btn-cart-large {
        width: 100% !important;
    }

    /* Buttons Mobile */
    .btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }

    /* Forms Mobile */
    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    /* Alerts Mobile */
    .alert-success,
    .alert-warning,
    .alert-info {
        top: 70px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
        font-size: 12px !important;
        padding: 10px 15px !important;
    }
}

/* Tablet Styles (768px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 42px !important;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }

    .hero-nav-container {
        padding: 12px 20px !important;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px !important;
    }

    .product-grid,
    .items-grid,
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .category-grid {
        grid-template-columns: 1fr !important;
    }

    .trust-items {
        grid-template-columns: 1fr !important;
    }

    .brand-topbar-left {
        flex-direction: column !important;
        gap: 5px !important;
    }

    .top-divider {
        display: none !important;
    }

    .hero-badge {
        font-size: 10px !important;
    }

    .hero-description {
        font-size: 13px !important;
    }

    .section-title {
        font-size: 22px !important;
    }

    /* Floating buttons mobile */
    .floating-buttons.left,
    .floating-buttons.right {
        bottom: 15px !important;
    }

    .floating-btn {
        width: 40px !important;
        height: 40px !important;
    }

        .floating-btn i {
            font-size: 16px !important;
        }
}

/* Landscape Mode Fix */
@media (max-width: 900px) and (orientation: landscape) {
    .hero-video-section {
        height: auto !important;
        min-height: 400px !important;
    }

    .hero-content {
        padding-top: 60px !important;
    }

    .hero-title {
        font-size: 24px !important;
    }

    .hero-description {
        font-size: 12px !important;
        margin-bottom: 15px !important;
    }

    .hero-buttons {
        flex-direction: row !important;
    }

    .hero-btn {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
}

/* Touch-Friendly Improvements */
@media (max-width: 768px) {
    button,
    .btn,
    a,
    .nav-cat-link,
    .hero-btn,
    .sidebar-item {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    /* Better spacing for touch targets */
    .product-actions {
        gap: 8px !important;
    }

        .product-actions button {
            padding: 10px !important;
        }
}

/* Hide Desktop Elements on Mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Show Mobile Elements */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Fix for Modal Backdrop on Mobile */
@media (max-width: 768px) {
    .modal-backdrop {
        backdrop-filter: blur(2px) !important;
    }

    .modal-content {
        margin: 20px !important;
        border-radius: 20px !important;
    }
}

/* Fix for Cart Badge on Mobile */
@media (max-width: 768px) {
    .hero-cart-badge,
    .cart-badge,
    .brand-cart-badge {
        top: -2px !important;
        right: -2px !important;
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
    }
}

/* Ensure Images Don't Overflow */
@media (max-width: 768px) {
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    iframe,
    video {
        max-width: 100% !important;
    }
}

/* Smooth Scrolling for Mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
}

/* Prevent Horizontal Scroll */
* {
    max-width: 100%;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
}
