﻿/* Home page only */

.cn-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px;
}

.cn-homeSection {
    margin-top: 18px;
}

.cn-homeSection__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cn-homeSection__title {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
    color: #951f1f;
}
/* Animations */
@keyframes cn-heartbeat {
    0% {
        transform: scale(1.06);
    }

    15% {
        transform: scale(1.10);
    }

    30% {
        transform: scale(1.05);
    }

    45% {
        transform: scale(1.11);
    }

    60% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1.06);
    }
}

@keyframes cn-cute-wiggle {
    0% {
        transform: translateY(0) rotate(0deg) scale(1.18);
    }

    25% {
        transform: translateY(-2px) rotate(-1.2deg) scale(1.20);
    }

    50% {
        transform: translateY(0) rotate(1.2deg) scale(1.20);
    }

    75% {
        transform: translateY(-1px) rotate(-0.6deg) scale(1.19);
    }

    100% {
        transform: translateY(0) rotate(0deg) scale(1.18);
    }
}

.cn-homeSection__meta {
    font-weight: 900;
    color: #951f1f;
    opacity: 0.8;
}

/* Best sellers rotator */
.cn-best {
    position: relative;
}

.cn-bestGroup {
    display: none;
}

    .cn-bestGroup.is-active {
        display: block;
    }
        
.cn-bestGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.cn-bestCard {
    display: block;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .cn-bestCard:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(0,0,0,.08);
    }

.cn-bestCard__img {
    background: #fff;
    padding: 12px;
}

    .cn-bestCard__img img {
        width: 100%;
        height: 260px;
        object-fit: contain;
        display: block;
        /* helps PNGs that have extra whitespace look larger */
        transform: scale(1.18);
    }

.cn-bestCard__body {
    padding: 12px 14px 14px;
}

.cn-bestCard__name {
    font-weight: 950;
    color: #951f1f;
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.cn-bestCard__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.cn-bestCard__old {
    color: #b00000;
    font-weight: 950;
    text-decoration: line-through;
    opacity: 0.85;
}

.cn-bestCard__new {
    color: #111;
    font-weight: 950;
    font-size: 16px;
}

/* Moving strip (marquee) */
/* Moving strip (FULL viewport width) */
/* Moving strip (FULL viewport width) — match Make Your Mix gradient */
.cn-marquee {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 18px;
    margin-bottom: 18px;
    overflow: hidden;
    /* ✅ Match Mix CTA background vibe */
    background: linear-gradient(120deg, #951f1f 0%, #000 70%);
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.18);
    border-bottom: 1px solid rgba(255,255,255,.18);
}
    .cn-marquee::before {
        content: "";
        position: absolute;
        inset: -2px;
        pointer-events: none;
        background: radial-gradient(700px 200px at 20% 20%, rgba(255,80,40,0.18), transparent 60%);
        opacity: 1;
    }

.cn-marquee__track,
.cn-marquee__row {
    position: relative;
    z-index: 1;
}


.cn-marquee__track {
    position: relative;
    padding: 16px 0;
}

.cn-marquee__row {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
    animation: cn-marquee 16s linear infinite;
    font-weight: 950;
    letter-spacing: 1.2px;
    font-size: 16px;
    color: #fff;
    opacity: .95;
}

    .cn-marquee__row span {
        margin-right: 32px;
    }

@keyframes cn-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* Categories grid */
/* Categories grid (BIGGER) */
.cn-catGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cn-catCard {
    text-decoration: none;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .cn-catCard:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 36px rgba(0,0,0,.10);
    }

/* Cute shine sweep */
.cn-bestCard {
    position: relative;
}

    .cn-bestCard::before {
        content: "";
        position: absolute;
        inset: -40% -60%;
        background: linear-gradient( 120deg, transparent 0%, rgba(255,255,255,.0) 40%, rgba(255,255,255,.45) 50%, rgba(255,255,255,.0) 60%, transparent 100% );
        transform: translateX(-60%) rotate(12deg);
        opacity: 0;
        pointer-events: none;
    }

    .cn-bestCard:hover::before,
    .cn-bestCard:focus-visible::before {
        opacity: 1;
        transition: transform .7s ease, opacity .2s ease;
        transform: translateX(60%) rotate(12deg);
    }

/* Cute wiggle on the image */
.cn-bestCard__img img {
    will-change: transform;
}

.cn-bestCard:hover .cn-bestCard__img img,
.cn-bestCard:focus-visible .cn-bestCard__img img,
.cn-bestCard:active .cn-bestCard__img img {
    animation: cn-cute-wiggle .55s ease-in-out both;
}


.cn-catCard__img {
    padding: 16px;
    background: #fff;
}

    .cn-catCard__img img {
        width: 100%;
        height: 220px;
        object-fit: contain;
        display: block;
        animation: cn-heartbeat 3.8s ease-in-out infinite;
        will-change: transform;
    }
.cn-catCard:hover .cn-catCard__img img,
.cn-catCard:focus-visible .cn-catCard__img img {
    animation-duration: 2.2s;
}


/* heartbeat on hover + keyboard + touch */
.cn-catCard:hover .cn-catCard__img img,
.cn-catCard:focus-visible .cn-catCard__img img,
.cn-catCard:active .cn-catCard__img img {
    animation: cn-heartbeat .9s ease-in-out both;
}



.cn-catCard__name {
    padding: 14px 18px 18px;
    font-weight: 950;
    color: #951f1f;
    font-size: 18px; /* ✅ bigger */
}

/* Mix CTA */
.cn-mixCta {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    background: linear-gradient(120deg, #951f1f 0%, #000 70%);
    color: #fff;
    padding: 26px;
}

.cn-mixCta__eyebrow {
    font-weight: 950;
    opacity: 0.9;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.cn-mixCta__title {
    margin: 0;
    font-size: 32px;
    font-weight: 950;
}

.cn-mixCta__sub {
    margin: 10px 0 16px;
    font-weight: 800;
    opacity: 0.9;
    max-width: 56ch;
    line-height: 1.5;
}

.cn-mixCta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 950;
    text-decoration: none;
    background: #fff;
    color: #951f1f;
    border: 1px solid rgba(255,255,255,.25);
}

    .cn-mixCta__btn:hover {
        filter: brightness(.95);
    }

/* Responsive */
/* Responsive */
@media (max-width: 1100px) {
    .cn-catGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small screens: Best sellers stay 3 per row but smaller */
@media (max-width: 900px) {
    .cn-bestGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .cn-bestCard__img {
        padding: 10px;
    }

        .cn-bestCard__img img {
            height: 170px;
            transform: scale(1.12);
        }

    .cn-bestCard__name {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .cn-bestCard__new,
    .cn-bestCard__old {
        font-size: 14px;
    }

    .cn-catGrid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cn-catCard__img img {
        height: 150px;
    }

    .cn-mixCta__title {
        font-size: 26px;
    }
}

/* Even smaller: 2 per row */
@media (max-width: 700px) {
    .cn-bestGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tiny phones: 1 per row */
@media (max-width: 480px) {
    .cn-bestGrid {
        grid-template-columns: 1fr;
    }
}

/* Discover big carousel */
/* Discover big carousel — match Make Your Mix gradient */
.cn-discover {
    position: relative;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    /* ✅ same as mix CTA */
    background: linear-gradient(120deg, #951f1f 0%, #000 70%);
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
}


.cn-discover__viewport {
    position: relative;
    width: 100%;
}

.cn-discover__slide {
    display: none;
}

    .cn-discover__slide.is-active {
        display: block;
    }

    .cn-discover__slide img {
        width: 100%;
        height: auto;
        display: block;
        /* optional: soften blend so the gradient feels present */
        background: transparent;
    }

/* arrows */
.cn-discover__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    user-select: none;
    backdrop-filter: blur(8px);
}

    .cn-discover__arrow:hover {
        background: rgba(0,0,0,.55);
    }


.cn-discover__arrow--left {
    left: 14px;
}

.cn-discover__arrow--right {
    right: 14px;
}
@media (prefers-reduced-motion: reduce) {
    .cn-catCard__img img {
        animation: none;
        transform: scale(1.05);
    }

    .cn-bestCard__img img {
        animation: none;
        transform: scale(1.1);
    }
}
/* Best sellers switch animation */
.cn-bestGrid.is-switching {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(2px);
    transition: opacity .22s ease, transform .22s ease, filter .22s ease;
}

.cn-bestGrid.is-ready {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition: opacity .28s ease, transform .28s ease, filter .28s ease;
}
@keyframes cn-card-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cn-bestGrid.is-ready .cn-bestCard {
    animation: cn-card-in .35s ease both;
}

    /* Stagger */
    .cn-bestGrid.is-ready .cn-bestCard:nth-child(1) {
        animation-delay: 0ms;
    }

    .cn-bestGrid.is-ready .cn-bestCard:nth-child(2) {
        animation-delay: 40ms;
    }

    .cn-bestGrid.is-ready .cn-bestCard:nth-child(3) {
        animation-delay: 80ms;
    }

    .cn-bestGrid.is-ready .cn-bestCard:nth-child(4) {
        animation-delay: 120ms;
    }

    .cn-bestGrid.is-ready .cn-bestCard:nth-child(5) {
        animation-delay: 160ms;
    }

    .cn-bestGrid.is-ready .cn-bestCard:nth-child(6) {
        animation-delay: 200ms;
    }
.cn-bestCard__img {
    aspect-ratio: 1 / 1; /* keeps the card stable even before the image loads */
    display: grid;
    place-items: center;
    overflow: hidden;
}

    .cn-bestCard__img img {
        opacity: 0;
        transition: opacity .22s ease;
    }
    .cn-bestCard.is-visible .cn-bestCard__img img {
    animation: cn-heartbeat-once .6s ease-out both;
}

        .cn-bestCard__img img.is-loaded {
            opacity: 1;
        }
@keyframes cn-heartbeat-once {
    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.12);
    }

    40% {
        transform: scale(1.04);
    }

    60% {
        transform: scale(1.10);
    }

    100% {
        transform: scale(1.06);
    }
}
/* =========================
   Scroll reveal pop
   ========================= */
.cn-reveal {
    opacity: 0;
    transform: translateY(18px) scale(.98);
    filter: blur(2px);
    transition: opacity .55s ease, transform .55s ease, filter .55s ease;
    will-change: opacity, transform, filter;
}

    .cn-reveal.is-in {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    /* Stagger children inside a revealed section (nice premium feel) */
    .cn-reveal[data-stagger="1"] .cn-reveal-item {
        opacity: 0;
        transform: translateY(10px) scale(.99);
        transition: opacity .5s ease, transform .5s ease;
    }

    .cn-reveal.is-in[data-stagger="1"] .cn-reveal-item {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .cn-reveal,
    .cn-reveal[data-stagger="1"] .cn-reveal-item {
        transition: none !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }
}
