/* ===================================
   Mobile-First Responsive Design
   Royal Home Appliances
   =================================== */

/* Base Mobile Styles (Mobile First Approach) */
:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-bg: #f8f9fa;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

/* ===================================
   MOBILE NAVIGATION
   =================================== */
   
/* Enhanced Mobile Navigation */
@media (max-width: 991px) {
    /* Fixed navbar for mobile */
    .navbar {
        padding: 0.5rem 1rem !important;
        box-shadow: var(--shadow-md) !important;
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 1030 !important;
        background: white !important;
    }
    
    /* Adjust body padding for fixed navbar */
    body {
        padding-top: 60px !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        max-width: 60% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Hamburger menu button */
    .navbar-toggler {
        border: 2px solid #e9ecef !important;
        padding: 6px 10px !important;
        font-size: 1rem !important;
        background: white !important;
        border-radius: 6px !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25) !important;
        border-color: var(--primary-color) !important;
    }
    
    .navbar-toggler-icon {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* Mobile menu dropdown */
    .navbar-collapse {
        background: white !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        padding: 1rem !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
        border-top: 2px solid var(--primary-color) !important;
        max-height: calc(100vh - 60px) !important;
        overflow-y: auto !important;
    }
    
    .navbar-nav {
        padding: 0.5rem 0 !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px !important;
        margin: 0.25rem 0 !important;
        transition: all 0.3s ease !important;
        font-weight: 500 !important;
        font-size: 0.95rem !important;
        display: block !important;
        color: #333 !important;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:active {
        background: var(--light-bg) !important;
        transform: translateX(5px) !important;
        color: var(--primary-color) !important;
    }
    
    .navbar-nav .nav-link.active {
        background: linear-gradient(135deg, #007bff15, #007bff25) !important;
        color: var(--primary-color) !important;
        font-weight: 600 !important;
        border-left: 3px solid var(--primary-color) !important;
    }
    
    /* Cart icon in mobile menu */
    .cart-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        background: linear-gradient(135deg, #28a745, #218838) !important;
        color: white !important;
        border-radius: 8px !important;
        margin-top: 0.5rem !important;
        font-weight: 600 !important;
    }
    
    .cart-trigger i {
        font-size: 1.2rem !important;
    }
    
    .cart-badge {
        background: var(--danger-color) !important;
        padding: 3px 7px !important;
        border-radius: 12px !important;
        font-size: 0.75rem !important;
        font-weight: bold !important;
        min-width: 20px !important;
        text-align: center !important;
    }
}

/* ===================================
   MOBILE HERO SECTION
   =================================== */
   
@media (max-width: 768px) {
    .carousel-item {
        height: 350px !important;
    }
    
    .carousel-caption {
        bottom: 20px;
        padding: 15px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: var(--border-radius);
        backdrop-filter: blur(10px);
    }
    
    .carousel-caption h1,
    .carousel-caption h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
    }
    
    .carousel-caption p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .carousel-caption .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 280px !important;
    }
    
    .carousel-caption h1,
    .carousel-caption h3 {
        font-size: 1.1rem;
    }
    
    .carousel-caption p {
        display: none;
    }
}

/* ===================================
   MOBILE PRODUCT CARDS
   =================================== */
   
@media (max-width: 768px) {
    /* Product Grid */
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .card {
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-sm);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
    }
    
    .card:active {
        transform: scale(0.98);
    }
    
    /* Product Image Container */
    .card .position-relative {
        height: 200px !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    /* Product Images */
    .product-image,
    .card-img-top {
        height: 160px !important;
        width: auto !important;
        max-width: 90%;
        object-fit: contain;
        padding: 0 !important;
    }
    
    /* Spare Parts Carousel Images */
    #spare-parts .carousel-item img {
        height: 160px !important;
        width: auto !important;
        max-width: 90%;
        object-fit: contain;
    }
    
    /* Brand Badge */
    .brand-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
        top: 8px;
        left: 8px;
        border-radius: 6px;
        font-weight: 600;
    }
    
    /* Card Body */
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .card-text {
        font-size: 0.85rem;
        color: #6c757d;
        margin-bottom: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Rating */
    .rating {
        font-size: 0.85rem;
    }
    
    .stars {
        font-size: 0.9rem;
    }
    
    /* Features List */
    .feature-list {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .feature-list li {
        padding: 0.25rem 0;
    }
    
    .feature-list i {
        font-size: 0.8rem;
        margin-right: 0.5rem;
    }
    
    /* Color Options */
    .color-option {
        width: 24px;
        height: 24px;
        margin-right: 6px;
    }
    
    /* Price Section */
    .price-section {
        margin-bottom: 0.75rem;
    }
    
    .price-section .h5 {
        font-size: 1.25rem;
        font-weight: 700;
    }
    
    /* Action Buttons - Enhanced Mobile Layout */
    .action-buttons {
        display: grid !important;
        grid-template-columns: 1fr 2fr !important;
        gap: 0.4rem !important;
        width: 100% !important;
    }
    
    /* Compare button (smaller) */
    .action-buttons .btn-outline-primary {
        grid-column: 1 !important;
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
        border-width: 2px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 40px !important;
    }
    
    /* Add to Cart button (wider) */
    .action-buttons .add-to-cart-btn {
        grid-column: 2 !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        background: linear-gradient(135deg, #007bff, #0056b3) !important;
        border: none !important;
        color: white !important;
        box-shadow: 0 3px 8px rgba(0, 123, 255, 0.25) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 40px !important;
    }
    
    /* Checkout button (full width below) */
    .action-buttons .checkout-btn {
        grid-column: 1 / -1 !important; /* Span full width */
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        background: linear-gradient(135deg, #28a745, #218838) !important;
        border: none !important;
        color: white !important;
        box-shadow: 0 3px 8px rgba(40, 167, 69, 0.25) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 44px !important;
        margin-top: 0.2rem !important;
    }
    
    /* Button text and icons */
    .action-buttons .btn {
        border-radius: 8px !important;
        transition: all 0.2s ease !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .action-buttons .btn i {
        margin-right: 0.3rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Hide text on very small buttons, show only icon */
    @media (max-width: 360px) {
        .action-buttons .btn-outline-primary span,
        .action-buttons .add-to-cart-btn span {
            display: none !important;
        }
        
        .action-buttons .btn-outline-primary i,
        .action-buttons .add-to-cart-btn i {
            margin-right: 0 !important;
        }
    }
    
    /* Active states for better feedback */
    .action-buttons .btn:active {
        transform: scale(0.95) !important;
    }
    
    .add-to-cart-btn:hover,
    .add-to-cart-btn:focus {
        background: linear-gradient(135deg, #0056b3, #004085) !important;
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4) !important;
    }
    
    .checkout-btn:hover,
    .checkout-btn:focus {
        background: linear-gradient(135deg, #218838, #1e7e34) !important;
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
    }
}

@media (max-width: 576px) {
    /* Extra small screens */
    .card .position-relative {
        height: 160px !important;
    }
    
    .product-image,
    .card-img-top,
    #spare-parts .carousel-item img {
        height: 130px !important;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-text {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
    
    .feature-list {
        display: none; /* Hide features on very small screens */
    }
    
    .color-option {
        width: 20px;
        height: 20px;
        margin-right: 4px;
    }
    
    /* Optimized button layout for very small screens */
    .action-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.4rem !important;
    }
    
    .action-buttons .btn {
        width: 100% !important;
        grid-column: unset !important;
        padding: 0.65rem !important;
        font-size: 0.8rem !important;
        min-height: 42px !important;
    }
    
    /* Show only icons on very narrow screens */
    @media (max-width: 320px) {
        .action-buttons .btn {
            font-size: 0 !important;
        }
        
        .action-buttons .btn::after {
            content: attr(title);
            font-size: 0.75rem !important;
            margin-left: 0.3rem;
        }
        
        .action-buttons .btn i {
            font-size: 1rem !important;
            margin: 0 !important;
        }
    }
}

/* ===================================
   MOBILE FILTERS & SEARCH
   =================================== */
   
@media (max-width: 768px) {
    .filters-container {
        padding: 1rem;
        background: white;
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
        box-shadow: var(--shadow-sm);
    }
    
    .search-filter-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-container {
        width: 100%;
    }
    
    #productSearch {
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 8px;
        border: 2px solid #e9ecef;
    }
    
    #productSearch:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }
    
    .filter-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }
    
    .filter-controls select,
    .filter-controls button {
        padding: 0.65rem;
        font-size: 0.85rem;
        border-radius: 8px;
        border: 2px solid #e9ecef;
        background: white;
        width: 100%;
    }
    
    .reset-btn {
        grid-column: span 2;
        background: var(--danger-color);
        color: white;
        border: none;
        font-weight: 600;
    }
}

@media (max-width: 576px) {
    .filter-controls {
        grid-template-columns: 1fr;
    }
    
    .reset-btn {
        grid-column: span 1;
    }
}

/* ===================================
   MOBILE FOOTER
   =================================== */
   
@media (max-width: 768px) {
    footer {
        padding: 2rem 0;
    }
    
    footer .row > div {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        color: white;
        font-weight: 600;
    }
    
    footer p,
    footer li {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    footer .list-unstyled li {
        padding: 0.25rem 0;
    }
    
    footer .list-unstyled a {
        color: #dee2e6;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    footer .list-unstyled a:hover {
        color: white;
    }
}

/* ===================================
   MOBILE MODALS & OVERLAYS
   =================================== */
   
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: var(--border-radius);
    }
    
    .modal-header {
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .modal-title {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
        border-top: 1px solid #e9ecef;
    }
    
    .modal-footer .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
        min-width: 80px;
    }
    
    /* Quick View Modal */
    .quick-view-content {
        flex-direction: column;
    }
    
    .quick-view-image {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    /* Override inline styles for carousel images */
    .quick-view-image .carousel-item img,
    .quick-view-image .gallery-main-image,
    #quickViewCarousel .carousel-item img {
        height: 250px !important;
        max-height: 250px !important;
        object-fit: contain !important;
        width: 100% !important;
        padding: 10px !important;
    }
    
    /* Ensure carousel container is responsive */
    .quick-view-image .carousel,
    #quickViewCarousel {
        max-height: 250px !important;
        overflow: hidden;
    }
    
    /* Fix carousel controls position */
    .quick-view-image .carousel-control-prev,
    .quick-view-image .carousel-control-next {
        width: 30px !important;
        height: 30px !important;
        background: rgba(0,0,0,0.5) !important;
    }
    
    /* Quick View Actions on Mobile */
    .quick-view-actions {
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 15px !important;
    }
    
    .quick-view-actions .btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 0.9rem !important;
    }
    
    .quick-view-compare-btn {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
        padding: 12px !important;
    }
    
    .quick-view-details h4 {
        font-size: 1.2rem !important;
    }
    
    .quick-view-price {
        font-size: 1.5rem !important;
    }
    
    .quick-view-features {
        font-size: 0.85rem !important;
    }
    
    .quick-view-colors .color-option {
        width: 30px !important;
        height: 30px !important;
    }
}

/* Extra small devices - even smaller carousel */
@media (max-width: 576px) {
    .quick-view-image .carousel-item img,
    .quick-view-image .gallery-main-image,
    #quickViewCarousel .carousel-item img {
        height: 200px !important;
        max-height: 200px !important;
    }
    
    .quick-view-image .carousel,
    #quickViewCarousel {
        max-height: 200px !important;
    }
    
    .modal-dialog {
        margin: 0.3rem !important;
        max-width: calc(100% - 0.6rem) !important;
    }
    
    .quick-view-content {
        gap: 15px !important;
    }
    
    .quick-view-details {
        padding: 0 10px !important;
    }
}

/* ===================================
   MOBILE CART SIDEBAR
   =================================== */
   
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }
    
    .cart-sidebar.active {
        right: 0;
    }
    
    .cart-header {
        padding: 1rem;
        background: var(--primary-color);
        color: white;
    }
    
    .cart-items {
        max-height: calc(100vh - 200px);
        padding: 1rem;
    }
    
    .cart-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border-radius: 8px;
        background: var(--light-bg);
    }
    
    .cart-item img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        border-radius: 6px;
    }
    
    .cart-item-details {
        font-size: 0.9rem;
    }
    
    .cart-item-title {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }
    
    .cart-footer {
        padding: 1rem;
        border-top: 2px solid #e9ecef;
    }
    
    .cart-total {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }
    
    .cart-footer .btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
}

/* ===================================
   MOBILE TOUCH OPTIMIZATIONS
   =================================== */
   
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    
    /* Larger touch targets */
    button,
    .btn,
    a,
    select,
    input[type="checkbox"],
    input[type="radio"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    /* Improve tap feedback */
    button:active,
    .btn:active,
    a:active {
        opacity: 0.8;
        transform: scale(0.98);
    }
    
    /* Disable text selection on interactive elements */
    button,
    .btn,
    .card {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ===================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   =================================== */
   
@media (max-width: 768px) {
    /* Optimize animations for mobile */
    * {
        animation-duration: 0.3s !important;
    }
    
    /* Reduce shadows for better performance */
    .card {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .card:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    
    /* Optimize transitions */
    .card,
    .btn,
    .product-image {
        transition: transform 0.2s ease;
    }
}

/* ===================================
   MOBILE LANDSCAPE ADJUSTMENTS
   =================================== */
   
@media (max-width: 768px) and (orientation: landscape) {
    .carousel-item {
        height: 250px !important;
    }
    
    .card .position-relative {
        height: 150px !important;
    }
    
    .product-image,
    .card-img-top {
        height: 120px !important;
    }
    
    body {
        padding-top: 50px;
    }
    
    .navbar {
        padding: 0.25rem 1rem;
    }
}

/* ===================================
   MOBILE UTILITIES
   =================================== */
   
@media (max-width: 768px) {
    /* Hide elements on mobile */
    .mobile-hide {
        display: none !important;
    }
    
    /* Show elements only on mobile */
    .mobile-only {
        display: block !important;
    }
    
    /* Text utilities */
    .text-truncate-mobile {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Spacing utilities */
    .p-mobile-2 {
        padding: 0.5rem !important;
    }
    
    .m-mobile-2 {
        margin: 0.5rem !important;
    }
    
    /* Font size utilities */
    .fs-mobile-sm {
        font-size: 0.875rem !important;
    }
    
    .fs-mobile-xs {
        font-size: 0.75rem !important;
    }
    
    /* Fix button text wrapping */
    .btn {
        white-space: normal !important;
        word-wrap: break-word !important;
        line-height: 1.3 !important;
    }
    
    /* Ensure all buttons are visible */
    .btn-sm {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Fix overflow issues */
    .card {
        overflow: visible !important;
    }
    
    .card-body {
        overflow: visible !important;
    }
    
    /* Ensure proper z-index for dropdowns */
    .dropdown-menu {
        z-index: 1050 !important;
    }
    
    /* Fix product stats on mobile */
    .product-stats {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .product-stats .col-md-3,
    .product-stats .col-6 {
        margin-bottom: 0.75rem !important;
    }
    
    .product-stats h3 {
        font-size: 1.5rem !important;
    }
    
    .product-stats p {
        font-size: 0.85rem !important;
    }
}

/* ===================================
   ADDITIONAL MOBILE BUTTON FIXES
   =================================== */

@media (max-width: 480px) {
    /* Optimize button text for small screens */
    .add-to-cart-btn {
        font-size: 0 !important;
    }
    
    .add-to-cart-btn::after {
        content: "ADD" !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
    }
    
    .add-to-cart-btn i {
        font-size: 1rem !important;
        margin-right: 0.3rem !important;
    }
    
    .checkout-btn {
        font-size: 0 !important;
    }
    
    .checkout-btn::after {
        content: "BUY NOW" !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
    }
    
    .checkout-btn i {
        font-size: 1rem !important;
        margin-right: 0.3rem !important;
    }
    
    .btn-outline-primary {
        font-size: 0 !important;
        padding: 0.5rem !important;
    }
    
    .btn-outline-primary i {
        font-size: 1.1rem !important;
        margin: 0 !important;
    }
}

/* Fix for 3-button layout on tablets */
@media (min-width: 577px) and (max-width: 768px) {
    .action-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1.5fr 1.5fr !important;
        gap: 0.3rem !important;
    }
    
    .action-buttons .btn-outline-primary {
        grid-column: 1 !important;
    }
    
    .action-buttons .add-to-cart-btn {
        grid-column: 2 !important;
    }
    
    .action-buttons .checkout-btn {
        grid-column: 3 !important;
    }
    
    .action-buttons .btn {
        padding: 0.5rem 0.3rem !important;
        font-size: 0.7rem !important;
    }
    
    .action-buttons .btn i {
        display: none !important;
    }
}

/* ===================================
   IPHONE NOTCH SUPPORT
   =================================== */
   
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .cart-sidebar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    footer {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

/* ===================================
   MOBILE LOADING STATES
   =================================== */
   
@media (max-width: 768px) {
    .skeleton-loader {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
    }
    
    @keyframes loading {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -200% 0;
        }
    }
    
    .spinner-border {
        width: 2rem;
        height: 2rem;
        border-width: 0.2rem;
    }
}

/* ===================================
   MOBILE PRINT STYLES
   =================================== */
   
@media print {
    .navbar,
    .cart-sidebar,
    .filters-container,
    .action-buttons,
    footer {
        display: none !important;
    }
    
    .card {
        page-break-inside: avoid;
        border: 1px solid #dee2e6;
        margin-bottom: 1rem;
    }
    
    body {
        padding-top: 0;
    }
}