/* GLOBAL SETTINGS */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    color: #334155;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.main-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 20px 0;
    box-sizing: border-box;
}

.header-nav {
    text-align: center;
    margin-bottom: 25px;
    padding: 0 15px;
}

.header-nav h2 {
    color: #1e3c72;
    margin: 0 0 5px 0;
    font-size: 26px;
    font-weight: 800;
}

.header-nav p {
    color: #64748b;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

/* SWIPER CONTAINER CONFIGURATION */
.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px;
}

/* UKURAN UTAMA KARTU (Sangat Pas untuk Layar Komputer Maupun HP) */
.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 360px;   /* Lebar proporsional kartu */
    height: 560px;  /* Tinggi pas agar konten tidak terpotong */
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

/* DESAIN STYLE COVER (DEPAN & BELAKANG) */
.card-cover {
    background: linear-gradient(135deg, #112233 0%, #1e3c72 100%);
    color: #ffffff;
}

.card-cover-back {
    background: linear-gradient(135deg, #1e3c72 0%, #112233 100%);
    color: #ffffff;
}

.cover-content {
    padding: 35px 25px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.badge-version {
    align-self: center;
    background-color: rgba(243, 156, 18, 0.2);
    border: 1px solid #f39c12;
    color: #f39c12;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.cover-center h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 2px;
}

.cover-center h3 {
    font-size: 16px;
    font-weight: 400;
    color: #f39c12;
    margin: 10px 0;
}

.line-gold {
    height: 4px;
    width: 50px;
    background-color: #f39c12;
    margin: 15px auto;
    border-radius: 2px;
}

.tagline {
    font-style: italic;
    color: #cbd5e1;
    font-size: 13px;
}

.swipe-indicator {
    font-size: 12px;
    color: #94a3b8;
    animation: bounce 2s infinite;
}

/* DESAIN ISI HALAMAN DALAM KARTU */
.card-page {
    background-color: #ffffff;
}

.page-inner {
    padding: 25px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
}

.section-title {
    color: #1e3c72;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 6px;
    margin: 0 0 12px 0;
}

.section-title i {
    color: #f39c12;
    margin-right: 5px;
}

.desc-text {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 15px 0;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.bullet-list li {
    font-size: 13px;
    margin-bottom: 8px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bullet-list li i {
    color: #27ae60;
}

/* BINGKAI GAMBAR KONTEN */
.img-frame {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    background-color: #f8fafc;
    margin-top: auto; /* Memaksa penempatan rapi di bawah */
}

.mini-frame {
    height: 120px;
    margin-top: 0;
    margin-bottom: 12px;
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mini-frame img {
    object-fit: contain;
    padding: 5px;
}

.img-caption {
    background-color: #1e3c72;
    color: #fff;
    font-size: 11px;
    padding: 8px;
    text-align: center;
    font-weight: 500;
}

/* TABEL SPESIFIKASI MINI */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 12px;
}

.spec-table td {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.spec-table td:first-child {
    color: #94a3b8;
    width: 35%;
}

.spec-table td:last-child {
    color: #1e3c72;
    font-weight: 600;
}

/* BOX KOMPONEN DAFTAR HARGA */
.price-box {
    background-color: #f8fafc;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin-bottom: 15px;
}

.price-box.premium-box {
    background-color: #fff9f4;
    border-left-color: #e67e22;
}

.box-head {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #475569;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin: 4px 0;
}

.price-row strong {
    color: #27ae60;
}

.note-tax, .alert-color-text {
    font-size: 10px;
    color: #94a3b8;
    display: block;
    margin-top: 4px;
}

.alert-color-text { color: #e67e22; font-weight: 500; }

/* LABEL HIGHLIGHT BEST SELLER */
.best-seller-tag {
    position: absolute;
    top: 20px; right: 25px;
    background-color: #e67e22;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 5;
}

/* TOMBOL DIRECT WHATSAPP */
.btn-whatsapp {
    display: block;
    text-align: center;
    background-color: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
    margin-top: auto;
}

.btn-whatsapp:hover {
    background-color: #20ba59;
}

/* ELEMEN COVER BELAKANG */
.company-brand {
    font-size: 26px;
    font-weight: 800;
    margin: 10px 0;
}

.address-desc {
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.contact-list-box {
    background-color: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 15px;
    text-align: left;
    margin-bottom: 25px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.contact-row:last-child { border: none; }
.contact-row i { color: #f39c12; font-size: 15px; }

.badges-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.badges-row span {
    background-color: #27ae60;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
}

/* WARNA INTERFACES SWIPER (PANAH & PAGINATION) */
.swiper-button-next, .swiper-button-prev { color: #1e3c72 !important; }
.swiper-pagination-bullet-active { background: #1e3c72 !important; }

/* ANIMASI DEF */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
    40% { transform: translateX(-5px); }
    60% { transform: translateX(-3px); }
}

/* KONDISI RESPONSIVE LAYAR KECIL (HANDPHONE) */
@media (max-width: 480px) {
    .swiper-slide {
        width: 290px;  /* Mengecilkan lebar kartu sedikit agar pas di HP layar kecil */
        height: 520px; /* Menurunkan tinggi proporsional */
    }
    .header-nav h2 { font-size: 20px; }
    .swiper-button-next, .swiper-button-prev { display: none !important; } /* Sembunyikan panah di HP agar bersih */
}

/* ==========================================================================
   TAMBAHAN STYLE UNTUK GRID GALERI 4 KOTAK GAMBAR (HALAMAN 4)
   ========================================================================== */
.photo-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Membagi menjadi 2 kolom sama rata */
    grid-template-rows: repeat(2, 95px);    /* Mengunci tinggi baris agar pas di dalam kartu */
    gap: 8px;                             /* Jarak antar kotak gambar */
    margin: 5px 0 12px 0;
    width: 100%;
}

.grid-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.grid-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan foto penuh tanpa merusak rasio gambar */
    display: block;
    transition: transform 0.3s ease;
}

/* Efek hover halus saat pengguna melihat katalog */
.grid-box:hover img {
    transform: scale(1.06);
}

/* Label text kecil transparan di pojok bawah gambar untuk memperjelas */
.box-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #ffffff;
    font-size: 9px;
    padding: 4px 6px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Penyesuaian responsif untuk ukuran HP agar tidak terlalu padat */
@media (max-width: 480px) {
    .photo-grid-container {
        grid-template-rows: repeat(2, 80px); /* Menurunkan tinggi sedikit di HP agar tombol WA aman */
        gap: 6px;
    }
}