/* =========================
   RESET
========================= */
* {
    box-sizing: border-box;
}

/* =========================
   BODY
========================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f7f7f7;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #ff9800;
    color: white;
}

/* LOGO / JUDUL */
.navbar h2 {
    margin: 0;
    font-size: 22px;
}

/* MENU */
.menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.menu a:hover {
    text-decoration: underline;
}

.menu .active {
    border-bottom: 2px solid white;
    padding-bottom: 3px;
}

/* TOMBOL KERANJANG */
.menu .btn {
    background: white;
    color: #ff9800;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: bold;
}

.menu .btn:hover {
    background: #ffe0b2;
}

/* SEARCH BOX */
.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-box input {
    padding: 6px 10px;
    border-radius: 5px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-box button {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    background: white;
    color: #ff9800;
    cursor: pointer;
    font-weight: bold;
}

.search-box button:hover {
    background: #ffe0b2;
}

/* =========================
   HERO
========================= */
.hero {
    padding: 40px;
    background: #fff3e0;
    text-align: center;
}

.hero h1 {
    margin-bottom: 10px;
}

/* =========================
   LAYOUT PRODUK
========================= */
.produk-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 40px;
}

/* =========================
   SIDEBAR (KATEGORI & FILTER)
========================= */
.sidebar {
    background: #eee;
    padding: 20px;
    border-radius: 10px;
}

.sidebar h3 {
    margin-bottom: 10px;
}

.list-kategori {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.list-kategori li {
    margin-bottom: 8px;
}

.list-kategori a {
    text-decoration: none;
    color: #333;
}

.sidebar input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

.sidebar button {
    width: 100%;
    padding: 8px;
    background: #ff9800;
    border: none;
    color: white;
    cursor: pointer;
}

/* =========================
   PRODUK (KANAN)
========================= */
.produk-kanan {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* =========================
   CARD PRODUK (REVISI)
========================= */
.card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}


.card h3 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.card .harga {
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 10px;
}

/* AKSI TOMBOL */
.aksi {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.card .btn {
    background: #ff9800;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.card .btn:hover {
    background: #fb8c00;
}

.btn-detail {
    background: #555;
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    text-decoration: none;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #222;
    color: #fff;
    padding-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 40px 30px;
}

.footer-box h3 {
    margin-bottom: 15px;
    color: #ff9800;
}

.footer-box p {
    margin: 6px 0;
    font-size: 14px;
}

.footer-box ul {
    list-style: none;
    padding: 0;
}

.footer-box ul li {
    margin-bottom: 8px;
}

.footer-box ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-box ul li a:hover {
    text-decoration: underline;
}

/* SOSIAL MEDIA */
.sosial-media a {
    display: inline-block;
    margin-right: 10px;
    color: #ff9800;
    font-weight: bold;
    text-decoration: none;
}

.sosial-media a:hover {
    text-decoration: underline;
}

/* FOOTER BOTTOM */
.footer-bottom {
    background: #111;
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .produk-kanan {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .produk-kanan {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .produk-kanan {
        grid-template-columns: 1fr;
    }
}

.img-produk {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #f0f0f0;
}

.img-produk img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* HALAMAN AKUN */
.akun-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 40px;
}

.akun-biodata,
.akun-riwayat {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.profil {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.profil img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-edit {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
}

.tabel-pesanan {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tabel-pesanan th,
.tabel-pesanan td {
    border: 1px solid #ddd;
    padding: 10px;
}

.tabel-pesanan th {
    background: #ff9800;
    color: white;
}

.status.selesai { background: green; }
.status.diproses { background: orange; }
.status.batal { background: red; }

@media (max-width: 768px) {
    .akun-container {
        grid-template-columns: 1fr;
    }
}

