:root {
    --red: #EB0A1E;
    --red-dark: #c50918;
    --green: #218838;
    --border: #e0e0e0;
    --bg: #f2f2f2;
    --text: #1a1a1a;
    --muted: #6c757d;
}

/* ─── Base ─────────────────────────────────────── */
body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* ─── Header ─────────────────────────────────────── */
.site-header {
    background-color: var(--red);
    padding: 14px 0;
}

.header-logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 900;
    color: white;
    letter-spacing: 4px;
    line-height: 1;
}

.header-divider {
    display: inline-block;
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.4);
}

.header-subtitle {
    color: rgba(255,255,255,0.88);
    font-size: 14px;
}

/* ─── Progress Bar ─────────────────────────────────── */
.progress-wrapper {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    transition: all 0.2s;
}

.step.active .step-circle {
    border-color: var(--red);
    background: var(--red);
    color: white;
}

.step.completed .step-circle {
    border-color: var(--green);
    background: var(--green);
    color: white;
}

.step-label {
    font-size: 11px;
    margin-top: 5px;
    color: var(--muted);
    white-space: nowrap;
}

.step.active .step-label  { color: var(--red);   font-weight: 600; }
.step.completed .step-label { color: var(--green); }

.step-line {
    height: 2px;
    width: 56px;
    background: var(--border);
    margin: 0 6px 22px;
}
.step-line.completed { background: var(--green); }

/* ─── Card ─────────────────────────────────────── */
.card {
    border: none;
    border-radius: 12px;
}

/* ─── Buttons ─────────────────────────────────────── */
.btn-primary {
    background-color: var(--red);
    border-color: var(--red);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--red-dark);
    border-color: var(--red-dark);
}
.btn-success {
    background-color: var(--green);
    border-color: #1e7e34;
}

/* ─── Section Headings ─────────────────────────── */
.section-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

/* ─── Already Ordered ───────────────────────────── */
.already-ordered-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff8e1;
    border: 2px solid #f59f00;
    border-radius: 10px;
    padding: 16px 20px;
}

.ao-icon {
    font-size: 28px;
    color: #f59f00;
    line-height: 1;
}

.ao-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #b37400;
    font-weight: 700;
    margin: 0;
}

.ao-name {
    font-size: 20px;
    font-weight: 700;
    margin: 4px 0;
}

.ao-sub {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.order-summary-mini {
    background: #f9f9f9;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 12px;
}

.osm-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 13px;
    border-top: 1px solid var(--border);
}
.osm-row:first-child { border-top: none; }
.osm-row span:first-child { color: var(--muted); }
.osm-row span:last-child  { font-weight: 600; }

/* ─── Employee Found ─────────────────────────────── */
.employee-found-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f0faf0;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 16px 20px;
}

.found-icon {
    font-size: 28px;
    color: #28a745;
    font-weight: 900;
    line-height: 1;
}

.found-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #28a745;
    font-weight: 700;
    margin: 0;
}

.found-name {
    font-size: 20px;
    font-weight: 700;
    margin: 4px 0;
}

.found-number {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

/* ─── Product Preview ───────────────────────────── */
.jacket-preview-wrap {
    text-align: center;
    background: #f9f9f9;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.jacket-preview-img {
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.jacket-preview-caption {
    font-size: 12px;
    color: var(--muted);
    margin: 8px 0 0;
    letter-spacing: 0.3px;
}

/* ─── Jacket Cards ─────────────────────────────── */
.jacket-card {
    display: block;
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    height: 100%;
}

.jacket-card:hover {
    border-color: #f5a0a8;
    background: #fff8f8;
}

.jacket-card.selected {
    border-color: var(--red);
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(235,10,30,0.12);
}

.jacket-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.jacket-card-img {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.jacket-icon {
    color: #555;
    transition: color 0.15s;
}

.jacket-card.selected .jacket-icon { color: var(--red); }

.jacket-code {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.jacket-name {
    font-size: 16px;
    color: #555;
    line-height: 1.3;
    margin-top: 2px;
}

.jacket-sizes-preview {
    font-size: 12px;
    color: var(--muted);
}

/* ─── Colour Options ─────────────────────────────── */
.colour-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.colour-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.15s, background 0.15s;
}

.colour-label:hover   { border-color: var(--border); background: #f9f9f9; }
.colour-label.selected { border-color: var(--red);   background: #fff5f5; }

.colour-swatch {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.12);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.colour-name {
    font-size: 12px;
    font-weight: 600;
}

/* ─── Size Options ─────────────────────────────── */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-label {
    cursor: pointer;
    min-width: 58px;
    padding: 8px 10px;
    border: 2px solid var(--border);
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.size-label:hover {
    border-color: var(--red);
    background: #fff5f5;
}

.size-label.selected {
    border-color: var(--red);
    background: var(--red);
    color: white;
}

/* ─── Verify Page ─────────────────────────────── */
.verify-section {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}

.verify-section-header {
    background: #f7f7f7;
    padding: 9px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.verify-edit {
    font-size: 12px;
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
.verify-edit:hover { text-decoration: underline; color: var(--red-dark); }

.verify-row {
    display: flex;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
}

.verify-label {
    font-size: 13px;
    color: var(--muted);
    width: 120px;
    flex-shrink: 0;
}

.verify-value {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.colour-dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* ─── Confirmation Page ─────────────────────────── */
.confirmation-check {
    width: 70px;
    height: 70px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: white;
    margin: 0 auto;
    font-weight: 900;
}

.order-id-box {
    background: #f9f9f9;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.order-id-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.order-id-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--red);
    margin-top: 4px;
}

.summary-mini {
    background: #f9f9f9;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.summary-mini-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 16px;
    font-size: 14px;
    border-top: 1px solid var(--border);
}
.summary-mini-row:first-child { border-top: none; }
.summary-mini-row span:first-child { color: var(--muted); }
.summary-mini-row span:last-child  { font-weight: 600; }

/* ─── Footer ─────────────────────────────────────── */
.site-footer {
    background: #2a2a2a;
    padding: 14px 0;
    margin-top: 40px;
}
.site-footer p {
    color: #888;
    font-size: 12px;
    margin: 0;
    text-align: center;
}

/* Admin */
.admin-orders-table { font-size: 13px; }
.admin-orders-table th { white-space: nowrap; }

.admin-detail-list { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0; }
.admin-detail-list dt { font-weight: 600; color: #555; font-size: 13px; }
.admin-detail-list dd { margin: 0; font-size: 14px; color: #222; }

.batch-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; background: #e8f0fe; color: #1a56db; white-space: nowrap; }

a.batch-badge { text-decoration: none; }
a.batch-badge:hover { filter: brightness(0.9); }
