/* ═══════════════════════════════════════════════════════════════════
   Alfa Digital - Event Tickets | Product Template
   Estilos para PDP override de ticket-event.
   Replica visual+funcional del layout builder de Woodmart original.
   ═══════════════════════════════════════════════════════════════════ */

/* ═════════════════ LAYOUT PRINCIPAL ═════════════════ */

.alfa-et-pdp {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    align-items: flex-start;
    margin-top: -60px;
    background: #fff;
    padding-top: 30px;
}

.alfa-et-pdp__col--main {
    flex: 0 0 calc(60% - 17.5px);
    max-width: calc(60% - 17.5px);
}

.alfa-et-pdp__col--sticky {
    flex: 0 0 calc(40% - 17.5px);
    max-width: calc(40% - 17.5px);
}

/* Sticky en desktop: la columna sticky se pega al top al hacer scroll. */
@media (min-width: 1025px) {
    .alfa-et-pdp__col--sticky {
        position: sticky;
        top: 120px;
        align-self: flex-start;
    }
}

.alfa-et-pdp__sticky-inner > *:last-child {
    margin-bottom: 0;
}

/* ═════════════════ BREADCRUMB ═════════════════ */

.alfa-et-pdp__breadcrumb {
    color: #626262;
    font-size: 14px;
    margin-bottom: 10px;
}

.alfa-et-pdp__breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.alfa-et-pdp__breadcrumb a:hover {
    text-decoration: underline;
}

.alfa-et-pdp__breadcrumb-sep {
    margin: 0 4px;
}

/* ═════════════════ TÍTULO + SUBTÍTULO ═════════════════ */

.alfa-et-pdp__title {
    margin-bottom: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.alfa-et-pdp__subtitle {
    font-size: 16px;
    margin: 4px 0 20px;
    color: #333;
}

/* ═════════════════ TIERED PRICING TABLE ═════════════════ */

.tiered-pricing-blocks--style-4 .tiered-pricing-block {
    background: #f9f9f9;
    border-color: #e1e1e1;
    min-width: 32.3%;
}

.tiered-pricing-blocks--style-4 .tiered-pricing--active {
    background: #f1f1f1;
    border: 2px solid #000;
}

/* ═════════════════ TÍTULO "ASISTENTES" ═════════════════ */

.alfa-et-pdp__attendees-title {
    margin: 24px 0 0;
}

.alfa-et-pdp__attendees-title h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* ═════════════════ ADD TO CART WRAPPER ═════════════════ */

.alfa-et-pdp__add-to-cart {
    margin-top: 16px;
}

/* Ocultar el input qty y el botón de añadir al carrito del form WC
   (el qty se maneja con [wd_qty_buy_now] arriba, y el CTA con [wd_buy_now_button]
   en la columna sticky). Replica el comportamiento del selector `.asistentes`
   del CSS original del builder. */
.alfa-et-pdp__add-to-cart .quantity,
.alfa-et-pdp__add-to-cart button.single_add_to_cart_button.button.alt {
    display: none !important;
}

/* ═════════════════ IMAGEN (COLUMNA STICKY) ═════════════════ */

.alfa-et-pdp__image {
    margin-bottom: 0;
}

.alfa-et-pdp__image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* ═════════════════ RESUMEN DEL PEDIDO ═════════════════ */

.alfa-et-pdp__summary {
    padding: 10px;
    background: #f9f9f9;
    margin-bottom: 0;
}

.alfa-et-pdp__summary-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
}

table.ad-pdp-table {
    font-size: 16px;
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.ad-pdp-table td:last-child {
    text-align: right;
}

/* ═════════════════ BUY NOW BUTTON ═════════════════ */

button.button.alt.wd-buy-now-shortcode {
    background: #f71963;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    width: 100%;
    height: 58px !important;
    text-transform: none;
    margin-top: 16px;
    margin-bottom: 16px;
    white-space: nowrap;
}

button.button.alt.wd-buy-now-shortcode:hover,
button.button.alt.wd-buy-now-shortcode:focus {
    background: #d91255;
    color: #fff;
}

button.button.alt.wd-buy-now {
    background: #f71963;
    color: #fff;
}

/* ═════════════════ CONTROLES QTY DEL HEADER ═════════════════ */

input.wd-hqty-input.qty {
    color: #fff !important;
    background: #434343;
}

button.wd-hqty-minus,
button.wd-hqty-plus {
    background: #434343;
    color: #fff;
    margin-bottom: 0 !important;
}

/* ═════════════════ HEADER TEXT ═════════════════ */

.wd-header-text span.ad-price {
    font-size: 28px;
}

.wd-header-text ins span.woocommerce-Price-amount.amount bdi {
    color: #fff;
}

.wd-header-text span.wc-product-title {
    font-size: 22px;
}

.wd-header-text h1 {
    margin-bottom: 0;
}

.wd-header-text .subtitle {
    margin-top: -5px;
    font-size: 14px;
    color: #fff;
}

/* Logo del header sticky-compact */
.whb-t6mifibs0nln8x2sn2vi {
    width: 100px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whb-t6mifibs0nln8x2sn2vi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whb-main-header img {
    max-height: 57px;
    width: auto;
}

/* Header service row (widget de servicios) */
.header_service_row {
    margin-bottom: 6px;
}

p.service_message {
    margin-bottom: 0;
}

.header_service_row > h3 {
    font-size: 18px;
    font-weight: 600 !important;
}

/* ═════════════════ TEXTO DE CONTACTO ═════════════════ */

.alfa-et-pdp__contact {
    font-size: 16px;
    margin: 16px 0 0;
}

.alfa-et-pdp__contact a {
    font-weight: 500;
}

/* ═════════════════ LEGACY YITH (por si queda render) ═════════════════ */

.yith_evti_total_price {
    display: none;
}

.single-product .fields_panel .field_row input[type="text"],
.single-product .fields_panel .field_row input[type="email"] {
    width: 100% !important;
}

.single-product .fields_panel .field_row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.single-product .fields_panel .field_row > p.form-field {
    margin: 0;
}

.single-product .fields_panel .field_row input[type="text"],
.single-product .fields_panel .field_row input[type="email"] {
    width: 100%;
}

/* ═════════════════ RESPONSIVE ═════════════════ */

@media (max-width: 1024px) {
    .alfa-et-pdp {
        gap: 20px;
    }

    .alfa-et-pdp__col--main,
    .alfa-et-pdp__col--sticky {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .single-product .fields_panel .field_row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .alfa-et-pdp {
        margin-top: -30px;
        padding-top: 20px;
        gap: 16px;
    }

    .alfa-et-pdp__title {
        font-size: 26px;
    }

    button.button.alt.wd-buy-now-shortcode {
        font-size: 18px;
        height: 52px !important;
    }

    .single-product .fields_panel .field_row {
        grid-template-columns: 1fr;
    }

    .single-product .asistentes .alfa-et-fields-grid {
        grid-template-columns: 1fr !important;
    }

    .asistentes {
        padding: 8px !important;
    }
}
