/* ================================================================
   CarZoon — Body Type & Make Marquee Sliders
   File: carzoon-sliders.css
   Auto-scrolling, no boxes/cards — plain icon + label.
   ================================================================ */

.czs-marquee-wrap {
    margin: 20px 0;
    overflow: hidden;
}

.czs-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f2744;
    margin: 0;
    padding: 0;
    text-align: left;
}

.czs-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
}

.czs-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity .2s ease;
}
.czs-view-all:hover {
    color: #2563eb;
    opacity: .75;
    text-decoration: none;
}
.czs-view-all svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ----- Viewport: clips + fades edges ----- */
.czs-marquee-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 40px,
        #000 calc(100% - 40px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 40px,
        #000 calc(100% - 40px),
        transparent 100%
    );
}

/* ----- Track: the row that animates ----- */
.czs-marquee-track {
    display: flex;
    align-items: flex-start;
    width: max-content;
    gap: 56px;
    padding: 38px 28px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.czs-marquee-left {
    animation-name: czs-scroll-left;
}
.czs-marquee-right {
    animation-name: czs-scroll-right;
}

/* Pause on hover/focus for accessibility & usability */
.czs-marquee-viewport:hover .czs-marquee-track,
.czs-marquee-track:focus-within {
    animation-play-state: paused;
}

@keyframes czs-scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes czs-scroll-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* ================================================================
   BODY TYPE ITEMS — plain icon + label, no box
   ================================================================ */
.czs-marquee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    transition: transform .25s ease, opacity .25s ease;
}
.czs-marquee-item:hover {
    transform: translateY(-4px);
    opacity: .8;
    text-decoration: none;
}

.czs-bodytype-wrap .czs-marquee-item img {
    width: 120px;
    /*height: 64px;*/
    object-fit: contain;
    pointer-events: none;
}

.czs-marquee-label {
    font-size: .95rem;
    font-weight: 500;
    color: #1a2b45;
    text-align: center;
    white-space: nowrap;
}

/* ================================================================
   MAKE / BRAND ITEMS — logo only, no label/box
   ================================================================ */
.czs-make-wrap .czs-marquee-item--make {
    width: 90px;
    height: 56px;
    align-items: center;
    justify-content: center;
}
.czs-make-wrap .czs-marquee-item--make img {
    max-width: 90px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}
.czs-make-initial {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f2744;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f0f3fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .czs-section-title { font-size: 1.2rem; }
    .czs-section-header { margin-bottom: 14px; }
    .czs-view-all { font-size: .9rem; }
    .czs-view-all svg { width: 16px; height: 16px; }
    .czs-marquee-track { gap: 36px; }
    .czs-bodytype-wrap .czs-marquee-item img { width: 90px;}
    .czs-marquee-label { font-size: .85rem; }
    .czs-make-wrap .czs-marquee-item--make { width: 72px; height: 44px; }
    .czs-make-wrap .czs-marquee-item--make img { max-width: 72px; max-height: 44px; }
}

@media (max-width: 480px) {
    .czs-section-title { font-size: 1.05rem; }
    .czs-section-header { margin-bottom: 12px; }
    .czs-view-all { font-size: .82rem; }
    .czs-view-all svg { width: 14px; height: 14px; }
    .czs-marquee-track { gap: 24px; padding: 28px 16px; }
    .czs-bodytype-wrap .czs-marquee-item img { width: 90px; }
    .czs-marquee-label { font-size: .78rem; }
    .czs-make-wrap .czs-marquee-item--make { width: 60px; height: 38px; }
    .czs-make-wrap .czs-marquee-item--make img { max-width: 60px; max-height: 38px; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .czs-marquee-track {
        animation: none;
    }
    .czs-marquee-viewport {
        overflow-x: auto;
    }
}