*{box-sizing:border-box}
:root{
  --danger:#FFD000;
  --primary:#FFD000;
  --primary-dark:#03BA00;
  --warning:#FFB700;
  --accent:#f59e0b;
  --ink:#17202a;
  --muted:#667085;
  --line:#e7e9ee;
  --surface:#fff;
  --page:#f6f8f7;
  --shadow:0 8px 30px rgba(16,24,40,.08);
}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  background:var(--page);color:var(--ink);line-height:1.45;
}
a{text-decoration:none;color:inherit}
.container{width:min(1180px,100%);margin:auto;padding:0 16px}

header{
  background:rgba(255,255,255,.96);
  color:var(--ink);
  position:sticky;top:0;z-index:50;
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
}
.nav{
  min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.brand{font-weight:900;font-size:20px;letter-spacing:-.4px;color:var(--primary)}
.nav-actions{display:flex;gap:8px;align-items:center}
.nav-actions button,.nav-actions a{
  border:1px solid var(--line);background:#fff;color:var(--ink);
  padding:9px 12px;border-radius:11px;cursor:pointer;font-weight:700;
}
.nav-actions button:hover,.nav-actions a:hover{border-color:#b9d8c2;background:#f4faf5}
#cartBtn{background:var(--primary);border-color:var(--primary);color:#fff}
#cartBtn:hover{background:var(--warning)}
#cartCount{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:21px;height:21px;padding:0 6px;margin-left:4px;
  background:#fff;color:var(--primary-dark);border-radius:99px;font-size:11px;
}
.store-phone{font-size:12px;color:var(--muted);font-weight:600}

main.container{padding-top:18px;padding-bottom:42px}
.toolbar{
  display:flex;gap:10px;margin:0 0 16px;
  position:sticky;top:69px;z-index:20;padding:10px 0;
  background:linear-gradient(var(--page) 75%,transparent);
}
.toolbar input,.toolbar select{
  height:44px;padding:0 13px;border:1px solid var(--line);
  border-radius:12px;background:#fff;color:var(--ink);outline:none;
  font-size:14px;box-shadow:0 2px 8px rgba(16,24,40,.03);
}
.toolbar input{flex:1;min-width:0}
.toolbar input:focus,.toolbar select:focus{border-color:#9ac9a6;box-shadow:0 0 0 3px rgba(22,163,74,.10)}

.grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  padding-bottom:30px;
}
.card{
  min-width:0;background:var(--surface);border:1px solid #edf0f2;
  border-radius:16px;overflow:hidden;box-shadow:var(--shadow);
  transition:transform .18s ease,box-shadow .18s ease;
}
.card:hover{transform:translateY(-2px);box-shadow:0 12px 34px rgba(16,24,40,.11)}
.product-img{
  height:210px;background:#eef2ef;display:flex;align-items:center;justify-content:center;
  font-size:42px;overflow:hidden;
}
.product-img img{width:100%;height:100%;object-fit:cover;display:block}
.card-body{padding:13px}
.card small{
  display:inline-block;color:var(--danger);background:#edf8f0;
  padding:4px 7px;border-radius:7px;font-size:10px;font-weight:600;
  text-transform:uppercase;letter-spacing:.25px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.card h3{
  margin:8px 0 4px;font-size:15px;line-height:1.25;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.card p{
  color:var(--muted);font-size:12px;margin:0 0 8px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-height:35px;
}
.product-store{margin-top:7px;font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-phone{font-size:10px;color:var(--muted);margin:2px 0 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card strong{display:block;font-size:15px;color:var(--danger);margin-top:4px}
.stock{font-size:10px;color:var(--muted);margin:4px 0}
.product-actions{display:grid;gap:6px}
.add-cart,.primary{
  border:0;background:var(--primary);color:#fff;padding:9px 10px;border-radius:10px;
  cursor:pointer;width:100%;margin-top:7px;font-weight:800;font-size:12px;
}
.add-cart:hover,.primary:hover{background:var(--primary-dark)}
.add-cart:disabled{background:#aeb7b1;cursor:not-allowed}
.wa-btn{
  display:block;text-align:center;background:#0a9f4b;color:#fff;
  padding:9px 10px;border-radius:10px;font-size:12px;font-weight:800;
}
.modal{
  display:none;position:fixed;inset:0;background:rgba(15,23,42,.58);
  z-index:100;padding:18px;overflow:auto;
}
.modal-box{
  background:#fff;width:min(600px,100%);margin:40px auto;padding:22px;
  border-radius:18px;position:relative;max-height:88vh;overflow:auto;box-shadow:0 25px 70px rgba(0,0,0,.2);
}
.close{position:absolute;right:13px;top:8px;border:0;background:none;font-size:30px;cursor:pointer;color:#667085}
.cart-row{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.qty{display:flex;gap:6px;align-items:center}
.qty button{border:1px solid var(--line);background:#fff;border-radius:7px;width:29px;height:29px;cursor:pointer}
.total{font-size:20px;text-align:right;margin:20px 0}
.modal-box input,.modal-box textarea{
  width:100%;padding:11px 12px;margin:6px 0;border:1px solid var(--line);
  border-radius:10px;outline:none
}
.success{padding:14px;background:#ecfdf3;border:1px solid #bbf7d0;border-radius:12px;margin-top:12px}
.success hr{border:0;border-top:1px solid #bbf7d0;margin:12px 0}

.hero{background:linear-gradient(120deg,#15803d,#111827);color:#fff;padding:55px 0}
.hero h1{font-size:40px;margin:0 0 8px}
.store-contact{display:inline-block;margin-top:15px;padding:12px 18px;background:#fff;color:var(--primary-dark);border-radius:10px;font-weight:800}

@media(max-width:750px){
  .container{padding-left:10px;padding-right:10px}
  .nav{min-height:58px}
  .brand{font-size:16px;max-width:45%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .nav-actions{gap:5px}
  .nav-actions a{display:none}
  .store-phone{display:none}
  .nav-actions button{padding:8px 9px;font-size:11px}
  .toolbar{top:59px;padding:8px 0}
  .toolbar input,.toolbar select{height:40px;font-size:12px}
  .grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .product-img{height:125px}
  .card{border-radius:12px}
  .card-body{padding:6px}
  .card small{font-size:8px;padding:3px 5px}
  .card h3{font-size:11px;margin:5px 0 3px}
  .card p{font-size:9px;line-height:1.3;min-height:24px;margin-bottom:5px}
  .product-store{font-size:9px;margin-top:4px}
  .product-phone{font-size:8px;margin:1px 0 4px}
  .card strong{font-size:11px}
  .stock{font-size:8px;margin:3px 0}
  .add-cart,.wa-btn{font-size:9px;padding:7px 5px;border-radius:8px}
  .modal{padding:10px}
  .modal-box{margin:15px auto;padding:17px;border-radius:15px}
}
@media(max-width:360px){
  .grid{gap:6px}
  .product-img{height:105px}
  .card-body{padding:4px}
  .card h3{font-size:10px}
  .card strong{font-size:10px}
  .add-cart,.wa-btn{font-size:8px}
}


```css
/* =================================
   TOMBOL LAPAK DI NAVBAR
================================= */

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

.lapak-btn,
.cart-button {
    border: none;
    cursor: pointer;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    transition: all .25s ease;
}

.login-btn {
    background: #f1f5f9;
    color: #0f172a;
}

.login-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.register-btn {
    background: #2563eb;
    color: white;
}

.register-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.cart-button {
    background: #111827;
    color: white;
    min-width: 55px;
}

.cart-button:hover {
    background: #000;
}


/* =================================
   AUTH MODAL
================================= */

.auth-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;

    background: rgba(15, 23, 42, .65);

    backdrop-filter: blur(8px);

    align-items: center;
    justify-content: center;

    padding: 20px;

    animation: fadeIn .2s ease;
}

.auth-modal.active {
    display: flex;
}


/* =================================
   AUTH BOX
================================= */

.auth-box {
    width: 100%;
    max-width: 430px;

    max-height: 90vh;
    overflow-y: auto;

    background: #fff;

    border-radius: 22px;

    padding: 32px;

    position: relative;

    box-shadow:
        0 25px 60px rgba(0,0,0,.25);

    animation: popup .25s ease;
}

.register-box {
    max-width: 480px;
}


/* =================================
   CLOSE
================================= */

.auth-close {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 36px;
    height: 36px;

    border: none;
    border-radius: 50%;

    background: #f1f5f9;

    font-size: 25px;

    cursor: pointer;

    color: #475569;

    transition: .2s;
}

.auth-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}


/* =================================
   ICON & TITLE
================================= */

.auth-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #eff6ff;

    font-size: 30px;
}

.auth-box h2 {
    text-align: center;

    margin: 0;

    font-size: 26px;

    color: #0f172a;
}

.auth-subtitle {
    text-align: center;

    color: #64748b;

    margin: 7px 0 25px;

    font-size: 14px;
}


/* =================================
   FORM
================================= */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: 600;

    color: #334155;
}

.form-group input {
    width: 100%;

    box-sizing: border-box;

    padding: 13px 14px;

    border: 1px solid #cbd5e1;

    border-radius: 11px;

    outline: none;

    font-size: 14px;

    transition: .2s;

    background: #fff;
}

.form-group input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37,99,235,.10);
}


/* =================================
   PASSWORD
================================= */

.password-box {
    position: relative;
}

.password-box input {
    padding-right: 50px;
}

.show-password {
    position: absolute;

    right: 7px;
    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    cursor: pointer;

    font-size: 18px;

    opacity: .7;
}


/* =================================
   LOGIN OPTIONS
================================= */

.auth-options {
    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 13px;

    margin: 5px 0 20px;

    color: #64748b;
}

.auth-options a,
.auth-footer a,
.terms a {
    color: #2563eb;

    text-decoration: none;

    font-weight: 600;
}

.auth-options a:hover,
.auth-footer a:hover,
.terms a:hover {
    text-decoration: underline;
}


/* =================================
   BUTTON SUBMIT
================================= */

.auth-submit {
    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 11px;

    color: white;

    font-weight: 700;

    cursor: pointer;

    transition: .25s;

    font-size: 14px;
}

.login-submit {
    background: #2563eb;
}

.login-submit:hover {
    background: #1d4ed8;

    transform: translateY(-1px);
}

.register-submit {
    background: #16a34a;
}

.register-submit:hover {
    background: #15803d;

    transform: translateY(-1px);
}


/* =================================
   TERMS
================================= */

.terms {
    display: flex;

    gap: 7px;

    align-items: flex-start;

    font-size: 12px;

    color: #64748b;

    margin: 5px 0 18px;

    line-height: 1.5;
}

.terms input {
    margin-top: 3px;
}


/* =================================
   FOOTER
================================= */

.auth-footer {
    text-align: center;

    margin-top: 20px;

    font-size: 13px;

    color: #64748b;
}


/* =================================
   ANIMATION
================================= */

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes popup {

    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =================================
   MOBILE
================================= */

@media (max-width: 768px) {

    .store-phone {
        display: none;
    }

    .nav-actions {
        gap: 5px;
    }

    .lapak-btn,
    .cart-button {
        padding: 9px 10px;
        font-size: 12px;
    }

    .register-btn {
        font-size: 0;
    }

    .register-btn::before {
        content: "🏪";
        font-size: 18px;
    }

    .login-btn {
        font-size: 0;
    }

    .login-btn::before {
        content: "🔐";
        font-size: 18px;
    }

    .auth-box {
        padding: 25px 20px;

        border-radius: 18px;
    }

}
```
