/* ============================================
   PRODUCT SECTION CSS — Contoh UI
   Triple A-Tech | Dark Theme
   ============================================ */

/* ===== SECTION ===== */
.product-section {
    padding: 6rem 0;
    background: #0a0e14;
    position: relative;
    overflow: hidden;
    /* Tidak ada min-height — height mengikuti konten */
}

/* ===== CAROUSEL WRAPPER ===== */
.product-carousel-wrap {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ===== TRACK ===== */
.product-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1.5rem;
    scroll-behavior: smooth;
}

.product-carousel-track::-webkit-scrollbar {
    display: none;
}

/* ===== CARD ===== */
.product-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Card Header */
.product-card-header {
    padding: 1.75rem 2rem 1rem;
    text-align: center;
}

.product-card-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
}

.badge-booking {
    background: rgba(52, 152, 219, 0.15);
    color: #5dade2;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge-school {
    background: rgba(155, 89, 182, 0.15);
    color: #bb8fce;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.badge-ecom {
    background: rgba(46, 204, 113, 0.15);
    color: #58d68d;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.product-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.4rem;
    letter-spacing: -0.5px;
}

.product-card-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.6;
}

/* Card Body */
.product-card-body {
    padding: 0 2rem 2rem;
}

/* ===== NAV BUTTONS ===== */
.product-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 20, 30, 0.9);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.product-nav:hover {
    background: #3498db;
    color: #ffffff;
    border-color: #3498db;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.4);
}

.product-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.product-nav-prev { left: 0; }
.product-nav-next { right: 0; }

/* ===== DOTS (utama) ===== */
.product-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.product-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.product-dots .dot.active {
    width: 24px;
    border-radius: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

/* ============================================================
   INNER CAROUSEL (per card)
   ============================================================ */
.inner-carousel {
    position: relative;
}

.inner-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    scroll-behavior: smooth;
    border-radius: 12px;
}

.inner-track::-webkit-scrollbar {
    display: none;
}

.inner-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
}

/* Inner dots */
.inner-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
}

.inner-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.inner-dots .dot.active {
    width: 18px;
    border-radius: 3px;
    background: #3498db;
}

/* ============================================================
   MOCKUP BROWSER FRAME
   ============================================================ */
.mockup-frame {
    background: #0f1419;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    background: #1a1f2b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-bar .dot-red,
.mockup-bar .dot-yellow,
.mockup-bar .dot-green {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mockup-bar .dot-red { background: #ff5f57; }
.mockup-bar .dot-yellow { background: #febc2e; }
.mockup-bar .dot-green { background: #28c840; }

.mockup-url {
    margin-left: 0.75rem;
    flex: 1;
    padding: 0.25rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== MOCKUP BODY — full image, tanpa crop ===== */
.mockup-body {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f1419;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-body img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* ← contain = full image, tidak terpotong */
    display: block;
    background: #0f1419;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .product-section {
        padding: 3rem 0;
    }

    .product-carousel-wrap {
        padding: 0;
    }

    .product-nav {
        display: none;
    }

    .product-card-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }

    .product-card-body {
        padding: 0 1.25rem 1.25rem;
    }

    .product-card-title {
        font-size: 1.15rem;
    }

    .product-card-desc {
        font-size: 0.8rem;
    }

    .product-dots {
        margin-top: 1.25rem;
    }

    .mockup-body {
        aspect-ratio: 16 / 10;   /* tetap 16:10 di mobile */
    }
}

@media (max-width: 480px) {
    .product-card-header {
        padding: 1rem 1rem 0.5rem;
    }

    .product-card-body {
        padding: 0 1rem 1rem;
    }

    .product-card-title {
        font-size: 1rem;
    }

    .product-card-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.7rem;
    }
}