* { margin:0; padding:0; box-sizing:border-box; }
:root {
    --bg: #f4f7fc;
    --surface: rgba(255,255,255,0.85);
    --surface-solid: #ffffff;
    --text: #1a2c3e;
    --text-light: #5d6e85;
    --border: rgba(0,0,0,0.08);
    --primary: #10b981;
    --primary-dark: #059669;
    --accent: #8b5cf6;
    --grad-1: linear-gradient(135deg, #10b981, #3b82f6);
    --shadow: 0 8px 20px rgba(0,0,0,0.05);
    --radius: 28px;
}
body.dark {
    --bg: #0f172a;
    --surface: rgba(30,41,59,0.85);
    --surface-solid: #1e293b;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --border: rgba(255,255,255,0.1);
    --primary: #34d399;
    --primary-dark: #10b981;
}
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}
.navbar {
    backdrop-filter: blur(16px);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top:0;
    z-index:10;
}
.logo {
    font-weight:800;
    font-size:1.4rem;
    background: var(--grad-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.icon-btn {
    background:transparent;
    border:none;
    font-size:1.3rem;
    cursor:pointer;
    color:var(--text);
    margin-left:12px;
}
.cart-icon { position:relative; }
.cart-badge {
    position:absolute;
    top:-8px;
    right:-12px;
    background:var(--primary);
    color:white;
    font-size:0.7rem;
    font-weight:bold;
    border-radius:20px;
    padding:2px 6px;
    min-width:18px;
}
.hero {
    padding:2rem 1.5rem 1rem;
    text-align:center;
}
.hero h1 { font-size:2rem; font-weight:800; }
.gradient-text {
    background: linear-gradient(135deg, #10b981, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.container {
    max-width:1400px;
    margin:0 auto;
    padding:1rem 1.5rem 4rem;
}
.search-bar {
    background: var(--surface-solid);
    border:1px solid var(--border);
    border-radius:48px;
    padding:0.7rem 1rem;
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:2rem;
}
.search-bar i { color:var(--text-light); }
.search-bar input {
    flex:1;
    background:transparent;
    border:none;
    outline:none;
    font-size:1rem;
    color:var(--text);
}
.produk-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap:1.5rem;
}
.product-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border:1px solid var(--border);
    padding:1.2rem;
    transition:0.2s;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}
.product-img {
    text-align:center;
    margin-bottom:0.8rem;
}
.product-img img {
    width:100%;
    max-height:150px;
    object-fit:contain;
    border-radius:16px;
}
.no-img { font-size:3rem; }
.product-name { font-weight:700; font-size:1.2rem; }
.product-desc {
    color:var(--text-light);
    font-size:0.85rem;
    margin:0.5rem 0;
}
.product-footer {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:1rem;
}
.quantity-control {
    display:flex;
    align-items:center;
    gap:10px;
    background:var(--surface-solid);
    padding:0.2rem 0.6rem;
    border-radius:40px;
}
.quantity-control button {
    background:none;
    border:none;
    font-size:1.2rem;
    font-weight:bold;
    cursor:pointer;
    width:28px;
    color:var(--primary);
}
.add-cart-btn {
    background:var(--grad-1);
    border:none;
    padding:0.5rem 1rem;
    border-radius:40px;
    color:white;
    font-weight:600;
    cursor:pointer;
    transition:0.1s;
}
.add-cart-btn:active { transform:scale(0.96); }
.cart-modal {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:var(--surface-solid);
    border-top-left-radius:32px;
    border-top-right-radius:32px;
    box-shadow:0 -4px 20px rgba(0,0,0,0.2);
    transform:translateY(100%);
    transition:transform 0.3s ease;
    z-index:100;
    max-height:80vh;
    overflow-y:auto;
}
.cart-modal.open { transform:translateY(0); }
.cart-modal-content { padding:1.5rem; }
.cart-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:1rem;
}
.cart-items {
    list-style:none;
    max-height:40vh;
    overflow-y:auto;
}
.cart-items li {
    display:flex;
    justify-content:space-between;
    padding:0.8rem 0;
    border-bottom:1px solid var(--border);
}
.remove-item {
    background:#ef4444;
    border:none;
    color:white;
    border-radius:30px;
    padding:4px 12px;
    cursor:pointer;
    font-size:0.7rem;
}
.cart-note {
    margin:1rem 0;
    display:flex;
    align-items:center;
    gap:10px;
    background:var(--bg);
    padding:0.7rem;
    border-radius:48px;
}
.cart-note input {
    background:transparent;
    border:none;
    flex:1;
    outline:none;
    color:var(--text);
}
.wa-send-btn {
    width:100%;
    background:#25D366;
    color:white;
    border:none;
    padding:1rem;
    border-radius:48px;
    font-weight:bold;
    font-size:1rem;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    cursor:pointer;
}
.wa-send-btn:active { transform:scale(0.98); }
.close-btn {
    background:none;
    border:none;
    font-size:1.2rem;
    cursor:pointer;
    color:var(--text);
}
@media (max-width:640px) {
    .hero h1 { font-size:1.5rem; }
    .produk-grid { gap:1rem; }
}

/* ========== TAMBAHAN HERO, FOOTER & PAGINATION ========== */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-bottom: 2rem;
    border-radius: 0 0 2rem 2rem;
    overflow: hidden;
}
.hero-content {
    max-width: 800px;
    padding: 2rem;
    backdrop-filter: blur(2px);
    background: rgba(0,0,0,0.3);
    border-radius: 2rem;
    animation: fadeInUp 1s ease;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-content .highlight {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}
.hero-content p {
    font-size: 1.2rem;
    color: #f1f5f9;
    margin-bottom: 2rem;
}
.btn-scroll {
    display: inline-block;
    background: white;
    color: #0f172a;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.btn-scroll:hover {
    transform: translateY(-3px);
    background: #10b981;
    color: white;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.footer {
    background: var(--surface-solid);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 3rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.footer-col p, .footer-col a {
    color: var(--text-light);
    line-height: 1.6;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}
.footer-col a:hover {
    color: var(--primary);
}
.social-icons a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
}
.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.8rem;
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-section { background-attachment: scroll; }
}

/* Pagination style (untuk tombol halaman) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
}
.page-btn {
    background: var(--primary);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.page-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.02);
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
#pageInfo {
    color: var(--text);
    font-size: 0.9rem;
}