/* ============================================================
   EMZ — Breadcrumb tipo menú + carrito legible
   Corrección final cargada después de todos los estilos del tema.
   ============================================================ */

/* ---------- Breadcrumb tipo menú / botones ---------- */
body.woocommerce .woocommerce-breadcrumb,
body.woocommerce .breadcrumbs,
body.single-product .woocommerce-breadcrumb,
body.single-product .breadcrumbs,
body.tax-product_cat .woocommerce-breadcrumb,
body.tax-product_cat .breadcrumbs {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 0 26px !important;
    padding: 10px !important;
    border: 1px solid rgba(72, 235, 112, .14) !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(44, 224, 94, .08), transparent 34%),
        linear-gradient(135deg, rgba(10, 24, 25, .96), rgba(18, 19, 28, .96)) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .025) !important;
    color: #7f8b86 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

body.woocommerce .woocommerce-breadcrumb a,
body.woocommerce .breadcrumbs a,
body.single-product .woocommerce-breadcrumb a,
body.single-product .breadcrumbs a,
body.tax-product_cat .woocommerce-breadcrumb a,
body.tax-product_cat .breadcrumbs a,
body.woocommerce .woocommerce-breadcrumb > span:not(.divider),
body.woocommerce .breadcrumbs > span:not(.divider) {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 38px !important;
    padding: 0 15px !important;
    border: 1px solid rgba(255, 255, 255, .075) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .035) !important;
    color: #b9c4bf !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .035em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: transform .22s ease, border-color .22s ease, color .22s ease, background .22s ease, box-shadow .22s ease !important;
}

body.woocommerce .woocommerce-breadcrumb a:hover,
body.woocommerce .breadcrumbs a:hover,
body.single-product .woocommerce-breadcrumb a:hover,
body.single-product .breadcrumbs a:hover,
body.tax-product_cat .woocommerce-breadcrumb a:hover,
body.tax-product_cat .breadcrumbs a:hover {
    color: #ffffff !important;
    border-color: rgba(75, 242, 111, .42) !important;
    background: linear-gradient(135deg, rgba(30, 135, 70, .28), rgba(11, 37, 28, .82)) !important;
    box-shadow: 0 10px 24px rgba(27, 185, 77, .13) !important;
    transform: translateY(-1px) !important;
}

/* Último nivel / página actual. Flatsome suele usar .breadcrumb_last o strong. */
body.woocommerce .woocommerce-breadcrumb .breadcrumb_last,
body.woocommerce .breadcrumbs .breadcrumb_last,
body.woocommerce .woocommerce-breadcrumb strong,
body.woocommerce .breadcrumbs strong,
body.woocommerce .woocommerce-breadcrumb > span:last-child:not(.divider),
body.woocommerce .breadcrumbs > span:last-child:not(.divider) {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(80, 247, 116, .46) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(24, 165, 81, .78), rgba(15, 113, 61, .82)) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(27, 185, 77, .16), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .035em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

body.woocommerce .woocommerce-breadcrumb .divider,
body.woocommerce .breadcrumbs .divider {
    display: inline-grid !important;
    place-items: center !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    margin: 0 -1px !important;
    color: transparent !important;
    font-size: 0 !important;
    opacity: 1 !important;
}
body.woocommerce .woocommerce-breadcrumb .divider::before,
body.woocommerce .breadcrumbs .divider::before {
    content: '' !important;
    width: 7px !important;
    height: 7px !important;
    border-top: 2px solid rgba(94, 232, 124, .66) !important;
    border-right: 2px solid rgba(94, 232, 124, .66) !important;
    transform: rotate(45deg) !important;
}

/* ---------- Carrito: nombres de producto legibles ---------- */
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .woocommerce-cart-form__contents,
body.woocommerce-cart table.shop_table.cart {
    width: 100% !important;
    max-width: none !important;
}

body.woocommerce-cart table.shop_table.cart {
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.woocommerce-cart table.shop_table.cart th,
body.woocommerce-cart table.shop_table.cart td {
    box-sizing: border-box !important;
}

body.woocommerce-cart table.shop_table.cart th.product-name,
body.woocommerce-cart table.shop_table.cart td.product-name {
    width: 46% !important;
    min-width: 270px !important;
    max-width: none !important;
    padding-left: 18px !important;
    padding-right: 20px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

body.woocommerce-cart table.shop_table.cart td.product-name {
    color: #f4f7f5 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
}

body.woocommerce-cart table.shop_table.cart td.product-name a,
body.woocommerce-cart table.shop_table.cart td.product-name .product-title,
body.woocommerce-cart table.shop_table.cart td.product-name .product-title a {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #f7faf8 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    letter-spacing: .005em !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    text-decoration: none !important;
}

body.woocommerce-cart table.shop_table.cart td.product-name a:hover {
    color: #55ef73 !important;
}

body.woocommerce-cart table.shop_table.cart td.product-thumbnail {
    width: 92px !important;
    min-width: 92px !important;
    padding-right: 12px !important;
}
body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
    display: block !important;
    width: 72px !important;
    height: 96px !important;
    max-width: 72px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    border: 1px solid rgba(83, 235, 112, .22) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .30) !important;
}

body.woocommerce-cart table.shop_table.cart th.product-price,
body.woocommerce-cart table.shop_table.cart td.product-price {
    width: 16% !important;
    min-width: 105px !important;
}
body.woocommerce-cart table.shop_table.cart th.product-quantity,
body.woocommerce-cart table.shop_table.cart td.product-quantity {
    width: 22% !important;
    min-width: 165px !important;
}
body.woocommerce-cart table.shop_table.cart th.product-subtotal,
body.woocommerce-cart table.shop_table.cart td.product-subtotal {
    width: 16% !important;
    min-width: 110px !important;
}

/* Elimina cualquier límite estrecho heredado en wrappers internos del nombre. */
body.woocommerce-cart .cart_item .product-name > *,
body.woocommerce-cart .cart_item .product-name .variation,
body.woocommerce-cart .cart_item .product-name dl,
body.woocommerce-cart .cart_item .product-name p {
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

/* Tablet / móvil: tarjeta ordenada, sin textos letra por letra. */
@media (max-width: 849px) {
    body.woocommerce .woocommerce-breadcrumb,
    body.woocommerce .breadcrumbs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        margin-bottom: 20px !important;
        padding: 8px !important;
    }
    body.woocommerce .woocommerce-breadcrumb::-webkit-scrollbar,
    body.woocommerce .breadcrumbs::-webkit-scrollbar { display: none !important; }

    body.woocommerce .woocommerce-breadcrumb a,
    body.woocommerce .breadcrumbs a,
    body.woocommerce .woocommerce-breadcrumb .breadcrumb_last,
    body.woocommerce .breadcrumbs .breadcrumb_last,
    body.woocommerce .woocommerce-breadcrumb strong,
    body.woocommerce .breadcrumbs strong {
        min-height: 36px !important;
        padding: 0 13px !important;
        font-size: 11px !important;
    }

    body.woocommerce-cart table.shop_table.cart,
    body.woocommerce-cart table.shop_table.cart tbody,
    body.woocommerce-cart table.shop_table.cart tr.cart_item,
    body.woocommerce-cart table.shop_table.cart td {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    body.woocommerce-cart table.shop_table.cart tr.cart_item {
        display: grid !important;
        grid-template-columns: 74px minmax(0, 1fr) !important;
        gap: 7px 14px !important;
        padding: 16px !important;
    }

    body.woocommerce-cart table.shop_table.cart td.product-remove {
        position: absolute !important;
        top: 14px !important;
        right: 14px !important;
        width: auto !important;
    }
    body.woocommerce-cart table.shop_table.cart td.product-thumbnail {
        grid-column: 1 !important;
        grid-row: 1 / span 4 !important;
        padding: 0 !important;
    }
    body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
        width: 68px !important;
        height: 88px !important;
        max-width: 68px !important;
    }
    body.woocommerce-cart table.shop_table.cart td.product-name,
    body.woocommerce-cart table.shop_table.cart td.product-price,
    body.woocommerce-cart table.shop_table.cart td.product-quantity,
    body.woocommerce-cart table.shop_table.cart td.product-subtotal {
        grid-column: 2 !important;
        display: block !important;
        padding: 0 38px 0 0 !important;
        text-align: left !important;
    }
    body.woocommerce-cart table.shop_table.cart td.product-name,
    body.woocommerce-cart table.shop_table.cart td.product-name a {
        font-size: 15px !important;
        line-height: 1.3 !important;
    }
}

/* ============================================================
   EMZ · AJUSTE FINAL 2 — breadcrumb sin barra + carrito completo
   ============================================================ */

/* Breadcrumb: únicamente botones, sin contenedor/barra exterior. */
body.woocommerce .woocommerce-breadcrumb,
body.woocommerce .breadcrumbs,
body.single-product .woocommerce-breadcrumb,
body.single-product .breadcrumbs,
body.tax-product_cat .woocommerce-breadcrumb,
body.tax-product_cat .breadcrumbs {
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.woocommerce .woocommerce-breadcrumb a,
body.woocommerce .breadcrumbs a,
body.single-product .woocommerce-breadcrumb a,
body.single-product .breadcrumbs a,
body.tax-product_cat .woocommerce-breadcrumb a,
body.tax-product_cat .breadcrumbs a,
body.woocommerce .woocommerce-breadcrumb > span:not(.divider),
body.woocommerce .breadcrumbs > span:not(.divider) {
    min-height: 42px !important;
    padding: 0 17px !important;
    border: 1px solid rgba(83, 238, 116, .20) !important;
    border-radius: 13px !important;
    background: linear-gradient(145deg, rgba(24, 34, 38, .96), rgba(13, 22, 25, .98)) !important;
    color: #d6dfda !important;
    box-shadow: 0 9px 22px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035) !important;
}

body.woocommerce .woocommerce-breadcrumb a:hover,
body.woocommerce .breadcrumbs a:hover,
body.single-product .woocommerce-breadcrumb a:hover,
body.single-product .breadcrumbs a:hover,
body.tax-product_cat .woocommerce-breadcrumb a:hover,
body.tax-product_cat .breadcrumbs a:hover {
    border-color: rgba(82, 244, 116, .62) !important;
    background: linear-gradient(145deg, rgba(21, 91, 52, .96), rgba(11, 40, 29, .98)) !important;
    box-shadow: 0 12px 28px rgba(25, 204, 79, .18), inset 0 1px 0 rgba(255,255,255,.07) !important;
}

body.woocommerce .woocommerce-breadcrumb .breadcrumb_last,
body.woocommerce .breadcrumbs .breadcrumb_last,
body.woocommerce .woocommerce-breadcrumb strong,
body.woocommerce .breadcrumbs strong,
body.woocommerce .woocommerce-breadcrumb > span:last-child:not(.divider),
body.woocommerce .breadcrumbs > span:last-child:not(.divider) {
    min-height: 42px !important;
    padding: 0 18px !important;
    border-color: rgba(92, 255, 126, .70) !important;
    background: linear-gradient(135deg, #15934a, #0b632f) !important;
    box-shadow: 0 12px 30px rgba(25, 201, 79, .24), inset 0 1px 0 rgba(255,255,255,.10) !important;
}

/* Carrito: elimina la línea divisoria y deja aire real entre columnas. */
body.woocommerce-cart .cart-container,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .cart-sidebar {
    border-left: 0 !important;
    border-right: 0 !important;
}

body.woocommerce-cart .cart-container > .row,
body.woocommerce-cart .woocommerce-cart-form + .cart-collaterals {
    column-gap: 32px !important;
}

body.woocommerce-cart .cart-sidebar,
body.woocommerce-cart .cart-collaterals {
    padding-left: 0 !important;
}

/* La tabla debe caber completa dentro de la columna izquierda. */
@media (min-width: 850px) {
    body.woocommerce-cart .woocommerce-cart-form {
        overflow: visible !important;
        padding: 20px 18px !important;
    }

    body.woocommerce-cart table.shop_table.cart {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }

    body.woocommerce-cart table.shop_table.cart th,
    body.woocommerce-cart table.shop_table.cart td {
        min-width: 0 !important;
        max-width: none !important;
        overflow: visible !important;
    }

    body.woocommerce-cart table.shop_table.cart th.product-name,
    body.woocommerce-cart table.shop_table.cart td.product-name {
        width: 50% !important;
        min-width: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.woocommerce-cart table.shop_table.cart th.product-price,
    body.woocommerce-cart table.shop_table.cart td.product-price {
        width: 15% !important;
        min-width: 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        white-space: nowrap !important;
    }

    body.woocommerce-cart table.shop_table.cart th.product-quantity,
    body.woocommerce-cart table.shop_table.cart td.product-quantity {
        width: 21% !important;
        min-width: 0 !important;
        padding-left: 7px !important;
        padding-right: 7px !important;
        text-align: center !important;
    }

    body.woocommerce-cart table.shop_table.cart th.product-subtotal,
    body.woocommerce-cart table.shop_table.cart td.product-subtotal {
        width: 14% !important;
        min-width: 0 !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    body.woocommerce-cart table.shop_table.cart td.product-thumbnail {
        width: 82px !important;
        min-width: 82px !important;
        padding-left: 4px !important;
        padding-right: 10px !important;
    }

    body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
        width: 68px !important;
        height: 88px !important;
        max-width: 68px !important;
    }

    body.woocommerce-cart table.shop_table.cart td.product-name a {
        display: block !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    body.woocommerce-cart .quantity {
        display: inline-grid !important;
        grid-template-columns: 34px 44px 34px !important;
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
        overflow: hidden !important;
        vertical-align: middle !important;
    }

    body.woocommerce-cart .quantity .minus,
    body.woocommerce-cart .quantity .plus,
    body.woocommerce-cart .quantity input.qty {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        text-align: center !important;
    }
}

@media (max-width: 849px) {
    body.woocommerce .woocommerce-breadcrumb,
    body.woocommerce .breadcrumbs {
        padding: 0 2px 5px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
}
