:root { color-scheme: light; font-family: "Segoe UI", "Noto Sans JP", sans-serif; color: #14171c; background: #f4f6f8; }
* { box-sizing: border-box; }
body { margin: 0; background: #f4f6f8; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }
.app-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid #dfe3e8; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { display: block; width: 132px; height: auto; }
.header-inner nav { display: flex; align-items: center; gap: 10px; }
.header-inner nav a, .link-button { color: #252a31; text-decoration: none; border: 1px solid #d7dce2; background: #fff; padding: 9px 12px; border-radius: 6px; font-weight: 700; }
.header-inner nav span { color: #667085; font-size: 14px; }
.header-inner nav .primary-link { color: #fff; background: #e20d22; border-color: #e20d22; }
.link-button { cursor: pointer; }
.admin-header { box-shadow: 0 1px 3px rgba(20, 23, 28, .04); }
.admin-header__top { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-header__brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.admin-header__brand > span { padding-left: 18px; border-left: 1px solid #dfe3e8; color: #667085; font-size: 13px; font-weight: 800; white-space: nowrap; }
.admin-header__utilities { display: flex; align-items: center; gap: 8px; }
.admin-header__utilities > a, .admin-header__utilities > .link-button { min-height: 36px; display: inline-flex; align-items: center; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: #344054; text-decoration: none; font-size: 13px; font-weight: 800; }
.admin-header__utilities > a:hover, .admin-header__utilities > .link-button:hover { background: #f1f3f5; color: #14171c; }
.admin-header__user { margin: 0 4px 0 8px; color: #667085; font-size: 13px; font-weight: 700; white-space: nowrap; }
.admin-nav-wrap { border-top: 1px solid #edf0f3; background: #fff; }
.admin-primary-nav { min-height: 52px; display: flex; align-items: stretch; gap: 4px; }
.admin-primary-nav a { position: relative; min-width: 174px; display: grid; align-content: center; gap: 2px; padding: 8px 18px 9px; color: #475467; text-decoration: none; }
.admin-primary-nav a::after { content: ""; position: absolute; right: 18px; bottom: -1px; left: 18px; height: 3px; background: transparent; }
.admin-primary-nav strong { color: inherit; font-size: 14px; line-height: 1.25; }
.admin-primary-nav small { color: #98a2b3; font-size: 10px; font-weight: 700; line-height: 1.25; }
.admin-primary-nav a:hover { background: #f8f9fa; color: #14171c; }
.admin-primary-nav a.is-active { color: #d80d22; }
.admin-primary-nav a.is-active::after { background: #e20d22; }
.admin-primary-nav a.is-active small { color: #667085; }
.page-main { padding-block: 34px 92px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading h1 { margin: 2px 0 8px; font-size: 34px; line-height: 1.2; letter-spacing: 0; }
.page-heading p { margin: 0; color: #5f6b7a; }
.page-heading > span { color: #667085; font-weight: 700; }
.eyebrow { color: #d80d22 !important; font-size: 13px; font-weight: 800; }
.catalog-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding: 14px; background: #fff; border: 1px solid #dfe3e8; border-radius: 8px; }
.catalog-toolbar > input { min-width: 260px; flex: 1; height: 44px; padding: 0 14px; border: 1px solid #cbd2da; border-radius: 6px; }
.catalog-toolbar--public { flex-wrap: wrap; }
.catalog-selects { flex: 1 0 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 12px; border-top: 1px solid #e5e8ec; }
.catalog-selects label { display: grid; gap: 5px; }
.catalog-selects label span { color: #667085; font-size: 11px; font-weight: 800; }
.catalog-selects select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #cbd2da; border-radius: 6px; background: #fff; }
.segments { display: flex; gap: 6px; }
.segments button { height: 40px; padding: 0 14px; border: 1px solid #d7dce2; border-radius: 6px; background: #fff; color: #3b4450; cursor: pointer; font-weight: 700; }
.segments button.is-active { color: #fff; border-color: #e20d22; background: #e20d22; }
.catalog-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.catalog-item { min-width: 0; min-height: 398px; background: #fff; border: 1px solid #d8dde4; border-radius: 8px; padding: 10px; display: grid; grid-template-rows: auto auto minmax(56px, auto) auto auto; box-shadow: 0 1px 2px rgba(20, 23, 28, .06); }
.catalog-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #f7f8fa; border-radius: 6px; }
.catalog-item__meta { margin-top: 8px; color: #667085; font-size: 12px; font-weight: 700; }
.catalog-item h2 { margin: 4px 0 12px; font-size: 15px; line-height: 1.42; letter-spacing: 0; overflow-wrap: anywhere; }
.catalog-item__sub { min-width: 0; margin: -7px 0 9px; color: #667085; font-size: 10px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-item__price { align-self: end; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 8px; min-height: 60px; padding: 8px 10px; border: 1px solid #ffc3ca; border-radius: 7px; background: #fff7f8; }
.catalog-item__price b { grid-column: 1 / -1; justify-self: start; padding: 4px 9px; border-radius: 999px; background: #e20d22; color: #fff; font-size: 11px; line-height: 1; }
.catalog-item__price small { color: #566171; font-size: 11px; font-weight: 700; }
.catalog-item__price strong { color: #e20d22; font-size: 20px; line-height: 1; white-space: nowrap; }
.catalog-item__price.is-check { border-color: #dde2e8; background: #f7f8fa; }
.catalog-item__price.is-check b { background: #e7ebef; color: #344054; }
.catalog-item__price.is-check strong { color: #667085; font-size: 14px; }
.button { min-height: 44px; padding: 0 18px; border: 1px solid #ccd3dc; border-radius: 6px; background: #fff; font-weight: 800; cursor: pointer; }
.button.primary { color: #fff; background: #e20d22; border-color: #e20d22; }
.button:disabled { opacity: .5; cursor: default; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.admin-commandbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.admin-commandbar #selection-count { margin-left: auto; color: #667085; font-size: 13px; font-weight: 800; }
.admin-filter-selects { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 8px; order: 3; flex: 1 0 100%; padding-top: 12px; border-top: 1px solid #e5e8ec; }
.admin-filter-field { min-width: 0; display: grid; gap: 6px; }
.admin-filter-field > span { color: #475467; font-size: 11px; font-weight: 800; }
.admin-filter-selects select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #cbd2da; border-radius: 6px; background: #fff; }
.admin-toolbar { flex-wrap: wrap; }
.admin-toolbar #item-count { order: 2; margin-left: auto; color: #667085; white-space: nowrap; font-weight: 700; }
.bulk-panel { margin-bottom: 12px; border: 1px solid #dfe3e8; border-radius: 8px; background: #fff; }
.bulk-panel > summary { cursor: pointer; list-style: none; min-height: 66px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bulk-panel > summary::-webkit-details-marker { display: none; }
.bulk-panel > summary::after { content: "+"; width: 30px; height: 30px; border-radius: 50%; background: #f1f3f5; display: grid; place-items: center; font-size: 20px; }
.bulk-panel[open] > summary::after { content: "−"; }
.bulk-panel > summary span { margin-right: auto; color: #667085; font-size: 13px; }
.feature-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px 16px; }
.feature-slot { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; padding: 14px; border: 1px solid #dfe3e8; border-radius: 8px; background: #f8fafc; }
.feature-slot__media { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feature-slot__media > span { color: #c8102e; font-size: 12px; font-weight: 900; }
.feature-slot__media img { display: block; width: 100%; height: 112px; object-fit: contain; border: 1px solid #e4e7ec; border-radius: 6px; background: #fff; }
.feature-slot__media .button { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 8px; font-size: 12px; }
.feature-slot__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 9px; min-width: 0; }
.feature-slot__wide { grid-column: 1 / -1; }
.feature-slot__active { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: 13px; font-weight: 800; }
.bulk-list { max-height: 520px; overflow: auto; border-top: 1px solid #e5e8ec; }
.bulk-row { min-height: 72px; display: grid; grid-template-columns: 54px minmax(220px, 1fr) 140px 180px; gap: 12px; align-items: center; padding: 8px 16px; border-bottom: 1px solid #e5e8ec; }
.bulk-row:last-child { border-bottom: 0; }
.bulk-row img { width: 54px; height: 54px; object-fit: contain; border-radius: 5px; background: #f7f8fa; }
.bulk-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.bulk-row > small { color: #667085; font-weight: 700; }
.bulk-row > div { display: grid; grid-template-columns: 24px 1fr; align-items: center; }
.bulk-row input { width: 100%; height: 40px; border: 1px solid #cbd2da; border-radius: 6px; padding: 0 10px; }
.admin-list { border: 1px solid #dfe3e8; border-radius: 8px; background: #fff; overflow: hidden; }
.admin-product { border-bottom: 1px solid #dfe3e8; background: #fff; }
.admin-product:last-child { border-bottom: 0; }
.admin-product__main { display: grid; grid-template-columns: 44px 106px minmax(250px, 1.5fr) minmax(145px, .7fr) 145px 140px 150px; gap: 12px; align-items: center; padding: 14px; }
.admin-product__select { display: grid; justify-items: center; gap: 4px; color: #667085; font-size: 10px; font-weight: 700; }
.admin-product__select input { width: 20px; height: 20px; accent-color: #e20d22; }
.admin-product__media { display: grid; gap: 6px; }
.admin-product__media img { width: 106px; height: 106px; object-fit: contain; border: 1px solid #e0e4e9; border-radius: 6px; background: #f8f9fa; }
.small-action { min-height: 30px; border: 1px solid #ccd3dc; border-radius: 5px; display: grid; place-items: center; color: #344054; font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-product__actions { display: grid; grid-template-columns: repeat(3, 40px); justify-content: flex-end; gap: 4px; }
.admin-product__actions .icon-button { width: 40px; flex: 0 0 40px; }
.admin-product__actions .row-save { grid-column: 1 / -1; }
.small-command { min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid #e20d22; border-radius: 6px; background: #e20d22; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.item-status { padding: 3px 7px; border-radius: 999px; font-size: 10px; font-style: normal; line-height: 1; white-space: nowrap; }
.item-status.is-active { color: #087443; background: #e8f7ef; }
.item-status.is-stopped { color: #667085; background: #eceff3; }
.admin-row { position: relative; display: grid; grid-template-columns: 104px minmax(240px, 1.7fr) minmax(150px, .7fr) 150px minmax(220px, 1fr) 150px 42px; gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid #e5e8ec; }
.admin-row:last-child { border-bottom: 0; }
.admin-row > img { width: 104px; height: 104px; object-fit: contain; border: 1px solid #e0e4e9; border-radius: 6px; background: #f8f9fa; }
.field { min-width: 0; display: grid; gap: 6px; }
.field > span { color: #667085; font-size: 12px; font-weight: 800; }
.field input, .field select { width: 100%; height: 42px; border: 1px solid #cbd2da; border-radius: 6px; padding: 0 11px; background: #fff; }
.price-input { display: grid; grid-template-columns: 26px 1fr; align-items: center; }
.price-input b { color: #667085; }
.row-options { display: grid; gap: 10px; font-size: 13px; font-weight: 700; }
.row-options label { display: flex; align-items: center; gap: 7px; }
.row-options input { width: 18px; height: 18px; accent-color: #e20d22; }
.icon-button { width: 40px; height: 40px; border: 1px solid #d7dce2; border-radius: 6px; background: #fff; color: #667085; font-size: 24px; cursor: pointer; }
.icon-button:hover { color: #e20d22; border-color: #e20d22; }
.icon-button:disabled { opacity: .35; cursor: not-allowed; color: #667085; border-color: #d7dce2; }
.save-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; min-height: 70px; padding: 12px max(16px, calc((100% - 1240px) / 2)); background: rgba(255,255,255,.97); border-top: 1px solid #dfe3e8; display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.save-bar span { color: #667085; font-weight: 700; }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 48px 20px; text-align: center; color: #667085; background: #fff; }
.product-dialog { width: min(920px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(16, 24, 40, .3); }
.product-dialog::backdrop { background: rgba(20, 23, 28, .64); }
.product-form { max-height: calc(100dvh - 32px); overflow: auto; }
.product-dialog__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; border-bottom: 1px solid #e5e8ec; background: #fff; }
.product-dialog__head h2 { margin: 2px 0 5px; font-size: 25px; letter-spacing: 0; }
.product-dialog__head p { margin: 0; color: #667085; }
.dialog-close { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid #d7dce2; border-radius: 6px; background: #fff; color: #667085; font-size: 25px; cursor: pointer; }
.product-form__body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding: 24px; }
.product-form__media { display: grid; align-content: start; gap: 10px; }
.product-image-preview { width: 100%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid #dfe3e8; border-radius: 7px; background: #f7f8fa; }
.product-image-preview img { width: 100%; height: 100%; object-fit: contain; }
.image-pick-button { display: grid; place-items: center; cursor: pointer; }
.product-form__media small { color: #667085; font-size: 11px; text-align: center; }
.product-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.product-form__title, .product-form__switches { grid-column: 1 / -1; }
.product-form__switches { display: flex; align-items: center; gap: 24px; min-height: 42px; padding: 10px 12px; border: 1px solid #dfe3e8; border-radius: 6px; background: #f8f9fa; font-size: 13px; font-weight: 700; }
.product-form__switches label { display: flex; align-items: center; gap: 7px; }
.product-form__switches input { width: 18px; height: 18px; accent-color: #e20d22; }
.product-form__advanced { grid-column: 1 / -1; border: 1px solid #dfe3e8; border-radius: 6px; background: #fff; }
.product-form__advanced > summary { min-height: 42px; display: flex; align-items: center; padding: 9px 12px; color: #475467; cursor: pointer; font-size: 12px; font-weight: 800; }
.product-form__advanced > div { display: grid; gap: 8px; padding: 0 12px 12px; border-top: 1px solid #edf0f3; }
.product-form__advanced .field { padding-top: 12px; }
.product-form__advanced p { margin: 0; color: #98a2b3; font-size: 11px; overflow-wrap: anywhere; }
.form-status { min-height: 20px; margin: 0; padding: 0 24px; color: #b42318; font-size: 13px; font-weight: 700; }
.product-dialog__actions { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid #e5e8ec; background: #fff; }
.product-dialog__item-actions { margin-right: auto; display: flex; gap: 8px; }
.product-dialog__item-actions .delete-item { color: #c8102e; border-color: #f0a7b2; }
.product-dialog__item-actions .delete-item:hover { color: #fff; border-color: #c8102e; background: #c8102e; }
.toast { position: fixed; right: 20px; bottom: 88px; z-index: 60; max-width: min(390px, calc(100% - 40px)); padding: 13px 16px; border-radius: 6px; background: #101828; color: #fff; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .18s ease, transform .18s ease; }
.toast[data-tone="error"] { background: #b42318; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .feature-editor { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-row { grid-template-columns: 90px 1fr 150px 140px 42px; }
  .admin-row > img { width: 90px; height: 90px; grid-row: span 2; }
  .image-field { grid-column: 2 / 4; }
  .row-options { grid-column: 4; grid-row: 2; }
  .icon-button { grid-column: 5; grid-row: 1; }
  .admin-product__main { grid-template-columns: 44px 96px 1fr 160px 130px; }
  .admin-product__media img { width: 96px; height: 96px; }
  .admin-product__select { grid-row: span 2; }
  .admin-product__media { grid-row: span 2; }
  .row-options { grid-column: 3 / 5; }
  .admin-product__actions { grid-column: 5; grid-row: 1 / 3; flex-direction: column; align-items: flex-end; }
}

@media (max-width: 860px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 20px, 1240px); }
  .header-inner { min-height: 58px; }
  .brand img { width: 102px; }
  .admin-header__top { min-height: 56px; gap: 12px; }
  .admin-header__brand { gap: 0; }
  .admin-header__brand > span, .admin-header__user { display: none; }
  .admin-header__utilities { gap: 0; }
  .admin-header__utilities > a, .admin-header__utilities > .link-button { min-height: 34px; padding-inline: 8px; font-size: 12px; }
  .admin-nav-wrap { overflow-x: auto; scrollbar-width: none; }
  .admin-nav-wrap::-webkit-scrollbar { display: none; }
  .admin-primary-nav { width: max-content; min-width: 100%; min-height: 48px; padding-inline: 0; }
  .admin-primary-nav a { min-width: 142px; padding: 7px 12px 8px; }
  .admin-primary-nav a::after { right: 12px; left: 12px; }
  .admin-primary-nav strong { font-size: 13px; }
  .header-inner nav a:not(.primary-link), .header-inner nav span { display: none; }
  .header-inner nav a, .link-button { padding: 8px 10px; font-size: 13px; }
  .page-main { padding-top: 22px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .page-heading > span { flex-basis: 100%; font-size: 12px; }
  .page-heading h1 { font-size: 26px; }
  .page-heading > .button { flex: 0 0 auto; padding-inline: 12px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-toolbar > input { min-width: 0; width: 100%; }
  .segments { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .segments button { white-space: nowrap; }
  .catalog-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 10px; }
  .admin-commandbar { overflow-x: auto; padding-bottom: 4px; }
  .admin-commandbar .button { white-space: nowrap; min-height: 40px; padding-inline: 12px; }
  .admin-commandbar #selection-count { order: -1; margin-left: 0; white-space: nowrap; }
  .admin-filter-selects { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .admin-filter-selects select { width: 100%; min-width: 0; }
  .admin-toolbar #item-count { align-self: flex-end; margin-left: 0; }
  .bulk-panel > summary { align-items: flex-start; flex-wrap: wrap; }
  .bulk-panel > summary span { flex-basis: calc(100% - 46px); }
  .bulk-row { grid-template-columns: 44px 1fr 120px; padding-inline: 10px; }
  .bulk-row img { width: 44px; height: 44px; }
  .bulk-row > small { display: none; }
  .admin-product__main { grid-template-columns: 34px 76px minmax(0, 1fr) 54px; gap: 9px; align-items: start; padding: 10px; }
  .admin-product__select { grid-column: 1; grid-row: 1; }
  .admin-product__media { grid-column: 2; grid-row: 1; }
  .admin-product__media img { width: 76px; height: 76px; }
  .title-field { grid-column: 3; grid-row: 1; }
  .category-field { grid-column: 1 / 3; grid-row: 2; }
  .price-field { grid-column: 3 / 5; grid-row: 2; }
  .admin-product__main .row-options { grid-column: 1 / 4; grid-row: 3; grid-template-columns: 1fr 1fr; }
  .admin-product__actions { grid-column: 4; grid-row: 1; display: grid; grid-template-columns: 54px; justify-items: end; }
  .admin-product__actions .row-save { grid-column: 1; }
  .admin-product__actions [data-move] { display: none; }
  .admin-product__actions .delete-item { width: 38px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .catalog-item { min-height: 302px; padding: 7px; grid-template-rows: auto auto minmax(46px, auto) auto auto; }
  .catalog-item__meta { margin-top: 6px; font-size: 10px; }
  .catalog-item h2 { margin-top: 3px; min-height: 0; font-size: 12px; line-height: 1.38; }
  .catalog-item__sub { margin: -5px 0 7px; font-size: 9px; }
  .catalog-item__price { min-height: 54px; padding: 7px; gap: 5px; }
  .catalog-item__price b { padding: 3px 7px; font-size: 9px; }
  .catalog-item__price small { font-size: 9px; }
  .catalog-item__price strong { font-size: 16px; }
  .catalog-item__price.is-check strong { font-size: 11px; }
  .admin-row { grid-template-columns: 76px 1fr 38px; gap: 10px; align-items: start; }
  .admin-row > img { width: 76px; height: 76px; grid-column: 1; grid-row: 1; }
  .title-field { grid-column: 2; grid-row: 1; }
  .category-field { grid-column: 1 / 3; }
  .price-field { grid-column: 1 / 3; }
  .image-field { grid-column: 1 / 3; }
  .row-options { grid-column: 1 / 3; grid-row: auto; grid-template-columns: 1fr 1fr; }
  .icon-button { grid-column: 3; grid-row: 1; width: 38px; height: 38px; }
  .save-bar { min-height: 64px; }
  .save-bar span { font-size: 12px; }
  .product-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .product-form { max-height: calc(100dvh - 20px); }
  .product-dialog__head { padding: 16px; }
  .product-dialog__head h2 { font-size: 21px; }
  .product-dialog__head p:not(.eyebrow) { display: none; }
  .product-form__body { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
  .product-form__media { grid-template-columns: 112px 1fr; align-items: center; }
  .product-image-preview { grid-row: span 2; }
  .product-form__media small { text-align: left; }
  .product-form__fields { grid-template-columns: 1fr 1fr; gap: 11px; }
  .product-form__title { grid-column: 1 / -1; }
  .product-form__switches { align-items: flex-start; flex-direction: column; gap: 10px; }
  .form-status { padding-inline: 16px; }
  .product-dialog__actions { padding: 12px 16px; }
  .product-dialog__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .product-dialog__item-actions { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0; }
  .product-dialog__actions > .button { width: 100%; }
}

@media (max-width: 720px) {
  .admin-commandbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .admin-commandbar #selection-count { grid-column: 1 / -1; }
  .admin-commandbar #open-poster { grid-column: 1 / -1; }
  .admin-product__main > .title-field { grid-column: 3; grid-row: 1; }
  .admin-product__main > .category-field { grid-column: 1 / 3; grid-row: 2; }
  .admin-product__main > .price-field { grid-column: 3 / 5; grid-row: 2; }
  .admin-product__actions .icon-button { grid-column: auto; grid-row: auto; width: 38px; height: 38px; }
}

@media (max-width: 440px) {
  .product-form__fields { grid-template-columns: 1fr; }
  .product-form__title, .product-form__switches { grid-column: 1; }
  .product-dialog__actions .button { flex: 1; padding-inline: 10px; }
}

/* Card-style catalog management */
.admin-page .admin-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.admin-page .admin-product { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #d8dde4; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(20, 23, 28, .06); }
.admin-page .admin-product__main { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 12px 0; }
.admin-page .admin-product__media { position: relative; display: block; }
.admin-page .admin-product__media img { width: 100%; height: auto; aspect-ratio: 1 / 1; display: block; object-fit: contain; border: 0; border-radius: 6px; background: #f7f8fa; }
.admin-page .admin-product__media .small-action { margin-top: 8px; }
.admin-page .admin-product__select { position: absolute; top: 7px; left: 7px; z-index: 2; display: flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid #d7dce2; border-radius: 5px; background: rgba(255, 255, 255, .94); color: #344054; font-size: 10px; }
.admin-page .admin-product__select input { width: 16px; height: 16px; }
.admin-card__date { margin: 10px 0 4px; color: #667085; font-size: 12px; font-weight: 800; }
.admin-card__title { min-height: 66px; margin: 0; color: #14171c; font-size: 15px; line-height: 1.45; letter-spacing: 0; overflow-wrap: anywhere; }
.admin-card__buy-settings { margin: auto -12px 0; padding: 12px; border-top: 1px solid #e5e8ec; background: #fafbfc; }
.admin-card__setting-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.admin-card__setting-head strong { font-size: 13px; }
.admin-card__setting-head label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.admin-card__setting-head input { width: 18px; height: 18px; accent-color: #e20d22; }
.admin-card__buy-settings .price-field { gap: 5px; }
.admin-card__buy-settings .price-input { grid-template-columns: 20px minmax(0, 1fr); }
.admin-card__buy-settings .price-input input { min-width: 0; }
.admin-card__status { min-width: 0; display: flex; align-items: center; gap: 7px; margin: 10px 0 0; color: #667085; font-size: 11px; font-weight: 700; }
.admin-card__price-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-product__footer { min-height: 44px; display: flex; align-items: stretch; border-top: 1px solid #dfe3e8; background: #f8f9fa; }
.admin-product__edit { min-width: 0; flex: 1; border: 0; background: transparent; color: #344054; cursor: pointer; font-size: 12px; font-weight: 800; text-align: left; padding: 0 12px; }
.admin-product__edit:hover { color: #d80d22; background: #fff4f5; }
.admin-product__order { display: flex; align-items: center; gap: 4px; padding: 4px; border-left: 1px solid #dfe3e8; }
.admin-product__order .icon-button { width: 34px; height: 34px; font-size: 18px; }

@media (max-width: 1100px) {
  .admin-page .admin-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .admin-page .admin-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .feature-editor { padding: 0 10px 10px; }
  .feature-slot { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .feature-slot__media img { height: 92px; }
  .feature-slot__fields { grid-template-columns: 1fr; }
  .feature-slot__wide { grid-column: auto; }
  .feature-slot__active { grid-column: auto; }
  .admin-page .admin-list { grid-template-columns: 1fr; }
  .admin-card__title { min-height: 0; margin-bottom: 12px; }
  .admin-page .admin-product__media img { aspect-ratio: 4 / 3; }
}
