/* ==================================================
   RESET & GLOBAL
================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
}

/* ==================================================
   CONTAINER
================================================== */
#main {
    width: 1000px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

/* ==================================================
   HEADER
================================================== */
.header {
    border-bottom: 4px solid #c30;
    padding: 15px 20px;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: none;
}

.menu {
    display: flex;
    list-style: none;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
}

.menu li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    background: #222;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 10px;
}

/* ==================================================
   LAYOUT
================================================== */
#konten {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.kiri {
    width: 220px;
    flex-shrink: 0;
}

.tengah {
    flex: 1;
    min-width: 0;
}

.kanan {
    width: 230px;
    flex-shrink: 0;
}

/* ==================================================
   SIDEBAR
================================================== */
.background_pjg {
    background: #222;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    font-size: 12px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.menu-sidebar {
    list-style: none;
}

.menu-sidebar li a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: all 0.2s ease;
}

.menu-sidebar li a:hover {
    color: #c30;
    padding-left: 6px;
}

/* ==================================================
   PRODUK GRID (FIX TOTAL)
================================================== */
.list_produk {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.box_produk {
    width: calc(33.333% - 10px);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    position: relative;
    transition: all 0.25s ease;
}

.box_produk:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* WRAPPER GAMBAR */
.box_produk .thumb {
    width: 100%;
    height: 180px; /* TINGGI TERKUNCI */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 10px;
}

/* FIX <a> */
.box_produk .thumb a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* FIX GAMBAR */
.box_produk .thumb img {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* INFO PRODUK */
.nama_produk {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    height: 38px;
    overflow: hidden;
    margin: 6px 0;
}

.harga {
    color: #c30;
    font-weight: bold;
    margin-bottom: 10px;
}

.btn-detail {
    display: block;
    background: #c30;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}

/* ==================================================
   DETAIL PRODUK
================================================== */
.detail-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.gambar-utama-box {
    height: 350px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gambar-utama-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==================================================
   DESKRIPSI PRODUK
================================================== */
.deskripsi-produk {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 30px 0;
}

.deskripsi-isi {
    padding: 15px;
    font-size: 14px;
    line-height: 1.8;
}

/* ==================================================
   FOOTER
================================================== */
#footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 30px;
}

/* ================= FIX MUTLAK FOTO PRODUK LIST ================= */

/* canvas produk */
.box_produk .thumb {
    width: 100%;
    aspect-ratio: 1 / 1;          /* KUNCI RASIO (PENTING) */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    border-radius: 8px;
}

/* anchor tidak ikut ngatur ukuran */
.box_produk .thumb a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* gambar benar-benar terkunci */
.box_produk .thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

/* ================= FIX FOTO DETAIL PRODUK ================= */

.gambar-utama-box {
    width: 100%;
    aspect-ratio: 1 / 1;          /* RASIO TENANG */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* gambar utama */
.gambar-utama-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

/* ==================================================
   HARD RESET GAMBAR PRODUK (ANTI BERANTAKAN)
================================================== */

/* PRODUK LIST */
.box_produk img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block;
}

/* KOTAK PRODUK */
.box_produk .thumb {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* LINK DI DALAM THUMB */
.box_produk .thumb a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* DETAIL PRODUK */
.gambar-utama-box {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    overflow: hidden !important;
}

.gambar-utama-box img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

/* ==================================================
   FIX TOTAL FOTO DETAIL PRODUK
================================================== */

/* KANVAS GAMBAR UTAMA */
.gambar-utama-box {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;   /* RASIO STABIL */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

/* GAMBAR UTAMA */
.gambar-utama-box img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    transition: opacity 0.25s ease;
}

/* ================= THUMBNAIL ================= */

.thumbnail {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.thumb-item {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumb-item:hover {
    border-color: #c30;
    transform: scale(1.05);
}

.thumb-item.active {
    border-color: #c30;
}


/* ==================================================
   BOX REKENING PEMBAYARAN
================================================== */

.rekening-box {
    background: linear-gradient(135deg, #fafafa, #ffffff);
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rekening-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* nama bank */
.rekening-bank {
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
}

/* nomor rekening (highlight utama) */
.rekening-nomor {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #c30;
    margin: 6px 0;
}

/* nama pemilik */
.rekening-nama {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================= BRAND / KATEGORI ================= */

.menu-sidebar li a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #333;
    padding: 8px 4px;
    border-bottom: 1px dashed #eee;
    transition: all 0.25s ease;
}

.menu-sidebar li a:hover {
    color: #c30;
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(195,48,0,0.05), transparent);
}

/* ================= JAM OPERASIONAL ================= */

.jam-box {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}

.jam-box h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: #333;
}

.jam-box p {
    font-size: 13px;
    color: #555;
    margin: 4px 0;
    line-height: 1.5;
}

.jam-box span {
    color: #c30;
    font-weight: 600;
}

/* ================= NEWS FRONTEND ================= */

.news-wrapper {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 25px;
}

.news-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}

/* Judul news */
.news-judul {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

/* tanggal posting */
.news-meta {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

/* isi news */
.news-isi {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

/* ===== DETAIL PRODUK FIX ===== */
.kotak_detail {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
}

/* Judul produk */
.produk-judul {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Info status */
.info-status p {
    font-size: 13px;
    margin: 4px 0;
    color: #555;
}

/* ===== TOMBOL WHATSAPP ===== */
.btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: linear-gradient(135deg, #25D366, #1ebe5d);
    color: #fff;
    padding: 14px;
    margin-top: 18px;

    font-size: 14px;
    font-weight: bold;
    text-decoration: none;

    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37,211,102,0.35);
}

/* ===== FIX DETAIL LAYOUT ===== */
.detail-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.kotak_detail {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

/* ===== TOMBOL WHATSAPP SUPER FIX ===== */
.btn-wa {
    margin-top: 20px;
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #25D366, #1ebe5d);
    color: #fff;

    padding: 15px;
    font-size: 15px;
    font-weight: 700;

    border-radius: 10px;
    text-decoration: none;
    box-sizing: border-box;

    transition: all 0.25s ease;
}

.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

/* ================= FIX JUDUL BRANDS DESKTOP ================= */
.background_pjg {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Desktop: dropdown header disembunyikan */
.brands-header {
    display: none;
}
