:root {
  --or: #ee4d2d; --or-d: #d73211; --or-l: #fff5f1; --or-b: #f6c3b4;
  --bg: #f5f5f5; --card: #fff; --ink: rgba(0,0,0,.87); --ink2: rgba(0,0,0,.54); --ink3: rgba(0,0,0,.26);
  --line: rgba(0,0,0,.09); --green: #26aa99; --yellow: #ffb800;
  --r: 2px; --shadow: 0 1px 1px rgba(0,0,0,.05);
  --font: "Helvetica Neue", Helvetica, Roboto, Arial, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.4 var(--font); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: 1200px; max-width: 100%; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.hdr { background: linear-gradient(-180deg, #f53d2d, #f63); color: #fff; position: sticky; top: 0; z-index: 50; }
.nav-top { display: flex; justify-content: space-between; font-size: 13px; height: 34px; align-items: center; }
.nav-top > div { display: flex; align-items: center; gap: 10px; }
.nav-top a:hover { opacity: .75; }
.sep { width: 1px; height: 13px; background: rgba(255,255,255,.4); }
.hdr-main { display: flex; align-items: center; gap: 40px; height: 85px; }
.logo { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.logo svg { width: 40px; height: 44px; }
.logo span { display: flex; flex-direction: column; line-height: 1; }
.logo b { font-size: 28px; letter-spacing: -.5px; }
.logo small { font-size: 13px; opacity: .9; margin-top: 2px; letter-spacing: .3px; }
.search { flex: 1; display: flex; background: #fff; border-radius: var(--r); padding: 3px; position: relative; box-shadow: 0 .125rem .25rem rgba(0,0,0,.09); }
.search input { flex: 1; border: 0; outline: 0; padding: 0 10px; color: var(--ink); min-width: 0; height: 34px; background: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { width: 60px; border: 0; background: var(--or); border-radius: var(--r); display: grid; place-items: center; }
.search button:hover { background: #fb5533; }
.search svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.search-hints { position: absolute; left: 0; top: calc(100% + 6px); display: flex; gap: 12px; font-size: 12px; white-space: nowrap; overflow: hidden; max-width: 100%; }
.search-hints a { color: #fff; opacity: .92; }
.cart-btn { position: relative; padding: 10px 24px 6px 10px; flex: 0 0 auto; }
.cart-btn svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.badge { position: absolute; top: 2px; left: 26px; min-width: 22px; height: 18px; padding: 0 5px; border: 2px solid var(--or); border-radius: 10px; background: #fff; color: var(--or); font-size: 12px; line-height: 14px; text-align: center; font-weight: 600; }

main { min-height: 60vh; padding-top: 20px; padding-bottom: 40px; }
.loading { padding: 80px 0; text-align: center; color: var(--ink2); }
.loading i { display: block; width: 32px; height: 32px; margin: 0 auto 12px; border: 3px solid var(--or-b); border-top-color: var(--or); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.box { background: var(--card); box-shadow: var(--shadow); border-radius: var(--r); }
.box-h { padding: 18px 20px; color: var(--ink2); font-size: 16px; text-transform: uppercase; font-weight: 500; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.box-h a { color: var(--or); font-size: 14px; text-transform: none; }
.sec { margin-top: 20px; }

/* ---------- banner ---------- */
.banner { display: grid; grid-template-columns: 2fr 1fr; gap: 5px; height: 235px; }
.slides { position: relative; overflow: hidden; border-radius: var(--r); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 40px; color: #fff; opacity: 0; transition: opacity .6s; }
.slide.on { opacity: 1; z-index: 1; }
.slide > div:first-child { position: relative; z-index: 1; max-width: 48%; }
.slide h2 { margin: 0 0 6px; font-size: 30px; line-height: 1.1; max-width: 330px; }
.slide p { margin: 0 0 16px; opacity: .95; max-width: 320px; }
.slide .cta { display: inline-block; background: #fff; color: var(--ink); font-weight: 600; padding: 8px 18px; border-radius: 3px; }
.slide .pics { position: absolute; right: 26px; top: 22px; bottom: 22px; display: flex; gap: 10px; }
.slide .pics img { height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.slide .pics img:nth-child(2) { transform: translateY(14px); }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); }
.dots button.on { background: var(--or); }
.side-ban { display: grid; grid-template-rows: 1fr 1fr; gap: 5px; }
.side-ban a { border-radius: var(--r); overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #fff; position: relative; }
.side-ban b { font-size: 17px; line-height: 1.15; display: block; }
.side-ban small { opacity: .9; }
.side-ban img { width: 82px; height: 82px; object-fit: cover; border-radius: 6px; margin-left: auto; background: #fff; flex: 0 0 auto; }
.bg1 { background: #ee4d2d; } .bg2 { background: #1f6f5c; } .bg3 { background: #7b4a2a; } .bg4 { background: #2d5aa0; } .bg5 { background: #9c2b4b; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; margin-top: 0; padding: 14px 6px; box-shadow: var(--shadow); }
.perk { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 13px; color: var(--ink); }
.perk i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--or-l); flex: 0 0 auto; }
.perk svg { width: 20px; height: 20px; fill: none; stroke: var(--or); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- kategori ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-size: 14px; transition: box-shadow .1s; }
.cat:hover { box-shadow: 0 0 .8125rem 0 rgba(0,0,0,.05); border-color: rgba(0,0,0,.12); }
.cat img { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; background: #f0f0f0; box-shadow: 0 0 0 1px rgba(0,0,0,.06); } /* kotak dengan sudut membulat */
.cat small { color: var(--ink2); font-size: 12px; }

/* ---------- terlaris (horizontal) ---------- */
.tops { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 50px) / 6); gap: 10px; padding: 16px 20px 20px; overflow-x: auto; scrollbar-width: thin; }
.top { position: relative; }
.top .im { position: relative; aspect-ratio: 1; background: #f3f3f3; }
.top .im img { width: 100%; height: 100%; object-fit: cover; }
.top .rank { position: absolute; top: 0; left: 0; background: var(--or); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 4px 8px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.top .sold { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.26); color: #fff; text-align: center; font-size: 13px; padding: 4px; }
.top .nm { font-size: 15px; margin-top: 8px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- kartu produk ---------- */
.rec-h { position: sticky; top: 119px; z-index: 5; background: #fff; text-align: center; color: var(--or); font-size: 16px; font-weight: 500; padding: 15px 0; border-bottom: 4px solid var(--or); text-transform: uppercase; box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 10px; }
.grid.g5 { grid-template-columns: repeat(5, 1fr); }
.card { background: #fff; box-shadow: var(--shadow); border-radius: var(--r); overflow: hidden; position: relative; border: 1px solid transparent; transition: transform .1s, box-shadow .1s; display: flex; flex-direction: column; }
.card:hover { border-color: var(--or); transform: translateY(-1px); box-shadow: 0 1px 20px rgba(0,0,0,.05); z-index: 1; }
.card .im { position: relative; aspect-ratio: 1; background: #f3f3f3; }
.card .im img { width: 100%; height: 100%; object-fit: cover; }
.card .tag { position: absolute; left: 0; top: 10px; background: var(--or); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 6px 1px 4px; border-radius: 0 2px 2px 0; }
.card .tag::before { content: ""; position: absolute; left: 0; bottom: -4px; border: 2px solid transparent; border-top-color: #b4250c; border-right-color: #b4250c; }
.card .out { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.35); }
.card .out span { width: 84px; height: 84px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; font-size: 14px; }
.card .bd { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .nm { font-size: 12px; line-height: 14px; height: 28px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.card .lbls { display: flex; gap: 4px; min-height: 16px; flex-wrap: wrap; }
.lbl { font-size: 10px; line-height: 14px; padding: 0 4px; border: 1px solid var(--or); color: var(--or); border-radius: 1px; white-space: nowrap; }
.lbl.g { border-color: var(--green); color: var(--green); }
.lbl.y { border-color: #f69113; color: #f69113; background: #fff8e4; }
.card .ft { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; margin-top: auto; }
.price { color: var(--or); font-size: 16px; white-space: nowrap; }
.price small { font-size: 12px; margin-right: 1px; }
.card .sd { font-size: 12px; color: var(--ink2); white-space: nowrap; }
.card .loc { font-size: 12px; color: var(--ink2); }
.card.flash { animation: flash 1.2s; }
@keyframes flash { 0% { box-shadow: 0 0 0 2px var(--yellow); } 100% { box-shadow: var(--shadow); } }
.more { display: block; width: 390px; max-width: 100%; margin: 20px auto 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); }
.more:hover { background: #fafafa; }

/* ---------- halaman cari ---------- */
.srch { display: grid; grid-template-columns: 190px 1fr; gap: 20px; }
.filters h3 { font-size: 16px; margin: 0 0 6px; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.filters h5 { margin: 16px 0 8px; font-size: 14px; font-weight: 500; }
.filters a.f { display: block; padding: 6px 0 6px 12px; font-size: 14px; position: relative; }
.filters a.f.on { color: var(--or); font-weight: 600; }
.filters a.f.on::before { content: ""; position: absolute; left: 0; top: 11px; border: 4px solid transparent; border-left-color: var(--or); }
.filters .range { display: flex; gap: 6px; align-items: center; }
.filters .range input { width: 100%; height: 30px; border: 1px solid var(--ink3); padding: 0 6px; background: #fff; font-size: 12px; border-radius: 2px; }
.filters label.ck { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 4px 0; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--r); border: 1px solid transparent; background: var(--or); color: #fff; font-size: 14px; white-space: nowrap; }
.btn:hover { background: #f05d40; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.o { background: var(--or-l); color: var(--or); border-color: var(--or); }
.btn.o:hover { background: #ffeee8; }
.btn.w { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.w:hover { background: #f8f8f8; }
.btn.lg { height: 48px; padding: 0 28px; font-size: 15px; }
.btn.full { width: 100%; }
.sortbar { background: #ededed; padding: 13px 20px; display: flex; align-items: center; gap: 10px; border-radius: var(--r); flex-wrap: wrap; }
.sortbar > span { color: var(--ink2); margin-right: 4px; }
.sortbar .btn { height: 34px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.sortbar .btn.on { background: var(--or); color: #fff; }
.sortbar select { height: 34px; border: 0; padding: 0 10px; min-width: 180px; background: #fff; box-shadow: var(--shadow); border-radius: 2px; }
.sortbar .cnt { margin-left: auto; color: var(--ink2); }
.result-for { color: var(--ink2); margin: 0 0 14px; display: flex; gap: 8px; align-items: center; }
.result-for b { color: var(--or); }
.empty { text-align: center; padding: 70px 20px; color: var(--ink2); }
.empty svg { width: 100px; height: 100px; margin: 0 auto 14px; display: block; opacity: .4; }

/* ---------- detail produk ---------- */
.crumb { font-size: 14px; color: #05a; margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb span { color: var(--ink); }
.pd { display: grid; grid-template-columns: 450px 1fr; gap: 0; padding: 15px; }
.gal { padding-right: 20px; }
.gal .main { aspect-ratio: 1; background: #f3f3f3; position: relative; }
.gal .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.thumbs button { flex: 0 0 82px; width: 82px; height: 82px; border: 2px solid transparent; padding: 0; background: #f3f3f3; scroll-snap-align: start; }
.thumbs button.on, .thumbs button:hover { border-color: var(--or); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { padding: 6px 20px 0 15px; min-width: 0; }
.info h1 { font-size: 20px; font-weight: 500; margin: 0; line-height: 1.4; word-break: break-word; }
.info h1 .lbl { font-size: 12px; vertical-align: 3px; margin-right: 6px; padding: 1px 4px; background: var(--or); color: #fff; }
.stats { display: flex; gap: 16px; margin: 10px 0; color: var(--ink2); align-items: center; }
.stats b { color: var(--ink); font-weight: 500; font-size: 16px; margin-right: 4px; border-bottom: 1px solid var(--ink); }
.stats .sep { background: var(--line); height: 24px; }
.pbox { background: #fafafa; padding: 15px 20px; display: flex; align-items: center; gap: 12px; }
.pbox .price { font-size: 30px; font-weight: 500; }
.pbox .price small { font-size: 18px; }
.rows { margin-top: 24px; display: grid; grid-template-columns: 110px 1fr; row-gap: 26px; column-gap: 10px; align-items: start; padding-left: 20px; }
.rows > .k { color: #757575; padding-top: 7px; }
.rows .ship { display: flex; flex-direction: column; gap: 4px; padding-top: 7px; }
.rows .ship small { color: var(--ink2); }
.vars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 340px; overflow: auto; padding: 2px; align-content: start; }
.var { display: flex; align-items: center; gap: 6px; min-width: 0; width: 100%; min-height: 40px; padding: 4px 10px 4px 4px; line-height: 1.25; border: 1px solid var(--line); background: #fff; border-radius: 2px; position: relative; text-align: left; font-size: 14px; }
.var img { width: 28px; height: 28px; object-fit: cover; flex: 0 0 auto; }
@media (hover: hover) { .var:not(:disabled):hover { border-color: var(--or); color: var(--or); } } /* di HP sentuhan tidak meninggalkan sorotan */
.var.on { border-color: var(--or); color: var(--or); }
.var.on::after { content: "✓"; position: absolute; right: 0; bottom: 0; width: 15px; height: 15px; font-size: 9px; line-height: 17px; text-align: right; color: #fff; background: linear-gradient(135deg, transparent 50%, var(--or) 50%); padding-right: 1px; }
.var:disabled { color: var(--ink3); cursor: not-allowed; background: #fafafa; border-color: var(--line); }
.var:disabled img { opacity: .4; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 2px; }
.qty button { width: 32px; height: 32px; border: 0; background: #fff; font-size: 18px; color: var(--ink); }
.qty button:disabled { color: var(--ink3); cursor: not-allowed; }
.qty input { width: 50px; height: 32px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 16px; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { display: none; }
.qty-row { display: flex; align-items: center; gap: 16px; color: #757575; flex-wrap: wrap; }
.qty-row .live { display: inline-flex; align-items: center; gap: 5px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(38,170,153,.2); }
.buy { display: flex; gap: 15px; margin-top: 30px; padding-left: 20px; flex-wrap: wrap; }
.buy .btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.warn-line { color: var(--or); font-size: 13px; margin-top: 8px; padding-left: 20px; min-height: 18px; }
.desc { padding: 10px 25px 25px; }
.desc h3 { background: rgba(0,0,0,.02); padding: 14px; margin: 15px -10px 15px; font-size: 18px; font-weight: 500; text-transform: uppercase; }
.spec { display: grid; grid-template-columns: 140px 1fr; row-gap: 18px; font-size: 14px; padding: 0 4px; }
.spec .k { color: rgba(0,0,0,.4); }
.desc p { line-height: 1.7; white-space: pre-line; margin: 0; padding: 0 4px; }

/* ---------- keranjang ---------- */
.page-title { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 20px; color: var(--or); }
.page-title span { width: 1px; height: 26px; background: var(--or); }
.cart-head, .cart-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px 140px 130px 80px; align-items: center; gap: 10px; padding: 0 20px; }
.cart-head { height: 55px; color: var(--ink2); font-size: 14px; margin-bottom: 12px; }
.cart-head > :nth-child(n+3), .cart-row > :nth-child(n+3) { text-align: center; }
.cart-row { padding: 18px 20px; border-top: 1px solid var(--line); }
.cart-row:first-child { border-top: 0; }
.cart-prod { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.cart-prod img { width: 80px; height: 80px; object-fit: cover; border: 1px solid var(--line); flex: 0 0 auto; }
.cart-prod .t { font-size: 14px; line-height: 16px; max-height: 32px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cart-prod .v { color: var(--ink2); font-size: 13px; margin-top: 6px; }
.cart-prod .st { font-size: 12px; margin-top: 4px; color: var(--ink2); }
.cart-prod .st.bad { color: var(--or); }
.cart-row .tot { color: var(--or); }
.cart-row .del { background: none; border: 0; color: var(--ink); }
.cart-row .del:hover { color: var(--or); }
.cart-row.dead { opacity: .55; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--or); cursor: pointer; margin: 0; }
.cart-foot { position: sticky; bottom: 0; margin-top: 12px; display: flex; align-items: center; gap: 20px; padding: 14px 20px; box-shadow: 0 -4px 12px rgba(0,0,0,.06); z-index: 5; }
.cart-foot .sum { margin-left: auto; text-align: right; }
.cart-foot .sum b { color: var(--or); font-size: 24px; font-weight: 500; }
.cart-foot .btn { width: 210px; height: 40px; }
.cart-foot label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.cart-foot .lnk { background: none; border: 0; padding: 0; }
.cart-foot .lnk:hover { color: var(--or); }

/* ---------- checkout ---------- */
.addr { position: relative; padding: 28px 30px 24px; overflow: hidden; }
.addr::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: repeating-linear-gradient(45deg, #6fa6d6, #6fa6d6 33px, transparent 0, transparent 41px, #f18d9b 0, #f18d9b 74px, transparent 0, transparent 82px); }
.addr h3, .ck-h { color: var(--or); font-size: 18px; font-weight: 500; margin: 0 0 18px; display: flex; align-items: center; gap: 8px; }
.addr h3 svg { width: 18px; height: 18px; fill: var(--or); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid .wide { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 5px; position: relative; }
.fld > span { font-size: 13px; color: var(--ink2); }
.fld input, .fld textarea, .fld select { border: 1px solid rgba(0,0,0,.14); border-radius: 2px; padding: 10px; background: #fff; outline: 0; width: 100%; }
.fld input:focus, .fld textarea:focus { border-color: rgba(0,0,0,.54); box-shadow: 0 0 1px rgba(0,0,0,.2); }
.fld textarea { min-height: 70px; resize: vertical; }
.fld .err { color: var(--or); font-size: 12px; }
.dd { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.12); max-height: 260px; overflow: auto; z-index: 20; }
.dd button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.dd button:hover { background: var(--or-l); }
.dd .none { padding: 12px; color: var(--ink2); font-size: 13px; }
.ck-items .cart-head, .ck-items .ck-row { grid-template-columns: minmax(0, 1fr) 150px 100px 150px; display: grid; align-items: center; padding: 0 30px; gap: 10px; }
.ck-items .cart-head { margin: 0; height: 60px; }
.ck-items .cart-head > :first-child { color: var(--ink); font-size: 18px; }
.ck-items .cart-head > :not(:first-child), .ck-row > :not(:first-child) { text-align: right; }
.ck-row { padding: 14px 30px !important; }
.ck-row .cart-prod img { width: 40px; height: 40px; }
.ck-row .cart-prod { align-items: center; }
.ck-msg { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px dashed var(--line); background: #fafdff; }
.ck-msg > div { padding: 18px 30px; display: flex; align-items: center; gap: 14px; }
.ck-msg > div + div { border-left: 1px dashed var(--line); }
.ck-msg input { flex: 1; border: 1px solid rgba(0,0,0,.14); height: 40px; padding: 0 10px; border-radius: 2px; min-width: 0; }
.ship-opts { display: grid; gap: 8px; padding: 0 30px 20px; }
.ship-opt { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; align-items: center; }
.ship-opt:hover { border-color: var(--or-b); }
.ship-opt.on { border-color: var(--or); background: var(--or-l); }
.ship-opt input { accent-color: var(--or); }
.ship-opt small { color: var(--ink2); display: block; }
.ship-opt b { font-weight: 500; }
.ship-opt .kind { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; margin-left: 6px; }
.ship-note { padding: 0 30px 20px; color: var(--ink2); font-size: 13px; }
.pay-h { display: flex; align-items: center; justify-content: space-between; padding: 24px 30px; border-bottom: 1px solid var(--line); gap: 20px; flex-wrap: wrap; }
.pay-h h3 { margin: 0; font-size: 18px; font-weight: 500; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-methods span { border: 1px solid var(--line); padding: 6px 10px; font-size: 13px; border-radius: 2px; background: #fff; }
.pay-methods span.on { border-color: var(--or); color: var(--or); }
.totals { display: grid; grid-template-columns: 1fr 200px; padding: 16px 30px; row-gap: 12px; background: #fffefb; border-bottom: 1px dashed var(--line); }
.totals > :nth-child(odd) { text-align: right; color: var(--ink2); padding-right: 20px; }
.totals > :nth-child(even) { text-align: right; }
.totals .grand { color: var(--or); font-size: 28px; font-weight: 500; line-height: 1; }
.place { display: flex; align-items: center; justify-content: space-between; padding: 20px 30px; gap: 20px; flex-wrap: wrap; background: #fffefb; }
.place p { margin: 0; color: var(--ink2); font-size: 13px; max-width: 560px; }
.place .btn { width: 210px; height: 40px; }

/* ---------- pesanan ---------- */
.tabs { display: flex; background: #fff; box-shadow: var(--shadow); position: sticky; top: 119px; z-index: 4; overflow-x: auto; }
.tabs a { flex: 1; text-align: center; padding: 16px 10px; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 15px; }
.tabs a.on { color: var(--or); border-color: var(--or); }
.ord { margin-top: 12px; }
.ord-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.ord-h .st { color: var(--or); text-transform: uppercase; font-size: 14px; }
.ord-h .code { font-weight: 600; }
.ord-it { display: flex; gap: 12px; padding: 12px 24px; align-items: center; }
.ord-it img { width: 80px; height: 80px; object-fit: cover; border: 1px solid var(--line); }
.ord-it .t { flex: 1; min-width: 0; }
.ord-it .t div:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-it .v { color: var(--ink2); font-size: 13px; margin-top: 4px; }
.ord-f { background: #fffefb; border-top: 1px dashed var(--line); padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ord-f .tt { font-size: 14px; }
.ord-f .tt b { color: var(--or); font-size: 24px; font-weight: 500; margin-left: 8px; }
.ord-f .acts { display: flex; gap: 10px; }
.track { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px; align-items: end; }

.od-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; gap: 12px; flex-wrap: wrap; border-bottom: 1px dotted var(--line); }
.od-top .st { color: var(--or); text-transform: uppercase; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); padding: 40px 24px 30px; position: relative; }
.step { text-align: center; position: relative; z-index: 1; font-size: 14px; }
.step i { width: 60px; height: 60px; border-radius: 50%; border: 4px solid #e0e0e0; background: #fff; display: grid; place-items: center; margin: 0 auto 12px; color: #e0e0e0; }
.step i svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step.on i { border-color: var(--green); color: var(--green); }
.step.bad i { border-color: var(--or); color: var(--or); }
.step small { display: block; color: var(--ink3); font-size: 12px; margin-top: 4px; }
.step::before { content: ""; position: absolute; top: 28px; right: 50%; width: 100%; height: 4px; background: #e0e0e0; z-index: -1; }
.step:first-child::before { display: none; }
.step.on::before { background: var(--green); }
.paybar { background: #fffcf5; border-top: 1px dotted var(--line); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.paybar .cd { color: var(--or); font-weight: 600; }
.sim { margin: 0 24px 20px; border: 1px dashed var(--or); background: var(--or-l); padding: 16px; border-radius: 2px; }
.sim h4 { margin: 0 0 6px; color: var(--or); }
.sim p { margin: 0 0 12px; font-size: 13px; color: var(--ink2); }
.sim .pay-methods span { cursor: pointer; }
.od-addr { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
.od-addr h4 { margin: 0 0 12px; font-size: 18px; font-weight: 500; }
.od-addr p { margin: 0 0 4px; color: var(--ink2); line-height: 1.6; }
.od-addr p b { color: var(--ink); font-weight: 500; }
.resi { font-family: ui-monospace, Menlo, monospace; background: #f5f5f5; padding: 2px 6px; border-radius: 2px; color: var(--ink); }

/* ---------- lain-lain ---------- */
.toast { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%) scale(.95); background: rgba(0,0,0,.78); color: #fff; padding: 18px 26px; border-radius: 4px; max-width: 360px; text-align: center; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; }
.toast.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast svg { width: 52px; height: 52px; margin: 0 auto 8px; display: block; fill: none; stroke: var(--green); stroke-width: 2.5; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal .box { width: 460px; max-width: 100%; padding: 24px; }
.modal h3 { margin: 0 0 10px; font-size: 18px; font-weight: 500; }
.modal p { color: var(--ink2); margin: 0 0 20px; }
.modal .acts { display: flex; justify-content: flex-end; gap: 10px; }
.help { padding: 30px; line-height: 1.7; }
.help h2 { margin: 0 0 10px; font-weight: 500; }
.help h3 { margin: 24px 0 6px; font-weight: 500; color: var(--or); }
.help ol, .help ul { padding-left: 20px; margin: 0; }
.note { background: #fff8e4; border: 1px solid #f5d68a; color: #7a5b00; padding: 10px 14px; border-radius: 2px; font-size: 13px; margin-bottom: 12px; }

/* ---------- HP & tablet ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .grid.g5 { grid-template-columns: repeat(4, 1fr); }
  .pd { grid-template-columns: 360px 1fr; }
  .slide .pics img:nth-child(2) { display: none; }
  .slide h2 { font-size: 24px; }
}
@media (max-width: 820px) {
  .nav-top { display: none; }
  .hdr-main { height: 56px; gap: 10px; }
  .logo span { display: none; }
  .logo svg { width: 30px; height: 33px; }
  .search-hints { display: none; }
  .search input { height: 30px; }
  .search button { width: 44px; }
  .cart-btn { padding: 8px 14px 4px 4px; }
  .badge { left: 18px; top: 0; }
  .rec-h, .tabs { top: 56px; }
  main { padding-top: 10px; }
  .banner { grid-template-columns: 1fr; height: auto; }
  .slides { height: 170px; }
  .slide { padding: 0 18px; }
  .slide > div:first-child { max-width: 58%; }
  .slide h2 { font-size: 20px; }
  .slide p { font-size: 12px; margin-bottom: 10px; }
  .slide .pics { right: 12px; top: 26px; bottom: 26px; }
  .slide .pics img:nth-child(2) { display: none; }
  .side-ban { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .side-ban img { width: 50px; height: 50px; }
  .side-ban b { font-size: 14px; }
  .perks { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .perk { justify-content: flex-start; padding-left: 10px; font-size: 12px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .cat img { width: 64px; height: 64px; border-radius: 12px; }
  .tops { grid-auto-columns: 40%; padding: 12px; }
  .grid, .grid.g5 { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .srch { grid-template-columns: 1fr; }
  .filters { display: none; }
  .sortbar { padding: 8px; gap: 6px; }
  .sortbar > span, .sortbar .cnt { display: none; }
  .sortbar select { min-width: 0; flex: 1; }
  .pd { grid-template-columns: 1fr; padding: 0; }
  .gal { padding: 0; }
  .thumbs { padding: 0 8px 4px; scrollbar-width: none; }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumbs button { flex-basis: 64px; width: 64px; height: 64px; }
  .info { padding: 14px 12px; }
  .info h1 { font-size: 16px; }
  .pbox .price { font-size: 24px; }
  .rows { grid-template-columns: 1fr; row-gap: 8px; padding-left: 0; }
  .rows > .k { padding-top: 10px; }
  .buy { padding: 0; position: sticky; bottom: 0; background: #fff; margin: 20px -12px -14px; padding: 8px 12px; box-shadow: 0 -2px 8px rgba(0,0,0,.06); gap: 8px; flex-wrap: nowrap; }
  .buy .btn { flex: 1; height: 44px; padding: 0 8px; }
  .warn-line { padding-left: 0; }
  .desc { padding: 6px 12px 16px; }
  .spec { grid-template-columns: 110px 1fr; }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: 28px 1fr; padding: 12px; row-gap: 8px; }
  .cart-row > :nth-child(3), .cart-row > :nth-child(5) { display: none; }
  .cart-row > :nth-child(4) { grid-column: 2; justify-self: start; }
  .cart-row > :nth-child(6) { grid-column: 2; justify-self: start; text-align: left; }
  .cart-prod img { width: 70px; height: 70px; }
  .cart-prod .pm { color: var(--or); margin-top: 4px; }
  .cart-foot { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .cart-foot .btn { width: auto; flex: 1; }
  .cart-foot .sum { margin-left: 0; flex-basis: 100%; text-align: left; order: -1; }
  .addr, .pay-h, .place { padding-left: 14px; padding-right: 14px; }
  .fgrid { grid-template-columns: 1fr; }
  .ck-items .cart-head { display: grid; padding: 0 14px; grid-template-columns: 1fr; }
  .ck-items .cart-head > :not(:first-child) { display: none; }
  .ck-items .ck-row { grid-template-columns: 1fr auto; padding: 12px 14px !important; }
  .ck-row > :nth-child(2), .ck-row > :nth-child(3) { display: none; }
  .ck-msg { grid-template-columns: 1fr; }
  .ck-msg > div { padding: 12px 14px; }
  .ck-msg > div + div { border-left: 0; border-top: 1px dashed var(--line); }
  .ship-opts, .ship-note { padding-left: 14px; padding-right: 14px; }
  .totals { grid-template-columns: 1fr auto; padding: 14px; }
  .totals .grand { font-size: 22px; }
  .place .btn { width: 100%; }
  .steps { grid-template-columns: repeat(4, 1fr); padding: 24px 6px 16px; }
  .step { font-size: 11px; }
  .step i { width: 40px; height: 40px; border-width: 3px; }
  .step i svg { width: 18px; height: 18px; }
  .step::before { top: 19px; height: 3px; }
  .od-addr, .track { grid-template-columns: 1fr; padding: 16px; }
  .ord-h, .ord-it, .ord-f { padding-left: 14px; padding-right: 14px; }
  .ord-it img { width: 60px; height: 60px; }
}

/* ---------- akun: header ---------- */
.user-nav { display: inline-flex; align-items: center; gap: 10px; }
.user-nav a { font-weight: 500; }
.user-dd { position: relative; }
.user-btn { display: inline-flex; align-items: center; gap: 6px; }
.av { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--or); display: inline-grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; }
.av.lg { width: 48px; height: 48px; font-size: 20px; background: var(--or-l); border: 1px solid var(--or-b); }
.av.sm { width: 28px; height: 28px; font-size: 14px; }
.dd-menu { display: none; position: absolute; right: 0; top: 100%; padding-top: 8px; z-index: 60; }
.dd-menu > * { display: block; width: 160px; text-align: left; background: #fff; color: var(--ink); padding: 10px 14px; border: 0; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.dd-menu > *:hover { color: var(--green); background: #fafafa; }
.user-dd:hover .dd-menu, .user-dd:focus-within .dd-menu { display: block; }
.acc-btn { display: none; }

/* ---------- akun: log in / daftar ---------- */
.auth-band { background: var(--or); margin: -20px calc(50% - 50vw) -40px; padding: 50px max(16px, calc(50vw - 600px)); display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: center; min-height: 560px; }
.auth-brand { color: #fff; text-align: center; }
.auth-logo { display: inline-flex; align-items: baseline; gap: 8px; }
.auth-logo svg { width: 90px; height: 100px; align-self: center; }
.auth-logo b { font-size: 64px; letter-spacing: -1px; }
.auth-logo span { font-size: 22px; opacity: .9; }
.auth-brand p { font-size: 22px; line-height: 1.5; margin: 18px 0 0; }
.auth-card { background: #fff; border-radius: 4px; padding: 26px 30px 30px; box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.auth-card h2 { margin: 0 0 22px; font-size: 20px; font-weight: 500; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form input:not([type=checkbox]):not([type=radio]) { height: 42px; border: 1px solid rgba(0,0,0,.14); border-radius: 2px; padding: 0 12px; outline: 0; width: 100%; }
.auth-form input:focus { border-color: rgba(0,0,0,.54); }
.auth-form .otp { font-size: 24px; letter-spacing: 12px; text-align: center; height: 52px !important; }
.pw { position: relative; }
.pw input { padding-right: 44px !important; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; width: 34px; height: 34px; color: var(--ink2); display: grid; place-items: center; }
.eye svg { width: 20px; height: 20px; }
.err { color: var(--or); font-size: 13px; min-height: 16px; }
.auth-row { display: flex; justify-content: space-between; font-size: 12px; color: #05a; }
.auth-foot { text-align: center; margin-top: 26px; color: var(--ink3); font-size: 14px; }
.auth-foot a { color: var(--or); font-weight: 500; }
.auth-steps { display: flex; gap: 6px; font-size: 12px; color: var(--ink3); margin-bottom: 4px; }
.auth-steps span { flex: 1; padding-bottom: 6px; border-bottom: 2px solid #eee; }
.auth-steps span.on { color: var(--or); border-color: var(--or); }
.small { font-size: 12px; color: var(--ink2); margin: 0; line-height: 1.5; }
.lnk-b { background: none; border: 0; color: #05a; padding: 0; font-size: 14px; cursor: pointer; }
.lnk-b:hover { text-decoration: underline; }
.muted { color: var(--ink2); }

/* ---------- akun: Akun Saya ---------- */
.acc { display: grid; grid-template-columns: 180px 1fr; gap: 27px; }
.acc-me { display: flex; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid #efefef; margin-bottom: 20px; }
.acc-me b { display: block; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-me a { font-size: 13px; color: var(--ink2); }
.acc-side nav { display: flex; flex-direction: column; gap: 4px; }
.acc-side nav a { padding: 6px 0 6px 30px; font-size: 14px; color: var(--ink); }
.acc-side nav a.on, .acc-side nav a:hover { color: var(--or); }
.acc-h { font-size: 14px; padding: 10px 0 4px; font-weight: 500; }
.acc-out { background: none; border: 0; text-align: left; padding: 14px 0 0 30px; color: var(--ink2); font-size: 14px; }
.acc-out:hover { color: var(--or); }
.acc-box { padding: 18px 30px 30px; min-height: 400px; }
.acc-title { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #efefef; padding-bottom: 18px; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.acc-title h2 { margin: 0; font-size: 18px; font-weight: 500; }
.acc-title p { margin: 4px 0 0; font-size: 14px; color: var(--ink2); }
.acc-form { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.acc-form > label { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 20px; }
.acc-form > label > span { text-align: right; color: var(--ink2); font-size: 14px; }
.acc-form input:not([type=radio]) { height: 40px; border: 1px solid rgba(0,0,0,.14); border-radius: 2px; padding: 0 10px; width: 100%; outline: 0; }
.radios { display: flex; gap: 20px; }
.radios label, .af-lbl label, label.ck { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.addr-item { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid #efefef; }
.addr-item > div:first-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.addr-item .lbl { margin-right: 6px; }
.addr-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 0 auto; }
.addr-acts > div { display: flex; gap: 12px; }
.addr-cur { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.addr-cur > div:nth-child(2) { flex: 1; min-width: 200px; }
.addr-cur .lbl { font-size: 11px; }
.addr-modal { width: 560px !important; max-height: 92vh; overflow: auto; }
.af { display: flex; flex-direction: column; gap: 14px; }
.af input:not([type=radio]):not([type=checkbox]), .af textarea { border: 1px solid rgba(0,0,0,.14); border-radius: 2px; padding: 10px; width: 100%; outline: 0; }
.af textarea { min-height: 70px; resize: vertical; }
.af-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.af-lbl { display: flex; gap: 16px; align-items: center; font-size: 14px; color: var(--ink2); }
.pick { display: flex; flex-direction: column; }
.pick-it { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #efefef; cursor: pointer; }
.pick-it input { accent-color: var(--or); margin-top: 3px; }

@media (max-width: 820px) {
  .acc-btn { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; }
  .acc-btn svg { width: 26px; height: 26px; }
  .auth-band { grid-template-columns: 1fr; margin: -10px -16px -40px; padding: 24px 16px 40px; min-height: 0; gap: 20px; }
  .auth-brand p { display: none; }
  .auth-logo svg { width: 44px; height: 50px; }
  .auth-logo b { font-size: 36px; }
  .auth-card { padding: 20px; }
  .acc { grid-template-columns: 1fr; gap: 10px; }
  .acc-side nav { flex-direction: row; flex-wrap: wrap; gap: 0 12px; }
  .acc-side nav a { padding: 6px 0; }
  .acc-h { display: none; }
  .acc-side nav .acc-h:last-of-type { display: block; padding: 6px 0; font-weight: 400; }
  .acc-out { padding: 6px 0; }
  .acc-me { margin-bottom: 6px; }
  .acc-box { padding: 14px; }
  .acc-form > label { grid-template-columns: 1fr; gap: 6px; }
  .acc-form > label > span { text-align: left; }
  .addr-item { flex-direction: column; gap: 10px; }
  .addr-acts { align-items: flex-start; }
  .af-2 { grid-template-columns: 1fr; }
}

/* ---------- transfer manual ---------- */
.tf { margin: 0 24px 20px; border: 1px solid var(--or-b); background: #fffaf8; border-radius: 4px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.tf-h small { color: var(--ink2); }
.tf-amt { font-size: 28px; color: var(--or); font-weight: 600; margin: 4px 0; display: flex; align-items: baseline; gap: 12px; }
.tf-amt .lnk-b, .tf-no .lnk-b { font-size: 13px; font-weight: 400; }
.tf-banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tf-bank { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; }
.tf-no { font-size: 20px; font-weight: 600; letter-spacing: 1px; margin: 4px 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tf-bank small { color: var(--ink2); }
.tf-claim { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tf-claim input { height: 40px; border: 1px solid rgba(0,0,0,.14); border-radius: 2px; padding: 0 10px; width: 100%; }
.tf-acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 820px) { .tf { margin: 0 12px 14px; padding: 14px; } .tf-claim { grid-template-columns: 1fr; } .tf-amt { font-size: 24px; } .tf-acts .btn { flex: 1; } }

.note.warn { background: #fdecea; border-color: #f5b5ab; color: #a8200d; }

/* ---------- banner brand unggulan (foto produk toko sendiri) ---------- */
.slide.brand { padding-left: 44px; }
.slide.brand .eyebrow { display: inline-block; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; padding: 3px 0; margin-bottom: 8px; border-bottom: 1px solid currentColor; opacity: .9; }
.slide.brand h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 34px; letter-spacing: .3px; }
.slide.brand .pics img { border-radius: 4px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.slide.brand .pics { left: 50%; right: 24px; justify-content: flex-end; z-index: 0; }
.slide.brand .pics img:nth-child(3) { display: none; }
.slide.brand > div:first-child { z-index: 2; max-width: 46%; }
.br-osma { background: #141414; color: #e8cf98; }
.br-osma .cta { background: #e8cf98; color: #141414; }
.br-mada { background: #1d3b2f; color: #f3e9cf; }
.br-mada .cta { background: #f3e9cf; color: #1d3b2f; }
.br-ibadah { background: #f4efe4; color: #2b2418; }
.br-ibadah .cta { background: #2b2418; color: #f4efe4; }

@media (max-width: 820px) { .slide.brand > div:first-child { max-width: 60%; } .slide.brand .pics { left: 64%; right: 12px; top: 30px; bottom: 30px; } .slide.brand p { font-size: 11px; } .slide.brand { padding-left: 18px; } .slide.brand h2 { font-size: 22px; } .slide.brand .eyebrow { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 4px; } }

/* ---------- banner unggahan admin: gambar penuh + badge + tombol ---------- */
.slide.pic { padding: 0; background: #111; }
.slide.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn-badge { position: absolute; left: 16px; top: 14px; z-index: 2; color: #1a1a1a; font-size: 12px; font-weight: 700; letter-spacing: .4px; padding: 5px 10px; border-radius: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.2); text-transform: uppercase; }
.bn-cta { position: absolute; left: 16px; bottom: 26px; z-index: 2; color: #fff; font-weight: 600; font-size: 14px; padding: 9px 20px; border-radius: 3px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.slide.pic:hover .bn-cta { filter: brightness(1.08); }
@media (max-width: 820px) { .bn-badge { font-size: 10px; left: 10px; top: 10px; padding: 3px 7px; } .bn-cta { left: 10px; bottom: 22px; font-size: 12px; padding: 7px 14px; } }

/* ---------- modal: tidak melebar keluar layar HP ---------- */
.modal { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.modal .box { width: 100%; max-width: 460px; }
.addr-modal { width: 100% !important; max-width: 560px !important; position: relative; }
/* ---------- pilih wilayah bertahap (gaya marketplace) ---------- */
.rg-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; padding: 8px 10px; background: #fff; border: 1px solid rgba(0,0,0,.14); border-radius: 2px; text-align: left; font-size: 14px; }
.rg-field i { color: var(--ink3); font-style: normal; }
.rg-field b { color: var(--ink2); font-size: 20px; line-height: 1; }
.rg-field.bad { border-color: var(--or); }
.rg-panel { position: absolute; inset: 0; background: #fff; z-index: 5; display: flex; flex-direction: column; padding: 16px 20px; border-radius: inherit; }
.rg-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.rg-top b { font-size: 16px; font-weight: 500; }
.rg-tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.rg-tabs button { flex: 1 0 auto; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 8px; font-size: 13px; color: var(--ink); white-space: nowrap; }
.rg-tabs button.on { color: var(--or); border-color: var(--or); }
.rg-tabs button:disabled { color: var(--ink3); cursor: default; }
.rg-chosen { font-size: 12px; color: var(--ink2); padding: 8px 0 0; min-height: 22px; }
.rg-search { height: 38px; border: 1px solid rgba(0,0,0,.14); border-radius: 2px; padding: 0 10px; margin: 6px 0 8px; width: 100%; outline: 0; }
.rg-search:focus { border-color: rgba(0,0,0,.5); }
.rg-list { flex: 1; overflow: auto; min-height: 200px; border: 1px solid var(--line); }
.rg-list button { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #f2f2f2; padding: 11px 12px; font-size: 14px; }
.rg-list button:hover { background: #fafafa; }
.rg-list button.on { color: var(--or); font-weight: 500; }
.rg-list .none { padding: 14px 12px; color: var(--ink2); font-size: 13px; }
@media (max-width: 820px) {
  .modal { padding: 10px; }
  .addr-modal { padding: 18px 16px !important; max-height: 94vh; }
  .rg-panel { position: fixed; inset: 0; border-radius: 0; padding: 14px 14px max(14px, env(safe-area-inset-bottom)); z-index: 95; }
  .addr-modal .acts .btn { flex: 1; }
}

/* ---------- HP: tidak ada yang boleh melebar keluar layar ---------- */
.acc { grid-template-columns: 180px minmax(0, 1fr); }
.acc-main, .acc-side, .srch > *, .pd > *, .info { min-width: 0; }
html { overflow-x: clip; } /* pengaman: halaman tidak bisa digeser ke samping (tidak mengganggu header lengket) */
@media (max-width: 820px) {
  .acc { grid-template-columns: minmax(0, 1fr); }
  .tabs { scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: 0 0 auto; padding: 14px 14px; font-size: 14px; }
}

/* ---------- header HP sempit (≤ 400 px): kotak cari mengecil, ikon tidak terdorong keluar ---------- */
.search { min-width: 0; }
@media (max-width: 820px) {
  .hdr-main { gap: 8px; }
  .cart-btn { padding: 8px 6px 4px 2px; }
  .badge { left: 14px; }
}
@media (max-width: 400px) {
  .hdr-main { gap: 6px; }
  .logo svg { width: 26px; height: 29px; }
  .search input { padding: 0 6px; font-size: 13px; }
  .search button { width: 38px; }
  .acc-btn { width: 28px; }
}

/* ---------- foto varian: 1 baris geser + tombol panah di desktop ---------- */
.thumbs-wrap { position: relative; }
.th-arr { position: absolute; top: 8px; z-index: 2; width: 26px; height: 82px; border: 0; background: rgba(0,0,0,.28); color: #fff; font-size: 22px; line-height: 1; opacity: 0; transition: opacity .15s; }
.th-arr.l { left: 0; } .th-arr.r { right: 0; }
.thumbs-wrap:hover .th-arr { opacity: 1; }
.th-arr:hover { background: rgba(0,0,0,.45); }
@media (max-width: 820px), (hover: none) { .th-arr { display: none; } }

/* ---------- daftar varian 2 kolom: teks panjang turun ke baris kedua, tidak terpotong ---------- */
@media (max-width: 820px) {
  .vars { max-height: 300px; gap: 6px; }
  .var { font-size: 13px; padding: 4px 8px 4px 4px; min-height: 44px; }
  .var img { width: 32px; height: 32px; }
}

/* ---------- kerapian teks (HP & desktop) ---------- */
.live i { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.stats .live { display: inline-flex; align-items: center; gap: 6px; }
.cat span { min-height: 2.6em; display: flex; align-items: center; justify-content: center; line-height: 1.25; }
.cart-prod .pm { display: none; }
.ship-h { padding: 20px 30px 12px; margin: 0; }
.od-id { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.od-id .st { padding-left: 10px; border-left: 1px solid var(--line); }
.perk { white-space: nowrap; }
@media (max-width: 820px) {
  .page-title { margin: 8px 0 12px; font-size: 18px; }
  .perk { font-size: 12.5px; gap: 8px; }
  .perk i { width: 32px; height: 32px; }
  .cat span { font-size: 13px; }
  /* keranjang HP: [centang] [foto · nama · varian · harga] / jumlah ……… Hapus */
  .cart-row { grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; }
  .cart-row > :nth-child(1) { margin-top: 30px; }
  .cart-row > :nth-child(2) { grid-column: 2 / 4; }
  .cart-row > :nth-child(4) { grid-column: 2; justify-self: start; }
  .cart-row > :nth-child(6) { grid-column: 3; align-self: center; justify-self: end; text-align: right; color: var(--ink2); font-size: 13px; }
  .cart-prod .pm { display: block; color: var(--or); margin-top: 4px; font-size: 15px; }
  .ship-h { padding: 16px 14px 10px; }
  .totals > :nth-child(odd) { text-align: left; padding-right: 8px; }
  .od-top { flex-direction: column; align-items: stretch; gap: 8px; padding: 14px; }
  .od-id { justify-content: space-between; font-size: 13px; }
  .step small { font-size: 10px; }
}

@media (max-width: 370px) { .perk { font-size: 11.5px; gap: 6px; padding-left: 6px; } .perk i { width: 28px; height: 28px; } }

/* ---------- banner gambar unggahan: rasio 3:1 utuh (tidak terpotong) ---------- */
/* Tinggi diatur dengan padding 33,33% (= rasio 3:1) — didukung semua browser, termasuk Safari/Chrome di iPhone
   (aspect-ratio di dalam grid bisa dihitung 0 di WebKit sehingga banner tidak terlihat). */
.banner.has-pic { height: auto; align-items: start; }
.banner.has-pic .slides { height: 0; padding-bottom: 33.333%; aspect-ratio: auto; align-self: start; }
.banner.has-pic .side-ban { align-self: stretch; }
.banner.has-pic .slide.pic img { object-fit: cover; }
@media (max-width: 820px) { .banner.has-pic .slides { height: 0; padding-bottom: 33.333%; } }

/* ---------- dropship (checkout) ---------- */
.ds { padding: 18px 30px; }
.ds-tog { display: flex; align-items: center; gap: 16px; cursor: pointer; position: relative; }
.ds-tog > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ds-tog b { font-size: 16px; font-weight: 500; }
.ds-tog small { color: var(--ink2); font-size: 13px; line-height: 1.45; }
.ds-tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ds-tog .sw { flex: 0 0 auto; width: 44px; height: 26px; border-radius: 13px; background: #ccc; position: relative; transition: background .2s; }
.ds-tog .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .2s; }
.ds-tog input:checked + .sw { background: var(--or); }
.ds-tog input:checked + .sw::after { transform: translateX(18px); }
.ds-tog input:focus-visible + .sw { outline: 2px solid var(--or); outline-offset: 2px; }
.ds-f { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.ds-f label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ds-f label span { font-size: 13px; color: var(--ink2); }
.ds-f input { height: 40px; border: 1px solid rgba(0,0,0,.14); border-radius: 2px; padding: 0 10px; min-width: 0; width: 100%; }
.ds-f input:focus { outline: none; border-color: var(--ink2); }
.ds-f .small { grid-column: 1 / -1; }
.ds-f[hidden] { display: none; }
@media (max-width: 820px) {
  .ds { padding: 14px; }
  .ds-f { grid-template-columns: 1fr; }
}

/* ---------- login cepat (sidik jari / Face ID) ---------- */
.pk-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; border: 1px solid var(--or); color: var(--or); background: #fff; border-radius: 2px; font-size: 15px; cursor: pointer; }
.pk-btn svg { width: 22px; height: 22px; flex: 0 0 auto; }
.pk-btn:disabled { opacity: .6; cursor: default; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--ink3); font-size: 12px; margin: 4px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.modal .box.pk-modal { max-width: 380px; text-align: center; padding: 28px 24px 22px; }
.pk-modal .pk-ic { width: 64px; height: 64px; margin: 0 auto 14px; color: var(--or); }
.pk-modal h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.pk-modal p { margin: 0 0 18px; color: var(--ink2); line-height: 1.5; }
.pk-modal .btn { width: 100%; height: 42px; }
.pk-modal .lnk-b { margin-top: 12px; }
.pk-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #efefef; }
.pk-item > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }

/* HP: jarak atas-bawah antar bagian 10px (permintaan Farid) */
@media (max-width: 820px) { .sec { margin-top: 10px; } }
