/*!
 * iPalengke Mobile Responsive CSS
 * Enhanced mobile experience across all pages
 */

/* === BASE MOBILE STYLES === */
@media (max-width: 768px) {
    /* Container adjustments */
    .container,
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Typography scaling */
    h1, .h1 { font-size: 24px !important; line-height: 1.3; }
    h2, .h2 { font-size: 20px !important; line-height: 1.3; }
    h3, .h3 { font-size: 18px !important; line-height: 1.3; }
    h4, .h4 { font-size: 16px !important; line-height: 1.3; }
    h5, .h5 { font-size: 14px !important; line-height: 1.3; }
    h6, .h6 { font-size: 13px !important; line-height: 1.3; }
    
    /* Button improvements */
    .btn {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 44px; /* Touch-friendly */
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 48px;
    }
}

/* === HEADER & NAVIGATION === */
@media (max-width: 768px) {
    /* Header adjustments */
    .header-area {
        padding: 10px 0;
    }
    
    .header-top {
        display: none; /* Hide top header on mobile */
    }
    
    .main-header {
        padding: 8px 0;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    /* Mobile menu */
    .mobile-menu-toggle,
    .mobile-nav-toggler,
    .menu-btn {
        padding: 8px;
        font-size: 18px;
        border: none;
        background: none;
        color: #333;
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        transition: all 0.2s ease;
    }
    
    .mobile-nav-toggler:hover,
    .mobile-nav-toggler:focus,
    .menu-btn:hover,
    .menu-btn:focus {
        background-color: #f5f5f5;
        color: #ee4d2d;
    }
    
    /* Ensure hamburger is always visible on mobile */
    .axil-mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Force show hamburger menu button on mobile */
    @media (max-width: 767px) {
        .axil-mobile-toggle {
            display: flex !important;
        }
        
        /* Hide main navigation on mobile to force hamburger usage */
        .header-main-nav .mainmenu {
            display: none;
        }
        
        /* Style the hamburger icon */
        .mobile-nav-toggler i {
            font-size: 20px;
            line-height: 1;
        }
        
        /* Ensure mobile menu sidebar styling */
        .mainmenu-nav {
            position: fixed;
            top: 0;
            left: -100%;
            width: 280px;
            height: 100vh;
            background: white;
            z-index: 9999;
            transition: left 0.3s ease;
            overflow-y: auto;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            padding: 20px;
        }
        
        .mainmenu-nav.menu-open {
            left: 0;
        }
        
        /* Mobile menu overlay */
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-menu-header {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 20px;
        color: #333;
        padding: 5px;
    }
    
    .mobile-menu-content {
        padding: 20px;
    }
    
    .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-menu li {
        margin-bottom: 15px;
    }
    
    .mobile-menu a {
        display: block;
        padding: 10px 0;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #f5f5f5;
        font-weight: 500;
    }
    
    .mobile-menu a:hover {
        color: #ee4d2d;
    }
    
    /* Search bar mobile */
    .search-bar {
        margin: 10px 0;
    }
    
    .search-input {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
    }
    
    .search-btn {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #666;
        padding: 5px;
    }
    
    /* Cart icon mobile */
    .cart-icon {
        position: relative;
        padding: 8px;
    }
    
    .cart-count {
        position: absolute;
        top: 2px;
        right: 2px;
        background: #ee4d2d;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }
}

/* === CARDS & GRID LAYOUTS === */
@media (max-width: 768px) {
    /* Product cards */
    .product-card {
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .product-image {
        position: relative;
        padding-bottom: 75%; /* 4:3 aspect ratio */
        overflow: hidden;
    }
    
    .product-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 6px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-price {
        font-size: 16px;
        font-weight: 700;
        color: #ee4d2d;
        margin-bottom: 5px;
    }
    
    .product-original-price {
        font-size: 12px;
        color: #999;
        text-decoration: line-through;
        margin-right: 5px;
    }
    
    .product-rating {
        font-size: 12px;
        color: #ffa500;
        margin-bottom: 8px;
    }
    
    /* Grid adjustments */
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Force 2-column grid on mobile */
    .product-grid .col-lg-3,
    .product-grid .col-lg-4,
    .product-grid .col-md-4,
    .product-grid .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* === FORMS === */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 6px;
        min-height: 44px; /* Touch-friendly */
    }
    
    .form-control:focus {
        box-shadow: 0 0 0 2px rgba(238, 77, 45, 0.2);
        border-color: #ee4d2d;
    }
    
    label {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 5px;
        display: block;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    .input-group-text {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 6px 0 0 6px;
    }
    
    /* Checkbox and radio improvements */
    .form-check {
        padding-left: 1.8rem;
        margin-bottom: 8px;
    }
    
    .form-check-input {
        width: 1.2rem;
        height: 1.2rem;
        margin-left: -1.8rem;
    }
    
    .form-check-label {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* === TABLES === */
@media (max-width: 768px) {
    .table-responsive {
        border: none;
        margin-bottom: 15px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
        vertical-align: middle;
    }
    
    .table th {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        background-color: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
    }
    
    /* Stack table cells on very small screens */
    .table-stack {
        display: block;
    }
    
    .table-stack thead {
        display: none;
    }
    
    .table-stack tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 10px;
        background: white;
    }
    
    .table-stack td {
        display: block;
        text-align: left;
        border: none;
        padding: 5px 0;
    }
    
    .table-stack td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #333;
    }
}

/* === MODALS === */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .modal-title {
        font-size: 18px;
        font-weight: 600;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        border-top: 1px solid #eee;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* === ALERTS & NOTIFICATIONS === */
@media (max-width: 768px) {
    .alert {
        margin-bottom: 15px;
        padding: 12px 15px;
        border-radius: 6px;
        font-size: 14px;
    }
    
    .alert-dismissible .btn-close {
        padding: 8px;
        right: 10px;
    }
    
    /* Toast notifications */
    .toast-container {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 9999;
    }
    
    .toast {
        max-width: calc(100vw - 40px);
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}

/* === BREADCRUMBS === */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 8px 0;
        margin-bottom: 15px;
        background: none;
        font-size: 12px;
    }
    
    .breadcrumb-item {
        line-height: 1.4;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        content: "›";
        color: #666;
        padding: 0 5px;
    }
    
    .breadcrumb-item a {
        color: #666;
        text-decoration: none;
    }
    
    .breadcrumb-item.active {
        color: #333;
        font-weight: 500;
    }
}

/* === PAGINATION === */
@media (max-width: 768px) {
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 4px;
        min-width: 40px;
        text-align: center;
    }
    
    .page-item.active .page-link {
        background-color: #ee4d2d;
        border-color: #ee4d2d;
    }
    
    /* Hide page numbers on very small screens, keep prev/next */
    .pagination-simple .page-item:not(.previous):not(.next) {
        display: none;
    }
}

/* === FOOTER === */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-widget {
        margin-bottom: 25px;
        text-align: center;
    }
    
    .footer-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 2px solid #ee4d2d;
        display: inline-block;
    }
    
    .footer-links {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-links a {
        color: #666;
        text-decoration: none;
        font-size: 14px;
    }
    
    .footer-links a:hover {
        color: #ee4d2d;
    }
    
    .footer-bottom {
        border-top: 1px solid #eee;
        padding-top: 20px;
        text-align: center;
        font-size: 12px;
        color: #666;
    }
}

/* === HOMEPAGE MOBILE === */
@media (max-width: 768px) {
    /* Hero section mobile */
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .hero-cta .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Promo strip mobile */
    .promo-strip {
        padding: 15px 0;
    }
    
    .promo-strip .col-md-8,
    .promo-strip .col-md-4 {
        text-align: center;
    }
    
    .promo-strip h4 {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .promo-strip p {
        font-size: 12px;
    }
    
    .promo-strip .btn {
        margin-top: 10px;
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* Category grid mobile */
    .category-section {
        padding: 30px 0;
    }
    
    .category-card {
        margin-bottom: 20px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: transform 0.2s ease;
    }
    
    .category-card:hover {
        transform: translateY(-2px);
    }
    
    .card-img-wrapper {
        position: relative;
        padding-bottom: 60%;
        overflow: hidden;
    }
    
    .card-img-top {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .card-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
        color: #333;
    }
    
    .card-text {
        font-size: 13px;
        color: #666;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .card .btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 6px;
        width: 100%;
    }
    
    /* Features section mobile */
    .features-section {
        padding: 30px 0;
        background: #f8f9fa;
    }
    
    .feature-item {
        text-align: center;
        margin-bottom: 25px;
        padding: 20px 15px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
        background: #ee4d2d;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
    }
    
    .feature-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
        color: #333;
    }
    
    .feature-desc {
        font-size: 13px;
        color: #666;
        line-height: 1.4;
    }
    
    /* Testimonials mobile */
    .testimonials-section {
        padding: 30px 0;
    }
    
    .testimonial-item {
        text-align: center;
        padding: 20px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }
    
    .testimonial-text {
        font-size: 14px;
        font-style: italic;
        color: #555;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .testimonial-author {
        font-size: 13px;
        font-weight: 600;
        color: #333;
    }
    
    .testimonial-position {
        font-size: 12px;
        color: #666;
    }
    
    /* CTA section mobile */
    .cta-section {
        padding: 40px 0;
        background: linear-gradient(135deg, #ee4d2d 0%, #ff6b4a 100%);
        color: white;
        text-align: center;
    }
    
    .cta-title {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .cta-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
        opacity: 0.9;
        line-height: 1.4;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .cta-buttons .btn {
        padding: 12px 24px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 6px;
        min-width: 200px;
    }
    
    .btn-light {
        background: white;
        color: #ee4d2d;
        border: none;
    }
    
    .btn-outline-light {
        background: transparent;
        color: white;
        border: 2px solid white;
    }
}

/* === EXTRA SMALL DEVICES === */
@media (max-width: 576px) {
    .container,
    .container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    /* Even smaller typography */
    h1, .h1 { font-size: 20px !important; }
    h2, .h2 { font-size: 18px !important; }
    h3, .h3 { font-size: 16px !important; }
    
    /* Single column grid */
    .product-grid .col-lg-3,
    .product-grid .col-lg-4,
    .product-grid .col-md-4,
    .product-grid .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Category cards single column */
    .col-lg-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Adjust modal for very small screens */
    .modal-dialog {
        margin: 5px;
        width: calc(100% - 10px);
    }
    
    .modal-body {
        padding: 15px;
    }
    
    /* Mobile menu narrower */
    .mobile-menu {
        width: 100%;
        left: -100%;
    }
    
    /* Hero adjustments for very small screens */
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    /* CTA adjustments */
    .cta-title {
        font-size: 20px;
    }
    
    .cta-buttons .btn {
        min-width: 100%;
    }
}

/* === ACCESSIBILITY IMPROVEMENTS === */
@media (max-width: 768px) {
    /* Focus states */
    button:focus,
    .btn:focus,
    input:focus,
    select:focus,
    textarea:focus,
    a:focus {
        outline: 2px solid #ee4d2d;
        outline-offset: 2px;
    }
    
    /* Skip links */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 6px;
        background: #ee4d2d;
        color: white;
        padding: 8px;
        text-decoration: none;
        border-radius: 4px;
        z-index: 9999;
    }
    
    .skip-link:focus {
        top: 6px;
    }
    
    /* Screen reader only content */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* === CART PAGE MOBILE === */
@media (max-width: 768px) {
    .modern-cart-container {
        padding: 10px 0;
    }
    
    .modern-cart-header {
        padding: 15px 0;
        text-align: center;
    }
    
    .modern-cart-title {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .modern-cart-subtitle {
        font-size: 14px;
        color: #666;
    }
    
    .modern-cart-items {
        margin-bottom: 20px;
    }
    
    .cart-item {
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 8px;
        border: 1px solid #eee;
        background: white;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
        border-radius: 6px;
        overflow: hidden;
        margin-right: 12px;
        flex-shrink: 0;
    }
    
    .cart-item-info {
        flex: 1;
        min-width: 0;
    }
    
    .cart-item-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    
    .cart-item-price {
        font-size: 16px;
        font-weight: 700;
        color: #ee4d2d;
        margin-bottom: 8px;
    }
    
    .cart-item-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 10px;
    }
    
    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
        border: 1px solid #ddd;
        background: white;
        color: #333;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }
    
    .quantity-input {
        width: 60px;
        text-align: center;
        padding: 6px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
    }
    
    .remove-btn {
        background: none;
        border: none;
        color: #dc3545;
        font-size: 16px;
        padding: 5px;
    }
    
    /* Cart summary mobile */
    .cart-summary {
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid #eee;
        padding: 15px;
        margin: 0 -15px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .summary-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .summary-total {
        font-size: 18px;
        font-weight: 700;
        color: #ee4d2d;
        border-top: 1px solid #eee;
        padding-top: 10px;
        margin-top: 10px;
    }
    
    .checkout-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        font-weight: 600;
        margin-top: 15px;
        border-radius: 8px;
    }
}

/* === CHECKOUT PAGE MOBILE === */
@media (max-width: 768px) {
    .checkout-simple {
        padding: 10px 0;
    }
    
    .checkout-container {
        padding: 0 10px;
    }
    
    .step-content {
        padding: 15px;
        background: white;
        border-radius: 8px;
        margin-bottom: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .step-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .step-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }
    
    .guest-checkout {
        margin-bottom: 20px;
    }
    
    .guest-checkout .btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px;
        font-size: 14px;
    }
    
    /* Form improvements for checkout */
    .form-row {
        margin-bottom: 15px;
    }
    
    .form-row .col-md-6 {
        margin-bottom: 10px;
    }
    
    .payment-methods {
        display: grid;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .payment-method {
        padding: 12px;
        border: 2px solid #eee;
        border-radius: 8px;
        background: white;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .payment-method:hover,
    .payment-method.selected {
        border-color: #ee4d2d;
        background: #fff5f5;
    }
    
    .payment-method-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 4px;
    }
    
    .payment-method-desc {
        font-size: 12px;
        color: #666;
    }
    
    .shipping-methods {
        display: grid;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .shipping-method {
        padding: 12px;
        border: 2px solid #eee;
        border-radius: 8px;
        background: white;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .shipping-method:hover,
    .shipping-method.selected {
        border-color: #ee4d2d;
        background: #fff5f5;
    }
    
    .order-summary-mobile {
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid #eee;
        padding: 15px;
        margin: 20px -15px 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .place-order-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 8px;
        background: #ee4d2d;
        color: white;
        border: none;
    }
}

/* === MY ACCOUNT PAGE MOBILE === */
@media (max-width: 768px) {
    .account-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .account-sidebar.active {
        left: 0;
    }
    
    .account-menu-toggle {
        display: block;
        width: 100%;
        padding: 12px;
        background: #ee4d2d;
        color: white;
        border: none;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 15px;
        border-radius: 6px;
    }
    
    .account-content {
        padding: 15px;
    }
    
    .orders-grid {
        display: grid;
        gap: 15px;
    }
    
    .order-card {
        padding: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        background: white;
    }
    
    .order-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .order-number {
        font-size: 14px;
        font-weight: 600;
        color: #333;
    }
    
    .order-status {
        font-size: 12px;
        padding: 4px 8px;
        border-radius: 4px;
        font-weight: 500;
    }
    
    .order-info {
        font-size: 12px;
        color: #666;
        margin-bottom: 8px;
    }
    
    .order-total {
        font-size: 16px;
        font-weight: 700;
        color: #ee4d2d;
    }
    
    .order-actions {
        margin-top: 10px;
        display: flex;
        gap: 8px;
    }
    
    .order-actions .btn {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 4px;
        flex: 1;
    }
}

/* === SEARCH RESULTS MOBILE === */
@media (max-width: 768px) {
    .search-filters {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .search-filters.active {
        left: 0;
    }
    
    .filter-toggle {
        display: block;
        width: 100%;
        padding: 10px;
        background: #f8f9fa;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .search-results {
        padding: 15px 0;
    }
    
    .results-header {
        margin-bottom: 15px;
    }
    
    .results-count {
        font-size: 14px;
        color: #666;
    }
    
    .sort-options {
        margin-bottom: 15px;
    }
    
    .sort-select {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
    }
}

/* === PERFORMANCE OPTIMIZATIONS === */
@media (max-width: 768px) {
    /* Reduce shadows and animations for better performance */
    *,
    *::before,
    *::after {
        transition-duration: 0.2s !important;
    }
    
    /* Optimize images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Ensure clickable elements are touch-friendly */
    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve scroll performance */
    .scrollable {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}