/* ============================================
   MYLENS HOMEPAGE — MODERN REDESIGN
   ============================================ */

/* ============================================
   HERO — Deep forest + glass + peach (2026 ref)
   ============================================ */
.ml-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Reference-adjacent forest stack */
    background: #0f1c18;
    --hero-forest-0: #0c1815;
    --hero-forest-1: #142822;
    --hero-forest-2: #1a2e26;
    --hero-forest-3: #234038;
}

.ml-hero--compact {
    min-height: clamp(520px, 72vh, 820px);
    padding-block: var(--ml-space-2xl) var(--ml-space-xl);
}

.ml-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ml-hero__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 70% at 92% 45%, rgb(var(--ml-accent-rgb) / 0.11) 0%, transparent 55%),
        radial-gradient(circle at 18% 88%, rgb(255 255 255 / 0.04) 0%, transparent 38%),
        radial-gradient(circle at 50% 0%, rgb(255 255 255 / 0.03) 0%, transparent 45%),
        linear-gradient(165deg, var(--hero-forest-0) 0%, var(--hero-forest-1) 28%, var(--hero-forest-2) 58%, var(--hero-forest-3) 100%);
}

/* Fine paper / noise grain */
.ml-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.028) 0.8px, transparent 0.8px);
    background-size: 28px 28px;
    z-index: 1;
    opacity: 0.9;
}

.ml-hero__content {
    position: relative;
    z-index: 2;
    max-width: min(640px, 92vw);
    padding: var(--ml-space-2xl) 0;
}

.ml-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ml-font-accent);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgb(255 255 255 / 0.88);
    background: rgb(255 255 255 / 0.07);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    padding: 11px 20px;
    border-radius: var(--ml-radius-full);
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid rgb(255 255 255 / 0.14);
    box-shadow: 0 8px 32px rgb(0 0 0 / 0.12);
}

.ml-hero__tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fcdfd5, var(--ml-accent));
    box-shadow: 0 0 12px rgb(var(--ml-accent-rgb) / 0.65);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.35); }
}

.ml-hero__title {
    font-family: var(--ml-font-heading);
    font-size: clamp(2.75rem, 6.5vw, 4.75rem);
    font-weight: 700;
    color: #fafcfb;
    line-height: 1.02;
    margin-bottom: var(--ml-space-lg);
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.ml-hero__title-accent {
    display: inline-block;
    background: linear-gradient(
        105deg,
        #fdeee8 0%,
        #f4c9b8 28%,
        var(--ml-accent) 72%,
        #c45d42 100%
    );
    background-size: 115% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroGradientShift 7s ease-in-out infinite;
}

@keyframes heroGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ml-hero__desc {
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    color: rgb(255 255 255 / 0.62);
    line-height: 1.75;
    margin-bottom: var(--ml-space-2xl);
    max-width: 34rem;
    font-weight: 400;
}

.ml-hero__cta {
    display: flex;
    gap: 14px;
    margin-bottom: var(--ml-space-2xl);
    flex-wrap: wrap;
}

.mylens-homepage-wrap .ml-hero .ml-btn-primary {
    background: linear-gradient(180deg, #e88972 0%, var(--ml-accent) 38%, var(--ml-accent-hover) 100%);
    color: #fff;
    border: 1px solid rgb(255 255 255 / 0.14);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.18) inset,
        0 12px 40px rgb(var(--ml-accent-rgb) / 0.42),
        0 4px 14px rgb(0 0 0 / 0.2);
    letter-spacing: 0.06em;
}

.mylens-homepage-wrap .ml-hero .ml-btn-primary:hover {
    color: #fff;
    background: linear-gradient(180deg, #ed9d89 0%, #e07a5f 40%, #c45d42 100%);
    box-shadow:
        0 1px 0 rgb(255 255 255 / 0.22) inset,
        0 16px 48px rgb(var(--ml-accent-rgb) / 0.5),
        0 6px 20px rgb(0 0 0 / 0.22);
    transform: translateY(-2px);
}

.mylens-homepage-wrap .ml-hero .ml-btn-outline {
    background: rgb(255 255 255 / 0.05);
    border-color: rgb(255 255 255 / 0.32);
    color: rgb(255 255 255 / 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    letter-spacing: 0.06em;
}

.mylens-homepage-wrap .ml-hero .ml-btn-outline:hover {
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    border-color: rgb(255 255 255 / 0.5);
}

.ml-hero__trust {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ml-hero__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ml-font-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgb(255 255 255 / 0.72);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.06);
    border: 1px solid rgb(255 255 255 / 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.ml-hero__trust-item:hover {
    background: rgb(255 255 255 / 0.09);
    border-color: rgb(var(--ml-accent-rgb) / 0.28);
}

.ml-hero__trust-item svg {
    stroke: rgb(252 223 213);
    opacity: 0.95;
    flex-shrink: 0;
}

/* ---------------------------------------------
   HERO RIGHT — concentric rings, glass lens, chips
   --------------------------------------------- */
.ml-hero__float {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.ml-hero__float--1 {
    width: min(640px, 90vw);
    height: min(640px, 90vw);
    top: 50%;
    right: max(-8vw, -100px);
    transform: translateY(-50%);
    border: 1px solid rgb(255 255 255 / 0.06);
    box-shadow:
        inset 0 0 0 1px rgb(255 255 255 / 0.04),
        inset 0 0 0 56px rgb(0 0 0 / 0.04),
        inset 0 0 0 112px rgb(255 255 255 / 0.02),
        inset 0 0 0 168px rgb(0 0 0 / 0.03);
    animation: heroFloat 28s ease-in-out infinite;
}

.ml-hero__float--2 {
    width: min(480px, 78vw);
    height: min(480px, 78vw);
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    background: radial-gradient(
        circle at 50% 50%,
        rgb(var(--ml-accent-rgb) / 0.14) 0%,
        rgb(var(--ml-accent-rgb) / 0.05) 32%,
        transparent 68%
    );
    filter: blur(10px);
    animation: heroPulseGlow 8s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(-50%) translate(0, 0) rotate(0deg); }
    33%      { transform: translateY(-50%) translate(8px, -6px) rotate(1.5deg); }
    66%      { transform: translateY(-50%) translate(-5px, 5px) rotate(-1deg); }
}

@keyframes heroPulseGlow {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.88; }
    50%      { transform: translateY(-50%) scale(1.04); opacity: 1; }
}

/* Glass disc + line eyeglasses (peach / cream on forest) */
.ml-hero::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: min(380px, 42vw);
    height: min(380px, 42vw);
    border-radius: 50%;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 90' fill='none' stroke='%23f4d4c4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='55' cy='45' r='34' fill='%23e07a5f' fill-opacity='0.11' stroke='%23e07a5f'/><circle cx='165' cy='45' r='34' fill='%23e07a5f' fill-opacity='0.11' stroke='%23e07a5f'/><path d='M89 45 Q110 32 131 45'/><path d='M21 47 L4 41' stroke='%23fcdfd5'/><path d='M199 47 L216 41' stroke='%23fcdfd5'/><circle cx='55' cy='45' r='14' fill='none' stroke='%23fdeee8' stroke-width='1' opacity='0.55'/><circle cx='165' cy='45' r='14' fill='none' stroke='%23fdeee8' stroke-width='1' opacity='0.55'/><path d='M40 28 Q60 18 75 25' stroke='%23ffffff' stroke-width='1.2' opacity='0.35'/><path d='M150 28 Q170 18 185 25' stroke='%23ffffff' stroke-width='1.2' opacity='0.35'/></svg>")
            center/70% no-repeat,
        radial-gradient(circle at 30% 22%, rgb(255 255 255 / 0.12) 0%, transparent 45%),
        radial-gradient(circle at 70% 75%, rgb(var(--ml-accent-rgb) / 0.1) 0%, transparent 50%),
        linear-gradient(145deg, rgb(255 255 255 / 0.09) 0%, rgb(10 30 26 / 0.35) 55%, rgb(224 122 95 / 0.08) 100%);
    border: 1px solid rgb(255 255 255 / 0.14);
    box-shadow:
        0 28px 80px rgb(0 0 0 / 0.35),
        0 0 0 1px rgb(255 255 255 / 0.06) inset,
        0 0 56px rgb(var(--ml-accent-rgb) / 0.12);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    z-index: 2;
    pointer-events: none;
    animation: heroGlassesFloat 8s ease-in-out infinite;
}

@keyframes heroGlassesFloat {
    0%, 100% { transform: translateY(-50%) translateY(0); }
    50%      { transform: translateY(-50%) translateY(-8px); }
}

.ml-hero::after {
    content: "AI Virtual Try-On";
    position: absolute;
    bottom: 11%;
    right: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px 14px 46px;
    background: rgb(255 255 255 / 0.09);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: 999px;
    font-family: var(--ml-font-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.95);
    box-shadow:
        0 14px 40px rgb(0 0 0 / 0.28),
        0 0 0 1px rgb(255 255 255 / 0.06) inset;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e07a5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/><circle cx='12' cy='12' r='3'/></svg>");
    background-repeat: no-repeat;
    background-position: 18px center;
    background-size: 18px 18px;
    z-index: 3;
    pointer-events: none;
    animation: heroBadgeFloat 9s ease-in-out infinite;
}

@keyframes heroBadgeFloat {
    0%, 100% { transform: translateY(0) rotate(-0.8deg); }
    50%      { transform: translateY(-7px) rotate(0.8deg); }
}

.ml-hero__content::after {
    content: "4.9 / 5  ·  25,000+ Happy Buyers";
    position: absolute;
    top: 8%;
    right: -480px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px 12px 42px;
    background: rgb(8 24 20 / 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 999px;
    font-family: var(--ml-font-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgb(255 255 255 / 0.94);
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e07a5f' stroke='%23f4c9b8' stroke-width='1.2' stroke-linejoin='round'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>");
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 16px 16px;
    box-shadow: 0 12px 36px rgb(0 0 0 / 0.35);
    z-index: 3;
    white-space: nowrap;
    pointer-events: none;
    animation: heroBadgeFloat 11s ease-in-out infinite reverse;
}

/* TranslatePress / Albanian: localized trust chip copy */
html[lang="sq"] .ml-hero::after {
    content: "Provë Virtuale me AI";
}

html[lang="sq"] .ml-hero__content::after {
    content: "4.9 / 5 · 25,000+ blerës të kënaqur" !important;
}

/* Note: `.ml-hero__content` already has `position: relative` from its base
   rule above, so the rating-chip ::after anchors correctly without needing
   to be redeclared. */

/* ============================================
   SECTION HEADERS — Modern editorial
   ============================================ */
.mylens-homepage-wrap .ml-section-header h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--ml-primary);
}

.mylens-homepage-wrap .ml-section-header h2::after {
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ml-accent), rgb(var(--ml-accent-rgb) / 0.35));
    margin: 16px auto 0;
}

.mylens-homepage-wrap .ml-section-header p {
    font-size: var(--ml-text-lg);
    color: var(--ml-text-light);
    max-width: 540px;
    line-height: 1.65;
}

.mylens-homepage-wrap .ml-section-header .ml-view-all {
    margin-top: var(--ml-space-lg);
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgb(var(--ml-accent-rgb) / 0.35);
    background: rgb(var(--ml-accent-rgb) / 0.06);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        gap 0.25s ease,
        box-shadow 0.25s ease;
}

.mylens-homepage-wrap .ml-section-header .ml-view-all:hover {
    background: rgb(var(--ml-accent-rgb) / 0.14);
    border-color: rgb(var(--ml-accent-rgb) / 0.55);
    box-shadow: 0 6px 22px rgb(var(--ml-accent-rgb) / 0.18);
}

/* Best Sellers deck: same pill treatment as other homepage “View all” links */
.mylens-homepage-wrap .ml-home-spotlight .ml-spotlight-deck .ml-view-all {
    margin-top: 0;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgb(var(--ml-accent-rgb) / 0.35);
    background: rgb(var(--ml-accent-rgb) / 0.06);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        gap 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.mylens-homepage-wrap .ml-home-spotlight .ml-spotlight-deck .ml-view-all:hover {
    background: rgb(var(--ml-accent-rgb) / 0.14);
    border-color: rgb(var(--ml-accent-rgb) / 0.55);
    box-shadow: 0 6px 22px rgb(var(--ml-accent-rgb) / 0.18);
}

/* Homepage product grids — equal-height cards (Best Sellers, New arrivals, etc.) */
.mylens-homepage-wrap .ml-product-grid > .ml-product-card {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.mylens-homepage-wrap .ml-product-grid > .ml-product-card .ml-product-card__image {
    flex-shrink: 0;
}

.mylens-homepage-wrap .ml-product-grid > .ml-product-card .ml-product-card__info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mylens-homepage-wrap .ml-product-grid > .ml-product-card .ml-product-card__price {
    margin-top: auto;
}

/* ============================================
   PRODUCT CARDS — Glass modern
   ============================================ */
.mylens-homepage-wrap .ml-product-card {
    border-radius: 18px;
    border: 1px solid rgba(20, 61, 56, 0.06);
    overflow: hidden;
    background: var(--ml-white);
    box-shadow: 0 4px 22px rgba(20, 61, 56, 0.04);
    transition:
        transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.35s ease;
}

.mylens-homepage-wrap .ml-product-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 26px 56px rgba(20, 61, 56, 0.09),
        0 4px 14px rgb(var(--ml-accent-rgb) / 0.12);
    border-color: rgb(var(--ml-accent-rgb) / 0.22);
}

/* Horizontal rails: no vertical lift (prevents scroll-axis glitches); shadow only */
.mylens-homepage-wrap .ml-product-track .ml-product-card:hover {
    transform: none;
    box-shadow:
        0 20px 44px rgb(var(--ml-primary-rgb) / 0.12),
        0 4px 14px rgb(var(--ml-accent-rgb) / 0.18);
    border-color: rgb(var(--ml-accent-rgb) / 0.28);
}

.mylens-homepage-wrap .ml-product-track .ml-product-card:hover .ml-product-card__media {
    transform: scale(1.05);
}

.mylens-homepage-wrap .ml-product-track .ml-product-card--dual-img:hover .ml-product-card__media {
    transform: none;
}

.mylens-homepage-wrap .ml-product-track .ml-product-card--dual-img:hover .ml-product-card__img--primary {
    transform: scale(1.05);
}

.mylens-homepage-wrap .ml-product-track .ml-product-card--dual-img:hover .ml-product-card__img--alt {
    opacity: 1;
    transform: scale(1.05);
}

.mylens-homepage-wrap .ml-product-card__image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    position: relative;
    overflow: hidden;
}

.mylens-homepage-wrap .ml-product-card__quickview {
    background: linear-gradient(transparent 0%, rgba(20, 61, 56, 0.85) 100%);
    backdrop-filter: blur(4px);
}

.mylens-homepage-wrap .ml-product-card__quickview a {
    font-size: 12px;
    letter-spacing: 1.5px;
}

.mylens-homepage-wrap .ml-product-card__info {
    padding: 16px 18px 18px;
}

.mylens-homepage-wrap .ml-product-card__brand {
    font-size: 10px;
    letter-spacing: 1.5px;
    opacity: 0.7;
}

.mylens-homepage-wrap .ml-product-card__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.35;
}

.mylens-homepage-wrap .ml-product-card__price {
    font-size: var(--ml-text-base);
    font-weight: 700;
}

/* Product Grid — breathable rhythm */
.mylens-homepage-wrap .ml-product-grid {
    gap: 22px;
}

/* ============================================
   VIRTUAL TRY-ON — Brand-aligned redesign
   ============================================ */
.ml-tryon {
    position: relative;
    overflow: hidden;
    background: transparent !important;
    padding: 0 !important;
}

/* Full-bleed teal background with subtle gradient */
.ml-tryon__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            165deg,
            var(--ml-primary-dark) 0%,
            var(--ml-primary) 40%,
            var(--ml-primary-light) 100%
        );
    z-index: 0;
}

/* Subtle dot-grid texture for depth */
.ml-tryon__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Warm accent glow — top-right corner */
.ml-tryon__bg::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgb(var(--ml-accent-rgb) / 0.10) 0%, transparent 65%);
    pointer-events: none;
}

.ml-tryon > .ml-container {
    position: relative;
    z-index: 1;
    padding-top: var(--ml-space-5xl);
    padding-bottom: var(--ml-space-5xl);
}

.ml-tryon__grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}

/* ---- Label chip ---- */
.ml-tryon__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ml-font-accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--ml-accent);
    margin-bottom: var(--ml-space-lg);
    padding: 7px 16px 7px 12px;
    border-radius: var(--ml-radius-full);
    background: rgb(var(--ml-accent-rgb) / 0.08);
    border: 1px solid rgb(var(--ml-accent-rgb) / 0.18);
}

.ml-tryon__label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ml-accent);
    box-shadow: 0 0 8px rgb(var(--ml-accent-rgb) / 0.6);
    animation: ml-tryon-pulse 2.5s ease-in-out infinite;
}

@keyframes ml-tryon-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.8); }
}

/* ---- Heading ---- */
.ml-tryon h2 {
    color: var(--ml-white) !important;
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    margin-bottom: var(--ml-space-md);
    letter-spacing: -0.035em;
    line-height: 1.15;
}

/* ---- Description ---- */
.ml-tryon__desc {
    color: rgb(255 255 255 / 0.6) !important;
    font-size: var(--ml-text-lg);
    line-height: 1.7;
    margin-bottom: var(--ml-space-2xl);
    max-width: 440px;
}

/* ---- Feature list ---- */
.ml-tryon__features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: var(--ml-space-2xl);
}

.ml-tryon__feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.3s ease;
}

.ml-tryon__feature:hover {
    transform: translateX(4px);
}

.ml-tryon__feature-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgb(var(--ml-accent-rgb) / 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(var(--ml-accent-rgb) / 0.15);
    color: var(--ml-accent);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.ml-tryon__feature:hover .ml-tryon__feature-icon {
    background: rgb(var(--ml-accent-rgb) / 0.18);
    border-color: rgb(var(--ml-accent-rgb) / 0.30);
}

.ml-tryon__feature-icon svg {
    width: 20px;
    height: 20px;
}

.ml-tryon__feature strong {
    display: block;
    color: var(--ml-white);
    font-family: var(--ml-font-accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.ml-tryon__feature span {
    color: rgb(255 255 255 / 0.42);
    font-size: 13px;
    line-height: 1.45;
}

/* ---- CTA buttons ---- */
.ml-tryon__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Primary CTA — terracotta gradient with glow */
.ml-btn-tryon-primary {
    background: linear-gradient(135deg, var(--ml-accent) 0%, var(--ml-accent-hover) 100%) !important;
    color: var(--ml-white) !important;
    border: none !important;
    box-shadow:
        0 4px 18px rgb(var(--ml-accent-rgb) / 0.35),
        0 0 0 0 rgb(var(--ml-accent-rgb) / 0);
    animation: ml-tryon-cta-glow 3s ease-in-out infinite;
}

.ml-btn-tryon-primary svg {
    flex-shrink: 0;
}

.ml-btn-tryon-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow:
        0 8px 28px rgb(var(--ml-accent-rgb) / 0.45),
        0 0 0 4px rgb(var(--ml-accent-rgb) / 0.12) !important;
    animation: none;
}

@keyframes ml-tryon-cta-glow {
    0%, 100% { box-shadow: 0 4px 18px rgb(var(--ml-accent-rgb) / 0.35), 0 0 0 0 rgb(var(--ml-accent-rgb) / 0); }
    50%      { box-shadow: 0 6px 24px rgb(var(--ml-accent-rgb) / 0.45), 0 0 0 6px rgb(var(--ml-accent-rgb) / 0.08); }
}

/* Outline CTA — teal-tinted border */
.ml-btn-tryon-outline {
    background: transparent !important;
    color: rgb(255 255 255 / 0.85) !important;
    border: 1.5px solid rgb(255 255 255 / 0.22) !important;
}

.ml-btn-tryon-outline:hover {
    background: rgb(255 255 255 / 0.08) !important;
    border-color: rgb(255 255 255 / 0.40) !important;
    color: var(--ml-white) !important;
    transform: translateY(-2px);
}

/* ---- Visual / image column ---- */
.ml-tryon__visual {
    position: relative;
}

.ml-tryon__image-wrap {
    position: relative;
    border-radius: 22px;
    overflow: visible !important;
}

/* Subtle accent ring behind image */
.ml-tryon__image-wrap::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 26px;
    background: linear-gradient(145deg, rgb(var(--ml-accent-rgb) / 0.25) 0%, transparent 55%, rgb(255 255 255 / 0.06) 100%);
    z-index: -1;
    pointer-events: none;
}

.ml-tryon__image-wrap > img {
    width: 100%;
    height: auto;
    border-radius: 22px;
    display: block;
    box-shadow:
        0 28px 70px rgba(0,0,0,0.35),
        0 0 0 1px rgb(255 255 255 / 0.06);
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.ml-tryon__image-wrap:hover > img {
    transform: scale(1.02);
}

/* ---- Floating glassmorphic stat cards ---- */
.ml-tryon__float-card {
    position: absolute !important;
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgb(var(--ml-primary-rgb) / 0.55);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 16px;
    box-shadow:
        0 12px 36px rgba(0,0,0,0.3),
        inset 0 1px 0 rgb(255 255 255 / 0.06);
    z-index: 10;
    animation: floatCard 5s ease-in-out infinite;
    white-space: nowrap;
    transition: transform 0.3s ease;
}

.ml-tryon__float-card:hover {
    transform: translateY(-4px) scale(1.03);
}

.ml-tryon__float-card strong {
    display: block;
    color: var(--ml-white);
    font-family: var(--ml-font-accent);
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.ml-tryon__float-card span {
    color: rgb(255 255 255 / 0.50);
    font-size: 11px;
    font-family: var(--ml-font-accent);
    display: block;
}

.ml-tryon__float-card--top {
    top: 24px;
    right: -24px;
    animation-delay: 0s;
}

.ml-tryon__float-card--bottom {
    bottom: 44px;
    left: -24px;
    animation-delay: 2.5s;
}

.ml-tryon__float-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgb(var(--ml-accent-rgb) / 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ml-tryon__float-stat {
    font-family: var(--ml-font-heading);
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--ml-accent), var(--ml-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ============================================
   PROMO BANNER — Glassmorphic
   ============================================ */
.ml-promo-banner {
    position: relative;
    padding: var(--ml-space-4xl) 0;
    overflow: hidden;
}

.ml-promo-banner__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgb(var(--ml-accent-rgb) / 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgb(var(--ml-accent-rgb) / 0.06) 0%, transparent 50%),
        linear-gradient(160deg, var(--ml-primary-dark) 0%, var(--ml-primary) 50%, var(--ml-primary-light) 100%);
    z-index: 0;
}

.ml-promo-banner__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 30px 30px;
}

.ml-promo-banner__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ml-promo-banner__badge {
    display: inline-block;
    font-family: var(--ml-font-accent);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--ml-white);
    background: linear-gradient(135deg, var(--ml-accent), var(--ml-accent-hover));
    padding: 8px 20px;
    border-radius: var(--ml-radius-full);
    margin-bottom: var(--ml-space-lg);
}

.ml-promo-banner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--ml-white);
    margin-bottom: var(--ml-space-sm);
    letter-spacing: -1px;
}

.ml-promo-banner p {
    font-size: var(--ml-text-base);
    color: rgba(255,255,255,0.55);
    margin-bottom: var(--ml-space-xl);
}

.ml-promo-banner .ml-btn {
    background: linear-gradient(135deg, var(--ml-accent), var(--ml-accent-hover));
    border: none;
    box-shadow: 0 4px 20px rgb(var(--ml-accent-rgb) / 0.3);
}

/* ============================================
   HOW IT WORKS — Premium step cards w/ arrow connectors
   ============================================
   HTML layout (in homepage template):
     .ml-steps
       ├─ .ml-step (01)
       ├─ .ml-step__connector  ← arrow svg
       ├─ .ml-step (02)
       ├─ .ml-step__connector  ← arrow svg
       └─ .ml-step (03)

   Grid uses `1fr auto 1fr auto 1fr` so the
   connector cells slot between the step cells
   automatically without changing the markup.
   ============================================ */

/* Section gets a subtle dotted gold backdrop pattern. */
.ml-how-it-works {
    position: relative;
    overflow: hidden;
}

.ml-how-it-works::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgb(var(--ml-primary-rgb) / 0.05) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.ml-how-it-works > .ml-container {
    position: relative;
    z-index: 1;
}

.ml-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    column-gap: 14px;
    row-gap: 24px;
    max-width: 1120px;
    margin: 32px auto 0;
}

.ml-step {
    position: relative;
    text-align: center;
    padding: 64px 28px 36px;
    background: var(--ml-white);
    border-radius: 22px;
    border: 1px solid rgba(20, 61, 56, 0.06);
    box-shadow: 0 4px 20px rgba(20, 61, 56, 0.035);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.35s ease;
    overflow: visible;
    z-index: 1;
}

/* Top accent bar reveals on hover. */
.ml-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ml-accent), transparent);
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ml-step:hover {
    transform: translateY(-8px);
    border-color: rgb(var(--ml-accent-rgb) / 0.35);
    box-shadow:
        0 18px 48px rgba(20, 61, 56, 0.06),
        0 4px 12px rgb(var(--ml-accent-rgb) / 0.10);
}

.ml-step:hover::before {
    opacity: 1;
}

/* The "01/02/03" number — circular badge floating above the card top edge. */
.ml-step__number {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ml-accent), var(--ml-accent-hover));
    color: var(--ml-white);
    font-family: var(--ml-font-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    box-shadow:
        0 6px 16px rgb(var(--ml-accent-rgb) / 0.35),
        0 0 0 6px var(--ml-white);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease;
    -webkit-text-fill-color: var(--ml-white);
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

.ml-step:hover .ml-step__number {
    transform: translateX(-50%) scale(1.08);
    box-shadow:
        0 10px 22px rgb(var(--ml-accent-rgb) / 0.45),
        0 0 0 6px var(--ml-white);
}

/* Icon — bigger, framed in a soft gold ring with a deeper inner badge. */
.ml-step__icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgb(var(--ml-accent-rgb) / 0.18) 0%, rgb(var(--ml-accent-rgb) / 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    position: relative;
    transition: transform 0.35s ease, background 0.35s ease;
}

.ml-step__icon::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 16px;
    background: var(--ml-white);
    box-shadow: 0 2px 8px rgba(20, 61, 56, 0.035);
    z-index: 0;
}

.ml-step__icon svg {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
    stroke: var(--ml-accent-hover);
    transition: stroke 0.3s ease, transform 0.35s ease;
}

.ml-step:hover .ml-step__icon {
    background: linear-gradient(135deg, rgb(var(--ml-accent-rgb) / 0.30) 0%, rgb(var(--ml-accent-rgb) / 0.10) 100%);
}

.ml-step:hover .ml-step__icon svg {
    stroke: var(--ml-primary);
    transform: scale(1.05);
}

/* Heading — brand serif. */
.ml-step h3 {
    font-family: var(--ml-font-heading);
    font-size: 21px;
    font-weight: 700;
    color: var(--ml-primary);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

/* Description. */
.ml-step p {
    font-family: var(--ml-font-body);
    font-size: 14px;
    color: var(--ml-text-light);
    line-height: 1.65;
    margin: 0;
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
}

/* Connector arrows between cards (visible on desktop). */
.ml-step__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 56px;
    height: 56px;
    margin: 0;
    opacity: 0.5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ml-step__connector svg {
    width: 100%;
    height: auto;
    stroke: var(--ml-accent);
}

/* Subtle pulse-like nudge on parent grid hover (any step hover). */
.ml-steps:hover .ml-step__connector {
    opacity: 0.85;
}

.ml-step__connector svg path {
    stroke-dasharray: 0;
    animation: ml-step-arrow-flow 3.5s ease-in-out infinite;
}

@keyframes ml-step-arrow-flow {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(4px); }
}

/* ============================================
   TESTIMONIALS — Glass cards
   ============================================ */
.ml-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ml-testimonial {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, var(--ml-white) 100%);
    padding: var(--ml-space-xl) var(--ml-space-xl) var(--ml-space-xl);
    border-radius: 22px;
    border: 1px solid rgba(20, 61, 56, 0.06);
    box-shadow: 0 8px 28px rgba(20, 61, 56, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
    position: relative;
}

.ml-testimonial:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(20, 61, 56, 0.08);
    border-color: rgb(var(--ml-accent-rgb) / 0.22);
}

.ml-testimonial::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: var(--ml-font-heading);
    font-size: 60px;
    line-height: 1;
    color: rgb(var(--ml-accent-rgb) / 0.08);
}

.ml-testimonial__stars {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
}

.ml-testimonial__stars svg {
    width: 14px;
    height: 14px;
}

.ml-testimonial blockquote {
    font-size: 14px;
    font-style: italic;
    color: var(--ml-text);
    line-height: 1.7;
    margin: 0 0 var(--ml-space-lg);
    padding: 0;
    border: none;
}

.ml-testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ml-testimonial__avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ml-accent) 0%, var(--ml-accent-hover) 100%);
    color: var(--ml-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ml-font-accent);
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 4px 14px rgb(var(--ml-accent-rgb) / 0.35);
}

.ml-testimonial__author strong {
    display: block;
    font-family: var(--ml-font-accent);
    font-size: 13px;
    color: var(--ml-text);
}

.ml-testimonial__author span {
    font-size: 11px;
    color: var(--ml-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ============================================
   SHOP BY BRAND — Modern pills
   ============================================ */
.ml-brands__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.ml-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--ml-white);
    border-radius: var(--ml-radius-full);
    border: 1px solid rgba(20, 61, 56, 0.06);
    box-shadow: 0 4px 16px rgba(20, 61, 56, 0.035);
    transition:
        transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.35s ease,
        border-color 0.3s ease,
        background 0.3s ease;
    text-decoration: none;
}

.ml-brand-card:hover {
    border-color: rgb(var(--ml-accent-rgb) / 0.45);
    background: var(--ml-primary);
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(20, 61, 56, 0.12);
}

.ml-brand-card__name {
    font-family: var(--ml-font-accent);
    font-size: 14px;
    font-weight: 600;
    color: var(--ml-primary);
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.ml-brand-card:hover .ml-brand-card__name {
    color: var(--ml-accent);
}

/* ============================================
   SEO BLOCK — About copy card (spacing + depth)
   ============================================ */
.ml-seo-block {
    position: relative;
    /* Extra bottom rhythm before footer */
    padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4.25rem, 11vw, 7.5rem);
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 55% at 12% 18%, rgb(var(--ml-primary-rgb) / 0.06) 0%, transparent 52%),
        radial-gradient(ellipse 65% 45% at 90% 72%, rgb(var(--ml-primary-rgb) / 0.03) 0%, transparent 48%),
        linear-gradient(175deg, #f5f8f7 0%, #f0f4f3 40%, #edf1f0 100%);
    border-top: 1px solid rgba(20, 61, 56, 0.06);
}

/* Soft stage behind the card */
.ml-seo-block::before {
    content: "";
    position: absolute;
    inset: clamp(18px, 4vw, 28px) clamp(12px, 3vw, 20px);
    border-radius: clamp(22px, 3vw, 28px);
    border: 1px solid rgb(var(--ml-primary-rgb) / 0.08);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(255, 255, 255, 0) 55%
    );
    pointer-events: none;
    z-index: 0;
    opacity: 0.88;
}

.ml-seo-block > .ml-container {
    position: relative;
    z-index: 1;
}

.ml-seo-block p {
    display: flow-root;
    position: relative;
    font-size: 15px;
    color: rgba(42, 42, 54, 0.88);
    line-height: 1.82;
    max-width: 880px;
    margin: 0 auto;
    text-align: left;
    hyphens: auto;
    padding: clamp(2.25rem, 4.5vw, 3rem) clamp(2.25rem, 4.25vw, 2.85rem) clamp(2.85rem, 5.25vw, 3.75rem) !important;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(252, 250, 246, 1) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-left: 5px solid var(--ml-accent);
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.9) inset,
        0 1px 0 rgb(var(--ml-primary-rgb) / 0.10),
        0 14px 36px rgba(20, 61, 56, 0.07),
        0 32px 72px rgba(20, 61, 56, 0.06),
        0 6px 16px rgb(var(--ml-primary-rgb) / 0.05);
}

/* Top gradient rule */
.ml-seo-block p::before {
    content: "";
    display: block;
    width: min(280px, 90%);
    height: 4px;
    border-radius: 999px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--ml-accent), rgb(var(--ml-accent-rgb) / 0.14));
    box-shadow: 0 10px 26px rgb(var(--ml-accent-rgb) / 0.22);
}

/* Drop cap — editorial feel */
.ml-seo-block p::first-letter {
    font-family: var(--ml-font-heading);
    font-size: clamp(2.6rem, 6vw, 3.25rem);
    font-weight: 700;
    float: left;
    line-height: 0.78;
    padding-right: 0.18rem;
    margin: 0.05em 0.12em 0 0;
    color: var(--ml-accent);
    text-shadow: 0 4px 14px rgb(var(--ml-accent-rgb) / 0.22);
}

@media (max-width: 899px) {
    .ml-seo-block::before {
        inset: 14px 10px;
        border-radius: 20px;
    }

    .ml-seo-block p::first-letter {
        font-size: 2.5rem;
    }
}

/* ============================================
   SCROLL ANIMATIONS — Smoother
   ============================================ */
.mylens-homepage-wrap #bestSellers .ml-product-grid.ml-stagger > .ml-product-card.ml-visible:nth-child(1) {
    transition-delay: 0.04s;
}
.mylens-homepage-wrap #bestSellers .ml-product-grid.ml-stagger > .ml-product-card.ml-visible:nth-child(2) {
    transition-delay: 0.1s;
}
.mylens-homepage-wrap #bestSellers .ml-product-grid.ml-stagger > .ml-product-card.ml-visible:nth-child(3) {
    transition-delay: 0.16s;
}
.mylens-homepage-wrap #bestSellers .ml-product-grid.ml-stagger > .ml-product-card.ml-visible:nth-child(4) {
    transition-delay: 0.22s;
}
.mylens-homepage-wrap #bestSellers .ml-product-grid.ml-stagger > .ml-product-card.ml-visible:nth-child(5) {
    transition-delay: 0.28s;
}
.mylens-homepage-wrap #bestSellers .ml-product-grid.ml-stagger > .ml-product-card.ml-visible:nth-child(6) {
    transition-delay: 0.34s;
}
.mylens-homepage-wrap #bestSellers .ml-product-grid.ml-stagger > .ml-product-card.ml-visible:nth-child(7) {
    transition-delay: 0.4s;
}
.mylens-homepage-wrap #bestSellers .ml-product-grid.ml-stagger > .ml-product-card.ml-visible:nth-child(8) {
    transition-delay: 0.46s;
}

.mylens-homepage-wrap .ml-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mylens-homepage-wrap .ml-fade-up.ml-visible {
    opacity: 1;
    transform: translateY(0);
}

.mylens-homepage-wrap .ml-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mylens-homepage-wrap .ml-slide-left.ml-visible {
    opacity: 1;
    transform: translateX(0);
}

.mylens-homepage-wrap .ml-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mylens-homepage-wrap .ml-slide-right.ml-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger — quicker */
.mylens-homepage-wrap .ml-stagger > *:nth-child(1) { transition-delay: 0s; }
.mylens-homepage-wrap .ml-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.mylens-homepage-wrap .ml-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.mylens-homepage-wrap .ml-stagger > *:nth-child(4) { transition-delay: 0.24s; }
.mylens-homepage-wrap .ml-stagger > *:nth-child(5) { transition-delay: 0.32s; }
.mylens-homepage-wrap .ml-stagger > *:nth-child(6) { transition-delay: 0.40s; }
.mylens-homepage-wrap .ml-stagger > *:nth-child(7) { transition-delay: 0.48s; }
.mylens-homepage-wrap .ml-stagger > *:nth-child(8) { transition-delay: 0.56s; }

/* ============================================
   SECTION SPACING — Tighter, modern
   ============================================ */
.mylens-homepage-wrap .ml-section {
    padding: var(--ml-space-4xl) 0;
}

.mylens-homepage-wrap .ml-section-header {
    margin-bottom: var(--ml-space-2xl);
}

/* Alternating section bg enhancements */
.mylens-homepage-wrap .ml-section-alt {
    background: #f7f7f7;
}

.mylens-homepage-wrap .ml-section-dark {
    background: linear-gradient(165deg, var(--ml-primary-dark) 0%, var(--ml-primary) 45%, var(--ml-primary-light) 100%);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
    .ml-hero {
        min-height: 75vh;
    }

    /* Scale down the hero right-side visual composition on tablet. */
    .ml-hero::before {
        width: 280px;
        height: 280px;
        right: 3%;
    }

    .ml-hero__float--1 {
        width: 460px;
        height: 460px;
        right: -160px;
    }

    .ml-hero__float--2 {
        width: 340px;
        height: 340px;
        right: 2%;
    }

    .ml-hero::after {
        right: 3%;
        bottom: 8%;
        font-size: 11px;
        padding: 12px 18px 12px 40px;
        background-size: 16px 16px;
        background-position: 14px center;
    }

    .ml-hero__content::after {
        right: -260px;
        top: 6%;
        font-size: 11px;
        padding: 10px 18px 10px 36px;
    }

    .ml-tryon__grid {
        grid-template-columns: 1fr;
        gap: var(--ml-space-2xl);
        text-align: center;
    }

    .ml-tryon__desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .ml-tryon__features {
        align-items: center;
    }

    .ml-tryon__feature {
        text-align: left;
        max-width: 380px;
    }

    .ml-tryon__cta {
        justify-content: center;
    }

    .ml-tryon__visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .ml-tryon__float-card--top {
        right: -10px;
    }

    .ml-tryon__float-card--bottom {
        left: -10px;
    }

    .ml-steps {
        grid-template-columns: 1fr;
        max-width: 460px;
        row-gap: 56px;
        column-gap: 0;
    }

    /* Switch arrows from horizontal to a vertical "downward" hint. */
    .ml-step__connector {
        width: 36px;
        height: 36px;
        justify-self: center;
        opacity: 0.6;
        transform: rotate(90deg);
    }

    .ml-testimonials__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    .ml-hero {
        min-height: auto;
        padding: var(--ml-space-2xl) 0;
    }

    .ml-hero__content {
        padding: var(--ml-space-lg) 0;
    }

    .ml-hero__title {
        letter-spacing: -1px;
    }

    .ml-hero__cta {
        flex-direction: column;
    }

    .ml-hero__cta .ml-btn {
        text-align: center;
        width: 100%;
    }

    .ml-hero__trust {
        gap: 12px;
    }

    .ml-hero__float {
        display: none;
    }

    /* Hide the right-side visual composition on mobile so the hero
       text gets the full viewport width. */
    .ml-hero::before,
    .ml-hero::after,
    .ml-hero__content::after {
        display: none;
    }

    .ml-promo-banner {
        padding: var(--ml-space-3xl) 0;
    }

    .ml-promo-banner__content {
        padding: 1.35rem 1.1rem;
        border-radius: 20px;
    }

    .ml-testimonials__grid {
        grid-template-columns: 1fr;
    }

    .mylens-homepage-wrap .ml-section {
        padding: var(--ml-space-3xl) 0;
    }

    /* Try-on mobile refinements */
    .ml-tryon > .ml-container {
        padding-top: var(--ml-space-3xl);
        padding-bottom: var(--ml-space-3xl);
    }

    .ml-tryon__cta {
        flex-direction: column;
    }

    .ml-tryon__cta .ml-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .ml-tryon__visual {
        max-width: 100%;
    }

    .ml-tryon__float-card {
        display: none !important;
    }

    .ml-tryon__label {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .ml-seo-block {
        padding: clamp(2.35rem, 8vw, 3.75rem) 0 clamp(3.25rem, 11vw, 5rem);
    }

    .ml-seo-block p {
        padding: clamp(1.45rem, 4.8vw, 1.95rem) clamp(1.35rem, 4.5vw, 1.85rem) clamp(2.05rem, 5.5vw, 2.75rem) !important;
        font-size: 14px;
        line-height: 1.75;
    }

    .ml-seo-block p::before {
        width: min(220px, 92%);
        margin-bottom: 0.65rem;
    }
}

@media (max-width: 480px) {
    .ml-hero__tag {
        font-size: 9px;
        padding: 8px 16px;
    }

    .ml-step {
        padding: 56px 22px 28px;
    }

    .ml-step h3 {
        font-size: 19px;
    }

    .ml-step__icon {
        width: 68px;
        height: 68px;
        margin-bottom: 18px;
    }

    .ml-step__icon svg {
        width: 28px;
        height: 28px;
    }

    .ml-step__number {
        width: 42px;
        height: 42px;
        top: -21px;
        font-size: 13px;
    }

    .ml-step__connector {
        display: none;
    }

    .ml-steps {
        row-gap: 32px;
    }

    .ml-testimonial {
        padding: var(--ml-space-lg);
    }

    .ml-brand-card {
        padding: 12px 20px;
    }

    .ml-brand-card__name {
        font-size: 12px;
    }
}

/* Shared homepage utilities */
.ml-empty-tab {
    text-align: center;
    color: var(--ml-text-light);
    padding: var(--ml-space-2xl) var(--ml-space-md);
    margin: 0;
}
