/*
 * Shared product-slider skin.
 * Home and PDP intentionally use this same geometry so their cards, controls,
 * scrolling surface, and responsive behavior cannot drift apart.
 */

.home-product-slider .home-product-track {
    width: 100%;
    height: 449px;
    display: flex;
    gap: 24px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    touch-action: pan-x;
    direction: ltr;
}

.home-product-slider .home-product-track::-webkit-scrollbar {
    display: none;
}

.home-product-slider .home-product-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.home-product-slider .product-card {
    width: 282px;
    height: 449px;
    min-width: 0;
    min-height: 449px;
    display: flex;
    flex: 0 0 282px;
    flex-direction: column;
    gap: 16px;
    padding: 7px;
    border: 1px solid #e2e8f0;
    border-radius: 32px;
    background: #fff;
    box-shadow: none;
}

.home-product-slider .product-card__image {
    width: auto;
    height: 211px;
    min-height: 211px;
    flex: 0 0 211px;
    overflow: hidden;
    border-radius: 24px;
    background: #f8fafc;
}

.home-product-slider .product-card__image img {
    width: 100%;
    height: 126.07%;
    max-width: none;
    display: block;
    object-fit: contain;
    transform: translateY(-10.34%);
}

.home-product-slider .product-card__body {
    height: 206px;
    flex: 0 0 206px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}

.home-product-slider .product-card__details {
    width: auto;
    height: 70px;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 6px;
    padding: 0;
}

.home-product-slider .product-card h3 {
    width: auto;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding-inline: 16px;
    overflow: hidden;
    color: #1d293d;
    font-size: 18px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: -.54px;
    text-align: right;
    white-space: nowrap;
}

.home-product-slider .product-card__meta {
    width: auto;
    height: 32px;
    min-height: 32px;
    padding-inline: 16px;
    gap: 10px;
    direction: rtl;
}

.home-product-slider .product-card__category {
    font-size: 14px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: -.42px;
    white-space: nowrap;
}

.home-product-slider .product-card__review,
.home-product-slider .product-card__rating {
    width: auto;
    justify-content: normal;
    gap: 6px;
    font-size: 16px;
    line-height: 30px;
    font-weight: 400;
    letter-spacing: -.48px;
    white-space: nowrap;
}

.home-product-slider .product-card__price-panel {
    width: auto;
    height: 120px;
    min-height: 120px;
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 24px;
    background: #f8fafc;
    margin: 0;
}

.home-product-slider .price--card {
    position: relative;
    width: 136px;
    height: 52px;
    min-width: 0;
    flex: 0 0 136px;
    display: block;
    padding: 0;
    overflow: visible;
}

.home-product-slider .price__old-row {
    position: absolute;
    top: 4px;
    left: 8px;
    width: 128px;
    height: 30px;
    min-height: 30px;
    justify-content: space-between;
    gap: 0;
    margin: 0;
}

.home-product-slider .price del {
    height: auto;
    padding: 0;
    font-size: 15px;
    line-height: 30px;
    font-weight: 400;
}

.home-product-slider .price .discount-badge {
    position: relative;
    width: auto;
    min-width: 38px;
    height: 20px;
    min-height: 20px;
    padding: 2px 8px 0;
    border-radius: 14px 14px 0 14px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
}

.home-product-slider .price .discount-badge::after {
    position: absolute;
    right: 0;
    bottom: -10px;
    width: 10px;
    height: 10px;
    content: "";
    background: url("../icons/plp/discount-tail.svg") center / 10px 10px no-repeat;
    transform: rotate(180deg);
}

.home-product-slider .price__current {
    position: absolute;
    top: 24px;
    left: 8px;
    width: 128px;
    height: 32px;
    min-height: 32px;
    align-items: baseline;
    padding: 0;
    direction: rtl;
}

.home-product-slider .price strong {
    font-weight: 700;
}

.home-product-slider .product-card__availability {
    width: auto;
    height: 32px;
    min-height: 32px;
    flex: 0 1 auto;
    padding: 2px 8px;
    font-size: 14px;
    line-height: 28px;
    letter-spacing: -.42px;
}

.home-product-slider .product-card__footer {
    width: auto;
    height: 52px;
    min-height: 52px;
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    direction: ltr;
}

.home-product-slider .product-card__cart,
.home-product-slider .product-card--home-standard .product-card__cart {
    width: auto;
    height: 48px;
    flex: 1 1 auto;
    border: 1px solid #32348f;
    border-radius: 14px;
    color: #32348f;
    background: #f8fafc;
}

.home-product-slider .product-card--home-standard .price__old-row {
    display: flex;
}

.home-product-slider .product-slider__control,
.page-product .home-product-slider .product-slider__control {
    top: 196px;
    width: 36px;
    height: 56px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(226, 232, 240, .4);
    transform: none;
}

.home-product-slider .product-slider__control--prev,
.page-product .home-product-slider .product-slider__control--prev {
    inset-inline-start: auto;
    inset-inline-end: -18px;
}

.home-product-slider .product-slider__control--next,
.page-product .home-product-slider .product-slider__control--next {
    inset-inline-start: -18px;
    inset-inline-end: auto;
}

.home-product-slider .product-slider__control:disabled {
    opacity: .42;
    cursor: not-allowed;
}

/* The suggested-products section is itself the 1200px shell on PDP. */
.page-product .pd-products-section--suggested {
    overflow: visible;
}

@media (max-width: 575px) {
    .home-product-slider .home-product-track {
        height: 447px;
        gap: 16px;
        padding-inline: 20px;
    }

    .page-product .home-product-slider {
        width: calc(100% + 40px);
        margin-inline: -20px;
    }

    .page-product .home-product-slider .pd-slider-viewport.home-product-track {
        width: 100%;
        height: 447px;
        margin-inline: 0;
    }

    .home-product-slider .product-card {
        width: 264px;
        height: 447px;
        min-height: 447px;
        flex: 0 0 264px;
    }

    .home-product-slider .product-card__body {
        height: 204px;
        flex-basis: 204px;
    }

    .home-product-slider .product-card__price-panel {
        height: 118px;
        min-height: 118px;
    }

    .home-product-slider .product-card h3 {
        font-size: 16px;
        line-height: 32px;
        font-weight: 700;
    }

    .home-product-slider .product-card__category {
        font-size: 14px;
        line-height: 26px;
    }

    .home-product-slider .product-card__review,
    .home-product-slider .product-card__rating {
        font-size: 15px;
        line-height: 30px;
    }

    .home-product-slider .product-card__cart,
    .home-product-slider .product-card--home-standard .product-card__cart {
        width: 68px;
        flex: 0 0 68px;
    }

    .home-product-slider .product-slider__control,
    .page-product .home-product-slider .product-slider__control {
        top: 196px;
        display: inline-flex;
    }

    .home-product-slider .product-slider__control--prev,
    .page-product .home-product-slider .product-slider__control--prev {
        inset-inline-start: auto;
        inset-inline-end: 24px;
    }

    .home-product-slider .product-slider__control--next,
    .page-product .home-product-slider .product-slider__control--next {
        inset-inline-start: 24px;
        inset-inline-end: auto;
    }
}
