/* ==========================================================================
   EcoCraft — Customer area stylesheet
   Dipindahkan dari inline <style> di layouts/customer.blade.php & dashboard.
   Path gambar relatif terhadap folder ini (public/assets/css/).
   ========================================================================== */

:root { --canvas:#fbf9f5; --surface:#f4efeb; --ink:#1b2520; --muted:#717e77; --brand:#1e4b38; --accent:#c86d51; --sage:#4a6b5b; --line:#e5dfd5; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:86px; }
[id] { scroll-margin-top:86px; }
body { margin:0; color:var(--ink); background:var(--canvas); font-family:'Plus Jakarta Sans',system-ui,sans-serif; }
a { color:inherit; text-decoration:none; }
a:hover, a:focus { text-decoration:none; }
/* ===== Select kustom =====
   `select:not([multiple])` dipakai supaya spesifisitasnya (0,1,1) mengalahkan
   `.form-select` bawaan Bootstrap (0,1,0). Dengan selector `select` biasa,
   dropdown yang memakai class Bootstrap tetap memakai gaya bawaannya.
   Yang bisa diganti hanya kotak tertutupnya; daftar pilihan saat dibuka
   digambar sistem operasi dan tidak bisa dijangkau CSS. */
select:not([multiple]) {
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231e4b38' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 12px center;
    background-size:14px;
    /* Padding kiri eksplisit: tanpa ini teks pilihan menempel ke tepi kiri. */
    padding:10px 38px 10px 12px;
    cursor:pointer;
}
select::-ms-expand { display:none; }
/* Sengaja tidak ada aturan `option { background; color }`: memaksa warnanya
   membuat sorotan hover bawaan daftar pilihan tertimpa, sehingga pilihan yang
   sedang disorot justru tidak terlihat. */

.customer-shell { min-height:100vh; }
.customer-nav { position:sticky; top:0; z-index:20; background:rgba(251,249,245,.92); border-bottom:1px solid var(--line); backdrop-filter:blur(12px); }
.customer-nav-inner { width:min(1280px,calc(100% - 64px)); min-height:72px; margin:auto; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:28px; }
.brand { display:flex; align-items:center; gap:10px; color:var(--brand); font-weight:800; font-size:20px; white-space:nowrap; }
/* `width:auto` — rasio logo 2:1, jadi kotak fixed-width hanya menyisakan ruang
   kosong di kanan yang membuat jarak ke menu terlihat acak. */
.brand img { width:auto; height:54px; object-fit:contain; object-position:left center; }
.nav-links { display:flex; align-items:center; justify-content:center; gap:6px; color:var(--muted); font-size:12px; font-weight:600; }
.nav-links a { padding:8px 11px; border-radius:999px; white-space:nowrap; }
.nav-links a:hover, .nav-links a.active { color:var(--brand); background:#edf4ee; }
.nav-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.nav-actions .btn { white-space:nowrap; }
.mobile-search, .mobile-shortcuts { display:none; }
.account-chip { display:flex; align-items:center; gap:8px; color:var(--ink); font-size:11px; font-weight:700; white-space:nowrap; }.account-chip img { width:30px; height:30px; object-fit:cover; border-radius:50%; border:2px solid #fff; }.account-chip small { display:block; color:var(--accent); font-size:8px; letter-spacing:.08em; text-transform:uppercase; }
.cart-icon { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--brand); font-size:15px; transition:background .2s,border-color .2s; }
.chat-icon-link { position:relative; }
.chat-badge { position:absolute; top:-4px; right:-4px; min-width:17px; height:17px; padding:0 4px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:var(--accent); color:#fff; font-size:9px; font-weight:800; line-height:1; box-shadow:0 0 0 2px #fff; }
.cart-icon:hover { background:#edf4ee; border-color:#cfe1d3; }
.customer-profile-menu summary .account-chip img { width:36px; height:36px; }
.popover-head { padding:10px 12px 9px; margin-bottom:6px; border-bottom:1px solid var(--line); }
.popover-head strong { display:block; font-size:12.5px; }
.popover-head small { color:var(--accent); font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.mobile-nav-only { display:none; }
.page-wrap { width:min(1280px,calc(100% - 64px)); margin:auto; }
.customer-main { min-height:calc(100vh - 70px); }
.member-sidebar { display:none; }
.member-menu-toggle { display:none; }
.member-layout { min-height:calc(100vh - 70px); }
.member-content { width:min(1280px,calc(100% - 64px)); margin:auto; padding:42px 0 64px; }
.member-panel { background:#fff; border:1px solid var(--line); border-radius:16px; padding:24px; box-shadow:0 8px 24px rgba(27,37,32,.05); }
.member-banner { background:var(--surface); border-radius:16px; padding:28px; }
.greeting-typist::after { content:''; display:inline-block; width:2px; height:.85em; margin-left:3px; background:var(--accent); vertical-align:baseline; animation:greetingCaret 1s infinite; }
@keyframes greetingCaret { 0%,49% { opacity:1; } 50%,100% { opacity:0; } }
@media (prefers-reduced-motion: reduce) { .greeting-typist::after { display:none; } }
.member-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.member-stat { min-height:170px; display:flex; flex-direction:column; justify-content:space-between; }
.member-stat-value { color:var(--brand); font:600 34px/1.05 'EB Garamond',Georgia,serif; }
.member-stat-label { color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.member-dashboard { width:min(1280px,calc(100% - 64px)); margin:auto; padding:42px 0 64px; }
.member-welcome { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:28px; margin-bottom:28px; background:linear-gradient(110deg,#f4efeb,#e5f1e8); border-radius:16px; }
.member-welcome-main { display:flex; align-items:center; gap:18px; min-width:0; }.member-avatar { width:76px; height:76px; flex:0 0 76px; border-radius:50%; object-fit:cover; border:4px solid #fff; }
.member-welcome h1 { margin:5px 0 5px; font-size:32px; }.member-welcome p { max-width:620px; margin:0; color:var(--muted); font-size:12px; line-height:1.6; }.member-actions { display:flex; gap:8px; flex-shrink:0; }.member-actions .btn { white-space:nowrap; }
.member-tier { display:inline-block; padding:4px 9px; border-radius:999px; background:#c6ebd7; color:var(--brand); font-size:10px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.member-stat-grid .member-panel { border-radius:8px; box-shadow:none; }.member-stat-icon { float:right; padding:8px; border-radius:8px; background:#c6ebd7; color:var(--brand); font-size:15px; }.member-stat:nth-child(2) .member-stat-icon { background:#ffdbd0; color:var(--accent); }.member-stat:nth-child(4) .member-stat-icon { background:#e4e2de; }
.member-progress { height:7px; overflow:hidden; margin-top:10px; border-radius:999px; background:var(--line); }.member-progress span { display:block; height:100%; border-radius:inherit; background:var(--brand); }
.member-section { margin-top:34px; }.member-section-head { display:flex; justify-content:space-between; align-items:end; gap:16px; margin-bottom:16px; }.member-section-head h2 { margin:3px 0 0; font-size:28px; }.member-section-link { color:var(--accent); font-size:12px; font-weight:700; }
.member-orders { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.member-order { padding:16px; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 8px 24px -4px rgba(27,37,32,.08); }.order-top,.order-bottom { display:flex; justify-content:space-between; align-items:center; gap:10px; }.order-status { padding:5px 9px; border-radius:999px; background:#dff1e5; color:var(--brand); font-size:10px; font-weight:700; }.order-status.terracotta { background:#ffdbd0; color:#793019; }.order-number { color:var(--muted); font-size:10px; }.order-product { display:flex; gap:12px; margin:15px 0; }.order-product img { width:58px; height:70px; flex:0 0 58px; border-radius:8px; object-fit:cover; }.order-product h3 { margin:3px 0 5px; font:700 16px/1.2 'Plus Jakarta Sans'; }.order-product p { color:var(--muted); font-size:10px; line-height:1.5; margin:0; }.order-pack { display:inline-block; margin-top:5px; padding:3px 7px; border-radius:999px; background:#e5f3e9; color:var(--brand); font-size:9px; }
.order-stepper { margin:12px 0 16px; padding:10px; border-radius:8px; background:var(--surface); }.stepper-line { display:flex; justify-content:space-between; position:relative; margin-top:8px; }.stepper-line::before { content:''; position:absolute; top:5px; left:4%; right:4%; height:2px; background:var(--brand); }.step { position:relative; z-index:1; width:25%; color:var(--muted); text-align:center; font-size:9px; }.step::before { content:''; display:block; width:10px; height:10px; margin:0 auto 5px; border:2px solid var(--brand); border-radius:50%; background:#fff; }.step.done::before { background:var(--brand); }.order-bottom strong { color:var(--brand); font-size:18px; }
.impact-panel { padding:24px; border:1px solid var(--line); border-radius:16px; background:#fff; }.impact-head { display:flex; justify-content:space-between; gap:20px; align-items:start; }.impact-head h2 { margin:4px 0 6px; font-size:30px; }.impact-head p { max-width:650px; color:var(--muted); font-size:11px; line-height:1.6; margin:0; }.impact-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:20px 0; }.impact-metric { padding:16px; border-radius:8px; background:var(--surface); }.impact-metric strong { display:block; margin-top:5px; color:var(--brand); font:600 26px 'EB Garamond',serif; }.impact-metric:nth-child(2) strong { color:var(--accent); }.impact-metric small { color:var(--muted); font-size:10px; }.chart { display:flex; align-items:end; justify-content:space-around; gap:12px; height:160px; padding:16px 10px 0; border-radius:8px; background:var(--surface); }.chart-group { display:flex; align-items:end; gap:4px; height:100%; }.chart-bar { width:12px; min-height:3px; border-radius:3px 3px 0 0; background:var(--brand); }.chart-bar.terracotta { background:var(--accent); }.chart-label { color:var(--muted); font-size:9px; text-align:center; }.member-product-grid .product-card { background:#fff; }.member-product-grid .product-card-image { position:relative; display:block; width:100%; aspect-ratio:1/1; overflow:hidden; background:#e9e4dc; }.member-product-grid .product-card-image img { display:block; width:100%; height:100%; object-fit:cover; }.product-chip { position:absolute; top:9px; left:9px; padding:4px 7px; border:1px solid rgba(229,223,213,.7); border-radius:999px; background:rgba(251,249,245,.9); color:var(--brand); font-size:9px; }.quick-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; padding:18px; border-radius:16px; background:var(--surface); }.quick-action { display:flex; align-items:center; gap:10px; padding:14px; border-radius:8px; background:#fff; }.quick-action-icon { width:32px; height:32px; display:grid; place-items:center; flex:0 0 32px; border-radius:8px; background:#c6ebd7; color:var(--brand); }.quick-action:nth-child(2) .quick-action-icon { background:#ffdbd0; color:var(--accent); }.quick-action strong { display:block; font-size:12px; }.quick-action span { color:var(--muted); font-size:10px; line-height:1.4; }
.seller-invite { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px 24px; border:1px solid #c6ebd7; border-radius:16px; background:#edf7ef; }.seller-invite h2 { margin:4px 0; font-size:26px; }.seller-invite p { margin:0; color:var(--muted); font-size:12px; }
.seller-actions { display:flex; gap:8px; flex-shrink:0; }.seller-actions .btn { white-space:nowrap; }
.seller-center-form { margin-top:18px; padding-top:18px; border-top:1px solid rgba(30,75,56,.15); }.seller-center-form form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; }.seller-center-form .field-full { grid-column:1/-1; }.seller-center-form label { display:block; margin-bottom:5px; color:var(--ink); font-size:11px; font-weight:700; }.seller-center-form input,.seller-center-form select { width:100%; min-height:40px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; font:12px 'Plus Jakarta Sans'; }.seller-center-form input:focus,.seller-center-form select:focus { outline:0; border-color:var(--brand); box-shadow:0 0 0 3px rgba(30,75,56,.12); }.seller-center-form .form-error { grid-column:1/-1; color:#a53c27; font-size:11px; }.seller-form-success { width:100%; margin-top:16px; padding:10px 12px; border-radius:8px; background:#dff3e6; color:var(--brand); font-size:12px; }.seller-center-form .form-submit { display:flex; align-items:end; }.seller-center-form .form-submit .btn { width:100%; }
.seller-tabs { display:flex; gap:4px; margin-top:20px; padding:4px; border:1px solid var(--line); border-radius:10px; background:#f7f5f0; }.seller-tab { flex:1; border:0; border-radius:7px; padding:10px 12px; background:transparent; color:var(--muted); font:700 12px 'Plus Jakarta Sans'; cursor:pointer; }.seller-tab.is-active { background:#fff; color:var(--brand); box-shadow:0 1px 3px rgba(30,75,56,.12); }.seller-tab-panel[hidden] { display:none; }
.member-sidebar a { display:block; padding:10px 12px; color:var(--muted); border-radius:8px; font-size:13px; font-weight:600; }
.member-sidebar a:hover, .member-sidebar a.active { color:var(--brand); background:#fff; }
.member-sidebar .side-title { color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.reference-hero { padding:54px 0 32px; }
.reference-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr); gap:36px; align-items:start; }
.reference-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:18px; background:var(--surface); border-radius:12px; }
.reference-metric strong { display:block; color:var(--brand); font:600 28px/1.1 'EB Garamond',Georgia,serif; }
.auth-portal { background:#fff; border:1px solid var(--line); border-radius:16px; padding:24px; box-shadow:0 12px 32px rgba(27,37,32,.08); }
.promo-ribbon { padding:12px; margin-bottom:16px; border-radius:8px; background:#ffdbd0; color:#793019; }
.promo-ribbon strong,.promo-ribbon small { display:block; }.promo-ribbon strong { font-size:12px; }.promo-ribbon small { margin-top:3px; font-size:10px; }
.community-row-section { margin-top:44px; }
.community-row-head { display:flex; justify-content:space-between; align-items:end; gap:16px; margin-bottom:14px; }
.community-row-head h2 { margin:0; font:600 28px/1.15 'EB Garamond',Georgia,serif; }
.community-row-hint { color:var(--muted); font-size:11px; white-space:nowrap; }
/* Rel cerita: slider geser dengan snap. Kartu yang paling dekat tepi awal rel
   tampil penuh, kartu berikutnya mengecil dan meredup (lihat blok animasi di
   bawah); tepi relnya dibuat memudar supaya tidak terpotong kaku. */
.community-row-track {
    display:flex; gap:16px; padding:14px 2px 16px;
    overflow-x:auto; overscroll-behavior-x:contain;
    scroll-snap-type:x proximity; scrollbar-width:none;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22px,#000 calc(100% - 22px),transparent 100%);
    mask-image:linear-gradient(90deg,transparent 0,#000 22px,#000 calc(100% - 22px),transparent 100%);
}
.community-row-track::-webkit-scrollbar { display:none; }
.community-story-card { flex:0 0 300px; min-width:0; display:flex; flex-direction:column; scroll-snap-align:start; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 8px 24px -4px rgba(27,37,32,.08); transition:box-shadow .2s ease; }
.community-story-card-image { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; background:var(--surface); }
.community-story-card-body { display:flex; flex-direction:column; flex:1; padding:14px 16px 16px; }
.community-story-card-body h3 { margin:3px 0 6px; font:600 18px/1.25 'EB Garamond',Georgia,serif; }
.community-story-card-body p { flex:1; margin:0 0 10px; color:var(--muted); font-size:11px; line-height:1.55; }
.community-story-card-body a { color:var(--brand); font-size:11px; font-weight:700; }
@media (max-width:760px) {
    .community-story-card { flex-basis:min(78vw,300px); }
    .community-row-head h2 { font-size:23px; }
}
.community-highlight { display:grid; grid-template-columns:145px 1fr; gap:16px; align-items:center; padding:16px; border-radius:12px; background:var(--surface); }
.community-highlights-grid {
    display:flex; gap:14px; margin-top:16px; padding-bottom:8px;
    overflow-x:auto; overscroll-behavior-x:contain;
    scroll-snap-type:x proximity; scrollbar-width:none;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22px,#000 calc(100% - 22px),transparent 100%);
    mask-image:linear-gradient(90deg,transparent 0,#000 22px,#000 calc(100% - 22px),transparent 100%);
}
.community-highlights-grid::-webkit-scrollbar { display:none; }
.community-highlights-grid .community-highlight { flex:0 0 min(480px,86vw); margin:0!important; min-width:0; scroll-snap-align:start; }
.community-page-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.community-page-grid .community-highlight { display:block; padding:10px; }
.community-page-grid .community-highlight-image { min-height:104px; margin-bottom:10px; }
.community-page-grid .community-highlight h3 { font-size:15px; line-height:1.2; overflow-wrap:anywhere; }
.community-page-grid .community-highlight p { font-size:10px; line-height:1.45; }
.community-story-card-link { display:block; overflow:hidden; }
.community-highlight-image { min-height:126px; display:block; border-radius:8px; background:url('../images/collection/banner welcome.png') center/cover; }
.community-highlight h3 { margin:4px 0 6px; font-size:17px; }.community-highlight p { color:var(--muted); font-size:11px; line-height:1.55; margin:0 0 7px; }.community-highlight a { color:var(--brand); font-size:11px; font-weight:700; }

/* ===== Animasi slider komunitas: kartu terdepan tampil paling besar =====
   `--rail-focus` diisi oleh JS saat rel digeser: 1 untuk kartu yang berada di
   tepi awal rel, mendekati 0 untuk kartu yang makin jauh. Jadi kartu yang
   sedang "di depan" membesar dan menajam, sisanya mengecil dan meredup.
   Seluruh gerakannya berada di dalam `prefers-reduced-motion: no-preference`,
   jadi pengguna yang meminta gerakan minimal melihat semua kartu sama besar. */
@media (prefers-reduced-motion: no-preference) {
    .community-story-card,
    .community-highlights-grid .community-highlight {
        transform:scale(calc(.94 + .06 * var(--rail-focus,1)));
        opacity:calc(.55 + .45 * var(--rail-focus,1));
    }
}
/* Hover hanya di perangkat berkursor; sentuhan tidak kehilangan makna. */
@media (hover:hover) and (prefers-reduced-motion: no-preference) {
    .community-story-card:hover { transform:translateY(-3px) scale(calc(.94 + .06 * var(--rail-focus,1))); box-shadow:0 14px 30px -6px rgba(27,37,32,.14); }
    .community-story-card:hover .community-story-card-link img { transform:scale(1.06); }
    .community-story-card:hover .community-story-card-body > a span { transform:translateX(4px); }
}
.community-story-card-link img { transition:transform .5s cubic-bezier(.22,.61,.36,1); }
.community-story-card-body > a span { display:inline-block; transition:transform .2s ease; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; margin-bottom:18px; background:var(--surface); border-radius:8px; }
.auth-tabs button { border:0; border-radius:6px; padding:9px 8px; background:transparent; color:var(--muted); font:600 12px 'Plus Jakarta Sans'; cursor:pointer; }
.auth-tabs button.active { background:#fff; color:var(--brand); box-shadow:0 2px 6px rgba(27,37,32,.08); }
.auth-form { display:none; }
.auth-form.active { display:block; }
.auth-form label { display:block; margin-bottom:6px; font-size:11px; font-weight:700; }
.auth-form input,.auth-form select { width:100%; min-height:42px; margin-bottom:12px; padding:9px 11px; border:1px solid var(--line); border-radius:8px; background:var(--surface); font:12px 'Plus Jakarta Sans'; }
.auth-form input:focus { outline:0; border-color:var(--brand); box-shadow:0 0 0 3px rgba(30,75,56,.12); }
.auth-form select:focus { outline:0; border-color:var(--brand); box-shadow:0 0 0 3px rgba(30,75,56,.12); }
.auth-form-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.auth-social { width:100%; padding:10px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); font:600 12px 'Plus Jakarta Sans'; cursor:pointer; }
.auth-divider { display:flex; align-items:center; gap:8px; margin:16px 0; color:var(--muted); font-size:9px; letter-spacing:.1em; white-space:nowrap; }
.auth-divider::before,.auth-divider::after { content:''; height:1px; flex:1; background:var(--line); }
.auth-note { margin:14px 0 0; color:var(--muted); font-size:10px; line-height:1.5; text-align:center; }
.auth-note a { color:var(--brand); font-weight:700; }
.guest-modal { position:fixed; inset:0; z-index:100; display:none; place-items:center; padding:20px; background:rgba(27,37,32,.42); }
.guest-modal.open { display:grid; }
.guest-modal-card { position:relative; width:min(420px,100%); padding:26px; background:#fff; border-radius:16px; box-shadow:0 20px 48px -8px rgba(27,37,32,.24); }
.guest-modal-close { position:absolute; top:12px; right:14px; border:0; background:transparent; color:var(--muted); font-size:22px; cursor:pointer; }
.guest-section { padding:42px 0; }
.guest-section-soft { background:var(--surface); }
.guest-section-title { text-align:center; max-width:700px; margin:0 auto 28px; }
.guest-section-title h2 { margin-bottom:8px; }
.guest-section-title p { color:var(--muted); font-size:13px; line-height:1.7; }
.guest-benefit-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.guest-benefit { min-height:190px; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:18px; }
.guest-benefit-icon { width:34px; height:34px; display:grid; place-items:center; margin-bottom:14px; border-radius:8px; background:#dff1e5; color:var(--brand); font-weight:800; }
.guest-benefit:nth-child(2) .guest-benefit-icon { background:#ffdbd0; color:var(--accent); }
.guest-benefit:nth-child(3) .guest-benefit-icon { background:#c6ebd7; }
.guest-benefit:nth-child(4) .guest-benefit-icon { background:#e4e2de; }
.guest-benefit h3 { font-size:15px; margin:0 0 8px; }
.guest-benefit p { color:var(--muted); font-size:12px; line-height:1.6; margin:0; }
.guest-trust { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; padding:20px; background:var(--surface); border-radius:12px; text-align:center; }
.guest-trust strong { display:block; font-size:12px; margin-bottom:4px; }
.guest-trust span { color:var(--muted); font-size:11px; }
.guest-faq { max-width:760px; margin:auto; }
.guest-faq details { padding:14px 16px; margin-bottom:8px; background:var(--surface); border-radius:8px; font-size:13px; }
.guest-faq summary { cursor:pointer; font-weight:600; }
.guest-faq p { color:var(--muted); line-height:1.6; margin:12px 0 0; }
.guest-cta { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px; color:#fff; background:var(--brand); border-radius:8px; }
.guest-cta h2 { color:#fff; margin:0 0 4px; font-size:28px; }
.guest-cta p { color:rgba(255,255,255,.75); margin:0; font-size:12px; }
.guest-cta-actions { display:flex; gap:10px; flex-shrink:0; }
.guest-cta .btn-accent { color:#fff; background:var(--accent); border-color:var(--accent); }
.guest-impact-panel { display:flex; flex-direction:column; gap:16px; padding:26px; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 12px 32px rgba(27,37,32,.08); }
.guest-impact-panel h2 { font:600 clamp(24px,2.6vw,32px)/1.15 'EB Garamond',Georgia,serif; margin:0; }
.guest-impact-panel > p { color:var(--muted); font-size:12px; line-height:1.7; margin:0; }
.guest-impact-list { display:flex; flex-direction:column; gap:14px; margin:0; padding:0; list-style:none; }
.guest-impact-list li { display:flex; gap:12px; align-items:flex-start; }
.guest-impact-icon { flex:0 0 36px; width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:#dff1e5; color:var(--brand); font-size:15px; }
.guest-impact-list li:nth-child(2) .guest-impact-icon { background:#ffdbd0; color:var(--accent); }
.guest-impact-list li:nth-child(3) .guest-impact-icon { background:#c6ebd7; }
.guest-impact-list li:nth-child(4) .guest-impact-icon { background:#ece7df; }
.guest-impact-list strong { display:block; font-size:12px; }
.guest-impact-list li > div > span { display:block; color:var(--muted); font-size:11px; line-height:1.5; }
.guest-impact-foot { margin-top:auto; padding-top:16px; border-top:1px solid var(--line); }
.guest-impact-foot .btn { width:100%; }
.hero { padding:80px 0 64px; background:var(--surface); }
.hero-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:44px; align-items:center; }
.eyebrow { color:var(--brand); font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
h1, h2 { font-family:'EB Garamond',Georgia,serif; font-weight:600; letter-spacing:0; }
h1 { font-size:clamp(38px,5vw,64px); line-height:1.02; margin:12px 0 18px; }
h2 { font-size:clamp(28px,3vw,40px); margin:0 0 10px; }
.lead { max-width:590px; color:var(--muted); font-size:17px; line-height:1.7; }
.welcome-note { color:var(--sage); font-size:14px; font-weight:700; margin:0 0 18px; }
.hero-art { min-height:320px; border-radius:24px; background:url('../images/collection/banner welcome.png') center/cover; }
.section { padding:56px 0; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:24px; }
.section-head p { color:var(--muted); margin:0; }
.product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.product-card { min-width:0; display:flex; flex-direction:column; overflow:hidden; background:var(--surface); border:1px solid var(--line); border-radius:14px; transition:transform .2s,box-shadow .2s; }
.product-card:hover { transform:translateY(-3px); box-shadow:0 8px 24px -4px rgba(27,37,32,.08),0 2px 6px -1px rgba(27,37,32,.04); }
.product-card-image { display:block; aspect-ratio:1/1; min-height:0; background:#e9e4dc; }
.product-card-image img { width:100%; height:100%; object-fit:cover; }
.product-card-body { display:flex; flex-direction:column; flex:1; padding:13px 14px 14px; }
.product-card-body > small.eyebrow { margin-bottom:6px; }
.product-card h3 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:15px; line-height:1.35; margin:0 0 6px; }
.product-card p { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; flex:1 1 auto; color:var(--muted); font-size:12px; margin:0 0 10px; }
.product-card-body > .d-flex { margin-top:auto; padding-top:12px; border-top:1px solid var(--line); }
.price { color:var(--brand); font-weight:800; }
.btn-brand { color:#fff; background:var(--brand); border-color:var(--brand); border-radius:8px; font-weight:700; }
.btn-brand:hover { color:#fff; background:#163729; border-color:#163729; transform:translateY(-1px); }
.product-card .btn-sm { padding:8px 16px; border-radius:999px; font-size:12px; font-weight:700; box-shadow:0 2px 8px rgba(30,75,56,.18); transition:background .18s,box-shadow .18s,transform .18s; }
.product-card .btn-brand.btn-sm:hover { box-shadow:0 6px 16px rgba(30,75,56,.28); transform:translateY(-1px); }
.product-card .btn-sm i { margin-right:5px; }
.product-card-body form { margin:0; }
/* ===== Footer beli: harga + stepper satu baris, tombol aksi di bawah ===== */
.card-buy { margin-top:auto; padding-top:12px; border-top:1px solid var(--line); }
.card-buy .price { font-size:15px; white-space:nowrap; }
.card-buy-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.card-buy-actions { display:flex; gap:8px; }
.card-buy-actions .btn { flex:1 1 0; min-width:0; white-space:nowrap; padding:8px 8px; font-size:11.5px; overflow:hidden; text-overflow:ellipsis; }
.card-add-btn i, .card-buy-btn i { margin-right:5px; }
/* Card sempit (2 kolom): kecilkan harga & tombol; stepper pindah baris sendiri agar tak terpotong */
@media (max-width:520px) {
    .card-buy { padding-top:10px; }
    .card-buy .price { font-size:13px; }
    .card-buy-row { flex-wrap:wrap; gap:8px; margin-bottom:8px; }
    .card-buy-row .price { flex:1 1 100%; }
    .qty-stepper { flex:0 0 auto; }
    .qty-btn { width:30px; height:30px; font-size:16px; }
    .qty-input { width:34px; height:30px; font-size:13px; }
    .card-buy-actions { flex-direction:row; gap:6px; }
    .card-buy-actions .btn { flex:1 1 0; min-width:0; padding:7px 6px; font-size:10.5px; }
    .card-add-btn i, .card-buy-btn i { margin-right:4px; }
}
/* Sangat sempit: tampilkan ikon saja pada tombol aksi (teks disembunyikan).
   Prefiks `.product-card` membuat aturan ini menang atas
   `.product-card .btn{font-size:12px}` di blok max-width:640px yang letaknya
   lebih bawah di berkas ini — tanpa itu label "Tambah" terpotong di <=430px. */
@media (max-width:430px) {
    .product-card .card-buy-actions .btn { padding:8px 6px; font-size:0; }
    .product-card .card-add-btn i, .product-card .card-buy-btn i { margin-right:0; font-size:13px; }
}
.qty-stepper { display:inline-flex; align-items:center; flex:0 0 auto; border:1px solid var(--line); border-radius:999px; background:#fff; }
.qty-btn { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; width:30px; height:32px; border:0; background:transparent; color:var(--brand); font-size:17px; font-weight:800; line-height:1; cursor:pointer; }
.qty-btn:first-child { border-radius:999px 0 0 999px; }
.qty-btn:last-child { border-radius:0 999px 999px 0; }
.qty-btn:hover { background:#edf4ee; }
.qty-input { flex:0 0 auto; width:32px; height:32px; border:0; text-align:center; background:transparent; color:var(--ink); font:700 13px 'Plus Jakarta Sans'; padding:0; }
.qty-input:focus { outline:0; }
/* ===== Halaman katalog ===== */
.catalog-search { display:flex; gap:8px; }
.catalog-search input { min-width:220px; min-height:40px; padding:9px 14px; border:1px solid var(--line); border-radius:8px; background:#fff; font:13px 'Plus Jakarta Sans'; }
.catalog-search input:focus { outline:0; border-color:var(--brand); box-shadow:0 0 0 3px rgba(30,75,56,.12); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
@media (max-width:640px) { .catalog-search { width:100%; } .catalog-search input { flex:1; min-width:0; } }

/* ===== Pagination modern ===== */
.pagination { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; padding:0; list-style:none; align-items:center; }
.pagination .page-item .page-link {
    display:inline-flex; align-items:center; justify-content:center; min-width:38px; height:38px; padding:0 12px;
    border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink);
    font:700 12px 'Plus Jakarta Sans'; line-height:1; box-shadow:none;
}
.pagination .page-item .page-link:hover { background:#edf4ee; border-color:#cfe1d3; color:var(--brand); }
.pagination .page-item.active .page-link { background:var(--brand); border-color:var(--brand); color:#fff; }
.pagination .page-item.disabled .page-link { color:#b7c0b9; opacity:.7; }
.pagination .page-link:focus { outline:0; box-shadow:0 0 0 3px rgba(30,75,56,.12); }

/* ===== Riwayat pembelian ===== */
.history-page { padding:34px 0 72px; }
.history-head { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:22px; flex-wrap:wrap; }
.history-head h1 { font:600 clamp(30px,4vw,44px)/1 'EB Garamond',serif; margin:6px 0 6px; }
.history-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:22px; }
.history-stat { padding:16px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.history-stat .hs-label { display:block; color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.history-stat strong { display:block; margin-top:6px; color:var(--brand); font:600 24px/1.1 'EB Garamond',serif; }
.order-history-card { border:1px solid var(--line); border-radius:16px; background:#fff; padding:18px; margin-bottom:14px; box-shadow:0 8px 24px -8px rgba(27,37,32,.06); }
.ohc-top { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.ohc-number { display:block; font-size:14px; }
.ohc-date { color:var(--muted); font-size:11px; }
.ohc-items { display:flex; flex-direction:column; gap:12px; padding:14px 0; }
.ohc-item { display:flex; align-items:center; gap:12px; }
.ohc-item img { width:52px; height:52px; flex:0 0 52px; border-radius:10px; object-fit:cover; background:#e9e4dc; }
.ohc-item-body { flex:1; min-width:0; }
.ohc-item-name { display:block; font-size:13px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ohc-item-meta { color:var(--muted); font-size:11px; }
.ohc-item-sub { font-size:12px; font-weight:700; color:var(--ink); white-space:nowrap; }
.ohc-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:12px; border-top:1px solid var(--line); }
.ohc-total { font-size:13px; color:var(--muted); }
.ohc-total strong { margin-left:6px; font-size:16px; }
.badge-status { display:inline-flex; align-items:center; gap:5px; padding:5px 10px; border-radius:999px; font-size:10px; font-weight:800; }
.badge-status.ok { background:#dff2e5; color:#21633f; }
.badge-status.warn { background:#fff1dc; color:#9a5d12; }
.badge-status.off { background:#ffe6e1; color:#a53c27; }
.badge-status.info { background:#e6eefb; color:#274690; }
.history-empty { padding:48px 20px; text-align:center; border:1px dashed var(--line); border-radius:16px; background:#fff; }
.history-empty i { font-size:34px; color:var(--brand); opacity:.5; }
.history-empty h2 { font:600 26px/1 'EB Garamond',serif; margin:14px 0 6px; }
@media (max-width:640px) { .history-stats { grid-template-columns:1fr; } }

/* ===== Shopping cart ===== */
.cart-page { padding:34px 0 72px; }
.cart-heading { display:flex; align-items:end; justify-content:space-between; margin-bottom:24px; }
.cart-heading h1 { font:600 44px/1 'EB Garamond',serif; margin:7px 0 0; }
.cart-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:20px; }
.cart-bulkbar { display:flex; align-items:center; gap:14px; padding:12px 14px; margin-bottom:12px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.cart-check { display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:700; cursor:pointer; margin:0; }
.cart-check input, .cart-item-check, .cart-card-check input { width:18px; height:18px; accent-color:var(--brand); cursor:pointer; }
.cart-selected-count { color:var(--muted); font-size:11px; }
.cart-bulkbar form { margin:0 0 0 auto; }
.cart-table { overflow:auto; border:1px solid var(--line); border-radius:14px; background:#fff; }
.cart-table table { min-width:680px; margin:0; }
.cart-table th { padding:14px 16px; background:#f6f3ef; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.08em; border:0; }
.cart-table td { padding:16px; border-bottom:1px solid var(--line); font-size:12px; vertical-align:middle; }
.cart-table tr:last-child td { border:0; }
.cart-product { display:flex; align-items:center; gap:12px; min-width:240px; }
.cart-product img { width:68px; height:68px; border-radius:9px; object-fit:cover; }
.cart-product strong { font-size:13px; }
.cart-quantity { display:flex; gap:6px; align-items:center; }
.cart-quantity input { width:62px !important; min-height:36px; }
.cart-stepper { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:999px; overflow:hidden; background:#fff; }
.cart-stepper .qty-btn { width:32px; height:34px; border:0; background:transparent; color:var(--brand); font-size:16px; font-weight:700; line-height:1; cursor:pointer; }
.cart-stepper .qty-btn:hover { background:#edf4ee; }
.cart-stepper .qty-input { width:38px; height:34px; border:0; text-align:center; background:transparent; color:var(--ink); font:700 13px 'Plus Jakarta Sans'; padding:0; }
.cart-stepper .qty-input:focus { outline:0; }
.cart-summary { align-self:start; padding:22px; border:1px solid var(--line); border-radius:14px; background:#fff; position:sticky; top:96px; }
.cart-summary h2 { font:600 26px/1 'EB Garamond',serif; margin:0 0 20px; }
.cart-total { display:flex; justify-content:space-between; padding-top:16px; border-top:1px solid var(--line); }

/* Kartu mobile: sembunyikan di desktop */
.cart-cards { display:none; }
.cart-card { display:flex; gap:12px; padding:12px; margin-bottom:10px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.cart-card-check { display:flex; align-items:flex-start; padding-top:2px; margin:0; }
.cart-card-img { width:74px; height:74px; flex:0 0 74px; border-radius:10px; object-fit:cover; background:#e9e4dc; }
.cart-card-body { min-width:0; flex:1; }
.cart-card-title { display:block; font-size:13px; line-height:1.3; }
.cart-card-price { color:var(--muted); font-size:12px; margin:3px 0 8px; }
.cart-card-row { display:flex; align-items:center; gap:8px; }
.cart-card-row .cart-quantity input { width:56px !important; }
.cart-card-subtotal { margin-top:8px; font-size:12px; color:var(--muted); }

@media (max-width:800px) {
    .cart-layout { grid-template-columns:1fr; }
    .cart-summary { position:static; }
    .cart-heading h1 { font-size:38px; }
    .cart-table { display:none; }
    .cart-cards { display:block; }
}
.btn-outline-brand { color:var(--brand); background:transparent; border:1.5px solid var(--brand); border-radius:8px; font-weight:700; }
.btn-outline-brand:hover { color:var(--brand); background:rgba(30,75,56,.06); }
.btn-outline-light { color:#fff; background:transparent; border:1.5px solid rgba(255,255,255,.6); border-radius:8px; font-weight:700; }
.btn-outline-light:hover { color:var(--brand); background:#edf4ee; border-color:#edf4ee; }
.alert { border-radius:10px; }
.site-footer { padding:38px 0 22px; color:var(--muted); border-top:1px solid var(--line); font-size:13px; }
.footer-grid { display:grid; grid-template-columns:1.5fr repeat(3,1fr); gap:28px; padding-bottom:28px; }
.footer-grid h3 { color:var(--ink); font:600 22px 'EB Garamond',serif; margin:0 0 10px; }
.footer-grid h4 { color:var(--ink); font-size:11px; letter-spacing:.1em; text-transform:uppercase; margin:3px 0 12px; }
.footer-grid a { display:block; margin-bottom:8px; font-size:12px; }
.footer-grid a:hover { color:var(--brand); }
.footer-bottom { display:flex; justify-content:space-between; gap:15px; padding-top:18px; border-top:1px solid var(--line); font-size:11px; }
.form-panel, .summary-panel { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:24px; }
.form-label { font-weight:600; font-size:14px; }
.form-control, .form-select { min-height:44px; border-color:var(--line); border-radius:8px; background:var(--surface); }
.form-control:focus, .form-select:focus { border-color:var(--brand); box-shadow:0 0 0 3px rgba(30,75,56,.12); }
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:12px; background:#fff; }
.table-wrap table { min-width:700px; margin:0; }

/* ===== Pintasan cepat (di bawah header, hanya di bawah desktop) ===== */
.quick-nav { display:none; }

/* ===== Bottom navigation (mobile only, customer login) ===== */
.mobile-bottom-nav { display:none; }

@media (min-width:1000px) { .member-layout { display:grid; grid-template-columns:248px minmax(0,1fr); } .member-sidebar { display:flex; flex-direction:column; justify-content:space-between; padding:24px 16px; background:var(--surface); border-right:1px solid var(--line); } .member-content { width:min(1280px,calc(100% - 64px)); } }
/* ===== Grid dua kolom jadi satu kolom di bawah desktop =====
   `minmax(0,1fr)` — bukan `1fr` — supaya kolom tidak dipaksa melebar oleh
   min-content isinya. Sorotan komunitas (`.community-highlights-grid`) di
   dalam kolom itu punya min-content besar, dan dengan `1fr` kolomnya ikut
   membengkak sampai ±3900px sehingga seluruh halaman jadi bisa di-scroll
   horizontal pada rentang 761–1100px. */
@media (max-width:1100px) { .community-page-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .hero-grid, .reference-grid { grid-template-columns:minmax(0,1fr); } .hero-art { min-height:230px; } .member-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .guest-benefit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) {
    .customer-nav-inner, .page-wrap, .member-content { width:min(100% - 24px,1280px); }
    .customer-nav-inner { min-height:62px; gap:10px; flex-wrap:wrap; padding:9px 0; }
    .brand { font-size:17px; margin-right:auto; }
    .nav-actions .btn { padding:7px 9px; font-size:12px; }
    .account-chip span { display:none; }
    .hero { padding:48px 0 36px; }
    .lead { font-size:16px; }
    .hero-art { min-height:170px; border-radius:14px; }
    .section { padding:38px 0; }
    .section-head { display:block; }
    .section-head .btn { margin-top:12px; }
    .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .reference-hero { padding:34px 0 18px; }
    .reference-metrics { grid-template-columns:1fr; }
    .community-highlight { grid-template-columns:1fr; }
    .community-page-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
    .auth-form-row { grid-template-columns:1fr; gap:0; }
    .member-banner { padding:20px; }
    .member-dashboard { width:min(100% - 24px,1280px); padding:24px 0 42px; }.member-welcome,.impact-head { display:block; }.member-welcome-main { align-items:flex-start; }.member-welcome h1 { font-size:28px; }.member-actions { margin-top:18px; flex-wrap:wrap; }.member-orders { grid-template-columns:1fr; }.impact-metrics,.quick-actions { grid-template-columns:1fr; }.member-section-head { display:block; }.member-section-link { display:inline-block; margin-top:8px; }
    .seller-invite { display:block; }.seller-actions { margin-top:16px; flex-wrap:wrap; }.seller-actions .btn { flex:1; }.seller-center-form form { grid-template-columns:1fr; }.seller-center-form .field-full { grid-column:auto; }
    .member-menu-toggle { display:block; position:fixed; right:16px; bottom:16px; z-index:31; padding:10px 14px; border:0; border-radius:999px; background:var(--brand); color:#fff; font:700 12px 'Plus Jakarta Sans'; box-shadow:0 8px 24px rgba(27,37,32,.18); }.member-sidebar.mobile-open { display:flex; position:fixed; inset:62px 12px auto; z-index:30; max-height:calc(100vh - 90px); overflow:auto; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:0 20px 48px -8px rgba(27,37,32,.2); }
    .member-stat-grid { grid-template-columns:1fr; }
    .guest-benefit-grid, .guest-trust { grid-template-columns:1fr 1fr; }
    .guest-cta { display:block; }
    .guest-cta-actions { margin-top:18px; flex-wrap:wrap; }
    .guest-cta-actions .btn { flex:1; }
    .footer-grid { grid-template-columns:1fr 1fr; }
    .footer-bottom { display:block; }
    .product-card-body { padding:12px; }
    .product-card h3 { font-size:14px; }
    .product-card .btn { width:100%; font-size:12px; }
    .form-panel, .summary-panel { padding:16px; }
}
.nav-links a i,.mobile-nav-only i{display:none}
.customer-profile-menu{position:relative;display:inline-block}.customer-profile-menu summary{list-style:none;cursor:pointer}.customer-profile-menu summary::-webkit-details-marker{display:none}.customer-profile-menu .profile-popover{position:absolute;right:0;top:44px;z-index:40;min-width:190px;padding:8px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 14px 30px rgba(27,37,32,.14)}.profile-popover a,.profile-popover button{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:7px;background:transparent;color:var(--ink);font:12px 'Plus Jakarta Sans';text-align:left;text-decoration:none}
.profile-popover a i,.profile-popover button i{width:16px;text-align:center;font-size:13px;margin:0}
.profile-popover .popover-logout{display:block;width:100%;margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}
.profile-popover .popover-logout button{display:flex !important;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:7px;background:transparent;color:#a53c27;font:700 12px 'Plus Jakarta Sans';text-align:left;cursor:pointer}
.profile-popover .popover-logout button:hover{background:#fdece7}.profile-popover a:hover,.profile-popover button:hover{background:#edf4ee}.profile-popover form{margin:0}

/* ===== Pintasan cepat: menu utama keluar dari navbar di bawah desktop (<=1184px) =====
   Menu baris di navbar tidak bisa menyusut (labelnya nowrap), jadi di bawah
   desktop menunya dipindah seluruhnya ke kartu pintasan di bawah navbar —
   bukan lagi dipaksa jadi ikon saja di dalam navbar.
   1184px adalah batas desktop untuk header ini: baris menu baru muat penuh
   mulai 1185px. Tamu (belum login) punya dua tombol "Masuk"/"Daftar Akun"
   yang membuat header ~146px lebih lebar, jadi ambangnya ditentukan oleh
   keadaan tamu tersebut. */
@media (max-width:1184px){
    .customer-nav { position:static; }
    .customer-nav-inner { display:flex; flex-wrap:wrap; min-height:0; gap:10px; padding:12px 0 0; }
    .nav-actions { order:1; margin-left:auto; }

    /* Menu baris di header diganti pintasan cepat di bawah header. */
    .nav-links { display:none; }

    /* Pintasan cepat: seluruh menu dalam satu kartu, ikon di dalam kotak
       berwarna dengan label di bawahnya (pola yang sama dengan grid pintasan
       mobile sebelumnya). */
    .quick-nav {
        display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
        gap:14px 6px; padding:18px 12px; margin:14px auto 18px;
        width:min(1280px,calc(100% - 64px));
        background:#fff; border:1px solid var(--line); border-radius:16px;
    }
    .quick-nav a {
        display:flex; align-items:center; flex-direction:column; gap:7px;
        padding:8px 4px; border:1px solid transparent; border-radius:12px;
        font-size:10.5px; font-weight:600; line-height:1.2; text-align:center; white-space:normal;
    }
    .quick-nav a i {
        display:grid; place-items:center;
        width:44px; height:44px; border-radius:14px;
        background:#c6ebd7; color:var(--brand); font-size:18px;
    }
    /* Warna latar literal, bukan var(--soft): variabel itu tidak didefinisikan
       di :root berkas ini (hanya ada di CSS seller/admin). */
    .quick-nav a:hover, .quick-nav a.active { border-color:#c9dfce; background:#edf4ee; color:var(--brand); }
    .quick-nav a.active i { background:var(--brand); color:#fff; }

    /* Menu tambahan disembunyikan sampai "Muat lebih banyak" ditekan. */
    .quick-nav a.is-hidden { display:none; }
    .quick-nav-more {
        grid-column:1/-1; display:inline-flex; align-items:center; justify-content:center; gap:6px;
        margin-top:2px; padding:11px; border:1px dashed var(--line); border-radius:12px;
        background:transparent; color:var(--brand); font:700 12px 'Plus Jakarta Sans'; cursor:pointer;
    }
    .quick-nav-more:hover { border-color:var(--brand); background:#edf4ee; }
}
/* Di layar yang lebih lebar, empat pintasan cukup dalam satu baris. */
@media (min-width:561px) and (max-width:900px){
    .quick-nav { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
/* Menjelang desktop, enam pintasan per baris supaya kartunya tidak terlalu tinggi. */
@media (min-width:901px) and (max-width:1184px){
    .quick-nav { grid-template-columns:repeat(6,minmax(0,1fr)); }
}

/* ===== Mobile navbar & navigasi bawah (<=760px) ===== */
@media (max-width:760px){
    .customer-nav { position:static; }
    /* Lebar tidak diubah di sini: inset header harus mengikuti `.page-wrap`
       (32px di 641–760px, 12px di <=640px dari blok max-width:640px), jadi
       logo dan isi header tetap rata dengan konten di bawahnya.
       Padding samping 0 karena inset itu sudah datang dari `width`. */
    .customer-nav-inner { min-height:0; display:flex; flex-wrap:wrap; gap:0; padding:10px 0 0; }
    .brand { margin-left:0; margin-right:auto; font-size:17px; }
    .brand img { width:auto; height:40px; margin-left:0; transform:none; }
    .brand-copy small { display:none; }
    .reference-hero, .customer-main, .page-wrap { max-width:100%; overflow-x:hidden; }
    .community-highlights-grid .community-highlight { flex-basis:calc(100vw - 36px); grid-template-columns:1fr; }
    .community-page-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
    .community-page-grid .community-highlight { grid-template-columns:1fr; padding:7px; }
    .community-page-grid .community-highlight-image { min-height:76px; margin-bottom:7px; }
    .community-page-grid .community-highlight h3 { font-size:11px; }
    .community-page-grid .community-highlight p { font-size:9px; line-height:1.35; }

    .nav-actions { order:1; margin-left:auto; gap:6px; }
    .mobile-search { display:flex; flex:1 1 100%; order:2; align-items:center; gap:8px; margin:10px 0 8px; padding:0 12px; height:38px; border:1px solid var(--line); border-radius:8px; background:#fff; }
    .mobile-search i { color:var(--muted); font-size:13px; }
    .mobile-search input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--ink); font:12px 'Plus Jakarta Sans'; }
    .mobile-search button { padding:0; border:0; background:transparent; color:var(--brand); cursor:pointer; }
    .customer-profile-menu { display:block; }
    .customer-profile-menu .profile-popover { position:fixed; right:12px; top:62px; z-index:70; max-height:calc(100vh - 140px); overflow-y:auto; }
    .customer-profile-menu .account-chip span { display:none; }
    .auth-actions .account-chip { display:none; }
    .auth-actions .customer-profile-menu { display:block; }
    .auth-actions .btn, .auth-actions form { display:none; }
    .auth-actions .mobile-cart { display:inline-flex !important; align-items:center; justify-content:center; width:32px; height:32px; padding:0; }
    .mobile-cart span { display:none; }
    .mobile-cart i { display:inline-block; font-size:15px; }
    .customer-profile-menu summary .account-chip { display:flex; padding:0; }
    .customer-profile-menu summary .account-chip img { width:32px; height:32px; }
    .customer-profile-menu summary { border:0; }

    /* Bottom navigation */
    .mobile-bottom-nav {
        display:flex; position:fixed; left:0; right:0; bottom:0; z-index:60;
        background:#fff; border-top:1px solid var(--line);
        padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px));
        box-shadow:0 -6px 20px rgba(27,37,32,.08);
    }
    .mbn-item { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:6px 2px; color:var(--muted); font-size:10px; font-weight:600; text-decoration:none; }
    .mbn-item i { font-size:18px; line-height:1; }
    .mbn-item span:last-child { line-height:1; }
    .mbn-item.active, .mbn-item.active i { color:var(--brand); }
    .mbn-icon-wrap { position:relative; display:inline-flex; }
    .mbn-badge { position:absolute; top:-6px; right:-9px; min-width:15px; height:15px; padding:0 4px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:var(--accent); color:#fff; font-size:8px; font-weight:800; line-height:1; box-shadow:0 0 0 2px #fff; }
    body { padding-bottom:64px; }
}
/* Di ponsel sempit inset ikut menyusut seperti `.page-wrap` (12px), sedangkan
   di 641–760px kartu pintasan tetap memakai inset 32px bawaan. */
@media (max-width:640px) {
    .quick-nav { width:calc(100% - 24px); }
}
