/* ==========================================
   BOLSIPAPEL - SINGLE PRODUCT
========================================== */
.lp-single-product {
    width: 100%;
    background: #fff;
    color: #171717;
    font-family: 'PT Sans Narrow', Arial, sans-serif;
}
.lp-single-product * { box-sizing: border-box; }

/* ==========================================
   INFORMACIÓN PRINCIPAL
========================================== */
.lp-single-product__top {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    grid-template-areas: "summary gallery";
    align-items: center;
    gap: clamp(35px, 5vw, 90px);
    width: calc(100% - 80px);
    max-width: 1220px;
    margin: 0 auto;
    padding: 52px 0 65px;
}
.lp-single-product__summary {
    grid-area: summary;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    text-align: left;
}
.lp-single-product .lp-single-product__title {
    margin: 0 0 8px;
    padding: 0;
    color: #171717;
    font-size: clamp(29px, 3vw, 38px);
    line-height: 1.1;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
}
.lp-single-product__min-qty {
    width: 100%;
    margin: 0;
    padding: 0 0 9px;
    border-bottom: 1px solid #aaa;
    color: #171717;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
}
.lp-single-product__min-qty strong {
    color: #F14794;
    font-weight: 700;
}

/* ==========================================
   DESCRIPCIÓN
========================================== */
.lp-single-product__description-section {
    width: 100%;
    margin: 18px 0 0;
    padding: 0;
}
.lp-single-product .lp-single-product__description-title {
    margin: 0 0 16px;
    padding: 0;
    color: #E83F89;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
}
.lp-single-product__description-content {
    width: 100%;
    color: #444;
    font-size: 15px;
    line-height: 1.42;
    font-weight: 400;
    text-align: justify;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.lp-single-product__description-content p {
    margin: 0 0 12px;
    padding: 0;
}
.lp-single-product__description-content p:last-child {
    margin-bottom: 0;
}
.lp-single-product__description-content img {
    max-width: 100%;
    height: auto;
}
.lp-single-product__description-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

/* ==========================================
   BOTÓN SOLICITAR INFORMACIÓN
========================================== */
.lp-single-product .lp-single-product__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 9px;
    width: fit-content;
    min-height: 43px;
    margin: 22px auto 0;
    padding: 8px 26px;
    border: none;
    border-radius: 999px;
    background: #61A742;
    color: #fff !important;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .2s ease;
}
.lp-single-product .lp-single-product__whatsapp:hover,
.lp-single-product .lp-single-product__whatsapp:focus {
    background: #519237;
    color: #fff !important;
}
.lp-single-product__whatsapp svg {
    display: block;
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    fill: currentColor;
}

/* ==========================================
   GALERÍA DE IMÁGENES
========================================== */
.lp-single-product__gallery {
    grid-area: gallery;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}
.lp-single-product__main-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    padding: 8px;
    border: 1px solid #ededed;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .035);
    overflow: hidden;
}
.lp-single-product__main-image img,
.lp-single-product__main-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center;
}
.lp-single-product__thumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 620px;
    margin: 0;
    padding: 2px 0 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.lp-single-product__thumbs::-webkit-scrollbar {
    display: none;
}
.lp-single-product .lp-single-product__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    margin: 0;
    padding: 4px;
    border: 1px solid #dadada;
    border-radius: 8px;
    background: #fff;
    opacity: .72;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
    cursor: pointer;
    transition: opacity .2s ease, border-color .2s ease;
}
.lp-single-product .lp-single-product__thumb.is-active,
.lp-single-product .lp-single-product__thumb:hover,
.lp-single-product .lp-single-product__thumb:focus-visible {
    border-color: #F14794;
    background: #fff;
    opacity: 1;
}
.lp-single-product__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}

/* ==========================================
   PRODUCTOS RELACIONADOS
========================================== */
.lp-single-product__related {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 36px 20px 55px;
    background: linear-gradient(0deg, #F14794 0%, #FFF 100%);
    overflow: hidden;
}
.lp-single-related__header {
    width: 100%;
    margin: 0 auto 27px;
    padding: 0 12px;
    text-align: center;
}
.lp-single-product__related .lp-single-related__header h2 {
    margin: 0;
    padding: 0;
    color: #171717;
    font-size: clamp(32px, 3.3vw, 46px);
    line-height: 1.1;
    font-weight: 700;
    text-align: center;
    text-transform: none;
}
.lp-single-related__header p {
    margin: 14px auto 0;
    color: #666;
    font-size: 16px;
    line-height: 1.35;
    text-align: center;
}

/* CONTENEDOR */
.lp-single-related__wrap {
    position: relative;
    width: calc(100% - 120px);
    max-width: 1120px;
    margin: 0 auto;
}
.lp-single-related__track {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    margin: 0;
    padding: 5px 5px 13px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.lp-single-related__track::-webkit-scrollbar {
    display: none;
}

/* TARJETAS */
.lp-single-related-card {
    display: flex;
    flex: 0 0 calc((100% - 54px) / 4);
    flex-direction: column;
    min-width: 0;
    min-height: 330px;
    border: none;
    border-radius: 11px;
    background: #fff;
    color: #171717 !important;
    text-decoration: none !important;
    box-shadow: 0 5px 3px rgba(0, 0, 0, .24);
    overflow: hidden;
    transition: box-shadow .2s ease;
}
.lp-single-related-card:hover {
    color: #171717 !important;
    box-shadow: 0 7px 9px rgba(0, 0, 0, .22);
}
.lp-single-related-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    height: 210px;
    padding: 18px 16px 0;
    background: #fff;
}
.lp-single-related-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center;
}
.lp-single-related-card__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    width: 100%;
    padding: 12px 18px 17px;
}
.lp-single-product__related .lp-single-related-card__title {
    margin: 0 0 6px;
    padding: 0;
    color: #171717;
    font-size: 19px;
    line-height: 1.15;
    font-weight: 700;
    text-align: left;
    text-transform: none;
}
.lp-single-related-card__detail,
.lp-single-related-card__minimum {
    margin: 0 0 5px;
    padding: 0;
    color: #747474;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
    text-align: left;
}
.lp-single-related-card__minimum {
    margin-bottom: 0;
}

/* FLECHAS DESKTOP */
.lp-single-related__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 71px;
    height: 71px;
    margin: 0;
    padding: 0;
    border: none !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    transform: translateY(-50%);
}
.lp-single-related__arrow:hover,
.lp-single-related__arrow:focus {
    background: transparent !important;
    box-shadow: none !important;
}
.lp-single-related__arrow svg {
    display: block;
    width: 71px;
    height: 71px;
    flex-shrink: 0;
}
.lp-single-related__arrow--prev { left: -75px; }
.lp-single-related__arrow--next { right: -75px; }
.lp-single-product__related:not(.is-scrollable) .lp-single-related__arrow {
    display: none;
}

/* PAGINACIÓN MOBILE */
.lp-single-related__pagination {
    display: none;
}
.lp-single-related__pagination[hidden] {
    display: none !important;
}

/* ==========================================
   TABLET
========================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .lp-single-product__top {
        width: calc(100% - 48px);
        gap: 30px;
    }
    .lp-single-related__wrap {
        width: calc(100% - 105px);
    }
    .lp-single-related-card {
        flex-basis: calc((100% - 18px) / 2);
    }
    .lp-single-related__arrow,
    .lp-single-related__arrow svg {
        width: 52px;
        height: 52px;
    }
    .lp-single-related__arrow--prev { left: -56px; }
    .lp-single-related__arrow--next { right: -56px; }
}

/* ==========================================
   MOBILE
========================================== */
@media (max-width: 767px) {
    .lp-single-product__top {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "gallery" "summary";
        gap: 22px;
        width: calc(100% - 32px);
        max-width: 480px;
        padding: 25px 0 42px;
    }
    .lp-single-product__main-image {
        max-width: 100%;
        padding: 5px;
    }
    .lp-single-product__thumbs {
        justify-content: flex-start;
        gap: 8px;
        padding: 2px 0 5px;
    }
    .lp-single-product .lp-single-product__thumb {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
        border-radius: 7px;
    }
    .lp-single-product .lp-single-product__title {
        margin-bottom: 8px;
        font-size: clamp(25px, 7.5vw, 32px);
    }
    .lp-single-product__min-qty {
        padding-bottom: 9px;
        font-size: 15px;
    }
    .lp-single-product__description-section {
        margin-top: 16px;
    }
    .lp-single-product .lp-single-product__description-title {
        margin-bottom: 14px;
        font-size: 21px;
    }
    .lp-single-product__description-content {
        font-size: 14px;
        line-height: 1.4;
        text-align: left;
    }
    .lp-single-product .lp-single-product__whatsapp {
        width: min(100%, 290px);
        min-height: 43px;
        margin-top: 22px;
        padding: 9px 14px;
        font-size: 16px;
    }

    /* RELACIONADOS MOBILE */
    .lp-single-product__related {
        padding: 31px 0 37px;
        background: linear-gradient(
            180deg,
            #FFF3F9 0%,
            #FF97C6 50%,
            #F14794 100%
        );
    }
    .lp-single-related__header {
        margin-bottom: 23px;
        padding: 0 15px;
    }
    .lp-single-product__related .lp-single-related__header h2 {
        font-size: clamp(27px, 7.5vw, 34px);
    }
    .lp-single-related__header p {
        max-width: 340px;
        margin-top: 17px;
        font-size: 14px;
    }
    .lp-single-related__wrap {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .lp-single-related__track {
        --related-card-width: min(360px, calc(100vw - 58px));
        width: 100%;
        gap: 16px;
        padding: 5px calc((100% - var(--related-card-width)) / 2) 15px;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: calc((100% - var(--related-card-width)) / 2);
    }
    .lp-single-related-card {
        flex: 0 0 var(--related-card-width);
        width: var(--related-card-width);
        min-width: var(--related-card-width);
        min-height: 330px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
    .lp-single-related-card__image {
        height: 215px;
        padding: 20px 20px 0;
    }
    .lp-single-related-card__content {
        padding: 12px 20px 18px;
    }
    .lp-single-product__related .lp-single-related-card__title {
        font-size: 19px;
    }
    .lp-single-related__arrow {
        display: none !important;
    }

    /* CONTADOR */
    .lp-single-related__pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 100%;
        margin: 12px auto 0;
        color: #fff;
    }
    .lp-single-related__counter {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 42px;
        color: #fff;
        font-size: 18px;
        line-height: 1;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }
    .lp-single-related__page-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin: 0;
        padding: 0;
        border: none !important;
        border-radius: 0;
        background: transparent !important;
        color: #fff !important;
        font-size: 22px;
        line-height: 1;
        box-shadow: none !important;
        cursor: pointer;
    }
    .lp-single-related__page-arrow:hover,
    .lp-single-related__page-arrow:focus {
        background: transparent !important;
        color: #fff !important;
        box-shadow: none !important;
    }
}

@media (max-width: 380px) {
    .lp-single-product__top {
        width: calc(100% - 24px);
    }
    .lp-single-product__description-content {
        font-size: 13px;
    }
    .lp-single-related-card__image {
        height: 195px;
    }
    .lp-single-related-card {
        min-height: 310px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-single-related__track {
        scroll-behavior: auto;
    }
}