/* BabyOutlets Mobile - v14 */

/* Mobile header layout: hamburger | logo | icons */
@media (max-width: 768px) {
    .bo-main-header-inner {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 15px !important;
        gap: 10px !important;
    }
    
    .bo-hamburger {
        order: 1 !important;
        flex: 0 0 auto !important;
    }
    
    .bo-logo {
        order: 2 !important;
        flex: 1 1 auto !important;
        text-align: center !important;
    }
    
    .bo-header-icons {
        order: 3 !important;
        flex: 0 0 auto !important;
        gap: 12px !important;
    }
    
    .bo-search {
        order: 4 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        margin-top: 5px !important;
    }
    
    .bo-search form {
        display: flex !important;
        width: 100% !important;
    }
    
    .bo-search input[type="search"] {
        flex: 1 !important;
        border-radius: 8px 0 0 8px !important;
        border: 1px solid #ddd !important;
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    .bo-search button {
        border-radius: 0 8px 8px 0 !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        border: none !important;
        padding: 10px 15px !important;
        color: #fff !important;
    }
    
    .bo-header-icons .bo-icon-link:not(.bo-cart-link):not([href*="my-account"]) {
        display: none !important;
    }
    
    .bo-icon-label {
        display: none !important;
    }
    
    .bo-logo-text {
        font-size: 20px !important;
    }
    
    /* Hide nav row on mobile */
    .bo-nav-row {
        display: none !important;
    }
}

/* Remove container padding on mobile */
@media (max-width: 768px) {
    .ast-container,
    .ast-container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* WooCommerce blocks - single column */
    .wc-block-grid__products {
        grid-template-columns: 1fr !important;
    }
    
    .wc-block-grid.has-2-columns .wc-block-grid__products,
    .wc-block-grid.has-3-columns .wc-block-grid__products,
    .wc-block-grid.has-4-columns .wc-block-grid__products {
        grid-template-columns: 1fr !important;
    }
    
    /* Add padding to product & category pages */
    .single-product .ast-container,
    .tax-product_cat .ast-container,
    .post-type-archive-product .ast-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Archive page: 1 column under 500px */
@media (max-width: 500px) {
    body.archive .woocommerce ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        padding: 0 15px !important;
    }
    
    body.archive .woocommerce ul.products li.product {
        width: 100% !important;
        flex: none !important;
        max-width: none !important;
        margin: 0 !important;
    }
}

/* Archive page: 2 columns between 500-768px */
@media (min-width: 501px) and (max-width: 768px) {
    body.archive .woocommerce ul.products {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 0 15px !important;
    }
    
    body.archive .woocommerce ul.products li.product {
        width: calc(50% - 4px) !important;
        flex: none !important;
        max-width: none !important;
    }
}

/* Product swiper only on homepage */
@media (max-width: 768px) {
    body.home .woocommerce ul.products {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding: 10px 15px !important;
        -webkit-overflow-scrolling: touch;
    }
    
    body.home .woocommerce ul.products::-webkit-scrollbar {
        display: none;
    }
    
    body.home .woocommerce ul.products li.product {
        flex: 0 0 72% !important;
        max-width: 72% !important;
        margin: 0 !important;
    }
}

/* Product cards */
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Hide Astra default footer copyright */
.site-footer .ast-footer-copyright {
    display: none !important;
}

.bo-footer ~ .bo-footer {
    display: none !important;
}

/* Product page styling */
/* Tabs styling */
.woocommerce-tabs {
    margin-top: 30px !important;
}

.woocommerce-tabs ul.tabs {
    display: flex !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    border-bottom: 2px solid #eee !important;
    list-style: none !important;
}

.woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 12px 20px !important;
    color: #666 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px !important;
    transition: all 0.2s !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #667eea !important;
    border-bottom-color: #667eea !important;
}

.woocommerce-tabs .panel {
    padding: 20px 0 !important;
}

/* Delivery info & wishlist compact */
.product-delivery-info {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #666 !important;
    margin: 10px 0 !important;
}

.yith-wcwl-add-to-wishlist {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.yith-wcwl-add-to-wishlist a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 13px !important;
    color: #666 !important;
    text-decoration: none !important;
}

.yith-wcwl-add-to-wishlist a:hover {
    color: #e53935 !important;
}

/* Group delivery + wishlist inline */
.summary .product-delivery-info,
.summary .yith-wcwl-add-to-wishlist {
    vertical-align: middle !important;
}

/* Compact cart form area */
.summary form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 15px 0 !important;
}

.summary form.cart .quantity {
    margin: 0 !important;
}

.summary form.cart button.single_add_to_cart_button {
    flex: 1 !important;
    min-width: 150px !important;
}

/* Meta row compact */
.summary .product-meta-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid #eee !important;
    font-size: 13px !important;
}

@media (max-width: 768px) {
    .woocommerce-tabs ul.tabs {
        flex-wrap: wrap !important;
    }
    
    .woocommerce-tabs ul.tabs li a {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
}
