* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} 
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #988E80;
    color: #ffffff;
    line-height: 1.6;
}

/* Navbar Styles - bagian bar */
.navbar {
    background: #988E80 ;
    padding: 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgb(97, 87, 87);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;

    text-decoration: none;
}
/* ===== LOGO ===== */
.navbar-brand img {
    max-height: 36px;
    width: auto;
    display: block;
}
/* ===== TEXT PEARLYS ===== */
.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1;
}
.navbar-menu {
    display: flex;
    align-items: center;

    gap: 2.5rem;          /* JARAK ANTAR MENU */
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li a {
    color: #fff;
    text-decoration: none;

    font-weight: 600;     /* AGAK BOLD (500–600 PALING AMAN) */
    font-size: 1rem;

    letter-spacing: 0.5px; /* BIKIN TERLIHAT LEBIH RAPI */
}

/* efek hover biar hidup dikit */
.navbar-menu li a:hover {
    opacity: 0.85;
}

.cart-badge {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: white;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
    margin-left: 5px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Box Filter */
.filter-container {
    background: #988E80;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgb(22, 21, 21);
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #988E80;
    background: #988e80;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

/*warna tombol*/
.filter-btn:hover {
    border-color: #988e80;
    color: #fafafa;
}

/*warrna tulisan tombol ketika mau di ketik*/
.filter-btn.active {
    background: linear-gradient(135deg,#524a40, #335);
    color: rgb(255, 255, 255);
}

/* SEARCH */
.search-box {
    flex: 1;
    min-width: 450px;
    margin-top: 20px;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
}

.search-input:focus {
    border-color: #667eea;
    outline: none;
}

/* PRODUCT CARD - Card Persegi */
.product-card {
    position: relative;
    background: #f8f9fa67 ;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    border: 2px solid #e9ecef;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background:  #e2e7d59a;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    border-color: #fefeff;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 12px;
    z-index: 10;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.4);
}

.empty-state {
    text-align: center;
    padding: 3rem;
}

/* Header */
.page-title {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
}

/* Gambar Produk - Persegi */
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Membuat persegi sempurna */
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Container utama untuk connect semua konten */
.container {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

/* Grid Produk - Card Persegi */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Product Body */
.product-body {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-description {
    font-size: 0.90rem;
    color: #7f8c8d;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    min-height: 45px;
}

/* Product Footer - Harga & Stok Vertikal di Tengah */
.product-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: auto;
    padding: 1.2rem;
    background: #f8f9fac9 ;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.product-price {
    font-weight: 800;
    color: #000000;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.product-stock {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    background: #b1aeae;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 2px solid #857c7c;
}

.product-stock.stock-low {
    color: #dc3545;
    background: #f8d7da;
    border-color: #f5c6cb;
    font-weight: bold;
}

/* Button - Di Tengah dengan Full Width */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    font-weight: 700;
    transition: all 0.4s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #666 0%, #777 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/*btn untuk login membeli*/
.btn-warning {
    background:  #94857b;
    color: #fff;
}

/* ===== Footer Styles (Short Version) ===== */
.footer {
    background: #fff;
    color: #000;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Setiap baris footer */
.footer p {
    margin: 0.5rem 0;
}

/* Alamat */
.footer p:nth-child(1) {
    font-weight: 500;
    color: #333;
}

/* Email + Telepon */
.footer p:nth-child(2) {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    color: #333;
    font-size: 1rem;
}

/* Copyright */
.footer p:last-child {
    margin-top: 6px;
    font-size: 0.95rem;
    color: #333;
}