:root {
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --bg: #f7f6f1;
    --surface: #ffffff;
    --line: #e7e4dc;
    --line-soft: #f1f0ea;
    --brand: #047857;
    --brand-strong: #065f46;
    --brand-soft: #e7f3ee;
    --accent: #f59e0b;
    --danger: #b91c1c;
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 22px 45px -30px rgba(15, 23, 42, .45);
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
del { color: var(--muted); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0 8px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.eyebrow {
    display: inline-block;
    font-size: 11.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 6px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
    background: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -14px rgba(4, 120, 87, .9); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { background: var(--line-soft); }
.btn-danger { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; }
.btn-wa { background: #128c7e; color: #fff; box-shadow: 0 10px 22px -14px rgba(18, 140, 126, .9); }
.btn-wa:hover { background: #0f766e; }
.btn-wa .icon { width: 19px; height: 19px; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.link-arrow { font-size: 13.5px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; font-size: 15px; }
.link-arrow:hover { color: var(--brand-strong); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 246, 241, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-main { display: flex; align-items: center; gap: 22px; padding: 14px 24px; }
.brand { font-size: 32px; font-weight: 800; letter-spacing: -2px; line-height: 1; color: var(--ink); }
.brand-dot { color: var(--accent); }
.brand-light { color: #fff; }

.header-search {
    flex: 1;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1efe8;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 4px 5px 4px 16px;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.header-search:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(4, 120, 87, .1); }
.header-search .icon { color: var(--muted); }
.header-search input { flex: 1; border: 0; background: transparent; height: 38px; font-size: 14px; font-family: inherit; outline: none; min-width: 0; }
.header-search button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; height: 36px; padding: 0 18px; font-size: 13px; font-weight: 700; cursor: pointer; }
.header-search button:hover { background: #1e293b; }

.header-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.header-nav > a { position: relative; padding: 6px 0; }
.header-nav > a:hover { color: var(--ink); }
.header-nav > a.is-active { color: var(--ink); }
.header-nav > a.is-active:not(.bookmark-link)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}
.bookmark-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
}
.bookmark-link:hover { background: #1e293b; color: #fff; }
.bookmark-badge {
    background: var(--accent);
    color: #111827;
    font-size: 11px;
    font-weight: 800;
    min-width: 19px;
    height: 19px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.nav-user { font-size: 12.5px; color: var(--muted); font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user:hover { color: var(--ink); }
.nav-logout { display: inline-flex; }
.nav-logout button { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.nav-logout button:hover { color: var(--danger); }
.header-nav > a.nav-auth-primary { background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 999px; }
.header-nav > a.nav-auth-primary:hover { background: var(--brand-strong); color: #fff; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    margin-left: auto;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

.category-strip { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .55); }
.category-strip-inner { display: flex; gap: 8px; overflow-x: auto; padding: 10px 24px; scrollbar-width: none; }
.category-strip-inner::-webkit-scrollbar { display: none; }
.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Flash */
.flash-stack { display: grid; gap: 10px; margin-top: 18px; }
.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 14px;
    padding: 13px 18px;
    font-size: 14px;
    border: 1px solid transparent;
}
.flash-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.flash-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.flash button { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.flash button:hover { opacity: 1; }

/* Hero */
.hero {
    margin-top: 28px;
    border-radius: 28px;
    padding: 56px 48px;
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 420px at 85% 15%, rgba(16, 185, 129, .3), transparent 60%),
        radial-gradient(700px 500px at 10% 90%, rgba(245, 158, 11, .16), transparent 65%),
        linear-gradient(120deg, #062e27, #0b5d4e 52%, #0a3a46);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .5;
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: #86efac;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 7px 14px;
    border-radius: 999px;
}
.hero h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -2.5px; font-weight: 800; margin: 18px 0 16px; }
.hero-lead { max-width: 480px; color: rgba(255, 255, 255, .78); font-size: 15.5px; line-height: 1.7; }
.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    padding: 6px 6px 6px 18px;
    margin-top: 26px;
    max-width: 500px;
    box-shadow: 0 24px 50px -25px rgba(0, 0, 0, .6);
}
.hero-search .icon { color: var(--muted); }
.hero-search input { flex: 1; border: 0; outline: none; height: 42px; font-size: 14.5px; font-family: inherit; min-width: 0; }
.hero-search button { border: 0; background: var(--accent); color: #111827; border-radius: 999px; height: 42px; padding: 0 24px; font-size: 14px; font-weight: 800; cursor: pointer; }
.hero-search button:hover { background: #fbbf24; }
.hero-stats { display: flex; gap: 38px; margin-top: 30px; }
.hero-stats strong { font-size: 28px; font-weight: 800; letter-spacing: -1px; display: block; line-height: 1.1; }
.hero-stats span { font-size: 12.5px; color: rgba(255, 255, 255, .68); }
.hero-visual { position: relative; height: 400px; }
.hero-tile { margin: 0; position: absolute; border-radius: 20px; overflow: hidden; background: #0b1220; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .12); }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile-back { width: 58%; height: 68%; right: 6%; top: 0; transform: rotate(5deg); opacity: .9; }
.hero-tile-front { width: 62%; height: 74%; left: 0; bottom: 0; transform: rotate(-4deg); z-index: 2; }
.hero-tag {
    position: absolute;
    right: 0;
    bottom: 18px;
    z-index: 3;
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    padding: 10px 16px;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
    display: grid;
    gap: 1px;
}
.hero-tag-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; }
.hero-tag strong { font-size: 17px; letter-spacing: -.4px; }
.hero-badge {
    position: absolute;
    top: 8%;
    left: 2%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 46, 39, .75);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    color: #d1fae5;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
}
.hero-badge svg { width: 14px; height: 14px; fill: none; stroke: #34d399; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Category cards */
.category-block { margin-top: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(23px, 2.6vw, 30px); letter-spacing: -.9px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.category-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d7d3c8; }
.category-monogram {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 800;
    font-size: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
}
.category-name { font-weight: 700; font-size: 15px; }
.category-count { font-size: 12px; font-weight: 700; color: var(--brand); }
.category-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Catalog */
.catalog { padding: 44px 0 16px; }
.catalog-layout { display: grid; grid-template-columns: 258px 1fr; gap: 30px; align-items: start; }
.filter-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 148px;
}
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filter-head h2 { font-size: 16px; letter-spacing: -.3px; }
.filter-reset { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.filter-reset:hover { color: var(--danger); }
.filter-group { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.filter-group h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 10px; }
.filter-list { display: grid; gap: 2px; }
.filter-list a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; color: var(--ink-soft); }
.filter-list a:hover { background: var(--line-soft); }
.filter-list a.is-active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
.filter-count { font-size: 11.5px; color: var(--muted); }
.filter-list a.is-active .filter-count { color: var(--brand); }
.price-form { display: grid; gap: 10px; }
.price-form label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); display: grid; gap: 6px; }
.price-form input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; font-family: inherit; background: #fbfaf7; }
.price-form input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(4, 120, 87, .1); }
.price-form .btn { margin-top: 4px; }
.filter-note { border-top: 1px solid var(--line-soft); padding-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.filter-note strong { color: var(--ink); font-size: 13px; display: block; margin-bottom: 4px; }
.filter-note a { color: var(--brand); font-weight: 700; display: inline-block; margin-top: 6px; }

.catalog-main { min-width: 0; }
.catalog-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.catalog-toolbar h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.8px; }
.result-count { font-size: 13px; color: var(--muted); margin-top: 4px; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.btn-filter { display: none; }
.sort-form select {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--surface) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.6' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
    border-radius: 999px;
    padding: 10px 36px 10px 15px;
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
}
.sort-form select:focus { outline: none; border-color: var(--brand); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 18px; }
.product-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7d3c8; }
.product-media { position: relative; display: block; aspect-ratio: 4 / 5; background: #efede6; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.035); }
.product-source {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, .85);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    padding: 4px 8px;
    border-radius: 999px;
}
.product-condition {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
}
.product-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-price span { font-size: 17px; font-weight: 800; letter-spacing: -.4px; }
.product-price del { font-size: 12px; }
.product-title { font-size: 13.5px; line-height: 1.42; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.product-title a:hover { color: var(--brand); }
.product-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); padding-top: 4px; }
.meta-location { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.meta-location svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.meta-location { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.meta-time { flex: none; }
.card-bookmark { position: absolute; top: 10px; right: 10px; z-index: 2; margin: 0; }
.bookmark-toggle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(15, 23, 42, .62);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.bookmark-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.bookmark-toggle:hover { background: rgba(15, 23, 42, .9); transform: scale(1.05); }
.bookmark-toggle.is-saved { background: var(--accent); color: #111827; border-color: transparent; }
.bookmark-toggle.is-saved svg { fill: currentColor; }
.product-wa {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11.5px;
    font-weight: 700;
}
.product-wa svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; flex: none; }
.product-wa:hover { background: #d1fae5; }

.empty-state { background: var(--surface); border: 1px dashed #d7d3c8; border-radius: 20px; padding: 56px 24px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.empty-mark { font-size: 26px; font-weight: 800; width: 58px; height: 58px; border-radius: 18px; background: var(--line-soft); color: var(--muted); display: grid; place-items: center; margin-bottom: 6px; }
.empty-state h3 { font-size: 19px; letter-spacing: -.4px; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 420px; }
.empty-state .btn { margin-top: 12px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.page-btn, .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
}
.page-num { padding: 0 10px; }
.page-btn:hover, .page-num:hover { border-color: var(--ink); color: var(--ink); }
.page-num.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-btn.is-disabled { opacity: .4; }
.page-gap { color: var(--muted); padding: 0 2px; }

/* Breadcrumb & detail */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 22px 24px 0; font-size: 12.5px; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb-current { color: var(--ink-soft); }
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; padding: 26px 24px 8px; align-items: start; }
.gallery-main { position: relative; border-radius: 22px; overflow: hidden; background: #efede6; aspect-ratio: 4 / 3; }
.product-gallery { min-width: 0; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-source { position: absolute; left: 14px; bottom: 14px; background: rgba(15, 23, 42, .82); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; letter-spacing: .4px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #efede6; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover, .gallery-thumb.is-active { border-color: var(--brand); }
.product-info { min-width: 0; }
.info-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.badge { font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.badge-category { background: var(--brand-soft); color: var(--brand-strong); }
.badge-condition { background: #fef3c7; color: #92400e; }
.badge-source { background: #e2e8f0; color: #334155; }
.product-info h1 { font-size: clamp(24px, 2.8vw, 33px); line-height: 1.16; letter-spacing: -1px; margin-bottom: 14px; }
.detail-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.detail-price strong { font-size: 33px; font-weight: 800; letter-spacing: -1.2px; }
.detail-price del { font-size: 15px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.detail-cta { display: flex; gap: 10px; margin: 24px 0 18px; flex-wrap: wrap; }
.detail-cta form { flex: 1; min-width: 200px; display: flex; }
.detail-cta .btn { flex: 1; }
.notice-box { background: #fff8e7; border: 1px solid #f3e0b5; border-radius: 14px; padding: 15px 17px; font-size: 13px; color: #78530f; line-height: 1.6; }
.notice-box strong { display: block; color: #5c3d05; margin-bottom: 2px; }
.detail-specs { margin-top: 22px; }
.detail-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.detail-specs dt { color: var(--muted); }
.detail-specs dd { margin: 0; font-weight: 600; text-align: right; }
.link-inline { color: var(--brand); font-weight: 700; text-decoration: underline; }
.wa-reveal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 12.5px;
    color: #065f46;
}
.wa-reveal-label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #047857; margin-bottom: 2px; }
.wa-reveal strong { display: block; font-size: 17px; letter-spacing: -.3px; color: #064e3b; }
.wa-reveal-note { color: #047857; line-height: 1.5; }
.wa-reveal-note a { color: #065f46; font-weight: 800; text-decoration: underline; }
.wa-missing { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.wa-reveal + .notice-box { margin-top: 14px; }
.description-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.description-card p { line-height: 1.8; color: var(--ink-soft); font-size: 14.5px; }
.description-card .link-arrow { margin-top: 14px; }
.product-description { margin-top: 22px; padding: 20px 22px; }
.product-description h2 { font-size: 19px; letter-spacing: -.4px; margin-bottom: 10px; }
.product-description p { font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.related-section { padding-bottom: 40px; }

/* Cart & checkout */
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -1px; margin-bottom: 6px; }
.page-head p { font-size: 14px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 370px; gap: 24px; align-items: start; }
.cart-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.cart-item:last-of-type { border-bottom: 0; }
.cart-media { width: 86px; height: 86px; border-radius: 12px; overflow: hidden; background: #efede6; flex: none; }
.cart-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; }
.cart-info h3 { font-size: 15px; line-height: 1.4; font-weight: 600; }
.cart-info h3 a:hover { color: var(--brand); }
.cart-info p { font-size: 12.5px; margin-top: 3px; }
.cart-price { display: inline-block; font-weight: 800; font-size: 15.5px; margin-top: 6px; }
.item-contact { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 8px; }
.item-contact .product-wa { margin-top: 0; }
.item-wa-number { font-size: 12px; color: var(--muted); font-weight: 600; }
.item-no-number { font-size: 12px; }
.penanda-steps { margin-top: 18px; padding: 14px 0 0 18px; border-top: 1px solid var(--line); display: grid; gap: 7px; font-size: 12px; line-height: 1.5; color: var(--muted); list-style: disc; }
.cart-remove { flex: none; }
.cart-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; flex-wrap: wrap; }
.cart-summary, .checkout-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 148px; }
.cart-summary h2, .checkout-summary h2 { font-size: 17px; letter-spacing: -.3px; margin-bottom: 8px; }
.summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.summary-row:last-of-type { border-bottom: 0; }
.summary-total { align-items: baseline; font-weight: 700; font-size: 15px; }
.summary-total strong { font-size: 21px; letter-spacing: -.6px; }
.cart-summary .btn, .checkout-summary .btn { margin-top: 14px; }
.summary-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 12px; }
.summary-items { display: grid; gap: 12px; margin: 10px 0 14px; }
.summary-items li { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.summary-items img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; background: #efede6; }
.summary-items span { display: block; line-height: 1.4; }
.summary-items small { color: var(--muted); font-size: 11.5px; }
.summary-items strong { font-size: 13px; white-space: nowrap; }

.checkout-form { display: grid; gap: 16px; }
.checkout-form h2 { font-size: 18px; letter-spacing: -.4px; margin-bottom: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14.5px;
    font-family: inherit;
    background: #fdfcf9;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(4, 120, 87, .1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.optional { color: var(--muted); font-weight: 400; }
.field-error { font-size: 12px; color: var(--danger); }
.has-error input, .has-error textarea { border-color: #fca5a5; background: #fff7f7; }
.payment-note { background: var(--line-soft); border-radius: 12px; padding: 14px 16px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
.payment-note strong { display: block; margin-bottom: 2px; }
.checkout-summary { display: flex; flex-direction: column; }
.checkout-summary .btn-ghost { margin-top: 6px; }

/* Tracking */
.tracking { max-width: 1080px; }
.tracking-form { display: flex; gap: 10px; max-width: 520px; margin-bottom: 24px; }
.tracking-form input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; font-size: 14.5px; font-family: inherit; background: var(--surface); }
.tracking-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(4, 120, 87, .1); }
.order-success { display: flex; align-items: center; gap: 16px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 16px; padding: 20px 22px; margin-bottom: 20px; }
.order-success-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: none; }
.order-success-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.order-success h2 { font-size: 18px; color: #065f46; margin-bottom: 3px; }
.order-success p { font-size: 13.5px; color: #047857; }
.tracking-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.order-head h2 { font-size: 21px; letter-spacing: -.5px; margin-bottom: 3px; }
.order-head p { font-size: 12.5px; }
.timeline { display: grid; margin: 22px 0 8px; }
.timeline li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; position: relative; padding-bottom: 20px; }
.timeline li:last-child { padding-bottom: 4px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 23px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #d7d3c8; background: #fff; margin-top: 3px; position: relative; z-index: 1; }
.timeline li.is-done .timeline-dot { background: var(--brand); border-color: var(--brand); }
.timeline li.is-current .timeline-dot { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(4, 120, 87, .15); }
.timeline strong { font-size: 13.5px; display: block; color: var(--muted); }
.timeline li.is-done strong, .timeline li.is-current strong { color: var(--ink); }
.timeline small { font-size: 12px; color: var(--muted); }
.order-items { display: grid; margin: 16px 0 4px; }
.order-items li { display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.order-items img { width: 50px; height: 50px; border-radius: 9px; object-fit: cover; background: #efede6; }
.order-items small { color: var(--muted); font-size: 11.5px; display: block; }
.order-items strong { white-space: nowrap; font-size: 13.5px; }
.tracking-side { display: grid; gap: 16px; }
.tracking-side h3 { font-size: 15.5px; margin-bottom: 10px; }
.tracking-side p { font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); }
.ship-name { font-weight: 700; color: var(--ink) !important; }
.ship-notes { background: var(--line-soft); border-radius: 10px; padding: 10px 12px; margin-top: 12px; font-size: 13px; }
.ship-notes strong { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 3px; }
.help-card .btn { margin-top: 12px; }

/* Status pills */
.status { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.status-pending { background: #fff7ed; color: #9a3412; }
.status-confirmed { background: #eff6ff; color: #1d4ed8; }
.status-shipped { background: #eef2ff; color: #4338ca; }
.status-completed { background: #ecfdf5; color: #047857; }
.status-cancelled { background: #fef2f2; color: #b91c1c; }
.status-active { background: #ecfdf5; color: #047857; }
.status-hidden { background: #f1f5f9; color: #64748b; }
.status-warning { background: #fffbeb; color: #b45309; }

/* Footer */
.site-footer { margin-top: 64px; background: #0b1220; color: #cbd5e1; padding: 54px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: #94a3b8; font-size: 14px; margin-top: 12px; max-width: 360px; line-height: 1.65; }
.footer-brand .footer-note { font-size: 12px; color: #64748b; margin-top: 10px; }
.footer-col h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.4px; color: #e2e8f0; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13.5px; color: #94a3b8; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 38px; padding-top: 18px; font-size: 12px; color: #64748b; }

/* Auth pengguna */
.auth-page { padding: 42px 24px 10px; max-width: 1080px; }
.auth-layout { display: grid; grid-template-columns: 1fr 430px; gap: 34px; align-items: start; }
.auth-info {
    position: sticky;
    top: 148px;
    padding: 36px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(640px 360px at 85% 12%, rgba(16, 185, 129, .3), transparent 62%),
        linear-gradient(140deg, #062e27, #0b1220 72%);
}
.auth-info .eyebrow { color: #34d399; }
.auth-info h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -1.2px; margin: 10px 0 14px; }
.auth-info p { color: #cbd5e1; font-size: 14.5px; line-height: 1.72; }
.auth-points { display: grid; gap: 9px; margin-top: 22px; font-size: 13.5px; color: #cbd5e1; }
.auth-points li { position: relative; padding-left: 20px; }
.auth-points li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow-md); }
.auth-card h2 { font-size: 24px; letter-spacing: -.7px; margin-bottom: 3px; }
.auth-card > p { font-size: 13.5px; margin-bottom: 18px; }
.auth-form { display: grid; gap: 14px; }
.auth-switch { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--brand); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
.otp-input { font-size: 22px !important; font-weight: 800 !important; letter-spacing: 8px; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.auth-inline-form { margin-top: 12px; display: grid; gap: 6px; }
.auth-cancel { margin-top: 14px; text-align: center; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; text-decoration: underline; }
.link-button:hover { color: var(--danger); }

/* Login */
.login-body { background: #0b1220; }
.login-shell { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-brand {
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    color: #fff;
    background:
        radial-gradient(700px 400px at 80% 20%, rgba(16, 185, 129, .28), transparent 60%),
        linear-gradient(140deg, #062e27, #0b1220 70%);
}
.login-brand h1 { font-size: clamp(34px, 4vw, 46px); line-height: 1.08; letter-spacing: -1.8px; margin-top: 14px; }
.login-brand p { color: #cbd5e1; max-width: 460px; line-height: 1.7; }
.login-brand ul { display: grid; gap: 9px; color: #cbd5e1; font-size: 14px; }
.login-brand li { position: relative; padding-left: 20px; }
.login-brand li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.login-back { color: #94a3b8; font-size: 13.5px; margin-top: 18px; }
.login-back:hover { color: #fff; }
.login-panel { background: var(--bg); display: grid; place-items: center; padding: 32px; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px; width: 100%; max-width: 420px; box-shadow: var(--shadow-md); }
.login-card h2 { font-size: 22px; letter-spacing: -.6px; margin-bottom: 4px; }
.login-card > p { font-size: 13.5px; margin-bottom: 20px; }
.login-form { display: grid; gap: 15px; }
.login-hint { font-size: 12.5px; color: #b45309; margin-top: 12px; }

/* Admin */
.admin-body { background: #f4f3ee; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: #0b1220; color: #cbd5e1; padding: 26px 18px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: grid; gap: 2px; padding: 0 6px; }
.admin-brand .brand { font-size: 27px; }
.admin-brand span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.6px; color: #64748b; }
.admin-nav { display: grid; gap: 3px; }
.admin-nav a { padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #94a3b8; }
.admin-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-nav a.is-active { background: var(--brand); color: #fff; }
.admin-sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 14px; }
.admin-sidebar-foot a, .admin-sidebar-foot button { background: none; border: 0; text-align: left; padding: 7px 10px; color: #94a3b8; font-size: 13px; cursor: pointer; border-radius: 8px; }
.admin-sidebar-foot a:hover, .admin-sidebar-foot button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.admin-content { padding: 26px 30px 46px; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.admin-topbar h1 { font-size: 26px; letter-spacing: -.9px; }
.admin-topbar .eyebrow { margin-bottom: 2px; }
.admin-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.admin-user strong { display: block; font-size: 13.5px; }
.admin-user small { color: var(--muted); font-size: 12px; }
.admin-main { display: grid; gap: 20px; }
.admin-content .flash-stack { margin: 0 0 18px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.stat-card strong { display: block; font-size: 29px; letter-spacing: -1px; margin: 7px 0 3px; }
.stat-card .stat-time { font-size: 20px; }
.stat-sub { font-size: 12px; color: var(--muted); }
.text-ok { color: #047857; font-weight: 700; }
.text-warn { color: #b45309; font-weight: 700; }
.text-danger { color: #b91c1c; font-weight: 700; }

.admin-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; align-items: start; }
.admin-side-stack { display: grid; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.panel-head h2 { font-size: 16.5px; letter-spacing: -.3px; }
.panel-head p { font-size: 12.5px; margin-top: 2px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfaf7; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; font-weight: 600; }
.mono-link { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; font-weight: 700; color: var(--brand); }
.mono-link:hover { text-decoration: underline; }
.block { display: block; }
.ta-right { text-align: right; }
.empty-inline { padding: 18px 0; font-size: 13.5px; }

.bar-list { display: grid; gap: 11px; }
.bar-list li { display: grid; grid-template-columns: 112px 1fr 28px; align-items: center; gap: 10px; font-size: 12.5px; }
.bar-label { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #047857, #34d399); }
.bar-value { text-align: right; font-weight: 700; color: var(--ink-soft); }

.run-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.run-list li:last-child { border-bottom: 0; }
.run-list strong { font-size: 13px; display: block; }
.run-list small { font-size: 11.5px; color: var(--muted); }
.run-counts { display: flex; gap: 8px; font-size: 11.5px; white-space: nowrap; }

.admin-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-filter input[type="search"] { flex: 1; min-width: 220px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; font-family: inherit; background: #fdfcf9; }
.admin-filter select { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-family: inherit; background: var(--surface); }
.admin-filter input:focus, .admin-filter select:focus { outline: none; border-color: var(--brand); }
.status-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.product-cell { display: flex; align-items: center; gap: 10px; min-width: 250px; }
.product-cell img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #efede6; flex: none; }
.product-cell-title { display: block; font-weight: 600; font-size: 13px; max-width: 340px; }
.product-cell-title:hover { color: var(--brand); }
.product-cell small { font-size: 11.5px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { display: inline-flex; }
.status-form select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12px; font-family: inherit; background: var(--surface); }
.scrape-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.stack-form { display: grid; gap: 13px; }
.field-hint { font-size: 11.5px; color: var(--muted); }
.form-note { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.inline-code { display: inline-block; margin: 4px 0; padding: 3px 7px; border-radius: 6px; background: #f3f4f6; color: var(--ink-soft); font-size: 11px; word-break: break-all; }
.schedule-panel { margin-bottom: 18px; }
.schedule-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.schedule-meta > div { display: grid; gap: 3px; min-width: 0; background: #fbfaf7; border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.schedule-meta span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.schedule-meta strong { font-size: 13.5px; }
.schedule-meta small { font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.schedule-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.schedule-actions form { margin: 0; }
.log-box { background: #0b1220; color: #d1fae5; border-radius: 12px; padding: 16px; font-size: 12px; line-height: 1.7; overflow: auto; max-height: 240px; margin: 0; white-space: pre-wrap; }
.cell-message { max-width: 280px; font-size: 12px; }
.admin-product-preview { min-width: 0; margin: 4px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.admin-product-preview img { width: 72px; height: 72px; border-radius: 12px; }
.admin-product-preview .product-cell-title { font-size: 18px; font-weight: 800; }
.admin-wa-form { max-width: 560px; margin-top: 18px; }
.panel .wa-reveal { margin: 16px 0; }

.visit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.visit-toolbar .status-chips { margin-bottom: 0; }
.visit-range { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.visit-range select { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-family: inherit; background: var(--surface); }
.visit-range select:focus { outline: none; border-color: var(--brand); }
.visit-legend { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.visit-legend span { display: inline-flex; align-items: center; gap: 6px; }
.visit-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.visit-dot-human { background: var(--brand); }
.visit-dot-bot { background: #cbd5e1; }
.visit-chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 8px; height: 184px; padding-top: 4px; }
.visit-day { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; height: 100%; }
.visit-day-track { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; flex: 1; min-height: 0; padding-bottom: 6px; border-radius: 6px 6px 0 0; }
.visit-day:hover .visit-day-track { background: #fbfaf7; }
.visit-seg { display: block; border-radius: 3px; min-height: 3px; }
.visit-seg-human { background: linear-gradient(180deg, #34d399, #047857); }
.visit-seg-bot { background: #cbd5e1; }
.visit-seg-empty { height: 3px; background: var(--line-soft); }
.visit-day-label { font-size: 10.5px; color: var(--muted); text-align: center; white-space: nowrap; }
.visit-source-detail { display: block; font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-fill-bot { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }

/* Responsive */
@media (max-width: 1080px) {
    .catalog-layout { grid-template-columns: 230px 1fr; gap: 22px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
    .product-detail { gap: 28px; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr 330px; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-side-stack { grid-template-columns: 1fr 1fr; display: grid; }
    .login-shell { grid-template-columns: 1fr 1fr; }
    .login-brand { padding: 44px; }
    .schedule-meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .header-nav {
        display: none;
        position: absolute;
        top: calc(100% - 1px);
        left: 16px;
        right: 16px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow-md);
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
    }
    .header-nav.is-open { display: flex; }
    .header-nav > a { padding: 11px 12px; border-radius: 10px; }
    .header-nav > a.is-active:not(.bookmark-link)::after { display: none; }
    .header-nav > a:hover { background: var(--line-soft); }
    .bookmark-link { justify-content: center; margin-top: 4px; }
    .nav-user { padding: 10px 12px; }
    .nav-logout button { padding: 10px 12px; }
    .header-nav > a.nav-auth-primary { text-align: center; }
    .header-main { flex-wrap: wrap; gap: 12px; }
    .header-search { order: 3; max-width: none; flex-basis: 100%; }

    .hero { padding: 36px 28px; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero-lead { max-width: 560px; }

    .catalog-layout { grid-template-columns: 1fr; }
    .filter-panel { display: none; position: static; }
    .filter-panel.is-open { display: block; }
    .btn-filter { display: inline-flex; }
    .product-detail { grid-template-columns: 1fr; }
    .gallery-main { aspect-ratio: 4 / 3; }
    .cart-layout, .checkout-layout, .tracking-layout { grid-template-columns: 1fr; }
    .cart-summary, .checkout-summary { position: static; }

    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
    .admin-brand { padding: 0; }
    .admin-brand span { display: none; }
    .admin-nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; }
    .admin-nav a { white-space: nowrap; padding: 8px 12px; }
    .admin-sidebar-foot { margin: 0; flex-direction: row; border: 0; padding: 0; }
    .admin-content { padding: 20px 16px 40px; }
    .admin-side-stack { grid-template-columns: 1fr; }
    .scrape-grid { grid-template-columns: 1fr; }

    .login-shell { grid-template-columns: 1fr; }
    .login-brand { padding: 36px 24px; }
    .login-brand h1 { font-size: 32px; }
    .login-brand ul { display: none; }
    .login-panel { padding: 24px 16px 40px; }

    .auth-layout { grid-template-columns: 1fr; gap: 20px; }
    .auth-info { position: static; padding: 28px; }
    .auth-info h1 { font-size: 27px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .schedule-meta { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .header-main { padding: 12px 16px; }
    .category-strip-inner { padding: 9px 16px; }
    .brand { font-size: 27px; }
    .auth-page { padding: 26px 16px 4px; }
    .auth-info { padding: 22px; }
    .auth-info h1 { font-size: 24px; }
    .auth-card { padding: 20px; }
    .product-wa { font-size: 10.5px; padding: 5px 8px; }
    .bookmark-toggle { width: 31px; height: 31px; }
    .wa-reveal strong { font-size: 15px; }
    .hero { margin-top: 18px; border-radius: 22px; padding: 30px 22px; }
    .hero h1 { font-size: 36px; letter-spacing: -1.6px; }
    .hero-stats { gap: 22px; }
    .hero-stats strong { font-size: 22px; }
    .hero-search { padding-left: 14px; }
    .hero-search button { padding: 0 16px; }
    .section { padding: 36px 0 6px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-card { padding: 15px; }
    .category-desc { display: none; }
    .catalog-toolbar { align-items: flex-start; }
    .toolbar-actions { width: 100%; justify-content: space-between; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-body { padding: 10px 12px 12px; }
    .product-price span { font-size: 15px; }
    .product-title { font-size: 12.5px; min-height: 36px; }
    .product-meta { font-size: 10.5px; flex-direction: column; align-items: flex-start; gap: 2px; }
    .product-detail { padding: 18px 16px 4px; gap: 22px; }
    .detail-cta { flex-direction: column; }
    .detail-cta form { min-width: 0; }
    .detail-price strong { font-size: 27px; }
    .detail-specs div { font-size: 12.5px; }
    .product-description { padding: 18px; }
    .cart-list { padding: 4px 14px; }
    .cart-media { width: 70px; height: 70px; }
    .field-row { grid-template-columns: 1fr; }
    .checkout-layout { gap: 16px; }
    .card { padding: 18px; }
    .page-head h1 { font-size: 26px; }
    .tracking-form { flex-direction: column; }
    .tracking-form .btn { width: 100%; }
    .order-head h2 { font-size: 18px; }
    .order-items li { grid-template-columns: 44px 1fr auto; font-size: 12px; }
    .order-items img { width: 44px; height: 44px; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .footer-bottom { flex-direction: column; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-card strong { font-size: 23px; }
    .stat-card .stat-time { font-size: 17px; }
    .admin-topbar h1 { font-size: 21px; }
    .admin-user div { display: none; }
    .admin-filter input[type="search"] { min-width: 100%; }
    .bar-list li { grid-template-columns: 92px 1fr 26px; }
    .panel { padding: 16px; }
    .visit-chart { gap: 4px; height: 148px; }
    .visit-day:nth-child(even) .visit-day-label { visibility: hidden; }
    .visit-range { flex-wrap: wrap; }
    .flash-stack { margin-top: 12px; }
}
