/* =========================================================
   LAPTOP SOKO — Design tokens (Windows 11 Fluent-inspired)
   Palette:  Page #F3F3F3   Surface #FFFFFF   Surface-2 #F7F7F7
             Accent (Win11 blue) #0067C0 / hover #005A9E
             Teal accent #00B7C3   Text #1B1B1B   Muted #5F5F5F
             Border #E1E1E1   Success #107C10   Danger #C42B1C
   Type:     Segoe UI Variable (native on Windows) with Inter fallback
             Cascadia Mono / Consolas for prices, SKUs, serials
   Shape:    8px corner radius, subtle Fluent elevation shadows,
             Mica-style translucent surfaces on the nav/sidebar.
   ========================================================= */

:root {
    --ink: #F3F3F3;
    --surface: #FFFFFF;
    --surface-2: #F7F7F7;
    --surface-3: #EFEFEF;
    --amber: #0067C0;        /* primary accent (Win11 blue) */
    --amber-dark: #005A9E;
    --amber-tint: #E8F1FA;
    --cyan: #00B7C3;         /* secondary accent */
    --text: #1B1B1B;
    --muted: #5F6368;
    --border: #E1E1E1;
    --success: #107C10;
    --success-tint: #E7F5E7;
    --danger: #C42B1C;
    --danger-tint: #FDECEA;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-1: 0 1.6px 3.6px rgba(0,0,0,.09), 0 0.3px 0.9px rgba(0,0,0,.06);
    --shadow-2: 0 6.4px 14.4px rgba(0,0,0,.11), 0 1.2px 3.6px rgba(0,0,0,.07);
    --font-display: 'Segoe UI Variable Display', 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --font-body: 'Segoe UI Variable Text', 'Segoe UI', Inter, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --font-mono: 'Cascadia Mono', 'Consolas', 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
    background-color: var(--ink);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, .display-font {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    font-weight: 600;
}

a { text-decoration: none; }
::selection { background: var(--amber); color: #fff; }

/* ---------- Utility ---------- */
.text-muted-soft { color: var(--muted) !important; }
.text-amber { color: var(--amber) !important; }
.text-cyan { color: #00838C !important; }
.bg-surface { background-color: var(--surface) !important; }
.mono { font-family: var(--font-mono); }
.section-pad { padding: 56px 0; }
@media (max-width: 767px) { .section-pad { padding: 32px 0; } }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #00838C;
}

/* ---------- Buttons (Fluent) ---------- */
.btn-amber {
    background: var(--amber);
    border: 1px solid var(--amber);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius);
    padding: 10px 22px;
    transition: background .12s ease, transform .05s ease;
    box-shadow: var(--shadow-1);
}
.btn-amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: #fff; }
.btn-amber:active { transform: scale(.98); }

.btn-outline-soko {
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--surface);
    border-radius: var(--radius);
    transition: .12s ease;
}
.btn-outline-soko:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-tint); }

.btn-cyan-ghost { color: #00838C; border: 1px solid rgba(0,183,195,.35); border-radius: var(--radius); background: rgba(0,183,195,.08); }
.btn-cyan-ghost:hover { background: rgba(0,183,195,.16); color: #00838C; }

/* ---------- Navbar (Mica) ---------- */
.navbar-soko {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1030;
}
.navbar-soko .navbar-brand { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--text); }
.navbar-soko .navbar-brand .soko-dot { color: var(--amber); }
.navbar-soko .nav-link { color: var(--muted) !important; font-weight: 500; border-radius: 6px; padding: 8px 12px !important; }
.navbar-soko .nav-link:hover { color: var(--text) !important; background: var(--surface-3); }
.navbar-soko .nav-link.active { color: var(--amber) !important; background: var(--amber-tint); }

.cart-fab-badge {
    position: absolute; top: -4px; right: 2px;
    background: var(--amber); color: #fff;
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    border-radius: 50px; padding: 1px 6px; line-height: 1.5;
    box-shadow: 0 0 0 2px #fff;
}

/* ---------- Hero ---------- */
.hero-soko {
    background:
        radial-gradient(circle at 12% 15%, rgba(0,103,192,.08), transparent 42%),
        radial-gradient(circle at 88% 0%, rgba(0,183,195,.08), transparent 45%),
        var(--ink);
    border-bottom: 1px solid var(--border);
    padding: 64px 0 48px;
}
.hero-soko h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 700; color: var(--text); }
.hero-market-tag {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(0,103,192,.25);
    color: var(--amber);
    font-family: var(--font-mono);
    font-size: 12.5px;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--amber-tint);
}

/* ---------- Category chips ---------- */
.cat-chip {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--text);
    transition: .12s ease;
    height: 100%;
    box-shadow: var(--shadow-1);
}
.cat-chip i { font-size: 20px; color: #00838C; }
.cat-chip:hover { border-color: var(--amber); transform: translateY(-2px); color: var(--text); box-shadow: var(--shadow-2); }
.cat-chip.active { border-color: var(--amber); background: var(--amber-tint); }

/* ---------- Product card ---------- */
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .12s ease, box-shadow .12s ease;
    box-shadow: var(--shadow-1);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

.product-thumb-wrap {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--surface-2);
    overflow: hidden;
}
.product-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }

.badge-stock-low {
    position: absolute; top: 10px; left: 10px;
    background: #fff; color: var(--danger);
    border: 1px solid rgba(196,43,28,.3);
    font-family: var(--font-mono); font-size: 11px;
    padding: 3px 9px; border-radius: 50px;
    box-shadow: var(--shadow-1);
}
.badge-condition {
    position: absolute; top: 10px; right: 10px;
    color: #fff;
    font-family: var(--font-body); font-weight: 600; font-size: 11px;
    padding: 4px 10px; border-radius: 50px;
    box-shadow: var(--shadow-1);
}

.product-card .card-body-soko { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.product-name { font-weight: 600; font-size: 15.5px; margin: 3px 0 10px; color: var(--text); line-height: 1.35; }

.price-tag {
    font-family: var(--font-mono);
    display: flex; align-items: baseline; gap: 8px;
    border-top: 1px dashed var(--border);
    padding-top: 10px; margin-top: auto;
}
.price-tag .now { color: var(--amber); font-weight: 700; font-size: 17px; }
.price-tag .was { color: var(--muted); text-decoration: line-through; font-size: 12.5px; }

/* ---------- Product detail ---------- */
.spec-table td { color: var(--muted); font-family: var(--font-mono); font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.spec-table td:first-child { color: var(--text); width: 40%; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 10px; }
.spec-pill { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.spec-pill .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.spec-pill .v { font-weight: 600; font-size: 13.5px; margin-top: 2px; }

.qty-stepper { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-stepper button { background: var(--surface-2); border: none; color: var(--text); width: 38px; height: 38px; }
.qty-stepper input { width: 52px; border: none; background: var(--surface); color: var(--text); text-align: center; font-family: var(--font-mono); }

/* ---------- Cart / checkout ---------- */
.cart-line { border-bottom: 1px solid var(--border); padding: 16px 0; }
.cart-line img { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }

.order-summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-1);
}
.order-summary-card .row-line { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 14px; padding: 6px 0; color: var(--muted); }
.order-summary-card .row-line.total { color: var(--text); font-size: 18px; font-weight: 700; border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 14px; }

.form-control, .form-select {
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: var(--radius); padding: 10px 14px;
}
.form-control:focus, .form-select:focus {
    background: var(--surface); color: var(--text);
    border-color: var(--amber); box-shadow: 0 0 0 .2rem rgba(0,103,192,.15);
}
.form-control::placeholder { color: #9A9A9A; }
label.form-label { color: var(--muted); font-size: 13.5px; margin-bottom: 6px; font-weight: 500; }

.pay-option { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; cursor: pointer; background: var(--surface); }
.pay-option.active { border-color: var(--amber); background: var(--amber-tint); }

/* ---------- Footer ---------- */
.footer-soko { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 56px; }
.footer-soko h6 { font-family: var(--font-display); color: var(--text); }
.footer-soko a { color: var(--muted); }
.footer-soko a:hover { color: var(--amber); }

/* ---------- Toast / mini cart ---------- */
.offcanvas, .offcanvas-body { background: var(--surface); color: var(--text); }
.offcanvas-header { border-bottom: 1px solid var(--border); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 72px 20px; color: var(--muted); }
.empty-state i { font-size: 42px; color: #B9B9B9; margin-bottom: 14px; display: block; }

/* ---------- Order tracking ---------- */
.status-track { display: flex; justify-content: space-between; position: relative; margin: 30px 0; }
.status-track::before { content: ''; position: absolute; top: 14px; left: 0; right: 0; height: 2px; background: var(--border); }
.status-step { position: relative; text-align: center; flex: 1; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.status-step .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.status-step.done .dot { background: var(--amber); border-color: var(--amber); color: #fff; }
.status-step.done { color: var(--text); }

/* Responsive tweaks */
@media (max-width: 575px) {
    .navbar-soko .navbar-brand { font-size: 18px; }
    .hero-soko { padding: 40px 0 32px; }
}
