/**
 * SwissChems Pro - Mobile Responsive Styles
 * Priority: iOS-style modern app experience
 */

/* ============================================
   MOBILE BREAKPOINTS
   ============================================ */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Top Bar - Stack elements */
    .top-bar-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    /* Header - Mobile Layout */
    .checkout-header-inner {
        padding: 15px !important;
    }
    
    .checkout-header-inner h3 {
        font-size: 18px !important;
    }
    
    /* Step Progress - Smaller on mobile */
    .step-progress {
        transform: scale(0.85);
        transform-origin: center;
    }
    
    .step-line {
        width: 25px !important;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    /* Top Bar - Hide on mobile, show critical info only */
    .top-bar {
        padding: 8px 0 !important;
        font-size: 11px !important;
    }
    
    .top-bar-inner > div:first-child {
        display: none !important; /* Hide badges on mobile */
    }
    
    .top-bar-inner > div:last-child {
        justify-content: center;
        width: 100%;
    }
    
    /* Main Header - Compact */
    header {
        padding: 12px 0 !important;
    }
    
    .checkout-header {
        padding: 10px 0 !important;
    }
    
    .checkout-header-inner {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* Logo smaller */
    .checkout-header-inner h3 {
        font-size: 16px !important;
    }
    
    /* Step Progress - Even smaller */
    .step-progress {
        transform: scale(0.75);
    }
    
    .step-text {
        font-size: 11px !important;
    }
    
    .step-circle {
        width: 24px !important;
        height: 24px !important;
        font-size: 11px !important;
    }
    
    /* Checkout Grid - Single column */
    .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Sidebar moves to top on mobile */
    .checkout-sidebar {
        order: -1 !important;
    }
    
    .order-summary {
        position: static !important;
        padding: 15px !important;
    }
    
    /* Step Cards - Full width padding */
    .step-card {
        padding: 20px 15px !important;
        margin-bottom: 15px !important;
    }
    
    .step-title {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }
    
    /* Form Fields - Touch friendly */
    .checkout-wrapper input[type="text"],
    .checkout-wrapper input[type="email"],
    .checkout-wrapper input[type="tel"],
    .checkout-wrapper select {
        padding: 16px 14px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 48px !important; /* iOS touch target */
        margin-bottom: 12px !important;
    }
    
    /* Labels */
    .checkout-wrapper label {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }
    
    /* Buttons - Full width on mobile */
    .btn-continue,
    #place_order {
        width: 100% !important;
        padding: 16px !important;
        font-size: 16px !important;
        min-height: 48px !important;
    }
    
    .step-actions {
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 20px !important;
    }
    
    .btn-back {
        order: 2;
        text-align: center;
        padding: 12px;
    }
    
    /* Summary Card - Compact */
    .step-summary-card {
        margin-bottom: 15px !important;
    }
    
    .summary-row {
        padding: 12px 15px !important;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .summary-label {
        width: 60px !important;
        font-size: 12px !important;
    }
    
    .summary-value {
        font-size: 13px !important;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .summary-edit {
        width: 100%;
        text-align: right;
        margin-top: 5px;
    }
    
    /* Shipping Methods */
    .shipping-methods-wrapper li {
        padding: 12px !important;
    }
    
    /* Product List in Sidebar */
    .products-list {
        max-height: 200px !important;
    }
    
    .product-item {
        padding: 10px 0 !important;
    }
    
    .product-image {
        width: 50px !important;
        height: 50px !important;
    }
    
    .product-name {
        font-size: 13px !important;
    }
    
    /* Totals */
    .total-row {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }
    
    .grand-total {
        font-size: 16px !important;
    }
    
    /* Trust Badges - Smaller */
    .trust-badges {
        margin-top: 15px !important;
        padding-top: 15px !important;
    }
    
    .badge svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .badge span {
        font-size: 10px !important;
    }
    
    /* Terms Checkbox */
    .terms-checkbox-wrapper {
        padding: 15px !important;
        margin: 10px 0 15px 0 !important;
    }
    
    .terms-label {
        font-size: 13px !important;
    }
    
    /* Error Messages */
    .woocommerce-error {
        padding: 12px !important;
        font-size: 13px !important;
    }
    
    /* Before checkout section */
    .before_checkout {
        padding: 10px 15px 0 !important;
    }
}

/* Small phones */
@media (max-width: 360px) {
    .step-progress {
        display: none !important; /* Hide steps on very small screens */
    }
    
    .checkout-header-inner {
        padding: 10px !important;
    }
    
    .step-card {
        padding: 15px 12px !important;
    }
    
    .order-summary {
        padding: 12px !important;
    }
}

/* ============================================
   TOUCH TARGET IMPROVEMENTS (iOS/Android)
   ============================================ */

/* Ensure minimum 44px touch targets */
@media (max-width: 768px) {
    button,
    input[type="checkbox"],
    input[type="radio"],
    select,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better tap highlights */
    button:active,
    .btn-continue:active,
    #place_order:active {
        opacity: 0.8;
        transform: scale(0.98);
    }
    
    /* Prevent text selection on buttons */
    button,
    .btn-continue,
    #place_order {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ============================================
   SAFARI / iOS SPECIFIC FIXES
   ============================================ */

/* Prevent auto-zoom on form fields */
@supports (-webkit-touch-callout: none) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Smooth scrolling on iOS */
@supports (-webkit-overflow-scrolling: touch) {
    .products-list {
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   HORIZONTAL SCROLLING PREVENTION
   ============================================ */

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }
    
    .checkout-wrapper {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* ============================================
   LOADING STATES
   ============================================ */

@media (max-width: 480px) {
    .shipping-loading,
    .free-shipping-notice {
        padding: 15px !important;
        font-size: 13px !important;
    }
    
    #shipping-error {
        font-size: 12px !important;
        padding: 12px !important;
    }
}

/* ============================================
   SHOP PAGE - MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    /* Shop Filters - Collapsible on mobile */
    .checkout-wrapper .filters-bar form {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .checkout-wrapper .filters-bar form > div {
        min-width: 100% !important;
    }
    
    /* Product Grid - 2 columns on tablet */
    #products-grid,
    #lab-reports-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    /* Product Cards */
    .product-card {
        border-radius: 12px !important;
    }
    
    .product-card img {
        height: 180px !important;
    }
    
    .product-card > div:last-child {
        padding: 15px !important;
    }
    
    .product-card h3 {
        font-size: 14px !important;
        min-height: auto !important;
    }
    
    /* Lab Reports Grid */
    .lab-report-card img {
        height: 180px !important;
    }
}

@media (max-width: 480px) {
    /* Product Grid - 1 column on small phones */
    #products-grid,
    #lab-reports-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Page Headers */
    .checkout-wrapper .page-header h1 {
        font-size: 32px !important;
    }
    
    /* Search Input */
    #lab-search,
    #product-search {
        font-size: 16px !important;
        padding: 14px 45px 14px 15px !important;
    }
    
    /* Price Range Inputs */
    input[name="min_price"],
    input[name="max_price"] {
        width: 70px !important;
    }
}

/* ============================================
   PRODUCT SINGLE PAGE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Product Layout - Stack on mobile */
    .single-product .product {
        flex-direction: column !important;
    }
    
    .single-product .product .images,
    .single-product .product .summary {
        width: 100% !important;
    }
    
    /* Product Gallery */
    .woocommerce-product-gallery__image img {
        max-height: 350px !important;
        object-fit: contain !important;
    }
    
    /* Add to Cart Button */
    .single-product button[type="submit"] {
        width: 100% !important;
        padding: 16px !important;
        font-size: 16px !important;
    }
    
    /* Product Meta */
    .product_meta {
        font-size: 13px !important;
    }
}

/* ============================================
   CART PAGE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Cart Table - Card layout on mobile */
    .woocommerce-cart-form table {
        display: block;
    }
    
    .woocommerce-cart-form thead {
        display: none;
    }
    
    .woocommerce-cart-form tbody,
    .woocommerce-cart-form tr,
    .woocommerce-cart-form td {
        display: block;
        width: 100% !important;
    }
    
    .woocommerce-cart-form tr {
        margin-bottom: 20px;
        padding: 15px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid #e5e7eb;
    }
    
    .woocommerce-cart-form td {
        padding: 8px 0 !important;
        border: none !important;
        text-align: left !important;
    }
    
    /* Product Name and Remove */
    .woocommerce-cart-form .product-name {
        font-weight: 600;
        font-size: 15px;
    }
    
    /* Quantity Input */
    .woocommerce-cart-form .quantity input {
        width: 80px !important;
        padding: 10px !important;
    }
    
    /* Update Cart Button */
    .woocommerce-cart-form button[name="update_cart"] {
        width: 100% !important;
        margin-top: 15px !important;
    }
    
    /* Cart Totals */
    .cart-collaterals {
        margin-top: 30px !important;
    }
}

/* ============================================
   HEADER - MOBILE HAMBURGER MENU
   ============================================ */

@media (max-width: 768px) {
    /* Hide desktop nav, show hamburger */
    nav .container > ul {
        display: none;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }
    
    /* Header Search - Full width on mobile */
    header .container > div:nth-child(2) {
        max-width: none !important;
        margin: 0 10px !important;
        flex: 1;
    }
    
    /* Header Actions - Hide text, show icons only */
    header .container > div:last-child a span {
        display: none;
    }
    
    header .container > div:last-child {
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    /* Even more compact header */
    header {
        padding: 10px 0 !important;
    }
    
    header .container {
        padding: 0 10px !important;
    }
    
    /* Logo smaller */
    header .container > a > div > div:first-child {
        width: 36px !important;
        height: 36px !important;
    }
    
    header .container > a > div > span {
        font-size: 18px !important;
    }
}

/* ============================================
   NOTIFICATION BADGE ANIMATION
   ============================================ */

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.mobile-cart-count.updated {
    animation: bounce 0.3s ease;
}

/* ============================================
   PULL TO REFRESH HINT (Optional)
   ============================================ */

@media (max-width: 768px) {
    .pull-to-refresh {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        color: #6b7280;
        font-size: 12px;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .pull-to-refresh.visible {
        opacity: 1;
    }
    
    .pull-to-refresh svg {
        margin-right: 5px;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
}

/* ============================================
   GLOBAL MOBILE FIXES - All Pages
   ============================================ */

/* Typography Scaling */
@media (max-width: 768px) {
    h1 { font-size: 32px !important; }
    h2 { font-size: 26px !important; }
    h3 { font-size: 20px !important; }
    p { font-size: 15px !important; }
}

@media (max-width: 480px) {
    h1 { font-size: 26px !important; }
    h2 { font-size: 22px !important; }
    h3 { font-size: 18px !important; }
    p { font-size: 14px !important; }
}

/* Container Fluid */
@media (max-width: 768px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ============================================
   HOMEPAGE MOBILE FIXES
   ============================================ */

@media (max-width: 768px) {
    /* Hero Section */
    section:first-of-type {
        padding: 60px 0 !important;
    }
    
    section:first-of-type h1 {
        font-size: 32px !important;
        line-height: 1.3 !important;
    }
    
    section:first-of-type p {
        font-size: 16px !important;
    }
    
    section:first-of-type a {
        padding: 16px 30px !important;
        font-size: 14px !important;
    }
    
    /* Featured Products Section */
    section:nth-of-type(2) {
        padding: 50px 0 !important;
    }
    
    section:nth-of-type(2) h2 {
        font-size: 26px !important;
        margin-bottom: 30px !important;
    }
    
    /* Product Grid on Homepage */
    section:nth-of-type(2) > div > div {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    section:nth-of-type(2) .product-card h3 {
        font-size: 14px !important;
        min-height: auto !important;
    }
}

@media (max-width: 480px) {
    /* Hero - Single Column */
    section:first-of-type h1 {
        font-size: 26px !important;
    }
    
    /* Products - Single Column */
    section:nth-of-type(2) > div > div {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   SINGLE PRODUCT PAGE MOBILE FIXES
   ============================================ */

@media (max-width: 768px) {
    /* Product Layout - Stack columns */
    .single-product .container > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Main Image */
    .single-product .product-image-zoom-container {
        aspect-ratio: 1 !important;
    }
    
    /* Thumbnails - Smaller */
    .single-product .product-gallery-thumb {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Product Info */
    .single-product h1.product-title {
        font-size: 24px !important;
    }
    
    .single-product .price {
        font-size: 28px !important;
    }
    
    /* Add to Cart */
    .single-product button.single_add_to_cart_button {
        width: 100% !important;
        padding: 16px !important;
        font-size: 16px !important;
    }
    
    /* Trust Badges - 2 columns */
    .single-product .trust-badges {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Tabs */
    .single-product .woocommerce-tabs {
        margin-top: 30px !important;
    }
    
    .single-product .wc-tabs {
        flex-direction: column !important;
    }
    
    .single-product .wc-tabs li {
        width: 100% !important;
    }
}

/* ============================================
   LAB RESULTS PAGE MOBILE FIXES
   ============================================ */

@media (max-width: 768px) {
    /* Page Header */
    .page-template-page-lab-results h1 {
        font-size: 32px !important;
    }
    
    /* Search Input */
    #lab-search {
        font-size: 16px !important;
    }
    
    /* Grid - 2 columns */
    #lab-reports-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .lab-report-card img {
        height: 150px !important;
    }
    
    .lab-report-card h3 {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    /* Grid - Single column */
    #lab-reports-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   SHOP/ARCHIVE PAGE MOBILE FIXES
   ============================================ */

@media (max-width: 768px) {
    /* Page Header */
    .archive-product h1 {
        font-size: 32px !important;
    }
    
    /* Filters - Stack vertically */
    .archive-product form[method="get"] {
        flex-direction: column !important;
    }
    
    .archive-product form[method="get"] > div {
        width: 100% !important;
        min-width: auto !important;
    }
    
    /* Price Range - Inline */
    .archive-product input[name="min_price"],
    .archive-product input[name="max_price"] {
        width: calc(50% - 20px) !important;
    }
    
    /* Product Grid */
    #products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    #products-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   HEADER MOBILE FIXES
   ============================================ */

@media (max-width: 768px) {
    /* Top Bar - Stack or hide */
    .top-bar .container > div:first-child {
        display: none !important;
    }
    
    .top-bar .container > div:last-child {
        justify-content: center;
        width: 100%;
    }
    
    /* Main Header - Compact */
    header {
        padding: 12px 0 !important;
    }
    
    /* Logo */
    header a[href="/"] span {
        font-size: 18px !important;
    }
    
    /* Search - Hidden on mobile or smaller */
    #header-search {
        font-size: 14px !important;
        padding: 10px 40px 10px 15px !important;
    }
    
    #header-search-results {
        max-height: 300px !important;
    }
    
    /* Header Actions - Icons only */
    header .container > div:last-child a span {
        display: none !important;
    }
    
    /* Navigation - Horizontal scroll */
    nav ul {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        padding-bottom: 5px !important;
    }
    
    nav ul li a {
        padding: 12px 16px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    /* Hide search completely on very small screens */
    header .container > div:nth-child(2) {
        display: none !important;
    }
    
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* ============================================
   FOOTER MOBILE FIXES
   ============================================ */

@media (max-width: 768px) {
    footer .container > div:first-child {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
    
    footer h3 {
        font-size: 14px !important;
    }
    
    footer a {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    footer .container > div:first-child {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    footer .container > div:first-child > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   LIGHTBOX MOBILE FIXES
   ============================================ */

@media (max-width: 768px) {
    #lightbox {
        padding: 10px !important;
    }
    
    #lightbox img {
        max-width: 95% !important;
        max-height: 80% !important;
    }
    
    #lightbox button {
        top: 10px !important;
        right: 10px !important;
        font-size: 30px !important;
    }
    
    #lightbox-caption {
        font-size: 14px !important;
        bottom: 20px !important;
    }
}

/* ============================================
   TABLE STYLES - Mobile Cards
   ============================================ */

@media (max-width: 768px) {
    /* Convert tables to cards */
    table.shop_table,
    table.woocommerce-table {
        display: block;
        border: none !important;
    }
    
    table.shop_table thead,
    table.woocommerce-table thead {
        display: none;
    }
    
    table.shop_table tbody,
    table.woocommerce-table tbody,
    table.shop_table tr,
    table.woocommerce-table tr {
        display: block;
        width: 100%;
    }
    
    table.shop_table tr,
    table.woocommerce-table tr {
        margin-bottom: 15px;
        padding: 15px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid #e5e7eb;
    }
    
    table.shop_table td,
    table.woocommerce-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0 !important;
        border: none !important;
        text-align: right !important;
    }
    
    table.shop_table td::before,
    table.woocommerce-table td::before {
        content: attr(data-title);
        font-weight: 600;
        color: #374151;
        text-align: left;
    }
}

/* ============================================
   FORM ELEMENTS - Touch Friendly
   ============================================ */

@media (max-width: 768px) {
    input, select, textarea, button {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    input[type="checkbox"],
    input[type="radio"] {
        width: 22px !important;
        height: 22px !important;
    }
    
    /* Select dropdowns */
    select {
        background-position: right 12px center !important;
        padding-right: 35px !important;
    }
}

/* ============================================
   HORIZONTAL SCROLL PREVENTION
   ============================================ */

@media (max-width: 480px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    iframe, embed, video {
        max-width: 100%;
    }
}

/* ============================================
   CART PAGE - MOBILE FIXES
   ============================================ */

@media (max-width: 992px) {
    /* Cart Layout - Stack columns */

@media (max-width: 768px) {
    /* Cart Header */

@media (max-width: 480px) {
    /* Cart Header - Smaller */

/* ============================================
   CART PAGE - FIX HORIZONTAL SCROLL
   ============================================ */

@media (max-width: 768px) {

/* ============================================
   SHOP PAGE - MOBILE FIXES
   ============================================ */

/* Mobile Filter Toggle Button */
@media (max-width: 768px) {
    /* Filter Toggle Button */
    .filters-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 15px 20px;
        background: #dc2626;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 15px;
    }
    
    .filters-toggle-btn svg {
        width: 20px;
        height: 20px;
        transition: transform 0.3s;
    }
    
    .filters-toggle-btn.active svg {
        transform: rotate(180deg);
    }
    
    /* Filters Container - Collapsed by default */
    .filters-container {
        display: none;
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        margin-bottom: 20px;
    }
    
    .filters-container.show {
        display: block;
    }
    
    /* Filter Form - Stack on mobile */
    .filters-container form {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .filters-container form > div {
        width: 100% !important;
        min-width: auto !important;
    }
    
    /* Price Range - Inline on mobile */
    .filters-container input[name="min_price"],
    .filters-container input[name="max_price"] {
        width: calc(50% - 25px) !important;
    }
    
    /* Product Images - Fix aspect ratio */
    .product-card a[href*="product"] {
        aspect-ratio: 1 !important;
        height: auto !important;
    }
    
    .product-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Product Grid - Better sizing */
    #products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .product-card {
        border-radius: 10px !important;
    }
    
    .product-card > div:last-child {
        padding: 15px !important;
    }
    
    .product-card h3 {
        font-size: 13px !important;
        min-height: auto !important;
        margin-bottom: 8px !important;
    }
    
    .product-card .price {
        font-size: 16px !important;
    }
    
    .product-card a[href*="add-to-cart"] {
        padding: 10px !important;
        font-size: 12px !important;
    }
    
    /* Sale/Out of Stock badges */
    .product-card span[style*="position: absolute"] {
        font-size: 10px !important;
        padding: 4px 10px !important;
    }
    
    /* Page Header */
    .archive-product h1 {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    /* Product Grid - Single column on small phones */
    #products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .product-card a[href*="product"] {
        aspect-ratio: 4/3 !important;
    }
    
}

/* Desktop - Hide mobile toggle */
@media (min-width: 769px) {
    .filters-toggle-btn {
        display: none !important;
    }
    
    .filters-container {
        display: block !important;
    }
}
