/* ============================================================
   Product Gallery Widget — Beps PuroOmega Widgets
   ============================================================ */

/* ── 1. WRAPPER ─────────────────────────────────────────────── */
.beps-pgal-wrap {
    width: 100%;
}

/* ── 2. TARJETA PRINCIPAL ───────────────────────────────────── */
.beps-pgal-main-wrap {
    position: relative;
    width: 725px;
    max-width: 100%;
    flex-shrink: 0;
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E5E5E5;
}

.beps-pgal-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    height: 808px;
    box-sizing: border-box;
}

.beps-pgal-main-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── 3. BADGE DE PROMOCIÓN ──────────────────────────────────── */
.beps-pgal-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-block;
    background-color: #141436;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px 0px 50px 50px;
    line-height: 1.4;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}

/* ── 4. BOTÓN WISHLIST ──────────────────────────────────────── */
.beps-pgal-wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
    line-height: 1;
    transition: transform 0.15s ease;
}

.beps-pgal-wishlist:hover {
    transform: scale(1.15);
}

.beps-pgal-wishlist svg {
    width: 22px;
    height: 22px;
    stroke: #141436;
    fill: none;
    display: block;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.beps-pgal-wishlist i {
    font-size: 22px;
    color: #141436;
    display: block;
    transition: color 0.2s ease;
}

/* ── 5. FLECHAS DE NAVEGACIÓN ───────────────────────────────── */
.beps-pgal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.2s ease;
}

.beps-pgal-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Flecha anterior — estado secundario */
.beps-pgal-arrow--prev {
    left: 12px;
    border: 1px solid #E8E8E8;
}
.beps-pgal-arrow--prev svg {
    stroke: #E8E8E8;
}

/* Flecha siguiente — estado activo/primario */
.beps-pgal-arrow--next {
    right: 12px;
    border: 1px solid #130F32;
}
.beps-pgal-arrow--next svg {
    stroke: #130F32;
}

.beps-pgal-wrap--single .beps-pgal-arrow { display: none; }

/* ── 6. FILA DE MINIATURAS ──────────────────────────────────── */
.beps-pgal-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.beps-pgal-thumb {
    display: block;
    width: 168px;
    height: 204px;
    flex-shrink: 0;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease;
}

.beps-pgal-thumb--active {
    border: 2px solid #141436;
}

.beps-pgal-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

/* ── 7. RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .beps-pgal-main-wrap {
        width: 100%;
    }

    .beps-pgal-main {
        height: 520px;
        padding: 20px;
    }

    .beps-pgal-thumbs {
        gap: 10px;
        margin-top: 12px;
    }

    .beps-pgal-thumb {
        width: 130px;
        height: 158px;
    }
}

@media (max-width: 767px) {
    .beps-pgal-main-wrap {
        width: 100%;
    }

    .beps-pgal-main {
        height: 360px;
        padding: 16px;
    }

    .beps-pgal-thumbs {
        gap: 8px;
        margin-top: 10px;
    }

    .beps-pgal-thumb {
        width: 100px;
        height: 120px;
    }

    .beps-pgal-arrow {
        width: 32px;
        height: 32px;
    }

    .beps-pgal-arrow svg {
        width: 12px;
        height: 12px;
    }
}
