/* ============================================
   Category Carousel — custom, no external lib
   ============================================ */

/* Outer wrapper: provides padding so arrows sit
   outside the visible image area                */
.cat-carousel-wrapper {
    position: relative;
    padding: 0 44px;
}

/* Clips the sliding track */
.cat-viewport {
    overflow: hidden;
}

/* Sliding track */
.cat-track {
    display: flex;
    transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Each slide: exactly 1/3 of the track width (desktop) */
.cat-slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 10px;
    box-sizing: border-box;
    cursor: pointer;
}

/* Image fills slide width, fixed height */
.cat-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.25s ease;
}

.cat-slide:hover .cat-img {
    transform: scale(1.03);
}

.cat-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 10px 0 2px;
    color: #1a1a1a;
}

.cat-sub {
    font-size: 0.82rem;
    color: #6c757d;
}

/* ── Arrow buttons ──────────────────────────────
   top: 100px = half of 200px image height
   transform: translateY(-50%) centers the 36px
   button on that line → perfectly on image center */
.cat-arrow {
    position: absolute;
    top: 100px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #333;
    z-index: 2;
    padding: 0;
    transition: box-shadow 0.2s ease;
}

.cat-arrow:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

/* Left arrow sits in the left 44px padding zone */
.cat-prev { left: 0; }

/* Right arrow sits in the right 44px padding zone */
.cat-next { right: 0; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .cat-slide   { flex: 0 0 50%; }
    .cat-img     { height: 150px; }
    .cat-arrow   { top: 75px; } /* 150px / 2 */
    .cat-heading { text-align: center; }
}

@media (max-width: 480px) {
    .cat-slide  { flex: 0 0 100%; }
    .cat-img    { height: 150px; }
}
