/* =========================================
   BAGIAN PRODUK
========================================= */
.produk {
    background-color: #121D23;
    padding: 130px 40px 70px;
}

.produk h1 {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 35px;
}

/* =========================================
   GRID PRODUK
========================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   POPUP CLOSE MOBILE FIX
========================================= */
@media (max-width: 480px) {
    .popup-close-btn {
        position: relative;
        left: 120px;
        top: 100px;
        font-size: 12px;
    }
}

/* =========================================
   CARD PRODUK
========================================= */
.product-card {
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #1B262C;
    box-shadow: 0 4px 12px var(--color-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Poppins', sans-serif;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--color-shadow);
}

.card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    font-family: "Inter";
    margin-bottom: 8px;
}

.card-description {
    font-size: 14px;
    color: #CECECE;
    line-height: 1.4;
    margin-bottom: 15px;
    min-height: 40px;
}

.card-price-container {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-bottom: 15px;
}

.card-price {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.card-btn-pesan {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    background-color: #E2C9B0;
    color: #121D2F;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s ease;
    font-family: "Inter";
}

.card-btn-pesan:hover {
    background-color: #f2e0ce;
    color: #5f646b;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* =========================================
   POPUP PRODUK
========================================= */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-box {
    width: 300px;
    background: #1B262C;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    font-family: 'Inter', sans-serif;
    animation: fadeIn 0.25s ease;
}

.popup-close-btn {
    position: relative;
    top: 4px;
    left: 140px;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    z-index: 10;
    transition: 0.2s;
}

.popup-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.popup-box h2 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 2px;
    margin-bottom: 4px;
}

.popup-price {
    font-size: 16px;
    margin: 6px 0 12px;
    color: #E2C9B0;
}

.popup-order-btn,
.popup-addcart-btn {
    width: 100%;
    padding: 9px;
    border-radius: 8px;
    margin-top: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.popup-order-btn {
    background: #E2C9B0;
    color: #121D23;
}

.popup-addcart-btn {
    background: transparent;
    border: 2px solid #E2C9B0;
    color: #E2C9B0;
}

.popup-addcart-btn:hover {
    background-color: #E2C9B0;
    color: #121D23;
    transform: translateY(-2px);
    transition: 0.25s ease;
}

.popup-qris {
    width: 120px;
    margin: 12px auto 0;
    display: block;
    border-radius: 8px;
}

@keyframes fadeIn {
    from { transform: scale(.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* =========================================
   CART SIDEBAR
========================================= */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    height: 100%;
    background: #fff;
    padding: 20px;
    z-index: 1001;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    overflow-y: auto;
    transition: 0.3s ease;
}

.cart-sidebar.active {
    right: 0;
}

.cart-close-btn {
    position: absolute;
    top: 75px;
    right: 18px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    transition: 0.2s;
}

@media (max-width: 480px) {
    .cart-close-btn {
        top: 60px;
        right: 15px;
        font-size: 30px;
    }
}

.cart-close-btn:hover {
    color: #ff4444;
}

.cart-sidebar h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 8px;
}

.cart-item img {
    width: 55px;
    height: 55px;
    border-radius: 6px;
}

.btn-whatsapp {
    width: 100%;
    padding: 12px;
    background-color: #f2e0ce;
    color: #121D23;
    font-family: "inter";
    border: none;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 20px;
}

.btn-whatsapp:hover {
    background-color: #CECECE;
}

#popupDesc {
    display: none !important;
}

/* =========================================
   FONT SETTINGS
========================================= */
.cart-btn,
#cartCount,
.popup-addcart-btn,
.popup-order-btn,
.cart-item h4,
.cart-item p,
.cart-item strong,
.item-controls button,
.item-controls .remove-btn,
#orderNow {
    font-family: "Segoe UI", sans-serif !important;
}

#cartTotal,
#cartTotal strong,
.item-quantity,
#popupTitle,
#popupPrice {
    font-family: "Inter", sans-serif !important;
}
/* ============================
   MOBILE CART FIX & CLEAN UI
=============================== */

.cart-container {
    padding: 16px;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-details {
    flex-grow: 1;
}

.cart-details h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.cart-price {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.qty-control button {
    width: 28px;
    height: 28px;
    border: none;
    background: #ddd;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
}

.remove-btn {
    color: red;
    font-size: 14px;
}

.subtotal {
    font-weight: 600;
    margin-top: 6px;
}

/* TOTAL SECTION */
.total-section {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 2px solid #000;
}

.total-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.popup-qris {
    width: 150px;     /* ukuran bisa kamu ganti */
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 10px;
}
#qrisBox img {
    width: 150px;   /* perbesar/perkecil sesuai kebutuhan */
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 10px;
}
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 998;
}

.cart-overlay.active {
    display: block;
}


