/* Section - Slider
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.slider__section {
    padding: 2rem 0 2rem 0;
}

.slider__section-title {
    font-size: var(--text-lg);
    margin-bottom: 1rem;
}

@media only screen and (min-width: 769px) {
    .slider__section {
        padding: 0 0 3rem 0;
    }
}


/* Component - Slider
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.slider__container {
    max-width: 100%;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */


    /*scrollbar-width: none; /* Firefox */
    /*-ms-overflow-style: none; /* Internet Explorer/Edge */
}

.slider-container::-webkit-scrollbar {
    width: 0.5rem; /* Adjust the width as needed */
}

.slider {
    scroll-snap-type: x mandatory;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
}

.slide {
    scroll-snap-align: start;
    cursor: grab;
    transition: transform 0.3s ease;
}

.slider__arrows {
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: flex-end;
}

.slider__left-arrow,
.slider__right-arrow {
    display: flex;
    justify-content: center;
    border: solid 1px var(--grey-200);
    color: var(--grey-700);
    cursor: pointer;
    padding: 1.25rem;
    background-color: var(--grey-50);
}

.slider__left-arrow.disabled,
.slider__right-arrow.disabled{
    color: var(--grey-300);
    cursor: unset;
}

/* Component/Items - Slider
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.item-card {
    --item-cards: 1;
    font-size: var(--text-sm);
    color: var(--grey-700);
    border: 1px solid var(--grey-200);
    flex: 0 0 calc((100% / var(--item-cards)) - (((var(--item-cards) - 1) / var(--item-cards)) * 1rem));
    background-color: var(--white);
}

.item-card__form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.item-card__figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    white-space: normal;
    background-color: #fff;
    padding: 0 0;
}

.item-card__img-link {
    display: block;
    position: relative;
    text-decoration: none;
    transition: all .3s ease;
}

.item-card__vendor {
    position: absolute;
    max-width: 52px;
    right: 16px;
    top: 16px;
    left: auto;
    bottom: auto;
    z-index: 1;
}

.item-card__img-container {
    position: relative;
    background-color: var(--grey-50);
    margin-left: auto;
    margin-right: auto;
    transition: all .5s ease-in-out;
    object-fit: cover;
    height: 12rem;
}

.item-card__img-container:hover {
    transform: scale(1.07);
}

.item-card__img {
    width: 35%;
    aspect-ratio: 1/1;
    object-fit: contain;

    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate3d(-50%, -50%, 0);
    transition: all .7s ease;
}

.item-card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.item-card__info {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
}

.item-card__title {
    font-size: var(--text-sm);
    margin: 0;
}

.item-card__title:hover {
    text-decoration: underline;
    color: var(--primary-blue);
}

.item-card__order {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-card__availability {
    color: var(--primary-blue);
}

.item-card__availability:hover {
    text-decoration: underline;
}

.item-card__pricing {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

.item-card__qty {
    font-size: var(--text-sm);
    appearance: none;
    height: 2.5rem;
    padding: 0 0.875rem;
    background-color: var(--white);
    border: 1px solid var(--grey-100);
    border-radius: 4px;
    box-shadow: none;
    width: 30%;
    flex-basis: 30%;
}

.item-card__price {
    flex-grow: 1;
    font-size: var(--text-lg);
    font-weight: 700;
    text-align: right;
}

@media only screen and (min-width: 769px) {
    .item-card {
        --item-cards: 2;
    }
}

@media only screen and (min-width: 993px) {
    .item-card {
        --item-cards: 4;
    }
}


/* Optional Items - Sidepanel Slider
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.sp-slider {
    /*padding: 0 1.5rem 1.5rem 1.5rem;*/
    position: relative;
}

.sp-slider__title {
    font-size: var(--text-base);
    margin-bottom: 0.75rem;
}

.sp-slider__left,
.sp-slider__right {
    position: absolute;
    top: 50%; /* Vertically centered */
    transform: translateY(-50%);
    opacity: 10%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 1rem;
}

.sp-slider__left:hover,
.sp-slider__right:hover {
    opacity: 60%;
}

.sp-slider__left.disabled,
.sp-slider__right.disabled {
    display: none;
}

.sp-slider__left {
    left: 0;
}

.sp-slider__right {
    right: 0;
}

.sp-optional {
    border: solid 1px var(--grey-200);
    border-radius: 4px;
    min-height: 230px;
    flex: 0 0 300px;
    background-color: white;
}

.sp-optional__form {
    height: 100%;
}

.sp-optional__container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.sp-optional__info {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.sp-optional__img-container {
    flex-basis: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--grey-200);
    height: 60px;
    background-color: white;
}

.sp-optional__img {
    width: 70%;
    aspect-ratio: 1/1;
    object-fit: contain;
}

.sp-optional__details {
    flex-basis: 70%;
}

.sp-optional__title {
    font-size: var(--text-sm);
    font-weight: bold;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.sp-optional__description {
    font-size: var(--text-sm);
    color: var(--slate-700);
}

.sp-optional__order {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sp-optional__pricing {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

.sp-optional__qty {
    font-size: var(--text-sm);
    appearance: none;
    height: 2.5rem;
    padding: 0 0.875rem;
    background-color: var(--white);
    border: 1px solid var(--grey-100);
    border-radius: 4px;
    box-shadow: none;
    width: 30%;
    flex-basis: 30%;
}

.sp-optional__price {
    flex-grow: 1;
    font-size: var(--text-lg);
    font-weight: 700;
    text-align: right;
}


