/* ========================================
   PRODUCT INFO BLOCK v2.1
   CSS для теми: assets/css/product-info-block.css
   ======================================== */

/* Product Info Block */
.product-info-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
/* Назва товару */
.product-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #0F172A;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* Рядок: Лого + SKU + Наявність */
.product-meta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
/* Лого бренда */
.product-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 25px;
    padding: 2px 5px;
    border-radius: 5px;
    background-color: #f0f0f0;
    flex-shrink: 0;
    overflow: hidden;
}
.product-brand-badge img {
    max-width: 100%;
    max-height: 20px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}
/* SKU з лейблом "Модель:" */
.product-sku {
    font-family: -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    font-size: 15px;
    color: #64748B;
    font-weight: 400;
    line-height: 25px;
    display: flex;
    align-items: center;
}
/* Наявність (як в лістингу, під лого) */
.product-stock-badge {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 5px;
    font-family: -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #198754;
    background: #d1e7dd;
    width: fit-content;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* iOS specific - lighter font */
@supports (-webkit-touch-callout: none) {
    .product-stock-badge {
        font-weight: 300;
    }
}

/* ========================================
   RESPONSIVE VISIBILITY
   [product_info_block device="desktop"]
   [product_info_block device="mobile"]
   ======================================== */
.pib-desktop { display: flex; }
.pib-mobile { display: none; }

@media (max-width: 768px) {
    .pib-desktop { display: none; }
    .pib-mobile { display: flex; }
}

/* ========================================
   MOBILE STYLES
   ======================================== */
@media (max-width: 768px) {
    .product-info-block {
        gap: 10px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .product-meta-wrapper {
        gap: 8px;
    }
    
    .product-meta-row {
        gap: 12px;
    }
    
.product-brand-badge { 
    width: 70px; 
    height: 25px; 
    padding: 2px 4px; } 
    
.product-brand-badge img {
    max-height: 20px; }
    
    .product-sku {
        font-size: 16px;
        line-height: 25px;
    }
    
    .product-stock-badge {
        font-size: 12px;
        padding: 3px 7px;
    }
}
@media (max-width: 480px) {
    .product-title {
        font-size: 20px;
    }
    
    .product-sku {
        font-size: 14px;
    }
}