/* ==================== GLOBAL & LAYOUT ==================== */

:root {
    --font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --primary-color-active: #247d9f;
    --text-light: #ffffff;
    --text-light-secondary: #e0f7fa;
    --text-dark: #333;
    --surface-glass: rgba(255, 255, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --radius-large: 20px;
    --radius-medium: 16px;
    --radius-small: 12px;
}

body {
    margin: 0;
    font-family: var(--font-family);
}

.custom-background-wrapper {
    background-image: url('https://images.unsplash.com/photo-1553095066-5014bc7b7f2d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1771&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 40px 15px; /* Padding vertikal & horizontal untuk wrapper */
    box-sizing: border-box;
}

.content-container {
    max-width: 1200px;
    margin-inline: auto; /* Pengganti margin-left/right: auto */
    padding: 24px;
    background: var(--surface-glass);
    border-radius: var(--radius-large);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.product-tabs-container {
    margin-top: 30px;
}

/* ==================== BAGIAN LAYANAN UNGGULAN ==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    text-align: center;
}

.service-card {
    background: linear-gradient(135deg, rgba(109, 213, 237, 0.25), rgba(33, 147, 176, 0.1));
    border-radius: var(--radius-medium);
    padding: 30px 24px;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(33, 147, 176, 0.3);
}

.card-icon img {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.8rem;
    color: var(--text-light-secondary);
    line-height: 1.6;
}

/* ==================== BAGIAN PRODUK (SLIDER) ==================== */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tab-btn:hover { background: rgba(255, 255, 255, 0.4); }

.tab-btn.active {
    background: var(--primary-color-active);
    border-color: var(--primary-color-active);
    box-shadow: 0 0 15px rgba(36, 125, 159, 0.4);
}

.products-wrapper { position: relative; }

.product-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 2px 20px 2px;
    scrollbar-width: none; /* Firefox */
}
.product-list::-webkit-scrollbar { display: none; /* Chrome, Safari */ }

.product-card {
    flex: 0 0 200px;
    background: var(--text-light);
    border-radius: var(--radius-small);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.product-image-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-info { padding: 12px; }

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: #d9534f;
    margin: 0 0 6px;
}

.product-rating { font-size: 13px; color: #ffc107; }
.product-rating span { color: #6c757d; font-weight: 400; }

.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.products-wrapper:hover .arrow-btn {
    opacity: 1;
    visibility: visible;
}

.arrow-left { left: 10px; }
.arrow-right { right: 10px; }

.arrow-btn:hover {
    background: var(--text-light);
    transform: translateY(-60%) scale(1.1);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ==================== PENYESUAIAN RESPONSIVE ==================== */
@media (max-width: 768px) {
    .custom-background-wrapper { padding: 20px 15px; }
    .content-container { padding: 20px; }
    .tab-btn { font-size: 13px; padding: 8px 14px; }
    .product-card { flex: 0 0 160px; } /* Ukuran kartu sedikit lebih kecil di tablet */
    .arrow-btn { display: none; } /* Sembunyikan panah di mobile, swipe lebih natural */
}

@media (max-width: 480px) {
    .content-container { padding: 16px; }
    .product-card { flex: 0 0 140px; } /* Ukuran kartu untuk mobile */
}
