:root {
    --primary: #d32f2f;
    --secondary: #ffc107;
    --light: #f4f4f4;
    --dark: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    margin: 0;
    color: var(--dark);
}

header {
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Grid Katalog Produk */
.grid-produk {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 180px;
    background-color: #ddd;
    object-fit: cover;
}

.card-body {
    padding: 15px;
    flex-grow: 1;
}

.card-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--primary);
}

.harga {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2e7d32;
}

.card-footer {
    padding: 15px;
    background: #fafafa;
}

input[type="text"] {
    width: 90%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-beli {
    display: block;
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-beli:hover {
    background: #b71c1c;
}

/* Update CSS Universal */
body {
    background-color: #f8f9fa; /* Abu-abu sangat muda agar kartu putih terlihat menonjol */
}

/* Kustomisasi Kartu Konfirmasi */
.confirm-card {
    max-width: 650px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #eee;
}

.confirm-header {
    background-color: var(--primary);
    color: white;
    padding: 25px;
    text-align: center;
}

.confirm-header h2 { margin: 0; font-size: 1.6rem; }
.confirm-header p { margin: 5px 0 0; opacity: 0.8; font-size: 0.9rem; }

.confirm-body { padding: 30px; }

/* Section Produk */
.product-summary {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #fff8f8; /* Merah muda sangat muda */
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #ffebec;
    margin-bottom: 25px;
}

.summary-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.summary-text h3 { margin: 0; font-size: 1.3rem; color: var(--dark); }
.level-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--dark);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 8px 0;
}
.summary-price { font-size: 1.2rem; font-weight: bold; color: #2e7d32; }

/* Section Estimasi */
.delivery-estimate {
    background: #e3f2fd; /* Biru muda */
    color: #1565c0; /* Biru tua */
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 25px;
    border: 1px solid #bbdefb;
}

/* Section Detail Penerima */
.details-section {
    border-top: 2px solid #f1f1f1;
    padding-top: 20px;
    margin-bottom: 25px;
}

.details-section h4 { margin: 0 0 15px; color: #555; }

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.detail-label { color: #888; font-weight: 500; }
.detail-value { text-align: right; font-weight: 600; color: var(--dark); max-width: 65%; }

/* Section Total & Tombol */
.final-total {
    background: #fafafa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.total-label { font-size: 1rem; color: #777; margin-bottom: 5px; }
.total-amount { font-size: 2rem; font-weight: 800; color: var(--primary); }

.btn-pay {
    display: block;
    width: 100%;
    background: #2e7d32; /* Hijau Sukses */
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-pay:hover { background: #1b5e20; }