/* Solo detallemuebles.blade.php (body.page-detalle-mueble) */

.detalle-mueble-topbar {
    padding: 16px 0;
    position: relative;
    z-index: 1;
}

body.page-detalle-mueble .detalle-mueble-topbar {
    padding-top: 135px;
}

.detalle-mueble-volver {
    align-items: center;
    color: #0038ff;
    display: inline-flex;
    font-size: 18px;
    font-weight: 700;
    gap: 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.detalle-mueble-volver:hover,
.detalle-mueble-volver:focus {
    color: #002bb8;
    text-decoration: none;
}

.page-title--detalle-mueble {
    background-color: #132f56;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 140px 0 70px;
}

.page-title--detalle-mueble .auto-container {
    position: relative;
    z-index: 2;
}

.page-title--detalle-mueble h1 {
    position: relative;
    z-index: 2;
}

body.page-detalle-mueble .main-header {
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 99999;
}

/* Escritorio: barra sticky azul */
@media only screen and (min-width: 1024px) {
    body.page-detalle-mueble .main-header .header-upper {
        display: none;
    }

    body.page-detalle-mueble .main-header .sticky-header {
        background: #0038ff;
        background-color: #0038ff;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 99999;
    }
}

/* Móvil/tablet: el tema usa header-upper (menú hamburguesa) */
@media only screen and (max-width: 1023px) {
    body.page-detalle-mueble .main-header {
        background: #0038ff !important;
        border-bottom: none;
        position: fixed !important;
        z-index: 99999;
    }

    body.page-detalle-mueble .main-header .sticky-header {
        display: none !important;
    }

    body.page-detalle-mueble .main-header .header-upper {
        background: #0038ff;
        display: block !important;
        position: relative;
        z-index: 1;
    }

    body.page-detalle-mueble .main-header .header-upper .main-menu {
        margin-top: -65px;
        width: 100%;
    }

    body.page-detalle-mueble .main-header .header-upper .navbar-header {
        display: block;
        position: relative;
        text-align: right;
        width: 100%;
        z-index: 12;
    }

    body.page-detalle-mueble .main-header .header-upper .navbar-toggle {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid #fff;
        display: inline-block !important;
        float: none;
        margin: 0;
    }

    body.page-detalle-mueble .main-header .header-upper .navbar-toggle .icon-bar {
        background: #fff;
    }

    body.page-detalle-mueble .main-header .header-upper .navbar-collapse > .navigation {
        background: #0038ff;
        border-color: rgba(255, 255, 255, 0.35);
    }

    body.page-detalle-mueble .detalle-mueble-topbar {
        padding-top: 100px;
    }
}

body.page-detalle-mueble .product-details .image-column,
body.page-detalle-mueble .product-details .info-column {
    margin-bottom: 30px;
}

.detalle-mueble-galeria,
.detalle-mueble-info-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}


body.page-detalle-mueble .product-details .image-column .image-carousel {
    background-color: #fff;
    border-radius: 8px;
}

body.page-detalle-mueble .product-details .image-column .thumbs-carousel li {
    background-color: transparent;
}

body.page-detalle-mueble .product-details .image-column .thumbs-carousel li img {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

body.page-detalle-mueble .product-details .image-column .thumbs-carousel li.active img,
body.page-detalle-mueble .product-details .image-column .thumbs-carousel li.current img {
    border-color: #0038ff;
}

/* Panel información */
.detalle-mueble-info-card {
    padding: 32px 36px;
}

.detalle-mueble-nombre {
    color: #1a1a1a;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
}

.detalle-mueble-modelo {
    color: #0038ff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px;
}

.detalle-mueble-descripcion {
    color: #444;
    font-size: 15px;
    line-height: 1.75;
}

.detalle-mueble-descripcion p {
    color: #444;
    margin-bottom: 12px;
}

.detalle-mueble-divider {
    border: 0;
    border-top: 1px solid #e5e5e5;
    margin: 24px 0;
}

/* Características (HTML desde admin / CKEditor) */
.detalle-mueble-caracteristicas {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.detalle-mueble-seccion-titulo,
.detalle-mueble-caracteristicas h3,
.detalle-mueble-caracteristicas h4 {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
}

.detalle-mueble-caracteristicas h3:not(.detalle-mueble-seccion-titulo),
.detalle-mueble-caracteristicas h4 {
    margin-top: 28px;
}

.detalle-mueble-caracteristicas ul:not(.mueble-colores):not(.colores-disponibles) {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}

.detalle-mueble-caracteristicas ul:not(.mueble-colores):not(.colores-disponibles) li {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    padding: 0;
}

.detalle-mueble-caracteristicas ul:not(.mueble-colores):not(.colores-disponibles) li::before {
    color: #4a4a4a;
    flex-shrink: 0;
    font-family: "Font Awesome 6 Free";
    font-size: 17px;
    font-weight: 900;
    margin-top: 2px;
    text-align: center;
    width: 22px;
}

.detalle-mueble-caracteristicas ul:not(.mueble-colores):not(.colores-disponibles) li:nth-child(1)::before {
    content: "\f5fd";
}

.detalle-mueble-caracteristicas ul:not(.mueble-colores):not(.colores-disponibles) li:nth-child(2)::before {
    content: "\f338";
}

.detalle-mueble-caracteristicas ul:not(.mueble-colores):not(.colores-disponibles) li:nth-child(3)::before {
    content: "\f337";
}

.detalle-mueble-caracteristicas ul:not(.mueble-colores):not(.colores-disponibles) li:nth-child(4)::before {
    content: "\f545";
}

.detalle-mueble-caracteristicas ul:not(.mueble-colores):not(.colores-disponibles) li:nth-child(n+5)::before {
    content: "\f00c";
}

.detalle-mueble-caracteristicas li strong {
    color: #1a1a1a;
    font-weight: 700;
    margin-right: 4px;
}

/* Ocultar colores del editor; se muestran los fijos debajo */
.detalle-mueble-caracteristicas ul.mueble-colores,
.detalle-mueble-caracteristicas ul.colores-disponibles,
.detalle-mueble-caracteristicas h3:has(+ ul.mueble-colores),
.detalle-mueble-caracteristicas h3:has(+ ul.colores-disponibles),
.detalle-mueble-caracteristicas h4:has(+ ul.mueble-colores),
.detalle-mueble-caracteristicas h4:has(+ ul.colores-disponibles) {
    display: none;
}

/* Colores disponibles — fijos en todas las fichas de producto */
.detalle-mueble-colores {
    margin-top: 28px;
}

.detalle-mueble-colores-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.detalle-mueble-colores-lista li {
    margin: 0;
    padding: 0;
}

.detalle-mueble-color-muestra {
    border: 2px solid #d8d8d8;
    border-radius: 50%;
    display: block;
    height: 42px;
    width: 42px;
}

.detalle-mueble-btn-cotizar {
    align-items: center;
    background-color: #0038ff;
    border-radius: 10px;
    color: #fff !important;
    display: flex;
    font-size: 18px;
    font-weight: 700;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
    padding: 16px 24px;
    text-decoration: none !important;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
}

.detalle-mueble-btn-cotizar:hover,
.detalle-mueble-btn-cotizar:focus {
    background-color: #002bb8;
    box-shadow: 0 6px 20px rgba(0, 56, 255, 0.35);
    color: #fff !important;
    text-decoration: none !important;
}

.detalle-mueble-btn-cotizar i {
    font-size: 24px;
}

@media only screen and (max-width: 767px) {
    body.page-detalle-mueble .detalle-mueble-topbar {
        padding-top: 100px;
    }

    .detalle-mueble-volver {
        font-size: 16px;
    }

    .page-title--detalle-mueble {
        padding: 110px 0 40px;
    }

    .detalle-mueble-info-card {
        padding: 24px 20px;
    }

    .detalle-mueble-nombre {
        font-size: 26px;
    }

    .detalle-mueble-modelo {
        font-size: 18px;
    }

    .detalle-mueble-btn-cotizar {
        font-size: 16px;
        padding: 14px 20px;
    }
}
