/* ==========================================================================
   GRALF B2B PRICING & LOOP TYPOGRAPHY (DESIGN.MD TOKENS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Loops de Productos (PVP y Símbolo AR$)
   -------------------------------------------------------------------------- */
.wolf-pvp-label {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #777777 !important;
}

.wolf-pvp-label .woocommerce-Price-currencySymbol {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #777777 !important;
}

/* Reducir el tamaño de la fuente del precio en loops al mismo tamaño que PVP (14px) */
.product-grid-item .price,
.product-grid-item .price .amount,
.wd-product .price,
.wd-product .price .amount,
.product-element-bottom .price,
.product-element-bottom .price .amount,
.products .price,
.products .price .amount,
.woocommerce-Price-amount.amount {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Preservar precio grande en ficha individual */
.summary .price, 
.elementor-widget-wd_single_product_price .price,
.summary .amount {
    font-size: 1.4rem !important;
}

/* --------------------------------------------------------------------------
   2. Bloque Mayorista B2B (Ficha Individual de Producto)
   -------------------------------------------------------------------------- */
.gralf-b2b-wrapper,
.gralf-b2b-wrapper * {
    font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    box-sizing: border-box;
}

.gralf-b2b-wrapper {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px 0 10px 0 !important; /* Identidad asimétrica oficial */
    padding: 22px 24px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Header B2B: Disponibilidad y PVP Sugerido */
.gralf-stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #F1F5F9;
}

.gralf-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gralf-stock-pill .stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.gralf-stock-pill.badge-alto { background: #E8F5E9; color: #2C9942; }
.gralf-stock-pill.badge-alto .stock-dot { background: #2C9942; }

.gralf-stock-pill.badge-medio { background: #FFF8E1; color: #F57F17; }
.gralf-stock-pill.badge-medio .stock-dot { background: #F57F17; }

.gralf-stock-pill.badge-bajo { background: #FFEBEE; color: #D32F2F; }
.gralf-stock-pill.badge-bajo .stock-dot { background: #D32F2F; }

.gralf-b2b-header-pvp {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.gralf-b2b-header-pvp .pvp-text {
    color: #4A4A4A;
    font-size: 14px;
    font-weight: 500;
}

.gralf-b2b-header-pvp .pvp-cur {
    color: #777777;
    font-size: 14px;
    font-weight: 600;
}

.gralf-b2b-header-pvp .pvp-val {
    color: #FF5100;
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .gralf-stock-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Tabla Estilizada B2B */
.gralf-table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.gralf-b2b-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
    border-spacing: 0;
}

.gralf-b2b-table thead th {
    background: #1D1D1B;
    color: #FFFFFF;
    font-weight: 600;
    padding: 12px 16px;
    border: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.gralf-b2b-table thead th:first-child { border-radius: 6px 0 0 0; }
.gralf-b2b-table thead th:last-child { border-radius: 0 6px 0 0; }

.gralf-b2b-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #F1F5F9;
    color: #1D1D1B;
    vertical-align: middle;
}

.gralf-b2b-table tbody tr:nth-child(even) {
    background: #F8F9FA;
}

.gralf-b2b-table tbody tr:hover {
    background: #FFF9F5;
}

/* Badges de Presentación */
.tag-bulto {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tag-bulto.std { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }
.tag-bulto.xl { background: #FFF0E8; color: #FF5100; border: 1px solid #FFC9B3; }
.tag-bulto.xxl { background: #EBF0FA; color: #253057; border: 1px solid #BDD0F0; }

/* Columna de Precios */
.gralf-b2b-table .price-col {
    font-weight: 700;
    font-size: 16px;
    color: #1D1D1B;
}

.gralf-b2b-table .price-col.highlight-orange {
    color: #FF5100;
}

.gralf-b2b-table .price-col.highlight-dark {
    color: #253057;
}

/* Botón CTA B2B con WhatsApp */
.gralf-b2b-footer {
    margin-top: 4px;
}

.gralf-b2b-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-align: center;
    background: #FF5100;
    color: #FFFFFF !important;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    border-radius: 10px 0 10px 0 !important; /* Identidad de marca */
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(255, 81, 0, 0.28);
    transition: all 0.25s ease;
}

.gralf-b2b-cta:hover {
    background: #1D1D1B;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(29, 29, 27, 0.3);
    transform: translateY(-1px);
}

.gralf-b2b-cta .gralf-wa-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}
