/* ============================================================
   MINLAP — Design System
   Black & white wholesale quick-commerce. Archivo (display) +
   Inter (body) + IBM Plex Mono (prices/data). Signature: the
   notched price-tag, used everywhere money is shown.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    --ink: #111111;
    --ink-soft: #2b2b2b;
    --paper: #ffffff;
    --smoke: #f2f2f2;
    --smoke-deep: #e8e8e8;
    --line: #dedede;
    --mid: #767676;
    --danger: #b3261e;
    --danger-bg: #fbeceb;

    --radius: 4px;
    --radius-lg: 10px;
    --header-h: 60px;
    --max: 1240px;

    --f-display: 'Archivo', sans-serif;
    --f-body: 'Inter', -apple-system, sans-serif;
    --f-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--f-body);
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
.muted { color: var(--mid); font-size: 13px; }
.mono { font-family: var(--f-mono); }

/* ============================================================
   Layout shell
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    height: var(--header-h);
}
.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
}
.site-logo {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.03em;
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.site-logo .eta {
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 600;
    background: var(--ink);
    color: var(--paper);
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0;
}
.search-bar {
    flex: 1;
    max-width: 480px;
    display: flex;
}
.search-bar form { display: flex; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.search-bar input {
    flex: 1;
    border: none;
    padding: 9px 12px;
    font-size: 14px;
    font-family: var(--f-body);
    background: var(--paper);
}
.search-bar input:focus { outline: none; }
.search-bar button {
    border: none;
    background: var(--ink);
    color: var(--paper);
    padding: 0 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}
.icon-link:hover { background: var(--smoke); text-decoration: none; }
.icon-link svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.8; }
.cart-badge {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--f-mono);
    font-size: 9px;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
}
.hdr-text-link { font-size: 13px; font-weight: 600; padding: 8px 10px; }
.menu-toggle {
    display: flex;
    background: none; border: none; cursor: pointer;
    width: 38px; height: 38px; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 1.8; fill: none; }

.mobile-drawer {
    display: none;
    position: fixed; inset: 0;
    z-index: 50;
    background: rgba(0,0,0,0.4);
}
.mobile-drawer.open { display: block; }
.mobile-drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 78%; max-width: 320px;
    background: var(--paper);
    padding: 20px;
    display: flex; flex-direction: column; gap: 4px;
}
.mobile-drawer-panel a, .mobile-drawer-panel .link-button {
    padding: 13px 6px;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    font-size: 15px;
    text-align: left;
    background: none; border: none; width: 100%; cursor: pointer; color: var(--ink);
}
.mobile-drawer-close { align-self: flex-end; background: none; border: none; font-size: 22px; cursor: pointer; padding: 6px; }

.site-main { max-width: var(--max); margin: 0 auto; padding: 20px 16px 90px; }
.link-button { background: none; border: none; color: inherit; cursor: pointer; padding: 0; font: inherit; }

/* ============================================================
   Buttons & forms
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--ink);
    color: var(--paper);
    border: 1.5px solid var(--ink);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
}
.btn:hover { background: var(--ink-soft); text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-outline { background: var(--paper); color: var(--ink); }
.btn-outline:hover { background: var(--smoke); }
.btn-block { width: 100%; }
.btn-auto { width: auto; }

.btn-sm {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 7px 12px;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: var(--paper);
    color: var(--ink);
}
.btn-sm:hover { background: var(--smoke); }
.btn-sm.filled { background: var(--ink); color: var(--paper); }
.btn-sm.filled:hover { background: var(--ink-soft); }
.btn-sm.danger { border-color: var(--danger); color: var(--danger); }
.btn-sm.danger:hover { background: var(--danger-bg); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: var(--radius); }
.stepper button { background: none; border: none; width: 30px; height: 30px; font-size: 16px; font-weight: 700; cursor: pointer; }
.stepper input { width: 34px; border: none; text-align: center; font-family: var(--f-mono); font-weight: 600; font-size: 13px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; color: var(--ink-soft); }
.form-group input, .form-group select {
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--f-body);
    background: var(--paper);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--ink); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }

.alert { padding: 12px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; border: 1.5px solid; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.alert-success { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   Cards & surfaces
   ============================================================ */

.card { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.card-tight { padding: 14px; }

/* --- Price tag (signature element) --- */
.tag-price {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 15px;
    background: var(--ink);
    color: var(--paper);
    padding: 3px 8px 3px 10px;
    border-radius: 3px;
    position: relative;
}
.tag-price::before {
    content: "";
    position: absolute;
    left: -1px; top: 50%;
    width: 6px; height: 6px;
    background: var(--paper);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.tag-price.lg { font-size: 22px; padding: 6px 14px 6px 16px; }
.tag-price.outline { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.tag-price.outline::before { background: var(--paper); border: 1.5px solid var(--ink); }

/* ============================================================
   Category chips
   ============================================================ */

.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 20px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    width: 78px;
    text-align: center;
}
.chip-icon {
    width: 68px; height: 68px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display); font-weight: 900; font-size: 22px;
    background: var(--paper);
}
.chip:hover .chip-icon { background: var(--ink); color: var(--paper); text-decoration: none; }
.chip span { font-size: 11px; font-weight: 600; line-height: 1.2; }

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill {
    padding: 7px 14px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.pill.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill:hover { border-color: var(--ink); text-decoration: none; }
.pill-with-icon { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap; }
.pill-with-icon img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; background: var(--smoke); }

/* ============================================================
   Product grid & card
   ============================================================ */

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; }
.product-card {
    display: block;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--ink);
    background: var(--paper);
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.product-card:hover { border-color: var(--ink); text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.product-card-image { aspect-ratio: 1; background: var(--smoke); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--mid); }
.product-card-placeholder svg { width: 26px; height: 26px; stroke: var(--mid); fill: none; stroke-width: 1.5; opacity: 0.6; }
.product-card-placeholder span { font-size: 10px; font-family: var(--f-mono); letter-spacing: 0.04em; }
.product-card-body { padding: 10px 10px 12px; }
.product-card-unit { font-size: 10px; color: var(--mid); font-family: var(--f-mono); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.03em; }
.product-card-name { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; min-height: 34px; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.wishlist-dot {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1.5px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    z-index: 2;
}

/* Quick-add button — sits on the card, no need to open the product */
.quick-add-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-size: 19px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}
.quick-add-btn:hover { background: var(--ink-soft); }
.quick-add-strip { position: absolute; bottom: 10px; right: 10px; z-index: 2; }
.card-price-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 12px; }
.stock-dot-row { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--mid); font-family: var(--f-mono); margin-bottom: 6px; }
.stock-dot-row .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.stock-dot-row.out .dot { background: var(--danger); }
.stock-dot-row.out { color: var(--danger); }

.sort-bar { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.sort-bar .muted { margin-right: 6px; }
.sort-bar a { font-size: 12px; padding: 6px 10px; border-radius: 999px; font-weight: 600; }
.sort-bar a.active { background: var(--ink); color: var(--paper); text-decoration: none; }

.catalog-layout { display: flex; gap: 24px; align-items: flex-start; }
.filters-sidebar { width: 200px; flex-shrink: 0; display: none; }
.filters-sidebar h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mid); margin-bottom: 10px; font-family: var(--f-body); font-weight: 700; }
.filter-list { list-style: none; padding: 0; margin: 0 0 24px; }
.filter-list li { margin-bottom: 2px; }
.filter-list a { display: block; padding: 6px 0; color: var(--ink); font-size: 13px; }
.filter-list a.active { font-weight: 800; }
.catalog-main { flex: 1; min-width: 0; }

.pagination { display: flex; gap: 6px; margin-top: 20px; }
.pagination a { padding: 8px 13px; border: 1.5px solid var(--line); border-radius: var(--radius); font-size: 13px; font-weight: 600; font-family: var(--f-mono); }
.pagination a.active { background: var(--ink); color: var(--paper); border-color: var(--ink); text-decoration: none; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
    padding: 26px 20px;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 18px);
    pointer-events: none;
}
.hero h1 { font-size: 32px; max-width: 480px; color: var(--paper); position: relative; }
.hero p { color: #c9c9c9; font-size: 14px; max-width: 420px; position: relative; }
.hero-badges { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; position: relative; }
.hero-badge { border: 1.5px solid var(--paper); color: var(--paper); border-radius: 999px; padding: 6px 14px; font-size: 11px; font-weight: 700; font-family: var(--f-mono); }

/* ============================================================
   Product detail
   ============================================================ */

.product-detail { display: flex; flex-direction: column; gap: 24px; }
.product-detail-images { width: 100%; }
.product-detail-main-image { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); border: 1.5px solid var(--line); background: var(--smoke); }
.product-thumbnails { display: flex; gap: 8px; margin-top: 8px; }
.product-thumbnails img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1.5px solid var(--line); }
.product-detail-info h1 { font-size: 22px; margin-bottom: 4px; }
.stock-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; margin: 8px 0; }
.stock-pill.in { background: var(--smoke); }
.stock-pill.out { background: var(--danger-bg); color: var(--danger); }
.stock-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ============================================================
   Cart & checkout
   ============================================================ */

.cart-layout, .checkout-layout { display: flex; flex-direction: column; gap: 20px; }
.cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.cart-item-image { width: 56px; height: 56px; border-radius: 6px; background: var(--smoke); overflow: hidden; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; grid-column: 2 / 4; margin-top: 8px; }

.summary-card { background: var(--smoke); border-radius: var(--radius-lg); padding: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.summary-row.total { font-weight: 800; font-size: 15px; padding-top: 10px; margin-top: 6px; border-top: 1.5px solid var(--ink); font-family: var(--f-mono); }

.address-option {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 13px; border: 1.5px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; font-size: 13px;
}
.address-option:has(input:checked) { border-color: var(--ink); background: var(--smoke); }

/* Sticky mobile cart bar */
.mini-cart-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 30;
}
.mini-cart-bar a { color: var(--paper); font-weight: 700; font-size: 14px; }
.mini-cart-bar .mono { color: var(--paper); }

/* ============================================================
   Tables (orders/documents/etc)
   ============================================================ */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.table th { text-align: left; padding: 10px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid); border-bottom: 1.5px solid var(--ink); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); }
.table tbody tr:hover { background: var(--smoke); }
.empty-cell { text-align: center; color: var(--mid); padding: 30px !important; }

/* ============================================================
   Status badges — monochrome: filled = done/positive,
   outline = in progress, red = only for cancel/reject
   ============================================================ */

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: capitalize; border: 1.5px solid var(--ink); }
.badge.b-outline { background: var(--paper); color: var(--ink); }
.badge.b-filled { background: var(--ink); color: var(--paper); }
.badge.b-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }

/* ============================================================
   Auth (standalone) pages
   ============================================================ */

.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--paper); padding: 20px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .auth-logo { font-family: var(--f-display); font-weight: 900; font-size: 26px; margin-bottom: 4px; }
.auth-card .subtitle { color: var(--mid); margin: 0 0 28px; font-size: 13px; }

/* ============================================================
   Utilities & responsive
   ============================================================ */

hr.rule { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 780px) {
    .search-bar { display: block; }
    .menu-toggle { display: none; }
    .hdr-text-link, .icon-link { display: flex; }
    .cart-item { grid-template-columns: 64px 1fr auto auto; }
    .cart-item-controls { grid-column: auto; margin-top: 0; }
    .mini-cart-bar { display: none !important; }
    .filters-sidebar { display: block; }
    .catalog-layout { flex-direction: row; }
    .checkout-layout { flex-direction: row; align-items: flex-start; }
    .checkout-main { flex: 2; }
    .checkout-aside { flex: 1; position: sticky; top: calc(var(--header-h) + 20px); min-width: 280px; }
    .cart-layout { flex-direction: row; align-items: flex-start; }
    .cart-items { flex: 2; }
    .cart-aside { flex: 1; position: sticky; top: calc(var(--header-h) + 20px); min-width: 300px; }
    .product-detail { flex-direction: row; gap: 40px; }
    .product-detail-images { max-width: 440px; }
}

@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .hero { padding: 44px 40px; }
    .hero h1 { font-size: 48px; }
}

@media (max-width: 779px) {
    .site-main { padding-bottom: 100px; }
}

/* ============================================================
   Polish round — utility bar, rounded-square category tiles,
   store cards, bill breakdown, order timeline, account menu
   ============================================================ */

.utility-bar {
    background: var(--ink);
    color: #d0d0d0;
    font-size: 11px;
    padding: 6px 16px;
    display: none;
}
.utility-bar-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.utility-bar a { color: #d0d0d0; margin-left: 18px; }
.utility-bar a:hover { color: var(--paper); text-decoration: none; }
.utility-bar .loc { display: flex; align-items: center; gap: 5px; }

/* Rounded-square category tiles (replaces circular chips on desktop nav row) */
.tile-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 24px; scrollbar-width: none; }
.tile-row::-webkit-scrollbar { display: none; }
.tile {
    flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    width: 84px;
    text-align: center;
}
.tile-icon {
    width: 72px; height: 72px;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display); font-weight: 900; font-size: 24px;
    background: var(--smoke);
}
.tile:hover .tile-icon { background: var(--ink); color: var(--paper); border-color: var(--ink); text-decoration: none; }
.tile span { font-size: 11px; font-weight: 700; line-height: 1.2; }

/* Store cards (Top Stores / Category vendors) */
.store-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; scrollbar-width: none; }
.store-row::-webkit-scrollbar { display: none; }
.store-card {
    flex-shrink: 0;
    width: 220px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
    color: var(--ink);
    background: var(--paper);
}
.store-card:hover { border-color: var(--ink); text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.store-card-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--ink); color: var(--paper);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display); font-weight: 900; font-size: 18px;
    margin-bottom: 10px;
}
.store-card h3 { font-size: 14px; margin-bottom: 4px; }
.store-card .muted { margin-bottom: 8px; }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* Bill / order summary breakdown */
.bill-card { background: var(--smoke); border-radius: var(--radius-lg); padding: 18px; }
.bill-card h3 { margin-top: 0; }
.bill-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.bill-row .mono { font-family: var(--f-mono); }
.bill-row.total { font-weight: 800; font-size: 16px; padding-top: 12px; margin-top: 8px; border-top: 1.5px solid var(--ink); font-family: var(--f-mono); }

/* Order status timeline */
.order-timeline { list-style: none; margin: 0; padding: 0; }
.order-timeline li {
    position: relative;
    padding: 0 0 22px 28px;
    border-left: 2px solid var(--line);
    margin-left: 6px;
}
.order-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.order-timeline li::before {
    content: "";
    position: absolute;
    left: -7px; top: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--paper);
}
.order-timeline li.pending::before { background: var(--paper); border: 2px solid var(--line); }
.order-timeline .step-label { font-weight: 700; font-size: 13px; }
.order-timeline .step-time { font-size: 11px; color: var(--mid); font-family: var(--f-mono); margin-top: 2px; }

/* Account menu */
.account-menu { list-style: none; margin: 0; padding: 0; border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.account-menu li { border-bottom: 1px solid var(--line); }
.account-menu li:last-child { border-bottom: none; }
.account-menu a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 18px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}
.account-menu a:hover { background: var(--smoke); text-decoration: none; }
.account-menu .chevron { color: var(--mid); font-family: var(--f-mono); }
.account-header { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 20px; }
.account-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--ink); color: var(--paper);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display); font-weight: 900; font-size: 20px;
    flex-shrink: 0;
}

@media (min-width: 780px) {
    .utility-bar { display: block; }
}

/* ============================================================
   MRP / discount display (Wave C)
   ============================================================ */
.price-block { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mrp-strike { font-family: var(--f-mono); font-size: 11px; color: var(--mid); text-decoration: line-through; }
.discount-pill { font-family: var(--f-mono); font-size: 10px; font-weight: 700; color: var(--ink); background: var(--smoke); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; }
.attr-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.attr-table td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.attr-table td:first-child { color: var(--mid); width: 45%; }

/* --- Brand logo --- */
.brand-logo { max-width: 130px; max-height: 32px; display: block; }
.auth-logo-img { max-width: 160px; max-height: 48px; display: block; margin: 0 auto 8px; }

/* ============================================================
   HOMEPAGE REDESIGN
   ============================================================ */

/* --- Delivery location bar --- */
.delivery-bar { background: var(--smoke); border-bottom: 1px solid var(--line); }
.delivery-bar-inner {
    max-width: 1200px; margin: 0 auto; padding: 10px 16px;
    display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 13px;
}
.delivery-bar-inner .pin-icon { width: 16px; height: 16px; fill: var(--ink); flex-shrink: 0; }
.delivery-bar-inner .chevron-icon { width: 16px; height: 16px; fill: var(--mid); margin-left: auto; flex-shrink: 0; }

/* --- Hero carousel --- */
.hero-carousel {
    position: relative; max-width: 1200px; margin: 16px auto; padding: 0 16px;
}
.hero-slide {
    display: none; border-radius: 16px; overflow: hidden; position: relative;
}
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; display: block; }
.hero-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.hero-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); cursor: pointer; }
.hero-dots .dot.active { background: var(--ink); }

/* --- Category grid (2 rows) --- */
.category-grid {
    max-width: 1200px; margin: 24px auto; padding: 0 16px;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.category-tile {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 8px; border: 1px solid var(--line); border-radius: 12px;
    text-decoration: none; color: var(--ink); font-size: 12px; text-align: center;
}
.category-tile img { width: 32px; height: 32px; object-fit: contain; }
.category-tile-glyph { font-size: 28px; }

/* --- Generic section header + horizontal scroll row --- */
.home-section { max-width: 1200px; margin: 32px auto; padding: 0 16px; }
.home-section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.home-section-header h2 { font-family: var(--f-display); font-size: 20px; font-weight: 800; margin: 0; }
.view-all { font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; }
.scroll-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* --- Top Categories (circular) --- */
.top-category-item { flex-shrink: 0; width: 84px; text-align: center; text-decoration: none; color: var(--ink); font-size: 12px; scroll-snap-align: start; }
.top-category-circle {
    width: 72px; height: 72px; border-radius: 50%; background: var(--smoke); overflow: hidden;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 24px;
}
.top-category-circle img { width: 100%; height: 100%; object-fit: cover; }

/* --- Rating display (real data only, no fabricated numbers) --- */
.rating-line { margin: 4px 0; font-size: 11px; }
.rating-badge { background: var(--ink); color: var(--paper); border-radius: 3px; padding: 1px 5px; font-weight: 700; font-family: var(--f-mono); }
.rating-count { color: var(--mid); margin-left: 4px; }
.rating-empty { color: var(--mid); font-style: italic; }

/* --- Trending product cards --- */
.trending-card {
    flex-shrink: 0; width: 160px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    text-decoration: none; color: var(--ink); scroll-snap-align: start; background: var(--paper);
}
.random-products-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.random-products-grid .trending-card { width: 100%; }
@media (min-width: 640px) { .random-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .random-products-grid { grid-template-columns: repeat(6, 1fr); } }
.trending-card-image { position: relative; aspect-ratio: 1; background: var(--smoke); }
.trending-card-image img { width: 100%; height: 100%; object-fit: cover; }
.trending-card-image .no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--mid); font-size: 11px; }
.discount-corner-badge {
    position: absolute; top: 6px; left: 6px; background: var(--ink); color: var(--paper);
    font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; z-index: 1;
}
.trending-card-body { padding: 10px; }
.trending-name { font-size: 12px; margin: 0; line-height: 1.3; height: 2.6em; overflow: hidden; }
.price-line { margin: 6px 0 0; display: flex; align-items: baseline; gap: 6px; }

/* --- Feature badges row --- */
.feature-badges {
    max-width: 1200px; margin: 32px auto; padding: 20px 16px; border-top: 1px solid var(--line);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.feature-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11px; color: var(--mid); }
.feature-icon { font-size: 22px; }

/* --- Bottom mobile nav bar --- */
.bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: var(--paper); border-top: 1px solid var(--line);
    justify-content: space-around; align-items: center; padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--mid); text-decoration: none; font-size: 10px; position: relative; flex: 1;
}
.bottom-nav a.active { color: var(--ink); font-weight: 700; }
.bottom-nav svg { width: 22px; height: 22px; fill: currentColor; }
.bottom-nav .nav-badge {
    position: absolute; top: -2px; right: 22%; background: var(--ink); color: var(--paper);
    font-size: 9px; font-weight: 700; border-radius: 50%; min-width: 15px; height: 15px;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* --- Responsive: mobile --- */
@media (max-width: 640px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-slide img { aspect-ratio: 16 / 9; }
    .hero-text p { max-width: none; }
    .hero-badge { width: 80px; height: 80px; font-size: 11px; }
    .feature-badges { grid-template-columns: repeat(2, 1fr); }
    .bottom-nav { display: flex; }
    body { padding-bottom: 60px; }

    .hide-mobile { display: none !important; }
}

/* --- Responsive: desktop gets a wider category grid --- */
@media (min-width: 1024px) {
    .category-grid { grid-template-columns: repeat(10, 1fr); }
}

/* --- Dedicated search page input --- */
.search-page-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 4px 6px 4px 18px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.search-page-form:focus-within { border-color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.search-page-form .search-icon { width: 18px; height: 18px; fill: var(--mid); flex-shrink: 0; }
.search-page-form input {
    flex: 1;
    border: none;
    padding: 12px 0;
    font-size: 15px;
    font-family: var(--f-body);
    background: transparent;
    min-width: 0;
}
.search-page-form input:focus { outline: none; }
.search-page-form input::placeholder { color: var(--mid); }
.search-page-form button {
    border: none;
    background: var(--ink);
    color: var(--paper);
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.search-page-form button:hover { opacity: 0.85; }

/* ============================================================
   SIDEBAR DRAWER REDESIGN + LEGAL PAGES + LOGIN POLISH
   ============================================================ */

.mobile-drawer-panel a svg { width: 18px; height: 18px; fill: var(--mid); flex-shrink: 0; }
.mobile-drawer-panel a { display: flex; align-items: center; gap: 12px; }

.drawer-user-header { display: flex; align-items: center; gap: 12px; padding: 4px 6px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.drawer-user-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.drawer-user-name { font-weight: 700; font-size: 14px; }
.drawer-user-sub { font-size: 12px; color: var(--mid); }

.drawer-section { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.drawer-section:last-child { border-bottom: none; }
.drawer-logout { color: var(--danger); font-weight: 700; padding: 13px 6px; }

/* --- Login page polish --- */
.auth-value-props {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
    margin: 14px 0 18px; font-size: 11px; color: var(--mid);
}
.auth-legal-footer { text-align: center; font-size: 11px; color: var(--mid); margin-top: 20px; line-height: 1.6; }
.auth-legal-footer a { color: var(--ink); text-decoration: underline; }

/* --- Legal pages (Terms / Privacy) --- */
.legal-page { max-width: 720px; margin: 0 auto; padding: 20px 0 60px; line-height: 1.7; }
.legal-page h1 { font-family: var(--f-display); font-size: 26px; margin-bottom: 4px; }
.legal-page h2 { font-size: 16px; margin: 28px 0 8px; }
.legal-page p { color: var(--ink); font-size: 14px; }
.legal-notice {
    background: var(--smoke); border: 1px solid var(--line); border-radius: 8px;
    padding: 14px 16px; font-size: 12px; color: var(--mid); margin: 16px 0 24px;
}

/* ============================================================
   LOGIN PAGE V2 — split desktop layout, 6-box OTP, B&W theme
   ============================================================ */

.auth-page-v2 { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.auth-split { flex: 1; display: flex; min-height: 100vh; }

/* --- Left marketing panel (desktop only) --- */
.auth-left { display: none; width: 50%; background: var(--smoke); padding: 48px; }
.auth-left-inner { max-width: 460px; margin: 0 auto; }
.auth-left-logo { max-width: 150px; max-height: 40px; }
.auth-left-tagline { font-size: 12px; color: var(--mid); margin: 2px 0 32px; letter-spacing: 0.02em; }
.auth-left h1 { font-family: var(--f-display); font-size: 34px; font-weight: 900; line-height: 1.15; margin: 0 0 14px; }
.auth-left-sub { color: var(--mid); font-size: 14px; margin: 0 0 32px; max-width: 380px; }

.auth-feature-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.auth-feature-row { display: flex; align-items: flex-start; gap: 14px; }
.auth-feature-icon {
    width: 38px; height: 38px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.auth-feature-icon svg { width: 18px; height: 18px; fill: var(--ink); }
.auth-feature-row strong { display: block; font-size: 14px; margin-bottom: 2px; }
.auth-feature-row span { font-size: 12px; color: var(--mid); }

.auth-left-illustration { opacity: 0.9; }
.auth-left-illustration svg { width: 100%; max-width: 320px; height: auto; }

/* --- Right form panel --- */
.auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-right-inner { width: 100%; max-width: 380px; }

.auth-mobile-logo { text-align: center; margin-bottom: 24px; }
.auth-mobile-logo img { max-width: 150px; max-height: 40px; }
.auth-mobile-logo p { font-size: 11px; color: var(--mid); margin: 2px 0 0; }
.auth-mobile-banner { margin: 0 0 20px; border-radius: 16px; overflow: hidden; }
.auth-mobile-banner img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
@media (max-width: 400px) {
    .auth-mobile-banner { margin-bottom: 16px; }
    .auth-mobile-banner img { aspect-ratio: 2 / 1; }
}

.auth-step-heading { font-family: var(--f-display); font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.auth-step-sub { color: var(--mid); font-size: 13px; margin: 0 0 20px; }

.auth-badge-row { display: flex; gap: 10px; margin-bottom: 22px; }
.auth-mini-badge {
    flex: 1; display: flex; align-items: center; gap: 6px; justify-content: center;
    border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; font-size: 12px; font-weight: 600;
}
.auth-mini-badge-icon { font-size: 14px; }

.auth-phone-input { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.auth-phone-prefix { padding: 12px 12px; background: var(--smoke); font-weight: 700; font-size: 14px; border-right: 1px solid var(--line); }
.auth-phone-input input { flex: 1; border: none; padding: 12px 14px; font-size: 15px; font-family: var(--f-body); }
.auth-phone-input input:focus { outline: none; }

.auth-continue-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--mid); font-size: 11px; font-weight: 700; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.btn-google {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
    padding: 12px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.btn-google:hover { background: var(--smoke); }

.auth-trust-row { display: flex; justify-content: space-between; gap: 8px; margin: 22px 0; font-size: 10px; color: var(--mid); text-align: center; }
.auth-trust-row > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.auth-trust-row span { font-size: 16px; }

/* --- OTP step --- */
.auth-back-btn { background: none; border: none; cursor: pointer; font-size: 13px; color: var(--mid); padding: 0; margin-bottom: 16px; }
.otp-box-group { display: flex; gap: 8px; margin: 18px 0 10px; }
.otp-box {
    width: 100%; aspect-ratio: 1; text-align: center; font-size: 20px; font-weight: 700;
    border: 1.5px solid var(--line); border-radius: 10px; font-family: var(--f-mono);
}
.otp-box:focus { outline: none; border-color: var(--ink); }
.auth-resend-line { font-size: 12px; color: var(--mid); margin: 4px 0 12px; }
.auth-resend-line #otp-timer { font-weight: 700; color: var(--ink); }
.btn-resend {
    display: block; margin: 0 auto 20px; background: none; border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 16px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--mid);
}
.btn-resend:not(:disabled) { color: var(--ink); border-color: var(--ink); }
.btn-resend:disabled { cursor: not-allowed; opacity: 0.6; }

.auth-footer-strip { text-align: center; padding: 14px; font-size: 11px; color: var(--mid); border-top: 1px solid var(--line); }

@media (min-width: 900px) {
    .auth-left { display: block; }
    .auth-mobile-logo { display: none; }
    .auth-mobile-banner { display: none; }
}

/* ============================================================
   PRODUCT PAGE ENHANCEMENTS — gallery, specs, ratings, reviews
   ============================================================ */

.product-thumb { cursor: pointer; transition: border-color 0.15s, opacity 0.15s; opacity: 0.7; }
.product-thumb:hover { opacity: 1; }
.product-thumb.active { border-color: var(--ink) !important; opacity: 1; }

.product-rating-line { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; margin: 6px 0; }

/* --- Specifications card (replaces plain attr-table) --- */
.spec-card { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.spec-card h3 { margin: 0 0 12px; font-size: 14px; }
.spec-grid { display: flex; flex-direction: column; }
.spec-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--mid); }
.spec-value { font-weight: 600; text-align: right; }

/* --- Reviews section --- */
.review-form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin: 16px 0 24px; background: var(--smoke); }
.review-form-card h3 { margin: 0 0 4px; font-size: 15px; }

.star-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin-top: 10px; }
.star-rating-input input { display: none; }
.star-rating-input label { font-size: 26px; color: var(--line); cursor: pointer; }
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: var(--ink); }

.review-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.review-item { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.review-item:last-child { border-bottom: none; }
.review-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.review-item p { margin: 0; font-size: 13px; color: var(--ink); }

/* ============================================================
   MY ORDERS PAGE — card-based list
   ============================================================ */

.order-card-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
    display: flex; align-items: center; gap: 14px;
    border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px;
    text-decoration: none; color: var(--ink); background: var(--paper);
    transition: border-color 0.15s;
}
.order-card:hover { border-color: var(--ink); }
.order-card-thumb { width: 64px; height: 64px; border-radius: 8px; background: var(--smoke); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.order-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-card-thumb .no-image { font-size: 9px; color: var(--mid); }
.order-card-body { flex: 1; min-width: 0; }
.order-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.order-card-number { font-size: 12px; color: var(--mid); }
.order-card-items { font-size: 14px; font-weight: 600; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.order-card-total { font-weight: 700; }
.order-card-chevron { font-size: 22px; color: var(--mid); flex-shrink: 0; }

/* ============================================================
   ORDER CONFIRMATION HERO
   ============================================================ */

.order-confirm-hero {
    text-align: center; max-width: 480px; margin: 20px auto 32px;
    border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 24px;
}
.order-confirm-check {
    width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper);
    display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900;
    margin: 0 auto 16px;
}
.order-confirm-hero h1 { font-family: var(--f-display); font-size: 24px; margin: 0 0 8px; }
.order-confirm-hero p { color: var(--mid); font-size: 14px; margin: 0 0 20px; }
.order-confirm-number {
    display: flex; flex-direction: column; gap: 2px; background: var(--smoke); border-radius: 8px;
    padding: 12px; margin-bottom: 20px; font-size: 13px;
}
.order-confirm-number .mono { font-size: 15px; font-weight: 700; }
.order-confirm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
    background: var(--ink); color: #d4d4d4; margin-top: 48px; padding: 40px 0 24px;
}
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-section { margin-bottom: 32px; }
.footer-section h3 {
    color: var(--paper); font-size: 15px; margin: 0 0 16px; font-family: var(--f-display);
}
.footer-columns {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 20px;
}
.footer-columns a { color: #b8b8b8; font-size: 13px; text-decoration: none; }
.footer-columns a:hover { color: var(--paper); text-decoration: underline; }
.footer-cities-line { font-size: 13px; color: #9a9a9a; line-height: 1.9; margin: 0; }

.footer-bottom-row {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
    border-top: 1px solid #333; padding-top: 28px; margin-top: 8px;
}
.footer-brand-col .footer-logo { color: var(--paper); font-weight: 800; font-size: 20px; letter-spacing: 0.5px; margin-bottom: 8px; }
.footer-brand-col .muted { color: #8a8a8a; font-size: 12px; }
.footer-links-col h4 { color: var(--paper); font-size: 13px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links-col a { display: block; color: #b8b8b8; font-size: 13px; text-decoration: none; margin-bottom: 10px; }
.footer-links-col a:hover { color: var(--paper); text-decoration: underline; }

@media (max-width: 768px) {
    .footer-columns { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom-row { grid-template-columns: 1fr; }
    .site-footer { padding-bottom: 80px; } /* clears the fixed mobile bottom nav */
}

/* ============================================================
   HOW IT WORKS (homepage section)
   ============================================================ */

.how-it-works { max-width: 1200px; margin: 48px auto; padding: 0 24px; }
.how-it-works h2 { text-align: center; font-family: var(--f-display); font-size: 26px; margin-bottom: 28px; }
.how-it-works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-it-works-card {
    border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 24px;
    text-align: center; background: var(--paper);
}
.how-it-works-icon { font-size: 40px; margin-bottom: 16px; }
.how-it-works-card h3 { font-size: 17px; margin: 0 0 10px; }
.how-it-works-card p { color: var(--mid); font-size: 14px; line-height: 1.5; margin: 0; }

@media (max-width: 768px) {
    .how-it-works-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REPLACEMENT REQUEST TRACKING
   ============================================================ */

.replacement-card { margin-bottom: 16px; }
.replacement-card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; margin-bottom: 12px;
}
.replacement-stage-row {
    background: var(--smoke); border-radius: 8px; padding: 10px 14px;
    font-size: 13px; font-weight: 700; color: var(--ink);
}
.replacement-stage-done { background: #dcfce7; color: #166534; }
.replacement-stage-rejected { background: #fbeceb; color: #b3261e; }
