@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-500.woff2') format('woff2');
}
body { font-family: 'Plus Jakarta Sans', sans-serif; }

/* Below-fold sections: skip paint until near viewport (Speed Index) */
.perf-defer-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 280px;
}
.gradient-hero { background: linear-gradient(135deg, #FFF8F0 0%, #FCE4EC 35%, #E0F2F1 65%, #E8EAF6 100%); }
.dark .gradient-hero { background: linear-gradient(135deg, #1f2937 0%, #374151 35%, #111827 65%, #1f2937 100%); }
/* Do not override footer wave — it must match themed footer stack */
.dark .section-wave:not(.storefront-footer-wave) { --wave-fill: #111827 !important; }
.gradient-soft { background: linear-gradient(180deg, #FFFBF7 0%, #FDF6EC 100%); }
.dots-pattern { background-image: radial-gradient(circle at 1px 1px, rgba(85, 32, 113, 0.12) 1px, transparent 0); background-size: 28px 28px; }
.float-slow { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.fade-in { animation: fadeIn 0.8s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1); }
.blob { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
.section-wave { display: block; width: 100%; line-height: 0; margin-top: -1px; }
.section-wave .wave-svg { width: 100%; height: 48px; display: block; }
.section-wave .wave-flip { transform: scaleY(-1); }
/* Home: best-selling horizontal rail — thin scrollbar (light section) */
.home-best-selling__track {
    scrollbar-width: thin;
    scrollbar-color: rgba(85, 32, 113, 0.45) rgba(85, 32, 113, 0.08);
}
.home-best-selling__track::-webkit-scrollbar { height: 6px; }
.home-best-selling__track::-webkit-scrollbar-track { background: rgba(85, 32, 113, 0.08); border-radius: 9999px; }
.home-best-selling__track::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(85, 32, 113, 0.45), rgba(150, 99, 190, 0.5));
    border-radius: 9999px;
}
.dark .home-best-selling__track {
    scrollbar-color: rgba(251, 191, 36, 0.5) rgba(15, 23, 42, 0.5);
}
.dark .home-best-selling__track::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.45); }
.dark .home-best-selling__track::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.75), rgba(245, 158, 11, 0.65));
}
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -0.25em; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 2.5rem; height: 2.5rem; }
.icon-2xl { width: 3rem; height: 3rem; }
.icon-3xl { width: 4rem; height: 4rem; }
/* Homepage hero — ported from butterfly.stickydrop.com welcome slider */
.bf-hero-slider {
    --bf-hero-autoplay: 6400ms;
    --bf-hero-rose: #cf506f;
    --bf-hero-rose-dark: #b84460;
    position: relative;
    width: 100%;
    margin: 0;
    outline: none;
}
.bf-hero-slider:focus-visible {
    outline: 2px solid rgba(85, 32, 113, 0.45);
    outline-offset: 2px;
}
.bf-hero-slider__viewport {
    position: relative;
    overflow: hidden;
    height: min(68vh, 580px);
    min-height: 300px;
    max-height: 640px;
    border-radius: 0;
    box-shadow: 0 28px 56px rgba(110, 82, 70, 0.14), 0 0 0 1px rgba(66, 42, 34, 0.05);
}
.dark .bf-hero-slider__viewport {
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.bf-hero-slider__track {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    transition: transform 0.88s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
}
.bf-hero-slider__slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}
.bf-hero-slider__media { position: absolute; inset: 0; }
.bf-hero-slider__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    transition: transform 12s ease-out;
}
.bf-hero-slider__slide.is-active .bf-hero-slider__media img { transform: scale(1); }
.bf-hero-slider__scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(105deg, rgba(32, 20, 17, 0.78) 0%, rgba(32, 20, 17, 0.38) 45%, rgba(32, 20, 17, 0.12) 100%),
        linear-gradient(0deg, rgba(20, 12, 10, 0.62) 0%, transparent 50%);
    pointer-events: none;
}
.bf-hero-slider__grain {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.07;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}
.bf-hero-slider__content {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min(1240px, calc(100% - 2rem));
    padding: 2.25rem 0 5.25rem;
    transform: translateX(-50%);
}
.bf-hero-slider__kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 248, 245, 0.96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.bf-hero-slider__title {
    margin: 1.05rem 0 0;
    max-width: 15ch;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: clamp(2.15rem, 5.2vw, 3.85rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.035em;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35), 0 8px 48px rgba(0, 0, 0, 0.2);
}
.bf-hero-slider__subtitle {
    margin: 1rem 0 0;
    max-width: 38ch;
    font-size: clamp(0.92rem, 1.9vw, 1.08rem);
    font-weight: 500;
    line-height: 1.68;
    color: rgba(255, 247, 243, 0.9);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.bf-hero-slider__cta {
    margin-top: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff !important;
    background: linear-gradient(135deg, #552071, #7c3aad);
    box-shadow: 0 16px 36px rgba(85, 32, 113, 0.35), 0 2px 0 rgba(255, 255, 255, 0.2) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bf-hero-slider__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(85, 32, 113, 0.4), 0 2px 0 rgba(255, 255, 255, 0.2) inset;
}
.bf-hero-slider__content > * {
    transition: opacity 0.5s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.bf-hero-slider__slide:not(.is-active) .bf-hero-slider__content > * {
    opacity: 0.001;
    transform: translateY(22px);
    transition-duration: 0.32s;
}
.bf-hero-slider__slide:not(.is-active) .bf-hero-slider__media,
.bf-hero-slider__slide:not(.is-active) .bf-hero-slider__media img {
    visibility: hidden;
    content-visibility: hidden;
}
.bf-hero-slider__slide.is-active .bf-hero-slider__kicker { transition-delay: 0.1s; }
.bf-hero-slider__slide.is-active .bf-hero-slider__title { transition-delay: 0.18s; }
.bf-hero-slider__slide.is-active .bf-hero-slider__subtitle { transition-delay: 0.26s; }
.bf-hero-slider__slide.is-active .bf-hero-slider__cta { transition-delay: 0.34s; }
.bf-hero-slider__chrome {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 12;
}
.bf-hero-slider__arrow {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    z-index: 14;
    display: grid;
    place-items: center;
    width: 3.15rem;
    height: 3.15rem;
    margin-top: -1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(14px);
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.bf-hero-slider__arrow:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}
.bf-hero-slider__arrow:active { transform: scale(0.97); }
.bf-hero-slider__arrow--prev { left: 1rem; }
.bf-hero-slider__arrow--next { right: 1rem; }
.bf-hero-slider__dots {
    pointer-events: auto;
    position: absolute;
    left: 50%;
    bottom: 2.35rem;
    z-index: 14;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    transform: translateX(-50%);
    max-width: calc(100% - 2rem);
}
.bf-hero-slider__dot {
    box-sizing: border-box;
    min-width: 2.75rem;
    min-height: 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}
.bf-hero-slider__dot::after {
    content: '';
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.35s cubic-bezier(0.33, 1, 0.68, 1), background 0.25s ease;
}
.bf-hero-slider__dot:hover::after { background: rgba(255, 255, 255, 0.55); }
.bf-hero-slider__dot.is-active::after {
    width: 1.85rem;
    background: linear-gradient(90deg, #fff, rgba(255, 212, 224, 0.95));
}
.bf-hero-slider__progress {
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
}
.bf-hero-slider__progress-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(90deg, var(--bf-hero-rose-dark), #ffd4a8, var(--bf-hero-rose));
    transform-origin: left center;
}
.bf-hero-slider__progress-bar.is-animating {
    animation-name: bf-hero-progress;
    animation-duration: var(--bf-hero-autoplay, 6400ms);
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}
@keyframes bf-hero-progress {
    from { width: 0%; }
    to { width: 100%; }
}
@media (max-width: 720px) {
    /* Shorter hero on phones: less aggressive side-crop with object-fit: cover on wide art */
    .bf-hero-slider__viewport {
        border-radius: 0;
        height: min(46vh, 360px);
        min-height: 220px;
        max-height: 400px;
    }
    .bf-hero-slider__media img {
        object-position: center center;
    }
    .bf-hero-slider__arrow { width: 2.75rem; height: 2.75rem; }
    .bf-hero-slider__arrow--prev { left: 0.65rem; }
    .bf-hero-slider__arrow--next { right: 0.65rem; }
    .bf-hero-slider__content { padding: 1.35rem 0 3.75rem; }
    .bf-hero-slider__title {
        font-size: clamp(1.65rem, 7.5vw, 2.35rem);
        margin-top: 0.75rem;
    }
    .bf-hero-slider__subtitle {
        font-size: clamp(0.84rem, 3.2vw, 0.98rem);
        margin-top: 0.65rem;
    }
    .bf-hero-slider__cta {
        margin-top: 1.1rem;
        padding: 0.75rem 1.35rem;
        font-size: 0.88rem;
    }
    .bf-hero-slider__dots { bottom: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) {
    .bf-hero-slider__track { transition-duration: 0.01ms !important; }
    .bf-hero-slider__media img { transform: scale(1) !important; transition: none !important; }
    .bf-hero-slider__content > * { transition: none !important; transition-delay: 0s !important; }
    .bf-hero-slider__dot { transition: none !important; }
    .bf-hero-slider__progress-bar.is-animating {
        animation: none !important;
        width: 100% !important;
        opacity: 0.35;
    }
}


/* Ticker below hero — seamless horizontal scroll */
.home-marquee {
    position: relative;
    z-index: 1;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    background: linear-gradient(90deg, #4a1c64 0%, #552071 35%, #673088 65%, #4a1c64 100%);
    background-size: 200% 100%;
    animation: home-marquee-bg 18s ease-in-out infinite;
}
.dark .home-marquee {
    border-color: rgba(255, 255, 255, 0.06);
    background: linear-gradient(90deg, #1a0f24 0%, #261033 40%, #3e1854 70%, #1a0f24 100%);
    background-size: 200% 100%;
}
@keyframes home-marquee-bg {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.home-marquee__viewport {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.home-marquee__track {
    display: flex;
    width: max-content;
    animation: home-marquee-scroll 42s linear infinite;
    will-change: transform;
}
@keyframes home-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.home-marquee__group {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0;
    padding: 0.65rem 0;
}
.home-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
}
.home-marquee__dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: #fbad2f;
    box-shadow: 0 0 0 2px rgba(251, 173, 47, 0.25);
    flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
    .home-marquee {
        animation: none !important;
    }
    .home-marquee__viewport {
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
    }
    .home-marquee__track {
        animation: none !important;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    .home-marquee__group:last-child {
        display: none !important;
    }
    .home-marquee__group {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
}
