/* =============================================================================
   HOMEPAGE — CUSTOMIZATION PROGRAM CAROUSEL
   Same slider mechanics/layout as the "Shop by Category" carousel, but plain
   square images — no border-radius, no border around the thumbnails.
   ============================================================================= */

:root { --co-slider-gap: 0.75rem; }

.co-custom-carousel {
    margin-top: calc(var(--spacing) * 6);
    min-width: 0;
    overflow-x: hidden;
}

.co-custom-carousel__outer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.co-custom-carousel__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border: 2px solid var(--color-zinc-400);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-zinc-800);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.co-custom-carousel__arrow svg { width: 1.25rem; height: 1.25rem; }
.co-custom-carousel__arrow:hover {
    background: var(--color-primary-blue);
    border-color: var(--color-primary-blue);
    color: var(--color-white);
}

.co-custom-carousel__viewport {
    flex: 1;
    min-width: 0;
    overflow-x: scroll;
    scrollbar-width: none;
    padding: 0.25rem 0.75rem;
}
.co-custom-carousel__viewport::-webkit-scrollbar { display: none; }

.co-custom-carousel__track {
    display: flex;
    gap: var(--co-slider-gap);
}

/* Cards — 3 visible on desktop */
.co-custom-carousel__card {
    flex: 0 0 calc((100% - 2 * var(--co-slider-gap)) / 3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.co-custom-carousel__img-wrap {
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: var(--color-white);
}
.co-custom-carousel__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2%;
    transition: transform 0.3s ease;
}
.co-custom-carousel__card:hover .co-custom-carousel__img-wrap img {
    transform: scale(1.06);
}

.co-custom-carousel__card-name {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-zinc-800);
    text-align: center;
    margin: calc(var(--spacing) * 3) 0 0 0;
    line-height: 1.3;
    transition: color 0.15s ease;
}
.co-custom-carousel__card:hover .co-custom-carousel__card-name {
    color: var(--color-primary-blue);
}

/* Responsive — 2 visible on tablet */
@media screen and (max-width: 960px) {
    .co-custom-carousel__card {
        flex: 0 0 calc((100% - var(--co-slider-gap)) / 2);
    }
}

/* Mobile — 1 visible */
@media screen and (max-width: 600px) {
    .co-custom-carousel {
        margin-top: calc(var(--spacing) * 4);
    }

    .co-custom-carousel__card {
        flex: 0 0 100%;
    }

    .co-custom-carousel__outer {
        flex-wrap: wrap;
        justify-content: center;
    }
    .co-custom-carousel__viewport {
        flex: 1 1 100%;
        order: 1;
    }
    #co-custom-prev { order: 2; }
    #co-custom-next { order: 3; }

    .co-custom-carousel__arrow {
        width: 2.25rem;
        height: 2.25rem;
    }
    .co-custom-carousel__arrow svg {
        width: 1rem;
        height: 1rem;
    }
}
