:root {
  --paper: #fff;
  --surface: #fff;
  --ink: #161b18;
  --muted: #667069;
  --line: #e3e5df;
  --sage: #315d45;
  --sage-soft: #eef3ec;
  --amber: #c87917;
  --notice: #fbf4e5;
  --content-width: 1360px;
  --serif: "Noto Serif SC", "Source Han Serif CN", "Songti SC", STSong, SimSun, serif;
  --sans: "Noto Sans SC", "Source Han Sans CN", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; clip-path: inset(50%) !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
body:has(.modal-backdrop), body:has(.drawer-backdrop) { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(49,93,69,.24); outline-offset: 2px; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  width: min(var(--content-width), calc(100% - 64px));
  min-height: 74px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96);
  margin: 0 auto; padding: 0; backdrop-filter: blur(18px);
}
.wordmark { display: grid; min-width: 0; justify-self: start; border: 0; background: none; font-family: var(--serif); font-size: 25px; font-weight: 700; letter-spacing: .1em; cursor: pointer; text-align: left; }
.wordmark-text { display: block; margin: 0; white-space: nowrap; }
.site-header nav { display: flex; align-self: stretch; justify-content: flex-end; gap: 42px; }
.site-header nav button { position: relative; border: 0; background: transparent; font-weight: 650; cursor: pointer; padding: 0; }
.site-header nav button::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: transparent; }
.site-header nav button:hover::after, .site-header nav .active::after { background: var(--sage); }
.product-menu { position: relative; display: grid; align-items: stretch; }
.product-menu summary { position: relative; display: grid; width: 52px; height: 100%; place-items: center; cursor: pointer; list-style: none; }
.product-menu summary::-webkit-details-marker { display: none; }
.product-menu summary::before { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--sage); }
.menu-icon { position: relative; display: grid; width: 24px; height: 18px; align-content: space-between; }
.menu-icon i { display: block; width: 100%; height: 2px; background: var(--ink); transform-origin: center; transition: transform .18s ease, opacity .18s ease; }
.product-menu[open] .menu-icon i:first-child { transform: translateY(8px) rotate(45deg); }
.product-menu[open] .menu-icon i:nth-child(2) { opacity: 0; }
.product-menu[open] .menu-icon i:last-child { transform: translateY(-8px) rotate(-45deg); }
.product-submenu { position: absolute; top: calc(100% + 1px); right: 0; display: grid; width: min(320px, calc(100vw - 32px)); max-height: min(480px, calc(100vh - 100px)); overflow-y: auto; border: 1px solid var(--line); border-top: 0; background: #fff; box-shadow: 0 18px 45px rgba(22,27,24,.12); padding: 10px; }
.product-submenu button { min-height: 46px; border-bottom: 1px solid #eef0eb !important; padding: 0 12px !important; text-align: left; }
.product-submenu button:last-child { border-bottom: 0 !important; }
.product-submenu button:hover { background: var(--sage-soft); color: var(--sage); }
.product-submenu span { padding: 14px 12px; color: var(--muted); font-size: 13px; }

.catalog-shell { width: min(var(--content-width), calc(100% - 64px)); margin: 0 auto; padding: 18px 0 90px; }
.category-index { position: sticky; top: 132px; align-self: start; display: grid; border-right: 1px solid var(--line); padding-right: 28px; }
.category-index p { margin: 0 0 18px; color: var(--sage); font-weight: 800; }
.category-index button { min-height: 43px; border: 0; background: transparent; color: #414943; cursor: pointer; padding: 0; text-align: left; }
.category-index button:hover, .category-index button.active { color: var(--sage); font-weight: 800; }

.catalog-main { min-width: 0; }
.catalog-intro { width: 100%; padding-top: 2px; }
.kicker { margin: 0 0 14px; color: var(--sage); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.catalog-title { margin: 0 0 14px; font-family: var(--serif); font-weight: 600; letter-spacing: .06em; line-height: 1.08; }
.catalog-description { max-width: 760px; margin: 0; color: #454e48; line-height: 1.85; }
.catalog-block { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
.catalog-block:empty { display: none; }
.visual-editor-active .catalog-block:empty { display: block; }
.catalog-block-h1, .catalog-block-h2, .catalog-block-h3 { margin: 0 0 16px; font-family: var(--serif); font-weight: 600; letter-spacing: .035em; line-height: 1.18; }
.catalog-block-p { margin: 0 0 18px; line-height: 1.85; }
.top-adult-notice { width: min(var(--content-width), calc(100% - 64px)); margin: 0 auto; padding: 0; }
.adult-notice-shell { position: relative; margin: 0; border: 1px dashed #d6c9ab; }
.adult-notice-shell:hover, .adult-notice-shell:focus-within { border-color: #d6c9ab; }
.adult-notice { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; background: var(--notice); padding: 14px 20px; }
.adult-notice-shell .adult-notice { margin: 0; }
.adult-badge { display: grid; flex: 0 0 auto; min-width: 34px; min-height: 34px; place-items: center; border: 2px solid var(--amber); border-radius: 50%; padding: 3px; }
.adult-badge-text { margin: 0; font-weight: 900; line-height: 1; }
.adult-copy { display: grid; gap: 3px; min-width: 0; }
.adult-title { margin: 0; font-weight: 800; line-height: 1.35; }
.adult-description { margin: 0; line-height: 1.55; }
.mobile-filters { display: none; }

.product-stream { display: grid; gap: 82px; }
.product-entry { display: grid; grid-template-columns: 1fr; gap: 28px; border-top: 1px solid var(--line); padding-top: 32px; scroll-margin-top: 96px; }
.product-copy { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.product-photo { display: block; width: 100%; overflow: hidden; margin: 0; background: #f1f2ef; }
.product-photo img { display: block; width: 100%; height: auto; object-fit: contain; }
.product-gallery { display: grid; gap: 22px; }
.product-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; }
.product-number { color: var(--sage); font-family: var(--serif); font-size: 34px; line-height: 1; }
.product-title { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: .02em; line-height: 1.25; }
.product-summary { width: 100%; margin: 0; color: #525b54; font-size: 16px; line-height: 1.95; }
.product-description-shell { position: relative; padding-right: 92px; }
.delete-description { position: absolute; top: 0; right: 0; min-height: 30px; border: 1px solid #e2c4bf; background: #fff; color: #9a4037; cursor: pointer; font-size: 11px; padding: 0 8px; }
.restore-description { justify-self: start; min-height: 34px; border: 1px dashed var(--sage); background: #fff; color: var(--sage); cursor: pointer; font-size: 12px; padding: 0 11px; }
.empty-state { display: grid; min-height: 360px; place-items: center; align-content: center; border: 1px dashed #bdc4bc; background: var(--surface); text-align: center; }
.empty-state h2 { font-family: var(--serif); font-size: 30px; }
.empty-state p { color: var(--muted); }
.empty-state button { border: 0; background: var(--sage); color: white; cursor: pointer; padding: 12px 18px; }

footer { width: min(var(--content-width), calc(100% - 64px)); margin: 0 auto; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 24px; width: 100%; padding: 36px 0; }
.footer-title { margin: 0; font-family: var(--serif); font-weight: 700; }
.footer-description, footer span { color: var(--muted); }
.footer-inner > div:last-child { display: flex; align-items: center; gap: 20px; }
footer button { border: 0; border-bottom: 1px solid var(--ink); background: transparent; cursor: pointer; padding: 6px 0; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(19,24,21,.58); backdrop-filter: blur(4px); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 18px 24px; }
.drawer-head button { border: 1px solid var(--line); background: var(--surface); cursor: pointer; padding: 9px 14px; }

.admin-drawer { position: fixed; top: 0; right: 0; z-index: 60; width: min(520px, 100%); height: 100vh; overflow: auto; background: var(--paper); box-shadow: -24px 0 80px rgba(0,0,0,.18); }
.admin-drawer.wide { width: min(1040px, 100%); }
.drawer-head { position: sticky; top: 0; z-index: 2; background: rgba(255,255,255,.97); }
.drawer-head p, .form-title p { margin: 0 0 5px; color: var(--sage); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.drawer-head h2 { margin: 0; font-family: var(--serif); font-size: 25px; }
.drawer-head > div:last-child { display: flex; gap: 8px; }
.drawer-head .visual-entry { border-color: var(--sage); background: var(--sage); color: #fff; font-weight: 750; }
.admin-tabs { position: sticky; top: 79px; z-index: 2; display: flex; gap: 4px; border-bottom: 1px solid var(--line); background: #fff; padding: 0 24px; }
.admin-tabs button { min-height: 48px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-weight: 750; padding: 0 18px; }
.admin-tabs button:hover, .admin-tabs button.active { border-bottom-color: var(--sage); color: var(--sage); }
.admin-form { display: grid; gap: 18px; }
.login-form { padding: 34px; }
.login-form > p:first-child { color: var(--muted); line-height: 1.7; }
.admin-form label { display: grid; gap: 8px; color: #4b554f; font-size: 13px; font-weight: 700; }
.admin-form label small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.5; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; border: 1px solid #d9ddd6; border-radius: 0; outline: 0; background: var(--surface); padding: 12px 13px; }
.primary-button { min-height: 43px; border: 0; background: var(--sage); color: #fff; cursor: pointer; font-weight: 800; padding: 0 18px; }
.form-message { min-height: 22px; margin: 0; color: var(--sage); font-size: 13px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 16px 24px; }
.admin-toolbar span { color: var(--muted); font-size: 12px; }
.admin-workspace { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - 138px); }
.admin-list { display: grid; align-content: start; border-right: 1px solid var(--line); }
.admin-product { display: grid; grid-template-columns: 68px 1fr; gap: 13px; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; padding: 12px; text-align: left; }
.admin-product:hover, .admin-product.active { background: var(--sage-soft); }
.admin-product img { width: 68px; height: 56px; object-fit: cover; }
.admin-product span { display: grid; gap: 5px; min-width: 0; }
.admin-product b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-product small { color: var(--muted); }
.sortable-list .admin-product { grid-template-columns: 68px minmax(0, 1fr) 24px; cursor: grab; }
.sortable-list .admin-product:active { cursor: grabbing; }
.drag-handle { color: #8a948d; font-size: 21px; font-style: normal; line-height: 1; }
.sortable-list .admin-product.dragging { opacity: .42; }
.sortable-list .admin-product.drop-before { box-shadow: inset 0 3px 0 var(--sage); }
.sortable-list .admin-product.drop-after { box-shadow: inset 0 -3px 0 var(--sage); }
.brand-monogram { display: grid; width: 54px; height: 54px; place-items: center; background: var(--sage-soft); color: var(--sage); font-family: var(--serif); font-size: 24px; font-weight: 700; }
.brand-list .admin-product { grid-template-columns: 54px 1fr; }
.product-form { align-content: start; padding: 26px; }
.settings-form { width: min(720px, 100%); align-content: start; padding: 32px; }
.settings-hint { margin: -4px 0 4px; border-left: 3px solid var(--sage); background: var(--sage-soft); color: #455249; line-height: 1.7; padding: 12px 14px; }
.form-title { display: flex; align-items: center; justify-content: space-between; }
.form-title h3 { margin: 0; font-family: var(--serif); font-size: 24px; }
.danger-button { border: 1px solid #b14d42; background: transparent; color: #9d342b; cursor: pointer; padding: 8px 13px; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.parameter-editor { border: 1px solid var(--line); background: #f7f6f1; padding: 14px; }
.parameter-editor > p { margin: 0 0 13px; font-weight: 800; }
.upload-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 8px; }
.upload-row button { border: 1px solid var(--sage); background: var(--surface); color: var(--sage); cursor: pointer; font-weight: 800; padding: 0 12px; }
.image-manager { display: grid; gap: 14px; border: 1px solid var(--line); background: #fafbf9; padding: 16px; }
.image-manager-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.image-manager-title > div { display: grid; gap: 5px; }
.image-manager-title small, .image-manager-title > span { color: var(--muted); font-size: 11px; }
.multi-upload { grid-template-columns: minmax(0, 1fr) auto; }
.multi-upload input { background: #fff; }
.image-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.image-preview { position: relative; display: grid; gap: 7px; border: 1px solid var(--line); background: #fff; cursor: grab; padding: 7px; transition: border-color .15s ease, opacity .15s ease; }
.image-preview:active { cursor: grabbing; }
.image-preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef0ec; }
.image-preview span { color: var(--muted); font-size: 10px; }
.image-preview button { border: 0; background: #f4e9e7; color: #953b31; cursor: pointer; font-size: 11px; padding: 6px; }
.image-preview.dragging { opacity: .38; }
.image-preview.drop-target { border-color: var(--sage); box-shadow: 0 0 0 2px rgba(49,93,69,.14); }
.no-images { grid-column: 1 / -1; margin: 0; border: 1px dashed #cbd0c9; color: var(--muted); font-size: 12px; padding: 24px; text-align: center; }
.boot-error { display: grid; min-height: 100vh; place-items: center; align-content: center; text-align: center; }

/* 管理员前台可视化编辑器 */
.visual-editor-active { padding-bottom: 96px; }
.visual-editor-active [data-edit-key] { min-width: 1em; border-radius: 3px; outline: 1px dashed rgba(49,93,69,.55); outline-offset: 5px; cursor: text; white-space: pre-wrap; transition: background .15s ease, outline-color .15s ease; }
.visual-editor-active [data-edit-key]:hover { background: rgba(238,243,236,.72); outline-color: var(--sage); }
.visual-editor-active [data-edit-key]:focus { background: #fff; outline: 3px solid rgba(49,93,69,.28); }
.visual-editor-active [data-edit-key]::selection, .visual-editor-active [data-edit-key] *::selection { background: #f1c96b; color: #172119; }
.selection-toolbar { position: fixed; z-index: 120; display: flex; align-items: center; gap: 5px; min-height: 46px; border: 1px solid #bac6bd; background: #17251d; color: #fff; box-shadow: 0 12px 34px rgba(18,30,23,.3); padding: 6px 8px; }
.selection-toolbar::before { content: ""; position: absolute; top: -6px; left: 50%; width: 10px; height: 10px; background: #17251d; transform: translateX(-50%) rotate(45deg); }
.selection-toolbar > span { margin: 0 6px 0 2px; color: #dce8df; font-size: 11px; white-space: nowrap; }
.selection-toolbar select { height: 32px; border: 0; background: #fff; color: #1e2922; font-size: 12px; padding: 0 6px; }
.selection-toolbar input[type="color"] { width: 34px; height: 32px; border: 1px solid #fff; background: #fff; cursor: pointer; padding: 2px; }
.selection-toolbar button { width: 32px; height: 32px; border: 0; background: #30463a; color: #fff; cursor: pointer; }
.selection-toolbar button.clear-format { width: auto; padding: 0 9px; white-space: nowrap; }
.selection-toolbar button:hover { background: #4b6c59; }
.visual-editor-active .wordmark { cursor: default; }
.visual-toolbar { position: fixed; right: 18px; bottom: 16px; left: 18px; z-index: 80; display: flex; align-items: center; gap: 13px; min-height: 68px; border: 1px solid #cdd5ce; background: rgba(255,255,255,.97); box-shadow: 0 18px 60px rgba(22,27,24,.2); padding: 10px 14px; backdrop-filter: blur(18px); }
.visual-toolbar-brand { display: grid; min-width: 190px; margin-right: 4px; }
.visual-toolbar-brand span { color: var(--sage); font-weight: 900; }
.visual-toolbar-brand small { max-width: 240px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.visual-toolbar label { display: flex; align-items: center; gap: 7px; color: #4b554f; font-size: 12px; font-weight: 750; }
.visual-toolbar select, .visual-toolbar input { height: 38px; border: 1px solid #d6dbd5; background: #fff; padding: 0 9px; }
.visual-toolbar input { width: 68px; }
.visual-toolbar .editor-color { width: 42px; padding: 3px; cursor: pointer; }
.visual-toolbar label i { margin-left: -5px; color: var(--muted); font-size: 11px; font-style: normal; }
.editor-align { display: flex; align-items: center; gap: 4px; color: #4b554f; font-size: 12px; font-weight: 750; }
.inline-format { display: flex; align-items: center; gap: 4px; color: #4b554f; font-size: 12px; font-weight: 750; }
.inline-format button { width: 36px; min-height: 38px; border: 1px solid #d6dbd5; background: #fff; cursor: pointer; }
.inline-format button.clear-format { width: auto; padding: 0 9px; }
.inline-format button:hover { border-color: var(--sage); background: var(--sage-soft); }
.editor-align button, .visual-toolbar-actions button { min-height: 38px; border: 1px solid #d6dbd5; background: #fff; cursor: pointer; padding: 0 11px; }
.editor-align button.active { border-color: var(--sage); background: var(--sage-soft); color: var(--sage); }
.visual-toolbar-actions { display: flex; gap: 6px; margin-left: auto; }
.visual-toolbar-actions .save-editor { border-color: var(--sage); background: var(--sage); color: #fff; font-weight: 800; }
.inline-image-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border: 1px dashed #aebbb1; background: var(--sage-soft); padding: 10px 12px; }
.inline-image-tools label, .inline-image-tools span, .inline-image-tools small { color: #526058; font-size: 12px; }
.inline-image-tools label { display: flex; align-items: center; gap: 7px; }
.inline-image-tools select { height: 34px; border: 1px solid #cbd3cc; background: #fff; }
.inline-image-tools button, .inline-upload-button { min-height: 34px; border: 1px solid #b9c5bc; background: #fff; cursor: pointer; padding: 0 11px; }
.inline-image-tools button.active { border-color: var(--sage); background: var(--sage); color: #fff; }
.inline-upload-button { display: inline-flex !important; align-items: center; color: var(--sage) !important; font-weight: 800; }
.inline-upload-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.inline-image-tools small { margin-left: auto; }
.editable-photo { border: 2px solid transparent; cursor: grab; }
.editable-photo:active { cursor: grabbing; }
.editable-photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #1f2f26; color: #fff; padding: 8px 10px; }
.editable-photo figcaption span { font-size: 11px; }
.editable-photo figcaption button { border: 0; background: transparent; color: #ffd5d0; cursor: pointer; }
.editable-photo.dragging { opacity: .4; }
.editable-photo.drop-target { border-color: var(--sage); }
.editable-block-shell { position: relative; margin: 0 0 12px; border: 1px solid transparent; padding: 10px 124px 4px 10px; transition: border-color .15s ease, background .15s ease; }
.editable-block-shell:hover, .editable-block-shell:focus-within { border-color: #c5d0c7; background: rgba(250,252,249,.92); }
.editable-block-shell .catalog-block { margin-bottom: 8px; }
.editable-block-shell [data-edit-key]:empty { min-height: 30px; font-family: var(--sans); font-size: 13px !important; line-height: 30px; }
.editable-block-shell [data-edit-key]:empty::before { content: attr(data-placeholder); color: #9aa49d; font-weight: 500; }
.block-actions { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 4px; opacity: .35; transition: opacity .15s ease; }
.editable-block-shell:hover .block-actions, .editable-block-shell:focus-within .block-actions { opacity: 1; }
.block-actions span { color: var(--sage); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.block-actions button { min-height: 28px; border: 1px solid #d4dad4; background: #fff; color: #566159; cursor: pointer; font-size: 11px; padding: 0 7px; }
.block-actions button:disabled { cursor: default; opacity: .35; }
.block-actions .remove-block { color: #9b3c34; }
.add-block-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; border: 1px dashed #afbbb1; background: #f7faf6; padding: 11px 12px; }
.add-block-bar span { margin-right: auto; color: #637067; font-size: 12px; }
.add-block-bar button { min-height: 34px; border: 1px solid var(--sage); background: #fff; color: var(--sage); cursor: pointer; font-size: 12px; font-weight: 800; padding: 0 12px; }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto 1fr; width: min(100% - 40px, 940px); padding: 12px 0; }
  .site-header nav { gap: 22px; }
  .top-adult-notice, .catalog-shell, footer { width: min(100% - 40px, 940px); }
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; width: calc(100% - 24px); min-height: 66px; padding: 10px 0; }
  .wordmark { width: 100%; max-width: none; font-size: 22px; }
  .wordmark-text { overflow: visible; font-size: min(22px, 4.6vw) !important; letter-spacing: .005em; text-overflow: clip; }
  .site-header nav { justify-self: end; }
  .product-menu summary { width: 42px; min-height: 40px; border: 1px solid var(--line); padding: 0; }
  .product-menu summary::before { display: none; }
  .product-submenu { position: absolute; top: calc(100% + 1px); right: 0; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 82px); border-top: 1px solid var(--line); }
  .top-adult-notice { width: 100%; padding-top: 0; }
  .adult-notice { padding: 12px 16px; }
  .catalog-shell { display: block; width: 100%; padding: 18px 16px 72px; }
  .category-index { display: none; }
  .catalog-title { font-size: min(46px, 12vw) !important; }
  .catalog-description { font-size: 14px !important; }
  .catalog-block-h1 { font-size: min(46px, 12vw) !important; }
  .adult-notice { align-items: center; margin: 0; padding: 13px; }
  .mobile-filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 28px; padding: 0 16px 8px; }
  .mobile-filters { scrollbar-width: none; }
  .mobile-filters::-webkit-scrollbar { display: none; }
  .mobile-filters button { flex: 0 0 auto; min-height: 38px; border: 1px solid var(--line); background: var(--surface); padding: 0 13px; }
  .mobile-filters button.active { border-color: var(--sage); background: var(--sage); color: #fff; }
  .product-stream { gap: 50px; }
  .product-entry { gap: 22px; padding-top: 25px; }
  .product-heading { grid-template-columns: auto minmax(0, 1fr); }
  .product-number { font-size: 28px; }
  .product-title { font-size: min(24px, 7vw) !important; }
  .product-summary { font-size: 14px; }
  footer { width: calc(100% - 32px); }
  .footer-inner { align-items: flex-start; flex-direction: column; width: 100%; padding: 30px 0; }
  .footer-inner > div:last-child { align-items: flex-start; flex-direction: column; gap: 8px; }
  .admin-workspace { grid-template-columns: 1fr; }
  .admin-list { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-product { flex: 0 0 250px; border-right: 1px solid var(--line); }
  .form-columns, .upload-row { grid-template-columns: 1fr; }
  .image-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-form { padding: 20px 16px 40px; }
  .visual-editor-active { padding-bottom: 172px; }
  .visual-toolbar { right: 8px; bottom: 8px; left: 8px; align-items: stretch; flex-wrap: wrap; gap: 8px; padding: 10px; }
  .visual-toolbar-brand { width: 100%; }
  .visual-toolbar-actions { width: 100%; margin-left: 0; }
  .visual-toolbar-actions button { flex: 1; }
  .inline-image-tools small { width: 100%; margin-left: 0; }
  .editable-block-shell { padding: 48px 8px 4px; }
  .block-actions { right: auto; left: 8px; opacity: 1; }
  .add-block-bar { align-items: stretch; flex-wrap: wrap; }
  .add-block-bar span { width: 100%; }
  .inline-format span { display: none; }
  .selection-toolbar > span { display: none; }
  .selection-toolbar { max-width: calc(100vw - 16px); overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
