/* =========================================================
   ULTRAPC — FICHA DE PRODUCTO MÓVIL
   Versión consolidada
   ---------------------------------------------------------
   - Navegación de pestañas
   - Informe de Estado
   - Especificaciones
   - Accesorios adicionales
   - Productos relacionados
   - Controles administrativos
   - WhatsApp / Volver arriba
   - Título y galería
   - Información secundaria
   - Banner de cuotas
   - Condición / Stock / Nota
   - Precios
   - Cotización / Carrito
   - Solicitud de fotos reales
   ========================================================= */

@media (max-width: 767px) {


    /* =====================================================
       01. TÍTULO DEL PRODUCTO
       ===================================================== */

    body.single-product h1.product_title.entry-title {
        margin-top: 3px !important;
        margin-bottom: 6px !important;
        padding: 0 !important;

        font-size: 22px !important;
        line-height: 28px !important;
        font-weight: 600 !important;
        letter-spacing: -0.12px !important;
    }



    /* =====================================================
       02. GALERÍA
       Elimina espacio vacío inferior sin alterar miniaturas
       ===================================================== */

    body.single-product .woocommerce-product-gallery {
        padding-bottom: 16px !important;
    }



    /* =====================================================
       03. PESTAÑAS DEL PRODUCTO
       Slider horizontal móvil
       ===================================================== */

    body.single-product .woocommerce-tabs ul.tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 0 10px !important;
        padding: 4px !important;
        gap: 4px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;

        border: 1px solid #dce5ed;
        border-radius: 13px;
        background: #f5f8fa;
    }

    body.single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
        display: none;
    }

    body.single-product .woocommerce-tabs ul.tabs li {
        display: block !important;

        flex: 0 0 auto !important;

        width: auto !important;
        min-width: 105px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        background: transparent !important;

        scroll-snap-align: start;
    }

    body.single-product .woocommerce-tabs ul.tabs li a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        min-height: 38px !important;

        box-sizing: border-box !important;

        padding: 7px 12px !important;

        font-size: 11px !important;
        line-height: 1.15 !important;
        font-weight: 600 !important;

        white-space: nowrap !important;
        text-align: center !important;

        border-radius: 9px;

        color: #445260;
    }

    body.single-product .woocommerce-tabs ul.tabs li.active a {
        background: #fff !important;
        color: #0875c9 !important;

        box-shadow:
            0 0 0 2px #d5e8f5,
            0 1px 3px rgba(0, 0, 0, .05);
    }



    /* =====================================================
       04. INFORME DE ESTADO — CONTENEDOR
       ===================================================== */

    body.single-product
    #tab-estado_tab #tab-estado-producto {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }



    /* =====================================================
       05. TABLAS — INFORME + ESPECIFICACIONES
       Estilos compartidos
       ===================================================== */

    body.single-product
    #tab-estado_tab #tab-estado-producto
    table.woocommerce-product-attributes.shop_attributes,

    body.single-product
    #tab-specification
    table.woocommerce-product-attributes.shop_attributes {

        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;

        margin: 0 0 16px !important;

        border-collapse: separate !important;
        border-spacing: 0 !important;

        table-layout: fixed !important;

        background: #fff;

        border: 1px solid #e6e9ed;
        border-radius: 12px;

        overflow: hidden;
    }



    /* =====================================================
       06. FILAS INFORME DE ESTADO
       ===================================================== */

    body.single-product
    #tab-estado_tab #tab-estado-producto
    table.woocommerce-product-attributes.shop_attributes tr {

        display: grid !important;
        grid-template-columns:
            minmax(115px, 42%)
            minmax(0, 58%);

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        border-bottom: 1px solid #edf0f2;
    }



    /* =====================================================
       07. FILAS ESPECIFICACIONES
       ===================================================== */

    body.single-product
    #tab-specification {
        width: 100% !important;
        max-width: 100% !important;

        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.single-product
    #tab-specification
    table.woocommerce-product-attributes.shop_attributes tr {

        display: grid !important;
        grid-template-columns:
            minmax(120px, 43%)
            minmax(0, 57%);

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        border-bottom: 1px solid #edf0f2;
    }



    /* Última fila */

    body.single-product
    #tab-estado_tab #tab-estado-producto
    table.woocommerce-product-attributes.shop_attributes tr:last-child,

    body.single-product
    #tab-specification
    table.woocommerce-product-attributes.shop_attributes tr:last-child {

        border-bottom: 0;
    }



    /* =====================================================
       08. NOMBRE DE ATRIBUTO — TH
       ===================================================== */

    body.single-product
    #tab-estado_tab #tab-estado-producto
    table.woocommerce-product-attributes.shop_attributes th,

    body.single-product
    #tab-specification
    table.woocommerce-product-attributes.shop_attributes th {

        display: flex !important;
        align-items: center !important;

        width: auto !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 11px 10px !important;

        background: #f7f8fa;

        border: 0 !important;

        font-size: 12px !important;
        line-height: 1.35 !important;
        font-weight: 600 !important;

        color: #454b52;

        text-align: left !important;
        vertical-align: middle !important;

        white-space: normal !important;
        overflow-wrap: anywhere;
    }



    /* =====================================================
       09. VALOR DEL ATRIBUTO — TD
       ===================================================== */

    body.single-product
    #tab-estado_tab #tab-estado-producto
    table.woocommerce-product-attributes.shop_attributes td,

    body.single-product
    #tab-specification
    table.woocommerce-product-attributes.shop_attributes td {

        display: flex !important;
        align-items: center !important;

        width: auto !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 11px 10px !important;

        background: #fff;

        border: 0 !important;

        font-size: 13px !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;

        color: #20252b;

        text-align: left !important;
        vertical-align: middle !important;

        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: normal;
    }



    /* Párrafos internos WooCommerce */

    body.single-product
    #tab-estado_tab #tab-estado-producto
    table.woocommerce-product-attributes.shop_attributes td p,

    body.single-product
    #tab-estado_tab #tab-estado-producto
    table.woocommerce-product-attributes.shop_attributes th p,

    body.single-product
    #tab-specification
    table.woocommerce-product-attributes.shop_attributes td p,

    body.single-product
    #tab-specification
    table.woocommerce-product-attributes.shop_attributes th p {

        margin: 0 !important;
        padding: 0 !important;

        font-size: inherit !important;
        line-height: inherit !important;
    }



    /* =====================================================
       10. ACCESORIOS ADICIONALES
       Carrusel horizontal
       ===================================================== */

    body.single-product
    .optional-accessories.products.container {

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        margin-top: 12px !important;
        margin-bottom: 18px !important;

        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    body.single-product
    .optional-accessories.products.container
    .optional-accessories-title {

        width: 100% !important;

        margin: 0 0 12px !important;
        padding: 0 0 8px !important;

        min-height: 0 !important;

        font-size: 21px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;

        border-bottom: 1px solid #dce3e8;
    }

    body.single-product
    .optional-accessories.products.container
    .optional-accessories-title::after {

        width: 52px !important;
        height: 2px !important;
    }

    body.single-product
    .optional-accessories.products.container
    > ul.products.products.list-unstyled.row {

        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 2px 2px 10px !important;

        gap: 10px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        scroll-snap-type: x proximity;
        scroll-behavior: smooth;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    body.single-product
    .optional-accessories.products.container
    > ul.products.products.list-unstyled.row::-webkit-scrollbar {

        display: none;
    }

    body.single-product
    .optional-accessories.products.container
    > ul.products.products.list-unstyled.row
    > li.product {

        flex: 0 0 138px !important;

        width: 138px !important;
        min-width: 138px !important;
        max-width: 138px !important;

        margin: 0 !important;

        scroll-snap-align: start;
    }



    /* =====================================================
       11. PRODUCTOS RELACIONADOS
       Carrusel horizontal
       ===================================================== */

    body.single-product
    section.related.products
    > ul.products.products.list-unstyled.row {

        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 2px 2px 12px !important;

        gap: 12px !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        scroll-snap-type: x proximity;
        scroll-behavior: smooth;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    body.single-product
    section.related.products
    > ul.products.products.list-unstyled.row::-webkit-scrollbar {

        display: none;
    }

    body.single-product
    section.related.products
    > ul.products.products.list-unstyled.row
    > li.product {

        flex: 0 0 270px !important;

        width: 270px !important;
        min-width: 270px !important;
        max-width: 270px !important;

        margin: 0 !important;

        scroll-snap-align: start;
    }



    /* =====================================================
       12. BOTONES ADMINISTRATIVOS
       Agotar Stock / Reservar Producto
       No flotantes en móvil
       ===================================================== */

    body.single-product .agotar-stock,
    body.single-product .reservar_producto {

        position: static !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        transform: none !important;

        float: none !important;

        display: inline-flex !important;
        align-items: center !important;

        width: auto !important;
        height: auto !important;

        margin: 8px 6px 10px 0 !important;

        vertical-align: middle !important;

        z-index: auto !important;
    }

    body.single-product .agotar-stock form,
    body.single-product .reservar_producto form {

        margin: 0 !important;
        padding: 0 !important;
    }

    body.single-product .agotar-stock input[type="submit"],
    body.single-product .reservar_producto input[type="submit"] {

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        height: 32px !important;

        margin: 0 !important;
        padding: 0 8px !important;

        border: 0 !important;
        border-radius: 16px !important;

        color: #fff !important;

        font-size: 10px !important;
        line-height: 1 !important;
        font-weight: 600 !important;

        box-shadow: 0 3px 10px rgba(0, 0, 0, .16);

        cursor: pointer;
    }

    body.single-product .agotar-stock input[type="submit"] {
        width: 88px !important;

        background: #015a9d !important;
    }

    body.single-product .reservar_producto input[type="submit"] {
        width: 118px !important;

        background: #ff9900 !important;
    }



    /* =====================================================
       13. WHATSAPP + VOLVER ARRIBA
       ===================================================== */

    body.single-product a.float {

        position: fixed !important;

        width: 52px !important;
        height: 52px !important;

        right: 8px !important;
        left: auto !important;

        bottom: 64px !important;
        top: auto !important;

        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        z-index: 9997 !important;
    }

    body.single-product a.float i,
    body.single-product a.float .fa,
    body.single-product a.float .fab {

        margin: 0 !important;

        font-size: 28px !important;
        line-height: 1 !important;
    }

    body.single-product a.back-to-top-link {

        position: fixed !important;

        width: 34px !important;
        height: 34px !important;

        right: 17px !important;
        left: auto !important;

        bottom: 20px !important;
        top: auto !important;

        margin: 0 !important;

        z-index: 9997 !important;
    }



    /* =====================================================
       14. INFORMACIÓN SECUNDARIA
       ID / DATE / SELLS
       ===================================================== */

    body.single-product
    .summary.entry-summary
    .contenedor-short-ultrapc:has(.modo_producto) {

        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 6px 0 !important;

        font-size: 11px !important;
        line-height: 1.2 !important;

        color: #7a838b !important;

        white-space: nowrap !important;
        overflow: hidden !important;
    }

    body.single-product
    .summary.entry-summary
    .contenedor-short-ultrapc:has(.modo_producto) span {

        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    body.single-product
    .summary.entry-summary
    .contenedor-short-ultrapc:has(.modo_producto)
    .separador {

        margin: 0 6px !important;

        color: #b1b8be !important;
    }

    body.single-product
    .summary.entry-summary
    .contenedor-short-ultrapc:has(.modo_producto)
    .modo_producto img {

        width: 14px !important;
        height: 14px !important;

        margin: 0 !important;

        vertical-align: middle !important;
    }

    body.single-product
    .summary.entry-summary
    .contenedor-short-ultrapc:has(.modo_producto)
    + .single-product-title-divider {

        margin: 3px 0 5px !important;

        opacity: .45;
    }



    /* =====================================================
       15. COMPARTIR
       ===================================================== */

    body.single-product
    .summary.entry-summary
    .action_buttons {

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 0 0 5px !important;
        padding: 0 !important;
    }

    body.single-product
    .summary.entry-summary
    .action_buttons .botao-wpp {

        display: inline-flex !important;
        align-items: center !important;

        width: auto !important;
        height: 28px !important;
        min-height: 28px !important;

        margin: 0 !important;
        padding: 0 7px !important;

        font-size: 11px !important;
        line-height: 1 !important;
        font-weight: 500 !important;

        color: #667889 !important;

        background: transparent !important;

        border: 0 !important;
        box-shadow: none !important;
    }

    body.single-product
    .summary.entry-summary
    .action_buttons .botao-wpp i {

        margin-right: 5px !important;

        font-size: 13px !important;
        line-height: 1 !important;
    }



    /* =====================================================
       16. BANNER MEDIOS DE PAGO / CUOTAS
       ===================================================== */

    body.single-product .imagen-flotante-derecha {

        display: block !important;

        width: 180px !important;
        max-width: 180px !important;
        height: auto !important;

        margin: 6px 0 8px !important;
        padding: 0 !important;
    }

    body.single-product .imagen-flotante-derecha img {

        display: block !important;

        width: 180px !important;
        max-width: 180px !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;
    }



    /* =====================================================
       17. CONDICIÓN DEL PRODUCTO
       USADO / NUEVO
       ===================================================== */

    body.single-product
    .summary.entry-summary
    .contenedor-short-ultrapc:has(.condicion_item_ultrapc) {

        display: inline-flex !important;
        align-items: center !important;

        width: auto !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 8px 8px 8px 0 !important;
        padding: 0 !important;

        vertical-align: middle !important;
    }

    body.single-product
    .summary.entry-summary
    .condicion_item_ultrapc {

        display: inline-flex !important;
        align-items: center !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    body.single-product
    .summary.entry-summary
    .condicion_item_ultrapc .condicion {

        display: inline-flex !important;
        align-items: center !important;

        gap: 4px !important;

        margin: 0 !important;
        padding: 0 !important;

        font-size: 18px !important;
        line-height: 1.1 !important;
        font-weight: 700 !important;
    }

    body.single-product
    .summary.entry-summary
    .condicion_item_ultrapc .condicion i {

        font-size: 13px !important;
        line-height: 1 !important;
    }



    /* =====================================================
       18. EXISTENCIAS + STOCK
       ===================================================== */

    body.single-product
    .summary.entry-summary
    .availability {

        display: inline-flex !important;
        align-items: center !important;

        width: auto !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 8px 0 !important;
        padding: 0 !important;

        vertical-align: middle !important;
    }

    body.single-product
    .summary.entry-summary
    .availability .electro-stock-availability {

        display: inline-flex !important;
        align-items: center !important;

        gap: 7px !important;

        width: auto !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    body.single-product
    .summary.entry-summary
    .availability p.stock {

        display: inline-flex !important;
        align-items: center !important;

        width: auto !important;

        margin: 0 !important;
        padding: 7px 12px !important;

        border-radius: 10px !important;

        font-size: 14px !important;
        line-height: 1.1 !important;
        font-weight: 600 !important;

        white-space: nowrap !important;
    }

    body.single-product
    .summary.entry-summary
    .availability .stock_qty {

        display: inline-block !important;

        margin: 0 !important;
        padding: 0 !important;

        font-size: 13px !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;

        white-space: nowrap !important;
    }



    /* =====================================================
       19. NOTA / DETALLES FUNCIONALES
       ===================================================== */

    body.single-product
    .summary.entry-summary
    .contenedor_detalles_funcionales {

        display: flex !important;
        align-items: baseline !important;
        flex-wrap: wrap !important;

        column-gap: 5px !important;
        row-gap: 2px !important;

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 4px 0 8px !important;
        padding: 8px 10px !important;

        background: #f7f9fb !important;

        border: 1px solid #e6ebef !important;
        border-radius: 9px !important;
    }

    body.single-product
    .summary.entry-summary
    .contenedor_detalles_funcionales br {

        display: none !important;
    }

    body.single-product
    .summary.entry-summary
    .pre_detalles_funcionales {

        margin: 0 !important;
        padding: 0 !important;

        font-size: 12px !important;
        line-height: 1.35 !important;
        font-weight: 600 !important;

        color: #74808a !important;
    }

    body.single-product
    .summary.entry-summary
    .contenedor_detalles_funcionales
    .msj_normal_negrita {

        margin: 0 !important;
        padding: 0 !important;

        font-size: 13px !important;
        line-height: 1.35 !important;
        font-weight: 600 !important;

        color: #176aa6 !important;
    }



    /* =====================================================
       21. VISUALIZACIONES
       ===================================================== */

    body.single-product
    .summary.entry-summary
    .precio_ultrapc_sumario + div {

        margin: 5px 0 7px !important;
        padding: 0 2px !important;

        min-height: 0 !important;

        font-size: 11px !important;
        line-height: 1.2 !important;

        color: #7b858d !important;
    }

    body.single-product
    .summary.entry-summary
    .precio_ultrapc_sumario + div strong {

        font-size: 11px !important;
        font-weight: 700 !important;

        color: #59636b !important;
    }

    body.single-product
    .summary.entry-summary
    .precio_ultrapc_sumario + div img {

        width: 14px !important;
        height: 14px !important;

        margin-right: 2px !important;

        vertical-align: -2px !important;
    }



    /* =====================================================
       22. COTIZACIÓN FORMAL
       ===================================================== */

    body.single-product
    .contenedor-comprar.ultrapc-contenedor-cotizacion {

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 6px 0 !important;
        padding: 0 !important;
    }

    body.single-product
    .ultrapc-boton-cotizacion {

        width: 100% !important;

        height: 40px !important;
        min-height: 40px !important;

        margin: 0 !important;
        padding: 0 14px !important;

        border-radius: 9px !important;

        font-size: 12px !important;
        line-height: 1 !important;
        font-weight: 600 !important;
    }



    /* =====================================================
       23. AGREGAR AL CARRITO
       ===================================================== */

    body.single-product
    .summary.entry-summary form.cart {

        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;

        margin: 6px 0 0 !important;
        padding: 0 !important;
    }

    body.single-product
    .summary.entry-summary
    .single_add_to_cart_button {

        width: 100% !important;

        height: 50px !important;
        min-height: 50px !important;

        margin: 0 !important;
        padding: 0 16px !important;

        border-radius: 10px !important;

        font-size: 14px !important;
        line-height: 1 !important;
        font-weight: 700 !important;
    }



    /* =====================================================
       24. SOLICITAR FOTOS REALES
       ===================================================== */

    body.single-product .boton_solicitar_fotos {

        position: static !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        transform: none !important;
        float: none !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 10px 0 14px !important;
        padding: 0 20px !important;

        box-sizing: border-box !important;
    }

    body.single-product .boton-solicite-fotos {

        position: static !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        max-width: 220px !important;

        height: 42px !important;
        min-height: 42px !important;

        margin: 0 !important;
        padding: 0 14px !important;

        border-radius: 10px !important;

        font-size: 12px !important;
        line-height: 1 !important;
        font-weight: 600 !important;

        transform: none !important;
    }

    body.single-product .boton-solicite-fotos i {

        margin-right: 6px !important;

        font-size: 17px !important;
        line-height: 1 !important;
    }


}
