/* Zoll-Haus \2014  public site and admin panel styles.
   Layout: classic catalogue-store structure (search header, red category bar, hero slider, promo banners,
   tabbed product grid, category carousel), on white, in the Zoll-Haus red/warm-grey palette. Single light theme by request. */
:root {
  color-scheme: light;
  --white: #FFFFFF;
  --bg-soft: #F6F5F3;      /* section bands, footer */
  --line: #E7E4E0;
  --ink: #232020;          /* headings & text */
  --mute: #6B6460;         /* secondary text (from logo grey #544F4B) */
  --rot: #B83B3A;          /* Zoll red, from the vector logo */
  --rot-dark: #9A302F;     /* hover, "Todas las categor\ed as" block */
  --rot-soft: #F8ECEB;
  --wa: #1F9D55;           /* only for the WhatsApp glyph */
  --ok: #1F7A45; --warn: #9A6B00;

  --f-ui: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 1240px;
  --r: 6px;
  --shadow: 0 10px 30px -18px rgba(35, 32, 32, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);   /* soft ease-out used by every transition */
  --t-fast: .22s; --t-med: .38s; --t-slow: .9s;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--f-ui); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.de { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--rot); font-weight: 600; }
.muted { color: var(--mute); }
svg.i { width: 20px; height: 20px; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: var(--r); padding: 11px 22px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); white-space: nowrap; }
.btn-rot:hover { box-shadow: 0 8px 18px -10px rgba(184, 59, 58, .7); }
.btn:active { transform: translateY(1px); }
.btn-rot { background: var(--rot); color: #fff; }
.btn-rot:hover { background: var(--rot-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--rot); }
.btn-line { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-line:hover { border-color: var(--rot); color: var(--rot); }
.btn-white { background: #fff; color: var(--rot); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.wa-dot { width: 18px; height: 18px; }

/* ---------- prototype ribbon ---------- */
.proto { background: var(--rot-soft); color: var(--rot-dark); font-size: 12px; }
.proto .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; align-items: center; padding-block: 6px; }
.proto a { font-weight: 600; }

/* ---------- topbar + header ---------- */
.topbar { border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--mute); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--rot); }
.topbar span + span::before { content: "\b7 "; margin: 0 8px; }
.head .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding-block: 18px; }
.logo img { height: 34px; width: auto; }
.search-box { position: relative; display: flex; border: 2px solid var(--rot); border-radius: var(--r); background: #fff; max-width: 640px; width: 100%; justify-self: center; }
.search-box select { border: 0; border-right: 1px solid var(--line); background: var(--bg-soft); padding: 0 12px; font-size: 13px; max-width: 190px; border-radius: var(--r) 0 0 var(--r); cursor: pointer; }
.search-box input { flex: 1; min-width: 0; border: 0; padding: 11px 14px; font-size: 14px; background: transparent; }
.search-box input:focus { outline: none; }
.search-box:focus-within { box-shadow: 0 0 0 3px var(--rot-soft); }
.search-box button { border: 0; background: var(--rot); color: #fff; padding: 0 22px; font-weight: 600; cursor: pointer; }
.search-box button:hover { background: var(--rot-dark); }
.suggest:not([hidden]) { animation: drop var(--t-fast) var(--ease) both; }
.suggest { position: absolute; z-index: 40; left: -2px; right: -2px; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; max-height: 420px; overflow: auto; }
.suggest a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 4px; text-decoration: none; }
.suggest a:hover, .suggest a.on { background: var(--bg-soft); }
.suggest img { width: 48px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.suggest b { font-weight: 500; display: block; font-size: 14px; line-height: 1.35; }
.suggest small { color: var(--mute); font-size: 12px; }
.suggest mark { background: transparent; color: var(--rot); font-weight: 700; }
.suggest .all { display: block; text-align: center; padding: 10px; font-weight: 600; color: var(--rot); }
.suggest .none { padding: 12px; color: var(--mute); font-size: 14px; }
.head-help { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.head-help .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--rot-soft); color: var(--rot); display: grid; place-items: center; }
.head-help small { display: block; font-size: 12px; color: var(--mute); line-height: 1.2; }
.head-help b { font-size: 14px; font-weight: 600; }
.head-help:hover b { color: var(--rot); }
.head-right { display: flex; gap: 8px; align-items: center; justify-self: end; }
.icon-btn.menu-btn { display: none; }

/* red category bar */
.navbar { background: var(--rot); color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; }
.navbar .wrap { display: flex; align-items: stretch; gap: 0; }
.allcats { position: relative; }
.allcats > button { height: 100%; display: flex; align-items: center; gap: 10px; background: var(--rot-dark); color: #fff; border: 0; padding: 0 22px; min-width: 250px; font-weight: 600; cursor: pointer; }
.allcats ul { position: absolute; left: 0; top: 100%; z-index: 35; min-width: 250px; background: #fff; color: var(--ink); list-style: none; margin: 0; padding: 6px 0; border: 1px solid var(--line); border-top: 0; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast); }
.allcats.open ul { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s; }
.allcats li a { transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease); }
.allcats li a:hover { padding-left: 26px; }
.allcats li a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 20px; text-decoration: none; font-size: 14px; }
.allcats li a:hover { background: var(--bg-soft); color: var(--rot); }
.allcats li small { color: var(--mute); }
.mainnav { display: flex; flex: 1; gap: 4px; padding-left: 16px; }
.mainnav a { display: flex; align-items: center; white-space: nowrap; padding: 15px 12px; text-decoration: none; font-weight: 500; font-size: 14px; position: relative; }
.mainnav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 2px; background: #fff; transform: scaleX(0); transition: transform var(--t-med) var(--ease); }
.mainnav a:hover::after, .mainnav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-extra { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.nav-extra a { display: flex; gap: 8px; align-items: center; text-decoration: none; }
.nav-extra a { white-space: nowrap; }
@media (max-width: 1320px) { .nav-extra a:first-child { display: none; } }
@media (max-width: 1160px) { .nav-extra { display: none; } .allcats > button { min-width: 0; } }
@media (max-width: 920px) {
  .head .wrap { grid-template-columns: auto auto; gap: 14px; padding-block: 12px; }
  .head .search-box { grid-column: 1 / -1; grid-row: 2; }
  .search-box select { display: none; }
  .head-help .txt { display: none; }
  .icon-btn.menu-btn { display: grid; }
  .head-right { display: flex; gap: 8px; justify-self: end; align-items: center; }
  .mainnav { display: none; }
  .navbar .wrap { padding-left: 0; padding-right: 0; }
  .allcats, .allcats > button { width: 100%; }
  .allcats > button { padding: 13px max(16px, env(safe-area-inset-left, 0px)); min-width: 0; }
  .allcats ul { width: 100%; }
  .navbar.open .mainnav { animation: drop var(--t-fast) var(--ease) both; display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--ink); padding: 8px 0; box-shadow: var(--shadow); }
  .navbar.open .mainnav a { padding: 12px 20px; }
  .navbar.open .mainnav a::after { display: none; }
}
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }

/* ---------- home: hero slider ---------- */
.hero { position: relative; background: var(--bg-soft); overflow: hidden; }
.hero { display: grid; }
.slide { grid-area: 1 / 1; position: relative; min-height: 460px; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity var(--t-slow) var(--ease), visibility 0s linear var(--t-slow); }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity var(--t-slow) var(--ease), visibility 0s; z-index: 1; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-active > img { transform: scale(1); }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 34%, rgba(255,255,255,.2) 62%, rgba(255,255,255,0) 80%); z-index: 1; }
.slide .wrap { position: relative; z-index: 2; width: 100%; }
.slide-copy { max-width: 520px; display: grid; gap: 16px; padding-block: 56px; }
.slide.is-active .slide-copy > * { animation: rise .8s var(--ease) both; }
.slide.is-active .slide-copy > :nth-child(2) { animation-delay: .08s; }
.slide.is-active .slide-copy > :nth-child(3) { animation-delay: .16s; }
.slide.is-active .slide-copy > :nth-child(4) { animation-delay: .24s; }
.slide h1, .slide h2 { font-size: clamp(30px, 2.2vw + 18px, 46px); font-weight: 700; letter-spacing: -.01em; }
.slide h1 em, .slide h2 em { font-style: normal; color: var(--rot); }
.slide p { color: var(--mute); font-size: 16px; max-width: 440px; }
.slide .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
main.page-in { animation: fade-in var(--t-med) var(--ease) both; }
.dot { transition: background-color var(--t-med) var(--ease), width var(--t-med) var(--ease); }
.dot[aria-current="true"] { width: 44px; }
.hero-ctrl { position: absolute; z-index: 3; pointer-events: none; left: 0; right: 0; bottom: 18px; }
.hero-ctrl .wrap { display: flex; gap: 8px; align-items: center; }
.hero-ctrl button { pointer-events: auto; }
.dot { width: 28px; height: 4px; border-radius: 2px; border: 0; background: rgba(35,32,32,.2); cursor: pointer; padding: 0; }
.dot[aria-current="true"] { background: var(--rot); }
.arrow { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.arrow + .arrow { margin-left: 0; }
.arrow:hover { border-color: var(--rot); color: var(--rot); }
@media (max-width: 760px) {
  .slide { min-height: 0; flex-direction: column; align-items: stretch; }
  .slide > img { position: relative; height: 220px; }
  .slide::before { display: none; }
  .slide-copy { padding-block: 22px 56px; }
}

/* ---------- sections ---------- */
.sec { padding-block: 56px; }
.sec-soft { background: var(--bg-soft); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sec-head h2 { font-size: 22px; }
.sec-head .de { display: block; margin-bottom: 4px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.tabs button { border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--mute); font-weight: 500; border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--rot); border-color: var(--rot); }
.tabs button:hover { color: var(--ink); }

/* promo banners (photo + white wash) */
.promos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.promo { position: relative; min-height: 220px; border-radius: var(--r); overflow: hidden; text-decoration: none; display: flex; align-items: center; background: var(--bg-soft); isolation: isolate; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); z-index: -2; }
.promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 42%, rgba(255,255,255,0) 75%); z-index: -1; }
.promo:hover img { transform: scale(1.05); }
.promo div { padding: 28px; display: grid; gap: 6px; max-width: 62%; }
.promo h3 { font-size: 22px; }
.promo p { color: var(--mute); font-size: 14px; }
.promo span.more { color: var(--rot); font-weight: 600; font-size: 13px; margin-top: 8px; display: inline-flex; gap: 6px; border-bottom: 2px solid var(--rot); justify-self: start; }
@media (max-width: 760px) { .promos { grid-template-columns: minmax(0, 1fr); } .promo div { max-width: 78%; } }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease); animation: fade-in var(--t-med) var(--ease) both; }
.card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-3px); }
.grid { transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.grid.is-swapping { opacity: 0; transform: translateY(6px); }
.grid > .card:nth-child(2) { animation-delay: .03s; } .grid > .card:nth-child(3) { animation-delay: .06s; } .grid > .card:nth-child(4) { animation-delay: .09s; } .grid > .card:nth-child(5) { animation-delay: .12s; } .grid > .card:nth-child(n+6) { animation-delay: .15s; }
.card .pic { display: grid; place-items: center; aspect-ratio: 1; padding: 18px; overflow: hidden; border-radius: var(--r) var(--r) 0 0; }
.card .pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.card .pic.cover { padding: 0; }
.card .pic.cover img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.card:hover .pic img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--rot); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 3px; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; border-top: 1px solid var(--line); }
.card .brand { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.card h3 { font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:hover { color: var(--rot); }
.card .meta { font-size: 12.5px; color: var(--mute); }
.card .meta .mono { color: var(--ink); }
.card .foot { margin-top: auto; padding-top: 12px; display: flex; gap: 8px; align-items: center; }
.card .foot .btn { position: relative; z-index: 2; flex: 1; }

/* wide banner */
.wide { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--rot); color: #fff; border-radius: var(--r); overflow: hidden; min-height: 260px; }
.wide .copy { padding: 40px; display: grid; gap: 14px; align-content: center; }
.wide .de { color: #fff; opacity: .85; }
.wide h2 { font-size: clamp(22px, 1.4vw + 14px, 30px); }
.wide p { opacity: .9; max-width: 440px; }
.wide img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .wide { grid-template-columns: minmax(0, 1fr); } .wide img { height: 200px; order: -1; } .wide .copy { padding: 26px 20px; } }

/* category carousel */
.carousel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.car-btns { display: flex; gap: 6px; }
.car-btns button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.car-btns button:hover { border-color: var(--rot); color: var(--rot); }
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.cat { scroll-snap-align: start; text-decoration: none; display: grid; gap: 10px; text-align: center; }
.cat .tile { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; padding: 16px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; overflow: hidden; }
.cat .tile img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat .tile.cover { padding: 0; } .cat .tile.cover img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.cat:hover .tile { border-color: var(--rot); box-shadow: var(--shadow); }
.cat b { font-weight: 500; font-size: 14px; }
.cat:hover b { color: var(--rot); }
.cat small { display: block; color: var(--mute); font-size: 12px; margin-top: -8px; }

/* brands strip */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.brands a { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 12px; text-align: center; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--mute); background: #fff; transition: color .2s ease, border-color .2s ease; }
.brands a:hover { color: var(--rot); border-color: var(--rot); }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 20px; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; align-content: start; }
.pill .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--rot-soft); color: var(--rot); display: grid; place-items: center; }
.pill h3 { font-size: 16px; }
.pill p { color: var(--mute); font-size: 14px; }
.stats { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.stats b { display: block; font-size: 40px; font-weight: 700; color: var(--rot); line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--mute); }
.stats blockquote { grid-column: 1 / -1; margin: 6px 0 0; font-size: 14px; border-left: 3px solid var(--rot); padding-left: 12px; color: var(--ink); }
.stats blockquote footer { font-size: 12px; color: var(--mute); margin-top: 6px; }
@media (max-width: 980px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* visit */
.visit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.visit img { border-radius: var(--r); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.facts { display: grid; gap: 0; margin: 16px 0 22px; }
.facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { color: var(--mute); }
.facts dd { margin: 0; font-weight: 500; }
.pending { color: var(--mute); font-style: italic; font-weight: 400; }
@media (max-width: 860px) { .visit { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer (light) ---------- */
.footer { background: var(--bg-soft); border-top: 3px solid var(--rot); margin-top: 0; }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 48px 32px; font-size: 14px; }
.footer img { height: 30px; width: auto; margin-bottom: 14px; }
.footer p { color: var(--mute); max-width: 320px; }
.footer h4 { font-size: 14px; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--mute); }
.footer a:hover { color: var(--rot); }
.footer .legal { border-top: 1px solid var(--line); padding-block: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--mute); }
@media (max-width: 860px) { .footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer .cols > :first-child { grid-column: 1 / -1; } }

/* floating WhatsApp */
.fab { transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.fab:hover { transform: translateY(-2px); }
.fab { position: fixed; z-index: 50; right: max(18px, calc(env(safe-area-inset-right, 0px) + 18px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 8px; background: var(--wa); color: #fff; border-radius: 999px; padding: 12px 18px 12px 14px; text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.fab:hover { background: #17834A; }
.fab svg { width: 24px; height: 24px; }
@media (max-width: 560px) { .fab span { display: none; } .fab { padding: 14px; } }

/* ---------- breadcrumbs & page head ---------- */
.crumbs { font-size: 13px; color: var(--mute); padding-block: 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "\203a "; margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--rot); }
.page-title { padding-block: 30px 10px; }
.page-title h1 { font-size: 28px; }
.page-title p { color: var(--mute); margin-top: 6px; max-width: 640px; }

/* ---------- catalog listing ---------- */
.listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-block: 24px 64px; }
.filters { display: grid; gap: 18px; align-content: start; }
.fbox { border: 1px solid var(--line); border-radius: var(--r); }
.fbox h3 { font-size: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--r) var(--r) 0 0; }
.fbox ul { list-style: none; margin: 0; padding: 8px 0; }
.fbox li a, .fbox label { display: flex; justify-content: space-between; gap: 10px; padding: 7px 16px; text-decoration: none; font-size: 14px; cursor: pointer; }
.fbox li a:hover, .fbox label:hover { color: var(--rot); }
.fbox li a[aria-current="page"] { color: var(--rot); font-weight: 600; }
.fbox li ul { padding: 0 0 0 12px; }
.fbox small { color: var(--mute); }
.fbox label span { display: flex; gap: 10px; align-items: center; }
.fbox input[type="checkbox"] { accent-color: var(--rot); width: 16px; height: 16px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.toolbar select { border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; background: #fff; }
.toolbar .inline-search { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.toolbar .inline-search input { border: 0; padding: 6px 10px; min-width: 0; width: 220px; }
.toolbar .inline-search input:focus { outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--rot); color: var(--rot); background: var(--rot-soft); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; cursor: pointer; }
.chip b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--rot); color: #fff; font-size: 11px; }
.chip.clear { border-color: var(--line); background: #fff; color: var(--mute); padding-right: 12px; }
.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 40px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty h3 { font-size: 18px; }
.filter-toggle { display: none; }
@media (max-width: 920px) {
  .listing { grid-template-columns: minmax(0, 1fr); }
  .filters { display: none; }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
  .toolbar .inline-search input { width: 150px; }
}
.skeleton { background: linear-gradient(90deg, var(--bg-soft), #fff, var(--bg-soft)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: var(--r); height: 320px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; padding-block: 30px 40px; align-items: start; }
.gallery { display: grid; gap: 12px; }
.stage { position: relative; border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 1; overflow: hidden; background: #fff; }
.stage img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.stage.cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; mix-blend-mode: normal; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs button { width: 80px; height: 80px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 6px; cursor: pointer; display: grid; place-items: center; }
.thumbs button[aria-pressed="true"] { border: 2px solid var(--rot); }
.thumbs img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.info { display: grid; gap: 16px; min-width: 0; }
.info .brand-link { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--rot); font-weight: 600; text-decoration: none; }
.info h1 { font-size: clamp(22px, 1vw + 16px, 30px); font-weight: 600; }
.info .de-name { color: var(--mute); font-size: 14px; margin-top: -8px; }
.idrow { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; color: var(--mute); padding-block: 12px; border-block: 1px solid var(--line); }
.idrow b { color: var(--ink); font-weight: 500; }
.lead { color: var(--mute); }
.pick legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sizes span { display: block; border: 1px solid var(--line); border-radius: 4px; padding: 7px 12px; font-size: 13px; font-family: var(--f-mono); cursor: pointer; background: #fff; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.selbox.flash dd { animation: fade-in var(--t-med) var(--ease) both; }
tbody tr { transition: background-color var(--t-med) var(--ease); }
[role="tabpanel"]:not([hidden]) { animation: fade-in var(--t-med) var(--ease) both; }
.sizes input:hover + span { border-color: var(--ink); }
.sizes input:checked + span { border-color: var(--rot); background: var(--rot); color: #fff; }
.sizes input:focus-visible + span { outline: 3px solid var(--rot); outline-offset: 2px; }
.selbox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; background: var(--bg-soft); border-radius: var(--r); padding: 12px 16px; font-size: 13.5px; }
.selbox dt { color: var(--mute); }
.selbox dd { margin: 0; overflow-wrap: anywhere; }
.consult { display: grid; gap: 8px; }
.consult .btn { padding-block: 14px; font-size: 15px; }
.preview { font-size: 13px; color: var(--mute); }
.preview q { color: var(--ink); }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 12.5px; color: var(--mute); }
.perks div { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.perks svg { color: var(--rot); }
@media (max-width: 900px) { .pdp { grid-template-columns: minmax(0, 1fr); gap: 24px; } .stage { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .perks { grid-template-columns: minmax(0, 1fr); } }

.ptabs { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 48px; }
.ptabs [role="tablist"] { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--r) var(--r) 0 0; }
.ptabs [role="tab"] { border: 0; background: none; padding: 14px 20px; cursor: pointer; font-weight: 500; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ptabs [role="tab"][aria-selected="true"] { color: var(--rot); border-color: var(--rot); background: #fff; }
.ptabs [role="tabpanel"] { padding: 22px; }
.props { margin: 0; display: grid; }
.props div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.props div:last-child { border-bottom: 0; }
.props dt { color: var(--mute); }
.props dd { margin: 0; }
.source { margin-top: 14px; font-size: 12px; color: var(--mute); background: var(--bg-soft); padding: 8px 12px; border-radius: 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--mute); padding: 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); }
tbody tr:hover { background: var(--bg-soft); }
tbody tr.on { background: var(--rot-soft); }
td a { color: var(--rot); font-weight: 600; text-decoration: none; white-space: nowrap; }
.docs { display: grid; gap: 10px; }
.doc { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; text-decoration: none; }
.doc:hover { border-color: var(--rot); }
.doc .ext { font-family: var(--f-mono); font-size: 11px; color: #fff; background: var(--rot); padding: 4px 6px; border-radius: 3px; }
.doc small { display: block; color: var(--mute); font-size: 12.5px; }
@media (max-width: 600px) { .props div { grid-template-columns: minmax(0, 1fr); gap: 2px; } .ptabs [role="tab"] { padding: 12px 14px; } }

/* ---------- simple content pages ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.two img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose { display: grid; gap: 14px; color: var(--mute); max-width: 640px; }
.prose h2 { color: var(--ink); font-size: 24px; }
.lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.line-card { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 6px; align-content: start; }
.line-card.own { border-color: var(--rot); background: var(--rot-soft); }
.line-card h3 { font-size: 17px; }
.line-card small { color: var(--rot); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.line-card p { color: var(--mute); font-size: 14px; }
.brand-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.brand-tile { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-decoration: none; display: grid; gap: 4px; }
.brand-tile:hover { border-color: var(--rot); box-shadow: var(--shadow); }
.brand-tile b { font-size: 22px; }
.brand-tile span { color: var(--mute); font-size: 13.5px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form select, .form textarea { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: #fff; font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--rot); outline-offset: 0; border-color: var(--rot); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .two, .form .row { grid-template-columns: minmax(0, 1fr); } }
.note { font-size: 13px; color: var(--mute); }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r); font-size: 14px; box-shadow: var(--shadow); }

/* ================= ADMIN ================= */
.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: var(--bg-soft); }
.aside { background: #fff; border-right: 1px solid var(--line); padding: 20px 0; display: flex; flex-direction: column; gap: 4px; }
.aside .logo { padding: 0 20px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.aside .logo img { height: 26px; }
.aside .logo small { display: block; font-size: 11px; color: var(--mute); margin-top: 6px; letter-spacing: .08em; text-transform: uppercase; }
.aside a { display: flex; gap: 10px; align-items: center; padding: 10px 20px; text-decoration: none; font-size: 14px; color: var(--mute); border-left: 3px solid transparent; }
.aside a:hover { color: var(--ink); background: var(--bg-soft); }
.aside a[aria-current="page"] { color: var(--rot); border-color: var(--rot); background: var(--rot-soft); font-weight: 500; }
.aside .spacer { flex: 1; }
.amain { min-width: 0; }
.abar { background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 28px; }
.abar h1 { font-size: 20px; }
.abar .who { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--mute); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--rot); color: #fff; display: grid; place-items: center; font-weight: 600; }
.acontent { padding: 24px 28px 64px; display: grid; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.panel > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel > header h2 { font-size: 15px; }
.panel .pbody { padding: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.kpi b { display: block; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--mute); }
.atable { width: 100%; min-width: 640px; }
.atable td, .atable th { padding: 10px 14px; }
.atable img { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.atable .name { display: flex; gap: 12px; align-items: center; min-width: 240px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.status.on { background: #E5F3EA; color: var(--ok); }
.status.off { background: #F3EFE6; color: var(--warn); }
.role { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); }
.role.is-admin { background: var(--rot-soft); color: var(--rot-dark); }
.afilters { display: flex; flex-wrap: wrap; gap: 10px; }
.afilters input, .afilters select { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; background: #fff; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.rows { display: grid; gap: 8px; }
.rows .r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; }
.rows input { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; }
.x { width: 36px; border: 1px solid var(--line); background: #fff; border-radius: var(--r); cursor: pointer; color: var(--mute); }
.x:hover { color: var(--rot); border-color: var(--rot); }
.media { display: flex; gap: 10px; flex-wrap: wrap; }
.media figure { margin: 0; width: 96px; height: 96px; border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; padding: 6px; background: #fff; }
.media figure img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.media .add { border-style: dashed; color: var(--mute); font-size: 12px; text-align: center; cursor: pointer; }
.switch { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.switch input { width: 40px; height: 22px; accent-color: var(--rot); }
.login { min-height: 100vh; display: grid; place-items: center; background: var(--bg-soft); padding: 24px 16px; }
.login .box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 36px; width: min(420px, 100%); display: grid; gap: 18px; box-shadow: var(--shadow); }
.login .box img { height: 32px; width: auto; }
.callout { background: var(--rot-soft); color: var(--rot-dark); border-radius: var(--r); padding: 12px 14px; font-size: 13px; }
@media (max-width: 980px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .editor { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .aside { flex-direction: row; align-items: center; overflow-x: auto; padding: 4px 8px; gap: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .aside .logo, .aside .spacer { display: none; }
  .aside a { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; padding: 10px 12px; }
  .aside a[aria-current="page"] { border-bottom-color: var(--rot); }
  .abar, .acontent { padding-left: 16px; padding-right: 16px; }
  .abar .who > span:last-child { display: none; }
  .rows .r { grid-template-columns: minmax(0, 1fr) auto; } .rows .r input:nth-child(2) { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01s !important; scroll-behavior: auto !important; } .slide > img { transform: none; } }

/* phone refinements */
@media (max-width: 560px) {
  .topbar { display: none; }
  .proto .wrap { font-size: 11.5px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card .pic { padding: 10px; }
  .card .body { padding: 10px 10px 12px; }
  .card h3 { font-size: 13.5px; }
  .card .foot .btn { padding-inline: 8px; }
  .badge { top: 8px; left: 8px; }
  .sec { padding-block: 40px; }
}
/* ================= production additions ================= */
[hidden] { display: none !important; }
.skip:focus { position: fixed; z-index: 100; left: 12px; top: 12px; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; border: 2px solid var(--rot); border-radius: var(--r); }
.h2 { font-size: 24px; } .h2b { font-size: 26px; margin-top: 6px; } .h3 { font-size: 18px; } .h4 { font-size: 14px; margin: 8px 0 0; }
.footer h2.h4 { margin: 0 0 12px; }
.fbox h2.h3 { font-size: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--r) var(--r) 0 0; }
.fbox-body { padding: 14px 16px; display: grid; gap: 10px; font-size: 14px; }
.toolbar-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.panel .row-actions, .pbody .row-actions, .group .row-actions, .stack .row-actions { justify-content: flex-start; margin-top: 10px; }
.empty h2.h3 { font-size: 18px; }
.related { margin-bottom: 56px; }
.idrow a { text-decoration: none; }
.news-card { text-decoration: none; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.news-card:hover { border-color: var(--rot); box-shadow: var(--shadow); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.prose-page { max-width: 760px; display: grid; gap: 16px; }
.prose-page h1 { font-size: 30px; }
.news-img { width: 100%; border-radius: var(--r); }
.line-card h2.h3 { font-size: 17px; }
.line-card .btn { justify-self: start; margin-top: 8px; }
.promo h2.h3 { font-size: 22px; }

/* admin */
.is-admin { background: var(--bg-soft); }
.stack { display: grid; gap: 20px; align-content: start; }
.pbody.stack { gap: 12px; }
.small { font-size: 12.5px; } .block { display: block; }
.small-label { display: grid; gap: 4px; font-size: 13px; color: var(--mute); }
.small-label input { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; }
.list-lines { display: grid; gap: 6px; font-size: 14px; margin: 0; padding-left: 18px; }
.pbody.list-lines { padding-left: 18px; }
.noimg { width: 44px; height: 44px; display: grid; place-items: center; font-size: 10px; color: var(--mute); border: 1px dashed var(--line); border-radius: 4px; flex: none; }
.indent { color: var(--mute); padding-left: 10px; }
.slug-wrap { display: flex; align-items: center; gap: 6px; } .slug-wrap input { flex: 1; min-width: 0; }
.vtable { min-width: 0; } .vtable th, .vtable td { padding: 4px; border: 0; }
.vtable input { width: 100%; min-width: 90px; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; font-size: 13px; }
.vtable .vcol { font-weight: 600; font-family: var(--f-ui); background: var(--bg-soft); }
.media figure { position: relative; }
.tile-actions { position: absolute; top: 4px; right: 4px; display: flex; gap: 2px; opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.media figure:hover .tile-actions, .media figure:focus-within .tile-actions { opacity: 1; }
.tile-actions button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.file-btn { cursor: pointer; }
.btn.danger { color: var(--rot); } .btn.danger:hover { background: var(--rot); color: #fff; border-color: var(--rot); }
.btn:disabled { opacity: .6; cursor: progress; }
.docs .doc input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; }
.group { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 12px; margin: 0; }
.group legend { font-weight: 600; padding: 0 6px; }
.group-item { border-left: 3px solid var(--rot-soft); padding-left: 12px; display: grid; gap: 10px; }
.field-image { display: grid; gap: 6px; justify-items: start; }
.field-image .mono.small { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; }
.ptabs-admin { display: flex; flex-wrap: wrap; gap: 6px; }
.ptabs-admin button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 13.5px; }
.ptabs-admin button[aria-selected="true"] { background: var(--rot); border-color: var(--rot); color: #fff; }
.alt-input { width: 100%; min-width: 180px; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; }
.atable .name a { text-decoration: none; } .atable .name a:hover { color: var(--rot); }
.atable td a { color: var(--rot); }
.perm td + td, .perm th + th { text-align: center; }
.copy-row { display: flex; gap: 8px; margin-top: 8px; } .copy-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; background: #fff; }
.toast.is-error { background: var(--rot-dark); }
dialog.picker { border: 0; border-radius: var(--r); padding: 0; width: min(760px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog.picker::backdrop { background: rgba(35, 32, 32, .45); }
dialog.picker form { padding: 18px; display: grid; gap: 14px; }
dialog.picker header { display: flex; justify-content: space-between; align-items: center; }
dialog.picker .pick-q { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; }
.pick-grid { max-height: 60vh; overflow: auto; }
.pick-grid button { width: 110px; height: 110px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 6px; cursor: pointer; display: grid; place-items: center; gap: 4px; }
.pick-grid button:hover { border-color: var(--rot); }
.pick-grid img { max-height: 100%; object-fit: contain; }
.pick-grid small { font-size: 11px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
dialog.confirm { width: min(440px, calc(100vw - 32px)); }
.btn.danger-solid { background: var(--rot); }
.wide-box { width: min(560px, 100%); padding: 0; }
.login .box.form { gap: 14px; }
.login .note { text-align: center; }
/* language switcher */
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.langs a { padding: 6px 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-decoration: none; color: var(--mute); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.langs a + a { border-left: 1px solid var(--line); }
.langs a:hover { color: var(--rot); }
.langs a[aria-current="true"] { background: var(--rot); color: #fff; }
.langs-footer { margin-top: 16px; }
.lang-suggest { background: var(--ink); color: #fff; font-size: 13.5px; animation: drop var(--t-med) var(--ease) both; }
.lang-suggest .wrap { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center; padding-block: 8px; }
.lang-suggest .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
@media (max-width: 920px) { .head-right .langs a { padding: 6px 8px; } }
@media (max-width: 380px) { .head-help { display: none; } }

/* admin: language being edited */
.edit-lang { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.edit-lang .small { padding: 0 6px 0 8px; color: var(--mute); }
.edit-lang button { border: 0; background: transparent; border-radius: 999px; padding: 4px 10px; font-weight: 600; font-size: 12px; cursor: pointer; color: var(--mute); }
.edit-lang button[aria-pressed="true"] { background: var(--rot); color: #fff; }
.lchips { display: inline-flex; gap: 3px; margin-left: 8px; vertical-align: middle; }
.lchip { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 1px 5px; border-radius: 3px; }
.lchip.ok { background: #E5F3EA; color: var(--ok); }
.lchip.miss { background: #F3EFE6; color: var(--warn); }
.lang-badge { font-size: 13px; color: var(--mute); display: inline-flex; align-items: center; gap: 4px; margin: 0; }
