.lilyee-bestsellers {
    background:
        linear-gradient(180deg, rgba(185, 156, 203, 0.07), rgba(255, 255, 255, 0) 32%),
        var(--color-surface);
    padding: clamp(5rem, 7vw, 8rem) clamp(1.25rem, 4vw, 4rem);
    color: var(--color-text);
}

.lilyee-bestsellers__inner {
    width: min(100%, var(--max-width));
    margin: 0 auto;
}

.lilyee-bestsellers__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.lilyee-bestsellers__intro {
    display: grid;
    gap: 0.8rem;
}

.lilyee-bestsellers__eyebrow {
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    line-height: 1.4;
    text-transform: uppercase;
}

.lilyee-bestsellers__intro h2 {
    max-width: 12ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.65rem, 4.8vw, 4.25rem);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: 0;
}

.lilyee-bestsellers__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.8rem;
    color: var(--color-text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.lilyee-bestsellers__view-all:hover,
.lilyee-bestsellers__view-all:focus-visible {
    color: var(--color-primary-dark);
    transform: translateX(0.2rem);
}

.lilyee-bestsellers__carousel-shell {
    position: relative;
}

.lilyee-bestsellers__carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.lilyee-bestsellers__carousel::-webkit-scrollbar {
    display: none;
}

.lilyee-bestsellers__track {
    --bestseller-gap: clamp(1rem, 2vw, 1.5rem);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--bestseller-gap) * 2)) / 3);
    gap: var(--bestseller-gap);
    padding: 0.35rem 0.1rem 1.5rem;
}

.lilyee-bestsellers__card {
    min-width: 0;
    display: grid;
    gap: 1.15rem;
    scroll-snap-align: start;
}

.lilyee-bestsellers__image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.lilyee-bestsellers__image-carousel {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: clamp(1.2rem, 2vw, 1.75rem);
    background: rgba(80, 78, 74, 0.04);
    box-shadow: 0 1.4rem 3.5rem rgba(80, 78, 74, 0.09);
    transform: translateZ(0);
    transition: transform 420ms cubic-bezier(.22,.61,.36,1), box-shadow 420ms ease;
}

.lilyee-bestsellers__card:hover .lilyee-bestsellers__image-carousel,
.lilyee-bestsellers__card:focus-within .lilyee-bestsellers__image-carousel {
    transform: translateY(-0.45rem);
    box-shadow: 0 2.4rem 4.75rem rgba(80, 78, 74, 0.16);
}

.lilyee-bestsellers__card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 520ms ease, transform 900ms cubic-bezier(.22,.61,.36,1);
}

.lilyee-bestsellers__card-image.is-active,
.lilyee-bestsellers__image-carousel > img:first-child:last-child {
    opacity: 1;
    transform: scale(1);
}

.lilyee-bestsellers__card:hover .lilyee-bestsellers__card-image.is-active,
.lilyee-bestsellers__card:focus-within .lilyee-bestsellers__card-image.is-active {
    transform: scale(1.035);
}

.lilyee-bestsellers__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary-dark);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.lilyee-bestsellers__card-copy {
    display: grid;
    gap: 0.7rem;
    padding: 0 0.25rem;
}

.lilyee-bestsellers__product-name {
    margin: 0;
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
    line-height: 1.25;
}

.lilyee-bestsellers__product-name a {
    color: inherit;
    text-decoration: none;
}

.lilyee-bestsellers__product-name a:hover,
.lilyee-bestsellers__product-name a:focus-visible {
    color: var(--color-primary-dark);
}

.lilyee-bestsellers__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.2rem;
    color: var(--color-text);
    font-size: 0.82rem;
}

.lilyee-bestsellers__stars {
    color: var(--color-primary-dark);
    letter-spacing: 0.08em;
}

.lilyee-bestsellers__rating-count {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.lilyee-bestsellers__product-price {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 700;
}

.lilyee-bestsellers__product-price del {
    color: var(--color-muted);
    font-weight: 500;
    opacity: 0.78;
}

.lilyee-bestsellers__product-price ins {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.lilyee-bestsellers__buy {
    width: 100%;
    margin-top: 0.25rem;
}

.lilyee-bestsellers__nav-button {
    position: absolute;
    top: 42%;
    z-index: 5;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid rgba(80, 78, 74, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
    box-shadow: 0 1rem 2.5rem rgba(80, 78, 74, 0.1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        opacity var(--transition-fast);
}

.lilyee-bestsellers__nav-button:hover,
.lilyee-bestsellers__nav-button:focus-visible {
    background: var(--color-surface);
    border-color: rgba(185, 156, 203, 0.42);
    transform: translateY(-0.15rem);
}

.lilyee-bestsellers__nav-button:disabled {
    opacity: 0.36;
    cursor: default;
    transform: none;
}

.lilyee-bestsellers__nav-button--prev {
    left: -1.15rem;
}

.lilyee-bestsellers__nav-button--next {
    right: -1.15rem;
}

.lilyee-bestsellers__progress {
    position: relative;
    height: 0.24rem;
    margin: clamp(1rem, 2vw, 1.5rem) auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(185, 156, 203, 0.18);
}

.lilyee-bestsellers__progress-fill {
    display: block;
    width: 33.333%;
    height: 100%;
    border-radius: inherit;
    background: var(--color-primary);
    transform: translateX(0);
    transform-origin: left center;
    transition: width 260ms ease, transform 260ms ease;
}

@media (max-width: 1023px) {
    .lilyee-bestsellers__track {
        grid-auto-columns: calc((100% - var(--bestseller-gap)) / 2);
    }

    .lilyee-bestsellers__progress-fill {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .lilyee-bestsellers {
        padding-inline: 1rem;
    }

    .lilyee-bestsellers__header {
        align-items: start;
        flex-direction: column;
        gap: 1.25rem;
    }

    .lilyee-bestsellers__intro h2 {
        font-size: clamp(2.35rem, 12vw, 3.4rem);
    }

    .lilyee-bestsellers__track {
        grid-auto-columns: 100%;
        padding-bottom: 1.25rem;
    }

    .lilyee-bestsellers__nav-button {
        display: none;
    }

    .lilyee-bestsellers__progress-fill {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lilyee-bestsellers__carousel {
        scroll-behavior: auto;
    }

    .lilyee-bestsellers__image-carousel,
    .lilyee-bestsellers__card-image,
    .lilyee-bestsellers__view-all,
    .lilyee-bestsellers__nav-button,
    .lilyee-bestsellers__progress-fill {
        transition: none;
    }
}
