:root {
  --radius: 0.625rem;
  --ink: #1f1f1f;
  --ink-soft: #484848;
  --brand: #e50717;
  --brand-fg: #fff;
  --surface: #fff;
  --surface-muted: #f7f7f8;
  --border: #e8e8ea;
  --accent: #f4f4f5;
  --ok: #059669;
  --wait: #f59e0b;
  --ok-bg: #d1fae5;
  --ok-fg: #065f46;
  --wait-bg: #fef3c7;
  --wait-fg: #92400e;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; font-family: var(--font); background: #fff; color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; background: none; border: 0; color: inherit; }
h1, h2, p { margin: 0; }

.site { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.site-main { flex: 1; }
.container { width: 100%; max-width: 1680px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 768px) {
  .container { padding-left: 3rem; padding-right: 3rem; }
}

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-sm { width: 0.875rem; height: 0.875rem; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.75rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-fluid { width: 100%; height: auto; }
.rounded-lg { border-radius: var(--radius); }
.overflow-hidden { overflow: hidden; }
.center { display: flex; justify-content: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.underline { text-decoration: underline; font-size: 0.875rem; }
.underline:hover { color: var(--brand); }
.btn-block { width: 100%; }
.self-start { align-self: flex-start; }
.grow { flex: 1; }
.shrink { flex-shrink: 0; }
.wrap { flex-wrap: wrap; }
.opacity-60 { opacity: 0.6; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-lg { max-width: 32rem; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.9rem 2rem; border-radius: 999px;
  background: var(--brand); color: var(--brand-fg);
  font-weight: 700; font-size: 0.875rem; line-height: 1; border: 0;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--brand) 60%, transparent);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-primary:active { transform: none; filter: brightness(0.95); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.9rem 2rem; border-radius: 999px;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
  font-weight: 700; font-size: 0.875rem; line-height: 1;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }

.chip {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.25rem; border-radius: 0.5rem;
  border: 1px solid var(--border); background: #fff;
  color: var(--ink-soft); font-weight: 700; font-size: 0.875rem;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chip.is-active, .chip[data-active="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-radio { position: relative; padding: 0.5rem 1rem; font-size: 0.875rem; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }

.nav-link {
  position: relative; color: var(--ink); font-size: 1rem;
  padding: 0.25rem 0; background: none; border: 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--brand); transform: scaleX(0);
  transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.section-title { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.crumb { padding-top: 1rem; padding-bottom: 2rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 500; }
.crumb a:hover { color: var(--brand); }
.crumb span:nth-child(even) { color: var(--ink-soft); }

.announce { background: var(--ink); color: #fff; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 0.625rem; padding: 0.75rem 0; font-size: 0.875rem; font-weight: 500; text-align: center; }
.header { position: relative; z-index: 50; }
.header-bar { background: #fff; border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; gap: 1.5rem; }
.header-left { display: flex; align-items: center; gap: 3.5rem; }
.logo { font-weight: 900; letter-spacing: -0.03em; font-size: 1.5rem; }
.logo span { color: var(--brand); }
.logo-lg { font-size: 1.5rem; }
.nav-main { display: none; align-items: center; gap: 2.5rem; }
@media (min-width: 768px) { .nav-main { display: flex; } }

.search { position: relative; display: none; align-items: center; width: 24rem; max-width: 40vw; height: 3rem; border: 1px solid var(--border); border-radius: 999px; padding: 0 1rem 0 3rem; }
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; border: 0; outline: none; background: transparent; font-size: 1rem; }
.search-icon { position: absolute; left: 1rem; color: var(--ink-soft); }
@media (min-width: 768px) { .search { display: flex; } }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.15); }
.mega[hidden] { display: none; }
.mega-backdrop { position: fixed; inset: 0; top: 7.5rem; background: rgb(0 0 0 / 0.2); backdrop-filter: blur(4px); z-index: -1; }
.mega-backdrop[hidden] { display: none; }
.mega-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 0; }
@media (min-width: 900px) { .mega-grid { grid-template-columns: 1fr 360px; } }
.mega-kicker { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft); margin-bottom: 1.5rem; }
.mega-kicker-light { color: rgb(255 255 255 / 0.8); }
.mega-cats { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 700px) { .mega-cats { grid-template-columns: repeat(3, 1fr); } }
.mega-cat { display: flex; align-items: center; gap: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.875rem; font-weight: 700; color: var(--ink-soft); transition: border-color .18s, transform .18s, color .18s; }
.mega-cat:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.mega-promo { display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; border-radius: var(--radius); background: var(--brand); color: #fff; padding: 2rem; }
.mega-promo-title { margin-top: 0.75rem; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.mega-promo-text { margin-top: 0.5rem; font-size: 0.875rem; opacity: 0.9; }
.mega-promo-cta { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.875rem; }
.mega-promo:hover .mega-promo-cta .icon { transform: translateX(4px); }
.mega-promo-cta .icon { transition: transform .18s; }

.footer { background: #fff; padding: 3rem 0; }
.footer-line { height: 1px; background: var(--border); }
.footer-row { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; font-size: 0.75rem; color: var(--ink-soft); }
@media (min-width: 768px) { .footer-row { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 2rem; }
.footer-links a:hover { color: var(--ink); }

.chips-row { display: flex; gap: 0.75rem; overflow-x: auto; padding: 1.5rem 0; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.home-hero { padding-bottom: 3rem; }
.scroller { position: relative; }
.scroller-track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 0.5rem; scrollbar-width: none; }
.scroller-track::-webkit-scrollbar { display: none; }
.snap-card { flex: 0 0 auto; width: 280px; scroll-snap-align: start; }
@media (min-width: 768px) { .snap-card { width: 300px; } .w-280 { width: 320px; } }
.scroller-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 20px rgb(0 0 0 / 0.12);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s, transform .2s;
}
.scroller-prev { left: 0.5rem; }
.scroller-next { right: 0.5rem; }
.scroller-btn.is-off { opacity: 0; pointer-events: none; }
.scroller-prev.is-off { transform: translate(-12px, -50%); }
.scroller-next.is-off { transform: translate(12px, -50%); }

.product-card { display: flex; flex-direction: column; gap: 1rem; }
.product-card-img { position: relative; border-radius: var(--radius); background: var(--surface-muted); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.product-card:hover .product-card-img { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgb(0 0 0 / .18); }
.product-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.thumb-primary { transition: opacity .5s; }
.thumb-hover { opacity: 0; transition: opacity .5s, transform .5s; }
.product-card:hover .thumb-primary { opacity: 0; }
.product-card:hover .thumb-hover { opacity: 1; transform: scale(1.03); }
.product-card:hover .product-card-name .icon { transform: translateX(4px); }
.product-card-name { display: flex; align-items: center; justify-content: space-between; font-size: 0.875rem; font-weight: 700; }
.product-card-name .icon { transition: transform .18s; }
.h-298 { height: 298px; }
.h-320 { height: 320px; }
.h-372 { height: 372px; }
.product-card-meta { display: flex; flex-direction: column; gap: 0.5rem; }

.avail { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; font-weight: 500; }
.avail-strong { font-size: 0.875rem; font-weight: 700; }
.dot { width: 0.75rem; height: 0.75rem; border-radius: 999px; }
.dot-ok { background: var(--ok); }
.dot-wait { background: var(--wait); }

.story { padding-top: 6rem; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .story { flex-direction: row; align-items: stretch; } }
.story-img { flex: 1; border-radius: var(--radius); object-fit: cover; height: 420px; }
@media (min-width: 1024px) { .story-img { height: 636px; } }
.story-copy { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 3rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
@media (min-width: 1024px) { .story-copy { width: 724px; padding: 4rem 3rem; } }
.story-title { font-size: 1.875rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
@media (min-width: 1024px) { .story-title { font-size: 3rem; } }
.story-text { font-size: 1.125rem; color: rgb(255 255 255 / 0.85); line-height: 1.6; }

.stats { padding: 6rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-value { font-size: 3rem; font-weight: 500; line-height: 1; }
@media (min-width: 1024px) { .stat-value { font-size: 64px; } }
.stat-label { margin-top: 1rem; font-size: 1.125rem; }

.two-cards { padding: 2rem 0 8rem; display: grid; gap: 2rem; }
@media (min-width: 1024px) { .two-cards { grid-template-columns: 1fr 1fr; } }
.promo-card { border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.promo-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgb(0 0 0 / .18); }
.promo-card img { width: 100%; height: 398px; object-fit: cover; }
.promo-card-body { background: var(--ink); color: #fff; padding: 2rem 3rem; display: flex; flex-direction: column; gap: 1rem; }
.promo-card-body > p:first-child { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; }
.promo-card-text { font-size: 1.125rem; color: rgb(255 255 255 / 0.85); line-height: 1.6; }

.showroom { padding-bottom: 8rem; display: flex; flex-direction: column; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .showroom { flex-direction: row; } }
.showroom-img { flex: 1; width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 1024px) { .showroom-img { height: 534px; } }
.showroom-copy { flex: 1; display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) { .showroom-copy { padding: 6rem 0 6rem 3rem; } }
.showroom-copy h2 { font-size: 1.875rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
@media (min-width: 1024px) {
  .showroom-copy h2 { font-size: 3rem; padding-right: 8rem; }
}
.showroom-copy p { font-size: 1.125rem; line-height: 1.6; }
.contact-banner { padding-bottom: 2rem; }

.catalog { padding-bottom: 6rem; }
.catalog-layout { display: flex; flex-direction: column; gap: 3rem; }
@media (min-width: 1024px) { .catalog-layout { flex-direction: row; } }
.catalog-aside { flex-shrink: 0; }
@media (min-width: 1024px) { .catalog-aside { width: 280px; } }
.catalog-aside h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.catalog-grid { flex: 1; display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 640px) { .catalog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
.filter-group { margin-top: 2rem; }
.filter-title { font-size: 1.125rem; font-weight: 600; }
.filter-opts { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.check { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; user-select: none; font-size: 0.875rem; font-weight: 500; }
.check input { position: absolute; opacity: 0; }
.check-box { width: 1.5rem; height: 1.5rem; border: 1px solid var(--border); border-radius: 0.25rem; display: flex; align-items: center; justify-content: center; }
.check-box.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.check-svg { width: 1rem; height: 1rem; }
.rule { margin-top: 2rem; height: 1px; background: var(--border); }

.product-page { padding-bottom: 2rem; }
.product-top { padding-bottom: 3rem; display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 1280px) { .product-top { flex-direction: row; gap: 4rem; } }
.gallery { display: flex; gap: 0.75rem; flex: 1; min-width: 0; height: 560px; }
@media (min-width: 768px) { .gallery { height: 720px; } }
@media (min-width: 1024px) { .gallery { height: 880px; } }
.gallery-thumbs { width: 92px; flex-shrink: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb { width: 92px; height: 92px; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; padding: 0; flex-shrink: 0; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--ink); }
.gallery-main { position: relative; flex: 1; border-radius: var(--radius); background: var(--surface-muted); overflow: hidden; }
.gallery-main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s; }
.gallery-main > img.is-active { opacity: 1; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem; border-radius: 999px; background: rgb(255 255 255 / 0.9);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  display: flex; align-items: center; justify-content: center;
}
.gallery-prev { left: 1rem; opacity: 0; }
.gallery-main:hover .gallery-prev { opacity: 1; }
.gallery-next { right: 1rem; background: #fff; }
.gallery-open { position: absolute; bottom: 1rem; right: 1rem; display: flex; align-items: center; gap: 0.5rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.875rem; font-weight: 500; padding: 0.5rem 1rem 0.5rem 0.75rem; }
.gallery-idx { position: absolute; bottom: 1rem; left: 1rem; border-radius: 999px; background: rgb(255 255 255 / 0.9); font-size: 0.75rem; font-weight: 500; padding: 0.375rem 0.75rem; }

.product-summary { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1280px) { .product-summary { width: 536px; } }
.product-summary h1 { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; }
.lead { margin-top: 1rem; font-size: 0.875rem; line-height: 1.6; }
.interest { display: flex; align-items: center; gap: 1rem; border-radius: var(--radius); background: var(--surface-muted); padding: 1rem 1.5rem; }
.interest:hover { background: var(--accent); }
.interest p:first-child { font-size: 0.875rem; font-weight: 700; color: var(--ink-soft); }
.interest p:last-child { font-size: 0.875rem; color: var(--ink-soft); }
.interest:hover .icon:last-child { transform: translateX(4px); }
.info-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.5rem; }
.info-row { display: flex; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--border); }
.info-row:first-child { border-top: 0; }
.info-title { font-size: 0.875rem; font-weight: 700; }

.about-wrap { background: var(--surface-muted); padding: 3rem 1.5rem; display: flex; flex-direction: column; gap: 3rem; }
@media (min-width: 768px) { .about-wrap { padding-left: 3rem; padding-right: 3rem; } }
.about-card { display: flex; flex-direction: column; align-items: center; gap: 2rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 20px 1px rgb(0 0 0 / 0.02); }
@media (min-width: 1024px) { .about-card { flex-direction: row; gap: 3.5rem; } .about-card-rev { flex-direction: row-reverse; } }
.about-copy { display: flex; flex-direction: column; gap: 1.5rem; padding: 2.5rem; }
@media (min-width: 1024px) { .about-copy { width: 744px; padding: 3rem 3.5rem; } }
.about-copy h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.about-copy p { font-size: 1.125rem; color: var(--ink-soft); line-height: 1.6; }
.about-card img { flex: 1; width: 100%; height: 320px; object-fit: cover; }
@media (min-width: 1024px) { .about-card img { height: 523px; } }
.similar { padding: 4rem 0 3rem; }

.empty-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.empty-box { max-width: 28rem; text-align: center; }
.empty-404 { font-size: 4.5rem; font-weight: 700; }
.empty-box h2 { margin-top: 1rem; font-size: 1.25rem; font-weight: 600; }
.empty-box p { margin: 0.5rem 0 1.5rem; color: var(--ink-soft); font-size: 0.875rem; }

.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--surface-muted); padding: 1rem; }
.auth-card { width: 100%; max-width: 28rem; border-radius: var(--radius); background: #fff; padding: 2.5rem; box-shadow: 0 2px 20px 1px rgb(0 0 0 / 0.04); }
.auth-card h1 { margin-top: 1.5rem; font-size: 1.5rem; font-weight: 600; }
.auth-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.auth-form label { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; font-weight: 700; }
.input { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; outline: none; }
.input:focus { border-color: var(--ink); }
.search-input { width: 100%; max-width: 24rem; border: 1px solid var(--border); border-radius: 999px; padding: 0.75rem 1.25rem; font-size: 0.875rem; outline: none; }
.search-input:focus { border-color: var(--ink); }
.auth-forgot { align-self: flex-end; font-size: 0.875rem; text-decoration: underline; color: var(--ink-soft); }
.auth-forgot:hover { color: var(--ink); }
.auth-switch { margin-top: 1.5rem; font-size: 0.875rem; color: var(--ink-soft); }
.auth-switch a { text-decoration: underline; }
.msg-ok { color: #047857; font-size: 0.875rem; }
.msg-err { color: var(--brand); font-size: 0.875rem; }

.admin { min-height: 100vh; display: flex; background: #fff; }
.admin-aside { width: 16rem; flex-shrink: 0; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 1rem; position: sticky; top: 0; height: 100vh; }
.admin-aside .logo { padding: 0.75rem 1rem; }
.admin-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.admin-nav-item { display: flex; align-items: center; gap: 0.75rem; border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); text-align: left; width: 100%; }
.admin-nav-item:hover { background: var(--surface-muted); color: var(--ink); }
.admin-nav-item.is-active { background: var(--surface-muted); color: var(--ink); font-weight: 700; }
.admin-rule { height: 1px; background: var(--border); margin: 0.75rem 0; }
.admin-logout { margin-top: auto; }
.admin-main { flex: 1; min-width: 0; padding: 2.5rem 2rem; }
@media (min-width: 768px) { .admin-main { padding: 2.5rem 3rem; } }
.admin-main h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.admin-list { border: 1px solid var(--border); border-radius: var(--radius); }
.admin-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-top: 1px solid var(--border); }
.admin-row:first-child { border-top: 0; }
.admin-row.is-hidden { opacity: 0.5; }
.admin-thumb { width: 4rem; height: 4rem; border-radius: 0.5rem; background: var(--surface-muted); object-fit: contain; }
.admin-row-meta { flex: 1; min-width: 0; }
.admin-row-name { font-weight: 700; }
.icon-btn { width: 2.25rem; height: 2.25rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--surface-muted); }
.icon-btn.sm { width: 1.75rem; height: 1.75rem; }
.icon-btn.danger:hover { color: var(--brand); }
.pill { font-size: 0.75rem; font-weight: 500; border-radius: 999px; padding: 0.25rem 0.75rem; }
.pill-ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill-wait { background: var(--wait-bg); color: var(--wait-fg); }
.pad { padding: 1.5rem; }

.product-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 2rem; max-width: 42rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field > span { font-size: 0.875rem; font-weight: 700; }
.form-grid-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.form-actions { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--border); padding: 1rem 0; display: flex; justify-content: flex-end; gap: 0.75rem; }
.kicker { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft); }
.tag-checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.tag-checks label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; cursor: pointer; }

.toggle { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle-ui { width: 2.75rem; height: 1.5rem; border-radius: 999px; background: var(--border); padding: 2px; transition: background .18s; position: relative; flex-shrink: 0; }
.toggle-ui::after { content: ""; display: block; width: 1.25rem; height: 1.25rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); transition: transform .18s; }
.toggle input:checked + .toggle-ui { background: var(--brand); }
.toggle input:checked + .toggle-ui::after { transform: translateX(1.25rem); }

.image-pick { position: relative; }
.image-pick-box {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  border: 2px dashed var(--border); background: var(--surface-muted);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.image-pick-box:hover { border-color: var(--ink); }
.image-pick-box img { width: 100%; height: 100%; object-fit: contain; }
.image-pick-box.dashed { cursor: pointer; }
.image-pick-box.dashed input { display: none; }
.muted-icon { color: var(--ink-soft); }
.image-pick-pop { position: absolute; z-index: 10; left: 0; top: calc(100% + 0.5rem); width: 20rem; border-radius: var(--radius); background: #fff; box-shadow: 0 16px 40px rgb(0 0 0 / 0.12); border: 1px solid var(--border); padding: 0.75rem; }
.lib-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; max-height: 14rem; overflow-y: auto; margin-top: 0.5rem; }
.lib-cell { aspect-ratio: 1; border-radius: 0.25rem; overflow: hidden; border: 2px solid transparent; background: var(--surface-muted); padding: 0; position: relative; }
.lib-cell img { width: 100%; height: 100%; object-fit: cover; }
.lib-cell.is-active, .lib-cell:has(input:checked) { border-color: var(--ink); }
.lib-cell input { position: absolute; opacity: 0; }
.gallery-edit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.gallery-edit-item { position: relative; aspect-ratio: 1; border-radius: 0.5rem; background: var(--surface-muted); overflow: hidden; }
.gallery-edit-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-edit-item.is-removed { opacity: 0.35; }
.gallery-remove { position: absolute; top: 0.25rem; right: 0.25rem; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 0.12); display: flex; align-items: center; justify-content: center; }
.gallery-remove input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.inline-form { display: flex; gap: 0.75rem; align-items: center; }
.cat-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.cat-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.cat-head { display: flex; align-items: center; gap: 0.5rem; }
.tag-pills { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-pill { display: inline-flex; align-items: center; gap: 0.25rem; border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.25rem 0.25rem 1rem; font-size: 0.875rem; }
.tag-input { border: 0; outline: none; width: 7rem; background: transparent; }
.tag-add { border: 1px dashed var(--border); border-radius: 999px; padding: 0.375rem 1rem; font-size: 0.875rem; color: var(--ink-soft); outline: none; width: 10rem; }
.tag-add:focus { border-color: var(--ink); color: var(--ink); }

.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { background: var(--surface-muted); text-align: left; padding: 0.75rem 1rem; color: var(--ink-soft); font-weight: 700; }
.table td { padding: 0.75rem 1rem; border-top: 1px solid var(--border); }
.row-actions { display: flex; justify-content: flex-end; gap: 0.5rem; align-items: center; }
.row-actions details { position: relative; }
.pw-pop { position: absolute; right: 0; top: 100%; z-index: 5; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; width: 16rem; box-shadow: 0 8px 24px rgb(0 0 0 / 0.08); }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.stack h2 { font-size: 1.125rem; font-weight: 600; }

@media (max-width: 767px) {
  .admin { flex-direction: column; }
  .admin-aside { width: 100%; height: auto; position: relative; }
  .gallery { height: 420px; }
  .gallery-thumbs { display: none; }
}
