/* RUMAH IKAN — storefront
   Identity: coastal drying-yard / pasar ikan. Navy tide as the dominant color
   (not an accent), warm sand paper for content, weathered teal for links/state,
   and a rust stamp used sparingly like a hand-written price tag. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,380..600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root{
  --navy:#0e2a3d;
  --navy-2:#153a52;
  --teal:#2f7a6e;
  --teal-deep:#1f594f;
  --rust:#b5581f;
  --sand:#f3efe3;
  --paper:#fffdf8;
  --ink:#1b2530;
  --muted:#6b6153;
  --line:#e4dcc8;
  --shadow:0 18px 40px rgba(14,42,61,.14);
  --radius:20px;
  --font-display:'Fraunces',ui-serif,Georgia,serif;
  --font-body:'Plus Jakarta Sans',ui-sans-serif,system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font-body);color:var(--ink);background:var(--sand);padding-bottom:86px;-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit}
button{cursor:pointer;border:0;background:none}
a{text-decoration:none;color:inherit}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* ---------- topbar ---------- */
.topbar{height:72px;background:rgba(243,239,227,.92);backdrop-filter:blur(14px);display:flex;align-items:center;justify-content:space-between;padding:0 max(18px,calc((100vw - 1180px)/2));position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:11px;cursor:pointer}
.brand-mark{width:42px;height:42px;border-radius:11px;background:var(--navy);color:var(--sand);display:grid;place-items:center;font-family:var(--font-display);font-weight:600;font-size:16px;box-shadow:0 6px 16px rgba(14,42,61,.3)}
.brand b{display:block;font-family:var(--font-display);font-size:18px;font-weight:600;letter-spacing:-.2px}
.brand small{display:block;color:var(--muted);font-size:11px;margin-top:1px}
.header-actions{display:flex;align-items:center;gap:8px}
.icon-btn{width:42px;height:42px;border-radius:11px;background:var(--paper);border:1px solid var(--line);font-size:19px;color:var(--navy)}
.cart-btn{height:42px;border-radius:11px;padding:0 6px 0 14px;background:var(--navy);color:#fff;display:flex;gap:10px;align-items:center;font-weight:700;font-size:13px}
.cart-btn b{background:var(--rust);color:#fff;border-radius:8px;min-width:26px;height:26px;display:grid;place-items:center;font-size:11px}

/* ---------- hero ---------- */
.hero{max-width:1180px;margin:16px auto 0;position:relative;border-radius:var(--radius);overflow:hidden;min-height:420px;background:var(--navy);box-shadow:var(--shadow)}
.hero img{width:100%;height:100%;min-height:420px;object-fit:cover;display:block;opacity:.82}
.hero-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:46px;max-width:600px;background:linear-gradient(100deg,rgba(11,26,39,.94) 10%,rgba(11,26,39,.68) 55%,transparent)}
.eyebrow{font-family:var(--font-body);font-size:13px;font-weight:700;color:#cfe3dd}
.hero h1{font-family:var(--font-display);font-weight:560;font-size:clamp(32px,5vw,54px);line-height:1.05;letter-spacing:-1px;color:#fff;margin:10px 0}
.hero p{color:#dfe6ea;line-height:1.6;max-width:460px;margin:0 0 24px;font-size:15px}
.hero .primary{font-size:14px}
.hero-tag{position:absolute;top:26px;right:26px;background:var(--rust);color:#fff;padding:10px 16px;border-radius:8px;font-weight:700;font-size:12px;transform:rotate(4deg);box-shadow:0 10px 24px rgba(0,0,0,.25)}
.hero-tag small{display:block;font-weight:500;font-size:10px;opacity:.85;margin-top:1px}

.primary{background:var(--rust);color:#fff;border-radius:12px;padding:13px 18px;font-weight:700;box-shadow:0 10px 22px rgba(181,88,31,.3);display:inline-flex;justify-content:center;align-items:center;gap:10px;font-size:14px}
.primary:hover{filter:brightness(1.06)}
.wide{width:100%}

/* ---------- sections ---------- */
.section{max-width:1180px;margin:52px auto 0;padding:0 18px}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px}
.section-head .kicker{color:var(--teal-deep);font-weight:700;font-size:12px}
.section h2{font-family:var(--font-display);font-weight:560;font-size:28px;letter-spacing:-.5px;margin:5px 0 0;color:var(--navy)}
.text-btn{color:var(--teal-deep);font-weight:700;font-size:13px}

.chips{display:flex;gap:8px;overflow:auto;padding:20px 0 6px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{white-space:nowrap;border:1px solid var(--line);background:var(--paper);padding:9px 15px;border-radius:999px;font-weight:600;color:var(--muted);font-size:13px}
.chip.active{background:var(--navy);border-color:var(--navy);color:#fff}

.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.product-card{background:var(--paper);border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:transform .15s,box-shadow .15s;position:relative}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.product-img{aspect-ratio:1/1;overflow:hidden;background:var(--sand);position:relative}
.product-img img{width:100%;height:100%;object-fit:cover}
.badge{position:absolute;top:10px;left:10px;background:var(--paper);border:1px solid var(--line);border-radius:7px;padding:5px 9px;font-size:10px;font-weight:700;color:var(--teal-deep)}
.product-body{padding:13px}
.product-cat{font-size:10px;color:var(--muted);font-weight:700;letter-spacing:.3px}
.product-name{font-family:var(--font-display);font-size:16px;font-weight:560;margin:5px 0 8px;min-height:38px;line-height:1.2;color:var(--ink)}
.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}
.price{font-size:15px;font-weight:800;color:var(--navy)}
.unit{font-size:10px;color:var(--muted);font-weight:600}
.add-btn{width:36px;height:36px;border-radius:10px;background:var(--sand);color:var(--navy);font-size:20px;font-weight:700}
.add-btn:hover{background:var(--rust);color:#fff}

.benefits{max-width:1144px;margin:40px auto 0;padding:0 18px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.benefits>div{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:17px;display:flex;gap:12px;align-items:center}
.benefits>div>span{width:38px;height:38px;border-radius:10px;background:var(--sand);color:var(--teal-deep);display:grid;place-items:center;font-weight:800;font-size:13px}
.benefits p{margin:0}
.benefits b{display:block;font-size:13px}
.benefits small{display:block;color:var(--muted);font-size:11px;margin-top:2px}

.about-card{background:var(--navy);color:#fff;border-radius:20px;padding:30px;display:flex;gap:18px;align-items:flex-start;position:relative;overflow:hidden}
.about-icon{width:52px;height:52px;border-radius:13px;background:rgba(255,255,255,.1);display:grid;place-items:center;font-size:23px;flex:none}
.about-card .kicker{color:#a9cec6}
.about-card h2{font-family:var(--font-display);font-weight:560;margin:6px 0 8px;font-size:24px;letter-spacing:-.3px}
.about-card p{color:#c7d3d9;line-height:1.65;margin:0;max-width:760px;font-size:14px}

footer{max-width:1180px;margin:52px auto 0;padding:20px 18px 30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:12px}
footer b{color:var(--ink);display:block;margin-bottom:3px;font-family:var(--font-display);font-size:15px}
footer a{color:var(--teal-deep);font-weight:700}

/* ---------- search ---------- */
.search-panel{max-width:1180px;margin:14px auto 0;padding:0 18px}
.search-wrap{background:var(--paper);border:1px solid var(--line);border-radius:14px;height:52px;display:flex;align-items:center;padding:0 12px;gap:10px}
.search-wrap span{font-size:20px;color:var(--muted)}
.search-wrap input{border:0;outline:0;flex:1;font-size:15px;background:none}
.search-wrap button{font-size:22px;color:var(--muted)}
.hidden{display:none!important}

/* ---------- modals ---------- */
.modal-backdrop{position:fixed;inset:0;background:rgba(11,26,39,.5);z-index:50;display:none;align-items:flex-end;justify-content:center}
.modal-backdrop.show{display:flex}
.cart-sheet,.checkout-sheet{background:var(--paper);width:min(560px,100%);max-height:92vh;border-radius:22px 22px 0 0;padding:22px;box-shadow:0 -20px 60px rgba(0,0,0,.18);animation:up .2s ease;overflow:auto}
.checkout-sheet{width:min(680px,100%)}
@keyframes up{from{transform:translateY(24px);opacity:.5}to{transform:none;opacity:1}}
.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.sheet-head .kicker{color:var(--teal-deep);font-weight:700;font-size:12px}
.sheet-head h2{font-family:var(--font-display);font-weight:560;margin:3px 0 0;font-size:23px;color:var(--navy)}
.close-btn{width:38px;height:38px;border-radius:11px;background:var(--sand);font-size:20px;color:var(--ink)}
.cart-items{display:flex;flex-direction:column;gap:10px}
.cart-row{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;padding:10px;background:var(--sand);border-radius:14px}
.cart-row img{width:64px;height:64px;border-radius:11px;object-fit:cover}
.cart-row h4{margin:0 0 4px;font-size:14px;font-weight:700}
.cart-row small{color:var(--muted)}
.qty{display:flex;align-items:center;gap:8px;margin-top:7px}
.qty button{width:25px;height:25px;border-radius:7px;background:var(--paper);border:1px solid var(--line);font-weight:800}
.qty b{font-size:12px;min-width:14px;text-align:center}
.remove{color:var(--muted);font-size:17px}
.cart-footer{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}
.total-row{display:flex;justify-content:space-between;margin-bottom:13px}
.total-row strong{font-size:19px;color:var(--navy)}
.empty-state{display:flex;flex-direction:column;align-items:center;gap:6px;padding:34px 15px;color:var(--muted)}
.empty-state div{font-size:36px;margin-bottom:4px}
.empty-state b{color:var(--ink)}
.empty-state .primary{margin-top:11px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:var(--ink)}
.form-grid input,.form-grid textarea,.admin-input{width:100%;border:1px solid var(--line);background:var(--sand);border-radius:11px;padding:12px 13px;outline:none;resize:vertical;color:var(--ink)}
.form-grid input:focus,.form-grid textarea:focus,.admin-input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(47,122,110,.15)}
.full{grid-column:1/-1}
.order-preview{background:var(--sand);border-radius:13px;padding:12px;font-size:12px;color:var(--muted)}
.order-preview b{color:var(--ink)}
.toast{position:fixed;left:50%;bottom:95px;transform:translate(-50%,20px);background:var(--navy);color:#fff;padding:11px 16px;border-radius:11px;z-index:100;opacity:0;pointer-events:none;transition:.2s;font-size:12px;font-weight:700;max-width:calc(100% - 30px)}
.toast.show{opacity:1;transform:translate(-50%,0)}
.skeleton-card{height:320px;border-radius:16px;background:linear-gradient(90deg,#e2d9bf,#f6f2e6,#e2d9bf);background-size:200% 100%;animation:shimmer 1.2s infinite}
@keyframes shimmer{to{background-position:-200% 0}}

/* ---------- bottom nav ---------- */
.bottom-nav{position:fixed;z-index:30;left:50%;bottom:12px;transform:translateX(-50%);width:min(500px,calc(100% - 24px));height:62px;background:var(--navy);border-radius:18px;padding:6px;display:grid;grid-template-columns:repeat(4,1fr);box-shadow:0 15px 45px rgba(14,42,61,.3)}
.bottom-nav a,.bottom-nav button{position:relative;color:#96a9b6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:16px;border-radius:13px}
.bottom-nav a span,.bottom-nav button span{font-size:9px;font-weight:700}
.bottom-nav a.active{background:rgba(255,255,255,.1);color:#fff}
.bottom-nav button i{position:absolute;top:4px;right:23px;background:var(--rust);color:#fff;font-size:9px;font-style:normal;font-weight:800;border-radius:7px;padding:2px 5px}

@media(min-width:760px){
  .modal-backdrop{align-items:center;padding:20px}
  .cart-sheet,.checkout-sheet{border-radius:22px;max-height:88vh}
  .bottom-nav{bottom:18px}
}
@media(max-width:850px){
  .hero{margin:10px 12px 0}
  .hero-overlay{padding:28px}
  .product-grid{grid-template-columns:repeat(3,1fr)}
  .benefits{grid-template-columns:1fr}
  .section{margin-top:38px}
}
@media(max-width:620px){
  .topbar{height:66px;padding:0 14px}
  .cart-btn span{display:none}
  .cart-btn{padding-left:10px}
  .hero{min-height:380px;border-radius:18px}
  .hero img{min-height:380px}
  .hero-tag{top:16px;right:16px;padding:8px 12px}
  .hero-overlay{justify-content:flex-end;padding:22px 20px 26px;background:linear-gradient(0deg,rgba(11,26,39,.96),rgba(11,26,39,.4) 70%,transparent)}
  .hero h1{font-size:34px;letter-spacing:-.6px}
  .hero p{font-size:13px;margin-bottom:16px}
  .section h2{font-size:23px}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:11px}
  .product-card{border-radius:14px}
  .product-body{padding:11px}
  .product-name{font-size:14px;min-height:34px}
  .price{font-size:13px}
  .add-btn{width:33px;height:33px}
  .benefits{padding:0 12px}
  .about-card{padding:20px;flex-direction:column}
  .form-grid{grid-template-columns:1fr}
  .full{grid-column:auto}
  .checkout-sheet{padding:18px}
  .cart-sheet{padding:17px}
  .cart-row{grid-template-columns:54px 1fr auto}
  .cart-row img{width:54px;height:54px}
}

/* ===== Rumah Ikan UI Refresh ===== */
:root{--shadow-soft:0 10px 30px rgba(7,26,61,.07);--shadow-card:0 18px 45px rgba(7,26,61,.09)}
body{background:linear-gradient(180deg,#fffdf8 0,#f7f4ec 52%,#fffdf8 100%)}
.topbar{backdrop-filter:blur(14px);background:rgba(255,253,248,.92);box-shadow:0 1px 0 rgba(7,26,61,.05)}
.brand{transition:transform .2s ease}.brand:hover{transform:translateY(-1px)}
.hero{box-shadow:var(--shadow-card);border:1px solid rgba(228,220,200,.8);overflow:hidden}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,26,61,.72),rgba(7,26,61,.16) 65%,transparent);pointer-events:none}
.hero-overlay{z-index:2}.hero-overlay h1{max-width:720px;text-wrap:balance}
.hero-tag{z-index:3;box-shadow:0 10px 25px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.product-card{border:1px solid rgba(228,220,200,.85);box-shadow:0 8px 25px rgba(7,26,61,.055);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.product-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(7,26,61,.11);border-color:rgba(47,122,110,.28)}
.product-img img{transition:transform .35s ease}.product-card:hover .product-img img{transform:scale(1.035)}
.add-btn{transition:transform .18s ease,filter .18s ease}.add-btn:hover{transform:scale(1.08);filter:brightness(1.04)}
.chip{transition:all .18s ease}.chip:hover{transform:translateY(-1px)}
.benefits>div,.about-card{box-shadow:var(--shadow-soft);border-color:rgba(228,220,200,.85)}
.bottom-nav{box-shadow:0 -8px 25px rgba(7,26,61,.07)}
@media(max-width:640px){.hero-overlay h1{font-size:clamp(30px,8vw,44px)}.hero::after{background:linear-gradient(180deg,rgba(7,26,61,.18),rgba(7,26,61,.72) 75%)}} 
