/* ============================================================
   GARZA COFFEE B2B PORTAL — CSS
   Estilo basado en garzacoffee.de (Savor theme)
   Fuentes: Inter (body) + Barlow Condensed (headings)
   Colores: rojo #a42325, blanco #fff, gris #f1f1f1, beige #e8d5c7
   Border-radius: 0px (sharp corners como en el sitio)
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red:          #a42325;
    --red-dark:     #780406;
    --red-light:    #c94042;
    --black:        #000000;
    --white:        #ffffff;
    --gray-100:     #f1f1f1;
    --gray-200:     #e6e6e6;
    --gray-400:     #999999;
    --gray-600:     #666666;
    --beige:        #e8d5c7;
    --brown:        #5c3d2e;
    --text:         #1a1a1a;
    --text-light:   #555555;

    --font-body:    'Inter', sans-serif;
    --font-heading: 'Barlow Condensed', sans-serif;

    --max-w:        1200px;
    --radius:       0px;
    --transition:   0.15s ease;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

img { display: block; max-width: 100%; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.15em;
}

.logo-garza { color: var(--red); }
.logo-coffee { color: var(--black); }
.site-logo-img { height: 72px; width: auto; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--red); }

.btn-logout {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nav-cart {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text);
    padding: 0.4rem 0.75rem;
    transition: color var(--transition);
}
.nav-cart:hover { color: var(--red); }

.cart-badge {
    position: absolute;
    top: 0;
    right: 0.25rem;
    background: var(--red);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.logout-form { display: inline; }

/* ── Main ─────────────────────────────────────────────────── */
.site-main { flex: 1; padding: 2.5rem 0; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: var(--gray-100, #f1f1f1);
    border-top: 1px solid var(--gray-200, #e6e6e6);
    padding: 0.875rem 1.5rem;
    text-align: center;
    margin-top: auto;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-legal { font-size: 0.8125rem; color: var(--text-light); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.25rem; }
.footer-legal a { color: var(--text-light); text-decoration: none; }
.footer-legal a:hover { color: var(--text); }
.footer-copy { color: var(--text-light); }
.footer-sep { color: var(--gray-400); margin: 0 0.25rem; }

/* ── Language toggle ─────────────────────────────────────── */
.lang-toggle { display:flex; align-items:center; gap:0.25rem; margin-left:0.5rem; }
.lang-btn { font-size:0.6875rem; font-weight:700; letter-spacing:0.04em; padding:0.2rem 0.4rem; border-radius:3px; color:var(--text-light); background:transparent; border:1px solid var(--gray-200); cursor:pointer; text-decoration:none; transition:all 0.15s; }
.lang-btn:hover, .lang-btn--active { background:var(--text, #1a1a1a); color:var(--white); border-color:var(--text, #1a1a1a); }
.lang-sep { font-size:0.6875rem; color:var(--gray-200); }

/* ── Tasting notes subtitle ──────────────────────────────── */
.product-subtitle { font-size:0.6875rem; color:var(--text-light,#555555); margin-top:0.15rem; margin-bottom:0; line-height:1.3; }

/* ── Flash messages ───────────────────────────────────────── */
.flash-messages { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }

.flash {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.flash--success { background: #d4edda; color: #155724; border-left: 3px solid #28a745; }
.flash--error   { background: #f8d7da; color: #721c24; border-left: 3px solid var(--red); }
.flash--warning { background: #fff3cd; color: #856404; border-left: 3px solid #ffc107; }
.flash--info    { background: #d1ecf1; color: #0c5460; border-left: 3px solid #17a2b8; }

.flash-close {
    background: none; border: none; cursor: pointer;
    font-size: 1.25rem; line-height: 1; color: inherit; opacity: 0.6;
    flex-shrink: 0;
}
.flash-close:hover { opacity: 1; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border-color: var(--gray-200);
}
.btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--text);
}

.btn-danger {
    background: var(--white);
    color: var(--red);
    border-color: var(--red);
}
.btn-danger:hover {
    background: var(--red);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--gray-100); color: var(--text); }

.btn-add {
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}
.btn-add:hover { background: var(--red); }

.btn-full { width: 100%; display: flex; }
.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.75rem; }

.btn-link { background: none; border: none; cursor: pointer; color: var(--red); font-size: 0.875rem; padding: 0; text-decoration: underline; }
.btn-link:hover { color: var(--red-dark); }
.btn-link--danger { color: var(--red); }
.btn-remove {
    background: none; border: none; cursor: pointer;
    font-size: 1.25rem; color: var(--gray-400); line-height: 1; padding: 0.25rem 0.5rem;
}
.btn-remove:hover { color: var(--red); }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; margin-bottom: 0.75rem; }
.form-group--narrow { flex: 0 0 100px; }
.form-group--action { flex: 0 0 auto; }

.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
}

.form-input {
    padding: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    width: 100%;
    transition: border-color var(--transition);
    appearance: none;
}
.form-input:focus {
    outline: none;
    border-color: var(--red);
}
.form-input--readonly {
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: not-allowed;
}
.form-input--sm { padding: 0.4rem 0.75rem; font-size: 0.8125rem; }

.form-textarea { resize: vertical; min-height: 80px; }

.form-hint { font-size: 0.75rem; color: var(--gray-400); font-weight: 400; text-transform: none; letter-spacing: 0; }

.form-section { margin-bottom: 2rem; }
.form-section-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

/* ── Page header ──────────────────────────────────────────── */
.page-header { margin-bottom: 2rem; }
.page-header-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
}
.page-meta { font-size: 0.8125rem; color: var(--gray-400); margin-top: 0.25rem; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    margin-bottom: 0.75rem;
}
.back-link:hover { color: var(--red); }

/* ── Login split layout ───────────────────────────────────── */
.site-main:has(.login-split) {
    padding: 0;
}
.login-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.login-brand {
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
}
.login-brand-inner {
    text-align: center;
    max-width: 320px;
}
.login-logo {
    width: 120px;
    margin: 0 auto 2rem;
}
.login-tagline {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 1.5rem;
}
.login-brand-divider {
    width: 40px;
    height: 1px;
    background: var(--red);
    margin: 0 auto 1.5rem;
}
.login-brand-text {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}
.login-lang-toggle {
    margin-top: 2rem;
}
.login-lang-toggle .lang-btn {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition);
}
.login-lang-toggle .lang-btn:hover {
    color: var(--text);
}
.login-lang-toggle .lang-btn--active {
    color: var(--red);
    font-weight: 700;
}
.login-lang-toggle .lang-sep {
    margin: 0 0.4rem;
    color: var(--gray-400);
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: var(--white);
}
.login-form-inner {
    width: 100%;
    max-width: 360px;
}

@media (max-width: 768px) {
    .login-split { grid-template-columns: 1fr; }
    .login-brand { padding: 2.5rem 1.5rem; min-height: 220px; }
    .login-logo { width: 80px; margin-bottom: 1rem; }
    .login-brand-text { display: none; }
    .login-form-panel { padding: 2rem 1.5rem; }
}

/* ── Auth pages ───────────────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--gray-100);
}
.auth-page--wide { align-items: flex-start; padding-top: 3rem; }

.auth-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
}
.auth-card--wide { max-width: 640px; }

.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.auth-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.auth-subtitle { font-size: 0.875rem; color: var(--text-light); }

.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }

.auth-note {
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
    text-align: center;
    line-height: 1.5;
}

/* ── Discount banner ──────────────────────────────────────── */
.discount-banner {
    background: var(--red);
    color: var(--white);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
.discount-hint { opacity: 0.85; font-size: 0.8125rem; }

.discount-info {
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.6;
}
.discount-tiers-text {
    margin-bottom: 0.25rem;
}
.discount-tiers-note {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* ── Catalog sections ─────────────────────────────────────── */
/* ── Catalog tabs ─────────────────────────────────────────── */
.catalog-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200, #e0d8cc);
    margin-bottom: 2rem;
    gap: 0;
}
.catalog-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light, #555);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.15s, border-color 0.15s;
}
.catalog-tab--active {
    color: var(--red, #a42325);
    border-bottom-color: var(--red, #a42325);
}
.catalog-tab:hover:not(.catalog-tab--active) {
    color: var(--text, #1a1a1a);
}
.catalog-tab-count {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.6;
}

.catalog-section { margin-bottom: 3rem; }
.catalog-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.catalog-section-desc {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}
.catalog-section--alt {
    padding-top: 2.5rem;
    border-top: 2px solid var(--beige);
}

/* ── Product grid ─────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    border: 1px solid var(--gray-200);
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-image img { transform: scale(1.03); }
.product-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.product-info { padding: 0.75rem 1rem 1rem; display: flex; flex-direction: column; gap: 0; flex: 1; }

/* discount badge moved to .discount-pill inside variant-actions */

.product-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.15;
}

/* Card body: vertical stack (details row + actions row) */
.variant-row {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.variant-row + .variant-row {
    border-top: 1px solid var(--gray-200);
    margin-top: 0.625rem;
    padding-top: 0.625rem;
}

/* Details row: title+subtitle LEFT, price RIGHT */
.variant-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}
.product-titles { flex: 1; min-width: 0; }

.variant-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
}

.variant-prices { text-align: right; flex-shrink: 0; padding-top: 0.125rem; }
.price-b2b { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.price-label { display: block; font-size: 0.6875rem; color: var(--gray-400); white-space: nowrap; margin-top: 0.0625rem; }

/* Actions row: add button full-width OR discount pill + qty split */
.variant-actions { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.variant-actions .btn-add { width: 100%; justify-content: center; }
.variant-actions .discount-pill { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.03em; background: var(--red); color: var(--white); padding: 0.3rem 0.625rem; white-space: nowrap; }
.variant-actions .discount-pill + .qty-control { margin-left: auto; }
/* When discount pill is present, spread them apart */
.variant-actions:has(.discount-pill) { justify-content: space-between; }

/* ── Quantity control ─────────────────────────────────────── */
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
}
.qty-control--inline { display: inline-flex; }

.qty-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    transition: background var(--transition);
}
.qty-btn:hover { background: var(--gray-100); }

.qty-value {
    min-width: 32px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0 0.25rem;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
}

/* ── Floating cart bar ────────────────────────────────────── */
.cart-float {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}
.cart-float-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--black);
    color: var(--white);
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.cart-float-link:hover { background: var(--red); color: var(--white); }

/* ── Cart table ───────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 768px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cart-table th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}
.cart-table th:first-child { padding-left: 0; text-align: left; }
.cart-table th.text-center { text-align: center; }
.cart-table th.text-right { text-align: right; }
.cart-table th:last-child { padding-right: 0; }
.cart-table td { padding: 1rem 0.5rem; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
.cart-table td:first-child { padding-left: 0; }
.cart-table td:last-child { padding-right: 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.cart-product-title { display: block; font-weight: 600; font-size: 0.875rem; }
.cart-product-variant { display: block; font-size: 0.75rem; color: var(--gray-400); margin-top: 0.125rem; }
.cart-discount-badge { display: inline-block; font-size: 0.6875rem; font-weight: 700; color: var(--red); margin-top: 0.2rem; }
.cart-pfand-note { display: block; font-size: 0.6875rem; color: var(--brown); margin-top: 0.2rem; }
.cart-section-divider td { padding: 0.75rem 0 0.25rem; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); border-bottom: none; }
.cart-min-warning { display:flex; align-items:center; gap:0.5rem; background:var(--cream-dark,#f0e8d8); border:1px solid var(--garza-gold,#c8a96e); border-radius:6px; padding:0.75rem 1rem; margin-bottom:1rem; font-size:0.875rem; color:var(--garza-brown,#5c3d2e); }
.cart-min-warning svg { flex-shrink:0; }

/* Checkbox */
.checkbox-label { display: flex; align-items: flex-start; gap: 0.625rem; cursor: pointer; font-size: 0.875rem; }
.checkbox-label input[type="checkbox"] { margin-top: 0.2rem; accent-color: var(--red); width: 16px; height: 16px; flex-shrink: 0; }

/* Admin extras */
.btn-danger { background: #c0392b; color: var(--white); border: none; }
.btn-danger:hover { background: #922b21; color: var(--white); }
.btn-sm { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
.row--inactive { opacity: 0.5; }
.actions-cell { display: flex; gap: 0.375rem; align-items: center; }
.form-card { background: var(--white); border: 1px solid var(--gray-200); padding: 2rem; max-width: 640px; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

/* ── Summary card ─────────────────────────────────────────── */
.summary-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.summary-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.summary-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; }
.summary-row--discount { color: var(--red); }
.summary-row--vat { color: var(--text-light); font-size: 0.8125rem; }
.summary-row--total { font-size: 1rem; font-weight: 700; }
.summary-divider { border: none; border-top: 1px solid var(--gray-200); margin: 0.25rem 0; }
.summary-note { font-size: 0.75rem; color: var(--gray-400); line-height: 1.4; }
.estimate-note { color: var(--brown); font-style: italic; }
.summary-section-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-bottom: 0.25rem; margin-top: 0.5rem; }

.tier-upgrade {
    background: var(--beige);
    padding: 0.75rem;
    font-size: 0.8125rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.tier-upgrade-link { font-weight: 600; color: var(--red); font-size: 0.8125rem; }

/* ── Order cycle banner ───────────────────────────────────── */
.order-cycle-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    background: var(--beige, #f5f0e8);
    border: 1px solid var(--gray-200, #e0d8cc);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}
.order-cycle-banner svg { flex-shrink: 0; margin-top: 0.15rem; }

/* ── Checkout ─────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; gap: 2rem; } }

/* Prevent € from wrapping/clipping in summary rows */
.summary-row > span:last-child { white-space: nowrap; flex-shrink: 0; }

.checkout-legal { font-size: 0.75rem; color: var(--gray-400); line-height: 1.5; margin-top: 0.75rem; }

.payment-info { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.payment-info-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.payment-info p { font-size: 0.8125rem; color: var(--text-light); margin-bottom: 0.75rem; }
.payment-info--confirmation { background: var(--gray-100); padding: 1.25rem; margin: 1.5rem 0; }

.bank-details { display: flex; flex-direction: column; gap: 0.375rem; }
.bank-row { display: flex; gap: 0.75rem; font-size: 0.8125rem; }
.bank-row span { color: var(--gray-400); min-width: 120px; flex-shrink: 0; }
.bank-row strong { color: var(--text); word-break: break-all; }
.bank-details--compact .bank-row span { min-width: 80px; }

/* ── Customer orders table ────────────────────────────────── */
.orders-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
}
.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.orders-table thead th {
    background: var(--cream);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}
.orders-table thead th.text-center { text-align: center; }
.orders-table thead th.text-right  { text-align: right; }
.orders-table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
}
.orders-table tbody tr { border-bottom: 1px solid var(--gray-100); }
.orders-table tbody tr:last-child { border-bottom: none; }
.orders-table-row { cursor: pointer; transition: background var(--transition); }
.orders-table-row:hover { background: var(--cream); }
.orders-date { font-size: 0.8125rem; color: var(--gray-400); }
.orders-tracking-hint {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-400);
}

.order-card {
    display: block;
    border: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.order-card:hover { border-color: var(--red); box-shadow: 0 2px 8px rgba(164,35,37,0.08); color: var(--text); }

.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.order-number { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; letter-spacing: 0.04em; }
.order-card-body { display: flex; justify-content: space-between; align-items: center; }
.order-card-meta { display: flex; gap: 1rem; font-size: 0.8125rem; color: var(--gray-400); }
.order-card-total { font-weight: 700; font-size: 1rem; }
.order-card-tracking {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gray-400);
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ── Status badges ────────────────────────────────────────── */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius);
}
.status-badge--lg { padding: 0.375rem 0.875rem; font-size: 0.75rem; }
.status-badge--pending   { background: #fff3cd; color: #856404; }
.status-badge--confirmed { background: #cce5ff; color: #004085; }
.status-badge--shipped   { background: #d1ecf1; color: #0c5460; }
.status-badge--delivered { background: #d4edda; color: #155724; }
.status-badge--cancelled { background: #f8d7da; color: #721c24; }

/* ── Order detail layout ──────────────────────────────────── */
.order-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
@media (max-width: 768px) { .order-detail-layout { grid-template-columns: 1fr; } }

.detail-section { margin-bottom: 2rem; }
.detail-section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.order-table { width: 100%; border-collapse: collapse; border-spacing: 0; }
.order-table th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
}
.order-table th:first-child { padding-left: 0; }
.order-table th:last-child  { padding-right: 0; }
.order-table td { padding: 0.875rem 0.75rem; border-bottom: 1px solid var(--gray-200); font-size: 0.875rem; vertical-align: middle; }
.order-table td:first-child { padding-left: 0; }
.order-table td:last-child  { padding-right: 0; }
.order-table tfoot td { border-bottom: none; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.order-table tfoot td:first-child { padding-left: 0; }
.order-table tfoot td:last-child  { padding-right: 0; }
@media (max-width: 600px) {
    .order-table col { width: auto !important; }
    .order-table th, .order-table td { padding: 0.5rem 0.375rem; font-size: 0.8rem; }
    .order-table th:first-child, .order-table td:first-child { padding-left: 0; }
    .order-table th:last-child, .order-table td:last-child { padding-right: 0; }
    .order-table tfoot td { padding: 0.375rem 0.375rem; font-size: 0.8rem; }
}

.totals-row { }
.totals-row--discount td { color: var(--red); }
.totals-row--total td { padding-top: 0.75rem; font-size: 1rem; border-top: 2px solid var(--gray-200); }

.item-title { display: block; font-weight: 600; }
.item-variant { display: block; font-size: 0.75rem; color: var(--gray-400); }
.item-sku { display: block; font-size: 0.75rem; color: var(--gray-400); }

.tracking-box { background: var(--gray-100); padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.tracking-row { display: flex; gap: 1rem; font-size: 0.875rem; }
.tracking-label { color: var(--gray-400); min-width: 100px; }
.tracking-number { font-family: monospace; font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.05em; }
.tracking-link { display: inline-flex; align-items: center; color: var(--red); text-decoration: none; }
.tracking-link:hover { color: var(--red-dark); text-decoration: underline; }
.orders-tracking-hint { color: var(--red); text-decoration: none; }
.orders-tracking-hint:hover { color: var(--red-dark); text-decoration: underline; }

.invoice-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.order-notes { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; background: var(--gray-100); padding: 1rem; }

.order-address { font-style: normal; font-size: 0.875rem; line-height: 1.8; color: var(--text); }
.payment-method { font-size: 0.875rem; color: var(--text-light); margin-bottom: 0.75rem; }

/* ── Confirmation ─────────────────────────────────────────── */
.confirmation-page { max-width: 600px; margin: 0 auto; }
.confirmation-card { text-align: center; padding: 2rem 0; }
.confirmation-icon { color: var(--red); margin-bottom: 1rem; display: flex; justify-content: center; }
.confirmation-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}
.confirmation-subtitle { font-size: 1rem; color: var(--text-light); margin-bottom: 1rem; }
.confirmation-text { font-size: 0.875rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1.5rem; }
.confirmation-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

.order-summary-mini { text-align: left; border: 1px solid var(--gray-200); padding: 1.25rem; margin: 1.5rem 0; }
.order-summary-mini h3 { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.75rem; }
.order-line { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8125rem; padding: 0.375rem 0; border-bottom: 1px solid var(--gray-200); }
.order-line:last-child { border-bottom: none; }
.order-line--total { font-weight: 700; font-size: 0.9375rem; padding-top: 0.5rem; }
.order-line-info { display: flex; flex-direction: column; }
.order-line-title { font-weight: 600; }
.order-line-variant { font-size: 0.75rem; color: var(--gray-400); }
.order-line-qty { font-size: 0.75rem; color: var(--gray-400); }
.order-line-total { font-weight: 600; white-space: nowrap; }

/* ── Account ──────────────────────────────────────────────── */
.account-layout { display: flex; flex-direction: column; gap: 2.5rem; max-width: 720px; }
.account-section { padding: 2rem; border: 1px solid var(--gray-200); }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state { padding: 4rem 2rem; text-align: center; color: var(--gray-400); }
.empty-state p { margin-bottom: 1.5rem; font-size: 0.9375rem; }

/* ── Error pages ─────────────────────────────────────────── */
.error-page { padding: 6rem 2rem; text-align: center; }
.error-code { font-family: var(--font-heading); font-size: 5rem; color: var(--gray-200); line-height: 1; margin-bottom: 1rem; }
.error-message { font-size: 1rem; color: var(--text-light); margin-bottom: 2rem; }

/* ── Admin layout ─────────────────────────────────────────── */
.admin-body { background: var(--gray-100); }
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--beige);
    border-right: 1px solid var(--beige-dark, #d4c4b0);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1.2; }
.admin-logo-img { height: 64px; width: auto; display: block; }
.admin-logo-sub { font-size: 0.6rem; color: var(--brown); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.35rem; display: block; font-weight: 600; }

.admin-nav { display: flex; flex-direction: column; gap: 0.125rem; flex: 1; }

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--brown);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color var(--transition), background var(--transition);
    border-radius: 2px;
}
.admin-nav-link:hover { color: var(--red); background: rgba(164,35,37,0.07); }
.admin-nav-link.active { color: var(--red); background: rgba(164,35,37,0.1); font-weight: 700; }

.admin-logout { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(92,61,46,0.15); }
.admin-logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--brown);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0;
}
.admin-logout-btn:hover { color: var(--red); }

.admin-content { flex: 1; overflow-x: auto; }
.admin-container { padding: 2rem; max-width: 1100px; }

.admin-page-header { margin-bottom: 2rem; }
.admin-page-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.admin-stats-row { display: flex; gap: 2rem; margin-top: 1rem; }
.admin-stat { display: flex; flex-direction: column; gap: 0.125rem; }
.admin-stat-value { font-size: 1.75rem; font-weight: 700; font-family: var(--font-heading); color: var(--red); line-height: 1; }
.admin-stat-label { font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Customer detail layout ───────────────────────────────── */
.customer-top-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}
.customer-contact-col { display: flex; flex-direction: column; gap: 0; }
.customer-orders-scroll {
    max-height: 380px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
}
.customer-orders-scroll .admin-table th {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
    box-shadow: 0 1px 0 var(--gray-200);
}
.customer-mid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

/* ── Kilo price cards (Sonderpreise) ──────────────────────── */
.kilo-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.kilo-price-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}
.kilo-price-card-body {
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.kilo-price-input-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 0.5rem;
}
.kilo-price-input-row .form-input { flex: 1; }
.kilo-price-currency { font-size: 0.875rem; font-weight: 600; color: var(--text-light); flex-shrink: 0; }

/* ── Admin table ──────────────────────────────────────────── */
.admin-table-wrapper { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); }
.admin-table th {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}
.admin-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--gray-200); font-size: 0.875rem; vertical-align: middle; }
.admin-table-row { cursor: pointer; transition: background var(--transition); }
.admin-table-row:hover { background: var(--gray-100); }

.order-num-cell { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; }
.table-company { display: block; font-weight: 600; }
.table-meta { display: block; font-size: 0.75rem; color: var(--gray-400); }

.indicator--yes { color: #28a745; font-weight: 700; }
.indicator--no { color: var(--gray-400); }

/* ── Admin kilo grid ──────────────────────────────────────── */
.kilo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .kilo-grid { grid-template-columns: repeat(2, 1fr); } }
.kilo-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; padding: 1rem; display: flex; gap: 0.75rem; align-items: flex-start; transition: box-shadow 0.15s; }
.kilo-card:has(input[type=checkbox]:not(:checked)) { opacity: 0.55; }
.kilo-card-img { width: 52px; height: 52px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: var(--gray-100); }
.kilo-card-img-placeholder { width: 52px; height: 52px; border-radius: 4px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gray-200); }
.kilo-card-body { flex: 1; min-width: 0; }
.kilo-card-title { font-size: 0.8125rem; font-weight: 600; color: var(--garza-text, #2c1810); margin-bottom: 0.5rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kilo-card-price { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; }
.kilo-card-price input { width: 80px; padding: 0.3rem 0.4rem; font-size: 0.8125rem; border: 1px solid var(--gray-200); border-radius: 4px; }
.kilo-card-price span { font-size: 0.75rem; color: var(--text-light); }
.kilo-card-toggle { display: flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; color: var(--text-light); cursor: pointer; }
.kilo-save-row { margin-top: 1.5rem; display: flex; gap: 1rem; align-items: center; }

/* ── Admin order cards ────────────────────────────────────── */
.admin-order-list { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-order-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; padding: 0.875rem 1.25rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s; text-decoration: none; color: inherit; }
.admin-order-card:hover { border-color: var(--garza-brown, #5c3d2e); box-shadow: 0 2px 8px rgba(92,61,46,0.1); }
.admin-order-card--pending { border-left: 3px solid var(--red); }
.aoc-id { font-family: var(--font-heading); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.04em; color: var(--garza-brown, #5c3d2e); white-space: nowrap; }
.aoc-date { font-size: 0.75rem; color: var(--gray-400); margin-top: 0.1rem; }
.aoc-company { font-size: 0.875rem; font-weight: 600; }
.aoc-contact { font-size: 0.75rem; color: var(--gray-400); }
.aoc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; white-space: nowrap; }
.aoc-amount { font-size: 1rem; font-weight: 700; }
.aoc-badges { display: flex; gap: 0.4rem; align-items: center; }
.aoc-chip { font-size: 0.6875rem; font-weight: 600; padding: 0.15rem 0.45rem; border-radius: 20px; }
.aoc-chip--ok { background: #d4edda; color: #1a6630; }
.aoc-chip--missing { background: var(--gray-100); color: var(--gray-400); }

/* ── Admin filters ────────────────────────────────────────── */
.admin-filters { margin-bottom: 1.5rem; }
.filter-form { display: flex; }
.filter-group { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

/* ── Action grid ──────────────────────────────────────────── */
.action-grid { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Inline form ──────────────────────────────────────────── */
.inline-form { }
.inline-delete { display: inline; }

/* ── Upload form ──────────────────────────────────────────── */
.upload-form { }
.invoice-current {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    padding: 0.75rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* ── Token list ───────────────────────────────────────────── */
.token-link-copy { display: flex; align-items: center; gap: 0.5rem; }
.token-url { font-family: monospace; font-size: 0.75rem; max-width: 200px; }

/* ── Catalog admin ────────────────────────────────────────── */
.product-row-info { display: flex; align-items: center; gap: 0.75rem; }
.product-thumb { width: 36px; height: 36px; object-fit: cover; flex-shrink: 0; }
.variant-tag {
    display: inline-block;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    margin: 0.125rem;
}

/* ── Info list ────────────────────────────────────────────── */
.info-list { display: flex; flex-direction: column; gap: 0.5rem; }
.info-row { display: flex; gap: 0.75rem; font-size: 0.875rem; align-items: flex-start; }
.info-row > span { color: var(--gray-400); min-width: 100px; flex-shrink: 0; }

/* ── Responsive ───────────────────────────────────────────── */
/* Desktop — hide hamburger */
.admin-menu-toggle { display: none; }
.admin-sidebar-header { display: contents; }

@media (max-width: 900px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 1rem; gap: 1rem; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-logout { margin-top: 0; padding-top: 0; border-top: none; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 600px) {
    .header-inner { padding: 0 1rem; }
    .container { padding: 0 1rem; }
    .admin-container { padding: 1rem; }
    .auth-card { padding: 1.5rem 1rem; }
    .form-row { flex-direction: column; }
    .product-grid { grid-template-columns: 1fr; }
    .summary-card { padding: 1rem; }
    .order-cycle-banner { font-size: 0.8125rem; padding: 0.625rem 0.875rem; }
    .order-line { flex-wrap: wrap; gap: 0.25rem; }
    .order-line-total { margin-left: auto; }

    /* ── Admin responsive ─────────────────────────────── */

    /* Stats row */
    .admin-stats-row { flex-wrap: wrap; gap: 1rem; }
    .admin-stat { min-width: 80px; }

    /* Filters */
    .admin-filters .filter-group { flex-direction: column; }
    .admin-filters .form-input--sm { width: 100%; }

    /* Tables — scroll horizontal + smaller text */
    .admin-table-wrapper { -webkit-overflow-scrolling: touch; }
    .admin-table { font-size: 0.8125rem; }
    .admin-table th, .admin-table td { padding: 0.5rem 0.5rem; white-space: nowrap; }

    /* Catalog table — smaller product images */
    .admin-table td img[style*="40px"] { width: 32px !important; height: 32px !important; }

    /* Customer detail — single column layouts */
    .customer-top-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .customer-mid-layout { grid-template-columns: 1fr; gap: 1rem; }
    .customer-orders-scroll { max-height: 260px; }

    /* Kilo grid — single column */
    .kilo-grid { grid-template-columns: 1fr; }
    .kilo-card { gap: 0.5rem; }
    .kilo-card-title { white-space: normal; }

    /* Order detail */
    .aoc-right { text-align: right; }
    .aoc-badges { flex-wrap: wrap; gap: 0.25rem; }

    /* Page header */
    .admin-page-title { font-size: 1.25rem; }

    /* Admin nav at 600px */
    .admin-sidebar { padding: 0.75rem; gap: 0.5rem; }
    .admin-nav { gap: 0.25rem; }
    .admin-nav-link { font-size: 0.75rem; padding: 0.375rem 0.5rem; }
    /* Admin hamburger menu */
    .admin-sidebar-header { display: flex; align-items: center; justify-content: space-between; width: 100%; }
    .admin-menu-toggle { display: flex; background: none; border: none; color: var(--brown); cursor: pointer; padding: 0.25rem; }
    .admin-sidebar { flex-wrap: wrap; }
    .admin-nav { display: none; width: 100%; flex-direction: column; gap: 0.125rem; }
    .admin-sidebar.open .admin-nav { display: flex; }
    .admin-logout { display: none; width: 100%; }
    .admin-sidebar.open .admin-logout { display: block; }
    .admin-logo-img { height: 32px; }
    .admin-logo-sub { font-size: 0.625rem; }
}
