/* Tampilan toko online. Warna merek lewat --sf-brand (diatur di layout dari Pengaturan). */
:root { --sf-brand: #0a3fb4; --sf-brand-dark: #072f8a; --sf-soft: #eef3ff; --sf-text: #1b2540; --sf-radius: 14px; }
body.sf { background: #f6f8fc; color: var(--sf-text); font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
.sf a { color: var(--sf-brand); }
.sf a.btn-primary, .sf a.btn-primary:hover { color: #fff; }
.sf a.btn-outline-primary:hover { color: #fff; }
.sf a.sf-card, .sf a.sf-card:hover { color: var(--sf-text); }
.sf a.sf-icon-btn { color: var(--sf-text); }
.sf a.sf-wa { color: #fff; }
.sf a.sf-side-banner, .sf a.sf-side-banner:hover { color: #fff; }
.sf .btn-primary { --bs-btn-bg: var(--sf-brand); --bs-btn-border-color: var(--sf-brand); --bs-btn-hover-bg: var(--sf-brand-dark); --bs-btn-hover-border-color: var(--sf-brand-dark); --bs-btn-active-bg: var(--sf-brand-dark); --bs-btn-disabled-bg: var(--sf-brand); }
.sf .btn-outline-primary { --bs-btn-color: var(--sf-brand); --bs-btn-border-color: var(--sf-brand); --bs-btn-hover-bg: var(--sf-brand); --bs-btn-hover-border-color: var(--sf-brand); --bs-btn-active-bg: var(--sf-brand); }
.sf .text-primary { color: var(--sf-brand) !important; }
.sf .form-control:focus, .sf .form-select:focus { border-color: var(--sf-brand); box-shadow: 0 0 0 .2rem rgba(10, 63, 180, .14); }

/* Top bar & header */
.sf-top { background: var(--sf-brand-dark); color: #dbe6ff; font-size: .8rem; }
.sf-top a { color: #dbe6ff; text-decoration: none; }
.sf-top a:hover { color: #fff; }
.sf-head { background: #fff; box-shadow: 0 1px 0 rgba(20, 40, 90, .07); }
.sf-logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; color: var(--sf-brand) !important; text-decoration: none; white-space: nowrap; }
.sf-logo .mark { width: 40px; height: 40px; border-radius: 11px; background: var(--sf-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.sf-city { border: 1px solid #dfe5f3; border-radius: 999px; padding: .5rem .9rem; background: #fff; display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--sf-text); cursor: pointer; }
.sf-city:hover { border-color: var(--sf-brand); }
.sf-city i { color: var(--sf-brand); }
.sf-search { position: relative; flex: 1; min-width: 220px; }
.sf-search input { border-radius: 999px; padding: .6rem 3.2rem .6rem 1.1rem; border: 1px solid #dfe5f3; background: #f7f9fe; }
.sf-search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px; border: 0; border-radius: 50%; background: var(--sf-brand); color: #fff; }
.sf-icon-btn { position: relative; color: var(--sf-text); font-size: 1.35rem; text-decoration: none; padding: .2rem .5rem; }
.sf-badge { position: absolute; top: -4px; right: -2px; background: #e5334b; color: #fff; border-radius: 999px; font-size: .65rem; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; font-weight: 700; }
.sf-nav { background: var(--sf-brand); }
.sf-nav a.nav-i { color: #e6eeff; text-decoration: none; padding: .62rem .9rem; display: inline-block; font-size: .9rem; font-weight: 500; }
.sf-nav a.nav-i:hover, .sf-nav a.nav-i.active { color: #fff; background: rgba(255, 255, 255, .13); }
.sf-catbtn { background: rgba(255, 255, 255, .16); color: #fff; border: 0; padding: .62rem 1rem; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .5rem; min-width: 220px; }
.sf-help a { border: 1px solid rgba(255, 255, 255, .55); color: #fff; border-radius: 999px; padding: .15rem .7rem; font-size: .78rem; text-decoration: none; margin-left: .3rem; }
.sf-help a:hover { background: #fff; color: var(--sf-brand); }

/* Menu kategori (sidebar & dropdown) dengan flyout sub-kategori */
.sf-cats { background: #fff; border-radius: var(--sf-radius); box-shadow: 0 2px 14px rgba(20, 40, 90, .08); position: relative; }
.sf-cat { position: relative; }
.sf-cat > a { display: flex; align-items: center; gap: .65rem; padding: .62rem .9rem; color: var(--sf-text); text-decoration: none; font-size: .9rem; border-bottom: 1px solid #f0f3fa; }
.sf-cat:last-child > a { border-bottom: 0; }
.sf-cat > a i.ic { color: var(--sf-brand); font-size: 1.05rem; width: 20px; text-align: center; }
.sf-cat > a .chev { margin-left: auto; color: #9aa7c4; font-size: .75rem; }
.sf-cat:hover > a { background: var(--sf-soft); color: var(--sf-brand); }
.sf-fly { display: none; position: absolute; left: 100%; top: 0; min-width: 230px; background: #fff; border-radius: var(--sf-radius); box-shadow: 0 8px 30px rgba(20, 40, 90, .18); padding: .5rem 0; z-index: 30; }
.sf-cat:hover > .sf-fly { display: block; }
.sf-fly a { display: block; padding: .45rem 1rem; color: var(--sf-text); text-decoration: none; font-size: .88rem; }
.sf-fly a:hover { background: var(--sf-soft); color: var(--sf-brand); }

/* Hero & banner */
.sf-hero { aspect-ratio: 1280 / 920; max-width: 100%; min-height: 0 !important; }
.sf-hero img { width: 100%; height: 100%; object-fit: cover; }
.sf-slide-fallback { height: 100%; min-height: 280px; display: flex; flex-direction: column; justify-content: center; padding: 2rem 2.5rem; color: #fff; background: linear-gradient(135deg, var(--sf-brand) 0%, #3b82f6 100%); }
.sf-slide-fallback h2 { font-weight: 800; }
.sf-rounded { border-radius: var(--sf-radius); overflow: hidden; }
.sf-side-banner { border-radius: var(--sf-radius); overflow: hidden; background: linear-gradient(135deg, #1d5fe0, #6ea1ff); color: #fff; min-height: 128px; display: block; text-decoration: none; position: relative; }
.sf-side-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-side-banner .cap { position: absolute; left: 12px; bottom: 10px; right: 12px; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }

/* Fitur */
.sf-feat { background: #fff; border-radius: var(--sf-radius); padding: 1rem 1.1rem; display: flex; gap: .8rem; align-items: center; box-shadow: 0 2px 14px rgba(20, 40, 90, .06); height: 100%; }
.sf-feat .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--sf-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.sf-feat .t { font-weight: 700; }
.sf-feat .d { color: #62708f; font-size: .82rem; line-height: 1.3; }

/* Judul seksi */
.sf-sec { display: flex; align-items: center; gap: .8rem; margin: 2rem 0 1rem; }
.sf-sec h5 { margin: 0; font-weight: 800; white-space: nowrap; }
.sf-sec .line { flex: 1; border-top: 2px dotted #cdd7ee; }
.sf-sec a { font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Kartu produk */
.sf-card { background: #fff; border-radius: var(--sf-radius); overflow: hidden; box-shadow: 0 2px 14px rgba(20, 40, 90, .07); height: 100%; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; text-decoration: none; color: var(--sf-text); }
.sf-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20, 40, 90, .15); color: var(--sf-text); }
.sf-thumb { aspect-ratio: 1 / .85; background: linear-gradient(135deg, #eaf0ff, #f7f9ff); display: flex; align-items: center; justify-content: center; color: #9db3ea; font-size: 3rem; position: relative; overflow: hidden; }
.sf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-tag { position: absolute; left: 8px; top: 8px; background: var(--sf-brand); color: #fff; font-size: .68rem; padding: .15rem .55rem; border-radius: 999px; font-weight: 600; }
.sf-card .body { padding: .8rem .95rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.sf-card .nm { font-weight: 700; font-size: .95rem; line-height: 1.25; min-height: 2.4em; }
.sf-card .rt { font-size: .78rem; color: #6c7a99; display: flex; align-items: center; gap: .3rem; }
.sf-card .rt .bi-star-fill { color: #f5a623; }
.sf-card .pr { margin-top: auto; font-size: .78rem; color: #6c7a99; }
.sf-card .pr b { display: block; color: var(--sf-brand); font-size: 1.05rem; }
.sf-scroll { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; scrollbar-width: thin; }
.sf-scroll > * { flex: 0 0 calc(20% - .8rem); min-width: 190px; scroll-snap-align: start; }

/* Modal pilih kota */
.sf-city-card { border: 2px solid #e4eaf6; border-radius: 14px; padding: 1rem; cursor: pointer; height: 100%; transition: border-color .15s, box-shadow .15s; display: block; }
.sf-city-card:hover, .sf-city-radio:checked + .sf-city-card { border-color: var(--sf-brand); box-shadow: 0 4px 16px rgba(10, 63, 180, .15); }
.sf-city-radio { position: absolute; opacity: 0; }
.sf-city-ic { width: 54px; height: 54px; border-radius: 14px; background: var(--sf-soft); color: var(--sf-brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; margin-bottom: .6rem; }

/* Footer */
.sf-foot { background: #0f1b3a; color: #b9c5e4; font-size: .88rem; margin-top: 3rem; }
.sf-foot a { color: #b9c5e4; text-decoration: none; }
.sf-foot a:hover { color: #fff; }
.sf-foot h6 { color: #fff; font-weight: 700; }
.sf-wa { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); z-index: 40; text-decoration: none; }

@media (max-width: 991.98px) { .sf-scroll > * { flex-basis: 46%; } .sf-catbtn { min-width: 0; } }

/* ===== Tampilan HP (< 768px): header ringkas, menu bawah ala aplikasi ===== */
.sf-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; display: flex; border-top: 1px solid #e6ebf5; box-shadow: 0 -4px 16px rgba(20, 40, 90, .08); padding-bottom: env(safe-area-inset-bottom); }
.sf-bottom > a, .sf-bottom > button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 0 6px; font-size: .68rem; color: #6b7894; text-decoration: none; background: none; border: 0; position: relative; }
.sf-bottom i { font-size: 1.3rem; line-height: 1; }
.sf-bottom .on { color: var(--sf-brand); font-weight: 700; }
.sf-bottom .dot { position: absolute; top: 3px; left: 50%; margin-left: 6px; background: #e11d48; color: #fff; border-radius: 999px; font-size: .62rem; min-width: 17px; height: 17px; line-height: 17px; text-align: center; padding: 0 4px; font-weight: 700; }
.sf-oc { border-radius: 0; }
.sf-oc.offcanvas-bottom { border-radius: 18px 18px 0 0; }
.sf .sf-oc-i { display: flex; align-items: center; gap: .75rem; padding: .8rem 1.1rem; color: var(--sf-text); text-decoration: none; border-bottom: 1px solid #f0f3f9; }
.sf .sf-oc-i i { color: var(--sf-brand); font-size: 1.15rem; width: 22px; text-align: center; }
.sf .sf-oc-i.sub { padding-left: 3.1rem; font-size: .9rem; color: #5b6987; }
.sf-oc-h { padding: .9rem 1.1rem .3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #8a96ae; font-weight: 700; }

@media (max-width: 767.98px) {
    body.sf { padding-bottom: 64px; }
    .sf-head .container { gap: .5rem !important; padding-top: .5rem !important; padding-bottom: .55rem !important; }
    .sf-logo { font-size: 1.02rem; gap: .45rem; min-width: 0; flex: 1 1 auto; }
    .sf-logo .mark { width: 34px; height: 34px; font-size: 1.05rem; border-radius: 10px; flex-shrink: 0; }
    .sf-logo-t { overflow: hidden; text-overflow: ellipsis; }
    .sf-city { order: 4; padding: .3rem .7rem; font-size: .78rem; max-width: 100%; }
    .sf-search { order: 3; min-width: 0; flex-basis: 100%; }
    .sf-search input { padding: .5rem 3rem .5rem 1rem; font-size: .92rem; }
    .sf-search button { width: 34px; }
    .sf-icon-btn { margin-left: 0 !important; font-size: 1.25rem; }
    main.container { padding-top: .9rem !important; padding-bottom: 1rem !important; }
    .sf-hero { border-radius: 14px; }
    .sf-side-banner { aspect-ratio: 624 / 430; min-height: 0; border-radius: 14px; }
    .sf-feat { flex-direction: column; text-align: center; padding: .85rem .6rem; gap: .45rem; }
    .sf-feat .ic { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 11px; }
    .sf-feat .t { font-size: .88rem; line-height: 1.2; }
    .sf-feat .d { font-size: .74rem; }
    .sf-sec h5 { font-size: 1.05rem; }
    .sf-scroll > * { flex-basis: 62% !important; }
    .sf-wa { width: 48px; height: 48px; font-size: 1.35rem; right: 14px; bottom: 78px; }
    .sf-foot { padding-bottom: .5rem; }
}@media (max-width: 767.98px) { .sf-chips { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; } .sf-chips::-webkit-scrollbar { display: none; } .sf-chips > * { flex-shrink: 0; } }
