/* ... (El resto de tu c�digo CSS base se mantiene) ... */
/* Aseg�rate de aplicar display: inline-flex al contenedor de los botones en el HTML/Razor */

/* Aqu� est� la versi�n final del CSS: */

:root {
    --colorCabecera: #ffffff;
    --colorTextoCabecera: #323232;
    --colorCorporativo: #C76A20; /* Naranja corporativo */
    --colorFondo: #ffffff;
    --colorTexto: #333;
    --colorTextoContraste: #ffffff;
    --colorBorde: #111;
    --colorDestacado: #C76A20;
    --colorTextoBoton: #ffffff;
    --colorIcono: #C76A20;
    --colorBarraBusqueda: #fff;
    --colorBarraBusquedaTexto: #111;
    --colorBotonLista: #C76A20;
    --colorBotonTextoLista: #ffffff;
    --colorFondoMenu: #ffffff;
    --colorTextoMenu: #333333;
    --colorFondoHover: #f5f5f5;
}

/* ===================================== */
/* MENU NAVIGATION - COLOR CORRECTIONS  */
/* ===================================== */

/* Elementos del menú principal */
.main-menu nav > ul > li > a {
    color: var(--colorTextoMenu) !important;
}

.main-menu nav > ul > li.active > a,
.main-menu nav > ul > li:hover > a {
    color: var(--colorCorporativo) !important;
}

/* Sub-menú de categorías */
.sub-menu.categorias {
    background-color: var(--colorFondoMenu);
}

.sub-menu.categorias > li > a {
    color: var(--colorTextoMenu) !important;
}

.sub-menu.categorias > li > a:hover {
    background-color: var(--colorFondoHover);
    color: var(--colorCorporativo) !important;
}

/* Mega menú (4 columnas) */
.sub-menu.mega-menu.four-column {
    background-color: var(--colorFondoMenu);
}

.sub-menu.mega-menu li a {
    color: var(--colorTextoMenu) !important;
}

.sub-menu.mega-menu li a:hover {
    color: var(--colorCorporativo) !important;
    background-color: var(--colorFondoHover);
}

.sub-menu.mega-menu .title h3 {
    background-color: var(--colorCorporativo) !important;
    color: var(--colorTextoBoton) !important;
}

/* --------------------------------------------------------------------- */
/* ... (Estilos Base de Home, Carruseles, Vistas Din�micas, y Carrito se mantienen intactos) ... */
/* --------------------------------------------------------------------- */

/**
 * SLIDER PRINCIPAL (BANNER HOME)
 */
.main-hero-container .hero-slider-item-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
    height: 336px;
}

.main-hero-container .hero-image,
.main-hero-container .hero-image img {
    max-height: 600px;
}

.main-hero-container .hero-slider-wrapper .slick-active .hero-slider-content {
    overflow: hidden;
    padding: 0;
    height: auto;
    margin: 0;
    top: 0;
    background: transparent;
    position: inherit;
}

.main-hero-container .hero-slider-item-wrapper.hero-image {
    position: relative;
    width: 100%;
    padding-top: 32%;
    background-size: contain;
}

.main-hero-container .single-slider-product__image img {
    padding: 10px;
}

.main-hero-container .single-slider-product__image {
    min-height: 150px;
    border-radius: 5px;
}

.big-image-slider-single-item {
    max-width: 330px;
}

.small-image-slider-wrapper,
.small-image-slider-wrapper--quickview {
    padding: 0;
}

.customer-support-text .text p {
    color: var(--colorTextoCabecera);
}

.header-cart-icon .small-cart-trigger {
    background: var(--colorCorporativo);
    color: var(--colorFondo);
}

    .header-cart-icon .small-cart-trigger:hover,
    .header-cart-icon .small-cart-trigger.active {
        background: var(--colorFondo);
        color: var(--colorCorporativo);
    }

        .header-cart-icon .small-cart-trigger .cart-counter,
        .header-cart-icon .small-cart-trigger.active .cart-counter {
            background-color: var(--colorFondo);
        }

        .header-cart-icon .small-cart-trigger:hover .cart-counter,
        .header-cart-icon .small-cart-trigger.active .cart-counter {
            color: var(--colorFondo);
            background-color: var(--colorCorporativo);
        }

.home-icon {
    margin: 10px;
    padding: 10px;
    border: 3px solid #ccc;
    border-radius: 10px;
    text-align: center;
    max-width: 230px;
}

    .home-icon .icon {
        font-size: 3em;
        color: var(--colorCorporativo);
    }

    .home-icon .title {
        font-size: 1.2em;
        padding-top: 10px;
        padding-bottom: 20px;
        color: var(--colorCorporativo);
        margin-top: 5px;
    }

    .home-icon .description {
        font-size: 1.1em;
        line-height: 1.5em;
        padding: 5px;
    }

/* --------------------------------------------------------------------- */

/**
 * TARJETAS DE PRODUCTO (GRID / CARRUSEL) - BASE
 */
.shop-product-wrap.grid .row,
.slick-track {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: wrap;
}

.shop-product-wrap > div {
    padding: 5px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    flex: 0 0 100%;
    max-width: 100%;
}

.shop-product-wrap.three-column > div {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
}

.shop-product-wrap.four-column > div {
    flex: 0 0 calc(25% - 10px);
    max-width: calc(25% - 10px);
}

@media (max-width: 767px) {
    .shop-product-wrap.grid > div {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 575px) {
    .shop-product-wrap.grid > div {
        flex: 0 0 calc(100% - 10px);
        max-width: calc(100% - 10px);
    }
}

/* C�DIGO INTERNO DE TARJETA */
.grid-view-product .single-slider-product-wrapper,
.slick-slide .single-slider-product-wrapper,
.grid-view-product,
.slick-slide .single-slider-product {
    height: 100% !important;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    border: none;
    overflow: hidden;
}

    .grid-view-product .single-slider-product-wrapper,
    .slick-slide .single-slider-product-wrapper {
        border: 1px solid #f0f0f0;
    }

    .grid-view-product .single-slider-product__image,
    .slick-slide .single-slider-product__image {
        min-height: 250px;
        height: 250px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid #f0f0f0;
        padding: 10px;
    }

        .grid-view-product .single-slider-product__image a {
            display: flex;
            width: 100%;
            height: 100%;
            align-items: center;
            justify-content: center;
        }

        .grid-view-product .single-slider-product__image img {
            max-height: 100%;
            max-width: 90%;
            object-fit: contain;
            width: auto;
            height: auto;
        }

        .slick-slide .single-slider-product__image img {
            max-height: 100%;
            max-width: 65%;
            object-fit: contain;
        }

    .grid-view-product .single-slider-product__content,
    .slick-slide .single-slider-product__content {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        padding: 10px;
    }

    .grid-view-product .product-title,
    .slick-slide .product-title {
        min-height: 40px;
        height: 40px;
        overflow: hidden;
        flex-shrink: 0;
    }

        .grid-view-product .product-title a,
        .slick-slide .product-title a {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 20px;
        }

    .grid-view-product .wrapFlex.bottom,
    .slick-slide .wrapFlex.bottom {
        margin-top: auto;
        padding-top: 10px;
        flex-shrink: 0;
        border-top: 1px solid #f0f0f0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 80px;
        height: 90px;
    }

/* Contenedor de Acciones (Altura Fija 40px y Alineaci�n) */
.slick-slide .modern-actions-container,
.slick-slide .text-center.mt-4 {
    width: 100%;
    min-height: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    flex-shrink: 0;
}

    .slick-slide .text-center.mt-4 .btn {
        height: 40px;
        line-height: normal;
    }

.grid-view-product .wrapFlex.bottom > .theme-button,
.slick-slide .wrapFlex.bottom > .theme-button {
    height: 40px;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-actions-container {
    display: flex;
}

.grid-view-product .item-actions-container .action-block,
.slick-slide .item-actions-container .action-block {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.grid-view-product .item-actions-container .segmented-control,
.slick-slide .item-actions-container .segmented-control {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    height: 40px;
}

    .grid-view-product .item-actions-container .segmented-control label,
    .slick-slide .item-actions-container .segmented-control label {
        padding: 0 8px;
        font-size: 13px;
        display: flex;
        align-items: center;
        cursor: pointer;
        margin-bottom: 0;
    }

    .grid-view-product .item-actions-container .segmented-control input[type="radio"],
    .slick-slide .item-actions-container .segmented-control input[type="radio"] {
        display: none;
    }

        .grid-view-product .item-actions-container .segmented-control input[type="radio"]:checked + label,
        .slick-slide .item-actions-container .segmented-control input[type="radio"]:checked + label {
            background-color: var(--colorCorporativo);
            color: var(--colorTextoBoton);
        }
.pro-qty {
    position: relative;
    display: inline-block;
    height: 40px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    width: fit-content;
}
.grid-view-product .item-actions-container .pro-qty,
.slick-slide .item-actions-container .pro-qty {
    height: 40px;
    margin-bottom: 0 !important;
    position: relative;
    top: 3px !important;
    box-sizing: border-box;
    overflow: hidden;
    width: 65px;
}
/* Correcci�n Espec�fica para Firefox (motor Gecko) */
@-moz-document url-prefix() {
    /* Regla para anular el 'top' en el elemento .pro-qty cuando se encuentra
       dentro de la VISTA DE LISTA (.list-view-product) */
    .grid-view-product .pro-qty {
        top: 0 !important; /* Anula el top: 3px en Firefox solo en esta vista */
    }
    /* Nota: Si el .pro-qty dentro de .modern-actions-container tambi�n da problemas 
       (solo aparece en la vista de lista), tambi�n podr�as querer anularlo: */
    /**/
    .grid-view-product .modern-actions-container .pro-qty {
        top: 0 !important;
    }
    /**/
}

    .grid-view-product .item-actions-container .pro-qty input,
    .slick-slide .item-actions-container .pro-qty input {
        width: 60px;
        height: 100%;
    }

    .grid-view-product .item-actions-container .pro-qty button,
    .slick-slide .item-actions-container .pro-qty button {
        width: 20px;
        height: 20px;
        line-height: 20px;
    }

        .slick-slide .item-actions-container .pro-qty button.inc {
            top: 0;
        }

        .slick-slide .item-actions-container .pro-qty button.dec {
            bottom: 0;
        }

.grid-view-product .item-actions-container .list-cart-button,
.slick-slide .item-actions-container .list-cart-button,
.slick-slide .cart-icon .list-cart-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* --------------------------------------------------------------------- */

/**
 * CARRUSEL - EFECTOS HOVER RESTAURADOS (ESCRITORIO)
 */
.product-card-hover {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #eee;
    border-radius: 8px;
}

    /* Efecto de elevaci�n y sombra */
    .product-card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-color: #f0f0f0;
    }

.single-slider-product__image {
    padding-top: 15px;
}

/* Ocultar acciones en escritorio por defecto */
/* Se restauran las reglas originales de opacidad 0 para hover */
.modern-actions-container {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    padding: 10px 0;
}

/* Mostrar acciones en hover */
.product-card-hover:hover .modern-actions-container {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------- */

/**
 * VISTAS DIN�MICAS (LISTA) - BASE RESTAURADA
 */
.shop-product-wrap.list-view > div {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    margin-bottom: 15px !important;
}

.shop-product-wrap:not(.list-view) .list-view-product {
    display: none !important;
}

.shop-product-wrap.list-view .grid-view-product {
    display: none !important;
}

.shop-product-wrap.list-view .list-view-product {
    display: flex !important;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
    padding: 15px;
    border: 1px solid #e9e9e9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background-color: var(--colorFondo);
}

.shop-product-wrap.list [class*='col'],
.shop-product-wrap.list [class*='col-'] {
    flex: auto;
}

.disabled-custom {
    background-color: #6c757d;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.65;
}

/**
 * VISTAS DIN�MICAS (LISTA) - Estructura de �tem (Grid Layout)
 */
.single-slider-product--list-view {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 16px;
    border-bottom: 1px solid #e9e9e9;
}

.list-view-column-image {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .list-view-column-image a {
        display: flex;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    .list-view-column-image img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

.list-view-column-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 110px;
    flex-grow: 1;
    overflow: hidden;
}

    .list-view-column-info .product-title {
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 8px 0;
        height: auto;
        min-height: auto;
    }

        .list-view-column-info .product-title a {
            color: #333;
            text-decoration: none;
            line-height: 1.4;
            white-space: normal;
            display: block;
        }

            .list-view-column-info .product-title a:hover {
                color: var(--colorCorporativo);
            }

    .list-view-column-info .product-reference,
    .list-view-column-info .product-custom-ref {
        font-size: 0.875rem;
        color: #777;
        display: block;
        margin: 0 0 4px 0;
    }

    .list-view-column-info .product-manufacturer {
        font-size: 0.875rem;
        color: #555;
        margin-top: auto;
    }

.list-view-column-actions {
    width: 250px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

    .list-view-column-actions .stock-price-wrapper {
        text-align: left;
        flex-shrink: 0;
        width: 120px;
    }

    .list-view-column-actions .product-stock-info {
        font-size: 0.8125rem;
        margin-bottom: 8px;
    }

    .list-view-column-actions .stock-item .value {
        font-weight: 600;
    }

    .list-view-column-actions .stock-green {
        color: #28a745;
    }

    .list-view-column-actions .stock-red {
        color: #dc3545;
    }

    .list-view-column-actions .product-price {
        font-size: 1.25rem;
        font-weight: 700;
        color: #333;
    }

    .list-view-column-actions .modern-actions-container {
        display: flex;
        gap: 8px;
        flex-direction: row;
        align-items: flex-start;
        width: auto;
    }

    .list-view-column-actions .pro-qty,
    .list-view-column-actions .segmented-control,
    .list-view-column-actions .list-cart-button {
        height: 40px;
        flex-shrink: 0;
        display: flex;
    }

    .list-view-column-actions .pro-qty {
        width: 65px;
        border: 1px solid #ccc;
        border-radius: 5px;
        overflow: hidden;
    }

    .list-view-column-actions .segmented-control {
        border: 1px solid #ccc;
        border-radius: 5px;
        overflow: hidden;
    }

    .list-view-column-actions .list-cart-button {
        width: 40px;
        padding: 0;
        line-height: 40px;
        border-radius: 5px;
    }

        .list-view-column-actions .list-cart-button i.fas.fa-shopping-cart {
            display: flex;
            align-items: center;
        }

    .list-view-column-actions .modern-actions-container .segmented-control input[type="radio"] {
        display: none !important;
    }

    .list-view-column-actions .modern-actions-container .segmented-control label {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
        height: 40px;
        border: 1px solid #ccc;
        cursor: pointer;
        margin-bottom: 0;
    }

    .list-view-column-actions .modern-actions-container .segmented-control input[type="radio"]:checked + label {
        background-color: var(--colorCorporativo);
        color: var(--colorTextoBoton);
        border-color: var(--colorCorporativo);
    }

/* RESPONSIVIDAD PARA LA VISTA DE LISTA */
@media (max-width: 991px) {
    .single-slider-product--list-view {
        grid-template-columns: 1fr;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .list-view-column-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
        padding-top: 5px;
        border-top: 1px dashed #f0f0f0;
        grid-template-columns: 1fr auto;
        gap: 16px;
    }

    .list-view-column-image,
    .list-view-column-info {
        width: 100%;
        min-height: auto;
    }

    .list-view-column-image {
        width: 70px;
        height: 70px;
    }

        .list-view-column-image img {
            width: 70px;
            height: 70px;
        }
}


/*=====================================================================*/
/* ESTILOS ESPEC�FICOS DE FICHA DE PRODUCTO (DETALLE) */
/*=====================================================================*/

/* Forzar Visibilidad (Anula la opacidad: 0 de carruseles) */
.product-detail-content .modern-actions-container {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    /* Layout restaurado */
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

/* ---------------------------------------------------- */
/* 1. ORGANIZACI�N Y ESPACIADO DEL CONTENIDO           */
/* ---------------------------------------------------- */

/* Estilos para los precios */
.product-detail-content .product-price--big {
    margin-bottom: 20px;
}

/* Separaci�n entre la Barra de Informaci�n y la Descripci�n Ampliada */
.product-detail-content .product-info-block {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
/* Espacio en el Bloque de Informaci�n General (descripci�n corta) */
.product-detail-content .product-short-desc {
    margin-top: 25px;
    margin-bottom: 25px;
}

/* Contenedor principal de info (Referencia, Stock, etc.) */
.product-detail-content .product-info-block > .wrapFlex.spaceBetween {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

    /* Columna de Stock/Impuestos */
    .product-detail-content .product-info-block > .wrapFlex.spaceBetween > div:first-child {
        flex: 1 1 50%;
        order: 1;
        padding-right: 15px;
    }
    /* Columna de Referencias/C�digos */
    .product-detail-content .product-info-block > .wrapFlex.spaceBetween > div:nth-child(2) {
        flex: 1 1 40%;
        order: 2;
        padding-left: 15px;
        border-left: 1px solid #eee;
    }

/* Regla individual de informaci�n (Stock, Referencia) */
.product-detail-content .single-info {
    line-height: 1.5;
    font-size: 0.95em;
    margin-bottom: 5px;
}

    .product-detail-content .single-info .title {
        font-weight: 600;
        color: #555;
        display: inline-block;
        min-width: 80px;
    }

    .product-detail-content .single-info .value {
        font-weight: 700;
    }

.product-detail-content .product-price--big {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--colorCorporativo);
}

    .product-detail-content .product-price--big .main-price.discounted {
        font-size: 0.7em;
        text-decoration: line-through;
        color: #999;
        margin-right: 10px;
    }


/* ---------------------------------------------------- */
/* 2. REFINAMIENTO DE LOS BLOQUES DE ACCI�N (COMPRA)   */
/* ---------------------------------------------------- */

/* A. Espaciado en Radio Buttons (Unidades/Cajas) */
.product-detail-content .segmented-control label {
    margin-right: 15px; /* CLAVE: Espacio entre los labels */
    padding-right: 5px;
    cursor: pointer;
}

.product-detail-content .segmented-control input[type="radio"] {
    margin-right: 5px; /* Espacio entre el radio y el texto */
}

/* Contenedor de acciones: Asegura la separaci�n entre los 3 bloques principales */
.product-detail-content .modern-actions-container {
    gap: 25px; /* Mayor separaci�n vertical entre "Elige", "Cantidad" y "Botones" */
}

    /* Bloque de Unidades/Cajas y Cantidad */
    .product-detail-content .modern-actions-container .action-block {
        width: 100%;
    }

.product-detail-content .action-label {
    font-weight: 600;
    color: var(--colorTexto);
    font-size: 1em;
    margin-bottom: 10px; /* Separaci�n de la etiqueta del control */
}

/* Selectores de Cantidad y Unidades/Cajas */
.product-detail-content .segmented-control {
    height: 48px;
    width: 250px;
}

.product-detail-content .pro-qty {
    /*height: 48px;*/
    width: 120px;
}

    .product-detail-content .pro-qty input {
        /*height: 48px;*/
        width: 120px;
    }

/* B. Botones de Acci�n (Naranja y Gris) - SOLUCI�N DE SIMETR�A FINAL */

.product-detail-content .button-group {
    width: 100%;
    display: flex;
    gap: 10px !important;
    max-width: 450px;
}

/* --- CLASES EXCLUSIVAS PARA FORZAR SIMETR�A Y COLOR --- */

.btn-masgrau-add, .btn-masgrau-buy {
    height: 48px;
    font-size: 1em;
    font-weight: 700;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    padding: 0 15px;
    /* ANULACI�N CR�TICA DE SIMETR�A: Ignora el contenido y fuerza 50/50 */
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    /* Asegurar que los iconos se centren correctamente */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
}

/* COLORES Y HOVER: Naranja Corporativo */
.btn-masgrau-add {
    background-color: var(--colorCorporativo);
    border: 2px solid var(--colorCorporativo);
    color: white;
}

    .btn-masgrau-add:hover {
        background-color: #a3531b;
        border-color: #a3531b;
    }

/* COLORES Y HOVER: Gris Secundario */
.btn-masgrau-buy {
    background-color: #6c757d;
    border: 2px solid #6c757d;
    color: white;
}

    .btn-masgrau-buy:hover {
        background-color: #5a6268;
        border-color: #5a6268;
    }

/* ---------------------------------------------------- */
/* C. Botones de Lista de Deseos (Wishlist) */
.product-detail-content .wishlist-button {
    text-align: center;
    margin-top: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 25px;
}

    .product-detail-content .wishlist-button a {
        font-size: 0.95em;
        color: #555;
        font-weight: 500;
    }

        .product-detail-content .wishlist-button a i {
            margin-right: 5px;
            color: var(--colorCorporativo);
        }

/* --- RESPONSIVIDAD DE LOS BLOQUES DE ACCI�N (ESCRITORIO) --- */

@media (min-width: 992px) {
    .product-detail-content .modern-actions-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
    }

        .product-detail-content .modern-actions-container .action-block {
            margin-right: 15px;
        }

    .product-detail-content .button-group {
        margin-top: 20px;
        width: 100%;
        max-width: 450px;
    }
}


/*=====================================================================*/
/* PEDIDO INDEX - ESTILOS DE ESCRITORIO (CARRITO) */
/*=====================================================================*/

/* ANULACI�N GENERAL DE BORDES EN CELDAS (SOLUCI�N BASE) */
.cart-table table.table tbody tr td {
    border: none !important;
}

.cart-table table.table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.cart-table thead th {
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    font-size: 0.9em;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    border-top: none;
}

.cart-table tbody tr {
    border-bottom: none !important;
    background-color: #fcfcfc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cart-table tbody td {
    vertical-align: middle;
    padding: 15px 10px;
    border-top: none;
    border-bottom: none;
}

.cart-table .pro-title a {
    color: var(--colorTexto);
    font-weight: 600;
    font-size: 1em;
    transition: color 0.2s;
}

    .cart-table .pro-title a:hover {
        color: var(--colorCorporativo);
    }

.cart-table .pro-remove-mobile .fas.fa-trash,
.cart-table td.pro-remove-mobile .fas.fa-trash {
    color: #dc3545;
    font-size: 1.2em;
    transition: transform 0.2s;
}

    .cart-table .pro-remove-mobile .fas.fa-trash:hover,
    .cart-table td.pro-remove-mobile .fas.fa-trash:hover {
        transform: scale(1.1);
    }

.cart-table .pro-qty input {
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 40px;
}

.cart-table .pro-qty {
    margin: 0 auto;
}

.pro-subtotal span[style*='font-size:x-small'] {
    color: #777;
    display: block;
    line-height: 1.2;
}

.cart-table .pro-subtotal span:first-child {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--colorTexto);
}

.cart-summary-wrap {
    background-color: #f7f7f7;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

    .cart-summary-wrap h4 {
        font-size: 1.5em;
        font-weight: 700;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--colorCorporativo);
        margin-bottom: 15px;
    }

    .cart-summary-wrap p {
        display: flex;
        justify-content: space-between;
        font-size: 1em;
        padding: 5px 0;
        color: #555;
        border-bottom: 1px dashed #eee;
    }

        .cart-summary-wrap p span {
            font-weight: 600;
            color: var(--colorTexto);
        }

    .cart-summary-wrap h2 {
        font-size: 2em;
        font-weight: 700;
        color: var(--colorTexto);
        margin-top: 20px;
        padding-top: 15px;
        border-top: 2px solid #ddd;
        display: flex;
        justify-content: space-between;
    }

        .cart-summary-wrap h2 span {
            color: var(--colorCorporativo);
            font-weight: 800;
        }

    .cart-summary-wrap a[target="_blank"] {
        color: #777;
        font-size: 0.9em;
        text-decoration: underline;
        display: block;
        text-align: right;
        margin-top: 10px;
    }

.checkout-btn {
    background-color: var(--colorCorporativo);
    color: var(--colorTextoBoton);
    border: 2px solid var(--colorCorporativo);
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    width: 100%;
    margin-top: 15px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

    .checkout-btn:hover {
        background-color: #a3531b;
        color: var(--colorTextoBoton);
    }

.btn.btn-secondary {
    background: none;
    color: #dc3545;
    border: 1px solid #dc3545;
    margin-top: 10px;
    width: 100%;
    font-size: 0.95em;
}

    .btn.btn-secondary:hover {
        background-color: #dc3545;
        color: white;
    }

/* --------------------------------------------------------------------- */

/**
 * PEDIDO INDEX - ESTILOS DE M�VIL (SOLUCI�N FINAL)
 */
@media (max-width: 767px) {

    /* RESTAURACI�N: Mostrar acciones siempre en m�vil (carruseles) */
    .modern-actions-container {
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding: 5px 0;
    }

    .product-card-hover:hover .modern-actions-container {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* 1. ESTRUCTURA DE LA TABLA: Convertir a Bloques */
    .cart-table table.table,
    .cart-table thead,
    .cart-table tbody,
    .cart-table th,
    .cart-table td,
    .cart-table tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .cart-table thead {
        display: none;
    }

    /* Estilo de la "Tarjeta" de Producto */
    .cart-table tbody tr {
        margin-bottom: 25px;
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        background-color: #fff;
        position: relative;
    }

    .cart-table td {
        border: none !important;
        padding: 8px 0;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        line-height: 1.4;
    }

        /* 2. POSICIONAMIENTO ABSOLUTO DE ELEMENTOS GR�FICOS */

        .cart-table td.pro-title {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
            padding: 0;
            margin-bottom: 10px;
            min-height: 80px;
        }

    /* Posicionamiento Absoluto de la Imagen */
    .cart-table .pro-thumbnail-group {
        position: absolute;
        top: 15px;
        left: 15px;
        z-index: 10;
        width: 60px;
        height: 60px;
    }

    /* Icono de Eliminar (Papelera) */
    .cart-table td.pro-remove-mobile {
        order: -1;
        position: absolute;
        top: 15px;
        right: 2px;
        width: auto;
        padding: 0;
        display: block;
        min-height: auto;
        z-index: 10;
    }

    /* 3. FLUJO DE INFORMACI�N PRINCIPAL (Texto al lado de la Imagen) */

    /* Empujar el texto a la derecha de la imagen y poner l�nea de separaci�n */
    .cart-table .product-details-text {
        margin-left: 85px;
        width: calc(100% - 85px);
        padding-bottom: 10px;
        border-bottom: 1px dashed #eee;
    }

        .cart-table .product-details-text .product-ref {
            font-size: 0.85em;
            color: #777;
        }

        .cart-table .product-details-text .product-name {
            font-size: 1em;
            font-weight: 700;
            line-height: 1.3;
        }

    /* 4. CELDAS DE VALOR (Precio, Cantidad, Total) - LEYENDO DE DATA-LABEL */

    .cart-table td.pro-price {
        padding-top: 15px;
    }

        .cart-table td.pro-price::before {
            content: attr(data-label);
            font-weight: 500;
            color: #777;
            font-size: 0.9em;
            padding-right: 5px;
        }

        .cart-table td.pro-price span {
            font-weight: 700;
        }

    .cart-table td.pro-quantity {
        border-top: 1px dashed #eee;
        padding-top: 15px;
    }

        .cart-table td.pro-quantity::before {
            content: attr(data-label);
            font-weight: 500;
            color: #777;
            padding-right: 5px;
        }

    .cart-table .pro-qty {
        width: 100px;
    }

    .cart-table td.pro-subtotal {
        font-size: 1.3em;
        color: var(--colorCorporativo);
        font-weight: 700;
        border-top: 2px solid #f0f0f0;
        padding-top: 10px;
        margin-top: 5px;
    }

        .cart-table td.pro-subtotal::before {
            content: attr(data-label);
            font-weight: 500;
            color: var(--colorTexto);
            font-size: 0.8em;
            padding-right: 5px;
        }

    /* Portes: Responsividad - LEYENDO DE DATA-LABEL */
    .portes-info .table, .portes-info thead, .portes-info tbody, .portes-info th, .portes-info td, .portes-info tr {
        display: block;
    }

    .portes-info thead {
        display: none;
    }

    .portes-info td {
        display: flex;
        justify-content: space-between;
        padding: 8px 10px;
        border-top: none;
        border-bottom: 1px dashed #eee;
    }

        .portes-info td::before {
            content: attr(data-label);
            font-weight: 600;
            color: #555;
            text-transform: capitalize;
        }

    /* Resumen y contenedor principal */
    .cart-summary {
        padding: 0 15px;
        margin-top: 20px;
    }

    .container-fluid.limit {
        padding: 0 10px;
    }
}
/* --------------------------------------------------------------------- */

/* --- SOLUCI�N PROBADA PARA VISTAS GRID/LISTA (NO BORRAR) --- */
/* Esta secci�n asegura la visibilidad de botones en cat�logos, anula la opacidad: 0 */
.shop-product-wrap .modern-actions-container {
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: flex !important;
}

.shop-product-wrap .product-card-hover:hover .modern-actions-container {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.grid-view-product .wrapFlex.bottom,
.slick-slide .wrapFlex.bottom {
    overflow: visible;
    height: auto;
}

.list-view-column-actions .list-cart-button {
    display: flex !important;
}

/* ===============================================
   MODERN CART DROPDOWN STYLES
   =============================================== */

/* Modern cart dropdown container */
.modern-cart-dropdown {
    position: absolute;
    top: 100%;
    right: -10px;
    margin-top: 5px;
    width: 420px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-cart-dropdown.active-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow pointer aligned with cart icon */
.modern-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--colorCorporativo);
    z-index: 1000;
}

/* Cart header */
.modern-cart-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--colorCorporativo) 0%, #d97a34 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.modern-cart-header .cart-title {
    margin: 0;
    padding-right: 160px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-cart-header .cart-title .icon-shopping-cart {
    font-size: 20px;
}

.modern-cart-header .items-count {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.cart-header-actions {
    position: absolute;
    top: 16px;
    right: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-goto-cart-full {
    height: 36px;
    padding: 0 14px;
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--colorCorporativo);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.btn-goto-cart-full:hover {
    background-color: white;
    color: var(--colorCorporativo);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-goto-cart-full i {
    font-size: 14px;
}

.btn-close-cart {
    width: 32px;
    height: 32px;
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.btn-close-cart:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Cart body - scrollable items */
.modern-cart-body {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding: 0;
}

.modern-cart-items {
    padding: 8px 0;
}

/* Individual cart item */
.modern-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    position: relative;
}

.modern-cart-item:last-child {
    border-bottom: none;
}

.modern-cart-item:hover {
    background-color: #fafafa;
}

/* Item image */
.item-image-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8f8f8;
    border: 1px solid #e8e8e8;
}

.item-image {
    display: block;
    width: 100%;
    height: 100%;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

/* Item details */
.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.item-name a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.item-name a:hover {
    color: var(--colorCorporativo);
}

/* Quantity and price */
.item-quantity-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    color: #666;
}

.quantity-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background-color: #f0f0f0;
    border-radius: 6px;
    font-weight: 600;
    color: #333;
}

.quantity-badge i {
    font-size: 11px;
    color: var(--colorCorporativo);
}

.unit-price {
    font-weight: 500;
    color: #666;
}

.item-total-price {
    margin-top: 4px;
    font-size: 15px;
    color: var(--colorCorporativo);
}

.item-total-price strong {
    font-weight: 700;
}

/* Canon info */
.item-canon-info {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border-left: 3px solid var(--colorCorporativo);
    border-radius: 6px;
    font-size: 12px;
}

.canon-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--colorCorporativo);
    margin-bottom: 4px;
}

.canon-label i {
    font-size: 13px;
}

.canon-list {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.canon-list li {
    margin: 2px 0;
}

/* Remove button */
.item-remove-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background-color: #fee;
    color: #d32f2f;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    top: 16px;
    right: 24px;
}

.item-remove-btn:hover {
    background-color: #d32f2f;
    color: white;
    transform: scale(1.1);
}

.item-remove-btn i {
    font-size: 14px;
}

/* Cart footer */
.modern-cart-footer {
    padding: 20px 24px;
    background-color: #fafafa;
    border-top: 1px solid #e8e8e8;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Cart totals */
.cart-totals {
    margin-bottom: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.total-row .total-label {
    color: #666;
    font-weight: 500;
}

.total-row .total-value {
    color: #333;
    font-weight: 600;
}

.total-row.discount-row .total-value {
    color: #28a745;
}

.total-row.final-total {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #e0e0e0;
    font-size: 16px;
}

.total-row.final-total .total-label {
    color: #333;
    font-weight: 700;
}

.total-row.final-total .total-value {
    color: var(--colorCorporativo);
    font-size: 20px;
    font-weight: 700;
}

/* Cart actions */
.cart-actions {
    display: flex;
    gap: 12px;
}

.btn-view-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--colorCorporativo) 0%, #d97a34 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(199, 106, 32, 0.3);
}

.btn-view-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 106, 32, 0.4);
    color: white;
}

/* Scrollbar styling */
.modern-cart-body::-webkit-scrollbar {
    width: 6px;
}

.modern-cart-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modern-cart-body::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

.modern-cart-body::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .modern-cart-dropdown {
        position: fixed;
        top: 60px !important;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 60px);
        border-radius: 0;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        display: flex;
        flex-direction: column;
    }
    
    .modern-cart-body {
        flex: 1;
        max-height: none;
        overflow-y: auto;
    }
    
    .modern-cart-footer {
        position: sticky;
        bottom: 0;
        flex-shrink: 0;
    }
    
    .modern-cart-item {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .item-image-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .item-name {
        font-size: 13px;
    }
    
    .item-name a {
        -webkit-line-clamp: 2;
    }
    
    .item-quantity-price {
        font-size: 12px;
    }
    
    .item-remove-btn {
        width: 28px;
        height: 28px;
        top: 12px;
        right: 16px;
    }
    
    .modern-cart-header {
        padding: 16px;
        flex-shrink: 0;
    }
    
    .modern-cart-header .cart-title {
        padding-right: 140px;
        font-size: 16px;
    }
    
    .btn-goto-cart-full {
        padding: 0 10px;
        font-size: 12px;
        height: 32px;
    }
    
    .btn-goto-cart-full i {
        font-size: 12px;
    }
    
    .btn-close-cart {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .modern-cart-dropdown {
        width: 380px;
    }
}

/* ===================================== */
/* MODERN QUANTITY CONTROLS             */
/* ===================================== */

.modern-qty-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.modern-qty-control:hover {
    border-color: var(--colorCorporativo);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.modern-qty-control input {
    width: 70px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: transparent;
    outline: none;
    padding: 0;
}

.modern-qty-control .qty-btn {
    width: 36px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 14px;
}

.modern-qty-control .qty-btn:hover {
    background: var(--colorCorporativo);
    color: #fff;
    transform: scale(1.05);
}

.modern-qty-control .qty-btn:active {
    transform: scale(0.95);
}

.modern-qty-control .qty-minus {
    border-right: 1px solid #e0e0e0;
}

.modern-qty-control .qty-plus {
    border-left: 1px solid #e0e0e0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modern-qty-control {
        border-width: 1.5px;
    }
    
    .modern-qty-control input {
        width: 60px;
        height: 36px;
        font-size: 14px;
    }
    
    .modern-qty-control .qty-btn {
        width: 32px;
        height: 36px;
        font-size: 13px;
    }
}
