/* Premium home opening area and curated SELAKAY product carousel. */

.home-shell {
    padding-top: 1.25rem;
}

.home-reassurance {
    display: none !important;
}

.home-feature-slider,
.home-hero.home-feature-slider {
    position: relative;
    width: 100%;
    min-height: clamp(590px, 52vw, 680px);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, .2);
    border-radius: 38px;
    color: #2f1a0d;
    background:
        radial-gradient(circle at 7% 6%, rgba(249, 115, 22, .24), transparent 30%),
        radial-gradient(circle at 48% 105%, rgba(251, 146, 60, .18), transparent 36%),
        linear-gradient(138deg, #fffdfb 0%, #fff7ed 52%, #ffedd5 100%);
    box-shadow: 0 34px 90px -52px rgba(154, 52, 18, .38);
    isolation: isolate;
    touch-action: pan-y pinch-zoom;
}

.home-feature-slider::before,
.home-feature-slider::after {
    content: '';
    position: absolute;
    z-index: 0;
    border-radius: 999px;
    pointer-events: none;
}

.home-feature-slider::before {
    top: -160px;
    left: 33%;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(249, 115, 22, .12);
    box-shadow: 0 0 0 72px rgba(249, 115, 22, .035), 0 0 0 144px rgba(249, 115, 22, .02);
}

.home-feature-slider::after {
    right: -80px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    background: rgba(249, 115, 22, .14);
    filter: blur(2px);
}

.home-feature-track {
    position: absolute;
    z-index: 1;
    inset: 0;
    min-width: 0;
}

.home-feature-slide {
    position: absolute;
    inset: 0;
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .55s ease, transform .62s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .62s;
}

.home-feature-slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.home-feature-media {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin: 2.4rem 2.4rem 6.9rem .8rem;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, .2);
    border-radius: 32px;
    background:
        radial-gradient(circle at 74% 18%, rgba(249, 115, 22, .12), transparent 26%),
        linear-gradient(145deg, #fff 0%, #fffaf5 64%, #f8efe5 100%);
    box-shadow: 0 28px 70px -38px rgba(0, 0, 0, .72), inset 0 0 0 1px rgba(255, 255, 255, .82);
}

.home-feature-media::before {
    content: '';
    position: absolute;
    z-index: 0;
    right: 7%;
    bottom: 8%;
    left: 7%;
    height: 16%;
    border-radius: 50%;
    background: rgba(42, 24, 12, .15);
    filter: blur(24px);
    transform: scaleX(.76);
}

.home-feature-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: clamp(1.25rem, 2.6vw, 2.4rem);
    object-fit: contain;
    object-position: center;
    filter: saturate(1.02) contrast(1.01);
    transform: scale(.96) translateY(8px);
    transition: transform 7.5s cubic-bezier(.2, .75, .2, 1), filter .4s ease;
}

.home-feature-slide.is-active .home-feature-media img {
    transform: scale(1) translateY(0);
}

.home-feature-shade {
    position: absolute;
    z-index: 2;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .18), transparent 26%),
        linear-gradient(0deg, rgba(26, 18, 12, .06), transparent 34%);
    pointer-events: none;
}

.home-feature-media-label {
    position: absolute;
    z-index: 3;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .48rem .72rem;
    border: 1px solid rgba(28, 19, 12, .1);
    border-radius: 999px;
    color: #594536;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 10px 25px -18px rgba(28, 19, 12, .55);
    backdrop-filter: blur(12px);
    font-size: .61rem;
    font-weight: 720;
}

.home-feature-media-label strong {
    color: #166534;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.home-feature-media-label strong::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: .5rem;
    border-radius: 999px;
    background: var(--store-orange);
    vertical-align: middle;
}

.home-feature-slide-number {
    position: absolute;
    z-index: 3;
    right: 1.15rem;
    bottom: .9rem;
    color: rgba(42, 24, 12, .22);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -.08em;
    line-height: 1;
}

.home-feature-copy {
    position: relative;
    z-index: 3;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    padding: 4rem 2rem 7rem 4rem;
    color: #2f1a0d;
}

.home-feature-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    margin-bottom: .8rem;
    padding: .45rem .68rem;
    border: 1px solid rgba(249, 115, 22, .2);
    border-radius: 999px;
    color: #9a3412;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 10px 28px -22px rgba(154, 52, 18, .5);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.home-feature-category {
    display: flex;
    max-width: 100%;
    align-items: center;
    gap: .55rem;
    overflow: hidden;
    color: #c2410c;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-feature-category::before {
    content: '';
    width: 2rem;
    height: 2px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--store-orange), #16a34a);
}

.home-feature-copy h1 {
    max-width: 620px;
    margin-top: .85rem;
    color: #2b160a;
    font-size: clamp(3rem, 5.1vw, 5rem);
    font-weight: 820;
    letter-spacing: -.055em;
    line-height: .96;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.home-feature-description {
    display: -webkit-box;
    max-width: 570px;
    margin-top: 1.15rem;
    overflow: hidden;
    color: #6f4b38;
    font-size: .98rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-feature-meta {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin-top: 1.15rem;
}

.home-feature-meta span,
.home-feature-details li {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: .34rem;
    padding: .36rem .64rem;
    border: 1px solid rgba(249, 115, 22, .18);
    border-radius: 999px;
    color: #734123;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(10px);
    font-size: .65rem;
    font-weight: 720;
}

.home-feature-meta span svg {
    color: #4ade80;
}

.home-feature-details {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .55rem;
}

.home-feature-details li {
    min-height: 28px;
    color: #7c4525;
    background: rgba(249, 115, 22, .07);
}

.home-feature-actions {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.3rem;
}

.home-feature-primary,
.home-feature-secondary {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .82rem 1.15rem;
    border-radius: 15px;
    font-size: .76rem;
    font-weight: 850;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.home-feature-primary-label-mobile {
    display: none;
}

.home-feature-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--store-orange), #ea580c);
    box-shadow: 0 16px 32px -18px rgba(249, 115, 22, .9);
}

.home-feature-primary:hover {
    box-shadow: 0 20px 38px -18px rgba(249, 115, 22, .95);
    transform: translateY(-2px);
}

.home-feature-secondary {
    border: 1px solid rgba(234, 88, 12, .28);
    color: #9a3412;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 30px -24px rgba(154, 52, 18, .48);
}

.home-feature-secondary:hover {
    border-color: var(--store-orange);
    background: #fff7ed;
    transform: translateY(-2px);
}

.home-feature-trust {
    display: flex;
    max-width: 610px;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-top: 1.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(249, 115, 22, .16);
}

.home-feature-trust span {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    color: #79523c;
    font-size: .64rem;
    font-weight: 720;
    white-space: nowrap;
}

.home-feature-trust svg {
    color: var(--store-orange);
}

.home-feature-controls {
    position: absolute;
    z-index: 5;
    right: 2.4rem;
    bottom: 1.7rem;
    left: 4rem;
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(100px, 1fr) auto auto;
    align-items: center;
    gap: .85rem;
}

.home-feature-arrows,
.home-feature-dots {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .36rem;
}

.home-feature-arrow {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(249, 115, 22, .2);
    border-radius: 13px;
    color: #c2410c;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.home-feature-arrow:hover {
    border-color: var(--store-orange);
    background: var(--store-orange);
    color: #fff;
    transform: translateY(-2px);
}

.home-feature-progress {
    position: relative;
    min-width: 0;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(194, 65, 12, .14);
}

.home-feature-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--store-orange), #fdba74);
    transition: width .35s ease;
}

.home-feature-dot {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(249, 115, 22, .18);
    border-radius: 999px;
    color: #9a684b;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
    font-size: .57rem;
    font-weight: 820;
    transition: width .2s ease, color .18s ease, border-color .18s ease, background-color .18s ease;
}

.home-feature-dot.is-active {
    width: 2.8rem;
    color: #fff;
    border-color: var(--store-orange);
    background: var(--store-orange);
}

.home-feature-count {
    display: inline-flex;
    align-items: baseline;
    gap: .22rem;
    color: #9a684b;
    font-size: .64rem;
    font-weight: 760;
}

.home-feature-count strong {
    color: #9a3412;
    font-size: .9rem;
}

.home-feature-slider + .home-section {
    margin-top: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 1080px) {
    .home-feature-slide {
        grid-template-columns: minmax(0, .96fr) minmax(380px, 1.04fr);
    }

    .home-feature-copy {
        padding-right: 1rem;
        padding-left: 2.5rem;
    }

    .home-feature-copy h1 {
        font-size: clamp(2.8rem, 5.4vw, 4.2rem);
    }

    .home-feature-controls {
        left: 2.5rem;
    }
}

@media (max-width: 820px) {
    .home-shell {
        padding-top: .8rem;
    }

    .home-feature-slider,
    .home-hero.home-feature-slider {
        height: clamp(700px, 118vw, 780px);
        min-height: 700px;
        border-radius: 30px;
    }

    .home-feature-slide {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(250px, 40%) minmax(0, 60%);
    }

    .home-feature-media {
        grid-column: 1;
        grid-row: 1;
        margin: 1rem 1rem 0;
        border-radius: 24px;
    }

    .home-feature-media img {
        padding: 1rem 2rem;
    }

    .home-feature-slide-number {
        font-size: 2.2rem;
    }

    .home-feature-copy {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        width: 100%;
        padding: 1.35rem 1.35rem 6.8rem;
    }

    .home-feature-eyebrow {
        margin-bottom: .55rem;
        font-size: .58rem;
    }

    .home-feature-category {
        font-size: .62rem;
    }

    .home-feature-copy h1 {
        max-width: 680px;
        margin-top: .55rem;
        font-size: clamp(2.25rem, 7.8vw, 3.5rem);
    }

    .home-feature-description {
        max-width: 680px;
        margin-top: .7rem;
        font-size: .83rem;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }

    .home-feature-meta {
        margin-top: .7rem;
    }

    .home-feature-actions {
        margin-top: .8rem;
    }

    .home-feature-trust {
        margin-top: .8rem;
        padding-top: .75rem;
    }

    .home-feature-controls {
        right: 1.35rem;
        bottom: 1.2rem;
        left: 1.35rem;
        grid-template-columns: auto minmax(70px, 1fr) auto;
    }

    .home-feature-count {
        display: none;
    }
}

@media (max-width: 767px) {
    .home-shell {
        overflow: hidden;
    }

    .home-feature-slider,
    .home-hero.home-feature-slider {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        height: 500px;
        min-height: 500px;
        padding: 0;
        border-radius: 24px;
        box-sizing: border-box;
    }

    .home-feature-track,
    .home-feature-slide {
        width: 100%;
        max-width: 100%;
    }

    .home-feature-slide {
        grid-template-rows: 315px minmax(0, 1fr);
        overflow: hidden;
    }

    .home-feature-media {
        margin: .7rem .7rem 0;
        border-radius: 19px;
    }

    .home-feature-media img {
        padding: .65rem .85rem;
    }

    .home-feature-media-label {
        display: none;
    }

    .home-feature-slide-number {
        top: .75rem;
        right: .75rem;
        bottom: auto;
        display: grid;
        width: 2.35rem;
        height: 2.35rem;
        place-items: center;
        border: 1px solid rgba(249, 115, 22, .28);
        border-radius: 999px;
        color: #c2410c;
        background: rgba(255, 255, 255, .9);
        box-shadow: 0 10px 24px -14px rgba(154, 52, 18, .5);
        backdrop-filter: blur(10px);
        font-size: .72rem;
        letter-spacing: 0;
    }

    .home-feature-copy {
        display: flex;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        justify-content: center;
        padding: 1rem;
        overflow: hidden;
    }

    .home-feature-eyebrow,
    .home-feature-category,
    .home-feature-description,
    .home-feature-meta,
    .home-feature-details,
    .home-feature-trust {
        display: none;
    }

    .home-feature-copy h1 {
        display: -webkit-box;
        max-width: 100%;
        margin-top: 0;
        overflow: hidden;
        font-size: clamp(1.9rem, 9vw, 2.55rem);
        line-height: .98;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        text-align: center;
    }

    .home-feature-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .45rem;
        width: 100%;
        margin-top: 1rem;
    }

    .home-feature-primary,
    .home-feature-secondary {
        width: 100%;
        min-height: 42px;
        padding: .58rem .45rem;
        font-size: .63rem;
        line-height: 1.15;
    }

    .home-feature-primary-label {
        display: none;
    }

    .home-feature-primary-label-mobile {
        display: inline;
    }

    .home-feature-controls {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-feature-slide,
    .home-feature-media img,
    .home-feature-primary,
    .home-feature-secondary,
    .home-feature-arrow,
    .home-feature-dot,
    .home-feature-progress span {
        transition: none !important;
        transform: none !important;
    }
}
