/* Detalle de producto — galería = slider EXACTO de Instant, movido por product.js
   (sin Swiper/CDN). Las clases del diseño (instant-YXCVwC1d1MA2ysZ0.css) dan todo
   el layout; aquí solo lo que aportaba el bundle externo de Swiper y el botón. */

/* Swiper aplicaba overflow:hidden al contenedor del slider; lo replicamos.
   position:relative -> para anclar las flechas de navegación. */
.__instant.iYXCVwC1d1MA2ysZ0 .instant-slider {
    overflow: hidden;
    position: relative;
}

/* Animación smooth al pasar de imagen (el diseño define transition-property:transform
   pero sin duración -> sería instantáneo). speed 500ms del slider original. */
.__instant.iYXCVwC1d1MA2ysZ0 .instant-slider-wrapper {
    transition-duration: 0.5s;
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Flechas prev/next (inyectadas por product.js sobre la imagen principal) */
.pd-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.85);
    color: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.15s ease, opacity 0.15s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.pd-nav:hover { background: #fff; }
.pd-nav--prev { left: 12px; }
.pd-nav--next { right: 12px; }
.pd-nav svg { width: 20px; height: 20px; display: block; }
.pd-nav[disabled] { opacity: 0; pointer-events: none; }

/* La fila de 2 columnas venía centrada verticalmente (align-items:center), lo que
   empuja la info hacia abajo cuando la galería es más alta. La alineamos arriba. */
.__instant.iYXCVwC1d1MA2ysZ0 .iBwzZhvbWDqjWs93S {
    align-items: flex-start;
}

/* "Made for your everyday": en el diseño era position:absolute con top/right en px
   fijos (calculados por Instant) -> en layout dinámico caía mal. Lo movimos al final
   de la columna de info y lo devolvemos a flujo normal, centrado bajo el add-to-cart. */
.__instant.iYXCVwC1d1MA2ysZ0 .iTU4iAOfvmFKFAtYF {
    position: static;
    margin: 16px 0 0;
    right: auto;
    top: auto;
    width: 100%;
    align-items: center;
}
.__instant.iYXCVwC1d1MA2ysZ0 .iZitWCQN7pzl2exDe {
    position: static;
}

/* Imagen principal un poco menos alta (el diseño usaba aspect-ratio 4/5). */
.__instant.iYXCVwC1d1MA2ysZ0 .i7kf2Jy6h3I1XIFZl {
    aspect-ratio: 1 / 1;
}

.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;   /* no ocupar toda la columna; responsive (se encoge en móvil) */
}

.pd-gallery__main {
    border-radius: 12px;
    overflow: hidden;
    background: #fdfcfa;
}

.pd-gallery__main img {
    width: 100%;
    aspect-ratio: 1 / 1;   /* alto = ancho: reserva el espacio -> sin layout shift */
    height: auto;
    display: block;
    object-fit: contain;   /* imagen completa sin recortar ni deformar (mejor con imágenes pequeñas) */
}

.pd-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 10px;
}

.pd-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 1px solid #e8e0d8;
    border-radius: 12px;
    overflow: hidden;
    background: #fdfcfa;
    cursor: pointer;
    transition: border-color 0.15s ease, opacity 0.15s ease;
}

.pd-thumb:hover {
    opacity: 0.85;
}

.pd-thumb.is-active {
    border-color: #ff1b82;
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Add to cart: el .iKcVjup1Au5BEFLFs ya viene estilado por el diseño */
.iKcVjup1Au5BEFLFs {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.iKcVjup1Au5BEFLFs[aria-busy="true"] {
    opacity: 0.7;
    cursor: progress;
}

/* "Made for your everyday" usa Dancing Script (como en la plantilla descargada).
   Su @font-face la cargaba css2(1) desde fonts.gstatic.com (externo). Aquí la
   declaramos apuntando a los woff2 ya vendorizados en /static (subsets vietnamese,
   latin-ext y latin) para que esté disponible en producto sin CDN externo.
   NO se sobreescribe font-family: la regla del diseño (.iZitWCQN7pzl2exDe) ya pide
   Dancing Script; solo hace falta tener la fuente. */
@font-face {
    font-family: 'Dancing Script';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/static/shop/pinky_deal/ext/4eee4f63_If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Rep8ltA.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Dancing Script';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/static/shop/pinky_deal/ext/9a7efd45_If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3ROp8ltA.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Dancing Script';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/static/shop/pinky_deal/ext/8d5fdcfa_If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup8.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
