/* =================================
   PRODUCTO PAGE
================================= */

.producto-page .producto-container {
    padding: 40px 20px;
    background: var(--brand-bg);
}

/* ---------- LAYOUT ---------- */

.producto-page .producto-grid {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.producto-page .galeria {
    flex: 1;
}

.producto-page .detalle {
    flex: 1;
}

/* ---------- BREADCRUMB ---------- */

.producto-page .breadcrumb-custom {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.producto-page .breadcrumb-custom span {
    margin: 0 6px;
}

.producto-page .breadcrumb-custom a {
    text-decoration: none;
    color: inherit;
    pointer-events: none;
}

/* ---------- GALERÍA ---------- */

.producto-page .main-image-wrapper {
    width: 100%;
    max-width: 550px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f6f6f6;
    position: relative;
}

.producto-page .main-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.producto-page .thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.producto-page .thumb-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--brand-grey);
    transition: transform 0.2s ease;
}

.producto-page .thumb-wrapper:hover {
    transform: scale(1.05);
}

.producto-page .thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- BADGES ---------- */

.producto-page .badge-cond {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    color: #fff;
}

.producto-page .badge-cond.muy-usado {
    background: #6c757d;
}

.producto-page .badge-cond.usado {
    background: #ff9800;
}

.producto-page .badge-cond.semi-nuevo {
    background: #ffc107;
}

.producto-page .badge-cond.un-uso {
    background: #4caf50;
}

.producto-page .badge-cond.nuevo {
    background: var(--brand-primary);
}

/* ---------- INFO PRODUCTO ---------- */

.producto-page .detalle .marca {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 4px;
}

.producto-page .titulo {
    font-size: 1.7rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.producto-page .precio {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 24px;
}

.producto-page .acciones {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

/* Botones específicos (sin tocar .btn global) */

.producto-page .btn-compra {
    background: var(--brand-primary);
    color: #fff;
}

.producto-page .btn-compra:hover {
    background: var(--brand-dark);
}

.producto-page .btn-oferta {
    background: transparent;
    border: 2px solid #333;
    color: #333;
}

.producto-page .btn-oferta:hover {
    background: #333;
    color: #fff;
}

/* ---------- DESCRIPCIÓN ---------- */

.producto-page .descripcion h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.producto-page .descripcion p {
    line-height: 1.6;
    color: #444;
}

/* ---------- BLOQUE MARCA ---------- */

.producto-page .marca-bloque {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.producto-page .brand-logo-product img {
    max-height: 80px;
    width: auto;
    border-radius: 8px;
    background: var(--brand-grey);
    display: block;
}

.producto-page .no-logo {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

.producto-page .brand-name {
    flex: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
}

.producto-page .brand-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-size: 0.95rem;
    color: #555;
}

.producto-page .brand-info .published-date {
    font-weight: 500;
    font-size: 0.8rem;
}

.producto-page .brand-info .offer-count {
    font-weight: 600;
    color: var(--brand-primary);
}

.producto-page .negociacion-curso {
    width: 100%;
    padding: 14px;
    text-align: center;
    border-radius: 10px;
    background: #fff3e0;
    color: var(--brand-primary);
    font-weight: 600;
}

/* ---------- MODAL ---------- */

.producto-page .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.producto-page .modal-content {
    background: var(--brand-bg);
    padding: 24px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.producto-page .modal-content h3 {
    margin: 0;
    font-size: 1.3rem;
    text-align: center;
}

.producto-page .modal-content label {
    font-weight: 500;
    margin-top: 8px;
}

.producto-page .modal-content input,
.producto-page .modal-content textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--brand-grey);
    border-radius: 6px;
    font-size: 1rem;
}

.producto-page .modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.producto-page .envios-producto h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.producto-page .envios-producto {
    margin-top: 30px;
}

.producto-page .lista-envios {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.producto-page .lista-envios li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 15px;
}

.producto-page .lista-envios i {
    color: var(--brand-primary);
    width: 18px;
}

.producto-page .envios-info {
    font-size: 13px;
    color: #777;
    margin-top: 10px;
}

/* =================================
   RESPONSIVE
================================= */

@media (max-width: 767px) {
    .producto-page .brand-logo-product img {
        max-height: 60px;
    }

    .producto-page .producto-grid {
        flex-direction: column;
        gap: 16px;
    }

    .producto-page .marca-bloque {
        display: grid;
        grid-template-columns: 65px 1fr auto;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        width: 100%;
    }

    .producto-page .brand-info {
        font-size: 0.85rem;
    }

    .producto-page .galeria {
        order: 2;
        width: 100%;
    }

    .producto-page .main-image-wrapper {
        height: 300px;
    }

    .producto-page .thumbs {
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        margin-top: 8px;
    }

    .producto-page .thumb-wrapper {
        width: 50px;
        height: 50px;
        flex: 0 0 auto;
    }

    .producto-page .detalle {
        order: 3;
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .producto-page .detalle .titulo {
        font-size: 1.6rem;
        margin-bottom: 0;
        padding-top: 0px;
    }

    .producto-page .detalle .precio {
        font-size: 1.7rem;
        margin: 0px;
    }

    .producto-page .acciones {
        flex-direction: column;
        gap: 8px;
        margin-top: 8px;
    }

    .producto-page .acciones .btn {
        width: 100%;
        font-size: 1rem;
        padding: 10px 0;
    }

    .producto-page .descripcion {
        order: 4;
    }

    .producto-page .descripcion h3 {
        font-size: 1.1rem;
        margin-top: 12px;
    }

    .producto-page .descripcion p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

/* ZOOM OVERLAY */

.image-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.zoomed-image {
    max-height: 95vh;
    max-width: 95vw;
    cursor: zoom-in;
    transition: transform .2s;
}

.zoom-prev,
.zoom-next{
position:absolute;
top:50%;
transform:translateY(-50%);
font-size:40px;
color:white;
border:none;
cursor:pointer;
border-radius:6px;
z-index:10001;
background:none;
}

.zoom-prev{
left:10px;
}

.zoom-next{
right:10px;
}

/* cursor en imagen */

.main-product-image {
    cursor: zoom-in;
}

/*PREGUNTAS Y RESPUESTAS*/
.preguntas-producto {
    margin-top: 40px;
}

.pregunta-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.pregunta {
    font-size: 15px;
}

.respuesta {
    background: #f6f6f6;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.preguntas-info {
    color: var(--brand-primary);
    cursor: pointer;
    font-size: 16px;
}