/* ============================================
   MODULES/KATALOG_SLIDER_V2.CSS
   Slider katalog produk untuk index.php
   2 item per slide, image natural proporsi
   AD LASER WON — Level 2A CBSS, SMACSS V2 (PATENT 8.6)
   Updated: 1 Juni 2026 - Compact 2-per-slide
   ============================================ */

/* ===== SLIDER WRAPPER ===== */
.katalog-slider-wrap {
    margin: 16px 0 20px;
    position: relative;
}

.katalog-slider-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.katalog-slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* ===== TIAP SLIDE = 2 CARD (50% width each) ===== */
.katalog-slide {
    flex: 0 0 50%;
    padding: 6px;
    box-sizing: border-box;
}

.katalog-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Image area - aspect ratio 1:1 (kotak natural) */
.katalog-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #e0e8e7 0%, #d6e0df 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.katalog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.katalog-card-img .no-img {
    color: #aaa;
    font-size: 32px;
}

/* Info area - kompak */
.katalog-card-info {
    padding: 8px 10px;
    text-align: center;
    background: white;
}

.katalog-card-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.katalog-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #004d40;
}

/* ===== DOT INDICATORS ===== */
.katalog-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.katalog-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.katalog-dot.active {
    background: #004d40;
    width: 18px;
    border-radius: 3px;
}

/* ===== ARROW NAVIGATION ===== */
.katalog-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #004d40;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 5;
}

.katalog-arrow:hover { background: white; }
.katalog-arrow.prev { left: 8px; }
.katalog-arrow.next { right: 8px; }

/* ===== EMPTY & LOADING STATE ===== */
.katalog-slider-empty,
.katalog-slider-loading {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    background: #f5f5f5;
    border-radius: 12px;
    text-align: center;
    min-height: 120px;
}

.katalog-slider-empty i,
.katalog-slider-loading i {
    font-size: 32px;
    margin-bottom: 8px;
}
