/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* ===== BODY ===== */
body {
    background: #760420 ;
    padding: 0;
}

/* ===== HEADER (STICKY NORMAL) ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 85px;

    background-image: url('img/bg-navbar.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* PENTING: batasi overlay hanya di header */
.header::before {
    content: "";
    position: absolute;
    inset: 0;

    /* gradient shadow overlay */
    background: linear-gradient(
        rgba(118, 4, 32, 0.7),
        rgba(118, 4, 32, 0.7)
    );

    /* shadow efek lembut */
    box-shadow: inset 0 -10px 25px rgba(0,0,0,0.30);

    z-index: 1;
}

/* BIAR ISI DI ATAS OVERLAY */
.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

/* LOGO */
.logo {
    position: absolute;
    top: 10px; /* biar nggak terlalu nempel */
    left: 50%;
    transform: translateX(-50%);
    height: 60px; /* ini yang bikin lebih kecil */
    width: auto;
    z-index: 10;

    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* ===== TITLE ===== */
h2 {
    margin: 25px 0 15px;
    font-size: 18px;
    color: white;
}

h3 {
    margin: 25px 0 15px;
    font-size: 18px;
    color: #444;
}

/* ===== KASIH JARAK DARI HEADER ===== */
form {
    margin-top: 15px;
}

/* ===== GRID 4 KOLOM ===== */
/* ===== GRID 4 KOLOM ===== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* ================= BEST SELLER ================= */

.best-title{
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 30px 20px 15px;
}

.best-seller-wrapper{
    overflow-x: auto;
    padding: 10px 20px 25px;
    scroll-behavior: smooth;
}

.best-seller{
    display: flex;
    gap: 20px;
    width: max-content;
}

.best-card{
    min-width: 220px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: 0.3s;
    position: relative;
}

.best-card:hover{
    transform: translateY(-5px) scale(1.02);
}

.best-card img{
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.best-info{
    padding: 15px;
    text-align: center;
}

.best-info h3{
    margin: 0;
    font-size: 20px;
    color: #8a3442;
}

.best-badge{
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(45deg,#ffb347,#ffcc33);
    color: #7a2f3b;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* scrollbar cantik */
.best-seller-wrapper::-webkit-scrollbar{
    height: 8px;
}

.best-seller-wrapper::-webkit-scrollbar-thumb{
    background: #c76a7c;
    border-radius: 20px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===== CARD (PERSEGI 1:1) ===== */
.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: 0.25s;

    display: flex;
    flex-direction: column;

    min-height: auto;
}

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

/* ===== IMAGE ===== */
.card img {
    width: 100%;
    height: 60%;
    object-fit: cover;
}

/* ===== TEXT ===== */
.card h3 {
    font-size: 15px;
    margin: 8px;
    color: #333;
}

.card p {
    font-size: 14px;
    margin: 0 8px 8px;
    color: #ff4d6d;
    font-weight: 600;
}

/* ===== COUNTER ===== */
.counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px;
    background: #f9fafc;
    padding: 6px;
    border-radius: 10px;
}

.counter button {
    width: 28px;
    height: 28px;
    border: none;
    background: #ff4d6d;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}

.counter button:hover {
    background: #e63e5c;
}
.counter input{
    width:70px;
    height:35px;

    text-align:center;

    border:1px solid #ccc;
    border-radius:10px;

    font-size:16px;
    font-weight:bold;

    outline:none;
    background:white;

    appearance: textfield;
    -moz-appearance: textfield;
}

/* hilangkan panah */
.counter input::-webkit-outer-spin-button,
.counter input::-webkit-inner-spin-button{
    -webkit-appearance:none;
    margin:0;
}

/* ===== BUTTON ===== */
.next-btn {
    width: 100%;
    margin-top: 40px;
    padding: 14px;

    background: linear-gradient(45deg, #8c2238, #c4455f); /* ?? sama kayak index */
    border: 2px solid rgba(255,255,255,0.25);

    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.3s ease;

    box-shadow: 
        0 6px 18px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.next-btn:hover {
    transform: translateY(-3px);

    background: linear-gradient(45deg, #c4455f, #e05c77);

    box-shadow: 
        0 10px 25px rgba(0,0,0,0.45),
        0 0 12px rgba(255, 120, 150, 0.4);
}
/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card{
        min-height: auto;
    }
}

@media (max-width: 480px) {

    form{
        margin: 10px;
    }

    .menu-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .card{
        width: 100%;
        min-height: auto;
        border-radius: 12px;
    }

    .card img{
        width: 100%;
        height: 110px;
        object-fit: cover;
    }

    .card h3{
        font-size: 13px;
        margin: 6px;
    }

    .card p{
        font-size: 12px;
        margin: 0 6px 6px;
    }

    .card .desc{
        font-size: 10px;
        margin: 0 6px 6px;
    }

    .counter{
        gap: 4px;
        padding: 4px;
        margin: 6px;
    }

    .counter button{
        width: 26px;
        height: 26px;
        font-size: 15px;
    }

    .counter input{
        width: 38px;
        height: 26px;
        font-size: 12px;
    }
}
/* ===== CHECKOUT LAYOUT ===== */
.checkout-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    padding: 40px 20px;
}

/* CARD */
.checkout-card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* LIST */
.order-list {
    list-style: none;
}

.order-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* TOTAL */
.total-box {
    border-top: 1px dashed #ddd;
    margin-top: 15px;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}

/* FORM */
.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* RADIO */
.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
}
#rekeningBox {
    display: none;
    margin-top: 10px;
}

/* ===== PAYMENT METHOD (RAPI & MODERN) ===== */
.payment-method {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.method-card {
    flex: 1;
    display: flex;
    align-items: center;

    gap: 6px; /* ?? diperkecil (tadi terlalu jauh) */

    background: #f9fafc;
    padding: 10px 12px; /* sedikit diperkecil */
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}
.method-card input {
    margin: 0;                  /* ?? hilangkan jarak aneh */
    accent-color: #ff4d6d;
    cursor: pointer;
    transform: scale(1.1); /* biar agak besar dikit */
}

.method-card span {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* hover */
.method-card:hover {
    background: #f1f3f8;
}

/* saat dipilih */
.method-card:has(input:checked) {
    border: 2px solid #ff4d6d;
    background: #fff0f3;
}
form {
    margin: 20px;
}

html, body {
    margin: 0;
    padding: 0;
}

.judul {
    color: white;       /* hitam */
    font-weight: 700;  /* bold */
    letter-spacing: 0.5px;
}
.counter{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:10px;
}

.counter button{
    width:35px;
    height:35px;
    border:none;
    border-radius:10px;
    background:#ff4d6d;
    color:white;
    font-size:20px;
    cursor:pointer;
}
.counter{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:10px;
}

.counter button{
    width:35px;
    height:35px;
    border:none;
    border-radius:10px;
    background:#ff4d6d;
    color:white;
    font-size:20px;
    cursor:pointer;
}

.counter input{
    width:70px;
    height:35px;
    text-align:center;
    border:1px solid #ccc;
    border-radius:10px;
    font-size:16px;
    font-weight:bold;
}

.card h3{
    margin: 10px 10px 2px;
    font-size: 16px;
    color: #333;
}

.card .desc{
    display: block;
    margin: 0 10px 8px;
    font-size: 12px;
    color: #777;
    font-weight: 400;
}

@media (max-width: 480px){

    .menu-grid{
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .counter button{
        width:26px !important;
        height:26px !important;
        font-size:14px !important;
    }

    .counter input{
        width:40px !important;
        height:26px !important;
        font-size:12px !important;
    }

}