:root {
  --bg: #f6f3ee;
  --card: #ffffff;
  --ink: #1d1a17;
  --muted: #8a827a;
  --line: #e6e0d8;
  --accent: #b4483c;
  --ok: #2f7a4f;
  --radius: 14px;
  --tabs: 62px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.4 var(--sans); }
body { padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom)); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
main { max-width: 1400px; margin: 0 auto; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 8px; }
.top h1 { font: 600 30px/1.1 var(--serif); margin: 0; letter-spacing: -.01em; }
h2 { font: 600 19px/1.2 var(--serif); margin: 22px 0 10px; }
.pad { padding: 0 16px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--card);
  display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.06); font-size: 18px; }
.icon-btn svg, .tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.search { padding: 0 16px 8px; }
.search input { width: 100%; }

/* chip */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; white-space: nowrap; }
.chip small { color: var(--muted); margin-left: 4px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on small { color: #cfc8c0; }
.chips.sub .chip { padding: 6px 12px; font-size: 13px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 16px 10px; }

/* form */
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; width: 100%; min-height: 44px; }
input:focus, select:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.toolbar select { width: auto; padding: 8px 10px; min-height: 38px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.switch input { appearance: none; width: 44px; min-width: 44px; height: 26px; min-height: 26px; padding: 0;
  border-radius: 99px; background: var(--line); border: 0; position: relative; transition: .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { left: 21px; }
.form { display: flex; flex-direction: column; gap: 14px; padding: 0 16px; }
.form label:not(.switch) { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.form label > input, .form label > select, .form label .row input { color: var(--ink); font-size: 15px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.end { justify-content: space-between; margin: 10px 0 30px; }
.btn { border: 0; background: var(--ink); color: #fff; border-radius: 12px; padding: 13px 22px; font-weight: 600; }
.pill { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 15px;
  font-size: 14px; white-space: nowrap; }
.pill.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.danger { color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; margin: 0 16px 10px; }
.form .hint { margin: 0; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
code { background: #ece6de; padding: 1px 5px; border-radius: 5px; font-size: 12px; }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
details[open] { display: flex; flex-direction: column; gap: 14px; }
.actions { padding: 16px; }

/* griglia prodotti */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 10px; padding: 4px 12px 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px 16px; } }
@media (min-width: 1050px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1300px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.card { cursor: pointer; }
.ph { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: #ebe5dd; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.ph img.loading { opacity: 0; }
.ph .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.heart { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); display: grid; place-items: center; }
.heart svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.heart.on svg { fill: var(--accent); stroke: var(--accent); }
.badge { position: absolute; left: 8px; bottom: 8px; background: rgba(29,26,23,.85); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; letter-spacing: .02em; }
.badge.sale { background: var(--accent); }
.card.oos .ph img { filter: grayscale(.6); opacity: .75; }
.meta { padding: 8px 2px 0; }
.meta .site { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .name { font-size: 14px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 650; margin-top: 3px; }
.price s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.sentinel { height: 40px; }
.skeleton .ph { animation: pulse 1.2s infinite alternate; }
@keyframes pulse { from { opacity: .5 } to { opacity: 1 } }

/* scheda prodotto */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.35); display: flex;
  justify-content: center; align-items: flex-end; }
.sheet-body { background: var(--bg); width: 100%; max-width: 760px; height: 100%; overflow-y: auto;
  -webkit-overflow-scrolling: touch; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
@media (min-width: 800px) { .sheet { align-items: center; } .sheet-body { height: 92vh; border-radius: 18px; } }
.gallery { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #ebe5dd; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: none; width: 100%; aspect-ratio: 3/4; object-fit: cover; scroll-snap-align: center; }
@media (min-width: 800px) { .slides img { width: 60%; } }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); }
.dots i.on { background: #fff; width: 16px; border-radius: 3px; }
.close-fab { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; z-index: 2; }
.detail { padding: 16px; }
.detail .site { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.detail h1 { font: 600 24px/1.2 var(--serif); margin: 6px 0 8px; }
.detail .price { font-size: 20px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin: 10px 0; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status.no::before { background: var(--accent); }
.status.unk::before { background: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.size { min-width: 48px; padding: 10px 12px; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; font-size: 14px; }
.size.no { color: var(--muted); text-decoration: line-through; background: transparent; }
.size.sel { border-color: var(--ink); outline: 1.5px solid var(--ink); }
.detail .buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.detail .buttons .btn, .detail .buttons .pill { text-align: center; text-decoration: none; padding: 14px; font-size: 15px; }
.detail .small { color: var(--muted); font-size: 12px; margin-top: 16px; }

/* siti */
.list { display: flex; flex-direction: column; gap: 10px; padding: 4px 16px 20px; }
.site-card { background: var(--card); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.site-card .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.site-card b { font-size: 16px; }
.site-card .url { color: var(--muted); font-size: 12px; word-break: break-all; }
.site-card .st { font-size: 13px; }
.site-card .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 11px; background: #ece6de; border-radius: 6px; padding: 2px 6px; margin-left: 6px; color: var(--muted); }
.cat-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 6px; margin-bottom: 6px; }
.cat-row button { border: 0; background: none; font-size: 18px; color: var(--muted); }
.tester { border-top: 1px solid var(--line); margin-top: 6px; }
.test-res { background: var(--card); border-radius: 12px; padding: 12px; margin-top: 10px; font-size: 13px; word-break: break-all; }
.test-res img { width: 90px; border-radius: 8px; float: right; margin-left: 10px; }
.test-res ul { padding-left: 18px; margin: 6px 0 0; }
.ok { color: var(--ok); } .ko { color: var(--accent); }
.chat-list { display: flex; flex-direction: column; gap: 6px; }

/* eventi */
.events { list-style: none; margin: 0; padding: 0 16px 30px; font-size: 13px; }
.events li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.events time { color: var(--muted); flex: none; width: 92px; }
.events .error { color: var(--accent); }
.events .restock { color: var(--ok); font-weight: 600; }

/* tab bar */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around;
  background: rgba(246,243,238,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); height: calc(var(--tabs) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 11px; position: relative; }
.tabs a.on { color: var(--ink); }
.tabs a b { position: absolute; top: 6px; left: 54%; background: var(--accent); color: #fff; font-size: 10px;
  border-radius: 99px; padding: 1px 6px; }
.tabs a b:empty { display: none; }

.busy { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: var(--ink); color: #fff; font-size: 12px;
  text-align: center; padding: calc(4px + env(safe-area-inset-top)) 10px 4px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs) + 16px + env(safe-area-inset-bottom));
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 70; font-size: 14px;
  max-width: 90vw; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* accesso */
.login-body { display: flex; align-items: center; justify-content: center; }
@media (min-width: 800px) { .login-body { height: auto; padding: 30px 0; } }
.login-card { width: 100%; max-width: 380px; padding: 30px 20px; text-align: center; }
.login-card label { text-align: left; }
.login-card h1 { font: 600 28px/1.1 var(--serif); margin: 0; }
.login-card .lock { width: 44px; height: 44px; margin: 0 auto; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.err { color: var(--accent); font-size: 14px; min-height: 1em; margin: 0; }
.account { margin-top: 10px; }

/* genere */
.seg { display: flex; gap: 4px; margin: 2px 16px 8px; padding: 4px; background: #ebe5dd; border-radius: 12px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 4px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg button small { font-weight: 400; color: var(--muted); margin-left: 3px; font-size: 11px; }
.genders { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.genders legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink) !important; flex-direction: row !important; }
.chk input { width: 20px; height: 20px; min-height: 0; }
.cat-row { grid-template-columns: 1fr 2fr 92px auto; }
.cat-row select { padding: 8px 6px; }
@media (max-width: 520px) { .cat-row { grid-template-columns: 1fr 1fr auto; } .cat-row [data-cu] { grid-column: 1 / -1; grid-row: 2; } }
.row.wrap { flex-wrap: wrap; }
/* log */
.log-list { list-style: none; margin: 0; padding: 0 0 30px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.log-list li { padding: 7px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.log-list .lv { display: inline-block; min-width: 44px; font-weight: 700; }
.log-list .info .lv { color: var(--muted); }
.log-list .warn .lv { color: #b07a10; }
.log-list .error .lv { color: var(--accent); }
.log-list .error { background: #fbeeec; }
.log-list .u { color: var(--muted); display: block; font-size: 11px; }
.log-list .d { color: #5d564f; display: block; font-size: 11px; white-space: pre-wrap; max-height: 120px; overflow: auto; }
#log-run { width: auto; flex: 1; min-width: 200px; }

.log-list .run { background: #ece6de; border-radius: 8px; padding: 8px 10px; margin-top: 10px; border: 0;
  font: 600 12px/1.4 var(--sans); color: var(--ink); }
.log-list .run small { font-weight: 400; color: var(--muted); display: block; }
.log-list .site { display: inline-block; background: var(--ink); color: #fff; border-radius: 4px; padding: 0 5px; margin-right: 4px; font-size: 10px; }
.tabs a span { white-space: nowrap; }
@media (max-width: 380px) { .tabs a span { font-size: 10px; } }

.brand { font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; width: 100%; resize: vertical; font-size: 16px; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .card { flex: none; width: 110px; }
.strip .meta .name { font-size: 12px; }
.motivo { font-size: 12px; color: var(--accent); margin-top: 3px; line-height: 1.3; }
.like-on { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }
#kind { width: auto; padding: 8px 10px; min-height: 38px; }
.toolbar { flex-wrap: wrap; }
.tabs a span { font-size: 10px; }

.measures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.size.rec { border-color: var(--ok); outline: 2px solid var(--ok); }
.size-tip { font-size: 14px; background: #e9f3ec; color: #1f5a37; border-radius: 10px; padding: 10px 12px; margin: 10px 0 4px; }
.size-tip a { color: inherit; }
.grid h3.group { grid-column: 1 / -1; margin: 14px 2px 2px; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.grid h3.group:first-child { margin-top: 2px; }

/* ================================================================ restyling 2 */
:root { --bg: #f7f1ea; --accent: #c2405e; --accent-soft: #f8e3e8; --ok: #23784a; --ok-soft: #e3f2e8; --radius: 18px; }
body { background: radial-gradient(1200px 500px at 50% -200px, #fbe9ec 0%, var(--bg) 60%) fixed; }
.feed-head { position: sticky; top: 0; z-index: 30; background: rgba(247,241,234,.88);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); padding-bottom: 2px;
  border-bottom: 1px solid rgba(0,0,0,.04); }
.feed-head .top { padding-top: calc(10px + env(safe-area-inset-top)); padding-bottom: 6px; }
.feed-head .top h1 { font-size: 26px; }
.brand { background: linear-gradient(90deg, var(--accent), #8e2b6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seg { background: #efe6dc; }
.seg button.on { color: var(--accent); }
.chips.sub .chip { background: transparent; border-color: #e3d8cc; }
.chips.sub .chip.on, .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar { padding: 2px 16px 8px; flex-wrap: nowrap; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--ink); color: #fff;
  border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; }
.filter-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.filter-btn b { background: var(--accent); border-radius: 99px; font-size: 11px; padding: 1px 7px; }
.filter-btn b:empty { display: none; }
#sort { border-radius: 999px; padding: 8px 14px; min-height: 38px; background: var(--card); width: auto; }
.chips.active { padding-top: 0; }
.chip.x { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; font-size: 13px; padding: 6px 12px; }

.grid { gap: 14px 12px; padding: 10px 12px 16px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(40,20,10,.05), 0 6px 18px rgba(40,20,10,.06);
  transition: transform .15s ease, box-shadow .15s ease; }
.card:active { transform: scale(.98); }
@media (hover: hover) { .card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(40,20,10,.06), 0 12px 28px rgba(40,20,10,.10); } }
.card .ph { border-radius: 0; }
.card .meta { padding: 9px 10px 11px; }
.meta .name { font-size: 13.5px; line-height: 1.3; }
.price { font-size: 15px; }
.badge.sale { background: var(--accent); }
.heart { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.skeleton { box-shadow: none; background: transparent; }

.sz { margin-top: 6px; font-size: 11.5px; line-height: 1.35; color: var(--muted); display: flex; flex-direction: column; gap: 1px; }
.sz b { font-weight: 700; }
.sz i { font-style: normal; opacity: .7; }
.sz.ok { color: var(--ok); }
.sz.ok b { background: var(--ok-soft); border-radius: 6px; padding: 1px 6px; align-self: flex-start; }
.sz.no b { color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 6px; align-self: flex-start; }
.sz span { color: var(--muted); }

.grid h3.group { font: 600 20px/1.2 var(--serif); margin: 18px 4px 0; display: flex; align-items: center; gap: 12px; }
.grid h3.group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #dccfc2, transparent); }

/* pannello filtri */
.fsheet { align-items: flex-end; }
.fbody { height: auto; max-height: 88vh; border-radius: 22px 22px 0 0; padding: 6px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .22s ease; }
@media (min-width: 800px) { .fbody { border-radius: 22px; max-width: 520px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0 } to { transform: none; opacity: 1 } }
.fhead { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg); padding: 10px 0 4px; z-index: 1; }
.fhead h2 { margin: 0; font-size: 22px; }
.fbody h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button { border: 1px solid #e3d8cc; background: var(--card); border-radius: 999px; padding: 9px 15px; font-size: 14px; }
.opts button small { color: var(--muted); }
.opts button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.opts button.on small { color: #cfc8c0; }
.toggles { display: flex; flex-direction: column; gap: 14px; }
.toggles .switch { justify-content: space-between; flex-direction: row-reverse; background: var(--card); border-radius: 14px; padding: 12px 14px; }
.toggles .switch span { display: flex; flex-direction: column; flex: 1; }
.toggles .switch small { color: var(--muted); font-size: 12px; }
.toggles .switch input:checked { background: var(--accent); }
.fbtns { display: flex; gap: 10px; margin-top: 22px; }
.fbtns .pill { flex: 1; padding: 14px; }
.fbtns .btn { flex: 2; background: var(--accent); }

/* la mia taglia nel dettaglio e nelle impostazioni */
.my-sz { border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 8px 0; background: #eee6dd; }
.my-sz.ok { background: var(--ok-soft); color: #1b5a37; }
.my-sz.no, .my-sz.missing { background: var(--accent-soft); color: #8a2340; }
.size.sel { background: var(--ink); color: #fff; outline: none; }
.mysizes { display: flex; flex-direction: column; gap: 8px; }
.msz { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 12px; padding: 10px 12px; }
.msz span { flex: 1; display: flex; flex-direction: column; }
.msz small { color: var(--muted); font-size: 12px; }
.msz em { font-style: normal; font-weight: 700; font-size: 18px; min-width: 40px; text-align: center; }
.tabs a.on { color: var(--accent); }
.chips.subsub { padding-top: 0; }
.chips.subsub:empty { display: none; }
.chips.subsub .chip { font-size: 12.5px; padding: 5px 11px; background: var(--card); border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chips.subsub .chip.on { background: var(--accent); color: #fff; }
.chips.subsub .chip.on small { color: #ffe3ea; }
.grid h3.group.small { font-size: 16px; color: #5d4a40; }

/* profilo, marche, guida taglie */
.brands { display: flex; flex-direction: column; gap: 10px; }
.brand-card { background: var(--card); border-radius: 14px; padding: 0 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); display: block !important; }
.brand-card summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 0; color: var(--ink); font-size: 15px; }
.brand-card summary::-webkit-details-marker { display: none; }
.brand-card summary span { flex: 1; display: flex; flex-direction: column; }
.brand-card summary small { color: var(--muted); font-size: 12.5px; }
.brand-card summary i { font-style: normal; font-size: 22px; color: var(--muted); transition: transform .2s; }
.brand-card[open] summary i { transform: rotate(90deg); }
.bsizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 12px; }
.bsizes label { font-size: 11.5px !important; }
.bsizes input { min-height: 38px; padding: 8px; text-transform: uppercase; }
.guide { border-top: 1px solid var(--line); padding: 10px 0 14px; font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.gscroll { overflow-x: auto; }
.gtable table { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.gtable th, .gtable td { border: 1px solid var(--line); padding: 5px 7px; text-align: center; white-space: nowrap; }
.gtable th { background: #f3ece4; }
.gtext { white-space: pre-wrap; font: 12px/1.45 var(--sans); background: #f7f1ea; border-radius: 8px; padding: 8px; max-height: 260px; overflow: auto; margin: 0; }
.gnote { margin: 0; background: var(--accent-soft); color: #8a2340; border-radius: 8px; padding: 8px 10px; }
#admin-area { margin-top: 26px; border-top: 6px solid #efe6dc; }

/* mi sta bene? */
.fit-btn { width: 100%; margin-top: 12px; border: 2px solid var(--ink); background: transparent; border-radius: 12px; padding: 13px; font-weight: 650; font-size: 15px; }
.fit-btn:disabled { opacity: .5; }
.fit-res { margin-top: 10px; border-radius: 14px; padding: 12px 14px; background: #eee6dd; font-size: 14px; }
.fit-res ul { margin: 8px 0 6px; padding-left: 18px; }
.fit-res li { margin: 3px 0; }
.fit-res small { color: var(--muted); font-size: 11.5px; }
.fit-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.fit-head i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-weight: 800; }
.fit-res.ok { background: var(--ok-soft); color: #1b5a37; }
.fit-res.small, .fit-res.large { background: #fff1d6; color: #7a4b00; }
.fit-advice { margin: 8px 0 0; font-weight: 600; }
.fit-wait { color: var(--muted); }
.size.sel, .size.sel.rec { background: var(--ink); color: #fff; }

/* ======================= login */
.login-screen { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: #1b1412; color: #fff; }
.login-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; overflow: hidden; }
@media (min-width: 800px) { .login-mosaic { grid-template-columns: repeat(6, 1fr); } }
.login-mosaic div { aspect-ratio: 3/4; overflow: hidden; animation: mfade 1s ease both; }
.login-mosaic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes mfade { from { opacity: 0; transform: scale(1.04) } to { opacity: 1; transform: none } }
@keyframes kenburns { from { transform: scale(1) } to { transform: scale(1.12) } }
.login-veil { position: absolute; inset: 0; background:
  radial-gradient(900px 500px at 50% 0%, rgba(194,64,94,.35), transparent 60%),
  linear-gradient(180deg, rgba(20,12,10,.55) 0%, rgba(20,12,10,.82) 55%, rgba(20,12,10,.95) 100%); }
.login-wrap { position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(40px + env(safe-area-inset-top)) 20px calc(30px + env(safe-area-inset-bottom)); gap: 26px; }
.login-hero { text-align: center; width: 100%; max-width: 520px; }
.login-logo { font: 600 46px/1 var(--serif); letter-spacing: -.01em; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.login-logo em { font-style: italic; background: linear-gradient(90deg, #ffb3c4, #f6d6a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-tag { margin: 12px 0 18px; color: rgba(255,255,255,.82); font-size: 15px; }
.brand-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.brand-track { display: inline-flex; gap: 18px; align-items: center; white-space: nowrap; animation: marquee 22s linear infinite; }
.brand-track span { font: 600 17px/1 var(--serif); letter-spacing: .22em; text-transform: uppercase; color: #fff; opacity: .92; }
.brand-track i { font-style: normal; color: #ffb3c4; font-size: 11px; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-33.33%) } }
.login-card { width: 100%; max-width: 380px; padding: 26px 22px 18px !important; border-radius: 24px; text-align: left;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-card h1 { font: 600 26px/1.1 var(--serif); margin: 0; color: #fff; }
.login-card .hint { color: rgba(255,255,255,.75) !important; }
.login-card label { color: rgba(255,255,255,.8) !important; }
.login-card input { background: rgba(255,255,255,.92); border: 0; color: var(--ink) !important; }
.login-card .btn { background: linear-gradient(90deg, var(--accent), #8e2b6b); padding: 15px; font-size: 16px; box-shadow: 0 8px 24px rgba(194,64,94,.45); }
.login-card .err { color: #ffc2cf; }
.linkbtn { border: 0; background: none; color: rgba(255,255,255,.7); font-size: 14px; padding: 6px; text-decoration: underline; }

/* codice articolo e link */
.pcode { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line); }
.code { border: 0; background: #f3ece4; border-radius: 6px; padding: 3px 7px; font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: #5d4a40;
  max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.golink { font-size: 11.5px; color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.dcode { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.code.big { font-size: 13px; padding: 7px 11px; }
.chipc { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
  font-size: 13px; text-decoration: none; color: var(--ink); }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); vertical-align: -2px; margin-right: 5px; }
.chipc .sw { margin: 0; }

/* ricerca avanzata */
.fsearch input { border-radius: 14px; min-height: 48px; font-size: 16px; padding-left: 14px; }
.fbody h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.opts.small button { min-width: 48px; padding: 8px 10px; }
.price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.price-row input { flex: 1; }
.fbtns .btn b { font-weight: 400; opacity: .85; margin-left: 4px; }
.user-row select { width: auto; min-height: 36px; padding: 6px 8px; font-size: 13px; }
#fav-who { margin-top: 0; }
#fav-who button { flex: none; padding: 9px 14px; }
#fav-who { overflow-x: auto; }

/* ======================= v3: foto intere e testata compatta */
.ph { background: #f1eeea; }
.ph img { object-fit: contain; }
.card .ph { aspect-ratio: 2/3; }
.slides { background: #f1eeea; }
.slides img { width: 100%; height: auto; aspect-ratio: auto; max-height: 82vh; object-fit: contain; }
@media (min-width: 800px) { .slides img { width: 100%; max-height: 74vh; } }
.badge.new { left: 8px; top: 8px; bottom: auto; background: rgba(255,255,255,.92); color: var(--accent); }

.top.compact { padding: calc(8px + env(safe-area-inset-top)) 16px 4px; }
.top.compact .ttl { display: flex; align-items: baseline; gap: 10px; }
.top.compact .ttl .brand { margin: 0; font-size: 10.5px; }
.top.compact h1 { font-size: 20px; }
.top.compact .icon-btn { width: 38px; height: 38px; }
.feed-head { transition: transform .25s ease; padding-top: 4px; }
.feed-head.hide { transform: translateY(-110%); }
.feed-head .bar { display: flex; align-items: center; gap: 8px; padding: 0 12px 6px; }
.seg.mini { flex: 1; margin: 0; padding: 3px; border-radius: 10px; }
.seg.mini button { padding: 6px 2px; font-size: 13px; border-radius: 8px; }
.seg.mini button small { display: none; }
.feed-head .filter-btn { padding: 8px 12px; gap: 4px; }
.feed-head #sort { padding: 7px 8px; min-height: 34px; font-size: 13px; max-width: 120px; }
.feed-head .chips { padding: 0 12px 6px; gap: 6px; }
.feed-head .chip { padding: 5px 11px; font-size: 12.5px; }
.feed-head .chip small { font-size: 10.5px; }
.brands-row .chip { font-weight: 600; letter-spacing: .02em; background: var(--card); border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.brands-row .chip.on { background: var(--accent); color: #fff; }
.brands-row .chip.on small { color: #ffe3ea; }
.feed-head .chips.active:empty { display: none; }
.bsizes label.lingerie input { border-color: var(--accent); }
.grid { padding-top: 8px; }
.uprof h2 { font-size: 17px; margin: 18px 0 8px; } .uprof .grid { padding: 4px 0; } .user-row { flex-wrap: wrap; }
.install-banner { display: flex; align-items: center; gap: 10px; margin: 8px 12px 0; padding: 10px 12px; background: var(--card);
  border-radius: 16px; box-shadow: 0 6px 18px rgba(40,20,10,.08); }
.install-banner img { width: 40px; height: 40px; border-radius: 10px; }
.install-banner span { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.install-banner small { color: var(--muted); font-size: 12px; }
.install-banner .x { border: 0; background: none; color: var(--muted); font-size: 16px; padding: 4px; }
.seg.dept button { font-weight: 600; }
.seg.dept button.on { background: var(--ink); color: #fff; }
.fbody .seg { margin: 0 0 4px; }
.brands-row .chip.dim { opacity: .6; }
.grid .card { content-visibility: auto; contain-intrinsic-size: 220px 420px; }
.notices { padding: 0 12px; display: flex; flex-direction: column; gap: 6px; }
.notices:empty { display: none; }
.notices h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 6px 4px 2px; }
.notice { display: flex; flex-direction: column; gap: 2px; background: var(--card); border-radius: 12px; padding: 10px 12px; text-decoration: none;
  color: var(--ink); font-size: 13.5px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.notice.unread { border-left: 4px solid var(--accent); }
.notice time { color: var(--muted); font-size: 11.5px; }
#site-list .site-card { }
.btn.buy { background: var(--accent); text-decoration: none; }
.guessline { margin: 0 0 10px !important; font-size: 12.5px; } .guessline small { color: var(--muted); }
.pcode .acts { display: inline-flex; align-items: center; gap: 8px; }
.buyico { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center;
  text-decoration: none; font-size: 15px; box-shadow: 0 3px 10px rgba(194,64,94,.35); flex: none; }
.buyico:active { transform: scale(.92); }
.pill.sim { background: linear-gradient(90deg,#fde7ee,#f6eadb); border-color: transparent; font-weight: 600; } .sim-grid { padding: 4px 0 !important; }
.search-banner { position: fixed; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top)); z-index: 75; display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 12px 12px 16px; box-shadow: 0 12px 34px rgba(0,0,0,.3); animation: up .25s ease; max-width: 560px; margin: 0 auto; }
.search-banner span { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.search-banner small { opacity: .75; font-size: 12px; }
.search-banner .pill.dark { background: var(--accent); border-color: var(--accent); }
.search-banner .x { border: 0; background: none; color: #fff; opacity: .7; font-size: 16px; }
.searches { display: flex; flex-direction: column; gap: 8px; }
.srch { display: flex; gap: 6px; align-items: center; }
.srch-main { flex: 1; text-align: left; border: 0; background: var(--card); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.srch-main small { color: var(--muted); font-size: 12px; }
.srch.running .srch-main { opacity: .7; }
.srch .pill { padding: 8px 11px; }
.chip.fav { border-color: #e8c66a; }
.chip.star { border-style: dashed; color: var(--muted); }
.persona-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 7px 10px; font-size: 13px; font-weight: 600; max-width: 110px; }
.persona-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.persona-btn.other { background: var(--accent); color: #fff; border-color: var(--accent); }
.persona-list { display: flex; flex-direction: column; gap: 8px; }
.persona { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px; text-align: left; }
.persona.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.persona .pic { font-size: 26px; }
.persona span:last-child { display: flex; flex-direction: column; }
.persona small { color: var(--muted); }
#who-opts button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.feed-head .seg.mini.dept button { padding: 6px 1px; font-size: 12.5px; }
.feed-head .bar { flex-wrap: wrap; row-gap: 6px; }
.feed-head .bar .seg.dept { flex: 1 1 100%; }
.feed-head .bar .seg.dept button { display: flex; align-items: center; justify-content: center; gap: 4px; }
.feed-head .bar #sort { margin-left: auto; }
.prof-edit-banner { margin: 0 16px 10px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: #8a2340; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; } .prof-edit-banner .pill { margin-left: auto; }
#profile-only { display: flex; flex-direction: column; gap: 14px; } #profile-only[hidden] { display: none !important; }
#linked-opts button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.sz.other .who { font-style: normal; font-weight: 700; color: var(--ink); background: #efe6dc; border-radius: 6px; padding: 0 6px; align-self: flex-start; font-size: 10.5px; }

.via { font-size: 12px; cursor: help; filter: saturate(.8); }
.chip.shop { border-style: dashed; }

.for-person { margin: 10px 0 4px; padding: 8px 12px; border-radius: 10px; background: #fbe9ef; color: #7a2140; font-size: 14px; }

#fav-mode { margin: 0 12px 10px; }
.cart-shops { display: flex; flex-direction: column; gap: 12px; padding: 0 12px 12px; }
.cart-shop { background: var(--card); border-radius: var(--radius); padding: 10px; box-shadow: 0 1px 2px rgba(40,20,10,.05), 0 6px 18px rgba(40,20,10,.06); }
.cart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 2px 4px 8px; }
.cart-head span { color: var(--muted); font-size: 13px; }
.cart-all { display: block; text-align: center; margin: 0 0 8px; text-decoration: none; padding: 10px; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid rgba(0,0,0,.06); }
.cart-item img { width: 52px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.cart-info b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-info small { color: var(--muted); font-size: 12px; }
.cart-acts { display: flex; gap: 6px; }
.cart-acts .pill { padding: 6px 10px; text-decoration: none; }
.cart-item.done { opacity: .8; }

.cart-chk input { width: 22px; height: 22px; accent-color: var(--accent); }
.st-ok { color: #2e7d4f; } .st-no { color: #c0272d; }
.pill.cartb { background: #fff4e8; }

.elsewhere { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: #eef4fb; display: flex; flex-direction: column; gap: 6px; }
.else-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none; color: inherit; padding: 6px 0; border-top: 1px solid rgba(0,0,0,.06); }
.else-row small { display: block; font-size: 12px; color: var(--muted); }

.sim-pick { margin: 12px 0; padding: 12px; border-radius: 12px; background: #fdf1f4; display: flex; flex-direction: column; gap: 10px; }
.sim-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.sim-cols { display: flex; flex-wrap: wrap; gap: 6px; }
.sim-cols button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(0,0,0,.1); background: #fff; border-radius: 999px; padding: 6px 10px; font-size: 13px; }
.sim-pick small { color: var(--muted); }

.auto-sim { margin: 16px 0 6px; }
.as-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.as-head b { font-size: 16px; }
.as-cols { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.as-cols button { flex: none; border: 1px solid rgba(0,0,0,.12); background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12.5px; }
.as-cols button.on { background: var(--ink); color: #fff; }
.as-cols button.sw-only { padding: 5px 7px; }
.as-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; padding-bottom: 6px; }
.as-strip > .hint, .as-strip > .as-more { grid-column: 1 / -1; }
.as-more { justify-self: center; margin-top: 4px; padding: 10px 22px; }
.as-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.as-card img { width: 100%; aspect-ratio: 2/3; height: auto; object-fit: cover; border-radius: 10px; background: #eee; }
.as-b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-p { font-size: 13px; }
.as-card small { font-size: 11px; color: var(--muted); line-height: 1.25; }

.tg-steps { margin: 6px 0 4px; padding-left: 20px; }
.tg-steps li { margin: 2px 0; }

.pill.cartb small { display: block; font-size: 12px; font-weight: 400; margin-top: 3px; opacity: .85; }
.pill.cartb.notify { background: #fff0d6; border-color: #f0b35a; }

.stats-live { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 12px; }
.live-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; background: var(--card); border-radius: 12px; padding: 10px 12px; }
.live-row b::before { content: "●"; color: #2e9d5b; margin-right: 6px; }
.live-row small { color: var(--muted); }
#stats-users, #stats-days { margin: 6px 12px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; padding: 8px 12px; }
.stat-cards div { background: var(--card); border-radius: 12px; padding: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.stat-cards b { display: block; font-size: 22px; color: var(--ink); }
.stat-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 0 12px; }
.stat-cols h3, h3.pad { font-size: 14px; margin: 12px 0 6px; }
.bar { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; font-size: 13px; margin: 3px 0; }
.bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--accent), #8e2b6b); }
.act-list { padding: 0 12px 20px; display: flex; flex-direction: column; gap: 4px; }
.act { display: grid; grid-template-columns: 78px 1fr; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.act small { color: var(--muted); }
.reco-grid:empty { display: none; }

.tg-warn { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: #fff4e0; color: #7a4b00; }

.else-p { text-align: right; white-space: nowrap; }
.else-p small, .cheap { display: block; font-size: 12px; }
.cheap, .elsewhere .cheap { color: #2e7d4f; font-weight: 600; }
.cheaper { display: block; margin: 3px 0; font-size: 12px; font-weight: 600; color: #2e7d4f; text-decoration: none; }

.mysize-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(0,0,0,.12); background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.mysize-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.mysize-chk { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(0,0,0,.12); background: #fff; border-radius: 999px; padding: 6px 12px 6px 8px; font-size: 13px; white-space: nowrap; cursor: pointer; user-select: none; }
.mysize-chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.mysize-chk.on { border-color: var(--accent); background: #fdeef2; font-weight: 600; }
#brand-chips .chip.fav { border-color: var(--accent); }
#brand-chips .chip { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

.tabs a[hidden] { display: none !important; }

.price-chk { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 2px; cursor: pointer; }
.price-chk input { width: 20px; height: 20px; accent-color: var(--accent); }
.dropped { margin: 4px 0 6px; color: #2e7d4f; font-weight: 600; font-size: 14px; }
.drop-b { font-size: 11px; font-weight: 600; color: #2e7d4f; margin-left: 4px; }

.cart-st{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:6px}
.cart-st .pill.sm{padding:4px 10px;font-size:.8rem}
.cart-st .pill.buy{background:var(--accent,#c2185b);color:#fff;border-color:transparent}
.st-tag{font-size:.8rem;font-weight:600;padding:3px 8px;border-radius:999px}
.st-tag.ok{background:#e6f4ea;color:#1e7a3a}
.st-tag.reso{background:#fdecea;color:#b3261e}
.reso-why{width:100%;display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:.8rem}
.cart-item.reso{opacity:.7}
.fit-better{margin:6px 0;background:#fff3e0;border-color:#ffb74d}
.fit-ai{margin-top:8px}
.fit-res .err{display:block;color:#b3261e}

.sale-ribbon{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:6px;
  padding:5px 10px;background:linear-gradient(90deg,#d32f2f,#e65100);color:#fff;font-weight:800;font-size:.78rem;letter-spacing:.02em;
  box-shadow:0 2px 6px rgba(0,0,0,.18);pointer-events:none}
.sale-ribbon span{font-weight:600;font-size:.75rem;opacity:.95;white-space:nowrap}
.sale-ribbon.hot{background:linear-gradient(90deg,#b71c1c,#d50000)}
.sale-ribbon.big{font-size:1rem;padding:8px 14px}
.sale-ribbon.big span{font-size:.9rem}
.gallery{position:relative}

.price-table{margin:0 12px 10px;border:1px solid rgba(0,0,0,.08);border-radius:12px;overflow-x:auto;background:#fff}
.pt-row{display:grid;grid-template-columns:minmax(110px,1.3fr) 1fr .8fr 1fr .6fr 1.4fr;gap:8px;align-items:center;padding:8px 10px;border-top:1px solid rgba(0,0,0,.06);font-size:13px;min-width:620px}
.pt-row:first-child{border-top:0}
.pt-head{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#8a827a;font-weight:600}
.pt-row small{color:#8a827a}
.pt-bar{display:block;height:4px;background:#f1ece6;border-radius:2px;margin-top:3px}
.pt-bar>i{display:block;height:100%;background:#d32f2f;border-radius:2px}
.down{color:#c62828}.up{color:#2e7d32}
.spark{display:flex;align-items:flex-end;gap:1px;height:26px}
.spark i{flex:1;min-width:2px;background:#e57373;border-radius:1px}

.top-fabs{position:absolute;top:calc(12px + env(safe-area-inset-top));right:12px;z-index:2;display:flex;gap:8px}
.top-fabs .icon-btn{display:grid;place-items:center;text-decoration:none;color:inherit}
.sheet.full .sheet-body{max-width:100%;height:100%;border-radius:0}
@media (min-width:800px){.sheet.full .slides img{width:40%}}
.via-shop{font-size:.85em;color:var(--muted);text-transform:none;letter-spacing:0}
.as-b small{font-weight:400;color:var(--muted)}

@media (hover:hover) and (pointer:fine){
  .chips,.strip{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.25) transparent;cursor:grab}
  .chips::-webkit-scrollbar,.strip::-webkit-scrollbar{display:block;height:6px}
  .chips::-webkit-scrollbar-thumb,.strip::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2);border-radius:3px}
  .chips.dragging,.strip.dragging{cursor:grabbing;user-select:none}
}

.chip.line{border-color:#e91e63;color:#ad1457}
.chip.line.on{background:#ad1457;color:#fff;border-color:#ad1457}

.as-head{flex-wrap:wrap;row-gap:6px}
.as-flags{display:flex;gap:6px;flex-wrap:wrap;width:100%}
.as-flags .mysize-chk{padding:4px 10px 4px 6px;font-size:12px}
