/* ---- section ---- */
.tooth-product-slider-section {
    direction: rtl;
    padding: 40px 0;
    background-color: #f5f8f0; /* light background like image */
    font-family: inherit;
}

/* ---- wrapper ---- */
.tooth-product-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---- slider area ---- */
.tooth-product-slider-slider-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0; /* prevent overflow */
    overflow: hidden;
}

/*  swiper  */
.tooth-product-slider-swiper {
    flex: 1;
    overflow: hidden;
}

/* equal height slides */
.tooth-product-slider-swiper .swiper-wrapper {
    align-items: stretch;
}

.tooth-product-slider-swiper .swiper-slide {
    height: auto;
}

/*  product card  */
.tooth-product-slider-card {
    background: var(--tooth-white);
    border-radius: var(--tooth-border-radius-lg);
    padding: 20px;
    position: relative;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tooth-product-slider-card:hover {
    transform: translateY(-4px);
}

/* ---- card image ---- */
.tooth-product-slider-card__image-link {
    display: block;
    margin-bottom: 12px;
}

.tooth-product-slider-card__image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
}

/* ---- card info ---- */
.tooth-product-slider-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ---- card title ---- */
.tooth-product-slider-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tooth-space-indigo);
    margin: 0;
    line-height: 1.6;
}

.tooth-product-slider-card__title-link {
    color: inherit;
    text-decoration: none;
    position: relative;
}

/* full card clickable via pseudo element */
.tooth-product-slider-card__title-link::after {
    content: '';
    position: absolute;
    inset: 0;

    top: -200px;
    right: -16px;
    bottom: -60px;
    left: -16px;
}

/* ensure interactive elements are above pseudo */
.tooth-product-slider-card__price-wrap,
.tooth-product-slider-free-shipping {
    position: relative;
    z-index: 1;
}

/* ---- price wrap ---- */
.tooth-product-slider-card__price-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.tooth-product-slider-prices_container {
    max-width: 200px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

/* ---- prices ---- */
.tooth-product-slider-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.tooth-product-slider-price {
    font-weight: 700;
    color: var(--tooth-space-indigo);
}

.tooth-product-slider-price--sale {
    font-size: 15px;
    color: var(--tooth-space-indigo);
}

.tooth-product-slider-price--regular {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.tooth-product-slider-price--normal {
    font-size: 15px;
    color: var(--tooth-space-indigo);
}

.tooth-product-slider-currency {
    font-size: 12px;
    font-weight: 400;
    margin-right: 2px;
}

.tooth-product-slider-prices_container del .woocommerce-Price-currencySymbol {
    display: none;
}

/* ---- discount badge ---- */
.tooth-product-slider-discount-badge {
    background: var(--tooth-feedback-error);
    color: var(--tooth-white);
    font-size: 12px;
    font-weight: 700;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---- free shipping badge ---- */
.tooth-product-slider-free-shipping {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #B8EF1A;
    color: #162A4D;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    z-index: 2;
}

/* ---- nav buttons ---- */
.tooth-product-slider-nav {
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--tooth-space-indigo);
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s ease;
    opacity: 0.6;
    margin: 0;
    width: 35px;
    height: 80px;
}

.tooth-product-slider-nav:hover {
    opacity: 1;
    color: var(--tooth-lemon-lime);
}

.tooth-product-slider-nav.swiper-button-disabled span {
    display: none;
}

/* ---- sidebar ---- */
.tooth-product-slider-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    width: 230px;
}

/* ---- view all link ---- */
.tooth-product-slider-view-all {
    display: flex;
    align-items: center;
    color: var(--tooth-space-indigo);
    text-decoration: none;
    font-size: 18px;
    font-weight: normal;
    transition: opacity 0.2s;
    width: 100%;
    justify-content: center;
    gap: 20px;
}

.tooth-product-slider-view-all:hover {
    opacity: 0.7;
}


/* ---- star badge (last_sale) ---- */
.tooth-product-slider-badge--last_sale .tooth-product-slider-badge-inner {
    width: 140px;
    height: 140px;
    background: var(--tooth-space-indigo);
    border-radius: 50%;
    border: 4px solid #B8EF1A;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    position: relative;
}

.tooth-product-slider-badge--last_sale .tooth-product-slider-badge-inner span {
    color: #B8EF1A;
    font-size: 16px;
}

.tooth-product-slider-badge--last_sale .tooth-product-slider-badge-inner p {
    color: var(--tooth-white);
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    width: 100%;
    text-align: center;
}

/* ---- speech badge (top_sale) ---- */
.tooth-product-slider__title-inner {

}

.tooth-product-slider-sale__part-one {
    background-image: url(/wp-content/plugins/toothident-custom-features/modules/front-end-controller/product-sliders/assets/public/img/part-one.svg);
    height: 90px;
    width: 230px;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
    align-content: center;
    z-index: 1;
}

.tooth-product-slider-sale__part-one span {
    position: absolute;
    transform: rotate(-3deg);
    color: var(--tooth-space-indigo);
    font-size: 24px;
    left: 30px;
    top: 20px;

}

.tooth-product-slider-sale__part-two {
    background-image: url(/wp-content/plugins/toothident-custom-features/modules/front-end-controller/product-sliders/assets/public/img/part-two.svg);
    height: 100px;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
    align-content: center;
    margin-top: -35px;
    width: 250px;
    background-position: right;
}

.tooth-product-slider-sale__part-two span {
    position: absolute;
    transform: rotate(-3deg);
    color: var(--tooth-white);
    font-size: 24px;
    right: 40px;
    top: 25px;
}

.tooth-product-slider-badge-inner.tooth-top-sale {
    background-image: url(/wp-content/plugins/toothident-custom-features/modules/front-end-controller/product-sliders/assets/public/img/top-sale-background.svg);
    width: 200px;
    height: 200px;
    align-content: center;
    text-align: center;
    color: var(--tooth-white);
    font-size: 24px;
}

.tooth-product-slider-no-products {
    text-align: center;
    color: var(--tooth-space-indigo);
    padding: 20px;
}

@media ( max-width: 768px ) {
    .tooth-product-slider-wrapper {
        flex-direction: column-reverse;
        padding: 0 12px;
    }

    .tooth-product-slider-sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .tooth-product-slider-badge--last_sale .tooth-product-slider-badge-inner,
    .tooth-product-slider-badge--top_sale .tooth-product-slider-badge-inner {
        width: 100px;
        height: 100px;
    }

    .tooth-product-slider-card__image {
        height: 130px;
    }
}

@media ( max-width: 480px ) {
    .tooth-product-slider-card__title {
        font-size: 12px;
    }

    .tooth-product-slider-price--sale,
    .tooth-product-slider-price--normal {
        font-size: 13px;
    }
}