/* TAPUS! Index — full-viewport snap scroll */

:root {
    --index-red: var(--tapus-red, #9a1b24);
    --index-hard-shadow: 0 8px 0 #000;
    --index-hard-shadow-lg: 0 10px 0 #000;
    --index-stroke: 3px solid #000;

    /* 3D press — face lifted with shadow “base” below (matches button_top pattern) */
    --index-press-lift: 0.28em;
    --index-press-lift-hover: 0.42em;
    --index-press-shadow: #000;
    --index-press-duration: 0.1s;

    /* Hero headline colors — edit these to tweak manually */
    --index-hero-line1: #ffffff;
    --index-hero-just: #ff5f5f;
    --index-hero-for: #ffd833;
    --index-hero-you: #5ab8ff;
    --index-hero-bang: #ffffff;

    /* Background pattern tuning */
    --index-pattern-size: 36px;
    --index-pattern-duration: 140s;
}

html:has(body.index-page) {
    min-height: 100%;
}

body.index-page {
    min-height: 100%;
    margin: 0;
    background: #fff;
    color: var(--tapus-ink-soft);
    overflow-x: hidden;
    overflow-y: auto;
    /*
     * proximity (not mandatory) + no CSS scroll-behavior:smooth —
     * mandatory snap + smooth fighting tall products/info panels caused page scroll jitter.
     * Click-to-section smooth scroll stays in index-snap-nav.js.
     */
    scroll-snap-type: y proximity;
    overscroll-behavior-y: contain;
}

.index-snap-root {
    display: block;
}

.index-snap-panel {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    body.index-page {
        scroll-snap-type: none;
    }
}

/* Plus-sign patterns — ::before layer drifts independently of gradient/bg */
.index-pattern {
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.index-pattern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% + var(--index-pattern-size));
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-repeat: repeat;
    background-size: var(--index-pattern-size) var(--index-pattern-size);
    background-position: 0 0;
    will-change: transform;
    animation: index-pattern-drift var(--index-pattern-duration) linear infinite;
}

.index-pattern > * {
    position: relative;
    z-index: 1;
}

@keyframes index-pattern-drift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(36px, 0, 0);
    }
}

.index-pattern--red {
    background-color: var(--index-red);
}

.index-pattern--red::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M16 6h4v24h-4zm-12 12h28v4H4z' fill='%23000000' fill-opacity='0.07'/%3E%3C/svg%3E");
}

.index-pattern--light {
    background-color: #fff;
}

.index-pattern--light::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M16 6h4v24h-4zm-12 12h28v4H4z' fill='%239ca3af' fill-opacity='0.08'/%3E%3C/svg%3E");
}

.index-pattern--blue {
    background-color: #5da8f5;
}

.index-pattern--blue::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M16 6h4v24h-4zm-12 12h28v4H4z' fill='%23000000' fill-opacity='0.06'/%3E%3C/svg%3E");
}

.index-pattern--green {
    background-color: #6ee7b7;
}

.index-pattern--green::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M16 6h4v24h-4zm-12 12h28v4H4z' fill='%23000000' fill-opacity='0.06'/%3E%3C/svg%3E");
}

.index-pattern--yellow {
    background-color: #ffd85f;
}

.index-pattern--yellow::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M16 6h4v24h-4zm-12 12h28v4H4z' fill='%23000000' fill-opacity='0.06'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
    .index-snap-panel--landing.index-landing-gradient {
        animation: none;
    }

    .index-pattern::before {
        animation: none;
    }
}

/* Navbar gradient — duplicated here so index nav reveal can reference it */
@keyframes navbarGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/*
 * Navbar reveal — transitions must use !important to override
 * .neo-page-enter-skip { opacity:1; animation:none; transform:none !important }
 * on the same <nav> element (see neo-motion.css).
 */
.index-page > nav.neo-navbar.neo-page-enter-skip {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--neo-z-navbar, 1300);
    visibility: hidden;
    pointer-events: none;
    opacity: 0 !important;
    transform: translateY(-100%) !important;
    animation: navbarGradientShift 10s ease infinite !important;
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.75s;
}

.index-page.index-page--nav-visible > nav.neo-navbar.neo-page-enter-skip {
    visibility: visible;
    pointer-events: auto;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}

/* Footer must stay visible — shares neo-navbar class with nav */
.index-page footer.neo-navbar,
.index-page footer.navbar-animated-gradient {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .index-page > nav.neo-navbar.neo-page-enter-skip {
        animation: none !important;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
    }

    .index-page.index-page--nav-visible > nav.neo-navbar.neo-page-enter-skip {
        opacity: 1 !important;
        transform: translateY(0) !important;
        visibility: visible;
    }
}

/* Panel 1 — Landing: animated red gradient + pattern overlay */
.index-snap-panel--landing.index-landing-gradient {
    background: linear-gradient(120deg, var(--tapus-red-dark, #70070e), var(--index-red), var(--tapus-red-dark, #70070e));
    background-size: 200% 200%;
    animation: navbarGradientShift 10s ease infinite;
}

.index-snap-panel--landing .index-pattern--red {
    background-color: transparent;
}

.index-snap-panel--landing {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
}

.index-landing__header {
    flex: 0 0 10%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.85rem, 2.5vh, 1.5rem) 1rem clamp(0.35rem, 1vh, 0.65rem);
}

.index-landing__main {
    position: relative;
    flex: 0 0 70%;
    min-height: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.index-quick-nav-section {
    flex: 0 0 20%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem 1rem;
    border-top: var(--index-stroke);
    border-bottom: var(--index-stroke);
}

.index-hero__brand {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.index-hero__brand-img {
    display: block;
    height: clamp(2.25rem, 5.5vh, 3.75rem);
    width: auto;
    max-width: min(72vw, 18rem);
    object-fit: contain;
}

.index-hero__stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .index-hero__stage {
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        gap: 0;
    }
}

.index-hero__hand {
    pointer-events: none;
    filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.4));
    flex-shrink: 0;
    /* No CSS transition — scale is driven per-frame by index-landing-hands.js */
    will-change: transform;
    z-index: 1;
    position: relative;
}

.index-hero__hand--left {
    width: auto;
    max-width: 42vw;
    height: clamp(9rem, 32vh, 16rem);
    object-fit: contain;
    object-position: left bottom;
    align-self: flex-end;
    margin-right: auto;
    transform-origin: left bottom;
}

.index-hero__hand--right {
    width: auto;
    max-width: 42vw;
    height: clamp(9rem, 32vh, 16rem);
    object-fit: contain;
    object-position: right bottom;
    align-self: flex-end;
    margin-left: auto;
    transform-origin: right bottom;
}

@media (min-width: 768px) {
    .index-hero__hand--left {
        position: absolute;
        left: 0;
        bottom: 0;
        top: 0;
        height: 100%;
        max-width: none;
        width: clamp(10rem, 34vw, 24rem);
        margin: 0;
        object-fit: contain;
        object-position: left center;
        align-self: auto;
    }

    .index-hero__hand--right {
        position: absolute;
        right: 0;
        bottom: 0;
        top: 0;
        height: 100%;
        max-width: none;
        width: clamp(10rem, 34vw, 24rem);
        margin: 0;
        object-fit: contain;
        object-position: right center;
        align-self: auto;
    }
}

.index-hero__content {
    position: relative;
    z-index: 3;
    min-width: 0;
    width: 100%;
    max-width: 36rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    flex: 1 1 auto;
}

@media (min-width: 768px) {
    .index-hero__content {
        padding: 0 1rem;
    }
}

.index-hero__title {
    font-family: 'Super Cartoon', sans-serif;
    text-transform: uppercase;
    line-height: 0.95;
    text-transform: uppercase;
    margin: 0;
    width: 100%;
}

.index-hero__line1 {
    display: block;
    font-size: clamp(1.2rem, 4.2vw, 2.85rem);
    color: var(--index-hero-line1);
    -webkit-text-stroke: 6px #000;
    paint-order: stroke fill;
    text-shadow: 0 5px 0 #000, 0 7px 0 #000, 0 9px 0 #000;
}

.index-hero__line2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.12em 0.3em;
    font-size: clamp(1.55rem, 6.5vw, 4rem);
    margin-top: 0.2rem;
}

.index-hero__word {
    -webkit-text-stroke: 6px #000;
    paint-order: stroke fill;
    text-shadow: 0 5px 0 #000, 0 7px 0 #000, 0 9px 0 #000;
}

.index-hero__word--pink { color: var(--index-hero-just); }
.index-hero__word--yellow { color: var(--index-hero-for); }
.index-hero__word--blue { color: var(--index-hero-you); }
.index-hero__word--white { color: var(--index-hero-bang); }

.index-hero__subtext {
    font-family: 'QUIAPO', sans-serif;
    font-size: clamp(0.82rem, 3.1vw, 1.1rem);
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    width: 100%;
    max-width: min(100%, 22rem);
    margin: clamp(0.45rem, 1.5vh, 0.75rem) 0 0;
    line-height: 1.45;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

/* Quick nav */
.index-quick-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.5rem, 2vw, 1.25rem);
    width: min(100%, 52rem);
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    align-items: center;
}

.index-quick-nav--account {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(100%, 64rem);
}

.index-quick-nav__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 100%;
    max-height: 9rem;
    padding: 0.5rem;
    background: #fff;
    border: var(--index-stroke);
    border-width: 4px;
    border-radius: 1.25rem;
    text-decoration: none;
    color: #000;
    transform: translateY(calc(-1 * var(--index-press-lift)));
    box-shadow: 0 var(--index-press-lift) 0 var(--index-press-shadow);
    transition: transform var(--index-press-duration) ease, box-shadow var(--index-press-duration) ease;
}

.index-quick-nav__card:hover {
    transform: translateY(calc(-1 * var(--index-press-lift-hover)));
    box-shadow: 0 var(--index-press-lift-hover) 0 var(--index-press-shadow);
}

.index-quick-nav__card:active {
    transform: translateY(0);
    box-shadow: 0 0 0 var(--index-press-shadow);
}

.index-quick-nav__card img {
    width: clamp(2.25rem, 7vw, 3.5rem);
    height: clamp(2.25rem, 7vw, 3.5rem);
    object-fit: contain;
}

.index-quick-nav__label {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(0.65rem, 1.8vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Panel 2 — Products (page scrolls through; no inner scroll trap) */
.index-snap-panel--products {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    /* Tall panel: no snap target mid-content (was fighting free scroll) */
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    background: #fff;
}

.index-products__header-bar {
    flex-shrink: 0;
    background-color: var(--index-red);
    padding: 0.85rem 1.5rem;
    text-align: center;
    border-bottom: var(--index-stroke);
}

.index-products__heading {
    font-family: 'Super Cartoon', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    -webkit-text-stroke: 3px #000;
    paint-order: stroke fill;
    text-shadow: var(--index-hard-shadow);
}

.index-products__grid-area {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.25rem 1rem 2rem;
    overflow: visible;
    background: #fff;
}

.index-products__inner {
    width: min(100%, 72rem);
    margin: 0 auto;
}

.index-products__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 0.35em;
}

@media (min-width: 640px) {
    .index-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .index-products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* Customer photos carousel — below Our Products */
.index-customers-carousel-section {
    background: #fff;
    overflow: visible;
}

.index-customers-carousel__heading {
    font-family: 'Super Cartoon', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 3.5vw, 2rem);
    color: var(--index-red);
    text-align: center;
    margin: 0;
    padding: 1.25rem 1.5rem 0.5rem;
    line-height: 1.1;
}

.index-customers-carousel__wrap {
    position: relative;
    padding: 0.75rem 0 2rem;
    max-width: 72rem;
    margin: 0 auto;
    overflow: visible;
}

.index-customers-carousel__wrap::before,
.index-customers-carousel__wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(2.5rem, 8vw, 5rem);
    z-index: 2;
    pointer-events: none;
}

.index-customers-carousel__wrap::before {
    left: 0;
    background: linear-gradient(to right, #fff 15%, rgba(255, 255, 255, 0.85) 45%, transparent 100%);
}

.index-customers-carousel__wrap::after {
    right: 0;
    background: linear-gradient(to left, #fff 15%, rgba(255, 255, 255, 0.85) 45%, transparent 100%);
}

.index-customers-carousel__viewport {
    overflow: hidden;
    outline: none;
    padding: calc(var(--index-press-lift-hover) + 0.35rem) 0 calc(var(--index-press-lift-hover) + 0.65rem);
}

.index-customers-carousel__viewport.is-paused .index-customers-carousel__track {
    animation-play-state: paused;
}

.index-customers-carousel__track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: index-customers-scroll 40s linear infinite;
    padding: 0 0.25rem;
}

@keyframes index-customers-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.index-customers-carousel__slide {
    flex: 0 0 auto;
    width: clamp(9rem, 28vw, 14rem);
    margin: 0;
    background: #fff;
    border: var(--index-stroke);
    border-radius: 1.25rem;
    overflow: hidden;
    transform: translateY(calc(-1 * var(--index-press-lift)));
    box-shadow: 0 var(--index-press-lift) 0 var(--index-press-shadow);
    transition:
        transform var(--index-press-duration) ease,
        box-shadow var(--index-press-duration) ease;
}

.index-customers-carousel__slide--clone {
    opacity: 1;
}

.index-customers-carousel__slide-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.index-customers-carousel__slide-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.index-customers-carousel__slide:hover .index-customers-carousel__slide-image img {
    transform: scale(1.04);
}

@media (max-width: 639px) {
    .index-customers-carousel__slide {
        width: clamp(8rem, 42vw, 11rem);
    }

    .index-customers-carousel__track {
        gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .index-customers-carousel__track {
        animation: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        padding-bottom: 0.5rem;
    }

    .index-customers-carousel__viewport {
        overflow-x: auto;
    }

    .index-customers-carousel__slide {
        scroll-snap-align: start;
    }
}

/* Product cards — stroked layout with 3D raised shadow */
.index-product-card {
    background: #fff;
    border: var(--index-stroke);
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(calc(-1 * var(--index-press-lift)));
    box-shadow: 0 var(--index-press-lift) 0 var(--index-press-shadow);
    transition: transform var(--index-press-duration) ease, box-shadow var(--index-press-duration) ease;
}

.index-product-card:hover {
    transform: translateY(calc(-1 * var(--index-press-lift-hover)));
    box-shadow: 0 var(--index-press-lift-hover) 0 var(--index-press-shadow);
}

.index-product-card__badge-wrap {
    padding: 0.75rem 1rem 0;
    text-align: left;
}

.index-product-card__badge--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #fef9c3;
    color: #854d0e;
    font-size: 0.95rem;
    line-height: 1;
}

.index-price-tag__amount--coming-soon {
    font-family: 'Super Cartoon', sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 400;
    color: #854d0e;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.index-product-card__image {
    width: 100%;
    aspect-ratio: 8 / 5;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.index-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.index-product-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.index-product-card__name {
    font-family: 'Super Cartoon', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    text-transform: uppercase;
    color: #000;
    margin-bottom: 0.35rem;
    line-height: 1.1;
}

.index-product-card__price-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.15rem;
}

.index-price-tag {
    position: relative;
    width: min(100%, 13.75rem);
    margin: 0 auto 0.75rem;
}

.index-price-tag__svg {
    display: block;
    width: 100%;
    height: auto;
}

.index-price-tag__amount {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--index-red);
    white-space: nowrap;
}

.index-price-tag__amount .index-price--free {
    color: var(--index-red, #9a1b24);
    font-weight: 800;
}

.index-product-card__stock {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.index-product-card__btn {
    margin-top: auto;
    width: 100%;
    border: var(--index-stroke);
    cursor: pointer;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 9999px;
    background: var(--index-red);
    color: #fff;
    transform: translateY(calc(-1 * var(--index-press-lift)));
    box-shadow: 0 var(--index-press-lift) 0 var(--index-press-shadow);
    transition:
        transform var(--index-press-duration) ease,
        box-shadow var(--index-press-duration) ease,
        background 0.15s ease;
}

.index-product-card__btn:hover:not(:disabled):not(.index-product-card__btn--muted) {
    background: var(--tapus-red-dark, #70070e);
    transform: translateY(calc(-1 * var(--index-press-lift-hover)));
    box-shadow: 0 var(--index-press-lift-hover) 0 var(--index-press-shadow);
}

.index-product-card__btn:active:not(:disabled):not(.index-product-card__btn--muted) {
    transform: translateY(0);
    box-shadow: 0 0 0 var(--index-press-shadow);
}

.index-product-card__btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.index-product-card__btn--muted {
    background: #e5e7eb;
    color: #6b7280;
    border-color: #9ca3af;
    box-shadow: none;
}

/* Info section — 4-card grid (original layout, neo styling) */
.index-snap-panel.index-info-section {
    height: auto;
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    overflow: visible;
    background: var(--tapus-bg, #f8fafc);
}

.index-info-section__inner {
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: clamp(2.5rem, 6vh, 4rem) clamp(1rem, 3vw, 2rem);
    border-top: var(--index-stroke);
}

.index-info-section__title {
    font-family: 'Super Cartoon', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    color: var(--tapus-ink, #1e1e1e);
    margin: 0 0 clamp(1.5rem, 4vh, 2.25rem);
}

.index-info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-bottom: 0.35em;
}

@media (min-width: 640px) {
    .index-info-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .index-info-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.index-info-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: var(--index-stroke);
    border-radius: 1.25rem;
    padding: 1.35rem 1.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transform: translateY(calc(-1 * var(--index-press-lift)));
    box-shadow: 0 var(--index-press-lift) 0 var(--index-press-shadow);
    transition: transform var(--index-press-duration) ease, box-shadow var(--index-press-duration) ease;
}

.index-info-card:hover {
    transform: translateY(calc(-1 * var(--index-press-lift-hover)));
    box-shadow: 0 var(--index-press-lift-hover) 0 var(--index-press-shadow);
}

.index-info-card:active {
    transform: translateY(0);
    box-shadow: 0 0 0 var(--index-press-shadow);
}

.index-info-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transform: translateY(calc(-1 * 0.12em));
    box-shadow: 0 0.12em 0 #000;
    transition: transform var(--index-press-duration) ease, box-shadow var(--index-press-duration) ease;
}

.index-info-card:hover .index-info-card__icon {
    transform: translateY(calc(-1 * 0.18em));
    box-shadow: 0 0.18em 0 #000;
}

.index-info-card:active .index-info-card__icon {
    transform: translateY(0);
    box-shadow: 0 0 0 #000;
}

.index-info-card__icon img {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

.index-info-card--red .index-info-card__icon { background: var(--index-red); }
.index-info-card--blue .index-info-card__icon { background: var(--tapus-blue, #1d38be); }
.index-info-card--green .index-info-card__icon { background: #10b981; }
.index-info-card--orange .index-info-card__icon { background: var(--tapus-orange, #ffa600); }

.index-info-card__title {
    font-family: 'Super Cartoon', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.15;
    color: var(--tapus-ink, #1e1e1e);
    margin: 0 0 0.85rem;
    transition: color 0.2s ease;
}

.index-info-card--red:hover .index-info-card__title { color: var(--index-red); }
.index-info-card--blue:hover .index-info-card__title { color: var(--tapus-blue, #1d38be); }
.index-info-card--green:hover .index-info-card__title { color: #10b981; }
.index-info-card--orange:hover .index-info-card__title { color: var(--tapus-orange, #ffa600); }

.index-info-card__list {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--tapus-ink-soft, #373737);
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    list-style: disc;
}

.index-info-card__list li + li {
    margin-top: 0.35rem;
}

.index-info-card--actions {
    cursor: default;
}

.index-info-card--actions:hover .index-info-card__title {
    color: var(--tapus-orange, #ffa600);
}

.index-info-card--actions .index-info-card__list li + li {
    margin-top: 0.75rem;
}

.index-info-card--actions .index-info-card__list {
    padding-left: 1.15rem;
    margin-bottom: 0;
}

.index-info-card__action {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.45rem;
    padding: 0.35rem 0.7rem;
    border: 2px solid #000;
    border-radius: 9999px;
    background: #fff;
    color: var(--tapus-orange, #ffa600);
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 0.12em 0 #000;
    transform: translateY(calc(-1 * 0.08em));
    transition:
        transform var(--index-press-duration) ease,
        box-shadow var(--index-press-duration) ease,
        background var(--index-press-duration) ease,
        color var(--index-press-duration) ease,
        gap 0.2s ease;
}

.index-info-card__action:hover {
    background: var(--tapus-orange, #ffa600);
    color: #fff;
    gap: 0.45rem;
    transform: translateY(calc(-1 * 0.14em));
    box-shadow: 0 0.18em 0 #000;
}

.index-info-card__action:active {
    transform: translateY(0);
    box-shadow: 0 0 0 #000;
}

.index-info-card__cta {
    margin-top: auto;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease;
}

.index-info-card--red .index-info-card__cta { color: var(--index-red); }
.index-info-card--blue .index-info-card__cta { color: var(--tapus-blue, #1d38be); }
.index-info-card--green .index-info-card__cta { color: #10b981; }
.index-info-card--orange .index-info-card__cta { color: var(--tapus-orange, #ffa600); }

.index-info-card:hover .index-info-card__cta {
    gap: 0.55rem;
}

/* Scroll reveal — slow eased fade/slide up */
.index-reveal {
    --index-reveal-delay: 0s;
}

.index-reveal,
.index-reveal .index-reveal__item {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--index-reveal-delay, 0s);
    will-change: opacity, transform;
}

.index-reveal.index-reveal--visible,
.index-reveal.index-reveal--visible .index-reveal__item {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Press cards: reveal fades/slides in, then settle on raised rest state (no hover pop) */
.index-product-card.index-reveal,
.index-info-card.index-reveal,
.index-customers-carousel__slide.index-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    box-shadow: none;
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--index-reveal-delay, 0s);
}

.index-product-card.index-reveal.index-reveal--visible,
.index-info-card.index-reveal.index-reveal--visible,
.index-customers-carousel__slide.index-reveal.index-reveal--visible {
    opacity: 1;
    transform: translateY(calc(-1 * var(--index-press-lift)));
    box-shadow: 0 var(--index-press-lift) 0 var(--index-press-shadow);
}

.index-product-card.index-reveal.index-reveal--visible:hover,
.index-info-card.index-reveal.index-reveal--visible:hover,
.index-customers-carousel__slide.index-reveal.index-reveal--visible:hover,
.index-customers-carousel__slide--clone:hover {
    transform: translateY(calc(-1 * var(--index-press-lift-hover)));
    box-shadow: 0 var(--index-press-lift-hover) 0 var(--index-press-shadow);
    transition:
        transform var(--index-press-duration) ease,
        box-shadow var(--index-press-duration) ease,
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.index-product-card.index-reveal.index-reveal--visible:active,
.index-info-card.index-reveal.index-reveal--visible:active,
.index-customers-carousel__slide.index-reveal.index-reveal--visible:active,
.index-customers-carousel__slide--clone:active {
    transform: translateY(0);
    box-shadow: 0 0 0 var(--index-press-shadow);
}

.index-reveal .index-reveal__item:nth-child(2) {
    --index-reveal-delay: 0.14s;
}

.index-product-card.index-reveal {
    --index-reveal-delay: 0s;
}

.index-products__grid .index-product-card.index-reveal:nth-child(2) { --index-reveal-delay: 0.08s; }
.index-products__grid .index-product-card.index-reveal:nth-child(3) { --index-reveal-delay: 0.16s; }
.index-products__grid .index-product-card.index-reveal:nth-child(4) { --index-reveal-delay: 0.24s; }
.index-products__grid .index-product-card.index-reveal:nth-child(5) { --index-reveal-delay: 0.32s; }
.index-products__grid .index-product-card.index-reveal:nth-child(6) { --index-reveal-delay: 0.4s; }

.index-info-cards .index-info-card.index-reveal:nth-child(2) { --index-reveal-delay: 0.1s; }
.index-info-cards .index-info-card.index-reveal:nth-child(3) { --index-reveal-delay: 0.2s; }
.index-info-cards .index-info-card.index-reveal:nth-child(4) { --index-reveal-delay: 0.3s; }

.index-page > footer {
    flex-shrink: 0;
    scroll-snap-align: none;
}

/* Product modal */
body.index-modal-open {
    overflow: hidden;
}

body.index-preview-open {
    overflow: hidden;
}

#productModal.index-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.55);
    display: none !important;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

#productModal.index-modal.index-modal--open {
    display: flex !important;
    visibility: visible;
    pointer-events: auto;
}

.index-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    max-height: min(90vh, 90dvh);
    width: 100%;
    max-width: 42rem;
    background: #fff;
    border-radius: 1.25rem;
    border: var(--index-stroke);
    transform: translateY(calc(-1 * var(--index-press-lift)));
    box-shadow: 0 var(--index-press-lift-hover) 0 var(--index-press-shadow);
    pointer-events: auto;
    overflow: hidden;
}

.index-modal__panel--product {
    max-width: 42rem;
}

.index-modal__header {
    flex: 0 0 auto;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #ffd85f;
    background: #fff;
    z-index: 3;
}

.index-modal__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow-anchor: none;
    /* Native CSS snap disabled — custom eased snap in JS (avoids shrink feedback loops) */
    scroll-snap-type: none;
}

.index-modal__snap-section {
    padding-top: 0.35rem;
    padding-bottom: 1.35rem;
    margin-bottom: 0.25rem;
}

.index-modal__snap-section--intro {
    min-height: 0;
}

.index-modal__snap-section--checkout {
    padding-bottom: 0.5rem;
}

.index-modal__gallery {
    position: sticky;
    top: 0;
    z-index: 2;
    margin-bottom: 0;
    padding: 0.65rem 1.1rem 0.55rem;
    overflow: hidden;
    overflow-anchor: none;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition:
        padding 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.34s ease;
}

.index-modal__gallery.is-shrunk {
    padding-top: 0.35rem;
    padding-bottom: 0.3rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.index-modal__gallery.is-shrunk .index-modal__gallery-thumbs {
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    border: 0;
}

.index-modal__body {
    padding: 1.25rem 1.5rem 1.75rem;
}

.index-modal__gallery-meta {
    margin-top: 0.55rem;
    padding: 0 0.15rem;
    max-height: 2rem;
    opacity: 1;
    overflow: hidden;
    transition:
        max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        margin 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease;
}

.index-modal__gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.55rem;
    padding: 0.35rem 0.2rem 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 5.25rem;
    opacity: 1;
    transition:
        max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        margin 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease;
}

.index-modal__gallery-meta.hidden,
.index-modal__gallery-thumbs.hidden {
    transition: none;
}

.index-modal__title {
    font-family: 'Super Cartoon', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    text-transform: uppercase;
    color: #000;
    line-height: 1.1;
}

.index-modal__heading {
    font-family: 'Super Cartoon', sans-serif;
    text-transform: uppercase;
    font-size: 1.125rem;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.index-modal__label {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #373737;
    margin-bottom: 0.5rem;
}

/* Two discrete sizes: default (compact) ↔ scrolled (smaller) */
button.index-modal__gallery-frame {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72%;
    max-width: 100%;
    margin-inline: auto;
    margin-bottom: 0;
    padding: 0;
    aspect-ratio: 8 / 5;
    background: #f3f4f6;
    border: var(--index-stroke);
    border-radius: 1rem;
    overflow: hidden;
    cursor: zoom-in;
    transform: translateY(calc(-1 * 0.14em));
    box-shadow: 0 0.14em 0 var(--index-press-shadow);
    position: relative;
    transition:
        width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.34s ease,
        box-shadow 0.28s ease;
}

.index-modal__gallery.is-shrunk button.index-modal__gallery-frame {
    width: 44%;
    border-radius: 0.85rem;
}

#productModalGallery.is-builder-active button.index-modal__gallery-frame {
    border: none;
    box-shadow: none;
    transform: none;
}

.index-modal__reset-btn {
    appearance: none;
    border: 2px solid #111;
    background: #fff;
    color: #111;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
}

.index-modal__reset-btn:hover {
    background: #111;
    color: #fff;
}

.index-modal__step-progress {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.15rem 0.55rem;
}

.index-modal__step-progress[hidden] {
    display: none !important;
}

.index-modal__step-dot {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    border: 2px solid #111;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.index-modal__step-dot.is-done {
    background: var(--index-red);
    border-color: var(--index-red);
    color: #fff;
}

.index-modal__step-dot.is-current {
    background: #ffd85f;
    border-color: #111;
}

.index-modal__step-dot.is-pending {
    opacity: 0.55;
}

.index-modal__step-sep {
    width: 0.75rem;
    height: 2px;
    background: #d1d5db;
}

.index-modal__checkout-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.index-modal__price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    color: #373737;
}

.index-modal__price-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.index-modal__checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.index-price--free {
    color: var(--index-red, #9a1b24);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.index-modal__step-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.65rem;
}

.index-modal__step-badge {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 2px solid #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    background: #fff;
}

.index-modal__step-heading.is-done .index-modal__step-badge {
    background: var(--index-red);
    border-color: var(--index-red);
    color: #fff;
}

.index-modal__step-heading.is-current .index-modal__step-badge {
    background: #ffd85f;
}

.index-modal__step-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #111;
}

.index-modal__cart-hint {
    margin: 0.55rem 0 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
}

.index-modal__cart-hint[hidden] {
    display: none !important;
}

@keyframes index-modal-step-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(154, 27, 36, 0); }
    40% { box-shadow: 0 0 0 4px rgba(154, 27, 36, 0.28); }
}

.index-modal__step-pulse {
    border-radius: 0.75rem;
    animation: index-modal-step-pulse 1.1s ease;
}

#galleryMainImage,
#galleryPlaceholder,
.index-builder-stack {
    transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Main gallery image shares the frame; stack overlays it when Builder View is active */
#galleryMainImage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 0;
}

#galleryPlaceholder {
    position: relative;
    z-index: 0;
}

.index-builder-stack {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    isolation: isolate;
    opacity: 0;
    pointer-events: none;
}

.index-builder-stack.is-visible {
    opacity: 1;
    pointer-events: none;
}

/* Layers must be visible by default; animation is an enhancement only */
.index-builder-stack__layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    user-select: none;
    opacity: 1;
}

.index-builder-stack__layer--base {
    z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .index-builder-stack__layer {
        opacity: 0;
        animation: index-builder-layer-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
}

@keyframes index-builder-layer-in {
    from { opacity: 0; transform: scale(0.985); }
    to { opacity: 1; transform: scale(1); }
}

.index-modal__media-fade-out {
    opacity: 0 !important;
    visibility: hidden;
}

.index-preview-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.index-preview-lightbox.is-open {
    display: flex;
}

.index-preview-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.72);
    cursor: pointer;
}

.index-preview-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 42rem);
    max-height: min(88vh, 88dvh);
    background: #fff;
    border: var(--index-stroke);
    border-radius: 1.15rem;
    box-shadow: 0 0.2em 0 var(--index-press-shadow);
    padding: 1rem 1rem 1.15rem;
}

.index-preview-lightbox__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: var(--index-stroke);
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0.1em 0 var(--index-press-shadow);
}

.index-preview-lightbox__close:hover {
    background: #f8f8f8;
}

.index-preview-lightbox__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: min(72vh, 72dvh);
    margin: 0.35rem auto 0;
    background: #f3f4f6;
    border: 2px solid #111;
    border-radius: 0.85rem;
    overflow: hidden;
}

.index-preview-lightbox__layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.index-preview-lightbox__empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 3rem;
}

/* Desktop / wide: split preview (left) + configure (right) */
@media (min-width: 900px) {
    .index-modal__panel--product {
        max-width: min(64rem, 96vw);
        max-height: min(92vh, 92dvh);
    }

    .index-modal__scroll {
        display: grid;
        grid-template-columns: minmax(17rem, 0.95fr) minmax(0, 1.15fr);
        align-items: start;
    }

    .index-modal__gallery {
        position: sticky;
        top: 0;
        align-self: start;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: calc(min(92vh, 92dvh) - 4.75rem);
        max-height: none;
        border-bottom: none;
        border-right: 1px solid rgba(0, 0, 0, 0.08);
        padding: 1rem 1.15rem 1.1rem;
        box-shadow: none;
        text-align: center;
    }

    .index-modal__gallery-meta {
        width: min(92%, 22rem);
        justify-content: center;
        gap: 0.75rem;
    }

    .index-modal__step-progress {
        width: 100%;
    }

    /* Default desktop preview size; shrink still applies via .is-shrunk */
    .index-modal__panel--product button.index-modal__gallery-frame {
        width: min(92%, 22rem);
    }

    /* Thumbnails: match preview width, clearer gaps, fill frame (no letterbox) */
    .index-modal__gallery-thumbs {
        width: min(92%, 22rem);
        max-width: 100%;
        justify-content: center;
        gap: 0.65rem;
        margin-top: 0.75rem;
        padding: 0.15rem 0 0;
        max-height: none;
        box-sizing: border-box;
    }

    .index-modal__gallery .index-modal-thumb__frame {
        width: 3.65rem;
        aspect-ratio: 1 / 1;
    }

    .index-modal__gallery .index-modal-thumb__frame img {
        object-fit: cover;
    }

    /* Shrink is mobile-only; keep a steady full-size left preview on desktop */
    .index-modal__gallery.is-shrunk {
        justify-content: center;
        min-height: calc(min(92vh, 92dvh) - 4.75rem);
        padding: 1rem 1.15rem 1.1rem;
        box-shadow: none;
    }

    .index-modal__gallery.is-shrunk .index-modal__gallery-thumbs {
        max-height: none !important;
        margin-top: 0.75rem !important;
        margin-bottom: 0 !important;
        padding: 0.15rem 0 0 !important;
        opacity: 1;
        overflow-x: auto;
        overflow-y: hidden;
        pointer-events: auto;
        border: 0;
    }

    .index-modal__gallery.is-shrunk button.index-modal__gallery-frame {
        width: min(92%, 22rem);
    }

    .index-modal__gallery.is-shrunk .index-modal__gallery-meta {
        width: min(92%, 22rem);
    }

    .index-modal__body {
        padding: 1.35rem 1.5rem 1.75rem;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .index-modal__panel {
        max-height: min(94vh, 94dvh);
        border-radius: 1rem;
    }

    .index-modal__header {
        padding: 1rem 1rem 0.9rem;
    }

    .index-modal__gallery {
        padding: 0.55rem 0.85rem 0.4rem;
    }

    button.index-modal__gallery-frame {
        width: 78%;
        aspect-ratio: 4 / 3;
        border-radius: 0.85rem;
    }

    .index-modal__gallery.is-shrunk button.index-modal__gallery-frame {
        width: 48%;
    }

    .index-modal__body {
        padding: 1rem 1rem 1.5rem;
    }

    .index-preview-lightbox__dialog {
        width: min(94vw, 28rem);
        padding: 0.85rem;
    }

    .index-preview-lightbox__stage {
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .index-modal__gallery,
    button.index-modal__gallery-frame,
    .index-modal__gallery-meta,
    .index-modal__gallery-thumbs,
    #galleryMainImage,
    #galleryPlaceholder,
    .index-builder-stack,
    .index-builder-stack__layer {
        transition: none !important;
        animation: none !important;
    }

    /* Layers stay visible when enter animation is disabled */
    .index-builder-stack__layer {
        opacity: 1 !important;
        transform: none !important;
    }

    .index-modal__scroll {
        scroll-snap-type: none;
    }
}

.index-modal__quantity {
    width: 100%;
    border: var(--index-stroke);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.index-modal__quantity:focus {
    outline: none;
    border-color: var(--index-red);
    box-shadow: 0 0.2em 0 var(--index-press-shadow);
}

/* Modal pick cards — match index product / info card language */
.index-modal-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    background: #fff;
    border: var(--index-stroke);
    border-radius: 1rem;
    padding: 0.75rem;
    color: inherit;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transform: translateY(calc(-1 * var(--index-press-lift)));
    box-shadow: 0 var(--index-press-lift) 0 var(--index-press-shadow);
    transition:
        transform var(--index-press-duration) ease,
        box-shadow var(--index-press-duration) ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

button.index-modal-card {
    appearance: none;
}

.index-modal-card:hover:not(:disabled):not(.index-modal-card--disabled):not(.index-modal-card--static) {
    transform: translateY(calc(-1 * var(--index-press-lift-hover)));
    box-shadow: 0 var(--index-press-lift-hover) 0 var(--index-press-shadow);
}

.index-modal-card:active:not(:disabled):not(.index-modal-card--disabled):not(.index-modal-card--static) {
    transform: translateY(0);
    box-shadow: 0 0 0 var(--index-press-shadow);
}

.index-modal-card--selected {
    border-color: var(--index-red);
    background: #fff5f5;
}

.index-modal-card--static {
    cursor: default;
}

.index-modal-card--static:hover,
.index-modal-card--static:active {
    transform: translateY(calc(-1 * var(--index-press-lift)));
    box-shadow: 0 var(--index-press-lift) 0 var(--index-press-shadow);
}

/* Suggested redirects — soft gray cards (lighter than variant pickers) */
.index-modal-card--suggested {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transform: translateY(0);
}

.index-modal-card--suggested:hover {
    border-color: #1d38be;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

.index-modal-card--suggested:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.index-modal-card--suggested-static {
    cursor: default;
}

.index-modal-card--suggested-static:hover,
.index-modal-card--suggested-static:active {
    border-color: #e5e7eb;
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.index-modal-card__image--suggested {
    aspect-ratio: 6 / 5;
    background: #f3f4f6;
    border-radius: 0.5rem;
    border: none;
}

.index-modal-card__name--suggested {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: none;
    color: #1e1e1e;
    margin-top: 0.75rem;
}

.index-modal-card__meta--suggested {
    font-size: 0.75rem;
    color: #6b7280;
}

.index-modal-card__instruction {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1d38be;
}

.index-modal-card--disabled,
.index-modal-card:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.index-modal-card__image {
    width: 100%;
    aspect-ratio: 8 / 5;
    border-radius: 0.65rem;
    margin-bottom: 0.5rem;
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.index-modal-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.index-modal-card__name {
    font-family: 'Super Cartoon', sans-serif;
    text-transform: uppercase;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #000;
    line-height: 1.15;
    margin: 0;
}

.index-modal-card__meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0.25rem 0 0;
}

.index-modal-card__meta--danger {
    color: var(--index-red);
    font-weight: 600;
}

.index-modal-card__meta--status {
    color: #1D38BE;
    font-weight: 600;
}

.index-modal__purchase-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.index-modal-card--tech {
    padding: 1rem;
}

.index-modal-card__tech-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.index-modal-card__tech-name {
    font-family: 'Super Cartoon', sans-serif;
    text-transform: uppercase;
    font-size: 1rem;
    text-transform: uppercase;
    color: #000;
    margin: 0;
    line-height: 1.15;
}

.index-modal-card__tech-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.35rem 0 0;
    line-height: 1.45;
}

.index-modal-card__tech-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--index-red);
    white-space: nowrap;
}

.index-modal-card__tech-list {
    font-size: 0.75rem;
    color: #374151;
    margin: 0.5rem 0 0;
    padding-left: 1rem;
    list-style: disc;
}

.index-modal-card__tech-list li + li {
    margin-top: 0.25rem;
}

/* Color variants + product option choices — horizontal strip */
.index-modal-variant-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.75rem;
    margin: 0 0 1rem;
    /*
     * overflow-x:auto forces a non-visible overflow-y, which clips the 3D press
     * lift (up) and shadow (down). Pad the scrollport so default + hover fit.
     */
    padding-top: calc(var(--index-press-lift-hover) + 0.2rem);
    padding-bottom: calc(var(--index-press-lift-hover) + 0.35rem);
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.index-modal-variant-grid > .index-modal-card {
    flex: 0 0 auto;
    width: 8.5rem;
    max-width: 72vw;
    scroll-snap-align: start;
    /* Keep shadow/lift painting inside the padded scrollport */
    position: relative;
    z-index: 0;
}

.index-modal-variant-grid > .index-modal-card:hover:not(:disabled):not(.index-modal-card--disabled),
.index-modal-variant-grid > .index-modal-card:focus-visible:not(:disabled):not(.index-modal-card--disabled),
.index-modal-variant-grid > .index-modal-card.index-modal-card--selected {
    z-index: 1;
}

.index-modal-variant-grid > .index-modal-card .index-modal-card__image {
    aspect-ratio: 1 / 1;
}

.index-modal-variant-grid > .index-modal-card .index-modal-card__name {
    font-size: 0.8rem;
    line-height: 1.2;
}

.index-modal-variant-grid > .index-modal-card .index-modal-card__meta,
.index-modal-variant-grid > .index-modal-card .text-xs {
    font-size: 0.7rem;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .index-modal-variant-grid > .index-modal-card {
        width: 9.5rem;
    }
}

.index-modal-suggested-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .index-modal-suggested-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.index-modal-thumb {
    flex-shrink: 0;
    padding: 0;
    border: var(--index-stroke);
    border-width: 2px;
    border-radius: 0.65rem;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transform: translateY(calc(-1 * 0.15em));
    box-shadow: 0 0.15em 0 var(--index-press-shadow);
    transition: transform var(--index-press-duration) ease, box-shadow var(--index-press-duration) ease, border-color 0.15s ease;
}

.index-modal-thumb:hover {
    transform: translateY(calc(-1 * 0.22em));
    box-shadow: 0 0.22em 0 var(--index-press-shadow);
}

.index-modal-thumb:active {
    transform: translateY(0);
    box-shadow: 0 0 0 var(--index-press-shadow);
}

.index-modal-thumb--active {
    border-color: var(--index-red);
}

.index-modal-thumb__frame {
    width: 5rem;
    aspect-ratio: 8 / 5;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.index-modal-thumb__frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Add to Cart — outline until variant/config selected, then filled like product cards */
.index-modal__cart-btn {
    width: 100%;
    border: var(--index-stroke);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 9999px;
    background: transparent;
    color: var(--index-red);
    box-shadow: none;
    transition:
        background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.15s ease;
}

.index-modal__cart-btn--ready {
    background: var(--index-red);
    color: #fff;
    transform: translateY(calc(-1 * var(--index-press-lift)));
    box-shadow: 0 var(--index-press-lift) 0 var(--index-press-shadow);
}

.index-modal__cart-btn--ready:hover {
    background: var(--tapus-red-dark, #70070e);
    transform: translateY(calc(-1 * var(--index-press-lift-hover)));
    box-shadow: 0 var(--index-press-lift-hover) 0 var(--index-press-shadow);
}

.index-modal__cart-btn--ready:active {
    transform: translateY(0);
    box-shadow: 0 0 0 var(--index-press-shadow);
}

.index-modal__cart-btn--coming-soon {
    background: #fef9c3;
    color: #854d0e;
    border-color: #ca8a04;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 1;
}

.index-modal__cart-btn--coming-soon:hover,
.index-modal__cart-btn--coming-soon:active {
    background: #fef9c3;
    color: #854d0e;
    transform: none;
    box-shadow: none;
}

/* SweetAlert must sit above the product modal */
body.index-page .swal2-container {
    z-index: 100000 !important;
}

/* Mobile — landing fits one viewport; stacked hero like mockup */
@media (max-width: 767px) {
    .index-snap-panel--landing {
        height: 100dvh;
        max-height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
    }

    .index-landing__header {
        flex: 0 0 9%;
        padding: clamp(0.35rem, 1.2vh, 0.55rem) 0.75rem 0.15rem;
    }

    .index-landing__main {
        flex: 1 1 auto;
        min-height: 0;
        overflow: visible;
    }

    .index-quick-nav-section {
        flex: 0 0 16%;
        padding: 0.45rem 0.75rem 0.55rem;
    }

    .index-hero__brand-img {
        height: clamp(1.35rem, 3.4vh, 1.85rem);
        max-width: min(48vw, 9rem);
    }

    /* Top-to-bottom: left hand → hero text → right hand (hands hug screen edges) */
    .index-hero__stage {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 0;
        overflow: visible;
    }

    .index-hero__hand--left,
    .index-hero__hand--right {
        position: absolute;
        width: clamp(6.75rem, 62vw, 12.5rem);
        height: auto;
        max-width: 68vw;
        max-height: none;
        margin: 0;
    }

    .index-hero__hand--left {
        left: 0;
        top: 0;
        align-self: auto;
        object-fit: contain;
        object-position: left top;
        margin-left: clamp(-1rem, -3vw, -0.35rem);
    }

    .index-hero__hand--right {
        right: 0;
        bottom: 0;
        align-self: auto;
        object-fit: contain;
        object-position: right bottom;
        margin-right: clamp(-1rem, -3vw, -0.35rem);
    }

    .index-hero__content {
        position: relative;
        z-index: 3;
        flex: 1 1 auto;
        align-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        padding: 0 0.35rem;
    }

    .index-hero__line1 {
        font-size: clamp(1.7rem, 8.2vw, 2.55rem);
        -webkit-text-stroke: 4px #000;
        text-shadow: 0 4px 0 #000, 0 6px 0 #000;
    }

    .index-hero__line2 {
        font-size: clamp(2.05rem, 10vw, 3.1rem);
        margin-top: 0.12rem;
    }

    .index-hero__word {
        -webkit-text-stroke: 4px #000;
        text-shadow: 0 4px 0 #000, 0 6px 0 #000;
    }

    .index-hero__subtext {
        font-size: clamp(0.78rem, 3.4vw, 0.95rem);
        max-width: min(100%, 19rem);
        margin-top: 0.35rem;
    }

    .index-quick-nav {
        gap: 0.5rem;
        width: min(100%, 20rem);
        height: auto;
        max-height: 100%;
        align-items: stretch;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .index-quick-nav--account {
        width: min(100%, 24rem);
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .index-quick-nav__card {
        aspect-ratio: 1;
        width: 100%;
        height: auto;
        max-height: none;
        gap: 0;
        padding: 0.35rem;
        border-radius: 1rem;
        border-width: 3px;
    }

    .index-quick-nav__card img {
        width: clamp(1.65rem, 7.5vw, 2.15rem);
        height: clamp(1.65rem, 7.5vw, 2.15rem);
    }

    .index-quick-nav__label {
        display: none;
    }

    .index-products__grid-area {
        padding: 1rem 0.85rem 2rem;
    }

    .index-products__inner {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .index-hero__hand {
        transition: none;
    }

    .index-reveal,
    .index-reveal .index-reveal__item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .index-product-card.index-reveal.index-reveal--visible,
    .index-info-card.index-reveal.index-reveal--visible,
    .index-customers-carousel__slide.index-reveal.index-reveal--visible,
    .index-customers-carousel__slide--clone {
        opacity: 1;
        transform: none;
        box-shadow: var(--index-hard-shadow);
    }

    .index-quick-nav__card,
    .index-info-card,
    .index-product-card,
    .index-product-card__btn,
    .index-modal__cart-btn--ready,
    .index-modal-card:not(.index-modal-card--suggested),
    .index-modal-thumb {
        transition: none;
    }

    .index-quick-nav__card,
    .index-info-card,
    .index-product-card,
    .index-product-card__btn:not(:disabled):not(.index-product-card__btn--muted),
    .index-modal__cart-btn--ready,
    .index-modal-card:not(.index-modal-card--suggested):not(:disabled):not(.index-modal-card--disabled),
    .index-modal-thumb {
        transform: none;
        box-shadow: var(--index-hard-shadow);
    }

    .index-modal-card--suggested {
        transform: none;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }
}
