:root {
  --bg: #f4f1ec;
  --surface: #fffcf8;
  --ink: #161412;
  --muted: #6f6a64;
  --line: #e4ddd4;
  --accent: #c8102e;
  --accent-ink: #fff7f6;
}
* { box-sizing: border-box; border-color: var(--line); }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: Manrope, system-ui, sans-serif; line-height: 1.5; }
button:not(:disabled), [role="button"] { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.top { background: var(--ink); color: var(--accent-ink); font-size: 0.75rem; }
.top-in { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 1rem; max-width: 72rem; margin: 0 auto; }
.top a:hover { color: var(--accent); }
[hidden] { display: none !important; pointer-events: none !important; }
.overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 40%, transparent); z-index: 30; }
.drawer { position: fixed; right: 0; top: 0; z-index: 40; width: min(28rem, 100%); height: 100%; background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; max-width: 72rem; margin: 0 auto; }
.logo { font-family: Syne, sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--accent); letter-spacing: -0.03em; }
.search { display: none; flex: 1; max-width: 28rem; margin-left: auto; align-items: center; gap: 0.5rem; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0.5rem 1rem; }
.search input { border: 0; outline: 0; width: 100%; background: transparent; font: inherit; }
@media (min-width: 640px) { .search { display: flex; } .search-m { display: none !important; } }
.cart-btn { position: relative; margin-left: auto; display: flex; height: 2.75rem; align-items: center; gap: 0.5rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--accent-ink); padding: 0 1rem; font: inherit; font-size: 0.875rem; font-weight: 500; }
@media (min-width: 640px) { .cart-btn { margin-left: 0; } }
.badge { position: absolute; right: -0.25rem; top: -0.25rem; width: 1.25rem; height: 1.25rem; display: grid; place-items: center; border-radius: 999px; background: var(--accent); font-size: 10px; font-weight: 600; }
.tabs { display: flex; gap: 1.5rem; max-width: 72rem; margin: 0 auto; padding: 0 1rem 0.75rem; font-size: 0.875rem; font-weight: 500; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 0 0 0.5rem; font: inherit; color: var(--muted); }
.tabs button.on { border-color: var(--accent); color: var(--ink); }
.main { display: grid; gap: 2rem; max-width: 72rem; margin: 0 auto; padding: 2rem 1rem; }
@media (min-width: 1024px) { .main { grid-template-columns: 220px 1fr; } }
.muted { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
h1 { font-family: Syne, sans-serif; font-size: 1.875rem; margin: 0.2rem 0 0; letter-spacing: -0.03em; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.chip { min-height: 2.5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 0.75rem; font: inherit; font-size: 0.875rem; }
.chip.on { background: var(--ink); color: var(--accent-ink); border-color: var(--ink); }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.card { overflow: hidden; border: 1px solid var(--line); background: var(--surface); border-radius: 1rem; cursor: pointer; transition: transform 0.2s; }
.card:hover { transform: translateY(-2px); }
.card .img { position: relative; aspect-ratio: 4/3; background: var(--bg); overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.sale { position: absolute; left: 0.75rem; top: 0.75rem; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0.2rem 0.5rem; font-size: 0.75rem; font-weight: 600; }
.body { padding: 1rem; }
.brand { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.prices { display: flex; gap: 0.5rem; align-items: baseline; }
.old { text-decoration: line-through; color: var(--muted); font-size: 0.875rem; }
.new { font-weight: 600; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.empty { border: 1px dashed var(--line); background: var(--surface); border-radius: 1rem; padding: 4rem 1.5rem; text-align: center; }
.overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 40%, transparent); z-index: 30; }
.modal { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 1rem; }
.modal-box { position: relative; width: min(48rem, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; display: grid; }
@media (min-width: 768px) { .modal-box { grid-template-columns: 1fr 1fr; } }
.modal-box img { width: 100%; height: 100%; object-fit: cover; min-height: 14rem; background: var(--bg); }
.pbody { padding: 1.5rem; }
.close { position: absolute; right: 0.75rem; top: 0.75rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--accent-ink); }
.opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opt { min-height: 2.5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 0.75rem; font: inherit; }
.opt.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.add { width: 100%; height: 3rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; }
.add:disabled { opacity: 0.4; }
.drawer { position: fixed; right: 0; top: 0; z-index: 40; width: min(28rem, 100%); height: 100%; background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.drawer-h, .drawer-f { padding: 1.25rem; border-color: var(--line); }
.drawer-h { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-b { flex: 1; overflow: auto; padding: 1.25rem; }
.row { display: flex; justify-content: space-between; gap: 0.75rem; border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; margin-bottom: 0.75rem; }
.x { background: none; border: 0; color: var(--accent); font: inherit; font-size: 0.75rem; }
select, input, textarea { font: inherit; }
.field { display: block; font-size: 0.875rem; margin-bottom: 0.75rem; }
.field input, .field select, .field textarea { margin-top: 0.25rem; width: 100%; height: 2.75rem; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--bg); padding: 0 0.75rem; }
.field textarea { height: auto; padding: 0.5rem 0.75rem; }
.panel { max-width: 48rem; margin: 0 auto; padding: 2rem 1rem; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; margin-bottom: 1.5rem; }
.btn { height: 2.75rem; border: 0; border-radius: 999px; padding: 0 1.25rem; font: inherit; font-weight: 600; background: var(--ink); color: var(--accent-ink); }
.btn.red { background: var(--accent); }
.btn.line { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.h { font-family: Syne, sans-serif; margin: 0 0 1rem; }
.toast { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: 999px; font-size: 0.875rem; }
.search-m { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0.5rem 1rem; margin-top: 0.75rem; }
.search-m input { border: 0; outline: 0; width: 100%; background: transparent; font: inherit; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.two { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.three { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .three { grid-template-columns: 1fr 1fr 1fr; } }
