/* ==========================================================================
   Log Container SRL — Design system
   Direction « Graphite & Signal Yellow »
   Fonts: Space Grotesk (headings) + Inter (UI/body)
   ========================================================================== */

:root {
    /* Brand */
    --ink: #16181D;
    --ink-2: #23262D;
    --ink-3: #2E323A;
    --accent: #F5B700;
    --accent-hover: #DDA400;
    --accent-press: #C49200;
    --accent-tint: #FFF4CC;

    /* Neutrals */
    --bg: #F6F5F1;
    --surface: #FFFFFF;
    --surface-alt: #EFEDE7;
    --border: #E4E2DC;
    --border-strong: #CFCCC4;
    --text: #2A2D33;
    --muted: #6B6E76;
    --on-dark: #FFFFFF;
    --on-dark-muted: #A9ACB3;

    /* Semantic */
    --success: #2F9E6E;
    --success-bg: #E6F4EC;
    --warning: #A87306;
    --warning-bg: #FDF3DC;
    --danger: #D2453B;
    --danger-bg: #FBE7E5;
    --info: #3B6FD8;
    --info-bg: #E8EEFB;

    /* Type */
    --font-head: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Shape */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(16, 18, 24, .06);
    --shadow-md: 0 4px 16px rgba(16, 18, 24, .08);
    --shadow-lg: 0 12px 40px rgba(16, 18, 24, .12);
    --ring: 0 0 0 3px rgba(245, 183, 0, .45);

    --container: 1280px;
    --gutter: 24px;
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
::selection { background: var(--accent); color: var(--ink); }
[x-cloak], [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
}
h1, .h1 { font-size: clamp(32px, 4.2vw, 52px); }
h2, .h2 { font-size: clamp(26px, 3vw, 38px); }
h3, .h3 { font-size: 22px; letter-spacing: -0.01em; }
h4, .h4 { font-size: 18px; letter-spacing: -0.01em; }
h5, h6 { font-size: 16px; letter-spacing: 0; }
.display { font-family: var(--font-head); font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); line-height: 1.6; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-size: 13px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
    margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
.muted, .text-muted { color: var(--muted) !important; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.text-center { text-align: center; }
.text-right, .text-end { text-align: right; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.small, small { font-size: 13px; }
.stencil {
    font-family: var(--font-head); font-weight: 700; letter-spacing: .02em;
    background: var(--accent); color: var(--ink);
    padding: 3px 8px; border-radius: 4px; font-size: 13px; line-height: 1.2;
    display: inline-block;
}

/* ---------- Layout ---------- */
.container, .lc-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container-narrow { max-width: 880px; }
.section { padding-block: 88px; }
.section-sm { padding-block: 56px; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--ink); color: var(--on-dark-muted); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--on-dark); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 620px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.stack > * + * { margin-top: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.w-full { width: 100%; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Bootstrap-compatible grid (used across existing views) */
.row { display: flex; flex-wrap: wrap; margin-inline: -12px; row-gap: 0; }
.row > [class*="col"] { padding-inline: 12px; width: 100%; min-width: 0; }
.row.g-0 { margin-inline: 0; } .row.g-0 > [class*="col"] { padding-inline: 0; }
.col { flex: 1 0 0%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
@media (min-width: 576px) {
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 768px) {
    .col-md-2 { flex: 0 0 16.666%; max-width: 16.666%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
    .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 992px) {
    .col-lg-2 { flex: 0 0 16.666%; max-width: 16.666%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; }
    .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--border-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px;
    font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1;
    color: var(--btn-fg); background: var(--btn-bg);
    border: 1px solid var(--btn-bd); border-radius: var(--r-sm);
    cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { border-color: var(--ink); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary, .btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn-primary:hover, .btn-dark:hover { --btn-bg: var(--ink-3); --btn-bd: var(--ink-3); color: #fff; }
.btn-accent, .btn-submit, .btn-devis { --btn-bg: var(--accent); --btn-fg: var(--ink); --btn-bd: var(--accent); }
.btn-accent:hover, .btn-submit:hover, .btn-devis:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); color: var(--ink); }
.btn-secondary, .btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--border-strong); }
.btn-secondary:hover, .btn-outline:hover { --btn-bg: var(--surface); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface-alt); --btn-bd: transparent; }
.btn-success { --btn-bg: var(--success); --btn-fg: #fff; --btn-bd: var(--success); }
.btn-success:hover { filter: brightness(.94); color: #fff; }
.btn-danger { --btn-bg: var(--surface); --btn-fg: var(--danger); --btn-bd: #EFC2BE; }
.btn-danger:hover { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); color: #fff; }
.btn-on-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.28); }
.btn-on-dark:hover { --btn-bg: rgba(255,255,255,.08); --btn-bd: #fff; color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.link-arrow i { transition: transform .18s var(--ease); }
.link-arrow:hover i { transform: translateX(3px); }

/* ---------- Forms ---------- */
.form-group, .field { margin-bottom: 18px; }
.form-label, .label, label.form-label {
    display: block; margin-bottom: 6px;
    font-size: 14px; font-weight: 600; color: var(--ink);
}
.form-label .required, .required-star, .form-label span.required { color: var(--danger); }
.form-control, .form-select, .input, .form-control-admin,
input[type="text"].lc, input[type="email"].lc {
    display: block; width: 100%; min-height: 44px;
    padding: 10px 14px;
    font-size: 15px; line-height: 1.4; color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong); border-radius: var(--r-sm);
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
}
textarea.form-control, textarea.form-control-admin { min-height: 120px; resize: vertical; }
select.form-control, select.form-select, select.form-control-admin, .select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B6E76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.form-control:hover, .form-control-admin:hover { border-color: #B9B5AB; }
.form-control:focus, .form-select:focus, .form-control-admin:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
.form-control::placeholder, .form-control-admin::placeholder { color: #9C9FA6; }
.form-control.is-invalid, .form-control-admin.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(210, 69, 59, .2); }
.invalid-feedback, .field-error { display: block; margin-top: 6px; font-size: 13px; color: var(--danger); }
.form-text, .help { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; }
.input-group { display: flex; }
.input-group > .form-control { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group > .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
fieldset { border: 0; padding: 0; margin: 0; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}
.card + .card { margin-top: 20px; }
.grid > .card + .card, .row > .card + .card, .grid > * > .card + .card { margin-top: 0; }
.card-title {
    font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--ink);
    margin: 0 0 18px; letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 10px;
}
.card-title i { color: var(--muted); font-size: 16px; }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; font-size: 18px; }
.card-body { padding: 24px; }
.card-dark { background: var(--ink); color: var(--on-dark-muted); border-color: var(--ink); }
.card-dark h3, .card-dark h4, .card-dark .card-title { color: #fff; }
.card-hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

/* ---------- Badges ---------- */
.badge, .badge-status, .pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 24px; padding: 0 10px;
    font-size: 12px; font-weight: 600; line-height: 1;
    border-radius: var(--r-pill);
    background: var(--surface-alt); color: var(--text);
    white-space: nowrap;
}
.badge::before, .badge-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.no-dot::before, .pill::before { display: none; }
.badge-info, .badge-new, .badge-pending { background: var(--info-bg); color: var(--info); }
.badge-warning, .badge-processing, .badge-sent, .badge-awaiting { background: var(--warning-bg); color: var(--warning); }
.badge-success, .badge-completed, .badge-paid, .badge-accepted, .badge-approved, .badge-delivered, .badge-active { background: var(--success-bg); color: var(--success); }
.badge-danger, .badge-cancelled, .badge-rejected, .badge-inactive { background: var(--danger-bg); color: var(--danger); }
.badge-dark { background: var(--ink); color: #fff; }
.badge-accent { background: var(--accent); color: var(--ink); }

/* ---------- Alerts ---------- */
.alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; margin-bottom: 20px;
    border-radius: var(--r-sm); border: 1px solid transparent;
    font-size: 14.5px; line-height: 1.5;
}
.alert > i { margin-top: 3px; }
.alert ul { padding-left: 18px; margin: 4px 0 0; }
.alert-success, .account-alert-success { background: var(--success-bg); color: #1F6E4B; border-color: #C3E5D2; }
.alert-danger, .alert-error, .account-alert-error { background: var(--danger-bg); color: #9B2C24; border-color: #F2C9C5; }
.alert-warning { background: var(--warning-bg); color: #7A5404; border-color: #F3DFAE; }
.alert-info { background: var(--info-bg); color: #284F9E; border-color: #CCD9F6; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table, .table-admin, .account-table { width: 100%; font-size: 14px; }
.table thead th, .table-admin thead th, .account-table thead th {
    padding: 12px 16px; text-align: left; white-space: nowrap;
    font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted); background: #FAF9F6; border-bottom: 1px solid var(--border);
}
.table tbody td, .table-admin tbody td, .account-table tbody td {
    padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.table tbody tr:last-child td, .table-admin tbody tr:last-child td, .account-table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover, .table-admin tbody tr:hover, .account-table tbody tr:hover { background: #FBFAF7; }
.table td.num, .table th.num, .table-admin td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    list-style: none; margin: 0; padding: 0;
    font-size: 13.5px; color: var(--muted);
}
.breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 6px; color: #A3A6AC; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-item.active { color: var(--ink); font-weight: 500; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 32px 0 0; justify-content: center; }
.page-item .page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: var(--r-sm);
    background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.page-item .page-link:hover { border-color: var(--ink); }
.page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-item.disabled .page-link { color: #B4B6BB; pointer-events: none; }

/* ==========================================================================
   Site chrome
   ========================================================================== */
.utility-bar { background: var(--ink); color: var(--on-dark-muted); font-size: 13px; }
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.utility-bar a:hover { color: #fff; }
.utility-bar .u-left, .utility-bar .u-right { display: flex; align-items: center; gap: 20px; }
.utility-bar .u-item { display: inline-flex; align-items: center; gap: 8px; }
.utility-bar .u-item i { color: var(--accent); }
.utility-bar .u-promo { color: #fff; font-weight: 500; }
.utility-bar select {
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--r-sm); padding: 4px 26px 4px 10px; font-size: 13px; cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23A9ACB3' stroke-width='2'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 8px center;
}
.utility-bar select option { color: var(--ink); }

.site-header {
    position: sticky; top: 0; z-index: 900;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.site-header .header-main { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.site-logo img { height: 40px; width: auto; }
.header-search { flex: 1; max-width: 560px; position: relative; }
.header-search input {
    width: 100%; height: 46px; padding: 0 52px 0 44px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-pill);
    font-size: 15px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.header-search input:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: var(--ring); }
.header-search .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.header-search button {
    position: absolute; right: 5px; top: 5px; height: 36px; width: 36px; border-radius: 50%;
    border: 0; background: var(--ink); color: #fff; display: grid; place-items: center;
}
.header-search button:hover { background: var(--ink-3); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hdr-btn {
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    height: 46px; padding: 0 12px; border: 0; background: none; border-radius: var(--r-sm);
    color: var(--ink); font-size: 14px; font-weight: 600;
}
.hdr-btn:hover { background: var(--bg); }
.hdr-btn .hdr-ic { font-size: 20px; width: 22px; text-align: center; }
.hdr-btn .hdr-label { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-badge-count {
    position: absolute; top: 4px; left: 24px;
    min-width: 19px; height: 19px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: var(--ink); border: 2px solid #fff;
    font-size: 11px; font-weight: 700; border-radius: var(--r-pill);
    font-variant-numeric: tabular-nums;
}
.dropdown { position: relative; }
.dropdown-panel {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 1000;
    min-width: 240px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top right;
    transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.dropdown.is-open .dropdown-panel { opacity: 1; visibility: visible; transform: none; }
.dropdown-panel.cart-panel { width: 360px; max-height: 480px; overflow-y: auto; padding: 16px; }
.menu-item {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 10px 12px; border-radius: var(--r-sm); border: 0; background: none;
    font-size: 14px; font-weight: 500; color: var(--text); text-align: left;
}
.menu-item i { width: 18px; color: var(--muted); text-align: center; }
.menu-item:hover { background: var(--bg); color: var(--ink); }
.menu-item.danger, .menu-item.danger i { color: var(--danger); }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }

.main-nav { border-top: 1px solid var(--border); }
.main-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-list > li { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    height: 52px; padding: 0 14px;
    font-size: 14.5px; font-weight: 500; color: var(--text);
    position: relative;
}
.nav-link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px;
    background: var(--accent); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .2s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-list > li.active > .nav-link::after { transform: scaleX(1); }
.nav-list > li.active > .nav-link { color: var(--ink); font-weight: 600; }
.nav-link .fa-chevron-down { font-size: 10px; color: var(--muted); transition: transform .2s; }
.has-sub:hover .nav-link .fa-chevron-down, .has-sub:focus-within .nav-link .fa-chevron-down { transform: rotate(180deg); }
.sub-menu {
    position: absolute; top: 100%; left: 0; z-index: 950;
    min-width: 240px; padding: 8px; list-style: none;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu.mega { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 2px; min-width: 460px; }
.sub-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--text); }
.sub-menu a:hover { background: var(--bg); color: var(--ink); }
.sub-menu a i { color: var(--muted); width: 16px; text-align: center; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .nav-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.nav-cta .nav-phone i { color: var(--muted); }

.menu-toggle { display: none; }
.drawer-head { display: none; }
.drawer-backdrop {
    position: fixed; inset: 0; z-index: 1090; background: rgba(16, 18, 24, .5);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }

@media (max-width: 991px) {
    :root { --header-h: 64px; --gutter: 16px; }
    .utility-bar .u-hide-sm { display: none; }
    .site-header .header-main { gap: 12px; }
    .site-logo img { height: 32px; }
    .header-search { display: none; }
    .hdr-btn .hdr-label { display: none; }
    .hdr-btn { padding: 0 10px; }
    .cart-badge-count { left: 22px; }
    .menu-toggle { display: inline-flex; }
    .dropdown-panel.cart-panel { width: min(360px, calc(100vw - 32px)); right: -56px; }
    .main-nav { border: 0; }
    .main-nav .container {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 1100;
        width: min(340px, 88vw); padding: 0; max-width: none;
        background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
        transform: translateX(-100%); transition: transform .25s var(--ease);
        overflow-y: auto; box-shadow: var(--shadow-lg);
    }
    body.drawer-open .main-nav .container { transform: none; }
    .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
    .drawer-head img { height: 30px; }
    .drawer-search { padding: 16px; border-bottom: 1px solid var(--border); }
    .drawer-search .header-search { display: block; max-width: none; }
    .nav-list { flex-direction: column; align-items: stretch; padding: 8px; }
    .nav-link { height: 48px; width: 100%; justify-content: space-between; border-radius: var(--r-sm); }
    .nav-link::after { display: none; }
    .nav-list > li.active > .nav-link { background: var(--bg); }
    .sub-menu, .sub-menu.mega {
        position: static; opacity: 1; visibility: visible; transform: none;
        display: block; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px 12px;
    }
    .nav-cta { flex-direction: column; align-items: stretch; padding: 16px; border-top: 1px solid var(--border); margin-top: auto; }
    .nav-cta .btn { width: 100%; }
}
@media (min-width: 992px) { .drawer-search { display: none; } }

/* Flash */
.flash-wrap { padding-top: 20px; }
.flash-wrap .alert { margin: 0; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
    position: relative; overflow: hidden;
    background: var(--ink); color: var(--on-dark-muted);
    padding: 56px 0 60px;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px);
    mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 14px 0 10px; font-size: clamp(30px, 3.6vw, 46px); }
.page-hero p { max-width: 640px; font-size: 17px; margin: 0; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: var(--on-dark-muted); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }
.page-hero.light { background: var(--surface); color: var(--muted); border-bottom: 1px solid var(--border); }
.page-hero.light::before { display: none; }
.page-hero.light h1 { color: var(--ink); }
.page-hero.light .breadcrumb, .page-hero.light .breadcrumb a { color: var(--muted); }
.page-hero.light .breadcrumb-item.active { color: var(--ink); }
.page-hero.compact { padding: 28px 0 32px; }
.page-hero.compact h1 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 14.5px; }
.site-footer .footer-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer .footer-cta h3 { color: #fff; margin: 0 0 4px; font-size: 24px; }
.site-footer .footer-cta p { margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px; }
.footer-grid h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; }
.footer-grid ul { list-style: none; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 36px; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; line-height: 1.65; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { color: var(--accent); width: 16px; margin-top: 4px; text-align: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.back-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 800;
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ink); color: var(--accent); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { color: #fff; }

/* ==========================================================================
   Commerce components
   ========================================================================== */
.pcard {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
    overflow: hidden; height: 100%;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.pcard-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-alt); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-media .pcard-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--border-strong); font-size: 48px; }
.pcard-tags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.pcard-cond { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.pcard-cond.is-new::before { background: var(--success); opacity: 1; }
.pcard-cond.is-used::before { background: var(--accent-press); opacity: 1; }
.pcard-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.pcard-cat { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pcard-title { font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pcard-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.pcard-specs span { display: inline-flex; align-items: center; gap: 6px; }
.pcard-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 14px; }
.price { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }
.pcard .price { font-size: 22px; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pcard-actions { display: flex; gap: 8px; }
.pcard-actions .btn-accent { flex: 1; }
.pcard-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pcard-price .price-note { margin: 0; }

/* Quantity control */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: #fff; }
.qty button { width: 32px; height: 32px; border: 0; background: none; color: var(--ink); font-size: 14px; display: grid; place-items: center; }
.qty button:hover { background: var(--bg); }
.qty span, .qty input { min-width: 32px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; border: 0; }

/* Stepper / timeline */
.stepper { display: flex; gap: 0; list-style: none; counter-reset: step; }
.stepper li { flex: 1; position: relative; text-align: center; font-size: 13px; color: var(--muted); padding-top: 44px; }
.stepper li::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; border: 2px solid var(--border-strong); color: var(--muted);
    font-weight: 700; font-family: var(--font-head); z-index: 1;
}
.stepper li::after { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: var(--border-strong); }
.stepper li:first-child::after { display: none; }
.stepper li.done { color: var(--ink); }
.stepper li.done::before { content: "✓"; background: var(--success); border-color: var(--success); color: #fff; }
.stepper li.done::after, .stepper li.current::after { background: var(--success); }
.stepper li.current { color: var(--ink); font-weight: 600; }
.stepper li.current::before { background: var(--accent); border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 5px var(--accent-tint); }
.stepper li.cancelled::before { content: "✕"; background: var(--danger); border-color: var(--danger); color: #fff; }

/* Accordion (details/summary) */
.accordion { border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.accordion details + details { border-top: 1px solid var(--border); }
.accordion summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
    content: "+"; flex: 0 0 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; background: var(--bg); font-size: 20px; font-weight: 400; transition: transform .2s, background .2s;
}
.accordion details[open] summary::after { transform: rotate(45deg); background: var(--accent); }
.accordion .acc-body { padding: 0 24px 22px; color: var(--muted); line-height: 1.7; }
.accordion .acc-body p:last-child { margin: 0; }

/* Icon tile */
.ic-tile {
    width: 48px; height: 48px; border-radius: var(--r-sm);
    display: grid; place-items: center; flex: 0 0 auto;
    background: var(--accent-tint); color: var(--ink); font-size: 20px;
}
.ic-tile.dark { background: var(--ink); color: var(--accent); }
.ic-tile.sm { width: 38px; height: 38px; font-size: 16px; }

/* Feature list */
.check-list { list-style: none; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2316181D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5'/%3E%3C/svg%3E") center no-repeat;
}

/* Key/value rows */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.kv-row, .recap-row, .info-recap-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.kv-row:last-child, .recap-row:last-child, .info-recap-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--muted); }
.kv-row .v { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.kv-row.total { border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 6px; padding-top: 14px; font-size: 17px; }
.kv-row.total .k { color: var(--ink); font-weight: 600; }
.kv-row.total .v { font-family: var(--font-head); font-size: 22px; }

/* Empty state */
.empty {
    text-align: center; padding: 56px 24px;
    border: 1px dashed var(--border-strong); border-radius: var(--r-md); background: #fff;
}
.empty .ic-tile { margin: 0 auto 16px; width: 56px; height: 56px; font-size: 22px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 20px; }

/* Prose (legal / long text) */
.prose { max-width: 780px; font-size: 16px; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Corrugated motif */
.ribbed { position: relative; }
.ribbed::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(90deg, rgba(22,24,29,.045) 0 2px, transparent 2px 14px);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Spinner */
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: lc-spin .7s linear infinite; }
@keyframes lc-spin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
    .section { padding-block: 56px; }
    .section-sm { padding-block: 40px; }
    .card { padding: 18px; }
    .section-head { margin-bottom: 28px; }
}

/* Toast */
.lc-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 2000;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: var(--r-pill);
    background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.lc-toast i { color: var(--accent); }
.lc-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.is-loading { position: relative; pointer-events: none; opacity: .7; }

/* Tabs / segmented */
.segmented { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-alt); border-radius: var(--r-pill); }
.segmented button, .segmented a {
    height: 38px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: transparent;
    font-size: 14px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
}
.segmented .is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* Chips (filters) */
.chip {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
    border: 1px solid var(--border-strong); border-radius: var(--r-pill); background: #fff;
    font-size: 13.5px; font-weight: 500; color: var(--text); cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active, .chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .x { opacity: .6; }

/* Utility bar: single line on small screens */
.utility-bar .u-left { flex: 1; min-width: 0; }
.utility-bar .u-promo { min-width: 0; }
@media (max-width: 991px) {
    .utility-bar .u-promo span, .utility-bar .u-promo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
    .utility-bar .u-promo i { display: none; }
}
