:root {
    --accent: #c4004f;
    --accent-dark: #8d002a;
    --top: #1d1d1f;
    --bg: #f6f6f7;
    --card: #ffffff;
    --text: #1d1d1f;
    --muted: #6b6b73;
    --line: #e3e3e8;
    --ok: #1e7b34;
    --bad: #b3261e;
    --radius: 12px;
    color-scheme: light;
}
.brand-sport24 {
    --accent: #0a66c2;
    --accent-dark: #084d93;
    --top: #111827;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--accent); }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 1.15rem; margin: 0 0 10px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.proxy-bar { background: #fff3cd; color: #5c4400; padding: 8px 16px; text-align: center; font-size: 15px; }

.top { background: var(--top); color: #fff; position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 34px; width: auto; display: block; }
.customer-logo { height: 40px; width: auto; max-width: 140px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px 6px; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tools form { margin: 0; }
.tool {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
    color: #fff; text-decoration: none; background: transparent; border: 0; border-radius: 10px;
    font: inherit; font-size: 15px; cursor: pointer;
}
.tool:hover { background: rgba(255, 255, 255, .12); }
.tool.points strong { font-size: 18px; }
.cart-link { position: relative; }
.cart-link svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

.menu { background: #fff; border-bottom: 1px solid var(--line); }
.menu-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.menu-row::-webkit-scrollbar { display: none; }
.menu a { flex: none; padding: 14px 14px; color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; font-weight: 500; }
.menu a.on, .menu a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.main { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }
.foot { color: var(--muted); font-size: 14px; padding-bottom: 32px; }

.panel { background: var(--card); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; border: 1px solid var(--line); }
.narrow { max-width: 440px; margin: 24px auto; }
.center { text-align: center; }
.welcome { background: var(--card); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; border: 1px solid var(--line); }
.note { background: #fff8e1; border-radius: 10px; padding: 10px 14px; }
.alert { background: #fdecea; color: var(--bad); border-radius: 10px; padding: 10px 14px; }
.ok { background: #e7f5ea; color: var(--ok); border-radius: 10px; padding: 10px 14px; }

.form, .checkout { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], textarea {
    width: 100%; font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid #c9c9d1; border-radius: 10px; background: #fff; color: var(--text);
}
input:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); border-color: var(--accent); }
.radio { display: flex; align-items: center; gap: 10px; font-weight: 500; padding: 10px 0; }
.radio input { width: 22px; height: 22px; accent-color: var(--accent); }
.two { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
    border-radius: 10px; border: 1.5px solid #c9c9d1; background: #fff; color: var(--text);
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.big { min-height: 54px; font-size: 18px; }
.btn.block { display: flex; width: 100%; margin-bottom: 10px; }
.btn.disabled, .btn:disabled { opacity: .45; pointer-events: none; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 15px; padding: 6px; }
.actions { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; border: 1px solid var(--line); transition: box-shadow .15s; }
.card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.card-title { padding: 12px 14px 0; font-weight: 600; }
.card-price { padding: 4px 14px 14px; color: var(--accent); font-weight: 700; }
.card-tag { margin: -6px 14px 14px; font-size: 13px; color: var(--muted); }

.preview { position: relative; container-type: inline-size; background: #fff; aspect-ratio: 1; overflow: hidden; }
.preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.preview .noimg { width: 100%; height: 100%; background: #eee; }
.print {
    position: absolute; display: flex; align-items: center; justify-content: center; text-align: center;
    font-size: calc(var(--fs) * 1cqw); line-height: 1; white-space: nowrap; overflow: hidden; pointer-events: none; font-weight: 700;
}
.print.upper { text-transform: uppercase; }

.back { display: inline-block; margin-bottom: 12px; text-decoration: none; }
.product { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.product-media .preview { border-radius: var(--radius); border: 1px solid var(--line); }
.product-info { display: grid; gap: 16px; }
.product-info h1 { margin: 0; }
.price { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin: 0; }
.variants { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.variants legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.chip { min-width: 54px; min-height: 48px; padding: 0 14px; border: 1.5px solid #c9c9d1; border-radius: 10px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.chip.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.buy .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #c9c9d1; border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 44px; height: 48px; border: 0; background: #fff; font-size: 22px; cursor: pointer; }
.qty input { width: 56px; border: 0; text-align: center; padding: 0; height: 48px; -moz-appearance: textfield; }
.qty span { min-width: 36px; text-align: center; font-weight: 600; }
.text { color: #3a3a40; }

.lines { display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; align-items: start; }
.line .preview { border-radius: 8px; border: 1px solid var(--line); }
.line h2 { margin: 0; }
.line-body { display: grid; gap: 10px; }
.line-side { display: grid; gap: 8px; justify-items: end; }
.print-field.missing input { border-color: var(--bad); background: #fff6f5; }
.summary { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.2rem; padding: 14px 4px; border-top: 2px solid var(--line); margin-top: 8px; }
.sum-line { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sum-line small { display: block; color: var(--muted); }

.big-number { font-size: 2.4rem; font-weight: 800; color: var(--accent); margin: 0 0 8px; }
.table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.table .num { text-align: right; white-space: nowrap; }
.order { padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.order-sum { margin-left: auto; font-weight: 700; }
.order.cancelled { opacity: .6; }

@media (max-width: 760px) {
    body { font-size: 16px; }
    .product { grid-template-columns: 1fr; gap: 16px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .card-title { padding: 10px 10px 0; font-size: 15px; }
    .card-price { padding: 2px 10px 10px; }
    .line { grid-template-columns: 96px minmax(0, 1fr); }
    .line-side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
    .two { grid-template-columns: 1fr; }
    .tool span { display: none; }
    .customer-logo { display: none; }
    .actions .btn { flex: 1; }
}
