/*
 * Store homepage — modern e-commerce layout
 * Uses customer design tokens from theme.css (--cs-*)
 */

.home-page {
    overflow-x: clip;
    --home-banner-hero-ratio: 1600 / 600;
    --home-banner-promo-top-ratio: 1320 / 578;
    --home-banner-promo-mid-ratio: 1320 / 536;
    --home-banner-bottom-ratio: 1320 / 378;
}

/* ---------- Hero (slot-aligned aspect) ---------- */
.home-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    background: var(--cs-navy);
    color: #fff;
    overflow: hidden;
}

.home-hero__stage {
    position: relative;
    z-index: 0;
    width: 100%;
    aspect-ratio: var(--home-banner-hero-ratio);
    background: #0b1220;
}

.home-hero__carousel,
.home-hero__carousel .owl-stage-outer,
.home-hero__carousel .owl-stage,
.home-hero__carousel .owl-item,
.home-hero__carousel .item {
    height: 100%;
}

.home-hero__slide {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.home-hero__media,
.home-hero__fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__media {
    transform: scale(1);
    will-change: transform;
}

.owl-item.active .home-hero__media {
    animation: homeHeroKen 5.4s ease-out forwards;
}

.owl-item.active .home-hero__media--alt {
    animation-name: homeHeroKenAlt;
}

.home-hero__fallback {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.35), transparent 50%),
        linear-gradient(160deg, #1e293b, #0f172a);
}

.home-hero__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            to top,
            rgba(15, 23, 42, 0.82) 0%,
            rgba(15, 23, 42, 0.48) 36%,
            rgba(15, 23, 42, 0.16) 62%,
            transparent 82%
        );
}

.home-hero__caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 2rem) 0 4.1rem;
    pointer-events: none;
}

.home-hero__caption--static {
    position: absolute;
}

.home-hero__content {
    width: 100%;
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
    pointer-events: auto;
}

.owl-item.active .home-hero__content {
    animation: homeHeroIn 0.55s ease both;
}

.home-hero__brand {
    margin: 0 0 0.55rem;
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.55rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(15, 23, 42, 0.35);
}

.home-hero__title {
    margin: 0 0 0.55rem;
    color: #fff;
    font-size: clamp(1.55rem, 4.2vw, 2.45rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(15, 23, 42, 0.4);
}

.home-hero__lead {
    margin: 0 auto 1rem;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    line-height: 1.7;
    text-shadow: 0 1px 10px rgba(15, 23, 42, 0.35);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.home-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10.5rem;
    padding: 0.8rem 1.45rem;
    border-radius: 999px;
    background: #fff;
    color: #0f172a !important;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.home-hero__cta:hover,
.home-hero__cta:focus-visible {
    background: var(--cs-accent);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.4);
    outline: none;
}

.home-hero__ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10.5rem;
    padding: 0.76rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-hero__ghost:hover,
.home-hero__ghost:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
    color: #fff !important;
    transform: translateY(-1px);
    outline: none;
}

.home-hero__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    height: 0.18rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.home-hero__progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: right center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), #fff);
}

.home-hero__progress-bar.is-running {
    animation: homeHeroProgress var(--hero-autoplay, 5s) linear forwards;
}

.home-hero__progress-bar.is-paused {
    animation-play-state: paused;
}

.home-hero__carousel .owl-dots,
#slideshow.home-hero__carousel .owl-dots {
    position: absolute !important;
    left: clamp(0.85rem, 2.5vw, 1.4rem) !important;
    right: auto !important;
    inset-inline: auto !important;
    bottom: 0.85rem !important;
    z-index: 6;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.15rem;
    width: auto !important;
    margin: 0 !important;
    padding: 0.28rem 0.45rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(8px);
    transform: none !important;
    text-align: start !important;
    pointer-events: auto;
}

.home-hero__carousel .owl-dots .owl-dot,
#slideshow.home-hero__carousel .owl-dots .owl-dot {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem !important;
    min-height: 2.75rem !important;
    margin: 0 !important;
    padding: 0.65rem !important;
    border: 0 !important;
    background: transparent !important;
    line-height: 0;
    touch-action: manipulation;
}

.home-hero__carousel .owl-dots .owl-dot span,
#slideshow.home-hero__carousel .owl-dots .owl-dot span {
    width: 0.5rem !important;
    height: 0.5rem !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    transition: width 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.home-hero__carousel .owl-dots .owl-dot.active span,
.home-hero__carousel .owl-dots .owl-dot:hover span,
#slideshow.home-hero__carousel .owl-dots .owl-dot.active span,
#slideshow.home-hero__carousel .owl-dots .owl-dot:hover span {
    width: 1.25rem !important;
    background: #fff !important;
}

.home-hero__carousel .owl-dots .owl-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 999px;
}

.home-hero__carousel .owl-nav {
    display: none !important;
    margin: 0;
    height: 0;
}

.home-hero__carousel .owl-nav button {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 2.55rem !important;
    height: 2.55rem !important;
    margin: 0 !important;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 50% !important;
    background: rgba(15, 23, 42, 0.42) !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-hero__carousel .owl-nav button:hover,
.home-hero__carousel .owl-nav button:focus-visible {
    background: var(--cs-accent) !important;
    border-color: var(--cs-accent) !important;
    outline: none;
}

.home-hero__carousel .owl-nav .owl-prev {
    right: clamp(0.75rem, 2vw, 1.5rem);
    left: auto;
}

.home-hero__carousel .owl-nav .owl-next {
    left: clamp(0.75rem, 2vw, 1.5rem);
    right: auto;
}

.home-hero__carousel .owl-nav button span {
    font-size: 1.35rem;
    line-height: 1;
}

@keyframes homeHeroIn {
    from {
        opacity: 0;
        transform: translateY(0.65rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes homeHeroKen {
    from {
        transform: scale(1) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.03) translate3d(-0.4%, 0.15%, 0);
    }
}

@keyframes homeHeroKenAlt {
    from {
        transform: scale(1) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.03) translate3d(0.4%, -0.12%, 0);
    }
}

@keyframes homeHeroProgress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .owl-item.active .home-hero__media,
    .owl-item.active .home-hero__media--alt,
    .owl-item.active .home-hero__content,
    .home-hero__progress-bar.is-running {
        animation: none !important;
    }

    .home-hero__progress-bar {
        transform: scaleX(1);
        opacity: 0.55;
    }
}

/* ---------- Trust ---------- */
.home-trust {
    background: #fff;
    border-bottom: 1px solid var(--cs-border);
}

.home-trust__list {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.home-trust__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.25rem;
    flex: 0 1 auto;
    max-width: 17.5rem;
}

.home-trust__list i {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cs-accent-light);
    color: var(--cs-accent-dark);
    flex-shrink: 0;
}

.home-trust__list strong {
    display: block;
    font-size: 0.88rem;
    color: var(--cs-text-main);
    line-height: 1.35;
    word-break: break-word;
}

.home-trust__list span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--cs-text-muted);
    line-height: 1.45;
    word-break: break-word;
}

/* ---------- Promos / banners ---------- */
.home-promos {
    padding-block: 1.5rem 0.85rem;
}

.home-promos--mid {
    margin-block: 0.35rem 0.5rem;
    padding-block: 1.6rem 1.35rem;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.035), transparent 70%),
        #f8fafc;
    border-block: 1px solid rgba(15, 23, 42, 0.06);
}

.home-promos__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.home-promos__head h2 {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 900;
    color: var(--cs-navy);
}

.home-promos__head p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--cs-text-muted);
}

.home-promos__grid {
    display: grid;
    gap: 1rem;
}

.home-promos__grid--1 { grid-template-columns: 1fr; }
.home-promos__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.home-promos__grid--mosaic {
    grid-template-columns: 1.45fr 1fr;
    align-items: start;
}

.home-promo {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 1.15rem;
    background: #0f172a;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none !important;
    min-height: 0;
}

.home-promos__grid--mosaic .home-promo {
    height: auto;
    min-height: 0;
}

.home-promo:hover,
.home-promo:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
    outline: none;
}

.home-promo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--home-banner-promo-top-ratio);
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.35s ease;
}

.home-promos__grid--mosaic .home-promo img {
    height: auto;
    min-height: 0;
    aspect-ratio: var(--home-banner-promo-top-ratio);
}

.home-promo:hover img,
.home-promo:focus-visible img {
    transform: scale(1.02);
    filter: brightness(0.95);
}

.home-promo--mid img {
    aspect-ratio: var(--home-banner-promo-mid-ratio);
}

.home-promo__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.35rem 1.05rem 0.95rem;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.82));
    color: #fff;
}

.home-promo__caption--mid {
    padding-top: 1.55rem;
}

.home-promo__copy {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
    max-width: 78%;
}

.home-promo__eyebrow {
    display: inline-flex;
    align-self: start;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
}

.home-promo__title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.4;
}

.home-promo__go {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-promo:hover .home-promo__go,
.home-promo:focus-visible .home-promo__go {
    background: var(--cs-accent);
    border-color: var(--cs-accent);
    transform: translateX(-2px);
}

.home-banner {
    padding-block: 0.85rem 1.55rem;
}

.home-banner--spotlight .home-banner__link {
    position: relative;
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    align-items: stretch;
    overflow: hidden;
    min-height: 0;
    border-radius: 1.35rem;
    background: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    text-decoration: none !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.home-banner--spotlight .home-banner__link:hover,
.home-banner--spotlight .home-banner__link:focus-visible {
    transform: translateY(-3px);
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(249, 115, 22, 0.22) inset;
    outline: none;
}

.home-banner__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: var(--home-banner-bottom-ratio);
    min-height: 0;
    overflow: hidden;
}

.home-banner__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transition: transform 0.55s ease, filter 0.35s ease;
}

.home-banner--spotlight .home-banner__link:hover .home-banner__media img,
.home-banner--spotlight .home-banner__link:focus-visible .home-banner__media img {
    transform: scale(1.02);
    filter: brightness(0.95) saturate(1.03);
}

.home-banner__veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            to left,
            rgba(15, 23, 42, 0.78) 0%,
            rgba(15, 23, 42, 0.28) 48%,
            transparent 78%
        );
}

.home-banner__glow {
    position: absolute;
    inset-inline-end: -12%;
    inset-block: -20% auto;
    width: 42%;
    height: 140%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 68%);
    opacity: 0.85;
}

.home-banner__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    padding: 1.35rem 1.3rem 1.35rem 1.15rem;
    background:
        linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
    color: #fff;
}

.home-banner__chip {
    display: inline-flex;
    align-self: start;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.95);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.28);
}

.home-banner__title {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-weight: 900;
    line-height: 1.35;
    color: #fff;
    max-width: 18rem;
}

.home-banner__text {
    margin: 0;
    max-width: 18rem;
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(248, 250, 252, 0.78);
}

.home-banner__go {
    display: inline-flex;
    align-items: center;
    align-self: start;
    gap: 0.4rem;
    margin-top: 0.35rem;
    padding: 0.58rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-banner--spotlight .home-banner__link:hover .home-banner__go,
.home-banner--spotlight .home-banner__link:focus-visible .home-banner__go {
    background: var(--cs-accent);
    color: #fff;
    transform: translateX(-2px);
}

/* ---------- Product rails ---------- */
.home-rail {
    padding-block: 1.35rem 0.5rem;
}

.home-rail--accent,
.home-rail--offers {
    margin-block: 0.5rem 0;
    padding: 1.25rem 1rem 0.75rem;
    border-radius: 1.1rem;
    background:
        linear-gradient(180deg, rgba(249, 115, 22, 0.08), transparent 55%),
        #fff;
    border: 1px solid rgba(249, 115, 22, 0.12);
}

.home-rail--offers {
    margin-block: 0.85rem 0.35rem;
    padding: 1.35rem 1.15rem 1.2rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(249, 115, 22, 0.16), transparent 46%),
        linear-gradient(165deg, #fff7ed 0%, #fff 58%);
    border: 1px solid rgba(249, 115, 22, 0.18);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.08);
}

.home-rail--popular {
    margin-block: 0.85rem 0.35rem;
    padding: 1.35rem 1.15rem 1.2rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(249, 115, 22, 0.1), transparent 48%),
        linear-gradient(165deg, #f8fafc 0%, #fff 55%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.home-rail__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.home-rail__head--popular,
.home-rail__head--offers {
    align-items: center;
    margin-bottom: 1.15rem;
}

.home-rail__intro {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.home-rail__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: var(--cs-navy);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.home-rail__chip i {
    color: var(--cs-accent);
}

.home-rail__chip--offer {
    background: linear-gradient(145deg, #ea580c, #f97316);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}

.home-rail__chip--offer i {
    color: #fff;
}

.home-rail__head h2 {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 900;
    color: var(--cs-navy);
}

.home-rail__head p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--cs-text-muted);
}

.home-rail__link {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--cs-accent-dark) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.home-rail__link:hover {
    color: var(--cs-navy) !important;
}

.home-rail__link--btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--cs-navy) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-rail__link--btn:hover,
.home-rail__link--btn:focus-visible {
    background: var(--cs-accent);
    border-color: var(--cs-accent);
    color: #fff !important;
    transform: translateY(-1px);
    outline: none;
}

.home-rail__link--offer {
    border-color: rgba(249, 115, 22, 0.28);
    color: var(--cs-accent-dark) !important;
}

.home-rail__link--offer:hover,
.home-rail__link--offer:focus-visible {
    background: var(--cs-navy);
    border-color: var(--cs-navy);
    color: #fff !important;
}

.home-rail__track {
    min-width: 0;
    position: relative;
}

.home-rail__track--popular,
.home-rail__track--offers {
    padding-inline: 0.15rem;
}

.home-rail .owl-nav button {
    width: 2.2rem !important;
    height: 2.2rem !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid var(--cs-border) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
    color: var(--cs-navy) !important;
}

.home-rail .owl-nav button:hover {
    background: var(--cs-accent) !important;
    border-color: var(--cs-accent) !important;
    color: #fff !important;
}

.home-rail--popular .owl-nav,
.home-rail--offers .owl-nav {
    margin: 0;
}

.home-rail--popular .owl-nav button,
.home-rail--offers .owl-nav button {
    position: absolute;
    top: 42%;
    z-index: 4;
    width: 2rem !important;
    height: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
    color: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0.88;
    /* Prevent RTL page direction from mirroring SVG chevrons */
    direction: ltr;
    unicode-bidi: isolate;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.home-rail--popular .owl-nav button .home-rail-nav-icon,
.home-rail--offers .owl-nav button .home-rail-nav-icon {
    width: 0.78rem;
    height: 0.78rem;
    display: block;
    direction: ltr;
    transform: none;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-rail--popular .owl-nav button:hover,
.home-rail--popular .owl-nav button:focus-visible,
.home-rail--offers .owl-nav button:hover,
.home-rail--offers .owl-nav button:focus-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12) !important;
    color: var(--cs-navy) !important;
}

.home-rail--offers .owl-nav button:hover,
.home-rail--offers .owl-nav button:focus-visible {
    color: var(--cs-accent) !important;
    border-color: rgba(249, 115, 22, 0.28) !important;
}

.home-rail--popular .owl-nav .owl-prev,
.home-rail--offers .owl-nav .owl-prev {
    right: 0.15rem;
    left: auto;
}

.home-rail--popular .owl-nav .owl-next,
.home-rail--offers .owl-nav .owl-next {
    left: 0.15rem;
    right: auto;
}

.home-rail--popular .owl-nav button.disabled,
.home-rail--offers .owl-nav button.disabled {
    opacity: 0.28;
    pointer-events: none;
    box-shadow: none !important;
}

.home-rail--popular .owl-dots,
.home-rail--offers .owl-dots {
    margin-top: 0.85rem !important;
    text-align: center;
}

.home-rail--popular .owl-dot,
.home-rail--offers .owl-dot,
.home-brands .owl-dot {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem !important;
    min-height: 2.75rem !important;
    margin: 0 !important;
    padding: 0.65rem !important;
    border: 0 !important;
    background: transparent !important;
    touch-action: manipulation;
}

.home-rail--popular .owl-dot span,
.home-rail--offers .owl-dot span {
    width: 0.45rem !important;
    height: 0.45rem !important;
    margin: 0 !important;
    background: rgba(15, 23, 42, 0.18) !important;
}

.home-rail--popular .owl-dot.active span {
    width: 1.15rem !important;
    border-radius: 999px !important;
    background: var(--cs-navy) !important;
}

.home-rail--offers .owl-dot.active span {
    width: 1.15rem !important;
    border-radius: 999px !important;
    background: var(--cs-accent) !important;
}

/* ---------- Product card ---------- */
.home-product {
    background: #fff;
    border: 1px solid var(--cs-border);
    border-radius: 0.95rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-product--popular {
    border-radius: 1.05rem;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.home-product--offer {
    border-radius: 1.05rem;
    border-color: rgba(249, 115, 22, 0.16);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.06);
}

.home-product:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.28);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.home-product--popular:hover {
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.home-product--offer:hover {
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.14);
}

.home-product__media {
    position: relative;
    background:
        linear-gradient(180deg, #f8fafc, #eef2f7);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.home-product__image-link {
    display: block;
    height: 100%;
}

.home-product__image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-product:hover .home-product__image-link img {
    transform: scale(1.05);
}

.home-product__rank {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 3;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
    color: #fff;
    background: var(--cs-navy);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
}

.home-product__rank--1 {
    background: linear-gradient(145deg, #f59e0b, #ea580c);
}

.home-product__rank--2 {
    background: linear-gradient(145deg, #64748b, #334155);
}

.home-product__rank--3 {
    background: linear-gradient(145deg, #b45309, #92400e);
}

.home-product__actions {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.home-product__fav,
.home-product__compare {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--cs-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.home-product__fav:hover,
.home-product__fav.is-active,
.home-product__compare:hover,
.home-product__compare.is-active {
    color: var(--cs-red);
    transform: scale(1.06);
}

.home-product__fav.is-busy,
.home-product__compare.is-busy {
    opacity: 0.65;
    pointer-events: none;
}

.home-product__badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cs-accent-dark, #ea580c), var(--cs-accent, #f97316));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    direction: rtl;
    unicode-bidi: isolate;
    text-align: right;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 6px 14px var(--cs-accent-glow, rgba(249, 115, 22, 0.22));
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.home-product--popular .home-product__badge {
    top: auto;
    bottom: 0.65rem;
    right: 0.65rem;
}

.home-product__badge--offer {
    background: linear-gradient(145deg, var(--cs-accent-dark, #ea580c), var(--cs-accent, #f97316));
    color: #fff;
    box-shadow: 0 6px 14px var(--cs-accent-glow, rgba(249, 115, 22, 0.28));
}

.home-product__badge--soft {
    background: var(--cs-navy);
    color: #fff;
    box-shadow: none;
}

.home-product--offer .home-product__badge {
    top: 0.65rem;
    right: 0.65rem;
}

.home-product__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.8rem 0.85rem 0.95rem;
    text-decoration: none !important;
    color: inherit;
    flex: 1;
}

.home-product--popular .home-product__body,
.home-product--offer .home-product__body {
    padding: 0.85rem 0.9rem 1rem;
    gap: 0.4rem;
}

.home-product__name {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--cs-text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.home-product__colors {
    display: flex;
    gap: 0.28rem;
}

.home-product__colors span {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.home-product__price {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.home-product__old {
    font-size: 0.72rem;
    color: var(--cs-text-light);
    text-decoration: line-through;
}

.home-product__price strong {
    font-size: 0.95rem;
    color: var(--cs-navy);
}

.home-product__price small {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--cs-text-muted);
}

.home-product__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.15rem;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--cs-accent-dark);
    opacity: 0.88;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.home-product--popular:hover .home-product__cta {
    color: var(--cs-navy);
    opacity: 1;
    transform: translateX(-2px);
}

.home-product__cta--offer {
    color: #c2410c;
}

.home-product--offer:hover .home-product__cta--offer {
    color: var(--cs-accent-dark);
    opacity: 1;
    transform: translateX(-2px);
}

.home-product--offer .home-product__price strong {
    color: #9a3412;
}

/* ---------- Brands ---------- */
.home-brands {
    padding-block: 1.75rem 2.25rem;
    margin-top: 0.85rem;
    background:
        radial-gradient(90% 70% at 50% 0%, rgba(15, 23, 42, 0.05), transparent 60%),
        linear-gradient(180deg, #f8fafc, #fff 55%);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.home-rail__head--brands {
    align-items: center;
    margin-bottom: 1.2rem;
}

.home-rail__chip--brands {
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.home-rail__chip--brands i {
    color: #fbbf24;
}

.home-brands__track {
    position: relative;
    min-width: 0;
    padding-inline: 0.15rem;
}

.home-brands .owl-nav {
    margin: 0;
}

.home-brands .owl-nav button {
    position: absolute;
    top: 42%;
    z-index: 4;
    width: 2rem !important;
    height: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
    color: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0.88;
    direction: ltr;
    unicode-bidi: isolate;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.home-brands .owl-nav button .home-rail-nav-icon {
    width: 0.78rem;
    height: 0.78rem;
    display: block;
    direction: ltr;
    transform: none;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-brands .owl-nav button:hover,
.home-brands .owl-nav button:focus-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12) !important;
    color: var(--cs-navy) !important;
}

.home-brands .owl-nav .owl-prev {
    right: 0.15rem;
    left: auto;
}

.home-brands .owl-nav .owl-next {
    left: 0.15rem;
    right: auto;
}

.home-brands .owl-nav button.disabled {
    opacity: 0.28;
    pointer-events: none;
    box-shadow: none !important;
}

.home-brands .owl-dots {
    margin-top: 0.95rem !important;
    text-align: center;
}

.home-brands .owl-dot span {
    width: 0.45rem !important;
    height: 0.45rem !important;
    margin: 0 !important;
    background: rgba(15, 23, 42, 0.16) !important;
}

.home-brands .owl-dot.active span {
    width: 1.15rem !important;
    border-radius: 999px !important;
    background: var(--cs-navy) !important;
}

.home-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 6.4rem;
    padding: 1rem 0.85rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.home-brand:hover,
.home-brand:focus-visible {
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
    outline: none;
}

.home-brand__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.4rem;
}

.home-brand img {
    max-height: 3rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(0.2);
    opacity: 0.88;
    transition: filter 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.home-brand:hover img,
.home-brand:focus-visible img {
    filter: none;
    opacity: 1;
    transform: scale(1.04);
}

/* ---------- Motion ---------- */
.home-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.home-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.home-toast-host {
    z-index: 1080;
    left: 0;
    right: auto;
    top: 3.5rem;
    width: auto;
    max-width: min(26rem, 90vw);
    pointer-events: none;
}

.home-toast-host .toast {
    pointer-events: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .home-hero__veil {
        background:
            linear-gradient(
                to top,
                rgba(15, 23, 42, 0.86) 0%,
                rgba(15, 23, 42, 0.45) 45%,
                transparent 75%
            );
    }

    .home-hero__content {
        margin-inline: auto;
        max-width: 100%;
        text-align: center;
    }

    .home-hero__title {
        font-size: clamp(1.35rem, 5.5vw, 1.9rem);
    }

    .home-hero__actions {
        justify-content: center;
    }

    .home-hero__cta,
    .home-hero__ghost {
        min-width: 9.5rem;
        padding-inline: 1.15rem;
    }

    .home-hero__carousel .owl-nav button {
        width: 2.2rem !important;
        height: 2.2rem !important;
        font-size: 0.85rem !important;
    }

    /* Keep three compact chips centered until tablet-portrait. */
    .home-trust__list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 0.55rem;
        padding: 0.85rem 0;
    }

    .home-trust__list li {
        flex: 0 1 10.5rem;
        max-width: 12rem;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        gap: 0.45rem;
        padding: 0.7rem 0.45rem;
        border-radius: 0.75rem;
        background: var(--cs-card-bg, #fff);
        border: 1px solid var(--cs-border, #e2e8f0);
        min-width: 0;
        min-height: 100%;
    }

    .home-trust__list strong {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .home-trust__list span {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .home-trust__list strong,
    .home-trust__list span {
        text-align: center;
    }

    .home-promos__grid--mosaic {
        grid-template-columns: 1fr 1fr;
    }

    .home-banner--spotlight .home-banner__link {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-banner__media,
    .home-banner__media img {
        min-height: 0;
        aspect-ratio: var(--home-banner-bottom-ratio);
    }

    .home-banner__veil {
        background:
            linear-gradient(
                to top,
                rgba(15, 23, 42, 0.55) 0%,
                transparent 55%
            );
    }

    .home-banner__glow {
        inset-inline-end: auto;
        inset-inline-start: 20%;
        inset-block: auto -30%;
        width: 70%;
        height: 80%;
    }

    .home-banner__panel {
        padding: 1.1rem 1rem 1.15rem;
        gap: 0.45rem;
    }

    .home-banner__title,
    .home-banner__text {
        max-width: none;
    }

    .home-rail--accent,
    .home-rail--offers {
        border-radius: 0.85rem;
        padding-inline: 0.75rem;
    }

    .home-rail--popular,
    .home-rail--offers {
        padding: 1.15rem 0.85rem 1rem;
        border-radius: 1.05rem;
    }

    .home-rail--popular .owl-nav .owl-prev,
    .home-rail--offers .owl-nav .owl-prev {
        right: 0;
    }

    .home-rail--popular .owl-nav .owl-next,
    .home-rail--offers .owl-nav .owl-next {
        left: 0;
    }

    .home-brands .owl-nav .owl-prev {
        right: 0;
    }

    .home-brands .owl-nav .owl-next {
        left: 0;
    }
}

@media (max-width: 767.98px) {
    .home-trust__list {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: stretch;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-inline: 0.15rem;
    }

    .home-trust__list li {
        flex: 0 0 auto;
        width: min(9.75rem, 42vw);
        max-width: 9.75rem;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        padding: 0.65rem 0.4rem;
    }

    .home-trust__list strong,
    .home-trust__list span {
        text-align: center;
    }

    .home-promos__grid--2,
    .home-promos__grid--mosaic {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-promos__grid--mosaic .home-promo,
    .home-promos__grid--mosaic .home-promo img {
        min-height: 0;
    }

    .home-promo__eyebrow {
        font-size: 0.64rem;
    }

    .home-banner__panel {
        padding: 1rem 0.9rem 1.05rem;
    }

    .home-banner__title {
        font-size: 1.02rem;
    }

    .home-banner__text {
        font-size: 0.76rem;
        line-height: 1.65;
    }

    .home-banner__go {
        width: 100%;
        justify-content: center;
        margin-top: 0.25rem;
    }

    .home-rail__head--popular,
    .home-rail__head--offers,
    .home-rail__head--brands {
        flex-wrap: wrap;
        gap: 0.85rem;
    }

    .home-rail__link--btn {
        width: 100%;
        justify-content: center;
    }

    .home-rail--popular .owl-nav,
    .home-rail--offers .owl-nav,
    .home-brands .owl-nav {
        display: none;
    }

    .home-brand {
        min-height: 5.8rem;
        padding: 0.85rem 0.65rem;
    }
}

@media (max-width: 575.98px) {
    .home-hero__caption {
        padding-bottom: 2.8rem;
    }

    /* Mobile hero: CTA overlays clutter the slide; keep title/lead only */
    .home-hero__actions {
        display: none !important;
    }

    .home-hero__carousel .owl-nav {
        display: none;
    }

    .home-promos--mid {
        padding-block: 1.25rem 1.1rem;
    }

    .home-promo__caption {
        padding: 0.95rem 0.75rem 0.7rem;
        gap: 0.55rem;
    }

    .home-promo__copy {
        max-width: 72%;
    }

    .home-promo__title {
        font-size: 0.84rem;
    }

    .home-promo__go {
        padding: 0.32rem 0.6rem;
        font-size: 0.7rem;
    }

    .home-product__name {
        font-size: 0.8rem;
        min-height: 2.3em;
    }

    .home-product__price strong {
        font-size: 0.86rem;
    }

    .home-rail--popular,
    .home-rail--offers {
        margin-inline: 0;
        padding: 1rem 0.7rem 0.9rem;
    }

    .home-rail__chip {
        padding: 0.38rem 0.58rem;
        font-size: 0.68rem;
    }

    .home-product--popular .home-product__body,
    .home-product--offer .home-product__body {
        padding: 0.7rem 0.7rem 0.8rem;
    }

    .home-product__cta {
        font-size: 0.7rem;
    }

    .home-product__rank {
        width: 1.65rem;
        height: 1.65rem;
        font-size: 0.72rem;
    }

    .home-brands {
        padding-block: 1.35rem 1.75rem;
    }
}

@media (min-width: 1400px) {
    .home-hero__content {
        max-width: 46rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-reveal,
    .home-product,
    .home-promo,
    .home-promo img,
    .home-banner__link,
    .home-banner__media img,
    .home-product__image-link img,
    .home-hero__content,
    .home-hero__carousel .owl-nav button,
    .home-product__cta,
    .home-rail__link--btn,
    .home-banner__go,
    .home-brand {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
    }
}
