/* ============================================================
   HOMEPAGE REDESIGN – LumoCAD-inspired sections
   ============================================================ */

/* Shared */
.home-section {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 var(--theme-page-pad);
}

.home-section__inner {
    width: min(var(--theme-page-width), 100%);
    margin: 0 auto;
    padding: 72px 0;
}

.home-section__inner+.home-section__inner {
    border-top: 1px solid var(--theme-border);
}

.section-title {
    font-size: clamp(2.2rem, calc(1.8vw + 0.8rem), 3.2rem);
    line-height: 1.1;
    font-weight: 800;
}

.text-kicker {
    display: block;
    color: var(--theme-green);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.section-header {
    margin-bottom: 32px;
}

.btn--primary {
    color: #fff;
    background: var(--theme-green);
}

.btn--primary:hover {
    color: #fff;
    background: var(--theme-green-dark);
}

.btn--outline {
    color: var(--theme-ink);
    background: transparent;
    border: 1.5px solid var(--theme-ink);
}

.btn--outline:hover {
    color: #fff;
    background: var(--theme-ink);
}

.btn--lg {
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 999px;
}

.btn--sm {
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 999px;
}

/* Progress hover effect */
.btn--progress {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.btn--progress .btn__text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--progress .btn__icon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Invert colors: using background contrasting with green, e.g. charcoal or dark green */
    background: var(--theme-charcoal, #231F20);
    color: #fff;
    border-radius: inherit;
    clip-path: inset(0 100% 0 0 round 999px);
    transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    will-change: clip-path;
    transform: translateZ(0);
}

.btn--progress .btn__icon-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.btn--progress:hover {
    background: var(--theme-green); /* Prevents the base color from changing due to .btn--primary:hover */
}

.btn--progress:hover .btn__icon {
    clip-path: inset(0 0 0 0 round 999px);
}

/* ===================== HERO SLIDESHOW ===================== */
.hero-slideshow {
    --hero-controls-color: #fff;
    --hero-controls-rgb: 255, 255, 255;
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--theme-charcoal);
    transform: translateZ(0);
    will-change: transform;
}

.slideshow-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    --hero-overlay-direction: 90deg;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}

.slide--active {
    opacity: 1;
    pointer-events: auto;
}

.slide__bg {
    position: absolute;
    inset: 0;
}

.slide__bg picture {
    display: block;
    width: 100%;
    height: 100%;
}

.slide__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--hero-overlay-direction), rgba(23, 31, 29, 0.88) 0%, rgba(23, 31, 29, 0.5) 45%, rgba(23, 31, 29, 0.08) 100%);
}

.slide__overlay--light {
    display: none;
    background: none;
}

.slide:has(.slide__content--right) {
    --hero-overlay-direction: 270deg;
}

.slide[data-color="light"] .slide__content,
.slide[data-color="light"] .slide__title,
.slide[data-color="light"] .slide__kicker,
.slide[data-color="light"] .slide__desc {
    color: #fff;
}

.slide__content {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 clamp(32px, 6vw, 120px);
    max-width: 620px;
    color: #fff;
}

.slide__content>* {
    will-change: transform, opacity, filter;
}

.slide__content--right {
    left: auto;
    right: 0;
    text-align: right;
}

.slide__content--right .slide__actions {
    justify-content: flex-end;
}

.slide__kicker {
    display: block;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #d4fff7;
    margin-bottom: 12px;
}

.slide__title {
    font-size: clamp(2.8rem, calc(3.5vw + 1rem), 4.8rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 16px;
}

.slide__title-line,
.slide__desc-line {
    display: block;
}

.slide__desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 480px;
    margin-bottom: 28px;
    line-height: 1.55;
}

.slide__content--right .slide__desc {
    margin-left: auto;
}

@keyframes heroLineReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, 34px, 0);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

.hero-reveal-line {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    filter: blur(10px);
}

.slide--active .hero-reveal-line {
    animation: heroLineReveal 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) var(--hero-line-delay, 0s) both;
}

.slide--active .slide__actions {
    animation: heroLineReveal 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.56s both;
}

.slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.slide__actions .btn--outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.slide__actions .btn--outline:hover {
    background: #fff;
    color: var(--theme-ink);
    border-color: #fff;
}

/* Slideshow Controls */
.slideshow-controls {
    position: absolute;
    bottom: 28px;
    left: clamp(32px, 6vw, 120px);
    right: auto;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--hero-controls-color);
}

.slideshow-counter {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.slideshow-progress {
    width: 120px;
    height: 3px;
    background: rgba(var(--hero-controls-rgb), 0.25);
    border-radius: 99px;
    overflow: hidden;
}

@keyframes progress-fill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.slideshow-progress__bar {
    height: 100%;
    width: 0%;
    background: var(--hero-controls-color);
    border-radius: 99px;
}

.slideshow-progress__bar.is-animating {
    animation: progress-fill 5s linear forwards;
}

.slideshow-nav {
    display: flex;
    gap: 6px;
}

.slideshow-nav__btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--hero-controls-rgb), 0.12);
    border: 1px solid rgba(var(--hero-controls-rgb), 0.2);
    border-radius: 999px;
    color: var(--hero-controls-color);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.slideshow-nav__btn:hover {
    background: rgba(var(--hero-controls-rgb), 0.25);
    border-color: rgba(var(--hero-controls-rgb), 0.38);
    transform: translateY(-1px);
}

.slideshow-nav__btn .icon {
    width: 1rem;
    height: 1rem;
}

/* ===================== COLLECTION TABS ===================== */
.collection-tabs-section {
    background: var(--theme-soft);
    position: relative;
    z-index: 2;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    transform: translate3d(0, 100px, 0);
    transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.collection-tabs-section.is-revealed {
    transform: translate3d(0, 0, 0);
}

.collection-cards-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}

.collection-card-lg {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 240px;
    padding: 24px;
    border-radius: var(--theme-card-radius);
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.collection-card-lg:hover {
    transform: translateY(-3px);
    box-shadow: var(--theme-shadow);
    color: #fff;
    text-decoration: none;
}

.collection-card-lg:first-child {
    grid-row: span 2;
    min-height: 494px;
}

.collection-card-lg__img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.collection-card-lg__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-card-lg__content {
    position: relative;
    z-index: 1;
}

.collection-card-lg__label {
    display: block;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #d4fff7;
    margin-bottom: 8px;
}

.collection-card-lg__content h3 {
    font-size: 1.3rem;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
}

.collection-card-lg:first-child .collection-card-lg__content h3 {
    font-size: 2.1rem;
}

/* ===================== MARQUEE ===================== */
.home-marquee {
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid var(--theme-border);
    border-bottom: 1px solid var(--theme-border);
    padding: 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 28s linear infinite;
}

.marquee-items {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    flex-shrink: 0;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 21px;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--theme-green-dark);
    white-space: nowrap;
}

.marquee-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--theme-green);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===================== COLLECTION HIGHLIGHT ===================== */
.highlight-section {
    background: var(--theme-soft);
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.highlight-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 36px;
    background: #fff;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-card-radius);
}

.highlight-list__kicker {
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--theme-green);
    text-align: center;
    margin-bottom: 16px;
}

.highlight-list__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highlight-list__item a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s;
}

.highlight-list__item h2 {
    font-size: clamp(2rem, calc(2.5vw + 0.5rem), 3.6rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--theme-border);
    transition: color 0.3s;
}

.highlight-list__item--active h2,
.highlight-list__item:hover h2 {
    color: var(--theme-ink);
}

.highlight-list__item--active a,
.highlight-list__item:hover a {
    background: var(--theme-soft);
}

.highlight-preview {
    text-align: center;
    margin-top: 20px;
    min-height: 80px;
    position: relative;
}

.highlight-preview__item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.highlight-preview__item--active {
    position: relative;
    opacity: 1;
}

.highlight-preview__item h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--theme-ink);
}

.highlight-preview__item p {
    font-size: 0.9rem;
    color: var(--theme-muted);
}

.highlight-image {
    position: relative;
    border-radius: var(--theme-card-radius);
    overflow: hidden;
    min-height: 420px;
}

.highlight-image__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.highlight-image__slide--active {
    opacity: 1;
    pointer-events: auto;
}

.highlight-image__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-image__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    background: linear-gradient(160deg, rgba(23, 31, 29, 0.1) 0%, rgba(23, 31, 29, 0.7) 100%);
    color: #fff;
}

.highlight-image__overlay span {
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #d4fff7;
    margin-bottom: 6px;
}

.highlight-image__overlay strong {
    font-size: 1.8rem;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #fff;
}

.btn--shop-now {
    width: 25% !important;
    min-width: 120px !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    text-transform: none !important;
    line-height: 1 !important;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease !important;
}

.btn--shop-now .btn__text {
    color: #000 !important;
    text-transform: none !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
}

.btn--shop-now .btn__icon-text {
    color: #fff !important;
    text-transform: none !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
}

.btn--shop-now .btn__icon {
    background: #000 !important;
    color: #fff !important;
    border-radius: inherit !important;
}

.btn--shop-now:hover {
    background: #000 !important;
}

/* ===================== PRODUCT TABS ===================== */
.product-tabs-section {
    background: #f7f7f5;
}

.product-tabs-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.product-tabs-nav {
    display: flex;
    gap: 6px;
}

.product-tab {
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--theme-muted);
    background: transparent;
    border: 1.5px solid var(--theme-border);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}

.product-tab:hover {
    color: var(--theme-ink);
    border-color: var(--theme-ink);
}

.product-tab--active,
.product-tab--active:hover {
    color: #fff;
    background: var(--theme-ink);
    border-color: var(--theme-ink);
}

.product-tab-panel {
    display: none;
}

.product-tab-panel--active {
    display: block;
}

.product-tabs-section .theme-product-card,
.product-tabs-section .product-card {
    box-shadow: none;
}

.product-card--compact .product-copy,
.product-card--compact .product-card-taxonomy,
.product-card--compact .product-price-note {
    display: none !important;
}

.product-tabs-section .theme-product-card:hover,
.product-tabs-section .theme-product-card:focus-within,
.product-tabs-section .product-card:hover,
.product-tabs-section .product-card:focus-within {
    box-shadow: none;
}

.product-grid--4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===================== IMAGE + TEXT ===================== */
.image-text-section {
    background: #fff;
}

.image-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.image-text__media {
    overflow: hidden;
    border-radius: var(--theme-card-radius);
    border: 1px solid var(--theme-border);
    height: 100%;
    min-height: 100%;
    display: flex;
}

.image-text__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-text__content {
    padding: 36px;
    background: #fff;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-card-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-text__content h2 {
    font-size: 2.2rem;
    line-height: 1.12;
    margin: 8px 0 14px;
}

.image-text__content>p {
    color: var(--theme-muted);
    margin-bottom: 24px;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.proof-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    align-content: start;
    column-gap: 8px;
    row-gap: 4px;
    padding: 14px;
    background: var(--theme-soft);
    border: 1px solid var(--theme-border);
    border-radius: 16px;
}

.proof-item .icon {
    color: var(--theme-green);
    margin: 0;
}

.proof-item strong,
.proof-item span {
    display: block;
}

.proof-item span {
    grid-column: 1 / -1;
    color: var(--theme-muted);
    font-size: 0.84rem;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials-section {
    background: var(--theme-soft);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 36px;
}

.testimonials-slider {
    max-width: 860px;
    margin: 0 auto;
}

.testimonials-track {
    position: relative;
    min-height: 220px;
}

.testimonial-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96) translateY(12px);
    pointer-events: none;
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.55s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 40px;
    background: #fff;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-card-radius);
    box-shadow: 0 12px 32px rgba(18, 24, 32, 0.06);
}

.testimonial-card--active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.testimonial-card--active blockquote {
    animation: testimonialTextReveal 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s both;
}

.testimonial-card--active .testimonial-card__author {
    animation: testimonialTextReveal 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.16s both;
}

@keyframes testimonialTextReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-wash);
    border-radius: 999px;
    color: var(--theme-green);
    margin-bottom: 20px;
}

.testimonial-card blockquote {
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--theme-ink);
    font-weight: 600;
    margin-bottom: 24px;
    max-width: 600px;
}

.testimonial-card__author strong {
    display: block;
    font-size: 1rem;
}

.testimonial-card__author span {
    display: block;
    color: var(--theme-muted);
    font-size: 0.82rem;
    margin-top: 2px;
}

.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
}

.testimonials-counter {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--theme-muted);
}

.testimonials-nav {
    display: flex;
    gap: 6px;
}

.testimonials-nav__btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid var(--theme-border);
    border-radius: 999px;
    color: var(--theme-ink);
    cursor: pointer;
    transition: all 0.2s;
}

.testimonials-nav__btn:hover {
    background: var(--theme-ink);
    color: #fff;
    border-color: var(--theme-ink);
}

/* ===================== TRUST ICONS ===================== */
.trust-section {
    background: #fff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.trust-item {
    text-align: center;
    padding: 28px 18px;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    transition: box-shadow 0.2s;
}

.trust-item:hover {
    box-shadow: var(--theme-shadow);
}

.trust-item__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-green);
}

.trust-item h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.trust-item p {
    color: var(--theme-muted);
    font-size: 0.85rem;
}

/* ===================== NEWSLETTER ===================== */
.newsletter-section {
    background: var(--theme-soft);
}

.newsletter-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 18px;
    font-size: 0.92rem;
    border: 1.5px solid var(--theme-border);
    border-radius: 999px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-input:focus {
    border-color: var(--theme-green);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .product-grid--4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .highlight-image {
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    .home-section {
        padding: 0 16px;
    }

    .home-section__inner {
        padding: 48px 0;
    }

    .hero-slideshow {
        height: 95vh;
        min-height: 480px;
    }

    .slide__overlay {
        background: linear-gradient(180deg, rgba(23, 31, 29, 0.12) 0%, rgba(23, 31, 29, 0.28) 30%, rgba(23, 31, 29, 0.74) 68%, rgba(23, 31, 29, 0.92) 100%);
    }

    .slide__overlay--light {
        background: none;
    }

    .slide__content,
    .slide__content--right {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        padding: 28px 20px 112px;
        text-align: left;
        max-width: min(23rem, calc(100% - 24px));
    }

    .slide__content--right {
        text-align: left;
    }

    .slide__content--right .slide__actions {
        justify-content: flex-start;
    }

    .slide__kicker {
        margin-bottom: 10px;
        font-size: 0.74rem;
    }

    .slide__title {
        font-size: clamp(1.8rem, 7.4vw, 3rem);
        line-height: 0.98;
        margin-bottom: 12px;
        overflow-wrap: anywhere;
    }

    .slide__desc {
        max-width: 22rem;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 20px;
        font-size: 0.95rem;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .slide__actions {
        justify-content: flex-start;
        gap: 10px;
    }

    .slide__actions .btn {
        max-width: 100%;
        margin-inline: 0;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
    }

    .slide__actions .btn--outline {
        border-color: #fff;
    }

    .slideshow-controls {
        left: 20px;
        right: 20px;
        bottom: 16px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        justify-content: normal;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .slideshow-progress {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .slideshow-counter {
        font-size: 0.78rem;
        letter-spacing: 0.02em;
    }

    .slideshow-nav__btn {
        background: rgba(255, 255, 255, 0.14);
    }

    .collection-cards-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .collection-card-lg:first-child {
        grid-row: span 1;
        min-height: 220px;
    }

    .collection-card-lg {
        min-height: 200px;
    }

    .collection-card-lg:first-child .collection-card-lg__content h3 {
        font-size: 1.4rem;
    }

    .highlight-list {
        padding: 24px 18px;
    }

    .highlight-list__item h2 {
        font-size: 2rem;
    }

    .highlight-image {
        min-height: 280px;
    }

    .product-tabs-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-grid--4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

.product-card--compact {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.product-card--compact .product-card-body {
    display: none !important;
}

.product-card--compact .theme-product-media {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    overflow: hidden;
}

.product-card--compact .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card--compact:hover .product-img {
    transform: scale(1.04);
}

.product-card-glass-pill {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(30, 36, 34, 0.52);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.product-card--compact:hover .product-card-glass-pill {
    background: rgba(30, 36, 34, 0.68);
    border-color: rgba(255, 255, 255, 0.42);
}

.product-card-glass-thumb {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: #ffffff;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-card-glass-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.product-card-glass-thumb .product-shape {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--theme-green-light, #e0f2fe);
}

.product-card-glass-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.product-card-glass-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-glass-price {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.btn-glass-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    color: #171f1d;
    background: #ffffff;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.22s ease, background-color 0.22s ease;
}

.btn-glass-shop:hover {
    color: #171f1d;
    background: #f1f5f4;
    transform: scale(1.03);
}

@media (min-width: 769px) {
    .product-tabs-section .product-grid--4,
    #panel-bestsellers .product-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
    }

    .product-card--compact {
        aspect-ratio: 3 / 4;
        min-height: 360px;
        max-height: 440px;
        border-radius: 24px;
        position: relative;
        overflow: hidden;
    }

    .product-card--compact .theme-product-media {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .product-tabs-section .product-grid--4,
    #panel-bestsellers .product-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 14px !important;
        padding: 4px 16px 18px 16px !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        width: calc(100% + 32px) !important;
        scrollbar-width: none !important;
    }

    .product-tabs-section .product-grid--4::-webkit-scrollbar,
    #panel-bestsellers .product-grid::-webkit-scrollbar {
        display: none !important;
    }


}

    .image-text-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .image-text__media {
        height: auto;
        min-height: auto;
        aspect-ratio: 16/9;
    }

    .image-text__content {
        padding: 24px;
    }

    .image-text__content h2 {
        font-size: 1.65rem;
    }

    .proof-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .collection-cards-grid {
        grid-template-columns: 1fr;
    }

    .product-grid--4 {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .slide__title {
        font-size: 1.8rem;
    }
}

/* ===================== HIGHLIGHT TEXT ===================== */
.highlight-text-section {
    background: var(--theme-wash);
}

.highlight-text-wrap {
    text-align: center;
    max-width: 64%;
    margin: 0 auto;
}

.highlight-text-big {
    font-size: clamp(2.2rem, calc(2.5vw + 0.5rem), 3.6rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--theme-ink);
}

@media (max-width: 768px) {
    .highlight-text-wrap {
        max-width: 100%;
    }

    .highlight-text-big {
        font-size: 2rem;
    }
}

/* ===================== LOOKBOOK MARQUEE ===================== */
.lookbook-marquee-section {
    background: transparent;
    margin-bottom: 40px;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
}

.lookbook-marquee-section .home-section__inner {
    container-type: inline-size;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.lookbook-marquee-track {
    --lookbook-gap: 16px;
    --lookbook-visible: min(3, var(--lookbook-count, 3));
    --lookbook-gap-count: calc(var(--lookbook-visible) - 1);
    display: flex;
    width: max-content;
    animation: lookbook-scroll 24s linear infinite;
}

.lookbook-marquee-items {
    display: flex;
    gap: var(--lookbook-gap);
    flex-shrink: 0;
    padding-right: var(--lookbook-gap);
}

.lookbook-card {
    display: block;
    width: calc((100cqw - (var(--lookbook-gap) * var(--lookbook-gap-count))) / var(--lookbook-visible) * 0.6);
    aspect-ratio: 1 / 1;
    border-radius: var(--theme-card-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.lookbook-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lookbook-marquee-track:hover,
.lookbook-marquee-track:focus-within {
    animation-play-state: paused;
}

.lookbook-card:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: -3px;
}

@keyframes lookbook-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lookbook-marquee-items[aria-hidden="true"],
    .lookbook-card[aria-hidden="true"] {
        display: none;
    }

    .marquee-track,
    .lookbook-marquee-track {
        animation: none !important;
        transform: none;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .lookbook-marquee-track {
        --lookbook-visible: min(2, var(--lookbook-count, 3));
    }
}

@media (max-width: 520px) {
    .lookbook-marquee-track {
        --lookbook-visible: 1;
        --lookbook-gap-count: 0;
    }
}

/* ===================== PRODUCTS HIGHLIGHT ===================== */
.products-highlight-section {
    background: #fff;
}

.products-highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.products-highlight__banner {
    overflow: hidden;
    border-radius: var(--theme-card-radius);
    border: 1px solid var(--theme-border);
    height: 100%;
    min-height: 100%;
    display: flex;
}

.products-highlight__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-highlight__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px;
    background: #fff;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-card-radius);
    height: 100%;
    min-height: 100%;
}

.products-highlight__desc {
    color: var(--theme-muted);
    margin: 12px 0 24px;
    max-width: 480px;
}

.products-highlight__card {
    margin-top: 28px;
    max-width: 360px;
}

@media (max-width: 991px) {
    .products-highlight-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .products-highlight__banner {
        height: auto;
        min-height: auto;
        aspect-ratio: 16/9;
    }

    .products-highlight__content {
        padding: 24px;
        height: auto;
        min-height: auto;
    }

    .products-highlight__card {
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .products-highlight__banner {
        aspect-ratio: 4/3;
    }
}

/* ===================== PRODUCT SUGGESTION ===================== */
.suggestion-section {
    background: var(--theme-soft);
}

.suggestion-header {
    text-align: center;
    margin-bottom: 36px;
}

.suggestion-header h2 {
    max-width: 700px;
    margin: 0 auto;
}

.suggestion-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suggestion-step {
    background: var(--theme-panel);
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    overflow: hidden;
}

.suggestion-step__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
}

.suggestion-step__header::-webkit-details-marker {
    display: none;
}

.suggestion-step__header::marker {
    content: '';
}

.suggestion-step__num {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-soft);
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.suggestion-step__header div {
    flex: 1;
}

.suggestion-step__header h3 {
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.suggestion-step__header p {
    color: var(--theme-muted);
    font-size: 0.88rem;
}

.suggestion-step__arrow {
    color: var(--theme-muted);
    transition: transform 0.25s;
}

.suggestion-step[open] .suggestion-step__arrow {
    transform: rotate(180deg);
}

.suggestion-step__content {
    padding: 0;
}

.suggestion-step__content-inner {
    padding: 0 24px 24px 84px;
}

.suggestion-accordion--enhanced .suggestion-step {
    overflow: hidden;
}

.suggestion-accordion--enhanced .suggestion-step__content {
    height: 0;
    overflow: hidden;
    will-change: height;
    transition:
        height 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.suggestion-accordion--enhanced .suggestion-step__content-inner {
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity 0.22s ease,
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.suggestion-accordion--enhanced .suggestion-step.is-open .suggestion-step__content-inner,
.suggestion-accordion--enhanced .suggestion-step.is-expanding .suggestion-step__content-inner,
.suggestion-accordion--enhanced .suggestion-step.is-collapsing .suggestion-step__content-inner {
    opacity: 1;
    transform: translateY(0);
}

.suggestion-step__products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.suggestion-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--theme-soft);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    color: var(--theme-ink);
    text-decoration: none;
    transition: box-shadow 0.2s;
}

.suggestion-product:hover {
    box-shadow: var(--theme-shadow);
    color: var(--theme-ink);
    text-decoration: none;
}

.suggestion-product img {
    display: block;
    width: 80px;
    height: 80px;
    aspect-ratio: 1 / 1;
    align-self: center;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.suggestion-product > div {
    flex: 1;
    min-width: 0;
}

.suggestion-product strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

.suggestion-product span {
    color: var(--theme-muted);
    font-size: 0.85rem;
}

.suggestion-step__note {
    color: var(--theme-muted);
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .suggestion-step__content-inner {
        padding-left: 24px;
    }

    .suggestion-accordion--enhanced .suggestion-step__content-inner {
        padding-left: 24px;
    }
}

/* ===================== TESTIMONIALS PAGINATION ===================== */
.testimonials-pagination {
    width: 120px;
    height: 3px;
    background: var(--theme-border);
    border-radius: 99px;
    overflow: hidden;
}

@keyframes testimonials-progress-fill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.testimonials-pagination__bar {
    height: 100%;
    width: 0%;
    background: var(--theme-green);
    border-radius: 99px;
}

.testimonials-pagination__bar.is-animating {
    animation: testimonials-progress-fill 5s linear forwards;
}

/* ===================== SCROLLING CARDS ===================== */
.scrolling-cards-section {
    background: var(--theme-soft);
    padding: clamp(4.8rem, 8vw, 10rem) 0;
}

.scrolling-cards {
    width: min(var(--theme-page-width), calc(100% - var(--theme-page-pad) * 2));
    margin: 0 auto;
    position: relative;
    contain: content;
    container-type: inline-size;
    container-name: scrolling-cards;
}

.scrolling-cards__wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.scrolling-cards__content-wrapper {
    width: 100%;
    display: flex;
}

.scrolling-cards__content {
    width: 100%;
}

.scrolling-cards__content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.scrolling-cards__cards {
    position: relative;
}

.block-scrolling-cards {
    width: 100%;
}

.scrolling-cards__grid {
    display: grid;
    gap: 0.8rem;
}

.scrolling-cards__headings {
    --scrolling-heading-size: clamp(2.125rem, calc(2.729vw + 0.817rem), 3rem);
    --scrolling-heading-fit-size: var(--scrolling-heading-size);
    position: relative;
    height: calc(var(--scrolling-heading-size) * 2.4);
    overflow: clip;
    width: 100%;
}

.block-scrolling__headings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.scrolling-cards__heading {
    position: relative;
    min-height: calc(var(--scrolling-heading-size) * 2.4);
    margin: 0;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    font-size: var(--scrolling-heading-fit-size);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-wrap: balance;
}

.scrolling-cards__line {
    display: inline-block;
    white-space: nowrap;
    overflow-wrap: normal;
}

.scrolling-cards__heading .hl {
    display: inline-block;
    font-style: normal;
    padding: 0 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.scrolling-cards__heading .hl--purple {
    background: #dcd3ff;
}

.scrolling-cards__heading .hl--blue {
    background: #bde6ee;
}

.scrolling-cards__heading .hl--pink {
    background: #ffd3d3;
}

.scrolling-cards__sub {
    color: var(--theme-muted);
    max-width: 420px;
    margin: 1.992rem 0 2.8rem;
    font-size: 1rem;
}

.scrolling-cards__card {
    flex-shrink: 0;
}

/* Product overlay cards */
.product-overlay-card {
    position: relative;
    width: 100%;
    border-radius: var(--theme-card-radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.product-overlay-card__bg {
    position: absolute;
    inset: 0;
}

.product-overlay-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-overlay-card__content {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    will-change: transform;
}

.product-overlay-card__thumb {
    width: 52px;
    height: 52px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-overlay-card__thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-overlay-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-overlay-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-overlay-card__title {
    display: block;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.product-overlay-card__title:hover {
    color: #f0f0f0;
}

.product-overlay-card__price {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 首页展示卡片保持独立结构，不使用商品列表的快捷加购和选色布局。 */
.scrolling-cards__wrapper .product-overlay-card {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
}

.scrolling-cards__wrapper .product-overlay-card__content {
    display: flex;
    bottom: 18px;
    left: 18px;
    right: 18px;
    gap: 12px;
    padding: 8px;
}

.scrolling-cards__wrapper .product-overlay-card__thumb {
    width: 56px;
    height: 56px;
    background: #eef0f1;
}

.scrolling-cards__wrapper .product-overlay-card__thumb img { object-fit: contain; }

.scrolling-cards__wrapper .product-overlay-card__title { font-size: 14px; }
.scrolling-cards__wrapper .product-overlay-card__price { white-space: nowrap; }

.scrolling-cards__wrapper .product-overlay-card__shop {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 42px;
    box-sizing: border-box;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff linear-gradient(#111, #111) left center / 0% 100% no-repeat;
    background-origin: border-box;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.4s ease,
        background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scrolling-cards__wrapper .product-overlay-card__shop:is(:hover, :focus-visible) {
    background-size: 100% 100%;
    color: #fff;
}
.scrolling-cards__wrapper .product-overlay-card__shop:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .scrolling-cards__wrapper .product-overlay-card__shop { transition: none; }
}

/* Custom button overrides for overlay */
.product-overlay-card__content .btn {
    background: #fff;
    color: #000;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-overlay-card__content .btn .btn__text {
    color: #000;
}

.product-overlay-card__content .btn .btn__icon {
    background: #000;
    color: #fff;
    border-radius: inherit;
}

.product-overlay-card__content .btn:hover {
    background: #000;
}

/* Tablet & Mobile responsive fallback for scrolling cards */
@media (max-width: 1024px) {
    .scrolling-cards__headings {
        --scrolling-heading-size: clamp(1.45rem, calc(3.6vw + 0.8rem), 2.2rem);
        height: auto;
    }

    .scrolling-cards__heading {
        min-height: 0;
        width: 100%;
        max-width: 32rem;
    }

    .scrolling-cards__content {
        display: block;
        position: static;
        height: auto;
    }

    .scrolling-cards__content-wrapper {
        position: static;
    }

    .scrolling-cards__content-inner {
        padding-inline: 0.5rem;
        margin-bottom: 2.5rem;
    }

    .scrolling-cards__line {
        white-space: normal;
    }

    .scrolling-cards__heading .hl {
        white-space: normal;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }

    .scrolling-cards__sub {
        max-width: 32rem;
    }

    .scrolling-cards__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .scrolling-cards__grid .scrolling-cards__card {
        min-width: 0;
        width: 100%;
    }

    .scrolling-cards__grid .scrolling-cards__card:nth-child(2n) {
        padding-top: 0;
    }
}

@media (max-width: 520px) {
    .scrolling-cards__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (min-width: 1025px) {
    .scrolling-cards {
        --zigzag-height: 14rem;
        --column-gap: 5rem;
    }

    .scrolling-cards__content {
        display: grid;
        grid-template-columns: 1fr 1.2fr 1fr;
        gap: var(--row-gap, 8rem) var(--column-gap, 5rem);
        align-items: center;
        position: sticky;
        top: 0;
        height: min(100%, calc(100dvh - var(--header-height, 80px)));
    }

    .scrolling-cards__content-wrapper {
        position: absolute;
        inset: 0;
    }

    .scrolling-cards__content-inner {
        grid-column: 2;
    }

    .scrolling-cards__grid {
        grid-template-columns: 1fr 1.2fr 1fr;
        gap: var(--row-gap, 8rem) var(--column-gap, 5rem);
    }

    .scrolling-cards__grid .scrolling-cards__card {
        display: flex;
        align-items: flex-start;
    }

    .scrolling-cards__grid .scrolling-cards__card:nth-child(odd) {
        grid-column: 1;
    }

    .scrolling-cards__grid .scrolling-cards__card:nth-child(2n) {
        grid-column: 3;
        align-items: flex-end;
        padding-top: var(--zigzag-height, 14rem);
    }
}

@container scrolling-cards (max-width: 1024px) {
    .scrolling-cards__content {
        display: block;
        position: static;
        height: auto;
    }

    .scrolling-cards__content-wrapper {
        position: static;
    }

    .scrolling-cards__content-inner {
        padding-inline: 0.5rem;
        margin-bottom: 2.5rem;
    }

    .scrolling-cards__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .scrolling-cards__grid .scrolling-cards__card:nth-child(2n) {
        padding-top: 0;
    }
}

/* ===================== SCROLLING CARD LAYERED ===================== */
.scrolling-layered-section {
    background: var(--theme-soft);
    padding: clamp(4.8rem, 8vw, 10rem) 0;
    contain: content;
}

.scrolling-layered-header {
    text-align: center;
    margin-bottom: clamp(2.4rem, 5vw, 6rem);
    position: relative;
}

.scrolling-layered-badges {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sl-badge {
    --badge-rotate: -24deg;
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 999px;
    animation: sl-float 4s ease-in-out infinite;
    transform: rotate(var(--badge-rotate));
}

.sl-badge--1 {
    top: -10%;
    right: 12%;
    background: #f6fd7c;
    color: #000;
    --badge-rotate: -24deg;
    animation-delay: 0s;
}

.sl-badge--2 {
    bottom: 0;
    left: 8%;
    background: #ffc8c8;
    color: #000;
    --badge-rotate: -10deg;
    animation-delay: 1.2s;
}

.sl-badge--3 {
    bottom: -10%;
    right: 16%;
    background: #bde6ee;
    color: #000;
    border-radius: 20px;
    --badge-rotate: 24deg;
    animation-delay: 2.4s;
}

@keyframes sl-float {

    0%,
    100% {
        transform: translateY(0) rotate(var(--badge-rotate));
    }

    50% {
        transform: translateY(-10px) rotate(var(--badge-rotate));
    }
}

.scrolling-layered-cards {
    --sticky-spacing: 1.1rem;
    --width-reduced: 4rem;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.scrolling-layered-card {
    position: sticky;
    top: var(--offset-top, calc(var(--header-height, 80px) + 2rem + var(--item-index, 0) * var(--sticky-spacing)));
    will-change: transform;
    transform-origin: top center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.scrolling-layered-card[data-index="0"] {
    --item-index: 0;
}

.scrolling-layered-card[data-index="1"] {
    --item-index: 1;
}

.scrolling-layered-card[data-index="2"] {
    --item-index: 2;
}

.scrolling-layered-card__inner {
    position: relative;
    border-radius: var(--theme-card-radius);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.scrolling-layered-card__inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scrolling-layered-card__label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.9);
    color: var(--theme-ink);
    border-radius: 999px;
    z-index: 2;
}

.scrolling-layered-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 32px 100px;
    background: linear-gradient(180deg, rgba(23, 31, 29, 0.05) 0%, rgba(23, 31, 29, 0.45) 45%, rgba(23, 31, 29, 0.8) 100%);
    color: #fff;
    z-index: 1;
}

.scrolling-layered-card__texts {
    margin-bottom: 18px;
}

.scrolling-layered-card__sub {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #d4fff7;
    margin-bottom: 6px;
}

.scrolling-layered-card__texts h3 {
    font-size: clamp(2.2rem, calc(2.5vw + 0.5rem), 3.6rem);
    line-height: 1.1;
    color: #fff;
}

.scrolling-layered-card .btn--primary {
    align-self: flex-start;
}

@media (min-width: 768px) {
    .scrolling-layered-cards {
        --sticky-spacing: 2rem;
        --width-reduced: 6rem;
    }
}

@media (max-width: 768px) {
    .sl-badge {
        display: none;
    }

    .scrolling-layered-cards {
        max-width: 100%;
    }

    .scrolling-layered-card__overlay {
        padding: 20px 20px 76px;
    }

    .scrolling-layered-card__texts h3 {
        font-size: 2rem;
    }
}

@media (max-height: 520px) {
    .hero-slideshow {
        min-height: 380px;
        height: 100vh;
    }

    .slide__content,
    .slide__content--right {
        padding: 16px 16px 64px;
    }

    .slide__title {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }

    .slide__desc {
        display: none;
    }

    .slideshow-controls {
        bottom: 8px;
        padding: 6px 10px;
    }
}

@media (width < 750px) {
    .hero-slideshow {
        height: auto;
        min-height: 0;
        aspect-ratio: 2 / 3;
    }
}

/* Discover Slider */
.discover-slider {
    position: relative;
    width: 100%;
}

.discover-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    touch-action: pan-x pan-y pinch-zoom;
    padding-bottom: 20px;
    cursor: grab;
    user-select: none;
    scroll-behavior: auto;
}

.discover-slider-track.is-dragging,
.drag-scroll-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
}

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

.discover-slider-track img,
.discover-slider-track a {
    -webkit-user-drag: none;
    user-select: none;
}

.discover-slider-item {
    flex: 0 0 calc(25% - 15px);
    min-width: 250px;
}

.product-tabs-section .discover-slider-item {
    flex: 0 0 281.025px;
    width: 281.025px;
    min-width: 281.025px;
}

.product-tabs-section .discover-slider-item > .product-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.discover-slider-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(18px, 3vw, 40px);
    margin-top: 10px;
    padding: 0;
}

.discover-slider-progress {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 2px;
    background: #e0e0e0;
    position: relative;
}

.discover-slider-progress__bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #111;
    width: 25%; /* Initial width, updated via JS */
    transition: width 0.2s ease;
}

.discover-slider-nav {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.discover-slider-nav__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff linear-gradient(#111, #111) left center / 0% 100% no-repeat;
    background-origin: border-box;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.4s ease, border-color 0.4s ease,
        background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.discover-slider-nav__btn:not(:disabled):is(:hover, :focus-visible) {
    border-color: #111;
    color: #fff;
    background-size: 100% 100%;
}

.discover-slider-nav__btn:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .discover-slider-nav__btn { transition: none; }
}

@media (max-width: 1024px) {
    .discover-slider-item {
        flex: 0 0 calc(33.333% - 13.333px);
    }

}

@media (max-width: 768px) {
    .discover-slider-item {
        flex: 0 0 calc(50% - 5px);
    }

}

@media (max-width: 480px) {
    .discover-slider-item {
        flex: 0 0 85%;
    }
}

.scrolling-cards__controls {
    display: none;
}

@container scrolling-cards (max-width: 1024px) {
    .scrolling-cards__grid[data-horizontal-slider-track] {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-inline: contain;
        touch-action: pan-x pan-y pinch-zoom;
        padding-bottom: 20px;
        cursor: grab;
        user-select: none;
        scroll-behavior: auto;
    }

    .scrolling-cards__grid[data-horizontal-slider-track]::-webkit-scrollbar {
        display: none;
    }

    .scrolling-cards__grid .scrolling-cards__card {
        flex: 0 0 calc(33.333% - 13.333px);
        min-width: 250px;
        width: auto;
        padding-top: 0;
    }

    .scrolling-cards__controls {
        display: flex;
    }

}

@media (max-width: 768px) {
    .scrolling-cards__grid .scrolling-cards__card {
        flex-basis: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .scrolling-cards__grid .scrolling-cards__card {
        flex-basis: 85%;
        min-width: min(280px, 85vw);
    }
}

@media (max-width: 768px) {
    .discover-slider-track {
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 20px;
    }

}

@media (min-width: 1025px) {
    .product-tabs-section .discover-slider .discover-slider-progress {
        flex: 0 1 200px;
        width: 100%;
        max-width: 200px;
    }

    .product-tabs-section .discover-slider .discover-slider-nav {
        margin-left: auto;
    }
}

.product-tabs-section .discover-slider-track {
    align-items: flex-start;
    padding-bottom: 4px;
}

.product-tabs-section .discover-slider-controls { margin-top: 0; }
.product-tabs-section .discover-slider-nav__btn { width: 32px; height: 32px; }
