﻿/* ============================================================
   product-details.css  —  versión limpia y consolidada
   FIX: galería más compacta, sin scroll en miniaturas,
        imagen principal más grande (ancha y larga) y
        card ligeramente más ancho para mejor presencia.
   ============================================================ */

/* ── Variables ── */
:root {
    --pd-radius: 16px;
    --pd-radius-sm: 8px;
    --pd-shadow: 0 4px 32px rgba(0,0,0,.08);
    --pd-border: #e8e8e8;
    --pd-text: #1a1a1a;
    --pd-muted: #888;
    --pd-primary: #2563eb;
    --pd-success: #16a34a;
    --pd-danger: #dc2626;
    --pd-warning: #d97706;
    --pd-star: #f59e0b;
    --pd-bg: #f4f5f7;
    --pd-card-bg: #ffffff;
}

html, body {
    overflow-x: hidden;
}

.pd-wrapper {
    overflow: visible;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

.pd-card,
.pd-gallery-col,
.pd-info-col,
.pd-reviews-panel,
.pd-review-column-left {
    min-width: 0;
}


/* ── Wrapper ── */
.pd-wrapper {
    max-width: 95%;
    margin: 1rem auto;
    padding: 0 2rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--pd-text);
}

/* ── Card principal ── */
.pd-card {
    display: grid;
    grid-template-columns: 1fr 1.0fr;
    gap: 1.5rem;
    background: var(--pd-card-bg);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 22px;
    margin-bottom: 2rem;
}

/* ============================================================
   GALERÍA
   ============================================================ */
.pd-gallery-col {
    display: grid;
    grid-template-columns: 94px 1fr;
    grid-template-rows: min-content min-content;
    grid-template-areas:
        "thumbs main"
        "trust trust";
    gap: 8px 16px;
    align-self: start;
}

    /* Sin miniaturas: centra la imagen principal */
    .pd-gallery-col.pd-gallery-no-thumbs {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "trust";
    }

        .pd-gallery-col.pd-gallery-no-thumbs .pd-thumbs {
            display: none !important;
        }

        .pd-gallery-col.pd-gallery-no-thumbs .pd-main-img-wrap {
            width: 100% !important;
            margin: 0 !important;
            background: #ffffff !important;
        }

/* Hover del cuadro principal */
.pd-main-img-wrap:hover {
    border-color: rgba(37, 99, 235, 0.5) !important;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.15);
}

/* Imagen producto (contain) */
.pd-main-img.is-product {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
    transition: transform 0.5s ease;
}

/* Imagen modelo (cover) */
.pd-main-img.is-model {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

/* Miniaturas */
.pd-thumbs {
    grid-area: thumbs;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 450px;
    overflow-y: auto;
    overflow-x: visible;
    padding: 8px 10px;
    width: 94px;
    scrollbar-width: none;
    box-sizing: border-box;
}

    .pd-thumbs::-webkit-scrollbar {
        display: none;
    }

.pd-thumb {
    width: 78px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--pd-border);
    background-color: #fff;
    cursor: pointer;
    transition: all .2s ease-in-out;
    flex-shrink: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

    .pd-thumb:hover {
        border-color: #93c5fd;
        transform: translateY(-2px);
    }

    .pd-thumb.active {
        border-color: var(--pd-primary) !important;
        border-width: 3px;
        transform: scale(1.08);
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
        z-index: 10;
    }

/* Imagen principal */
.pd-main-img-wrap {
    grid-area: main;
    position: relative;
    background: #ffffff !important;
    border-radius: var(--pd-radius);
    overflow: hidden;
    height: clamp(340px, 42vw, 500px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(37, 99, 235, 0.2) !important;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.08);
    transition: all 0.4s ease;
    z-index: 1;
}

.pd-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.pd-main-img-wrap:hover .pd-main-img {
    transform: scale(1.06);
}

/* Gradiente de profundidad sutil */
.pd-main-img-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0) 60%, rgba(37,99,235,0.03) 100%);
    pointer-events: none;
}

/* Contador de imágenes */
.pd-img-counter {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    font-size: .75rem;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 10;
    pointer-events: none;
}

/* Grupo imagen + trust */
.pd-main-content-group {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
}

/* ============================================================
   TRUST ROW
   ============================================================ */
.pd-trust-row {
    grid-area: trust;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.pd-trust-item {
    flex: 1;
    height: 75px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

    .pd-trust-item i {
        font-size: 1.1rem;
        color: #64748b;
    }

    .pd-trust-item span {
        font-size: 0.8rem;
        font-weight: 600;
        color: #1e293b;
    }

    .pd-trust-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        border-color: #cbd5e1;
    }

/* ============================================================
   COLUMNA INFORMACIÓN
   ============================================================ */
.pd-info-col {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding-left: 1.25rem;
    border-left: 1px solid #eef0f3;
}

/* Divider global */
.pd-divider {
    width: 100%;
    height: 1px;
    background: #eef0f3;
    margin: .35rem 0;
}

/* Título + wishlist */
.pd-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
}

.pd-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    flex: 1;
}

.pd-wishlist-btn {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all .4s cubic-bezier(0.23, 1, 0.32, 1);
    color: #d1d5db;
}

    .pd-wishlist-btn:hover {
        transform: translateY(-2px);
        color: #f87171;
        border-color: rgba(248, 113, 113, 0.3);
        background: rgba(248, 113, 113, 0.03);
    }

    .pd-wishlist-btn.active {
        background: rgba(220, 38, 38, 0.03);
        color: #dc2626;
        border-color: rgba(220, 38, 38, 0.4);
        box-shadow: 0 0 10px rgba(220, 38, 38, 0.15), inset 0 0 5px rgba(220, 38, 38, 0.05);
        animation: premium-glow 4s ease-in-out infinite;
    }

@keyframes premium-glow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(220, 38, 38, 0.15);
        transform: translateY(0);
    }

    50% {
        box-shadow: 0 0 12px rgba(220, 38, 38, 0.2);
        transform: translateY(-1px);
    }
}

/* ============================================================
   RATING — ESTRELLAS
   ============================================================ */
.pd-rating {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: -30px;
}

.pd-stars {
    display: flex;
    gap: 3px;
}

.pd-star {
    font-size: 1.9rem;
    color: var(--pd-border);
    transition: all 0.3s ease;
}

    .pd-star.filled {
        color: var(--pd-star);
        text-shadow: 0 0 8px rgba(245, 158, 11, 0.45), 0 0 15px rgba(245, 158, 11, 0.2);
        opacity: 1;
    }

    .pd-star.half {
        color: var(--pd-star);
        opacity: 0.65;
        text-shadow: none;
        position: relative;
    }

    .pd-star:not(.filled):not(.half) {
        color: #e5e7eb;
        text-shadow: none;
        opacity: 0.5;
    }

.pd-rating-text {
    margin-top: 6px;
    font-size: .9rem;
    color: var(--pd-muted);
    font-weight: 600;
}

.pd-no-reviews {
    font-size: .85rem;
    color: var(--pd-muted);
    margin: 0;
}

/* Descripción */
.pd-description {
    font-size: .93rem;
    color: #71717a !important;
    line-height: 1.65;
    background: #f8fafc;
    border-radius: var(--pd-radius-sm);
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    font-weight: 500;
}

    .pd-description * {
        color: #71717a !important;
    }

/* ============================================================
   PRECIO
   ============================================================ */
.pd-price-block {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.pd-badges-row {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.pd-prices {
    order: 2;
    display: flex;
    align-items: baseline;
    gap: .75rem;
    flex-wrap: wrap;
}

.pd-badge-offer {
    background: #fee2e2;
    color: #ef4444;
    font-size: .68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    height: 22px;
}

.pd-badge-name {
    background: #1e293b;
    color: white;
    font-size: .68rem;
    font-weight: 800;
    padding: 3px 8px 3px 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Timer de oferta */
.pd-offer-timer {
    display: inline-flex !important;
    flex-direction: row !important; /* 🔥 Fuerza que estén uno al lado del otro */
    align-items: center;
    justify-content: flex-start !important;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(254, 226, 226, 0.25);
    border: 1.2px solid rgba(239, 68, 68, 0.25);
    border-radius: 50px;
    margin: 6px 0 10px 0;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2), inset 0 0 8px rgba(239, 68, 68, 0.1);
    width: auto !important;
    align-self: flex-start;
}

.pd-timer-label {
    color: #ef4444;
    font-weight: 700;
    font-size: 0.70rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

    .pd-timer-label i {
        font-size: 0.9rem;
        color: #ef4444;
        display: flex;
        align-items: center;
    }

.timer-text {
    color: #dc2626;
    font-size: 2.15rem;
    font-weight: 1000;
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.pd-timer-unit {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-timer-days {
    margin-right: 8px;
}

.pd-timer-unit small {
    font-size: 0.75rem;
    margin-left: 1px;
    font-weight: 700;
    display: inline-block;
    line-height: 1;
}

.pd-timer-divider {
    font-weight: 600;
    opacity: 0.8;
    display: flex;
    align-items: center;
    margin: 0 1px;
    transform: translateY(-1px);
}

.pd-old-price {
    font-size: 1.1rem;
    color: var(--pd-muted);
    text-decoration: line-through;
}

.pd-final-price {
    margin-top: -10px;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pd-success);
}

/* ============================================================
   VARIANTES (colores + tallas)
   ============================================================ */
.pd-variants {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.pd-variant-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.pd-variant-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pd-variant-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.pd-variant-selected {
    font-size: .88rem;
    color: var(--pd-muted);
}

.pd-size-guide {
    font-size: .82rem;
    color: var(--pd-primary);
    text-decoration: none;
}

/* Círculos de color */
.pd-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.0rem;
}

.pd-color-circle, .color-circle {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    padding: 0;
    border-radius: 12px !important;
    border: 2px solid #ddd;
    cursor: pointer;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    flex-shrink: 0;
}

    .pd-color-circle:hover, .color-circle:hover {
        transform: scale(1.12);
        border-color: #aaa;
    }

    .pd-color-circle.active, .color-circle.active {
        border: 2.5px solid var(--pd-primary);
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pd-primary);
        transform: scale(1.08);
    }

    .pd-color-circle.light-color {
        border-color: #ccc;
    }

/* Botones de talla */
.pd-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.pd-size-btn {
    min-width: 46px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid var(--pd-border);
    border-radius: var(--pd-radius-sm);
    background: #fff;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}

    .pd-size-btn:hover {
        border-color: var(--pd-primary);
        color: var(--pd-primary);
    }

    .pd-size-btn.active {
        background: var(--pd-primary);
        border-color: var(--pd-primary);
        color: #fff;
    }

    .pd-size-btn:disabled {
        opacity: .4;
        cursor: not-allowed;
        text-decoration: line-through;
    }

/* ============================================================
   STOCK
   ============================================================ */
.pd-out-of-stock {
    background: #fef2f2;
    color: var(--pd-danger);
    border: 1px solid #fecaca;
    border-radius: var(--pd-radius-sm);
    padding: .6rem 1rem;
    font-size: .9rem;
    font-weight: 600;
}

.pd-inline-stock {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 0 12px;
    height: 34px;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
    align-self: center;
}

    .pd-inline-stock.pd-inline-stock--out {
        background: #fef2f2;
        color: var(--pd-danger);
        border-color: #fecaca;
    }

.pd-stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    display: inline-block;
}

.pd-inline-stock.pd-inline-stock--out .pd-stock-dot {
    background: var(--pd-danger);
}

/* ============================================================
   CANTIDAD + CARRITO
   ============================================================ */
.pd-purchase-section {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.pd-cart-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.pd-cart-top-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem;
    margin-top: .5rem;
    width: 100%;
}

.pd-qty-control {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 2px;
    height: 34px;
    min-width: 100px;
    transition: all 0.2s ease;
}

    .pd-qty-control:hover {
        border-color: #cbd5e1;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    }

    .pd-qty-control:focus-within {
        background: #ffffff;
        border-color: var(--pd-primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

.pd-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: #475569;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .pd-qty-btn:hover {
        background: #fff;
        color: var(--pd-primary);
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .pd-qty-btn:active {
        transform: scale(0.9);
    }

.pd-qty-input {
    width: 40px;
    background: transparent;
    border: none;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #111827;
    outline: none;
}

    .pd-qty-input::-webkit-outer-spin-button,
    .pd-qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .pd-qty-input:focus {
        background: #f0f4ff;
    }

.pd-add-btn {
    margin-top: 1.2rem;
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 0 0 1px rgba(37,99,235,.20), 0 6px 18px rgba(37,99,235,.30), 0 0 12px rgba(37,99,235,.35);
}

    .pd-add-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
        filter: brightness(1.1);
    }

    .pd-add-btn:active {
        transform: translateY(0);
    }

    .pd-add-btn:disabled {
        background: #e2e8f0;
        color: #94a3b8;
        cursor: not-allowed;
        box-shadow: none;
    }

.pd-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    height: 54px;
    border: 2px solid var(--pd-primary);
    border-radius: var(--pd-radius-sm);
    color: var(--pd-primary);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}

    .pd-login-btn:hover {
        background: var(--pd-primary);
        color: #fff;
    }

/* ============================================================
   CATEGORÍAS / ACCIONES
   ============================================================ */
.pd-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: .88rem;
    margin-top: -5px;
}

.pd-cat-label {
    color: var(--pd-muted);
}

.pd-cat-badge {
    background: var(--pd-primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}

.pd-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding-top: .25rem;
    justify-content: flex-start;
}

.pd-back-link {
    font-size: .88rem;
    color: var(--pd-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    transition: color .2s;
}

    .pd-back-link:hover {
        color: var(--pd-primary);
    }

/* ============================================================
   SECCIÓN RESEÑAS (2 columnas)
   ============================================================ */
.pd-reviews-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.75rem;
    align-items: start;
}

    .pd-reviews-section .pd-reviews-panel {
        min-width: 0;
    }

/* ── Formulario de reseña ── */
.pd-review-form-card {
    background: var(--pd-card-bg);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 1.5rem;
}

    .pd-review-form-card textarea:disabled,
    .pd-review-form-card input:disabled {
        background: #f4f5f7;
        color: var(--pd-muted);
        cursor: not-allowed;
        opacity: .7;
    }

    .pd-review-form-card .pd-star-selector span[style*="pointer-events: none"],
    .pd-review-form-card .star-selector span[style*="pointer-events: none"] {
        cursor: default;
    }

.pd-review-form-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.pd-review-icon {
    font-size: 1.5rem;
    background: #eff6ff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.pd-review-form-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.pd-rf-group {
    margin-bottom: 1rem;
}

.pd-rf-label {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: .4rem;
}

/* ── Estrellas del formulario ── */
.pd-star-selector span, .star-selector span {
    font-size: 1.9rem;
    cursor: pointer;
    color: #d1d5db;
    transition: all 0.2s ease-in-out;
    display: inline-block;
    margin: 0 4px;
    position: relative;
}

    .pd-star-selector span.active i::before,
    .star-selector span.active i::before {
        content: "\f586";
    }

    .pd-star-selector span.active, .star-selector span.active {
        color: #ffcc00 !important;
        transform: scale(1.1);
        filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.6));
    }

    .pd-star-selector span:hover {
        transform: scale(1.15) translateY(-3px);
        color: #ffd633;
    }

.disabled-stars span {
    cursor: default !important;
}

    .disabled-stars span.active {
        opacity: 0.8;
        filter: drop-shadow(0 0 2px rgba(255, 204, 0, 0.3));
    }

.pd-rf-rating-hint {
    font-size: .8rem;
    color: var(--pd-star);
    font-weight: 600;
    margin-top: .25rem;
    min-height: 1.1rem;
}

.pd-rf-textarea {
    width: 100%;
    min-height: 90px;
    border: 1.5px solid var(--pd-border);
    border-radius: var(--pd-radius-sm);
    padding: .65rem .85rem;
    font-size: .9rem;
    resize: vertical;
    transition: border-color .2s;
    font-family: inherit;
}

    .pd-rf-textarea:focus {
        outline: none;
        border-color: var(--pd-primary);
    }

.pd-rf-submit {
    width: 100%;
    height: 44px;
    background: var(--pd-primary);
    color: #fff;
    border: none;
    border-radius: var(--pd-radius-sm);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

    .pd-rf-submit:hover:not(:disabled) {
        background: #1d4ed8;
    }

    .pd-rf-submit:disabled {
        background: #16a34a !important;
        opacity: 1 !important;
        cursor: default;
        box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
    }

.pd-rf-textarea:disabled {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    resize: none;
}

.pd-star-selector.disabled span.active {
    text-shadow: 0 0 4px rgba(255, 204, 0, 0.4);
    transform: scale(1);
    cursor: default;
}

/* ── Panel de reseñas ── */
.pd-reviews-panel {
    background: var(--pd-card-bg);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 1.5rem;
}

.pd-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: .5rem;
}

.pd-reviews-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.pd-reviews-avg {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.pd-avg-stars {
    color: var(--pd-star);
    letter-spacing: 1px;
}

.pd-avg-num {
    font-weight: 700;
    font-size: 1rem;
}

/* Barras de distribución */
.pd-rating-bars {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pd-bar-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
}

.pd-bar-label {
    color: var(--pd-muted);
    width: 10px;
    text-align: right;
}

.pd-bar-star {
    color: var(--pd-star);
}

.pd-bar-track {
    flex: 1;
    background: #f0f0f0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.pd-bar-fill {
    height: 100%;
    background: var(--pd-star);
    border-radius: 10px;
    transition: width .4s;
}

.pd-bar-count {
    color: var(--pd-muted);
    width: 14px;
    text-align: right;
}

/* Lista de reseñas */
.pd-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 550px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

    .pd-reviews-list::-webkit-scrollbar {
        width: 4px;
    }

    .pd-reviews-list::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 4px;
    }

    .pd-reviews-list::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

/* Card de reseña */
.pd-review-card {
    background: #f8f9fb;
    border-radius: var(--pd-radius-sm);
    padding: 1rem;
    transition: box-shadow .2s;
}

    .pd-review-card:hover {
        box-shadow: 0 2px 12px rgba(0,0,0,.07);
    }

.pd-review-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.pd-reviewer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--pd-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.pd-reviewer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pd-reviewer-name {
    font-weight: 700;
    font-size: .92rem;
}

.pd-verified {
    font-size: .75rem;
    color: var(--pd-success);
    font-weight: 600;
}

.pd-review-stars {
    display: flex;
    gap: 1px;
}

.pd-rstar {
    font-size: 0.95rem;
    color: #d1d5db;
    transition: all 0.2s;
}

    .pd-rstar.bi-star-fill {
        color: #ffcc00 !important;
        text-shadow: 0 0 6px rgba(255, 204, 0, 0.6);
    }

    .pd-rstar:not(.empty) {
        color: #ffcc00;
        text-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
    }

.pd-review-date {
    font-size: .78rem;
    color: var(--pd-muted);
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.pd-review-comment {
    font-size: .9rem;
    color: #333;
    margin: .4rem 0;
    line-height: 1.55;
}

.pd-review-actions {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
}

.pd-btn-edit, .pd-btn-delete, .pd-btn-save {
    padding: 4px 14px;
    font-size: .8rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity .2s;
}

.pd-btn-edit {
    background: #fef3c7;
    color: #92400e;
}

.pd-btn-save {
    background: #dbeafe;
    color: #1e40af;
}

.pd-btn-delete {
    background: #fee2e2;
    color: #991b1b;
}

    .pd-btn-edit:hover, .pd-btn-save:hover, .pd-btn-delete:hover {
        opacity: .8;
    }

.pd-no-reviews-msg {
    color: var(--pd-muted);
    font-size: .9rem;
    padding: 1rem 0;
}

/* ── Star editor ── */
.star-editor {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

    .star-editor span {
        font-size: 1.6rem;
        cursor: pointer;
        color: #d1d5db;
        transition: transform 0.2s, filter 0.2s;
        display: inline-block;
    }

        .star-editor span.active {
            color: #ffcc00 !important;
            filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.6));
        }

        .star-editor span:hover {
            transform: scale(1.2) translateY(-2px);
        }

/* Verde temporal para confirmar reseña */
.pd-btn-temp-success {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}

.pd-title,
.pd-review-comment,
.pd-description {
    overflow-wrap: break-word;
    word-break: break-word;
}


/* ============================================================
   SISTEMA DE NOTIFICACIONES FLOTANTES (TOASTS NEÓN)
   ============================================================ */
.toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.custom-toast {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 320px;
    max-width: 420px;
    transform: translateX(150%); /* Oculto a la derecha */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border-left: 5px solid #2563eb;
    position: relative;
    overflow: hidden;
}

    .custom-toast.show {
        transform: translateX(0);
        opacity: 1;
    }

    /* Colores según el tipo */
    .custom-toast.toast-error {
        border-left-color: #ef4444;
    }

    .custom-toast.toast-success {
        border-left-color: #10b981;
    }

    .custom-toast.toast-warning {
        border-left-color: #f59e0b;
    }

.toast-icon {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 2px;
}

.toast-msg {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Barra de progreso de 5 segundos */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: inherit;
    width: 100%;
}

    .toast-progress::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background: currentColor;
        opacity: 0.4;
        animation: toast-progress 5s linear forwards;
    }

.toast-error .toast-progress {
    color: #ef4444;
}

.toast-success .toast-progress {
    color: #10b981;
}

.toast-warning .toast-progress {
    color: #f59e0b;
}

@keyframes toast-progress {
    0% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}


/* ============================================================
   ██████╗ ███████╗███████╗██████╗  ██████╗ ███╗   ██╗███████╗
   ██╔══██╗██╔════╝██╔════╝██╔══██╗██╔═══██╗████╗  ██║██╔════╝
   ██████╔╝█████╗  ███████╗██████╔╝██║   ██║██╔██╗ ██║███████╗
   ██╔══██╗██╔══╝  ╚════██║██╔═══╝ ██║   ██║██║╚██╗██║╚════██║
   ██║  ██║███████╗███████║██║     ╚██████╔╝██║ ╚████║███████║
   ╚═╝  ╚═╝╚══════╝╚══════╝╚═╝      ╚═════╝ ╚═╝  ╚═══╝╚══════╝

   Toda la responsividad centralizada aquí abajo.
   Orden: de pantallas más anchas a más pequeñas.

   Breakpoints cubiertos (los 8 reales de mayor tráfico):
     1280px — Laptops pequeñas / tablets landscape grandes
     1024px — iPad Pro landscape / laptops pequeñas
      820px — iPad Air portrait / tablets medianas
      768px — iPad base portrait (punto de quiebre principal)
      430px — iPhone 16 Pro Max / Android premium grande
      414px — iPhone XR / 11 / Plus
      390px — iPhone 12 / 13 / 14 / 15 / 16
      360px — Android gama media (Samsung A, Xiaomi, Motorola)
   ============================================================ */


/* ------------------------------------------------------------
   ≤ 1280px — Laptops pequeñas y tablets en landscape
   Solo ajustes sutiles: el layout de 2 columnas se mantiene
   ------------------------------------------------------------ */
@media (max-width: 1280px) {

    /* Reducimos un poco el padding del wrapper */
    .pd-wrapper {
        padding: 0 1.5rem;
    }

    /* El card mantiene 2 columnas pero con gap ligeramente menor */
    .pd-card {
        gap: 1.25rem;
        padding: 20px;
    }

    /* Imagen principal: baja un pelito de su 500px de escritorio */
    .pd-main-img-wrap {
        height: 460px;
    }

    /* Miniaturas igualan la imagen */
    .pd-thumbs {
        height: clamp(320px, 40vw, 450px);
    }
}


/* ------------------------------------------------------------
   ≤ 1024px — iPad Pro landscape / laptops chicas
   Seguimos en 2 columnas pero más equilibradas
   ------------------------------------------------------------ */
@media (max-width: 1024px) {

    /* Columnas 50/50 perfectas — ninguna aplasta a la otra */
    .pd-card {
        grid-template-columns: 1fr 1fr;
        gap: 1.1rem;
        padding: 18px;
    }

    /* Imagen un poco más compacta para que quepa bien */
    .pd-main-img-wrap {
        height: 400px;
    }

    /* Miniaturas igualan */
    .pd-thumbs {
        height: 400px;
    }

    /* Título: evita que se rompa en 2 líneas feas */
    .pd-title {
        font-size: 1.4rem;
    }

    /* Precio: escala proporcionalmente */
    .pd-final-price {
        font-size: 1.85rem;
    }

    /* Timer más compacto */
    .timer-text {
        font-size: 1.75rem;
    }
}


/* ------------------------------------------------------------
   ≤ 820px — iPad Air portrait / tablets medianas
   Reseñas pasan a 1 columna; card empieza a apilarse
   ------------------------------------------------------------ */
@media (max-width: 820px) {

    /* Reseñas: de 2 columnas a 1 (formulario arriba, lista abajo) */
    .pd-reviews-section {
        grid-template-columns: 1fr;
    }

    /* El card ya empieza a sentir el espacio limitado */
    .pd-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 16px;
    }

    /* Imagen más compacta */
    .pd-main-img-wrap {
        height: 360px;
    }

    /* Miniaturas igualan */
    .pd-thumbs {
        height: 360px;
        width: 86px;
    }

    /* Miniatura individual */
    .pd-thumb {
        width: clamp(52px, 6vw, 78px);
        height: clamp(40px, 5vw, 60px);
    }

    /* Título */
    .pd-title {
        font-size: clamp(1.05rem, 2.4vw, 1.65rem);
    }

    /* Precio */
    .pd-final-price {
        font-size: clamp(1.4rem, 4vw, 2.2rem);
    }

    .pd-info-col {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eef0f3;
        padding-top: 1.25rem;
        margin-top: 1rem;
    }

    .pd-gallery-col {
        grid-template-columns: 80px 1fr;
    }
}


/* ------------------------------------------------------------
   ≤ 768px — iPad base portrait — PUNTO DE QUIEBRE PRINCIPAL
   El card se apila en 1 columna. Galería ocupa el 100% del ancho.
   ------------------------------------------------------------ */
@media (max-width: 768px) {

    /* Wrapper full ancho con padding cómodo */
    .pd-wrapper {
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Card: se apila verticalmente — galería arriba, info abajo */
    .pd-card {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .pd-cart-top-row {
        flex-wrap: wrap;
        gap: .75rem;
    }

    .pd-inline-stock {
        margin-left: 0;
    }

    /* La columna de info: quita borde izquierdo, pone borde top como separador */
    .pd-info-col {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eef0f3;
        padding-top: 1.25rem;
        margin-top: 1.25rem;
    }

    /* Galería: columna de thumbs más estrecha para dar más espacio a la imagen */
    .pd-gallery-col {
        grid-template-columns: 76px 1fr;
        gap: 6px 10px;
    }

    /* Imagen principal ocupa bien el ancho disponible */
    .pd-main-img-wrap {
        height: 340px;
    }

    /* Miniaturas: altura igual a la imagen */
    .pd-thumbs {
        height: 340px;
        width: 76px;
        padding: 6px 7px;
    }

    /* Miniatura individual */
    .pd-thumb {
        width: 62px;
        height: 50px;
        border-radius: 10px;
    }

    /* Título */
    .pd-title {
        font-size: 1.3rem;
        line-height: 1.25;
    }

    /* Rating: menos margen negativo en móvil */
    .pd-rating {
        margin-top: -8px;
    }

    /* Estrellas del rating */
    .pd-star {
        font-size: 1.6rem;
    }

    /* Precio final */
    .pd-final-price {
        font-size: 1.75rem;
    }

    /* Precio tachado */
    .pd-old-price {
        font-size: 1rem;
    }

    /* Timer */
    .timer-text {
        font-size: 1.5rem;
    }

    /* Trust row: más compacta */
    .pd-trust-row {
        margin-top: 10px;
        gap: 8px;
    }

    .pd-trust-item {
        height: auto;
        min-height: 60px;
        font-size: .74rem;
        padding: 8px 4px;
    }

    /* Wishlist más pequeño */
    .pd-wishlist-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        border-radius: 12px;
    }
}


/* ------------------------------------------------------------
   ≤ 430px — iPhone 16 Pro Max / Android premium grande
   Ajustes sobre la base de 768px; galería y textos se afinan
   ------------------------------------------------------------ */
@media (max-width: 430px) {

    /* Padding lateral: un pelín menos */
    .pd-wrapper {
        padding: 0 0.75rem;
    }

    /* Card aún más compacto */
    .pd-card {
        padding: 0.875rem;
    }

    /* Galería: columna thumbs más estrecha */
    .pd-gallery-col {
        grid-template-columns: 70px 1fr;
        gap: 5px 8px;
    }

    /* Imagen principal */
    .pd-main-img-wrap {
        height: 300px;
    }

    /* Miniaturas */
    .pd-thumbs {
        height: 300px;
        width: 70px;
        padding: 5px 6px;
    }

    /* Miniatura individual */
    .pd-thumb {
        width: 58px;
        height: 46px;
        border-radius: 9px;
    }

    /* Título */
    .pd-title {
        font-size: 1.2rem;
    }

    /* Precio */
    .pd-final-price {
        font-size: 1.6rem;
    }

    /* Timer */
    .timer-text {
        font-size: 1.35rem;
    }

    /* Trust row: 2 filas de 2 cuando son 4 iconos */
    .pd-trust-row {
        flex-wrap: wrap;
        gap: 7px;
    }

    .pd-trust-item {
        flex: 1 1 calc(50% - 7px);
        min-width: 0;
    }

    /* Botón agregar */
    .pd-add-btn {
        height: 46px;
        font-size: 0.92rem;
        margin-top: 1rem;
    }
}


/* ------------------------------------------------------------
   ≤ 414px — iPhone XR / 11 / Plus antiguos
   Ajustes muy finos sobre 430px; solo lo que cambia de verdad
   ------------------------------------------------------------ */
@media (max-width: 414px) {

    /* Imagen ligeramente más baja */
    .pd-main-img-wrap {
        height: 285px;
    }

    /* Miniaturas igualan */
    .pd-thumbs {
        height: 285px;
    }

    /* Título */
    .pd-title {
        font-size: 1.15rem;
    }

    /* Precio */
    .pd-final-price {
        font-size: 1.55rem;
    }

    /* Botones de talla: más compactos */
    .pd-size-btn {
        min-width: 42px;
        height: 38px;
        font-size: .84rem;
    }
}


/* ------------------------------------------------------------
   ≤ 390px — iPhone 12 / 13 / 14 / 15 / 16 — EL MÁS COMÚN
   El breakpoint de mayor tráfico iOS; se cuida con extra detalle
   ------------------------------------------------------------ */
@media (max-width: 390px) {

    /* Padding mínimo pero cómodo */
    .pd-wrapper {
        padding: 0 0.625rem;
    }

    /* Card padding mínimo */
    .pd-card {
        padding: 0.75rem;
    }

    /* Galería: thumbs en 64px para dejarle espacio máximo a la imagen */
    .pd-gallery-col {
        grid-template-columns: 64px 1fr;
        gap: 4px 8px;
    }

    /* Imagen principal: altura óptima para 390px de ancho */
    .pd-main-img-wrap {
        height: 270px;
    }

    /* Miniaturas */
    .pd-thumbs {
        height: 270px;
        width: 64px;
        padding: 4px 5px;
    }

    /* Miniatura individual */
    .pd-thumb {
        width: 54px;
        height: 42px;
        border-radius: 8px;
    }

    /* Título: el más pequeño que puede ser sin perder legibilidad */
    .pd-title {
        font-size: 1.1rem;
    }

    /* Precio */
    .pd-final-price {
        font-size: 1.5rem;
    }

    /* Timer: más compacto */
    .timer-text {
        font-size: 1.2rem;
    }

    /* Botón agregar */
    .pd-add-btn {
        height: 44px;
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }

    /* Botones de talla */
    .pd-size-btn {
        min-width: 40px;
        height: 36px;
        font-size: .82rem;
    }

    /* Estrellas del formulario */
    .pd-star-selector span, .star-selector span {
        font-size: 1.6rem;
        margin: 0 2px;
    }

    /* Trust: aseguramos 2 filas */
    .pd-trust-row {
        flex-wrap: wrap;
    }

    .pd-trust-item {
        flex: 1 1 calc(50% - 7px);
    }
}


/* ------------------------------------------------------------
   ≤ 360px — Android gama media: Samsung A, Xiaomi, Motorola
   El viewport más angosto que debemos soportar bien
   ------------------------------------------------------------ */
@media (max-width: 360px) {

    /* Padding mínimo absoluto */
    .pd-wrapper {
        padding: 0 0.5rem;
    }

    /* Card padding muy ajustado */
    .pd-card {
        padding: 0.625rem;
        gap: 0;
    }

    /* Galería: columna thumbs al mínimo usable (60px) */
    .pd-gallery-col {
        grid-template-columns: 60px 1fr;
        gap: 4px 6px;
    }

    /* Imagen principal: la más compacta posible sin perder impacto */
    .pd-main-img-wrap {
        height: 248px;
    }

    /* Miniaturas */
    .pd-thumbs {
        height: 248px;
        width: 60px;
        padding: 4px 4px;
    }

    /* Miniatura individual: la más pequeña que sigue siendo clickeable */
    .pd-thumb {
        width: 52px;
        height: 40px;
        border-radius: 7px;
    }

    /* Título */
    .pd-title {
        font-size: 1.05rem;
    }

    /* Precio */
    .pd-final-price {
        font-size: 1.4rem;
    }

    /* Timer */
    .timer-text {
        font-size: 1.1rem;
    }

    /* Trust: 2 filas de 2 forzado */
    .pd-trust-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pd-trust-item {
        flex: 1 1 calc(50% - 6px);
        min-height: 52px;
        font-size: .7rem;
    }

    /* Botón agregar: altura confortable para dedos */
    .pd-add-btn {
        height: 44px;
        font-size: 0.88rem;
    }

    /* Botones talla: mínimos pero tapeables */
    .pd-size-btn {
        min-width: 38px;
        height: 34px;
        padding: 0 8px;
        font-size: .8rem;
    }

    /* Colores/variantes: círculos un poco más pequeños */
    .pd-color-circle, .color-circle {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
    }

    /* Estrellas formulario */
    .pd-star-selector span, .star-selector span {
        font-size: 1.5rem;
        margin: 0 1px;
    }

    /* Descripción: menos padding para ganar espacio */
    .pd-description {
        padding: 0.75rem 0.875rem;
        font-size: .88rem;
    }
}

/* ============================================================
   ALERTAS / TOASTS (AJUSTE PARA CELULARES)
   ============================================================ */
@media (max-width: 768px) {
    .toast-container {
        width: 90% !important;
        max-width: 400px !important;
        left: 50% !important;
        transform: translateX(-50%) !important; /* Centra el toast perfecto */
        right: auto !important;
        margin: 0 !important;
        bottom: 20px !important; /* Separación del borde de abajo */
    }

    .custom-toast {
        width: 100% !important;
        min-width: 0 !important;
        padding: 12px 15px !important; /* Más compacto y elegante */
        border-radius: 12px !important; /* Bordes suaves */
    }

    .toast-title {
        font-size: 0.95rem !important;
    }

    .toast-msg {
        font-size: 0.85rem !important;
    }
}

/* ============================================================
   MODAL IMAGEN (ZOOM, GALERÍA Y BOTONES LINDOS)
   ============================================================ */

/* Botón Cerrar (X) */
.pd-modal-close {
    position: absolute;
    top: -15px;
    right: 0px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1055;
    backdrop-filter: blur(4px);
}

    .pd-modal-close:hover {
        background: rgba(220, 38, 38, 0.9); /* Se vuelve rojo al pasar el mouse */
        border-color: #fff;
        transform: scale(1.1);
    }

/* Flechas de Navegación */
.pd-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

    .pd-modal-nav:hover {
        background: rgba(0, 0, 0, 0.8);
        border-color: #fff;
        transform: translateY(-50%) scale(1.1);
    }

.pd-nav-prev {
    left: 15px;
}

.pd-nav-next {
    right: 15px;
}

/* Contenedor del Zoom */
.zoom-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

    .zoom-container:active {
        cursor: grabbing;
    }

.zoom-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease-out; /* Rápido para que el drag sea fluido */
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none; /* Bloquea el comportamiento nativo de arrastrar la imagen */
}

/* Burbuja del contador de imágenes (Abajo a la derecha) */
.pd-modal-counter {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10;
    pointer-events: none; /* Asegura que no bloquee los clics/arrastres en esa zona */
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}