/* Kedai Basah & Seafood storefront (index.php, produk.php) */
:root {
    --navy: #0B1F3A; --blue: #1677FF; --blue-d: #0E5FD8; --green: #16A34A; --wa: #25D366;
    --text: #0F1E33; --muted: #5B6B80; --line: #E3E9F2; --bg: #F4F7FB; --red: #EF4444;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--text); background: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.hdr { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; line-height: 1.05; }
.brand img { width: 56px; }
.nav { display: flex; gap: 22px; font-size: 0.86rem; font-weight: 500; margin-left: 30px; }
.nav a:hover, .nav a.on { color: var(--blue); }
.search { margin-left: auto; display: flex; width: 280px; }
.search input { flex: 1; border: 1px solid var(--line); border-right: 0; background: #F4F7FB; border-radius: 8px 0 0 8px; padding: 10px 12px; font: inherit; font-size: 0.8rem; min-width: 0; }
.search input:focus { outline: none; border-color: var(--blue); background: #fff; }
.search button { border: 0; background: var(--navy); color: #fff; width: 42px; border-radius: 0 8px 8px 0; }
.cart-btn { position: relative; border: 0; background: none; font-size: 1.3rem; color: var(--text); padding: 6px; }
.cart-btn span { position: absolute; top: -2px; right: -4px; background: var(--red); color: #fff; font-size: 0.62rem; font-weight: 800; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.burger { display: none; border: 0; background: none; font-size: 1.3rem; padding: 6px; color: var(--text); }
.acc-ic { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-size: 1.15rem; color: var(--text); margin-right: -14px; }
.acc-ic:hover, .acc-ic.on { color: var(--blue); background: #E8F1FF; }
.acc-ic span { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 0.85rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Mobile / tablet menu drawer (burger) */
.mnav { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 86vw; background: #fff; z-index: 95; transform: translateX(-100%); transition: transform .25s; display: flex; flex-direction: column; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
.mnav.on { transform: none; box-shadow: 8px 0 30px rgba(10,20,40,.2); }
.mnav-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mnav-h .brand img { width: 44px; }
.mnav-search { position: relative; margin: 14px 14px 6px; }
.mnav-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #94A3B8; }
.mnav-search input { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 11px 12px 11px 38px; font: inherit; font-size: 0.86rem; }
.mnav-links { display: grid; padding: 8px; }
.mnav-links a { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; }
.mnav-links a i { width: 20px; text-align: center; color: var(--blue); }
.mnav-links a .fa-whatsapp { color: var(--wa); }
.mnav-links a:hover { background: var(--bg); }
.mnav-links a.on { background: #EEF4FF; color: var(--blue); }
.mnav-sec { padding: 8px 18px 4px; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px; }
.mnav-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 14px; }
.mnav-cats a { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; font-size: 0.8rem; font-weight: 500; }
.mnav-cats img { width: 34px; height: 26px; object-fit: cover; border-radius: 6px; }
.mnav-acc { margin-top: auto; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); }
.mnav-acc .wa-btn { padding: 10px; }

/* Hero */
.hero { background: linear-gradient(90deg, #0A1A31, #0B1F3A); color: #fff; position: relative; overflow: hidden; }
.hero-bg { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; background: var(--bg) center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); opacity: 0; transition: opacity .8s ease; }
.hero-bg.on { opacity: 1; }
/* Slides stack in one grid cell so the hero keeps the height of the tallest slide */
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.hero-slide.on { opacity: 1; visibility: visible; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; margin: -10px 0 22px; background: var(--blue); color: #fff; padding: 11px 20px; border-radius: 8px; font-weight: 700; font-size: 0.86rem; }
.hero-cta:hover { background: var(--blue-d); }
.hero-dots { display: flex; gap: 8px; margin-top: 18px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 6px; border: 0; padding: 0; background: rgba(255,255,255,.4); transition: width .3s, background .3s; }
.hero-dots button.on { width: 26px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-bg, .hero-slide { transition: none; } }
.hero .wrap { padding-top: 34px; padding-bottom: 24px; position: relative; z-index: 1; }
.hero .hero-title { margin: 0; font-size: 2.85rem; line-height: 1.12; font-weight: 800; }
.hero .hero-title span { color: #CFE2FF; }
.hero p { max-width: 380px; margin: 14px 0 26px; color: #E1E9F5; font-size: 0.95rem; line-height: 1.5; }
.hero-search { display: none; }
.feats { display: flex; gap: 28px; flex-wrap: wrap; }
.feat { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; line-height: 1.3; }
.feat i { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.feat b { display: block; font-weight: 700; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 18px 0 34px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-align: center; box-shadow: 0 2px 8px rgba(15,30,51,0.05); transition: transform .15s, box-shadow .15s; border-width: 1px; padding: 0; }
.cat:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,30,51,0.1); }
.cat.on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.cat img { width: 100%; aspect-ratio: 113/84; object-fit: cover; }
.cat span { display: block; padding: 9px 4px 11px; font-weight: 700; font-size: 0.92rem; }
.cat i, .cat .cs { display: none; }

/* Products */
.sec-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sec-h h2 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.sec-h a, .sec-h button { color: var(--blue); font-size: 0.86rem; font-weight: 600; background: none; border: 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(15,30,51,0.05); display: flex; flex-direction: column; }
.card .ph { position: relative; }
.card .ph img { width: 100%; aspect-ratio: 182/112; object-fit: cover; }
.badge { position: absolute; top: 0; left: 0; background: var(--red); color: #fff; font-size: 0.66rem; font-weight: 600; padding: 3px 10px; border-radius: 0 0 8px 0; }
.badge.Popular { background: #F97316; }
.card .bd { padding: 10px 10px 12px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0; font-size: 0.98rem; font-weight: 700; }
.card .pr { color: var(--green); font-weight: 700; font-size: 0.92rem; margin: 2px 0 10px; }
.card .out { color: var(--red); font-size: 0.72rem; font-weight: 600; margin: -6px 0 8px; }
.wa-btn { margin-top: auto; border: 0; background: var(--blue); color: #fff; border-radius: 5px; padding: 7px; font-size: 0.76rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }
.wa-btn:hover { background: var(--blue-d); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px; }

.usp { display: grid; grid-template-columns: repeat(4, 1fr); background: #EEF4FC; border-radius: 10px; margin: 22px 0 30px; padding: 14px 10px; }
.usp div { display: flex; align-items: center; gap: 14px; justify-content: center; font-size: 0.86rem; font-weight: 500; line-height: 1.35; border-right: 1px solid #D6E2F2; padding: 4px 8px; }
.usp div:last-child { border: 0; }
.usp i { font-size: 1.9rem; color: var(--blue); }

.foot { background: var(--navy); color: #C9D6EA; font-size: 0.82rem; padding: 26px 0; }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot b { color: #fff; }
.foot .foot-copy { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.78rem; text-align: center; }
.foot .foot-copy a:hover { color: #fff !important; }

/* Drawer / sheet */
.ovl { position: fixed; inset: 0; background: rgba(10,20,40,0.5); z-index: 90; display: none; }
.ovl.on { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100%; background: #fff; z-index: 95; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-h h3 { margin: 0; font-size: 1.1rem; }
.x { border: 0; background: #F1F5FA; width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; }
.drawer-b { flex: 1; overflow-y: auto; padding: 14px 18px; }
.ci { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #EEF2F7; }
.ci img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }
.ci .n { flex: 1; font-size: 0.86rem; } .ci .n b { display: block; } .ci .n small { color: var(--muted); }
.stp { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.stp button { border: 0; background: #F4F7FB; width: 30px; height: 30px; }
.stp span { min-width: 54px; text-align: center; font-size: 0.8rem; font-weight: 600; }
.rm { border: 0; background: none; color: var(--red); }
.fld { margin-bottom: 10px; }
.fld label { display: block; font-size: 0.74rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.fld input, .fld textarea, .fld select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; font-size: 0.86rem; }
.fld textarea { resize: vertical; min-height: 54px; }
.seg { display: flex; gap: 6px; }
.seg label { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 9px; text-align: center; font-size: 0.8rem; font-weight: 600; color: var(--text); cursor: pointer; margin: 0; }
.seg input { display: none; }
.seg input:checked + span { color: var(--blue); }
.seg label:has(input:checked) { border-color: var(--blue); background: #EEF4FF; }
.drawer-f { border-top: 1px solid var(--line); padding: 14px 18px; }
.tot { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; align-items: baseline; gap: 10px; }
.tot small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.send { width: 100%; border: 0; background: var(--wa); color: #fff; padding: 13px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.send:disabled { opacity: .5; cursor: not-allowed; }
.qrow { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; }
.qrow .stp button { width: 40px; height: 40px; font-size: 1rem; }
.qrow .stp span { min-width: 80px; font-size: 1rem; }
.chips { display: flex; gap: 6px; margin-bottom: 14px; }
.chips button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 0; font-size: 0.8rem; font-weight: 600; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ghost { border: 1px solid var(--blue); background: #fff; color: var(--blue); padding: 12px; border-radius: 10px; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 30px; font-size: 0.84rem; z-index: 99; opacity: 0; transition: .2s; pointer-events: none; }
.toast.on { opacity: 1; }
.tabbar { display: none; }

@media (max-width: 1024px) {
    .nav { display: none; }
    .burger { display: block; }
    .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .wrap { padding: 0 14px; }
    .hdr .wrap { height: 62px; gap: 10px; }
    .brand { font-size: 1.05rem; } .brand img { width: 50px; }
    .search { display: none; }
    .acc-ic { display: none; }
    .cart-btn { margin-left: auto; }
    .burger { display: block; }
    .hero-bg { width: 75%; background-image: var(--bgm, var(--bg)); }
    .hero-bg.on { opacity: .55; }
    .hero-cta { margin: -4px 0 14px; padding: 9px 16px; font-size: 0.8rem; }
    .hero-dots { margin-top: 12px; }
    .hero .wrap { padding-top: 22px; padding-bottom: 18px; }
    .hero .hero-title { font-size: 1.85rem; }
    .hero p { font-size: 0.82rem; margin: 10px 0 14px; }
    .hero-search { display: flex; }
    .hero-search input { flex: 1; border: 0; border-radius: 8px 0 0 8px; padding: 12px 14px; font: inherit; font-size: 0.86rem; min-width: 0; }
    .hero-search button { border: 0; background: var(--blue); color: #fff; width: 48px; border-radius: 0 8px 8px 0; font-size: 1rem; }
    .feats { display: none; }
    .cats { grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 22px; }
    .cat { box-shadow: none; background: #F4F7FB; border-color: transparent; padding: 10px 4px 8px; }
    .cat img { display: none; }
    .cat i { display: block; font-size: 1.35rem; margin-bottom: 4px; }
    .cat span { padding: 0; font-size: 0.72rem; font-weight: 500; }
    .cat .cl { display: none; } .cat .cs { display: block; }
    .sec-h h2 { font-size: 1.15rem; }
    .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .card .bd { padding: 8px 8px 10px; }
    .card h3 { font-size: 0.86rem; }
    .card .pr { color: var(--text); font-weight: 500; font-size: 0.8rem; }
    .wa-btn { background: var(--green); border-radius: 6px; padding: 8px 4px; font-size: 0.72rem; }
    .wa-btn:hover { background: #12873E; }
    .usp { grid-template-columns: 1fr 1fr; gap: 10px 0; }
    .usp div { justify-content: flex-start; font-size: 0.74rem; border: 0; }
    .usp i { font-size: 1.4rem; }
    .foot { padding-bottom: 90px; }
    .drawer { width: 100%; }
    .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 60; padding-bottom: env(safe-area-inset-bottom); }
    .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 0.68rem; color: #6B7A90; border: 0; background: none; position: relative; }
    .tabbar i { font-size: 1.15rem; }
    .tabbar .on { color: var(--blue); }
    .tabbar .tb-badge { position: absolute; top: 4px; left: 54%; background: var(--red); color: #fff; font-size: 0.58rem; font-weight: 800; min-width: 15px; height: 15px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
}

/* Product cards link to the detail page */
.card .ph, .card h3 a { display: block; }
.card h3 a:hover { color: var(--blue); }

/* Product detail page (produk.php) */
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--muted); margin: 18px 0 16px; }
.crumb a:hover { color: var(--blue); }
.crumb i { font-size: 0.6rem; }
.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.pd-media { position: sticky; top: 84px; }
.pd-main { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg); }
.pd-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pd-main .badge { font-size: 0.8rem; padding: 5px 14px; border-radius: 0 0 12px 0; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; background: none; flex-shrink: 0; }
.thumbs button.on { border-color: var(--blue); }
.thumbs img { width: 84px; height: 62px; object-fit: cover; }
.pd-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--blue); background: #EEF4FF; padding: 5px 12px; border-radius: 20px; }
.pd h1 { margin: 12px 0 6px; font-size: 2rem; font-weight: 800; line-height: 1.15; }
.pd-price { color: var(--green); font-weight: 800; font-size: 1.6rem; }
.pd-price small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.stock-st { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; font-weight: 600; margin: 10px 0 14px; }
.stock-st::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.st-ok { color: var(--green); } .st-low { color: #EA580C; } .st-out { color: var(--red); }
.pd-desc { font-size: 0.92rem; color: #3E4C60; line-height: 1.7; margin: 0 0 16px; }
.pd-box { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #FBFCFE; }
.pd-box .qrow { margin-top: 0; }
.pd-box .send, .pd-box .ghost { padding: 14px; font-size: 0.95rem; }
.pd-info { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-info li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; line-height: 1.4; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.pd-info i { color: var(--blue); font-size: 1.05rem; margin-top: 1px; }
.pd-info b { display: block; }
.pd-share { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: 0.82rem; color: var(--muted); }
.pd-share a, .pd-share button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.pd-share a:hover, .pd-share button:hover { border-color: var(--blue); color: var(--blue); }
.related { margin: 44px 0 10px; }
.pd-missing { text-align: center; padding: 80px 0; }
.pd-missing i { font-size: 3rem; color: #94A3B8; }

@media (max-width: 900px) {
    .pd { grid-template-columns: 1fr; gap: 18px; }
    .pd-media { position: static; }
}
@media (max-width: 760px) {
    .crumb { margin: 12px 0 10px; }
    .pd-main { margin: 0 -14px; border-radius: 0; }
    .thumbs img { width: 66px; height: 50px; }
    .pd h1 { font-size: 1.45rem; }
    .pd-price { font-size: 1.3rem; }
    .pd-info { grid-template-columns: 1fr; }
    .related { margin-top: 30px; }
}

/* Auth pages (login.php, register.php, forgot/reset password) */
.auth { background: var(--bg); padding: 40px 16px 56px; }
.auth-card { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(15,30,51,0.10); border: 1px solid var(--line); }
.auth-side { color: #fff; background: linear-gradient(160deg, rgba(10,26,49,0.95) 0%, rgba(11,31,58,0.82) 55%, rgba(11,31,58,0.5) 100%), url('../../img/kedai/hero.jpg') center / cover no-repeat, var(--navy); }
.auth-side-in { padding: 36px 34px; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; }
.auth-brand img { width: 52px; border-radius: 8px; }
.auth-side h2 { margin: auto 0 10px; padding-top: 60px; font-size: 2.1rem; line-height: 1.15; font-weight: 800; }
.auth-side h2 span { color: #CFE2FF; }
.auth-side p { color: #DCE6F5; font-size: 0.88rem; line-height: 1.6; margin: 0 0 18px; }
.auth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.84rem; }
.auth-side li { display: flex; align-items: center; gap: 10px; }
.auth-side li i { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.auth-form { padding: 40px 42px; }
.auth-form h1 { margin: 0 0 6px; font-size: 1.7rem; font-weight: 800; }
.auth-sub { margin: 0 0 22px; color: var(--muted); font-size: 0.88rem; }
.auth-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 0.84rem; margin-bottom: 16px; line-height: 1.45; }
.auth-alert i { margin-top: 2px; }
.auth-alert.err { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.auth-alert.ok { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.auth-alert a { font-weight: 700; text-decoration: underline; }
.afld { margin-bottom: 14px; }
.afld-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.afld label { font-size: 0.8rem; font-weight: 700; }
.afld-row a { font-size: 0.78rem; color: var(--blue); font-weight: 600; }
.ain { position: relative; }
.ain > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94A3B8; font-size: 0.9rem; }
.ain input { width: 100%; border: 1px solid var(--line); background: #F8FAFD; border-radius: 10px; padding: 13px 44px 13px 40px; font: inherit; font-size: 0.9rem; color: var(--text); }
.ain input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(22,119,255,0.12); }
.ain .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #94A3B8; width: 36px; height: 36px; }
.auth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.auth-btn { width: 100%; border: 0; background: var(--blue); color: #fff; padding: 14px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-btn:hover { background: var(--blue-d); }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.78rem; margin: 20px 0; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-wa { width: 100%; border: 1px solid var(--line); background: #fff; padding: 12px; border-radius: 10px; font-weight: 600; font-size: 0.88rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-wa i { color: var(--wa); font-size: 1.1rem; }
.auth-wa:hover { border-color: var(--wa); }
.auth-foot { text-align: center; margin: 22px 0 0; font-size: 0.86rem; color: var(--muted); }
.auth-foot a { color: var(--blue); font-weight: 700; }
@media (max-width: 860px) {
    .auth-card { grid-template-columns: 1fr; }
    .auth-side h2 { padding-top: 22px; font-size: 1.55rem; }
    .auth-side p, .auth-side ul { display: none; }
    .auth-side-in { padding: 22px; }
}
@media (max-width: 760px) {
    .auth { padding: 0 0 30px; background: #fff; }
    .auth-card { border-radius: 0; box-shadow: none; border: 0; }
    .auth-form { padding: 24px 16px; }
    .auth-form h1 { font-size: 1.4rem; }
    .auth-two { grid-template-columns: 1fr; }
}

/* Inner pages: title band, buttons, empty state */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.page-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(90deg, #0A1A31, #0B1F3A); }
.page-hero::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 50%; background: url('../../img/kedai/hero.jpg') center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); opacity: .8; }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 6px; padding-bottom: 28px; }
.page-hero .crumb { color: #B9C8DE; margin: 14px 0 12px; }
.page-hero .crumb a:hover { color: #fff; }
.page-hero h1 { margin: 0 0 6px; font-size: 2.1rem; font-weight: 800; }
.page-hero h1 i { color: #8FC2FF; font-size: 1.6rem; margin-right: 6px; }
.page-hero p { margin: 0; max-width: 520px; color: #DCE6F5; font-size: 0.92rem; line-height: 1.55; }
.btn-out { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 0.86rem; }
.btn-out:hover { border-color: var(--blue); color: var(--blue); }
.empty-box { text-align: center; padding: 50px 20px; border: 1px dashed var(--line); border-radius: 14px; background: #FBFCFE; }
.empty-box i { font-size: 2.4rem; color: #94A3B8; }
.empty-box h3 { margin: 12px 0 6px; } .empty-box p { color: var(--muted); font-size: 0.88rem; margin: 0 0 16px; }
.empty-box .wa-btn { display: inline-flex; width: auto; padding: 11px 20px; }
.block { margin: 30px 0; }
.card .pr .was { color: #94A3B8; font-weight: 500; font-size: 0.78rem; margin-left: 6px; }

/* Produk listing */
.shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.shop-side { position: sticky; top: 82px; display: grid; gap: 14px; }
.side-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.side-box h3 { margin: 0 0 10px; font-size: 0.95rem; }
.side-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 0.86rem; }
.side-cats a:hover { background: var(--bg); }
.side-cats a.on { background: #EEF4FF; color: var(--blue); font-weight: 700; }
.side-cats img { width: 30px; height: 24px; object-fit: cover; border-radius: 5px; }
.side-cats i { width: 30px; text-align: center; color: var(--blue); }
.side-cats span { margin-left: auto; font-size: 0.72rem; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 1px 8px; }
.side-lbl { display: block; font-size: 0.74rem; font-weight: 700; color: var(--muted); margin: 8px 0 4px; }
.side-in { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 0.84rem; background: #fff; }
.side-check { display: flex; gap: 8px; align-items: center; font-size: 0.84rem; margin: 12px 0; }
.shop-side .wa-btn { padding: 10px; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 0.88rem; color: var(--muted); }
.shop-bar b { color: var(--text); }
.shop-bar select { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 0.84rem; background: #fff; }
.fchip { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; background: #EEF4FF; color: var(--blue); border-radius: 20px; padding: 3px 10px; font-size: 0.78rem; font-weight: 600; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.chips-m { display: none; }

/* Promosi */
.promo-band { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; margin-top: 26px; border-radius: 16px; overflow: hidden; background: linear-gradient(120deg, #FFF4EB, #FFE8E8); border: 1px solid #FBD5C5; }
.promo-band-txt { padding: 30px 34px; }
.promo-kicker { display: inline-flex; gap: 6px; align-items: center; background: var(--red); color: #fff; border-radius: 20px; padding: 4px 12px; font-size: 0.76rem; font-weight: 700; }
.promo-band h2 { margin: 12px 0 8px; font-size: 2rem; font-weight: 800; color: #9A2A12; }
.promo-band p { margin: 0 0 18px; color: #6B3A2A; font-size: 0.9rem; line-height: 1.55; }
.promo-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.promo-cta .wa-btn { width: auto; padding: 11px 18px; background: var(--red); }
.promo-band img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.deal-wrap { position: relative; display: flex; }
.deal-wrap .card { flex: 1; }
.deal-wrap .off { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--red); color: #fff; font-weight: 800; font-size: 0.8rem; padding: 6px 9px; border-radius: 50%; min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(239,68,68,.35); }

/* Cara Order */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 16px 18px; text-align: center; box-shadow: 0 2px 8px rgba(15,30,51,0.04); }
.steps li:not(:last-child)::after { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: -12px; top: 44px; color: #B6C6DC; font-size: 0.8rem; z-index: 1; }
.step-n { position: absolute; top: 10px; left: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 0.74rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step-ic { width: 58px; height: 58px; border-radius: 50%; background: #EEF4FF; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.fa-brands.step-ic { background: #E8F9EF; color: var(--wa); }
.steps h3 { margin: 12px 0 6px; font-size: 1rem; }
.steps p { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: linear-gradient(180deg, #F7FAFF, #fff); }
.opt > i { font-size: 1.7rem; color: var(--blue); }
.opt h3 { margin: 10px 0 6px; } .opt p { margin: 0 0 8px; font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
.opt .opt-meta { color: var(--text); font-weight: 600; font-size: 0.82rem; margin: 0; } .opt-meta i { color: var(--blue); margin-right: 4px; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 0.9rem; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 16px 14px; font-size: 0.86rem; color: var(--muted); line-height: 1.6; }
.help-card { position: sticky; top: 82px; border-radius: 14px; padding: 22px; background: var(--navy); color: #fff; text-align: center; display: grid; gap: 10px; }
.help-card > i { font-size: 2.4rem; color: var(--wa); }
.help-card h3 { margin: 0; } .help-card p { margin: 0; color: #C9D6EA; font-size: 0.86rem; line-height: 1.5; }
.help-card .help-phone { color: #fff; font-weight: 800; font-size: 1.1rem; }
.help-card .btn-out { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }

@media (max-width: 1024px) {
    .shop { grid-template-columns: 210px minmax(0, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .steps li::after { display: none; }
    .faq-wrap { grid-template-columns: 1fr; }
    .help-card { position: static; }
}
@media (max-width: 760px) {
    .page-hero::after { width: 80%; opacity: .45; }
    .page-hero h1 { font-size: 1.5rem; }
    .page-hero p { font-size: 0.82rem; }
    .shop { grid-template-columns: minmax(0, 1fr); margin-top: 12px; gap: 0; }
    .shop-side { display: none; }
    .chips-m { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
    .chips-m::-webkit-scrollbar { display: none; }
    .chips-m a { white-space: nowrap; border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px; font-size: 0.8rem; background: #fff; }
    .chips-m a.on { background: var(--blue); border-color: var(--blue); color: #fff; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .promo-band { grid-template-columns: 1fr; margin-top: 14px; }
    .promo-band-txt { padding: 20px; }
    .promo-band h2 { font-size: 1.5rem; }
    .promo-band img { min-height: 150px; max-height: 180px; order: -1; }
    .steps { grid-template-columns: 1fr; }
    .steps li { text-align: left; display: grid; grid-template-columns: 58px 1fr; gap: 0 14px; padding: 16px; }
    .steps .step-ic { grid-row: span 2; }
    .steps h3 { margin: 4px 0 2px; }
    .step-n { left: auto; right: 12px; }
    .opts { grid-template-columns: 1fr; }
}

/* Cart drawer: checkout first, WhatsApp order as alternative */
.co-go { background: var(--blue); text-decoration: none; }
.co-go:hover { background: var(--blue-d); }
.co-go.is-off { opacity: .5; pointer-events: none; }
.wa-alt { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.wa-alt > summary { cursor: pointer; padding: 12px 0; font-size: 0.84rem; font-weight: 700; color: #128C7E; list-style: none; }
.wa-alt > summary::-webkit-details-marker { display: none; }
.wa-alt > summary i { color: var(--wa); margin-right: 4px; }
.wa-alt[open] { padding-bottom: 12px; }

/* Checkout page (bayar.php) */
.co-steps { display: flex; align-items: center; gap: 10px; margin: 20px 0 16px; font-size: 0.84rem; color: var(--muted); flex-wrap: wrap; }
.co-steps span { display: inline-flex; gap: 8px; align-items: center; }
.co-steps b { width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 0.74rem; }
.co-steps .on { color: var(--text); font-weight: 700; } .co-steps .on b { background: var(--blue); color: #fff; }
.co-steps i { font-size: 0.6rem; }
.co { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; margin-bottom: 30px; }
.co-main { display: grid; gap: 14px; }
.co-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.co-box h2 { margin: 0 0 14px; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.co-box h2 span { width: 26px; height: 26px; border-radius: 50%; background: #EEF4FF; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.co-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.co-hint { display: block; color: var(--muted); font-size: 0.76rem; margin-top: 6px; line-height: 1.45; }
.co-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.co-opt input, .co-pay > input { position: absolute; opacity: 0; pointer-events: none; }
.co-opt > span { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.co-opt i { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: #EEF4FF; color: var(--blue); display: flex; align-items: center; justify-content: center; }
.co-opt small { color: var(--muted); font-size: 0.76rem; }
.co-opt input:checked + span, .co-pay:has(> input:checked) { border-color: var(--blue); background: #F5F9FF; box-shadow: 0 0 0 3px rgba(22,119,255,.1); }
.co-pays { display: grid; gap: 10px; }
.co-pay { position: relative; display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; }
.co-pay-h { display: flex; gap: 12px; align-items: flex-start; }
.co-pay-h > i { width: 40px; height: 40px; border-radius: 10px; background: #EEF4FF; color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.05rem; }
.co-pay-h b { display: block; font-size: 0.92rem; } .co-pay-h small { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.45; margin-top: 2px; }
.co-pay-h em { margin-left: auto; font-style: normal; font-size: 0.76rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.co-pay-h::after { content: ''; margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C9D6EA; flex-shrink: 0; }
.co-pay:has(> input:checked) .co-pay-h::after { border: 6px solid var(--blue); }
.co-pay-d { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.co-pay:has(> input:checked) .co-pay-d { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.co-bank { display: grid; gap: 8px; font-size: 0.86rem; }
.co-bank small { display: block; color: var(--muted); font-size: 0.72rem; }
.co-copy { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 8px; font-size: 0.72rem; margin-left: 6px; }
.co-qr-link { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.co-qr { width: 170px; height: 170px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; box-sizing: border-box; }
.co-qr-link small { font-size: 0.72rem; color: var(--blue); font-weight: 600; }
.co-receipt { grid-column: 1 / -1; margin: 0; }
.co-receipt input { background: #fff; }
.co-side { position: sticky; top: 82px; }
.co-sum h2 { margin-bottom: 10px; }
.co-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #EEF2F7; font-size: 0.84rem; }
.co-item img { width: 52px; height: 38px; object-fit: cover; border-radius: 6px; }
.co-item span { flex: 1; min-width: 0; } .co-item small { display: block; color: var(--muted); font-size: 0.74rem; }
.co-item em { font-style: normal; font-weight: 700; }
.co-line { display: flex; justify-content: space-between; padding: 8px 0 0; font-size: 0.88rem; }
.co-tot { font-size: 1.1rem; font-weight: 800; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line); }
.co-tot b { color: var(--green); }
.co-sum .auth-alert { margin: 12px 0 0; }
.co-back { display: block; text-align: center; margin-top: 12px; font-size: 0.82rem; color: var(--blue); font-weight: 600; }
@media (max-width: 900px) { .co { grid-template-columns: 1fr; } .co-side { position: static; } }
@media (max-width: 760px) { .co-two, .co-opts { grid-template-columns: 1fr; } .co-pay:has(> input:checked) .co-pay-d { grid-template-columns: 1fr; } .co-qr-link { justify-self: stretch; } .co-qr { width: 100%; max-width: 300px; height: auto; aspect-ratio: 1; } }

/* Order status page (pesanan.php) */
.od { max-width: 760px; margin: 26px auto 34px; }
.od-head { text-align: center; padding: 30px 20px; }
.od-ic { width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; margin-bottom: 14px; }
.od-head h1 { margin: 0 0 6px; font-size: 1.6rem; } .od-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.od-no { display: inline-block; margin-top: 12px; background: var(--bg); border-radius: 8px; padding: 6px 14px; font-weight: 800; letter-spacing: .5px; }
.od-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 0.86rem; margin-bottom: 12px; }
.od-grid small { display: block; color: var(--muted); font-size: 0.74rem; }
.od-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.od-acts a { width: auto; padding: 12px 20px; text-decoration: none; }
@media (max-width: 600px) { .od-grid { grid-template-columns: 1fr; } }

/* Checkout: pickup branch + delivery postcode */
.co-sub-l { display: block; font-size: 0.74rem; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.co-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-bottom: 12px; }
.co-branch input { position: absolute; opacity: 0; pointer-events: none; }
.co-branch > span { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: 0.84rem; height: 100%; box-sizing: border-box; }
.co-branch > span > i { color: var(--blue); margin-top: 3px; }
.co-branch small { display: block; color: var(--muted); font-size: 0.74rem; line-height: 1.4; }
.co-branch input:checked + span { border-color: var(--blue); background: #F5F9FF; box-shadow: 0 0 0 3px rgba(22,119,255,.1); }
#co-postcode { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; font-size: 0.86rem; background: #fff; }
#co-min { color: #C2410C; font-weight: 600; }
.wa-ship { display: block; margin-top: 6px; font-size: 0.76rem; font-weight: 600; color: #15803D; }
.wa-ship.warn { color: #C2410C; }
#order-form select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; font-size: 0.86rem; background: #fff; }

/* Checkout: stock per chosen branch */
.co-bstat { display: block; font-style: normal; font-size: 0.72rem; font-weight: 700; margin-top: 4px; }
.co-bstat.ok { color: #15803D; } .co-bstat.bad { color: #DC2626; }
.co-item.short { background: #FEF2F2; border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.co-item.short b, .co-item.short em { color: #B91C1C; }
.co-short { color: #DC2626 !important; font-weight: 700; }
.co-stock { margin: 12px 0 0; border-radius: 10px; padding: 11px 13px; font-size: 0.82rem; line-height: 1.5; }
.co-stock.bad { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.co-stock.ok { background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; }
.co-stock.info { background: #EEF4FF; border: 1px solid #D6E4FF; color: #1E3A8A; }
.co-stock ul { margin: 6px 0; padding-left: 18px; } .co-stock small { display: block; color: #7F1D1D; }
.auth-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Opening days in checkout / WhatsApp form */
.date-msg { display: block; margin-top: 6px; font-size: 0.76rem; font-weight: 600; line-height: 1.45; }
.date-msg.ok { color: #15803D; } .date-msg.bad { color: #DC2626; } .date-msg.info { color: #C2410C; }
.co-bhrs { display: block; font-style: normal; font-size: 0.72rem; font-weight: 600; margin-top: 3px; }
.co-bhrs.ok { color: #475569; } .co-bhrs.bad { color: #DC2626; }

/* Home: shop status pill in hero + opening hours section */
.hero-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; backdrop-filter: blur(4px); }
.hero-pill i { font-size: 0.62rem; opacity: .8; }
.hero-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #94A3B8; }
.hero-pill.open .dot { background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.25); animation: kbPulse 1.8s infinite; }
.hero-pill.soon .dot { background: #F59E0B; } .hero-pill.closed .dot { background: #EF4444; }
@keyframes kbPulse { 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
@media (prefers-reduced-motion: reduce) { .hero-pill.open .dot { animation: none; } }
.hours { margin: 0 0 34px; }
.hours-now { color: var(--muted); font-size: 0.84rem; }
.hours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.hours-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 2px 8px rgba(15,30,51,0.05); display: flex; flex-direction: column; gap: 12px; }
.hours-top { display: flex; gap: 12px; align-items: center; }
.hours-top h3 { margin: 0; font-size: 1rem; } .hours-top small { color: var(--muted); font-size: 0.78rem; }
.hours-ic { width: 42px; height: 42px; border-radius: 12px; background: #EEF4FF; color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hours-status { display: flex; gap: 12px; align-items: center; border-radius: 10px; padding: 10px 12px; font-size: 0.82rem; }
.hours-status > i { font-size: 1.2rem; }
.hours-status b { display: block; font-size: 0.95rem; }
.st-open .hours-status { background: #F0FDF4; color: #15803D; }
.st-soon .hours-status { background: #FFF7ED; color: #C2410C; }
.st-closed .hours-status { background: #FEF2F2; color: #B91C1C; }
.hours-week > summary { cursor: pointer; font-size: 0.82rem; font-weight: 700; color: var(--blue); list-style: none; }
.hours-week > summary::-webkit-details-marker { display: none; }
.hours-week > summary::after { content: ' ▾'; }
.hours-week[open] > summary::after { content: ' ▴'; }
.hours-week ul { list-style: none; margin: 8px 0 0; padding: 0; font-size: 0.82rem; }
.hours-week li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 6px 8px; border-radius: 8px; }
.hours-week li small { color: var(--muted); }
.hours-week li.today { background: #EEF4FF; font-weight: 700; }
.hours-week li.off b { color: #DC2626; }
.hours-week li em { grid-column: 1 / -1; font-style: normal; font-size: 0.72rem; color: #C2410C; }
.hours-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.hours-acts a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 0.8rem; font-weight: 600; }
.hours-acts a:hover { border-color: var(--blue); color: var(--blue); }
.hours-acts a.pri { margin-left: auto; background: var(--blue); border-color: var(--blue); color: #fff; }
@media (max-width: 760px) {
    .hours { margin-bottom: 24px; }
    .hours .sec-h { flex-wrap: wrap; gap: 4px; }
    .hours-now { font-size: 0.74rem; }
    .hours-grid { grid-template-columns: 1fr; }
    .hero-pill { font-size: 0.72rem; margin-bottom: 10px; }
}

/* Branch status cards as toggles (click to open) */
.hours-grid { align-items: start; }
.hours-card { padding: 0; gap: 0; overflow: hidden; }
.hours-card > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; gap: 12px; user-select: none; }
.hours-card > summary::-webkit-details-marker { display: none; }
.hours-card > summary:hover { background: #FBFCFE; }
.hours-card > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.hours-name { flex: 1; min-width: 0; }
.hours-name b { display: block; font-size: 0.98rem; }
.hours-name small { display: block; color: var(--muted); font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hours-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 20px; font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.hours-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-open .hours-badge { background: #DCFCE7; color: #15803D; }
.st-soon .hours-badge { background: #FFEDD5; color: #C2410C; }
.st-closed .hours-badge { background: #FEE2E2; color: #B91C1C; }
.hours-chev { color: var(--muted); font-size: 0.8rem; transition: transform .2s; }
.hours-card[open] .hours-chev { transform: rotate(180deg); }
.hours-card[open] > summary { border-bottom: 1px solid var(--line); }
.hours-body { padding: 14px 16px 16px; display: grid; gap: 12px; }
.hours-week h4 { margin: 0 0 6px; font-size: 0.82rem; color: var(--muted); }
.hours-week ul { margin: 0; }
@media (max-width: 760px) { .hours-card > summary { padding: 12px 14px; gap: 10px; } .hours-badge { font-size: 0.68rem; padding: 4px 8px; } }

/* Whole branch list is a toggle */
.hours-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 8px rgba(15,30,51,0.05); overflow: hidden; }
.hours-wrap > summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: center; gap: 14px; user-select: none; }
.hours-wrap > summary::-webkit-details-marker { display: none; }
.hours-wrap > summary:hover { background: #FBFCFE; }
.hours-wrap > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.hours-wrap[open] > summary { border-bottom: 1px solid var(--line); }
.hours-wrap[open] > summary > .hours-chev { transform: rotate(180deg); }
.hours-head-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.hours-head-ic.st-open { background: #DCFCE7; color: #15803D; } .hours-head-ic.st-soon { background: #FFEDD5; color: #C2410C; } .hours-head-ic.st-closed { background: #FEE2E2; color: #B91C1C; }
.hours-head-t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hours-head-t b { font-size: 1.15rem; font-weight: 800; }
.hours-head-t .hero-pill { margin: 0; background: transparent; border: 0; padding: 0; color: var(--text); backdrop-filter: none; font-size: 0.82rem; }
.hours-head-n { color: var(--muted); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.hours-inner { padding: 14px 16px 16px; background: var(--bg); }
.hours-inner .hours-now { margin: 0 0 12px; }
@media (max-width: 760px) {
    .hours-wrap > summary { padding: 12px 14px; gap: 10px; }
    .hours-head-t b { font-size: 1rem; }
    .hours-head-n { display: none; }
    .hours-inner { padding: 12px; }
}

/* Customer account (account.php) */
.acc { background: var(--bg); padding: 26px 0 56px; min-height: 60vh; }
.acc-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: #fff; border-radius: 18px; padding: 26px 28px; background: linear-gradient(120deg, rgba(11,31,58,0.97) 0%, rgba(11,31,58,0.88) 55%, rgba(22,119,255,0.75) 100%), url('../../img/kedai/hero.jpg') center / cover no-repeat, var(--navy); box-shadow: 0 14px 34px rgba(11,31,58,0.18); }
.acc-me { display: flex; align-items: center; gap: 16px; min-width: 0; }
.acc-av { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; background: var(--blue); border: 3px solid rgba(255,255,255,0.35); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; }
.acc-me small { color: #A9BCD6; font-size: 0.8rem; }
.acc-me h1 { margin: 2px 0 6px; font-size: 1.55rem; font-weight: 800; }
.acc-me p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.8rem; color: #D5E1F2; word-break: break-all; }
.acc-me p i { margin-right: 4px; opacity: .8; }
.acc-hero-act { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 18px; font-size: 0.86rem; font-weight: 700; background: var(--blue); color: #fff; }
.acc-btn:hover { background: var(--blue-d); }
.acc-btn.light { background: #fff; color: var(--navy); }
.acc-btn.light:hover { background: #E8F1FF; }
.acc-btn.ghost { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); }
.acc-btn.ghost:hover { background: rgba(255,255,255,0.2); }
.acc-btn.sm { padding: 8px 13px; font-size: 0.78rem; border-radius: 8px; }
.acc-btn.out { background: #fff; color: var(--text); border: 1px solid var(--line); }
.acc-btn.out:hover { border-color: var(--blue); color: var(--blue); }
.acc-btn.wa { background: var(--wa); }
.acc-btn.wa:hover { background: #1EBE5A; }
.acc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 22px; }
.acc-stat { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 2px 8px rgba(15,30,51,0.04); min-width: 0; }
.acc-stat > i { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.acc-stat b { display: block; font-size: 1.2rem; font-weight: 800; white-space: nowrap; }
.acc-stat small { color: var(--muted); font-size: 0.76rem; }
.acc-tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.acc-tabs button { border: 0; background: none; border-radius: 9px; padding: 10px 18px; font-size: 0.86rem; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.acc-tabs button.on { background: var(--navy); color: #fff; }
.acc-flash { max-width: 760px; }
.acc-filter { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; scrollbar-width: none; }
.acc-filter::-webkit-scrollbar { display: none; }
.acc-filter button { flex-shrink: 0; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.acc-filter button span { background: var(--bg); border-radius: 99px; padding: 1px 7px; margin-left: 4px; font-size: 0.72rem; }
.acc-filter button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.acc-filter button.on span { background: rgba(255,255,255,0.22); }
.acc-orders { display: flex; flex-direction: column; gap: 14px; }
.acc-order { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 10px rgba(15,30,51,0.04); overflow: hidden; }
.acc-order > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.acc-order > header b { display: block; font-size: 0.95rem; }
.acc-order > header small { color: var(--muted); font-size: 0.76rem; }
.acc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 0.74rem; font-weight: 700; }
.acc-badge.blue { background: #E8F1FF; color: #0E5FD8; }
.acc-badge.orange { background: #FFF4E5; color: #C2610A; }
.acc-badge.teal { background: #E0F7F4; color: #0F766E; }
.acc-badge.green { background: #E7F7EE; color: #15803D; }
.acc-badge.red { background: #FEF2F2; color: #B91C1C; }
.acc-steps { --p: 0; list-style: none; margin: 0; padding: 16px 18px 6px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.acc-steps::before, .acc-steps::after { content: ""; position: absolute; top: 24px; left: 12.5%; height: 3px; border-radius: 3px; background: var(--line); width: 75%; }
.acc-steps::after { background: var(--green); width: calc(75% * var(--p)); }
.acc-steps li { position: relative; z-index: 1; text-align: center; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.acc-steps li i { display: block; width: 18px; height: 18px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.acc-steps li.done { color: var(--text); }
.acc-steps li.done i { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 3px #E7F7EE; }
.acc-items { padding: 8px 18px; }
.acc-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.acc-item + .acc-item { border-top: 1px dashed var(--line); }
.acc-item img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.acc-item span { flex: 1; min-width: 0; }
.acc-item b { display: block; font-size: 0.86rem; font-weight: 700; }
.acc-item small { color: var(--muted); font-size: 0.76rem; }
.acc-item em { font-style: normal; font-weight: 700; font-size: 0.86rem; }
.acc-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 18px; font-size: 0.78rem; color: var(--muted); background: #FAFCFF; border-top: 1px solid var(--line); }
.acc-meta i { margin-right: 4px; color: var(--blue); }
.acc-meta a { color: #0F766E; font-weight: 700; }
.acc-order > footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px 14px; border-top: 1px solid var(--line); }
.acc-total small { display: block; color: var(--muted); font-size: 0.72rem; }
.acc-total span { font-size: 0.84rem; color: var(--muted); }
.acc-total b { color: var(--text); font-size: 1.1rem; font-weight: 800; margin-left: 4px; }
.acc-act { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-none { text-align: center; color: var(--muted); font-size: 0.86rem; padding: 26px 0; }
.acc-empty { background: #fff; border: 1px solid var(--line); border-radius: 16px; text-align: center; padding: 48px 20px; }
.acc-empty > i { width: 74px; height: 74px; border-radius: 50%; background: #E8F1FF; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 1.9rem; margin-bottom: 14px; }
.acc-empty h3 { margin: 0 0 6px; font-size: 1.15rem; }
.acc-empty p { margin: 0 auto 18px; color: var(--muted); font-size: 0.86rem; max-width: 380px; }
.acc-form { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.acc-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.acc-card h2 { margin: 0 0 14px; font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.acc-card h2 i { color: var(--blue); }
.acc-note { margin: -8px 0 14px; color: var(--muted); font-size: 0.8rem; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acc-f { display: flex; flex-direction: column; gap: 6px; }
.acc-f.full { grid-column: 1 / -1; }
.acc-f > span { font-size: 0.8rem; font-weight: 700; }
.acc-f input, .acc-f textarea, .acc-f select { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 0.86rem; background: #fff; width: 100%; }
.acc-f input:focus, .acc-f textarea:focus, .acc-f select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,119,255,0.12); }
.acc-f input[readonly] { background: var(--bg); color: var(--muted); }
.acc-f small { color: var(--muted); font-size: 0.72rem; }
.acc-save { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-save a { color: var(--blue); font-size: 0.84rem; font-weight: 600; }
@media (max-width: 860px) {
    .acc-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .acc { padding: 14px 0 90px; }
    .acc .wrap { padding: 0 16px; }
    .acc-hero { padding: 20px 18px; border-radius: 16px; }
    .acc-av { width: 52px; height: 52px; font-size: 1.3rem; }
    .acc-me h1 { font-size: 1.25rem; }
    .acc-hero-act { width: 100%; }
    .acc-hero-act .acc-btn { flex: 1; padding: 10px 12px; }
    .acc-stats { gap: 10px; margin: 14px 0 16px; }
    .acc-stat { padding: 12px; gap: 10px; }
    .acc-stat > i { width: 38px; height: 38px; font-size: 0.95rem; }
    .acc-stat b { font-size: 1rem; }
    .acc-tabs { display: flex; }
    .acc-tabs button { flex: 1; justify-content: center; padding: 10px 8px; font-size: 0.8rem; }
    .acc-order > header, .acc-items, .acc-meta, .acc-order > footer { padding-left: 14px; padding-right: 14px; }
    .acc-steps { padding: 14px 6px 4px; }
    .acc-steps li { font-size: 0.66rem; }
    .acc-act { width: 100%; }
    .acc-act .acc-btn { flex: 1; }
    .acc-grid { grid-template-columns: 1fr; }
    .acc-save .acc-btn { width: 100%; }
}

/* Order page: countdown before opening WhatsApp to confirm the order */
.od-wa-auto { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #E7F7EE; border: 1px solid #BBE5CB; color: #14532D; font-size: 0.9rem; }
.od-wa-auto[hidden] { display: none; }
.od-wa-auto > i { font-size: 1.4rem; color: #16A34A; }
.od-wa-auto span { flex: 1; }
.od-wa-auto b { font-size: 1.05rem; }
.od-wa-auto button { border: 1px solid #BBE5CB; background: #fff; color: #14532D; border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 700; cursor: pointer; }

/* Cart drawer: step 1 = customer details, step 2 = choose Bayar Sekarang or Order di WhatsApp */
.cd-info { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.cd-info[hidden], .cd-go[hidden] { display: none; }
.cd-info-h { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.cd-info-h > span, .cd-go-l > span { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 0.78rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.cd-info-h > div > b { display: block; font-size: 0.95rem; }
.cd-info-h small { display: block; color: var(--muted); font-size: 0.76rem; line-height: 1.4; margin-top: 2px; }
.cd-info .fld label small { font-weight: 500; color: var(--muted); }
.cd-go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cd-go-l { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.82rem; }
.cd-go .send { flex-direction: column; gap: 2px; padding: 10px 8px; font-size: 0.9rem; line-height: 1.2; text-align: center; cursor: pointer; }
.cd-go .send i { font-size: 1.05rem; }
.cd-go .send small { font-weight: 500; font-size: 0.66rem; opacity: .9; }
.cd-wa { background: var(--wa); }
.auth-alert.info { background: #EEF4FF; color: #1D4ED8; border: 1px solid #C7DBFF; }
.cd-go .send small.cd-lock { background: rgba(255,255,255,.22); border-radius: 6px; padding: 1px 6px; margin-top: 3px; opacity: 1; }
