:root{
  --bg:#f6f3ee; --paper:#fffdf9; --ink:#141414; --muted:#6f6a63; --line:#e4ded4;
  --accent:#8a6a3b; --accent-soft:#efe6d6; --danger:#a33a2a; --ok:#2f6b46;
  --radius:16px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:Inter,system-ui,sans-serif;background:var(--bg);color:var(--ink);line-height:1.55;font-size:16px}
body.lock{overflow:hidden}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit}
.wrap{max-width:1200px;margin:0 auto;padding:0 16px}
[hidden]{display:none!important}

.top{position:sticky;top:0;z-index:20;background:rgba(20,20,20,.97);color:#f6f3ee}
.bar{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo{font-family:"Cormorant Garamond",Georgia,serif;font-weight:700;font-size:28px;letter-spacing:6px;text-decoration:none}
.cart-btn{display:flex;align-items:center;gap:8px;background:transparent;border:1px solid rgba(255,255,255,.25);color:#f6f3ee;border-radius:999px;padding:8px 14px;cursor:pointer}
.cart-btn b{background:var(--accent);color:#fff;border-radius:999px;min-width:22px;height:22px;display:grid;place-items:center;font-size:12px;padding:0 6px}

.hero{background:linear-gradient(180deg,#141414,#2a2621);color:#f6f3ee;padding:56px 0 64px}
.eyebrow{font-size:13px;letter-spacing:1.5px;text-transform:uppercase;color:#cdbb9c;margin-bottom:14px}
.hero h1{font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;font-size:clamp(40px,7vw,72px);line-height:1;margin-bottom:16px}
.hero h1 em{color:#cdbb9c}
.lead{max-width:620px;color:#d9d2c7;font-size:17px}

.tools{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:28px 0 8px}
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;max-width:100%;padding-bottom:2px}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:8px 16px;cursor:pointer;font-weight:500;font-size:14px;white-space:nowrap}
.chip[aria-selected="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.search{display:flex;align-items:center;gap:8px;background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:9px 16px;min-width:260px;color:var(--muted);flex:1;max-width:380px}
.search input{border:0;outline:0;background:transparent;width:100%;color:var(--ink)}
.meta{color:var(--muted);font-size:14px;margin-bottom:16px}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;padding-bottom:56px}
.loading,.empty{grid-column:1/-1;text-align:center;color:var(--muted);padding:60px 0}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;cursor:pointer;display:flex;flex-direction:column;text-align:left;transition:transform .15s,box-shadow .15s;padding:0}
.card:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(20,20,20,.08)}
.art{aspect-ratio:4/5;display:grid;place-items:center;position:relative;color:rgba(255,255,255,.92)}
.art svg{width:46%;height:auto;opacity:.95}
.art .badge{position:absolute;top:12px;left:12px;background:#fff;color:var(--danger);font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px}
.c-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:4px;flex:1}
.c-cat{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.8px}
.c-name{font-weight:600;line-height:1.3}
.c-color{font-size:14px;color:var(--muted)}
.c-sizes{font-size:13px;color:var(--muted);margin-top:auto;padding-top:8px}
.c-price{font-weight:700;font-size:18px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--ink);color:#fff;border:0;border-radius:12px;padding:14px 22px;font-weight:600;cursor:pointer}
.btn:disabled{opacity:.45;cursor:default}
.btn.wide{width:100%}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}

.overlay{position:fixed;inset:0;z-index:50;background:rgba(20,20,20,.5);display:flex;align-items:center;justify-content:center;padding:16px}
.sheet{background:var(--paper);border-radius:20px;width:100%;max-width:820px;max-height:calc(100vh - 32px);overflow:auto;display:grid;grid-template-columns:1fr 1fr;position:relative}
.close{position:absolute;top:10px;right:12px;width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.9);font-size:24px;line-height:1;cursor:pointer;z-index:2}
.p-art{min-height:100%}
.p-art .art{height:100%;aspect-ratio:auto;min-height:320px}
.p-body{padding:28px}
.p-cat{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.8px;margin-bottom:6px}
.p-body h2{font-family:"Cormorant Garamond",Georgia,serif;font-size:32px;line-height:1.1;margin-bottom:8px}
.p-attrs{color:var(--muted);font-size:14px;margin-bottom:14px}
.p-price{font-size:24px;font-weight:700;margin-bottom:20px}
.label{font-size:13px;font-weight:600;margin-bottom:8px}
.sizes{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.size{min-width:54px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;font-weight:600}
.size[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.hint{font-size:13px;color:var(--accent);min-height:20px;margin-bottom:14px}

.drawer{background:var(--paper);width:100%;max-width:460px;height:100%;margin-left:auto;display:flex;flex-direction:column;border-radius:20px 0 0 20px}
#cartOverlay{padding:0;justify-content:flex-end}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line);position:relative}
.drawer-head h2{font-family:"Cormorant Garamond",Georgia,serif;font-size:28px}
.drawer-head .close{position:static;background:transparent}
.drawer-body{padding:16px 20px 28px;overflow:auto;flex:1}
.line{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:14px 0;border-bottom:1px solid var(--line)}
.line .n{font-weight:600}
.line .d{font-size:13px;color:var(--muted)}
.line .p{font-weight:700;text-align:right}
.qty{display:flex;align-items:center;gap:6px}
.qty button{width:30px;height:30px;border-radius:8px;border:1px solid var(--line);background:#fff;cursor:pointer}
.rm{background:none;border:0;color:var(--muted);text-decoration:underline;cursor:pointer;font-size:13px;justify-self:end}
.total{display:flex;justify-content:space-between;font-size:20px;font-weight:700;margin:18px 0}
form.checkout{display:flex;flex-direction:column;gap:12px}
.field{display:flex;flex-direction:column;gap:5px}
.field span{font-size:13px;font-weight:600}
.field input,.field select,.field textarea{border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#fff;width:100%}
.field textarea{min-height:70px;resize:vertical}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.seg label{border:1px solid var(--line);border-radius:10px;padding:10px 12px;cursor:pointer;background:#fff;font-size:14px}
.seg input{margin-right:6px;accent-color:var(--ink)}
.seg label:has(input:checked){border-color:var(--ink)}
.err{color:var(--danger);font-size:14px;min-height:20px}
.hp{position:absolute;left:-9999px}
.done{text-align:center;padding:40px 10px}
.done .big{font-family:"Cormorant Garamond",Georgia,serif;font-size:40px;margin:8px 0}
.done p{color:var(--muted);margin-bottom:20px}

.info{background:var(--paper);border-top:1px solid var(--line);padding:44px 0}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.info h3{font-family:"Cormorant Garamond",Georgia,serif;font-size:24px;margin-bottom:6px}
.info p{color:var(--muted)}
footer{background:var(--ink);color:#bdb6aa;padding:24px 0;font-size:14px}
.foot{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

@media (max-width:720px){
  .sheet{grid-template-columns:1fr;max-height:calc(100vh - 16px)}
  .p-art .art{min-height:220px;aspect-ratio:16/10}
  .overlay{padding:8px;align-items:flex-end}
  .info-grid{grid-template-columns:1fr;gap:18px}
  .grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .c-body{padding:10px 12px 12px}
  .c-price{font-size:16px}
  .search{min-width:0;max-width:none;width:100%}
  .cart-btn span{display:none}
  .drawer{max-width:none;border-radius:0}
  .hero{padding:40px 0 44px}
}
