/**
 * ARMI Store - Design System (Light Blue)
 * Acuan: bajubaru.id (putih bersih, biru muda #00AEEF -> #0F75BC, kartu produk kotak, bayangan halus)
 * Dipakai oleh halaman client DAN admin supaya tampilannya seragam.
 */

:root {
    --sky: #00aeef;
    --blue: #0f75bc;
    --blue-dark: #0a5a94;
    --navy: #0a2540;
    --ink: #1b1e29;
    --mute: #6b7685;
    --line: #e3e8ef;
    --bg: #f4f8fb;
    --soft: #e8f7fe;
    --soft-2: #cfeefb;
    --ok: #16a34a;
    --warn: #f59e0b;
    --bad: #e3434b;
    --grad: linear-gradient(139.56deg, #00aeef 1.08%, #0f75bc 102.3%);
    --grad-hover: linear-gradient(139.56deg, #0f75bc 1.08%, #00aeef 102.3%);
    --shadow-sm: 0 1px 3px rgba(10, 37, 64, .08);
    --shadow-md: 1px 4px 18px rgba(10, 37, 64, .14);
    --radius: 12px;

    /* Samakan warna bawaan Bootstrap dengan tema biru muda */
    --bs-primary: #0f75bc;
    --bs-primary-rgb: 15, 117, 188;
    --bs-link-color: #0f75bc;
    --bs-link-color-rgb: 15, 117, 188;
    --bs-link-hover-color: #0a5a94;
    --bs-link-hover-color-rgb: 10, 90, 148;
    --bs-body-color: #1b1e29;
    --bs-border-color: #e3e8ef;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3, h4, h5, .font-display {
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: var(--navy);
    letter-spacing: -0.01em;
}

a { transition: color .2s ease; }
.text-blue { color: var(--blue) !important; }
.text-mute { color: var(--mute) !important; }
.bg-soft { background: var(--soft) !important; }
.bg-page { background: var(--bg) !important; }
.line-clamp-1, .line-clamp-2 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }

/* ========== ANIMASI HALUS (hanya aktif kalau JS jalan) ========== */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .hero-float, .badge-pop { animation: none !important; }
}

/* ========== TOP BAR ========== */
.tb {
    background: var(--soft);
    color: var(--navy);
    font-size: 12.5px;
    padding: 7px 0;
    border-bottom: 1px solid var(--soft-2);
}
.tb a { color: var(--blue); text-decoration: none; font-weight: 600; }
.tb a:hover { text-decoration: underline; }

/* ========== NAVBAR ========== */
.nav-main {
    background: #fff;
    box-shadow: 0 1px 10px rgba(10, 37, 64, .12);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.nav-main .inner { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.nav-brand img { height: 42px; display: block; }
.nav-search {
    flex: 1;
    display: flex;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.nav-search:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(0, 174, 239, .15); }
.nav-search input { flex: 1; border: 0; padding: 10px 14px; font-size: 14px; outline: 0; min-width: 0; }
.nav-search button {
    border: 0;
    background: var(--grad);
    color: #fff;
    padding: 0 18px;
    font-size: 16px;
    transition: opacity .2s;
}
.nav-search button:hover { opacity: .9; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 0;
    background: transparent;
    transition: background .2s;
}
.nav-icon-btn:hover { background: var(--soft); color: var(--blue); }
.nav-icon-btn i { font-size: 20px; color: var(--blue); }
.cart-badge {
    position: absolute;
    top: 0;
    left: 24px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--bad);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pop .35s ease;
}

.cat-bar { background: #fff; border-bottom: 1px solid var(--line); }
.cat-bar .inner { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cat-bar .inner::-webkit-scrollbar { display: none; }
.cat-link {
    flex: none;
    padding: 11px 14px;
    font-size: 13px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color .2s, border-color .2s, background .2s;
}
.cat-link:hover { color: var(--blue); background: var(--soft); }
.cat-link.active { color: var(--blue); font-weight: 700; border-bottom-color: var(--sky); }

/* ========== TOMBOL ========== */
.btn-armi-primary, .btn-armi-accent, .btn-primary {
    background: var(--grad) !important;
    border: 0 !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    transition: transform .15s ease, box-shadow .2s ease;
}
.btn-armi-primary:hover, .btn-armi-accent:hover, .btn-primary:hover {
    background: var(--grad-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 174, 239, .35);
}
.btn-armi-primary:active, .btn-armi-accent:active, .btn-primary:active { transform: translateY(0); }
.btn-armi-primary:disabled, .btn-armi-accent:disabled { opacity: .6; transform: none; box-shadow: none; }
.btn-armi-outline {
    background: #fff;
    border: 1.5px solid var(--blue);
    color: var(--blue);
    font-weight: 600;
    border-radius: 8px;
    transition: background .2s, color .2s;
}
.btn-armi-outline:hover { background: var(--soft); color: var(--blue-dark); }
.btn-outline-primary { --bs-btn-color: #0f75bc; --bs-btn-border-color: #0f75bc; --bs-btn-hover-bg: #0f75bc; --bs-btn-hover-border-color: #0f75bc; --bs-btn-active-bg: #0a5a94; border-radius: 8px; }

/* ========== BERANDA ========== */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #e8f7fe 0%, #bfe9fb 55%, #9fdcf7 100%);
    padding: 44px 40px;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.hero::before { width: 320px; height: 320px; right: -80px; top: -110px; }
.hero::after { width: 180px; height: 180px; left: -50px; bottom: -70px; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.2; }
.hero h1 span { color: var(--blue); }
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.hero-card { background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--shadow-md); }
.hero-float { animation: floaty 5s ease-in-out infinite; }

.perk { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; height: 100%; transition: box-shadow .2s, transform .2s; }
.perk:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.perk i { font-size: 24px; color: var(--blue); width: 46px; height: 46px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; flex: none; }
.perk strong { display: block; font-size: 14px; color: var(--navy); }
.perk small { color: var(--mute); font-size: 12px; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-title { position: relative; z-index: 1; width: fit-content; font-weight: 700; font-size: 20px; margin: 0; }
.sec-title::before { content: ""; position: absolute; z-index: -1; left: 0; bottom: 1px; width: 100%; height: 7px; background: var(--sky); opacity: .55; border-radius: 3px; }
.more-link { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--blue); white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

.cat-tile { display: block; text-align: center; padding: 18px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sky); }
.cat-tile .ic { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; background: var(--soft); color: var(--blue); font-size: 26px; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.cat-tile:hover .ic { background: var(--grad); color: #fff; }
.cat-tile h6 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.cat-tile small { color: var(--mute); font-size: 12px; }

.cta-band { background: var(--navy); color: #fff; border-radius: 18px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h3 { color: #fff; font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; }
.cta-band p { color: #b9cbe0; margin: 0; font-size: 14px; max-width: 640px; }
.cta-band .tag { display: inline-block; font-size: 11px; font-weight: 700; background: var(--sky); color: #fff; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ========== KARTU PRODUK ========== */
.pcard { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--soft-2); }
.pcard-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--bg); overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .45s ease; }
.pcard:hover .pcard-img img { transform: scale(1.07); }
.pcard-flag { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--grad); color: #fff; }
.pcard-flag.out { background: #6b7685; }
.pcard-flag.low { background: var(--warn); }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
.pcard-cat { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.pcard-title { font-size: 14.5px; line-height: 1.4; font-weight: 600; color: var(--ink); text-decoration: none; min-height: 40px; }
.pcard-title:hover { color: var(--blue); }
.pcard-price { margin-top: auto; padding-top: 10px; font-weight: 800; font-size: 17px; color: var(--navy); letter-spacing: -.02em; }
.pcard-member { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--blue); background: var(--soft); padding: 2px 8px; border-radius: 6px; width: fit-content; }
.pcard-btn { margin-top: 12px; display: block; text-align: center; padding: 8px; border-radius: 8px; background: var(--grad); color: #fff; font-weight: 700; font-size: 13.5px; text-decoration: none; transition: background .2s, box-shadow .2s; }
.pcard-btn:hover { background: var(--grad-hover); color: #fff; box-shadow: 0 6px 14px rgba(0, 174, 239, .3); }

/* ========== KATALOG / FILTER ========== */
.breadcrumb { --bs-breadcrumb-divider-color: #9aa5b4; font-size: 13px; }
.breadcrumb a { text-decoration: none; }
.filter-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; }
.filter-card h6 { font-weight: 700; font-size: 14px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.filter-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; transition: background .2s, color .2s; }
.filter-item:hover { background: var(--soft); color: var(--blue); }
.filter-item.active { background: var(--soft); color: var(--blue); font-weight: 700; }
.filter-item .n { font-size: 12px; background: var(--bg); color: var(--mute); padding: 1px 8px; border-radius: 999px; }
.filter-item.active .n { background: #fff; color: var(--blue); }
.page-link { color: var(--blue); border-color: var(--line); }
.page-item.active .page-link { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ========== DETAIL PRODUK ========== */
.gallery { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 380px; padding: 16px; overflow: hidden; }
.gallery img { max-height: 420px; max-width: 100%; object-fit: contain; transition: transform .4s ease; }
.gallery:hover img { transform: scale(1.04); }
.price-box { background: var(--soft); border-radius: var(--radius); padding: 16px 18px; }
.price-now { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.size-selector-group { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pill-radio { position: absolute; opacity: 0; pointer-events: none; }
.size-pill-label { min-width: 52px; text-align: center; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; background: #fff; transition: all .15s ease; }
.size-pill-label:hover { border-color: var(--sky); color: var(--blue); }
.size-pill-radio:checked + .size-pill-label { border-color: var(--blue); background: var(--soft); color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 174, 239, .18); }
.size-pill-radio:focus-visible + .size-pill-label { outline: 2px solid var(--blue); outline-offset: 2px; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 38px; border: 0; background: #fff; font-size: 18px; color: var(--blue); }
.qty button:hover { background: var(--soft); }
.qty input { width: 56px; border: 0; text-align: center; font-weight: 700; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.armi-stock-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.armi-specs-table, .size-chart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.armi-specs-table th { width: 34%; text-align: left; color: var(--mute); font-weight: 600; background: var(--bg); }
.armi-specs-table th, .armi-specs-table td, .size-chart-table th, .size-chart-table td { padding: 10px 14px; border: 1px solid var(--line); }
.size-chart-table thead th { background: var(--soft); color: var(--navy); text-align: center; }
.size-chart-table td { text-align: center; }

/* ========== KOMPONEN BOOTSTRAP (seragam) ========== */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.form-control, .form-select { border: 1.5px solid var(--line); border-radius: 8px; padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(0, 174, 239, .15); }
.form-label { font-size: 14px; font-weight: 600; color: var(--navy); }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
.table { --bs-table-hover-bg: var(--soft); }
.table > thead > tr > th { background: var(--soft); color: var(--navy); font-weight: 700; font-size: 13px; border-bottom: 0; white-space: nowrap; }
.table > :not(caption) > * > * { padding: .8rem .9rem; }
.badge { font-weight: 600; }
.alert { border-radius: 10px; border: 0; }
.modal-content { border: 0; border-radius: 16px; overflow: hidden; }
.modal-header { background: var(--soft); border-bottom: 0; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 8px; }
.dropdown-item { border-radius: 8px; font-size: 14px; }
.dropdown-item:hover { background: var(--soft); color: var(--blue); }

.page-hero { background: linear-gradient(135deg, var(--soft), #fff); border: 1px solid var(--soft-2); border-radius: 16px; padding: 22px 26px; }
.stat-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px 18px; height: 100%; display: flex; gap: 14px; align-items: center; transition: box-shadow .2s, transform .2s; }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--soft); color: var(--blue); font-size: 22px; display: flex; align-items: center; justify-content: center; flex: none; }
.stat-card .lbl { color: var(--mute); font-size: 13px; }
.stat-card .val { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.pay-opt { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, background .2s; display: block; }
.pay-opt:has(input:checked) { border-color: var(--blue); background: var(--soft); }
.step-title { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step-title .no { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; }

.text-navy { color: var(--navy) !important; }
.hover-blue:hover { color: var(--blue) !important; text-decoration: underline !important; }

/* ========== FOOTER (Seragam Header: Putih Bersih & Biru Muda) ========== */
.ft {
    background: #ffffff;
    color: #475569;
    margin-top: 56px;
    padding-top: 48px;
    font-size: 14px;
    border-top: 1.5px solid var(--line);
    box-shadow: 0 -2px 14px rgba(10, 37, 64, .04);
}
.ft h5, .ft h6 {
    color: var(--navy);
    font-weight: 700;
}
.ft a {
    color: #475569;
    text-decoration: none;
    transition: color .2s ease;
}
.ft a:hover {
    color: var(--blue);
}
.ft-brand-desc {
    color: #334155;
    line-height: 1.6;
}
.ft-info-box {
    background: var(--soft);
    border: 1.5px solid var(--soft-2);
    border-radius: 12px;
    padding: 14px 16px;
}
.ft-bottom {
    margin-top: 36px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--mute);
}
.ft-bottom strong {
    color: var(--navy);
}
.ft-bottom a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}
.ft-bottom a:hover {
    text-decoration: underline;
}

/* ========== COOKIE ========== */
.armi-cookie-banner { position: fixed; left: 16px; bottom: 16px; z-index: 1080; width: calc(100% - 32px); max-width: 420px; background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(10, 37, 64, .25); border: 1px solid var(--line); padding: 18px; animation: slideUp .5s ease; }
.armi-cookie-title { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.armi-cookie-desc { font-size: 13px; color: var(--mute); margin-bottom: 12px; }
.armi-cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.armi-cookie-actions button { font-size: 13px; padding: 7px 12px; border-radius: 8px; font-weight: 600; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.armi-cookie-actions .armi-cookie-btn-accept { background: var(--grad); color: #fff; border: 0; }
.armi-cookie-actions button:hover { opacity: .9; }

/* ========== ADMIN ========== */
.adm { display: flex; min-height: 100vh; background: var(--bg); }
.adm-side { width: 256px; flex: none; background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.adm-brand .logo { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.adm-brand b { display: block; color: var(--navy); font-size: 15px; line-height: 1.2; }
.adm-brand small { color: var(--mute); font-size: 12px; }
.adm-link { display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-bottom: 4px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .2s, color .2s, transform .2s; }
.adm-link i { font-size: 18px; color: var(--mute); transition: color .2s; }
.adm-link:hover { background: var(--soft); color: var(--blue); transform: translateX(2px); }
.adm-link:hover i { color: var(--blue); }
.adm-link.active { background: var(--grad); color: #fff; font-weight: 600; }
.adm-link.active i { color: #fff; }
.adm-link .badge { margin-left: auto; }
.adm-sep { height: 1px; background: var(--line); margin: 14px 4px; }
.adm-main { flex: 1; min-width: 0; padding: 26px 30px 40px; }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.adm-head h3 { font-size: 22px; font-weight: 800; margin: 0; }
.adm-head p { margin: 2px 0 0; color: var(--mute); font-size: 14px; }
.adm-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.adm-panel .adm-panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.adm-panel .adm-panel-head h5 { margin: 0; font-size: 16px; font-weight: 700; }
.adm-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-chip { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--line); color: var(--ink); background: #fff; transition: all .2s; }
.adm-chip:hover { border-color: var(--sky); color: var(--blue); }
.adm-chip.active { background: var(--grad); border-color: transparent; color: #fff; }
.adm-thumb { width: 48px; height: 48px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }

/* ========== RESPONSIVE OPTIMIZATIONS (TABLET & MOBILE) ========== */
@media (max-width: 991.98px) {
    .adm { flex-direction: column; }
    .adm-side { width: 100%; height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 12px; }
    .adm-brand { border: 0; margin: 0; padding: 0 8px 0 0; }
    .adm-sep { display: none; }
    .adm-link { margin: 0; padding: 8px 12px; }
    .adm-main { padding: 18px 14px 32px; }
}

@media (max-width: 767.98px) {
    /* Navbar Mobile */
    .nav-main .inner { flex-wrap: wrap; gap: 8px; padding: 10px 0; }
    .nav-brand img { height: 34px; }
    .nav-search { order: 3; flex-basis: 100%; margin-top: 4px; }
    .nav-search input { font-size: 16px; padding: 8px 12px; } /* Mencegah auto zoom iOS */
    .nav-search button { padding: 0 14px; }
    .nav-icon-btn { padding: 6px 8px; font-size: 13px; }
    .nav-icon-btn span.lbl { display: none; }
    .cart-badge { left: 18px; top: -2px; }

    /* Category Bar Mobile */
    .cat-bar .inner { padding: 2px 4px; -webkit-overflow-scrolling: touch; }
    .cat-link { padding: 9px 12px; font-size: 12.5px; }

    /* Hero Banner Mobile */
    .hero { padding: 24px 16px; border-radius: 14px; }
    .hero h1 { font-size: 22px; line-height: 1.3; }
    .hero p { font-size: 13.5px; }

    /* Product Cards Mobile Grid (2 Kolom Rapi) */
    .pcard { border-radius: 10px; }
    .pcard-img { aspect-ratio: 1 / 1; padding: 6px; }
    .pcard-body { padding: 8px 10px 10px; }
    .pcard-cat { font-size: 10px; margin-bottom: 2px; }
    .pcard-title { font-size: 12.5px; line-height: 1.35; min-height: 34px; -webkit-line-clamp: 2; }
    .pcard-price { font-size: 14.5px; padding-top: 6px; }
    .pcard-member { font-size: 10.5px; padding: 1px 6px; }
    .pcard-btn { padding: 6px; font-size: 12px; margin-top: 8px; }

    /* Forms Mobile */
    .form-control, .form-select { font-size: 16px; min-height: 44px; } /* Touch target standard */
    .btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; }

    /* Footer Mobile */
    .ft { margin-top: 40px; padding-top: 36px; }
    .ft .row.g-4 > div { margin-bottom: 8px; }
    .ft-info-box { padding: 12px; }

    /* Tables Mobile */
    .table-responsive { -webkit-overflow-scrolling: touch; margin-bottom: 12px; }
}

@media (max-width: 480px) {
    .pcard-img { padding: 4px; }
    .pcard-price { font-size: 13.5px; }
    .stat-card .val { font-size: 18px; }
}

