* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, #3b0000, transparent 35%),
        radial-gradient(circle at bottom left, #180000, transparent 40%),
        #070707;
    color: #f5f5f5;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: rgba(10, 10, 10, .92);
    border-bottom: 1px solid #ff2020;
    box-shadow: 0 0 25px rgba(255, 0, 0, .25);
    backdrop-filter: blur(12px);
}

.brand {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow:
        0 0 8px #ff0000,
        0 0 20px #ff0000;
}

.nav-btn {
    padding: 10px 16px;
    border: 1px solid #ff2020;
    border-radius: 10px;
    background: #160000;
    color: #fff;
    transition: .2s;
}

.nav-btn:hover {
    background: #ff1010;
    box-shadow: 0 0 18px #ff0000;
}

.admin-container {
    width: min(1100px, 94%);
    margin: 35px auto;
}

.admin-box {
    margin-bottom: 25px;
    padding: 25px;
    background: rgba(18, 18, 18, .88);
    border: 1px solid #3b1616;
    border-radius: 18px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, .45),
        0 0 20px rgba(255, 0, 0, .06);
}

.admin-box h1 {
    margin-top: 0;
    font-size: 30px;
}

.admin-box h2 {
    margin-top: 0;
    color: #ff3131;
}

.admin-box p {
    color: #aaa;
}

.admin-box input,
.admin-box textarea {
    width: 100%;
    margin: 7px 0;
    padding: 13px 14px;
    color: #fff;
    background: #090909;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    outline: none;
}

.admin-box input:focus,
.admin-box textarea:focus {
    border-color: #ff2525;
    box-shadow: 0 0 10px rgba(255, 0, 0, .2);
}

.admin-box textarea {
    min-height: 100px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 12px 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        #ff0000,
        #8b0000
    );
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 0, 0, .25);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(255, 0, 0, .5);
}

.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    margin: 2px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #171717;
    color: #fff;
    cursor: pointer;
}

.small-btn:hover {
    border-color: #ff2525;
}

.small-btn.delete {
    border-color: #7a1515;
    color: #ff6666;
}

.hidden {
    display: none !important;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-box {
    display: none;
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 10px;
    background: #142614;
    border: 1px solid #2d7a2d;
    color: #8cff8c;
}

.status-box.show {
    display: block;
}

.status-box.error {
    background: #2a0909;
    border-color: #8b2020;
    color: #ff7777;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 10px;
    text-align: left;
    border-bottom: 1px solid #292929;
}

th {
    color: #ff3838;
    background: #100000;
}

td {
    color: #ddd;
}

td small {
    display: block;
    margin-top: 5px;
    color: #888;
}

@media (max-width: 650px) {

    .topbar {
        padding: 13px 15px;
    }

    .brand {
        font-size: 18px;
    }

    .admin-container {
        width: 94%;
        margin: 20px auto;
    }

    .admin-box {
        padding: 18px;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    th,
    td {
        white-space: nowrap;
    }
}
<!DOCTYPE html>
<html lang="id">

<head>
    <meta charset="UTF-8">

    <meta
        name="viewport"
        content="width=device-width, initial-scale=1.0"
    >

    <meta
        name="description"
        content="XIZA STORE - Toko online"
    >

    <title>XIZA STORE</title>

    <link
        rel="stylesheet"
        href="style.css"
    >
</head>

<body>

<header class="topbar">

    <div class="brand">
        ⚡ XIZA STORE
    </div>

    <div class="top-actions">

        <button
            class="nav-btn"
            onclick="openCart()"
        >
            🛒 Keranjang
            <span id="cartCount">0</span>
        </button>

        <a
            href="/admin.html"
            class="nav-btn"
        >
            🔐 Admin
        </a>

    </div>

</header>


<main>

    <section class="hero">

        <div class="hero-content">

            <p class="hero-label">
                ⚡ XIZA STORE ONLINE
            </p>

            <h1>
                BELANJA CEPAT.
                <span>AMAN.</span>
            </h1>

            <p>
                Pilih produk yang kamu butuhkan
                dan lakukan pemesanan dengan mudah.
            </p>

            <a
                href="#produk"
                class="hero-btn"
            >
                🛍 Lihat Produk
            </a>

        </div>

    </section>


    <section
        id="produk"
        class="store"
    >

        <div class="store-header">

            <div>

                <p class="section-label">
                    XIZA STORE
                </p>

                <h2>
                    Produk Kami
                </h2>

            </div>

            <input
                id="search"
                type="search"
                placeholder="🔎 Cari produk..."
            >

        </div>


        <div
            id="categories"
            class="categories"
        ></div>


        <div
            id="products"
            class="products"
        >

            <div class="loading">
                Memuat produk...
            </div>

        </div>

    </section>

</main>


<!-- CART -->

<div
    id="overlay"
    class="overlay"
    onclick="closeCart()"
></div>


<aside
    id="cart"
    class="cart"
>

    <div class="cart-header">

        <h2>
            🛒 Keranjang
        </h2>

        <button
            onclick="closeCart()"
            class="close-btn"
        >
            ×
        </button>

    </div>


    <div
        id="cartItems"
        class="cart-items"
    ></div>


    <div class="cart-footer">

        <div class="cart-total">

            <span>Total</span>

            <strong id="cartTotal">
                Rp0
            </strong>

        </div>

        <button
            class="checkout-btn"
            onclick="checkout()"
        >
            💬 Pesan via WhatsApp
        </button>

    </div>

</aside>


<footer>

    <strong>
        ⚡ XIZA STORE
    </strong>

    <p>
        Toko online sederhana untuk kebutuhan kamu.
    </p>

    <small>
        © 2026 XIZA STORE
    </small>

</footer>


<script src="app.js"></script>

</body>
</html><!DOCTYPE html>
<html lang="id">

<head>
    <meta charset="UTF-8">

    <meta
        name="viewport"
        content="width=device-width, initial-scale=1.0"
    >

    <meta
        name="description"
        content="XIZA STORE - Toko online"
    >

    <title>XIZA STORE</title>

    <link
        rel="stylesheet"
        href="style.css"
    >
</head>

<body>

<header class="topbar">

    <div class="brand">
        ⚡ XIZA STORE
    </div>

    <div class="top-actions">

        <button
            class="nav-btn"
            onclick="openCart()"
        >
            🛒 Keranjang
            <span id="cartCount">0</span>
        </button>

        <a
            href="/admin.html"
            class="nav-btn"
        >
            🔐 Admin
        </a>

    </div>

</header>


<main>

    <section class="hero">

        <div class="hero-content">

            <p class="hero-label">
                ⚡ XIZA STORE ONLINE
            </p>

            <h1>
                BELANJA CEPAT.
                <span>AMAN.</span>
            </h1>

            <p>
                Pilih produk yang kamu butuhkan
                dan lakukan pemesanan dengan mudah.
            </p>

            <a
                href="#produk"
                class="hero-btn"
            >
                🛍 Lihat Produk
            </a>

        </div>

    </section>


    <section
        id="produk"
        class="store"
    >

        <div class="store-header">

            <div>

                <p class="section-label">
                    XIZA STORE
                </p>

                <h2>
                    Produk Kami
                </h2>

            </div>

            <input
                id="search"
                type="search"
                placeholder="🔎 Cari produk..."
            >

        </div>


        <div
            id="categories"
            class="categories"
        ></div>


        <div
            id="products"
            class="products"
        >

            <div class="loading">
                Memuat produk...
            </div>

        </div>

    </section>

</main>


<!-- CART -->

<div
    id="overlay"
    class="overlay"
    onclick="closeCart()"
></div>


<aside
    id="cart"
    class="cart"
>

    <div class="cart-header">

        <h2>
            🛒 Keranjang
        </h2>

        <button
            onclick="closeCart()"
            class="close-btn"
        >
            ×
        </button>

    </div>


    <div
        id="cartItems"
        class="cart-items"
    ></div>


    <div class="cart-footer">

        <div class="cart-total">

            <span>Total</span>

            <strong id="cartTotal">
                Rp0
            </strong>

        </div>

        <button
            class="checkout-btn"
            onclick="checkout()"
        >
            💬 Pesan via WhatsApp
        </button>

    </div>

</aside>


<footer>

    <strong>
        ⚡ XIZA STORE
    </strong>

    <p>
        Toko online sederhana untuk kebutuhan kamu.
    </p>

    <small>
        © 2026 XIZA STORE
    </small>

</footer>


<script src="app.js"></script>

</body>
</html>



.hero {
    min-height: 430px;
    display: flex;
    align-items: center;
    padding: 70px 6%;
    background:
        linear-gradient(
            90deg,
            rgba(5,5,5,.98),
            rgba(30,0,0,.75),
            rgba(5,5,5,.95)
        );
    border-bottom: 1px solid #330000;
}

.hero-content {
    max-width: 700px;
}

.hero-label,
.section-label {
    color: #ff3333;
    font-weight: 800;
    letter-spacing: 3px;
}

.hero h1 {
    margin: 10px 0;
    font-size: clamp(42px, 8vw, 78px);
    line-height: .95;
}

.hero h1 span {
    color: #ff1c1c;
    text-shadow: 0 0 25px rgba(255,0,0,.5);
}

.hero p {
    max-width: 600px;
    color: #aaa;
    font-size: 18px;
    line-height: 1.7;
}

.hero-btn,
.checkout-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 22px;
    margin-top: 15px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg,#ff1616,#870000);
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255,0,0,.25);
}

.store {
    width: min(1200px,94%);
    margin: 45px auto;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 25px;
}

.store-header h2 {
    margin: 0;
    font-size: 34px;
}

#search {
    width: min(350px,100%);
    padding: 13px 15px;
    background: #101010;
    color: white;
    border: 1px solid #3b1515;
    border-radius: 10px;
    outline: none;
}

.categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.category-btn {
    padding: 9px 15px;
    border-radius: 20px;
    border: 1px solid #3b3b3b;
    background: #111;
    color: #ddd;
    cursor: pointer;
}

.category-btn.active,
.category-btn:hover {
    background: #c90000;
    border-color: #ff2525;
    color: white;
}

.products {
    display: grid;
    grid-template-columns:
        repeat(auto-fill,minmax(230px,1fr));
    gap: 20px;
}

.card {
    overflow: hidden;
    background: #111;
    border: 1px solid #2c1616;
    border-radius: 16px;
    transition: .25s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #ff2020;
    box-shadow: 0 10px 35px rgba(255,0,0,.15);
}

.card-img {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle,
            #420000,
            #090909 70%
        );
    background-size: cover;
    background-position: center;
    color: #ff3333;
    font-size: 50px;
}

.card-body {
    padding: 18px;
}

.card-title {
    margin: 0 0 7px;
    font-size: 19px;
}

.card-category {
    color: #ff4444;
    font-size: 13px;
}

.card-description {
    min-height: 45px;
    color: #888;
    font-size: 14px;
    line-height: 1.5;
}

.card-price {
    margin: 12px 0;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.add-btn {
    width: 100%;
    padding: 11px;
    border: 0;
    border-radius: 9px;
    background: #d00000;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.add-btn:hover {
    background: #ff1515;
}

.loading,
.empty {
    grid-column: 1/-1;
    padding: 40px;
    text-align: center;
    color: #888;
}

.top-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

#cartCount {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #f00;
    font-size: 12px;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 199;
    display: none;
    background: rgba(0,0,0,.7);
}

.overlay.show {
    display: block;
}

.cart {
    position: fixed;
    z-index: 200;
    top: 0;
    right: -420px;
    width: min(420px,94%);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #101010;
    border-left: 1px solid #4a1111;
    transition: .3s;
}

.cart.open {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #292929;
}

.cart-header h2 {
    margin: 0;
}

.close-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #250000;
    color: white;
    font-size: 25px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #292929;
}

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

.qty button {
    width: 28px;
    height: 28px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #191919;
    color: white;
}

.cart-footer {
    padding: 18px;
    border-top: 1px solid #292929;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.checkout-btn {
    width: 100%;
}

footer {
    margin-top: 70px;
    padding: 35px 20px;
    text-align: center;
    background: #090909;
    border-top: 1px solid #261010;
    color: #888;
}

footer strong {
    color: #ff2929;
}

@media (max-width:650px) {

    .hero {
        min-height: 360px;
        padding: 50px 6%;
    }

    .store-header {
        align-items: stretch;
        flex-direction: column;
    }

    #search {
        width: 100%;
    }

    .top-actions {
        gap: 4px;
    }

    .nav-btn {
        padding: 8px 10px;
        font-size: 13px;
    }
}

