/* Full product page. The shared purchase partial retains detalle-producto.css. */
.detalle-page { --page-accent: var(--main-bg-color, #333); --page-border: #e3e6eb; --page-muted: #68717e; padding-bottom: 36px; color: #303741; }
.detalle-page .page-header { margin-bottom: 20px; }
.detalle-page .page-header__breadcrumb { padding: 18px 0 10px; }
.detalle-page .breadcrumb { gap: 4px; font-size: 11px; line-height: 1.7; }
.detalle-page .product { margin-top: 0 !important; }
.detalle-page .btnAgregarFlotante { z-index: 1030; }
.detalle-heading { min-width: 0; margin-bottom: 22px; padding: 26px 30px; border: 1px solid var(--page-border); border-radius: 18px; background: #fff; box-shadow: 0 3px 10px rgba(25, 30, 40, .025); }
.detalle-page .detalle-heading .product__name { max-width: 100%; margin: 0 0 14px !important; color: #282f38; font-size: clamp(25px, 2.7vw, 34px); font-weight: 750; line-height: 1.25; letter-spacing: -.03em; overflow-wrap: anywhere; }
.detalle-heading .marcaTitulo { color: var(--page-muted); font-weight: 500; }
.detalle-page .detalle-ficha { min-width: 0; margin-bottom: 14px; padding: 20px; border: 1px solid var(--page-border); border-radius: 16px; background: #fff; box-shadow: 0 3px 10px rgba(25, 30, 40, .025); }
.detalle-ficha h2 { margin: 0 0 14px; color: #303741; font-size: 14px; font-weight: 650; line-height: 1.5; }
.detalle-ficha .product-card__badges-list { position: static !important; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: auto; margin: 0 0 12px; padding: 0; }
.detalle-ficha .product-card__badges-list:empty { display: none; }
.detalle-ficha .product-card__badge { margin: 0; padding: 5px 8px; border-radius: 6px !important; font-size: 9px; line-height: 1.5; white-space: normal; }
.detalle-ficha .product-card__badge a { color: inherit; }
.detalle-ficha .tags__list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.detalle-ficha .tags__list a { margin: 0; padding: 5px 8px; border: 0; border-radius: 7px; background: #f2f4f7; color: #68717e; font-size: 10px; line-height: 1.5; }
.detalle-ficha .tags__list a:hover { color: var(--page-accent); }
.detalle-heading #divNombreMobile:empty { display: none; }
.detalle-page .product__gallery, .detalle-page .product__info, .detalle-page .product__sidebar { min-width: 0; }
.detalle-page .product-gallery__featured { padding: 0; border: 1px solid var(--page-border); border-radius: 18px; background: #fff; box-shadow: none; overflow: hidden; }
.detalle-page .product-gallery__featured .product-image { padding: 16px; }
.detalle-page .product-gallery__featured .product-image__img { object-fit: contain; }
.detalle-page .product-gallery__featured > .product-gallery__zoom { top: 12px; right: 12px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid #e9ecf0; border-radius: 10px; background: #f8f9fb; fill: #737e8c; }
.detalle-page .product-gallery__carousel { margin-top: 12px; }
.detalle-page .product-gallery__carousel-item { border: 1px solid var(--page-border); border-radius: 10px; background: #fff; box-shadow: none; overflow: hidden; }
.detalle-page .product-gallery__carousel-item--active { border-color: var(--page-accent); }
.detalle-page .detalle-overview { padding: 20px; border: 1px solid var(--page-border); border-radius: 16px; background: #fff; }
.detalle-page .detalle-overview:not(:has(> *)) { display: none; }
.detalle-page .product__description { margin: 0; color: #626c79; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.detalle-page .product__features { margin: 14px 0 0; color: #626c79; font-size: 12px; line-height: 1.8; }
.detalle-page .detalle-notice .block-features__list { border: 1px solid var(--page-border); border-radius: 14px; background: #fff; overflow: hidden; }
.detalle-page .detalle-notice .block-features__item { padding: 16px; background: transparent !important; }
.detalle-page .detalle-notice .product-card__badge { padding: 4px 7px; border-radius: 5px !important; font-size: 9px; line-height: 1.5; }
.detalle-page .detalle-notice .block-features__subtitle { color: var(--page-muted); font-size: 12px !important; line-height: 1.7; }
.detalle-page .detalle-notice .slick-list { width: 100%; padding: 0 !important; }
.detalle-page .divDetalleMediosEnvios { border: 1px solid var(--page-border); border-radius: 14px; background: #fff; }
.detalle-page .divDetalleMediosEnvios .block-features__item { width: 100%; gap: 14px; padding: 18px; border-radius: 14px; background: transparent !important; }
.detalle-page .divDetalleMediosEnvios .block-features__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; margin: 0; border-radius: 12px; background: #f3f5f7; fill: var(--page-accent); }
.detalle-page .divDetalleMediosEnvios .block-features__icon svg { width: 25px; height: 25px; }
.detalle-page .divDetalleMediosEnvios .block-features__title { font-size: 13px; font-weight: 650; line-height: 1.5; }
.detalle-page .divDetalleMediosEnvios .block-features__subtitle { margin-top: 5px; font-size: 12px; line-height: 1.6; }
.detalle-page #detalleDiv { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.detalle-page .product__sidebar .address-card { border: 1px solid var(--page-border); border-radius: 14px; background: #fff; }
.detalle-page .product__sidebar .address-card__body { padding: 20px; }
.detalle-page .product__sidebar .address-card__badge { position: static; width: auto !important; margin: 0 0 14px; padding: 0; background: transparent; color: #303741; font-size: 14px; font-weight: 650; text-align: left !important; }
.detalle-page .detalle-stock-alert { min-width: 0; margin-top: 14px; padding: 20px; border: 1px solid var(--page-border); border-radius: 16px; background: #fff; box-shadow: 0 3px 10px rgba(25, 30, 40, .025); text-align: left; }
.detalle-stock-alert__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: color-mix(in srgb, var(--page-accent) 10%, white); color: var(--page-accent); font-size: 18px; }
.detalle-page .detalle-stock-alert h3 { margin: 0 0 8px; color: #303741; font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: -.025em; }
.detalle-stock-alert p { margin: 0 0 20px; color: var(--page-muted); font-size: 12px; line-height: 1.65; }
.detalle-stock-alert__form { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.detalle-stock-alert__form label { margin: 0; color: #505967; font-size: 12px; font-weight: 600; line-height: 1.5; }
.detalle-page .detalle-stock-alert .form-control { width: 100%; min-width: 0; height: 46px; padding: 11px 12px; border: 1px solid #dce1e7; border-radius: 10px; background: #f8f9fb; color: #303741; font-size: 13px; box-shadow: none; }
.detalle-stock-alert .form-control::placeholder { color: #969faa; opacity: 1; }
.detalle-page .detalle-stock-alert .form-control:focus { outline: none; border-color: var(--page-accent); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-accent) 12%, transparent); }
.detalle-page .detalle-stock-alert .btn { display: flex; align-items: center; justify-content: center; width: 100%; height: auto; min-height: 46px; margin: 6px 0 0; padding: 11px 14px; border: 1px solid var(--page-accent); border-radius: 10px; background: var(--page-accent); color: var(--main-letra, #fff); font-size: 13px; font-weight: 650; line-height: 1.5; }
.detalle-stock-alert .btn:focus-visible { outline: 2px solid var(--page-accent); outline-offset: 3px; }
.detalle-page .product-tabs { margin-top: 28px; border: 1px solid var(--page-border); border-radius: 18px; background: #fff; overflow: hidden; }
.detalle-page .product-tabs__content { padding: 28px !important; }
.detalle-section-title { margin: 0 0 22px; color: #303741; font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.detalle-page .cleanText { color: #596371; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.detalle-page .cleanText p { font-size: 13px; line-height: 1.9; }
.detalle-page .cleanText :is(img, iframe) { max-width: 100%; }
.detalle-page .cleanText table { display: block; max-width: 100%; overflow-x: auto; font-size: 12px; }
.detalle-page .cleanText :is(td, th) { padding: 10px 12px; border-color: #e8ecf1; }
.detalle-page .spec__row { padding: 12px 0; border-color: #e8ecf1; font-size: 13px; line-height: 1.7; }
.detalle-page .block-header__title { color: #303741; font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -.025em; }
.detalle-consulta { padding: 22px; border: 1px solid var(--page-border); border-radius: 16px; background: #fff; box-shadow: 0 3px 10px rgba(25, 30, 40, .025); }
.detalle-consulta__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 13px; background: #f3f5f7; color: var(--page-accent); font-size: 21px; }
.detalle-consulta .card-title { margin: 0 0 10px; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.detalle-consulta__intro { margin: 0 0 14px; color: var(--page-muted); font-size: 12px; line-height: 1.7; }
.detalle-consulta__hint { margin: 0 0 20px; color: #8a939f; font-size: 10px; line-height: 1.6; }
.detalle-consulta .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 14px; }
.detalle-consulta .row > .form-group { width: auto; max-width: 100%; min-width: 0; margin: 0; padding: 0; }
.detalle-consulta .row > .form-group:first-child, .detalle-consulta .row > .form-group:nth-child(n + 4) { grid-column: 1 / -1; }
.detalle-consulta label { display: block; margin: 0 0 7px; color: #505967; font-size: 11px; line-height: 1.5; font-weight: 600; }
.detalle-consulta .form-control { width: 100%; height: 44px; padding: 10px 12px; border: 1px solid #dce1e7; border-radius: 9px; background: #f8f9fb; color: #303741; font-size: 12px; box-shadow: none; }
.detalle-consulta .form-control::placeholder { color: #969faa; opacity: 1; }
.detalle-consulta textarea.form-control { height: auto; min-height: 110px; resize: vertical; }
.detalle-consulta .form-control:focus { outline: none; border-color: var(--page-accent); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-accent) 12%, transparent); }
.detalle-consulta .select2-container { width: 100% !important; min-width: 0; }
.detalle-consulta .select2-selection--single { height: 44px; border: 1px solid #dce1e7 !important; border-radius: 9px !important; background: #f8f9fb !important; }
.detalle-consulta .select2-selection--single .select2-selection__rendered { padding: 10px 24px 10px 12px; color: #303741; font-size: 12px; line-height: 22px; }
.detalle-consulta .select2-selection--single .select2-selection__arrow { height: 42px; }
.detalle-consulta .btn { display: flex; align-items: center; justify-content: center; min-height: 46px; height: auto; margin-top: 20px; padding: 12px 16px; border-radius: 10px; font-size: 13px; line-height: 1.5; font-weight: 650; }
.detalle-consulta .field-validation-error { display: block; margin-top: 6px; color: #b63848; font-size: 11px; line-height: 1.5; }
.detalle-consulta .input-validation-error { border-color: #c54c5c; }
.detalle-consulta .validation-summary-valid { display: none; }
.detalle-consulta .validation-summary-errors { margin-bottom: 16px; padding: 12px; border-radius: 9px; background: #fff0f2; color: #b63848; font-size: 11px; line-height: 1.6; }
.detalle-consulta :is(a, button):focus-visible { outline: 3px solid var(--page-accent); outline-offset: 3px; }
@media (min-width: 992px) {
    .detalle-page .product--layout--columnar .product__content { grid-template-columns: [gallery] minmax(0, 1.1fr) [info] minmax(0, 1fr) [sidebar] minmax(260px, .85fr); column-gap: 20px; }
    .detalle-page .product--layout--columnar .product__info { padding: 0; }
    .detalle-page .product--layout--columnar .product__sidebar { padding: 0; }
}
@media (max-width: 991px) {
    .detalle-page .product__content { display: flex; flex-direction: column; gap: 22px; }
    .detalle-page .product__gallery { order: 1; }
    .detalle-page .product__sidebar { order: 2; padding: 0; }
    .detalle-page .product__info { order: 3; padding: 0; }
    .detalle-page .product-gallery__featured .product-image { padding: 12px; }
    .detalle-page .product-gallery__featured .product-image__body { max-height: 400px; }
    .detalle-page .product__gallery .product-gallery { max-width: 560px; margin: 0 auto; }
    .detalle-page #divEcommerceMobile:empty { display: none; }
}
@media (max-width: 767px) {
    .detalle-page .detalle-ficha { display: none; }
    .detalle-page .product__content { row-gap: 12px; }
    .detalle-page .product__gallery { margin-bottom: 0; }
    .detalle-page .product__sidebar { margin-top: 0; }
}
@media (max-width: 575px) {
    .detalle-page .detalle-stock-alert .form-control { font-size: 16px; }
    .detalle-heading { margin-bottom: 20px; }
    .detalle-page .detalle-heading .product__name { font-size: 25px; }
    .detalle-page .product-tabs__content { padding: 20px !important; }
    .detalle-page .detalle-consulta { padding: 20px; }
    .detalle-page .block-header__title, .detalle-section-title { font-size: 20px; }
}

/* Rankings y banderolas comparten la ficha de información secundaria. */
.detalle-page .detalle-ficha__rankings { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.detalle-page .detalle-ficha__rankings .product-card__badges-list { margin: 0; }
.detalle-page .detalle-ficha__rankings .product-card__badge { font-size: 10px; }
@media (max-width: 991px) {
    /* Galería, compra, información secundaria: el precio no queda detrás del resumen. */
    .detalle-page .product__content { gap: 12px; }
    .detalle-page .product__gallery { order: 1; }
    .detalle-page .product__sidebar { order: 2; }
    .detalle-page .product__info { order: 3; }
    .detalle-page .detalle-overview:not(:has(.product__description, .product__features, .product-card__badge, .product__wishlist-compare)) { display: none; }
    .detalle-page .detalle-overview { padding: 14px; }
    .detalle-page .product__gallery .product-gallery { margin-bottom: 0; }
    .detalle-page .product-gallery__carousel { margin-bottom: 0; }
    .detalle-page .detalle-ficha { display: block; margin-top: 12px !important; padding: 16px; }
}
@media (max-width: 767px) {
    .detalle-page .detalle-ficha { display: block; }
    .detalle-page .product__content { row-gap: 8px; }
    .detalle-page .product__gallery, .detalle-page .product__info, .detalle-page .product__sidebar { margin-bottom: 0; }
    .detalle-page .product-gallery__carousel { margin-top: 8px; }
    .detalle-page .detalle-overview { padding: 12px; }
}

/* Botón de compra flotante en mobile, separado del borde y del área segura. */
@media (max-width: 767px) {
    .detalle-page .btnAgregarFlotante {
        display: flex;
        align-items: center;
        justify-content: center;
        left: 14px;
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        width: auto;
        min-height: 48px;
        height: auto;
        margin: 0;
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 14px;
        box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
        z-index: 1030;
    }
    .detalle-page {
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    }
}

/* Dar prioridad a la compra en el detalle mobile. */
@media (max-width: 767px) {
    body:has(.detalle-page) .wa__btn_popup,
    body:has(.detalle-page) .wa__popup_chat_box {
        display: none !important;
    }
}

/* Ocultar el CTA mientras se usa el buscador o un panel superpuesto. */
@media (max-width: 767px) {
    body:has(.mobile-header__search--open) .detalle-page .btnAgregarFlotante,
    body:has(.wa__popup_chat_box.wa__active) .detalle-page .btnAgregarFlotante,
    body:has(.dropcart--style--offcanvas.dropcart--open) .detalle-page .btnAgregarFlotante,
    body:has(.mobilemenu--open) .detalle-page .btnAgregarFlotante,
    body:has(.block-sidebar--open) .detalle-page .btnAgregarFlotante {
        display: none !important;
    }
}

/* Datos del producto integrados al encabezado, también en pantallas pequeñas. */
.detalle-page .detalle-heading .detalle-ficha { display: block; margin: 18px 0 0 !important; padding: 18px 0 0; border: 0; border-top: 1px solid #edf0f3; border-radius: 0; box-shadow: none; background: transparent; }
.detalle-heading .marcaTitulo:empty { display: none; }
.detalle-heading .detalle-ficha__rankings:empty { display: none; }
.detalle-page .detalle-heading .detalle-ficha > .product-card__badges-list { display: none; }
.detalle-page .detalle-heading .product__tags { display: none; }
.detalle-page .product-notices { width: 100%; min-width: 0; margin: 0 0 12px; }
.detalle-page .product-notices .block-features__list { display: block; min-width: 0; border-radius: 10px; background: #f8f9fb; }
.detalle-page .product-notices .block-features__item { padding: 10px 12px; }
.detalle-page .product-notices .block-features__content { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; width: 100%; min-width: 0; }
.detalle-page .product-notices .block-features__title { min-width: 0; max-width: 100%; }
.detalle-page .product-notices .block-features__subtitle { flex: 1 1 180px; min-width: 0; margin: 0 !important; overflow-wrap: anywhere; }
.detalle-page .detalle-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: start; }
.detalle-heading > :is(#divNombreMobile, .product__name) { grid-column: 1 / -1; grid-row: 1; }
.detalle-heading > .detalle-ficha { grid-column: 1; grid-row: 2; }
.detalle-heading__meta { grid-column: 2; grid-row: 2; max-width: 420px; min-width: 0; margin-top: 18px; padding-top: 18px; border-top: 1px solid #edf0f3; }
@media (max-width: 991px) {
    .detalle-page .detalle-heading { grid-template-columns: minmax(0, 1fr); }
    .detalle-heading__meta { grid-column: 1; grid-row: 3; max-width: 100%; margin-top: 14px; padding-top: 0; border-top: 0; }
}
@media (max-width: 575px) {
    .detalle-page .detalle-heading { padding: 20px 16px; }
}

/* Banner configurable del negocio, antes de la ficha del producto. */
.detalle-page .detalle-promo-banner { margin: 0 0 20px; border: 1px solid var(--page-border); border-radius: 16px; background: #fff; overflow: hidden; }
.detalle-page .detalle-promo-banner__link { display: block; transition: background-color .2s; }
.detalle-page .detalle-promo-banner__link:hover { background: #f8f9fb; }
.detalle-page .detalle-promo-banner__link:focus-visible { outline: 2px solid var(--page-accent); outline-offset: -3px; }
.detalle-page .detalle-promo-banner__image { display: block; width: 100%; height: auto; max-height: 144px; padding: 12px 20px; box-sizing: border-box; object-fit: contain; }
@media (max-width: 767px) {
    .detalle-page .detalle-promo-banner { margin-bottom: 16px; border-radius: 12px; }
    .detalle-page .detalle-promo-banner__image { max-height: 112px; padding: 10px 12px; }
}

/* Combo contents: included quantities are separate from product names and unit prices. */
.detalle-page .combo-items { margin: 28px 0 32px; }
.combo-items__header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 18px; }
.combo-items__header h2 { margin: 0 0 6px; color: #303741; font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.combo-items__header p { margin: 0; color: #68717e; font-size: 13px; line-height: 1.6; }
.combo-items__total { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border: 1px solid #e3e6eb; border-radius: 10px; background: #fff; color: #68717e; font-size: 12px; line-height: 1.5; }
.combo-items__total strong { color: #303741; font-size: 16px; }
.combo-items__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; gap: 16px; }
.detalle-page .combo-items .product-card.itemSmall.item-small--modern[data-id] { grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 14px 16px; min-height: 188px; height: 100%; padding: 18px; border-radius: 16px; box-shadow: 0 2px 6px rgba(20,25,35,.025); }
.detalle-page .combo-items .product-card.itemSmall.item-small--modern[data-id] .product-card__image { grid-column: 1; grid-row: 1 / 3; height: auto !important; align-self: center; min-height: 100px; background: #f8f9fb; }
.detalle-page .combo-items .product-card.itemSmall.item-small--modern[data-id] .product-card__info { grid-column: 2; grid-row: 1; padding-right: 24px; }
.detalle-page .combo-items .product-card.itemSmall.item-small--modern[data-id] .product-card__name h3 { font-size: 13px; font-weight: 600; line-height: 1.5; }
.combo-item__quantity { display: inline-flex; align-self: flex-start; max-width: 100%; flex-wrap: wrap; align-items: baseline; gap: 4px; margin: 0 0 10px; padding: 5px 8px; border-radius: 7px; background: #f0f2f5; background: color-mix(in srgb, var(--main-bg-color, #303741) 8%, white); color: var(--main-bg-color, #303741); font-size: 11px; font-weight: 500; line-height: 1.5; }
.combo-item__quantity strong { font-size: 15px; font-weight: 750; line-height: 1.2; }
.detalle-page .combo-items .product-card.itemSmall.item-small--modern[data-id] .product-card__actions { grid-column: 2; grid-row: 2; }
.combo-item__price-label { display: block; margin-bottom: 3px; color: #8a939f; font-size: 10px; line-height: 1.5; }
.detalle-page .combo-items .product-card.itemSmall.item-small--modern[data-id] .product-card__prices { font-size: 19px; }
@media (max-width: 575px) {
    .combo-items__header h2 { font-size: 20px; }
    .combo-items__grid { gap: 12px; }
    .detalle-page .combo-items .product-card.itemSmall.item-small--modern[data-id] { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; min-height: 170px; padding: 14px; }
}
