/* Products module: compact and isolated catalog workspace. */
.view-root.view-root--products {
  --products-blue: #1769e8;
  --products-ink: #17243b;
  --products-muted: #6e7c92;
  --products-line: #e1e8f1;
  --products-soft: #f7f9fc;
}

.products-page {
  width: min(100%, 1540px);
  max-width: none;
  padding: 6px 3px 28px;
  gap: 12px;
  color: var(--products-ink);
}

.products-page > .products-hero {
  min-height: 78px;
  padding: 0 2px 11px;
  align-items: end;
  gap: 20px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--products-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.products-page > .products-hero::after { display: none; }
.products-hero .page__title-group { max-width: 710px; gap: 3px; }
.products-hero .page__eyebrow { color: #5680bc; font-size: 9px; letter-spacing: .12em; }
.products-hero .page__title { color: #15243c; font-size: clamp(25px, 1.85vw, 30px); letter-spacing: -.5px; }
.products-hero .page__description { max-width: 740px; margin-top: 1px; color: var(--products-muted); font-size: 11.5px; line-height: 1.45; }
.products-hero .page__toolbar { align-self: end; gap: 7px; }
.products-hero .page__toolbar .btn { min-height: 36px; padding: 0 13px; border-radius: 8px; font-size: 11px; }
.products-hero .page__toolbar .btn--ghost { border: 1px solid #d5e0ed; color: #52627a; background: #fff; }
.products-hero .page__toolbar .btn--ghost:hover { border-color: #9db9dd; color: #175fc9; background: #f7faff; }
.products-hero .page__toolbar .btn--primary { min-width: 124px; border-color: #1769e8; background: #1769e8; box-shadow: 0 5px 12px rgb(23 105 232 / 15%); }

.products-page > .stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.products-page .products-stat-card {
  position: relative;
  min-width: 0;
  min-height: 78px;
  padding: 11px 13px 10px 16px;
  gap: 4px;
  overflow: hidden;
  border-color: var(--products-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 10px rgb(31 54 89 / 4%);
}
.products-stat-card::before { content: ""; position: absolute; inset: 11px auto 11px 0; width: 3px; border-radius: 0 3px 3px 0; background: #3b82ef; }
.products-stat-card::after { content: ""; position: absolute; top: -29px; right: -23px; width: 70px; height: 70px; border-radius: 50%; background: #edf4ff; opacity: .85; }
.products-stat-card--violet::before { background: #7541d2; }.products-stat-card--violet::after { background: #f1ebff; }
.products-stat-card--orange::before { background: #dd8317; }.products-stat-card--orange::after { background: #fff2df; }
.products-stat-card--green::before { background: #25a05a; }.products-stat-card--green::after { background: #eaf8ef; }
.products-stat-card--cyan::before { background: #1591ae; }.products-stat-card--cyan::after { background: #e8f7fa; }
.products-stat-card .card__header { position: relative; z-index: 1; margin: 0; }
.products-stat-card .card__title { overflow: hidden; color: #596981; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.products-stat-card .card__meta { margin-top: 2px; overflow: hidden; color: #8995a7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.products-stat-card .card__value { position: relative; z-index: 1; color: #17243b; font-size: clamp(20px, 1.6vw, 24px); line-height: 1; }

.products-page .catalog-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 10px; }
.products-page .catalog-layout__main {
  min-width: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-color: var(--products-line);
  border-radius: 10px;
  box-shadow: 0 3px 12px rgb(31 54 89 / 4%);
}
.products-page .catalog-layout,
.products-page .catalog-layout__main > [data-product-filters-slot],
.products-page .catalog-layout__main > [data-products-table] { min-width: 0; max-width: 100%; }
.products-page .catalog-layout__main > [data-products-table] { overflow: hidden; }
.products-page .catalog-layout__main > .card__header { min-height: 60px; margin: 0; padding: 11px 15px; align-items: center; border-bottom: 1px solid #e7edf4; }
.products-page .catalog-layout__main .card__title { color: #1c2a42; font-size: 14px; }
.products-page .catalog-layout__main .card__subtitle { max-width: 690px; margin-top: 2px; color: #78869a; font-size: 9.5px; }
.products-page .catalog-layout__main > .card__header .badge { flex: 0 0 auto; min-height: 22px; padding: 3px 8px; font-size: 9px; }

.products-page .catalog-filters {
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e7edf4;
  border-radius: 0;
  display: grid;
  grid-template-columns: minmax(190px, 1.6fr) repeat(4, minmax(112px, .8fr)) auto;
  align-items: end;
  gap: 7px;
  background: #fbfcfe;
}
.products-page .catalog-filters .field { min-width: 0; gap: 3px; }
.products-page .catalog-filters .field__label { color: #65748a; font-size: 9px; }
.products-page .catalog-filters .field__input,
.products-page .catalog-filters .field__select { height: 35px; min-height: 35px; padding-inline: 9px; border-color: #d9e2ed; border-radius: 7px; font-size: 10.5px; }
.products-page .catalog-filters__actions { align-items: end; }
.products-page .catalog-filters__actions .btn { min-height: 35px; padding-inline: 11px; border: 1px solid #d8e2ee; border-radius: 7px; color: #596980; background: #fff; font-size: 10px; }

.products-page .catalog-table-wrap { width: 100%; overflow: auto; scrollbar-gutter: auto; }
.products-page .products-table { min-width: 880px; table-layout: fixed; font-size: 10.5px; }
.products-page .products-table th { height: 39px; padding: 7px 11px; color: #58677e; background: #fafbfd; font-size: 8.5px; letter-spacing: .04em; }
.products-page .products-table td { height: 64px; padding: 7px 11px; vertical-align: middle; }
.products-page .products-table th:nth-child(1) { width: 29%; }
.products-page .products-table th:nth-child(2) { width: 18%; }
.products-page .products-table th:nth-child(3) { width: 17%; }
.products-page .products-table th:nth-child(4) { width: 14%; }
.products-page .products-table th:nth-child(5) { width: auto; }
.products-page .products-table th:nth-child(6) { width: 48px; }
.products-page .products-table tbody tr { transition: background-color .16s ease; }
.products-page .products-table tbody tr:hover { background: #f8fbff; }
.products-page .catalog-product { min-width: 0; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.products-page .catalog-product__media { width: 44px; height: 44px; flex-basis: 44px; border-radius: 8px; font-size: 12px; }
.products-page .catalog-product__name { font-size: 11.25px; line-height: 1.3; }
.products-page .catalog-product__status-dot { width: 7px; height: 7px; }
.products-page .catalog-product__refs { display: flex; flex-wrap: wrap; gap: 3px; }
.products-page .catalog-product__refs span { min-height: 18px; padding: 1px 5px; border-color: #dce7f4; font-size: 7.75px; }
.products-page .catalog-table__stack { min-width: 0; gap: 2px; }
.products-page .catalog-table__stack > span,
.products-page .catalog-table__stack strong,
.products-page .catalog-table__stack small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.products-page .catalog-table__stack > span { color: #46556c; font-size: 9.5px; }
.products-page .catalog-table__stack strong { color: #26364e; font-size: 11px; }
.products-page .catalog-table__stack small { color: #8290a3; font-size: 8.5px; }
.products-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.products-page .product-row-menu-cell { position: relative; overflow: visible; padding-inline: 4px 9px; text-align: right; }
.products-page .product-row-menu { position: relative; display: inline-flex; }
.products-page .product-row-menu__trigger { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 7px; color: #63738a; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; }
.products-page .product-row-menu__trigger:hover,
.products-page .product-row-menu__trigger:focus-visible,
.products-page .product-row-menu__trigger[aria-expanded="true"] { border-color: #d8e5f4; color: #1767d7; background: #eaf3ff; outline: none; }
.products-page .product-row-menu__popover { position: absolute; z-index: 30; top: calc(100% + 4px); right: 0; display: grid; width: 158px; padding: 5px; border: 1px solid #dbe4ef; border-radius: 8px; background: #fff; box-shadow: 0 14px 30px rgb(28 49 78 / 18%); }
.products-page .product-row-menu__popover[hidden] { display: none; }
.products-page .product-row-menu__popover button { width: 100%; min-height: 32px; padding: 6px 9px; border: 0; border-radius: 5px; color: #314159; background: transparent; cursor: pointer; font: inherit; font-size: 10px; text-align: left; }
.products-page .product-row-menu__popover button:hover,
.products-page .product-row-menu__popover button:focus-visible { color: #0e5fca; background: #edf5ff; outline: none; }
.products-page .product-row-menu__popover .product-row-menu__status-action { margin-top: 3px; border-top: 1px solid #edf1f6; border-radius: 0 0 5px 5px; color: #b44949; }
.products-page .product-row-menu__popover .product-row-menu__status-action:hover,
.products-page .product-row-menu__popover .product-row-menu__status-action:focus-visible { color: #a83232; background: #fff1f1; }
.products-page .products-table tbody tr:nth-last-child(-n + 2) .product-row-menu__popover { top: auto; bottom: calc(100% + 4px); }

.products-page .catalog-layout__side { position: sticky; top: 10px; gap: 8px; }
.products-page .catalog-side-tabs { padding: 3px; border-radius: 9px; }
.products-page .catalog-side-tabs__button { min-height: 32px; flex: 1; padding: 5px 9px; border-radius: 6px; font-size: 10.5px; }
.products-page .catalog-side-panel { display: none; max-height: min(620px, calc(100dvh - 230px)); padding: 0; gap: 0; overflow: hidden; border-color: var(--products-line); border-radius: 10px; box-shadow: 0 3px 11px rgb(31 54 89 / 4%); }
.products-page .catalog-side-panel.is-active { display: flex; flex-direction: column; }
.products-page .catalog-side-panel > .card__header { min-height: 56px; margin: 0; padding: 10px 12px; align-items: center; border-bottom: 1px solid #e7edf4; }
.products-page .catalog-side-panel .card__title { font-size: 13px; }
.products-page .catalog-side-panel .card__subtitle { margin-top: 2px; font-size: 9px; line-height: 1.35; }
.products-page .catalog-side-panel > .card__header .btn { min-height: 32px; padding: 0 8px; border: 1px solid #d8e3f0; border-radius: 6px; color: #1762cc; background: #f8fbff; font-size: 9px; }
.products-page .catalog-side-panel > .field { margin: 10px 11px 8px; gap: 3px; }
.products-page .catalog-side-panel > .field .field__label { font-size: 9px; }
.products-page .catalog-side-panel > .field .field__input { height: 34px; min-height: 34px; padding-inline: 10px; border-radius: 7px; font-size: 10.5px; }
.products-page .catalog-side-panel > [data-categories-list],
.products-page .catalog-side-panel > [data-brands-list] { min-height: 0; padding: 0 10px 10px; overflow: auto; }
.products-page .catalog-list { gap: 5px; }
.products-page .catalog-list__item { padding: 8px 9px; border-radius: 7px; display: grid; gap: 7px; }
.products-page .catalog-list__title-row { gap: 6px; }
.products-page .catalog-list__title-row strong { color: #2c3a51; font-size: 10.5px; }
.products-page .catalog-list__item .badge { min-height: 19px; padding: 2px 6px; font-size: 8px; }
.products-page .catalog-list__content p,
.products-page .catalog-list__content small { margin: 2px 0 0; color: #7c899c; font-size: 8.5px; line-height: 1.35; }
.products-page .catalog-list__actions { gap: 4px; }
.products-page .catalog-list__actions .btn { min-height: 32px; padding: 0 8px; border-radius: 5px; font-size: 8.5px; }
.products-page .empty-state { min-height: 220px; padding: 26px; }
.products-page .empty-state--compact { min-height: 150px; }
.products-page .empty-state h3 { font-size: 13px; }.products-page .empty-state p { font-size: 9px; }

/* Product creation source and base catalog selectors. */
.modal:has(.product-source-menu) { width: min(560px, calc(100vw - 28px)); padding: 0; gap: 0; overflow: hidden; border-radius: 14px; }
.modal:has(.product-source-menu) .modal__header { min-height: 62px; padding: 12px 16px; }
.modal:has(.product-source-menu) .modal__title { font-size: 16px; }
.modal:has(.product-source-menu) .modal__subtitle { font-size: 11px; }
.modal:has(.product-source-menu) .modal__body { padding: 13px 16px 16px; }
.product-source-menu { gap: 7px; }
.product-source-menu__option { min-height: 64px; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 9px 11px; border-color: #dde5ef; border-radius: 9px; box-shadow: none; }
.product-source-menu__option:hover { border-color: #9dbbe4; background: #f7faff; transform: none; }
.product-source-menu__icon { width: 38px; height: 38px; border-radius: 9px; color: #1767d8; background: #eaf3ff; font-size: 14px; }
.product-source-menu__option strong { color: #26364d; font-size: 11.5px; }
.product-source-menu__option small { margin-top: 2px; color: #78869a; font-size: 9.5px; }

.modal:has(.base-catalog-selector) { width: min(1020px, calc(100vw - 28px)); padding: 0; gap: 0; overflow: hidden; border-radius: 14px; }
.modal:has(.base-catalog-selector) .modal__header { min-height: 62px; padding: 12px 16px; }
.modal:has(.base-catalog-selector) .modal__body { padding: 13px 16px 16px; }
.base-catalog-selector { gap: 9px; }
.base-catalog-selector__summary { min-height: 48px; padding: 8px 11px; border-radius: 8px; font-size: 11px; }
.base-catalog-selector__filters { gap: 7px; }
.base-catalog-selector .field { gap: 3px; }.base-catalog-selector .field__label { font-size: 9px; }
.base-catalog-selector .field__input,
.base-catalog-selector .field__select { height: 35px; min-height: 35px; padding-inline: 9px; border-radius: 7px; font-size: 10px; }
.base-catalog-selector__clear { min-height: 35px; border-radius: 7px; font-size: 10px; }
.base-catalog-selector__hint { padding: 8px 10px; border-radius: 7px; font-size: 10px; }
.base-catalog-selector__results { gap: 6px; }
.base-catalog-row { min-height: 58px; padding: 8px 10px; gap: 10px; border-radius: 7px; }
.base-catalog-row__body strong { font-size: 11px; }.base-catalog-row__body small, .base-catalog-row__body span { font-size: 9px; }

/* Product, category, brand and variant forms. */
.modal:has(.products-form) { width: min(920px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 0; gap: 0; overflow: hidden; border-color: #d9e2ee; border-radius: 14px; box-shadow: 0 24px 64px rgb(15 33 58 / 22%); }
.modal:has(.products-compact-form) { width: min(620px, calc(100vw - 28px)); }
.modal:has(.products-form) .modal__header { min-height: 62px; padding: 12px 17px; }
.modal:has(.products-form) .modal__title { font-size: 17px; }
.modal:has(.products-form) .modal__subtitle { max-width: 740px; font-size: 10.5px; line-height: 1.4; }
.modal:has(.products-form) .modal__header .icon-btn { width: 30px; height: 30px; border-radius: 7px; font-size: 11px; }
.modal:has(.products-form) .modal__body { min-height: 0; max-height: calc(100dvh - 90px); padding: 12px 14px 0; background: #f7f9fc; }
.products-form { gap: 9px; }
.products-form > .alert { min-height: 36px; padding: 8px 10px; border-radius: 7px; font-size: 10px; }
.products-form .catalog-form__section { padding: 11px 12px; gap: 9px; border-color: #e0e7f0; border-radius: 9px; background: #fff; }
.products-form .catalog-form__section-header { gap: 2px; }
.products-form .catalog-form__section-header h4 { color: #23324a; font-size: 12px; }
.products-form .catalog-form__section-header p { color: #7a879a; font-size: 9.5px; line-height: 1.4; }
.products-form .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.products-form .form-row--triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.products-form .field { min-width: 0; gap: 3px; }
.products-form .field__label { color: #46556c; font-size: 10px; }
.products-form .field__input,
.products-form .field__select { height: 37px; min-height: 37px; padding: 0 9px; border-color: #d8e1ec; border-radius: 7px; font-size: 11px; }
.products-form .field__textarea { min-height: 70px; padding: 8px 9px; border-color: #d8e1ec; border-radius: 7px; font-size: 11px; line-height: 1.45; }
.products-form .field__input:focus,
.products-form .field__select:focus,
.products-form .field__textarea:focus { border-color: #4b8dea; outline: 3px solid rgb(23 105 232 / 9%); }
.products-form .field__hint,
.products-form .field__error { font-size: 8.5px; line-height: 1.35; }
.products-form .info-strip { min-height: 42px; padding: 8px 10px; border-radius: 7px; font-size: 10px; }
.products-form .checkbox { min-height: 36px; padding: 8px 9px; gap: 7px; border-radius: 7px; background: #f8faff; }
.products-form .checkbox__label { color: #59687e; font-size: 10px; }
.products-form .product-form__additional-codes { border-radius: 7px; }
.products-form .product-form__additional-codes-summary { min-height: 39px; padding: 7px 9px; font-size: 10px; }
.products-form .product-form__additional-codes-summary small { font-size: 8.5px; }
.products-form .product-form__additional-codes-grid { padding: 0 9px 9px; }
.product-editor-form .product-image-fieldset { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px; gap: 8px; }
.product-editor-form .product-image-fieldset__recognition { grid-column: 1 / -1; min-height: 47px; padding: 7px 9px; gap: 10px; border-radius: 7px; }
.product-editor-form .product-image-fieldset__recognition strong { font-size: 9.5px; }
.product-editor-form .product-image-fieldset__recognition span { font-size: 8px; }
.product-editor-form .product-image-fieldset__recognition .btn { min-height: 31px; border-radius: 6px; font-size: 8.5px; }
.product-editor-form .product-image-fieldset > [data-product-image-preview] { grid-column: 3; grid-row: 2 / span 2; min-height: 0; }
.products-form .product-image-preview { min-height: 108px; height: 100%; padding: 8px; border-radius: 7px; }
.products-form .product-image-preview img { max-height: 105px; }
.products-form .product-image-preview__placeholder { width: 52px; height: 52px; border-radius: 12px; font-size: 9px; }
.products-form .product-image-preview__caption { font-size: 7px; }
.products-form .base-catalog-prefill { grid-template-columns: 1.25fr .75fr; }
.products-form .base-catalog-prefill__eyebrow { font-size: 7px; }
.products-form .base-catalog-prefill h4 { font-size: 11px; }
.products-form .base-catalog-prefill p,
.products-form .base-catalog-prefill__notes { font-size: 8px; }
.products-form .base-catalog-prefill__chips { gap: 3px; }
.products-form .base-catalog-prefill__chips span { min-height: 19px; padding: 2px 5px; font-size: 7px; }
.products-form .catalog-form__actions { position: sticky; bottom: 0; z-index: 4; min-height: 56px; margin: 2px -14px 0; padding: 9px 14px; border-top: 1px solid #e1e8f1; background: rgb(255 255 255 / 96%); backdrop-filter: blur(7px); }
.products-form .catalog-form__actions .btn { min-height: 36px; padding: 0 13px; border-radius: 7px; font-size: 10.5px; }
.products-form .variant-axis-list { gap: 7px; }.products-form .variant-axis-row { gap: 8px; }

/* Read-only product and variant details. */
.modal:has(.products-detail) { width: min(760px, calc(100vw - 28px)); padding: 0; gap: 0; overflow: hidden; border-radius: 14px; }
.modal:has(.products-detail) .modal__header { min-height: 62px; padding: 12px 17px; }
.modal:has(.products-detail) .modal__title { font-size: 16px; }
.modal:has(.products-detail) .modal__subtitle { font-size: 9.5px; }
.modal:has(.products-detail) .modal__body { padding: 13px 16px; }
.products-detail { gap: 9px; }
.products-detail .detail-hero { min-height: 96px; padding: 12px 14px; border-radius: 9px; }
.products-detail .detail-hero h4 { font-size: 17px; }.products-detail .detail-hero p { font-size: 9px; }
.products-detail .detail-price strong { font-size: 19px; }
.products-detail .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.products-detail .detail-grid__item { min-height: 58px; padding: 8px 9px; border-radius: 7px; }
.products-detail .detail-grid__item span { font-size: 7.5px; }.products-detail .detail-grid__item strong, .products-detail .detail-grid__link { font-size: 9.5px; }

/* Premium product detail: isolated from forms, variants and every other modal. */
.modal-overlay:has(.product-detail-modal) { padding: 14px; background: rgb(23 38 59 / 48%); backdrop-filter: blur(7px); }
.modal:has(.product-detail-modal) {
  width: min(1240px, calc(100vw - 36px));
  max-height: calc(100dvh - 28px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(211 221 234 / 92%);
  border-radius: 18px;
  background: #fbfdff;
  box-shadow: 0 28px 80px rgb(12 30 52 / 28%);
  animation: product-detail-enter 180ms ease-out both;
}
@keyframes product-detail-enter { from { opacity: 0; transform: translateY(5px) scale(.992); } to { opacity: 1; transform: none; } }
.modal:has(.product-detail-modal) .modal__header {
  min-height: 78px;
  align-items: center;
  padding: 16px 26px;
  border-bottom: 1px solid #e3e9f1;
  background: linear-gradient(180deg, #fff, #fcfdff);
}
.modal:has(.product-detail-modal) .modal__title { color: #14223a; font-size: clamp(22px, 2vw, 27px); line-height: 1.1; letter-spacing: -.035em; }
.modal:has(.product-detail-modal) .modal__subtitle { margin-top: 5px; color: #68788f; font-size: 12.5px; line-height: 1.35; }
.modal:has(.product-detail-modal) .modal__header .icon-btn {
  width: 42px;
  height: 42px;
  border-color: #dce4ee;
  border-radius: 50%;
  color: #17243a;
  background: #fff;
  box-shadow: 0 5px 14px rgb(34 55 82 / 8%);
  font-size: 18px;
}
.modal:has(.product-detail-modal) .modal__header .icon-btn:hover { border-color: #b7ccec; color: #0c63d4; background: #f5f9ff; transform: translateY(-1px); }
.modal:has(.product-detail-modal) .modal__body.product-detail-modal__body {
  min-height: 0;
  max-height: none;
  padding: 16px 22px 13px;
  overflow: auto;
  scrollbar-gutter: stable;
  background: #f8fafc;
}
.modal:has(.product-detail-modal) .modal__footer {
  min-height: 58px;
  align-items: center;
  padding: 9px 25px;
  border-top: 1px solid #e3e9f1;
  background: rgb(255 255 255 / 96%);
}
.modal:has(.product-detail-modal) .modal__footer .btn {
  min-width: 104px;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid #b8cff0;
  border-radius: 8px;
  color: #0e62cf;
  background: #fff;
  box-shadow: none;
  font-size: 11px;
}
.modal:has(.product-detail-modal) .modal__footer .btn:hover { border-color: #1769e8; background: #f2f7ff; }

.product-detail-modal { display: grid; gap: 12px; color: #17243b; }
.product-detail-showcase { display: grid; grid-template-columns: minmax(0, 1.82fr) minmax(300px, .78fr); gap: 12px; }
.product-detail-overview {
  position: relative;
  min-width: 0;
  min-height: 246px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 22px 25px 20px 18px;
  overflow: hidden;
  border: 1px solid #d9e5f6;
  border-radius: 16px;
  background:
    radial-gradient(circle at 85% 20%, rgb(255 255 255 / 72%) 0 5%, transparent 32%),
    linear-gradient(135deg, #eaf2ff 0%, #f7faff 52%, #dfebff 100%);
}
.product-detail-overview::before,
.product-detail-overview::after { content: ""; position: absolute; pointer-events: none; border: 1px solid rgb(255 255 255 / 70%); border-radius: 50%; }
.product-detail-overview::before { width: 330px; height: 330px; top: -96px; right: -160px; }
.product-detail-overview::after { width: 270px; height: 270px; right: -126px; bottom: -175px; }
.product-detail-overview__media {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 154px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(221 230 242 / 88%);
  border-radius: 18px;
  color: #236ce3;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 12px 25px rgb(58 92 138 / 10%);
}
.product-detail-overview__media img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; border-radius: 12px; background: #fff; }
.product-detail-overview__fallback { display: inline-grid; width: 62px; height: 62px; place-items: center; border-radius: 16px; background: #edf4ff; }
.product-detail-overview__fallback .product-detail-icon { width: 34px; height: 34px; }
.product-detail-overview__content { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.product-detail-status { display: inline-flex; min-height: 28px; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 800; }
.product-detail-status i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgb(255 255 255 / 32%); }
.product-detail-status--active { border-color: #b7d3ff; color: #fff; background: #1769e8; box-shadow: 0 5px 12px rgb(23 105 232 / 18%); }
.product-detail-status--inactive { border-color: #f1cf9b; color: #8f5700; background: #fff2da; }
.product-detail-overview h4 {
  max-width: 720px;
  margin: 13px 0 8px;
  color: #11213c;
  font-size: clamp(25px, 2.35vw, 32px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.product-detail-overview p {
  width: 100%;
  max-height: 110px;
  margin: 0;
  padding-right: 5px;
  overflow: auto;
  color: #52647e;
  font-size: 11.5px;
  line-height: 1.55;
  white-space: pre-line;
  scrollbar-width: thin;
}
.product-detail-overview__reference { width: 100%; min-width: 0; display: flex; align-items: center; gap: 5px; margin-top: 7px; color: #73839a; font-size: 9.5px; }
.product-detail-overview__reference span { flex: 0 0 auto; }
.product-detail-overview__reference a,
.product-detail-overview__reference strong { min-width: 0; overflow: hidden; color: #1767d7; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.product-detail-overview__reference a { text-decoration: none; }.product-detail-overview__reference a:hover { text-decoration: underline; }

.product-detail-price-card {
  --product-detail-price-max: 58px;
  --product-detail-price-min: 24px;
  container-type: inline-size;
  position: relative;
  min-width: 0;
  min-height: 246px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 25px;
  overflow: hidden;
  border: 1px solid #143b73;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 16%, rgb(17 132 227 / 24%), transparent 30%),
    radial-gradient(circle at 15% 80%, rgb(13 87 177 / 20%), transparent 36%),
    linear-gradient(145deg, #102e5f 0%, #071f47 55%, #0d326c 100%);
  box-shadow: 0 12px 28px rgb(12 45 93 / 19%);
}
.product-detail-price-card::before { content: ""; position: absolute; width: 370px; height: 120px; right: -95px; bottom: -67px; border: 1px solid rgb(61 147 255 / 25%); border-radius: 50%; transform: rotate(-9deg); box-shadow: 0 -12px 0 rgb(32 126 238 / 6%), 0 -24px 0 rgb(32 126 238 / 4%); }
.product-detail-price-card::after { content: ""; position: absolute; inset: 0; opacity: .15; pointer-events: none; background-image: radial-gradient(circle, #5fb1ff 1px, transparent 1.2px); background-size: 11px 11px; mask-image: linear-gradient(to top, #000, transparent 58%); }
.product-detail-price-card__header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-detail-price-card__header > span:first-child { color: #d6e5fb; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.product-detail-price-card__icon { width: 44px; height: 44px; display: inline-grid; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #0877be, #0b5895); box-shadow: inset 0 1px 0 rgb(255 255 255 / 13%); }
.product-detail-price-card__icon .product-detail-icon { width: 22px; height: 22px; }
.product-detail-price-card__accent { position: relative; z-index: 1; width: 25px; height: 3px; margin: 9px 0 12px; border-radius: 3px; background: #1976ff; }
.product-detail-price-card__value-wrap { position: relative; z-index: 1; width: 100%; min-width: 0; display: flex; align-items: center; min-height: 74px; overflow: hidden; }
.product-detail-price-card__value-wrap strong {
  display: inline-block;
  max-width: 100%;
  color: #fff;
  font-size: clamp(24px, 16cqw, 58px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.045em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 6px 18px rgb(0 0 0 / 14%);
}
.product-detail-price-card > small { position: relative; z-index: 1; margin-top: 8px; color: #9db8dc; font-size: 9px; }

.product-detail-meta-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.product-detail-meta-card {
  min-width: 0;
  min-height: 64px;
  grid-column: span 2;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid #dfe6ef;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(35 57 84 / 2.5%);
}
.product-detail-meta-card--wide { grid-column: span 3; }
.product-detail-meta-card__icon { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 10px; color: #1769e8; background: #eaf2ff; }
.product-detail-meta-card__icon .product-detail-icon { width: 22px; height: 22px; }
.product-detail-meta-card--violet .product-detail-meta-card__icon { color: #6d3bd1; background: #f0eaff; }
.product-detail-meta-card--green .product-detail-meta-card__icon { color: #159052; background: #e8f7ef; }
.product-detail-meta-card--cyan .product-detail-meta-card__icon { color: #078ca7; background: #e5f6f8; }
.product-detail-meta-card__copy { min-width: 0; display: grid; align-content: center; gap: 3px; }
.product-detail-meta-card__copy > span { color: #738198; font-size: 8.5px; font-weight: 700; letter-spacing: .045em; line-height: 1.2; text-transform: uppercase; }
.product-detail-meta-card__copy strong,
.product-detail-meta-card__link { min-width: 0; overflow: hidden; color: #17253c; font-size: 11px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; text-overflow: ellipsis; }
.product-detail-meta-card__link { width: fit-content; max-width: 100%; color: #1766d3; text-decoration: none; white-space: nowrap; }
.product-detail-meta-card__link:hover { text-decoration: underline; text-underline-offset: 2px; }
.product-detail-icon { width: 24px; height: 24px; }

@media (max-width: 1280px) {
  .products-page .catalog-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .products-page .catalog-filters { grid-template-columns: minmax(180px, 1.5fr) repeat(2, minmax(115px, 1fr)) auto; }
  .products-page .catalog-filters > :nth-child(4),
  .products-page .catalog-filters > :nth-child(5) { grid-row: 2; }
  .products-page .catalog-filters__actions { grid-column: 4; grid-row: 2; }
}

@media (max-width: 980px) {
  .products-page .catalog-layout { grid-template-columns: 1fr; }
  .products-page .catalog-layout__side { position: static; grid-template-columns: 1fr; }
  .products-page .catalog-side-panel { max-height: 440px; }
}

@media (max-width: 720px) {
  .view-root.view-root--products { padding: 11px; }
  .products-page { padding: 3px 0 22px; gap: 10px; }
  .products-page > .products-hero { min-height: 0; align-items: stretch; gap: 10px; }
  .products-hero .page__title { font-size: 23px; }
  .products-hero .page__description { font-size: 10px; }
  .products-hero .page__toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .products-hero .page__toolbar .btn[data-action="new-product"] { grid-column: 1 / -1; grid-row: 1; }
  .products-hero .page__toolbar .btn { width: 100%; min-height: 36px; padding: 0 8px; border-radius: 7px; font-size: 9px; }
  .products-page > .stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .products-page .products-stat-card { min-width: 0; max-width: none; min-height: 72px; padding: 10px 11px 9px 14px; border-radius: 8px; }
  .products-page .products-stat-card:last-child { grid-column: 1 / -1; }
  .products-page .catalog-layout__main > .card__header { align-items: flex-start; }
  .products-page .catalog-filters { grid-template-columns: 1fr 1fr; gap: 7px; padding: 9px; }
  .products-page .catalog-filters__search { grid-column: 1 / -1; }
  .products-page .catalog-filters > :nth-child(4),
  .products-page .catalog-filters > :nth-child(5),
  .products-page .catalog-filters__actions { grid-column: auto; grid-row: auto; }
  .products-page .catalog-filters__actions .btn { width: 100%; }
  .modal:has(.products-form),
  .modal:has(.products-detail) { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 11px; }
  .modal:has(.products-form) .modal__body { max-height: calc(100dvh - 76px); padding-inline: 11px; }
  .products-form .form-row,
  .products-form .form-row--triple { grid-template-columns: 1fr; }
  .product-editor-form .product-image-fieldset { grid-template-columns: 1fr; }
  .product-editor-form .product-image-fieldset__recognition,
  .product-editor-form .product-image-fieldset > [data-product-image-preview] { grid-column: 1; grid-row: auto; }
  .products-form .base-catalog-prefill { grid-template-columns: 1fr; }
  .products-form .catalog-form__actions { margin-inline: -11px; padding-inline: 11px; }
  .products-form .catalog-form__actions .btn { flex: 1; }
  .products-detail .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .products-page > .stats-grid { grid-template-columns: 1fr; }
  .products-page .products-stat-card:last-child { grid-column: auto; }
  .products-page .catalog-filters { grid-template-columns: 1fr; }
  .products-page .catalog-filters__search { grid-column: auto; }
  .products-detail .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .modal:has(.product-detail-modal) { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .product-detail-showcase { grid-template-columns: 1fr; }
  .product-detail-overview { min-height: 220px; }
  .product-detail-price-card { min-height: 175px; }
  .product-detail-price-card__value-wrap { min-height: 58px; }
  .product-detail-meta-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-detail-meta-card,
  .product-detail-meta-card--wide { grid-column: span 2; }
}

@media (max-width: 720px) {
  .modal-overlay:has(.product-detail-modal) { padding: 6px; }
  .modal:has(.product-detail-modal) { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 12px; }
  .modal:has(.product-detail-modal) .modal__header { min-height: 66px; padding: 12px 14px; }
  .modal:has(.product-detail-modal) .modal__title { font-size: 19px; }
  .modal:has(.product-detail-modal) .modal__subtitle { max-width: 270px; font-size: 9.5px; }
  .modal:has(.product-detail-modal) .modal__header .icon-btn { width: 36px; height: 36px; }
  .modal:has(.product-detail-modal) .modal__body.product-detail-modal__body { padding: 10px; scrollbar-gutter: auto; }
  .modal:has(.product-detail-modal) .modal__footer { min-height: 52px; padding: 7px 11px; }
  .modal:has(.product-detail-modal) .modal__footer .btn { width: 100%; min-height: 37px; }
  .product-detail-modal { gap: 9px; }
  .product-detail-showcase { gap: 9px; }
  .product-detail-overview { min-height: 0; grid-template-columns: 1fr; gap: 12px; padding: 14px; border-radius: 12px; }
  .product-detail-overview__media { width: 92px; height: 92px; border-radius: 14px; }
  .product-detail-overview__fallback { width: 50px; height: 50px; }
  .product-detail-overview__fallback .product-detail-icon { width: 28px; height: 28px; }
  .product-detail-status { min-height: 25px; padding: 4px 9px; font-size: 9.5px; }
  .product-detail-overview h4 { margin: 9px 0 7px; font-size: clamp(22px, 7.3vw, 27px); }
  .product-detail-overview p { max-height: 128px; font-size: 10.5px; }
  .product-detail-overview__reference { align-items: flex-start; flex-direction: column; gap: 2px; font-size: 9px; }
  .product-detail-overview__reference a,
  .product-detail-overview__reference strong { width: 100%; }
  .product-detail-price-card { min-height: 170px; padding: 17px 18px; border-radius: 12px; }
  .product-detail-price-card__icon { width: 38px; height: 38px; }
  .product-detail-price-card__accent { margin-block: 6px 8px; }
  .product-detail-price-card__value-wrap { min-height: 54px; }
  .product-detail-meta-grid { grid-template-columns: 1fr; gap: 7px; }
  .product-detail-meta-card,
  .product-detail-meta-card--wide { min-height: 60px; grid-column: auto; grid-template-columns: 38px minmax(0, 1fr); gap: 9px; padding: 7px 10px; border-radius: 9px; }
  .product-detail-meta-card__icon { width: 38px; height: 38px; border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal:has(.product-detail-modal) { animation: none; }
}
