/* RESET CSS - Mengatur ulang margin dan padding default browser */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Pengaturan Body dan Header */
body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: white;
}

/* Container utama untuk membatasi lebar konten */
.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header Navigasi */
.header {
    border: 2px solid black;
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

/* Link di dalam Navigasi */
.nav a {
    color: black;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
}

/* Bagian Hero Section di Beranda */
.hero {
    border: 2px solid black;
    padding: 60px 20px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 0px;
    margin-right: 0px;
}

.hero h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 14px;
    margin-bottom: 15px;
}

/* Gaya Tombol Umum */
.btn {
    border: 2px solid black;
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    color: black;
    font-size: 14px;
    background-color: white;
}

/* Judul setiap section */
.section-title {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
    font-size: 18px;
}

/* Layout Grid untuk Produk */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Gaya Kartu Produk */
.product-card {
    border: 2px solid black;
    padding: 10px;
    text-align: center;
}

/* Kontainer Gambar Produk */
.gambar-placeholder {
    border: 1px solid black;
    height: 80px;
    margin-bottom: 10px;
    background-color: white;
}

.product-card h3 {
    font-size: 12px;
    margin-bottom: 5px;
}

.harga {
    font-size: 12px;
    font-weight: bold;
}

/* Toolbar untuk Pencarian dan Filter */
.toolbar {
    border: 2px solid black;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.search-box input {
    border: 2px solid black;
    padding: 8px;
    width: 180px;
    font-size: 12px;
}

.search-box button {
    border: 2px solid black;
    padding: 8px 15px;
    font-size: 12px;
}

.filter-btn {
    border: 2px solid black;
    padding: 8px 15px;
    font-size: 12px;
}

/* Jalur Navigasi */
.breadcrumb {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.breadcrumb a {
    color: black;
    text-decoration: none;
}

/* Detail Produk Layout */
.product-detail {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 2px solid black;
    padding: 20px;
}

.product-image {
    flex: 1;
}

.product-image .gambar-placeholder {
    height: 250px;
}

.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-info .harga {
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.product-info .stok {
    font-size: 14px;
}

.product-info .desc {
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Pengaturan Kuantitas di Detail Produk */
.qty-section {
    margin-top: 15px;
    margin-bottom: 15px;
}

.qty-section label {
    font-size: 14px;
}

.qty-section input {
    border: 2px solid black;
    padding: 8px;
    width: 60px;
    text-align: center;
    font-size: 14px;
}

.btn-cart {
    border: 2px solid black;
    padding: 12px 25px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

/* Judul Halaman di Keranjang Belanja */
.page-title {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

/* Kontainer Keranjang Belanja */
.cart-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.cart-items {
    flex: 2;
}

/* Item tunggal di dalam Keranjang */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 2px solid black;
    margin-bottom: 10px;
    align-items: center;
}

.cart-item .gambar-placeholder {
    width: 60px;
    height: 60px;
}

.cart-item .info {
    flex: 1;
}

.cart-item .info h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item .info .harga {
    font-size: 14px;
}

/* Kontrol jumlah (quantity) di Keranjang */
.qty-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-control button {
    width: 28px;
    height: 28px;
    border: 2px solid black;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
}

.qty-control span {
    padding: 5px 10px;
    border: 2px solid black;
    font-size: 14px;
    min-width: 30px;
    text-align: center;
}

.btn-hapus {
    border: 2px solid black;
    padding: 5px 10px;
    background-color: white;
    font-size: 12px;
    cursor: pointer;
}

/* Ringkasan Belanja di Keranjang */
.cart-summary {
    flex: 1;
    border: 2px solid black;
    padding: 20px;
}

.cart-summary h2 {
    font-size: 16px;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid black;
    font-size: 14px;
}

.summary-row.total {
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid black;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.btn-checkout {
    border: 2px solid black;
    padding: 12px;
    width: 100%;
    font-size: 14px;
    background-color: white;
    margin-top: 15px;
    cursor: pointer;
}

/* Bagian Hero di Halaman Tentang Kami */
.about-hero {
    border: 2px solid black;
    padding: 50px 20px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.about-hero h1 {
    font-size: 22px;
    margin-bottom: 10px;
}

.about-content {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.about-text p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Kontak di Halaman Tentang Kami */
.contact-section {
    flex: 1;
    border: 2px solid black;
    padding: 20px;
}

.contact-section h2 {
    font-size: 16px;
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-icon {
    width: 30px;
    height: 30px;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background-color: white;
}

/* Footer Aplikasi */
.footer {
    border-top: 2px solid black;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 0px;
    padding-right: 0px;
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
}

/* Komponen Notifikasi Toast (Pop-up) */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background-color: white;
    border: 2px solid black;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 5px 5px 0px black; /* Efek bayangan tegas retro */
    font-size: 14px;
    min-width: 250px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* PENGATURAN RESPONSIF - Agar tampilan menyesuaikan layar HP */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Tampilan grid 2 kolom di HP */
    }

    .product-detail {
        flex-direction: column;
    }

    .cart-container {
        flex-direction: column;
    }

    .about-content {
        flex-direction: column;
    }

    .toolbar {
        flex-direction: column;
        gap: 10px;
    }
}


/* body sama header */
body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: white;
}

/* container utama */
.container {
    max-width: 900px;
    margin: 0 auto;
}

/* header navigasi */
.header {
    border: 2px solid black;
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

/* link di nav */
.nav a {
    color: black;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
}

/* hero section */
.hero {
    border: 2px solid black;
    padding: 60px 20px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 0px;
    margin-right: 0px;
}

.hero h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 14px;
    margin-bottom: 15px;
}

/* tombol umum */
.btn {
    border: 2px solid black;
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    color: black;
    font-size: 14px;
    background-color: white;
}

/* judul section */
.section-title {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
    font-size: 18px;
}

/* grid produk */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* kartu produk */
.product-card {
    border: 2px solid black;
    padding: 10px;
    text-align: center;
}

/* placeholder gambar */
.gambar-placeholder {
    border: 1px solid black;
    height: 80px;
    margin-bottom: 10px;
    background-color: white;
}

.product-card h3 {
    font-size: 12px;
    margin-bottom: 5px;
}

.harga {
    font-size: 12px;
    font-weight: bold;
}

/* toolbar search */
.toolbar {
    border: 2px solid black;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.search-box input {
    border: 2px solid black;
    padding: 8px;
    width: 180px;
    font-size: 12px;
}

.search-box button {
    border: 2px solid black;
    padding: 8px 15px;
    font-size: 12px;
}

.filter-btn {
    border: 2px solid black;
    padding: 8px 15px;
    font-size: 12px;
}

/* breadcrumb */
.breadcrumb {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.breadcrumb a {
    color: black;
    text-decoration: none;
}

/* detail produk */
.product-detail {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 2px solid black;
    padding: 20px;
}

.product-image {
    flex: 1;
}

.product-image .gambar-placeholder {
    height: 250px;
}

.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-info .harga {
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.product-info .stok {
    font-size: 14px;
}

.product-info .desc {
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* quantity */
.qty-section {
    margin-top: 15px;
    margin-bottom: 15px;
}

.qty-section label {
    font-size: 14px;
}

.qty-section input {
    border: 2px solid black;
    padding: 8px;
    width: 60px;
    text-align: center;
    font-size: 14px;
}

.btn-cart {
    border: 2px solid black;
    padding: 12px 25px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

/* judul halaman */
.page-title {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

/* container cart */
.cart-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.cart-items {
    flex: 2;
}

/* item di cart */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 2px solid black;
    margin-bottom: 10px;
    align-items: center;
}

.cart-item .gambar-placeholder {
    width: 60px;
    height: 60px;
}

.cart-item .info {
    flex: 1;
}

.cart-item .info h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item .info .harga {
    font-size: 14px;
}

/* kontrol quantity */
.qty-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-control button {
    width: 28px;
    height: 28px;
    border: 2px solid black;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
}

.qty-control span {
    padding: 5px 10px;
    border: 2px solid black;
    font-size: 14px;
    min-width: 30px;
    text-align: center;
}

.btn-hapus {
    border: 2px solid black;
    padding: 5px 10px;
    background-color: white;
    font-size: 12px;
    cursor: pointer;
}

/* ringkasan cart */
.cart-summary {
    flex: 1;
    border: 2px solid black;
    padding: 20px;
}

.cart-summary h2 {
    font-size: 16px;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid black;
    font-size: 14px;
}

.summary-row.total {
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid black;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.btn-checkout {
    border: 2px solid black;
    padding: 12px;
    width: 100%;
    font-size: 14px;
    background-color: white;
    margin-top: 15px;
    cursor: pointer;
}

/* about page */
.about-hero {
    border: 2px solid black;
    padding: 50px 20px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.about-hero h1 {
    font-size: 22px;
    margin-bottom: 10px;
}

.about-content {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.about-text p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.contact-section {
    flex: 1;
    border: 2px solid black;
    padding: 20px;
}

.contact-section h2 {
    font-size: 16px;
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-icon {
    width: 30px;
    height: 30px;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background-color: white;
}

/* footer */
.footer {
    border-top: 2px solid black;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 0px;
    padding-right: 0px;
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
}

/* notifikasi inline */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background-color: white;
    border: 2px solid black;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 5px 5px 0px black;
    font-size: 14px;
    min-width: 250px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail {
        flex-direction: column;
    }

    .cart-container {
        flex-direction: column;
    }

    .about-content {
        flex-direction: column;
    }

    .toolbar {
        flex-direction: column;
        gap: 10px;
    }
}
