/* ==========================================================================
   NINO SEPO — Product Card
   ========================================================================== */

.ninosepo-product-card {
    width: 100%;
    min-width: 0;
}


/* ==========================================================================
   MEDIA / GALLERY
   ========================================================================== */

.ninosepo-product-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: transparent;
}

.ninosepo-product-card__viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;

    cursor: grab;
    touch-action: pan-y;

    user-select: none;
    -webkit-user-select: none;
}

.ninosepo-product-card__viewport.is-pointer-dragging {
    cursor: grabbing;
}

.ninosepo-product-card__track {
    display: flex;
    width: 100%;
    height: 100%;

    transform: translate3d(0, 0, 0);
    transition: transform 380ms cubic-bezier(0.65, 0, 0.35, 1);

    will-change: transform;
}

.ninosepo-product-card__track.is-dragging,
.ninosepo-product-card__track.is-jumping {
    transition: none !important;
}

.ninosepo-product-card__slide {
    display: flex;
    flex: 0 0 100%;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    color: inherit;
    background: transparent;
    text-decoration: none;
}

.ninosepo-product-card__slide img,
.ninosepo-product-card__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    border: 0;
    border-radius: 0;

    pointer-events: none;
    user-select: none;

    -webkit-user-drag: none;
    -webkit-user-select: none;
}

/* Temporary slides used by the seamless loop. */

.ninosepo-product-card__slide.is-loop-clone {
    pointer-events: none;
}


/* ==========================================================================
   PREORDER BADGE
   ========================================================================== */

.ninosepo-product-card__badge {
    position: absolute;
    z-index: 1;

    top: 14px;
    left: 14px;

    display: inline-block;
    padding: 6px 9px;

    color: #111;
    background: rgba(255, 255, 255, 0.92);

    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    pointer-events: none;
}


/* ==========================================================================
   GALLERY ARROWS
   ========================================================================== */

.ninosepo-product-card__arrow {
    position: absolute;
    z-index: 1;
    top: 50%;

    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    width: 46px;
    height: 58px;
    padding: 0;

    align-items: center;
    justify-content: center;

    border: 0 !important;
    border-radius: 0 !important;

    color: #111 !important;
    background: transparent !important;
    box-shadow: none !important;

    cursor: pointer;

    transform: translateY(-50%);

    appearance: none;
    -webkit-appearance: none;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    transition:
        opacity 180ms ease,
        color 180ms ease;
}

.ninosepo-product-card__arrow--prev {
    left: 9px;
}

.ninosepo-product-card__arrow--next {
    right: 9px;
}

.ninosepo-product-card__arrow svg {
    display: block;

    width: 25px;
    height: 34px;

    overflow: visible;

    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round;

    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 1))
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.9));

    pointer-events: none;

    transition:
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
        stroke-width 180ms ease;
}

.ninosepo-product-card__arrow--prev:hover svg {
    transform: translateX(-3px);
    stroke-width: 1.4;
}

.ninosepo-product-card__arrow--next:hover svg {
    transform: translateX(3px);
    stroke-width: 1.4;
}

.ninosepo-product-card__arrow:hover,
.ninosepo-product-card__arrow:focus {
    color: #111 !important;
    background: transparent !important;
    outline: none;
    box-shadow: none !important;
}

.ninosepo-product-card__arrow:focus-visible {
    outline: 1px solid rgba(17, 17, 17, 0.7);
    outline-offset: -7px;
}

.ninosepo-product-card__arrow:active svg {
    transform: scale(0.9);
}

/* Avoid showing controls before the cloned track is positioned. */

.ninosepo-product-card:not([data-ninosepo-gallery-ready="1"])
.ninosepo-product-card__arrow {
    opacity: 0 !important;
}


/* ==========================================================================
   PRODUCT CONTENT
   ========================================================================== */

.ninosepo-product-card__content {
    padding-top: 12px;
}

.ninosepo-product-card__title {
    margin: 0;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;

    text-transform: capitalize;
}

.ninosepo-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.ninosepo-product-card__title a:hover {
    opacity: 0.62;
}


/* ==========================================================================
   PRICE
   ========================================================================== */

.ninosepo-product-card__price {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    align-items: baseline;

    margin-top: 5px;

    font-size: 13px;
    line-height: 1.35;
}

.ninosepo-product-card__price-current {
    color: #111;
}

.ninosepo-product-card__price-regular {
    color: #999;

    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.ninosepo-product-card__price-sale {
    color: #c62828;
    text-decoration: none;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    .ninosepo-product-card__badge {
        top: 10px;
        left: 10px;

        padding: 5px 7px;
        font-size: 9px;
    }

    .ninosepo-product-card__arrow {
        width: 42px;
        height: 54px;

        background: transparent !important;
    }

    .ninosepo-product-card__arrow--prev {
        left: 1px;
    }

    .ninosepo-product-card__arrow--next {
        right: 1px;
    }

    .ninosepo-product-card__arrow svg {
        width: 22px;
        height: 30px;
        stroke-width: 1.2;
    }

    .ninosepo-product-card__content {
        padding-top: 9px;
    }

    .ninosepo-product-card__title {
        font-size: 13px;
    }

    .ninosepo-product-card__price {
        font-size: 12px;
    }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .ninosepo-product-card__track,
    .ninosepo-product-card__arrow,
    .ninosepo-product-card__arrow svg {
        transition: none !important;
    }
}