:root { --ink:#1b1b1f; --muted:#6b6b72; --bg:#fafaf7; --card:#fff; --accent:#1d7a4f; --accent-ink:#fff; --red:#b23a2a; --line:#e6e4dc; --soft:#f1f0ea; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; } html, body { overflow-x:hidden; }
body { margin:0; font-family:-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; background:var(--bg); color:var(--ink); font-size:16px; line-height:1.5; }
a { color:var(--accent); text-decoration:none; } a:hover { text-decoration:underline; }
img { max-width:100%; display:block; }
.wrap { max-width:1100px; margin:0 auto; padding:0 16px; }
.top { background:#fff; border-bottom:1px solid var(--line); }
.top .wrap { display:flex; align-items:center; gap:14px; min-height:60px; flex-wrap:wrap; padding-top:8px; padding-bottom:8px; }
.brand { font-weight:800; font-size:22px; color:var(--ink); letter-spacing:-.3px; } .brand b { color:var(--accent); } .brand:hover { text-decoration:none; }
.search { flex:1; display:flex; min-width:220px; }
.search input { flex:1; padding:9px 12px; border:1px solid #ccc; border-radius:10px 0 0 10px; font:inherit; min-width:0; }
.search button { border-radius:0 10px 10px 0; }
.top nav { display:flex; gap:6px; align-items:center; }
.top nav a { padding:8px 10px; border-radius:10px; color:var(--ink); font-weight:600; white-space:nowrap; }
.top nav a:hover { background:var(--soft); text-decoration:none; }
.dot { display:inline-block; min-width:18px; height:18px; border-radius:9px; background:var(--red); color:#fff; font-size:11px; font-weight:700; text-align:center; line-height:18px; padding:0 5px; margin-left:4px; }
.cats { background:#fff; border-bottom:1px solid var(--line); }
.cats .wrap { display:flex; gap:4px; overflow-x:auto; padding:6px 16px; }
.cats a { padding:6px 12px; border-radius:16px; color:var(--ink); white-space:nowrap; font-size:14px; }
.cats a.on, .cats a:hover { background:var(--ink); color:#fff; text-decoration:none; }
main { padding:18px 0 40px; min-height:60vh; }
.notice { background:#fff6d6; border-bottom:1px solid #f0dd9a; padding:8px 16px; text-align:center; font-weight:600; }
.flash { padding:10px 14px; border-radius:10px; margin:0 0 14px; font-weight:600; background:#dbeee3; color:#1d5a3c; }
.flash.err { background:#f8d9d2; color:var(--red); }
h1 { font-size:24px; margin:0 0 6px; } h2 { font-size:18px; margin:24px 0 10px; }
.sub { color:var(--muted); margin:0 0 16px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:14px; }
.item { background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden; color:var(--ink); display:flex; flex-direction:column; }
.item:hover { text-decoration:none; border-color:#bbb; }
.item .ph { aspect-ratio:1; background:var(--soft); display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:12px; }
.item .ph img { width:100%; height:100%; object-fit:cover; }
.item .t { padding:8px 10px 2px; font-size:14px; line-height:1.3; flex:1; }
.item .pr { padding:0 10px 10px; font-weight:800; }
.item .out { color:var(--red); font-weight:600; font-size:12px; }
.item.off { opacity:.6; }
.chips { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 14px; }
.chip { padding:5px 11px; border-radius:16px; border:1px solid var(--line); background:#fff; color:var(--ink); font-size:14px; }
.chip.on { background:var(--ink); color:#fff; border-color:var(--ink); }
.chip:hover { text-decoration:none; border-color:#999; }
button, .btn { display:inline-block; padding:10px 16px; border:0; border-radius:10px; background:var(--accent); color:var(--accent-ink); font:inherit; font-weight:700; cursor:pointer; text-align:center; }
.btn:hover { text-decoration:none; filter:brightness(1.05); }
.btn.ghost, button.ghost { background:#fff; color:var(--ink); border:1px solid #bbb; }
.btn.danger, button.danger { background:var(--red); }
.btn.big { padding:14px 22px; font-size:17px; width:100%; }
.btn.small, button.small { padding:6px 10px; font-size:13px; }
.box { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; margin-bottom:16px; }
.product { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:760px) { .product { grid-template-columns:1fr; } }
.gallery .main { aspect-ratio:1; background:var(--soft); border-radius:12px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.gallery .main img { width:100%; height:100%; object-fit:contain; }
.gallery .thumbs { display:flex; gap:6px; margin-top:8px; overflow-x:auto; }
.gallery .thumbs img { width:64px; height:64px; object-fit:cover; border-radius:8px; border:2px solid transparent; cursor:pointer; }
.gallery .thumbs img.on { border-color:var(--accent); }
.price { font-size:30px; font-weight:800; margin:8px 0; }
.price small { font-size:13px; font-weight:400; color:var(--muted); display:block; }
.desc { white-space:pre-line; }
.meta { color:var(--muted); font-size:14px; }
.lines { width:100%; border-collapse:collapse; }
.lines td { padding:10px 6px; border-bottom:1px solid var(--line); vertical-align:middle; }
.lines img { width:56px; height:56px; object-fit:cover; border-radius:8px; }
.lines .r { text-align:right; white-space:nowrap; }
.tot { text-align:right; font-size:18px; margin-top:10px; } .tot b { font-size:22px; }
.f { display:block; margin:10px 0; font-weight:600; }
.f input, .f select, .f textarea { display:block; width:100%; margin-top:4px; padding:10px; border:1px solid #ccc; border-radius:10px; font:inherit; font-weight:400; }
.f textarea { min-height:100px; }
.f2 { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; } @media (max-width:560px) { .f2 { grid-template-columns:1fr; } }
.opt { display:flex; gap:10px; padding:10px; border:1px solid var(--line); border-radius:10px; margin:8px 0; cursor:pointer; background:#fff; align-items:flex-start; }
.opt input { margin-top:4px; } .opt .n { font-size:13px; color:var(--muted); }
.code { font-size:34px; font-weight:800; letter-spacing:2px; text-align:center; padding:14px; background:var(--soft); border-radius:12px; margin:12px 0; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.steps { padding-left:18px; } .steps li { margin:6px 0; }
.pill { display:inline-block; padding:2px 9px; border-radius:10px; font-size:12px; font-weight:700; background:#eee; }
.pill.pending_payment, .pill.open { background:#fbebc9; color:#8a5a00; }
.pill.paid, .pill.answered { background:#dce5f7; color:#2f4bb8; }
.pill.shipped { background:#e4def7; color:#5a3fb8; }
.pill.completed, .pill.accepted { background:#d4eddf; color:#1f6f5c; }
.pill.cancelled, .pill.refunded, .pill.declined, .pill.closed { background:#f8d7d0; color:var(--red); }
.msg { padding:10px 12px; border-radius:10px; margin:8px 0; background:var(--soft); }
.msg.admin { background:#e3f1ea; } .msg .who { font-size:12px; color:var(--muted); margin-bottom:3px; }
.thumbs img { width:90px; height:90px; object-fit:cover; border-radius:8px; margin:0 6px 6px 0; display:inline-block; }
table.plain { width:100%; border-collapse:collapse; } table.plain td, table.plain th { padding:8px 6px; border-bottom:1px solid var(--line); text-align:left; }
.foot { border-top:1px solid var(--line); padding:20px 0; color:var(--muted); font-size:13px; background:#fff; }
.foot .wrap { display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; }
.pager { margin:16px 0; display:flex; gap:10px; align-items:center; }
.muted { color:var(--muted); } .right { text-align:right; } .center { text-align:center; }
.wa { background:#25d366; color:#fff; }
.hero { background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px; margin-bottom:20px; }
.hero h1 { font-size:26px; } .hero p { margin:4px 0 0; color:var(--muted); }
.rootcats { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; margin-bottom:22px; }
.rootcats a { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; color:var(--ink); font-weight:700; font-size:18px; }
.rootcats a span { display:block; font-size:13px; color:var(--muted); font-weight:400; }
.rootcats a:hover { text-decoration:none; border-color:#999; }
.subcats { columns:2; column-gap:20px; font-size:14px; margin-bottom:18px; } @media (max-width:560px) { .subcats { columns:1; } }
.subcats a { display:block; padding:4px 0; break-inside:avoid; }

/* telefono: marchio e menu sulla prima riga, ricerca a tutta larghezza sotto */
@media (max-width:700px) {
  .top .wrap { gap:8px; }
  .brand { font-size:20px; }
  .top nav { margin-left:auto; }
  .top nav a { padding:6px 8px; font-size:14px; }
  .search { order:3; flex-basis:100%; min-width:0; }
  .search input, .search button { padding:8px 10px; }
  h1 { font-size:21px; }
  .price { font-size:26px; }
  .grid { grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px; }
  .lines td { padding:8px 4px; }
  .foot .wrap { flex-direction:column; align-items:flex-start; gap:6px; }
}
.cats a.ask { background:var(--red); color:#fff; font-weight:800; margin-left:auto; }
.cats a.ask:hover { background:#8f2c1f; }
