/* ===============================
   RESET
================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: radial-gradient(circle at top, #111, #000);
    color: #fff;
    min-height: 100vh;
}

/* ===============================
   CONTAINER
================================ */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px 80px;
}

/* ===============================
   HEADER
================================ */
h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 6px;
    letter-spacing: .3px;
}

.subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 24px;
}

/* ===============================
   CATEGORY
================================ */
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.category-card {
    background: linear-gradient(180deg, #1b1b1b, #141414);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    color: #f5c542;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
    transition: transform .18s ease, box-shadow .18s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.55);
}

/* ===============================
   BACK LINK
================================ */
.back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: #f5c542;
    text-decoration: none;
}

/* ===============================
   PRODUCT LIST
================================ */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-card {
    background: linear-gradient(180deg, #1a1a1a, #121212);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.5);
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.6);
}

/* ===============================
   PRODUCT IMAGE (1:1 SQUARE)
================================ */
.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;          /* kunci 1x1 */
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
    background: #0f0f0f;
    display: block;
    transition: transform .25s ease;
}

.product-card:hover .product-img {
    transform: scale(1.04);
}

/* ===============================
   PRODUCT TEXT
================================ */
.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-price {
    color: #00e676;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ===============================
   BUTTON
================================ */
button {
    background: linear-gradient(180deg, #ffd966, #f5c542);
    color: #000;
    border: none;
    padding: 11px 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
    transition: transform .15s ease, box-shadow .15s ease;
}

button:active {
    transform: scale(0.98);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* ===============================
   FLOATING CART
================================ */
#floating-cart {
    position: fixed;
    right: 16px;
    bottom: 20px;
    background: linear-gradient(180deg, #ffd966, #f5c542);
    color: #000;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.5);
    z-index: 9999;
}

#floating-cart span {
    background: #000;
    color: #f5c542;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* ===============================
   BANNER (FIX NO WHITE FRAME)
================================ */
.banner {
    margin-bottom: 20px;
    border-radius: 18px;
    overflow: hidden; /* WAJIB: potong area luar gambar */
    box-shadow: 0 14px 30px rgba(0,0,0,0.5);
}

.banner img {
    width: 100%;
    height: auto;        /* ikut tinggi gambar */
    display: block;      /* hilangkan gap putih bawah */
}


/* ===============================

/* ===============================
   BUTTON LINK
================================ */
.btn-primary,
.btn-secondary {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
}

.btn-primary {
    background: linear-gradient(180deg, #ffd966, #f5c542);
    color: #000;
}

.btn-secondary {
    background: #1a1a1a;
    color: #f5c542;
}

/* ===============================
   CART
================================ */
.cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cart-subtotal {
    color: #00e676;
    font-weight: 600;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 16px;
}

hr {
    border: none;
    border-top: 1px solid #333;
    margin: 14px 0;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-controls a {
    text-decoration: none;
    background: #2a2a2a;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
}

.cart-controls a.remove {
    background: #3a1c1c;
    color: #ffb3b3;
}

.cart-controls span {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

/* ===============================
   FORM
================================ */
form.card {
    display: flex;
    flex-direction: column;
}

form.card input,
form.card select {
    margin-bottom: 12px;
}

/* ===============================
   FORCE INPUT CHECKOUT WHITE
================================ */
input,
select,
textarea {
    background: #ffffff !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    border: 1px solid #ccc;
}

input:focus,
select:focus,
textarea:focus {
    background: #ffffff !important;
    color: #000000 !important;
    outline: none;
    border-color: #f5c542;
}

input::placeholder,
textarea::placeholder {
    color: #666666;
}

.checkout-page input,
.checkout-page select,
.checkout-page textarea {
    background: #ffffff !important;
    color: #000000 !important;
}

#changeBox {
    background: #f1f1f1;
    color: #000;
    padding: 10px 12px;
    border-radius: 10px;
}
