.catalog-content {
  width: min(86%, 1280px);
  margin: 0 auto;
  padding-bottom: 64px;
}
.inner-page.store-page { background: #f3f7fb; }
.store-page .catalog-content { width: min(90%, 1360px); }
.shop-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 24px;
}
.shop-brand a { display: inline-flex; border-radius: 16px; }
.shop-brand img { width: 60px; height: 60px; filter: drop-shadow(0 6px 10px #2e577547); }
.shop-brand span {
  display: block;
  margin-bottom: 2px;
  color: #4f6379;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.shop-brand h1 { margin: 0; color: #142f45; font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -.045em; }
.shop-empty-account { padding: 25px; border: 1px solid #c7d9e7; border-radius: 14px; background: #fff; }
.shop-layout { display: grid; grid-template-columns: minmax(230px, 276px) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.shop-sidebar, .shop-results { min-width: 0; }
.shop-sidebar { display: grid; gap: 12px; }
.shop-side-panel { overflow: hidden; border: 1px solid #c9dae9; border-radius: 13px; background: #fff; box-shadow: 0 12px 22px -22px #27455f; }
.shop-side-panel summary, .shop-panel-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 13px;
  color: #203f57;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.shop-panel-heading { margin: 0; font-size: 1rem; line-height: 1.2; letter-spacing: normal; cursor: default; }
.shop-side-panel summary::-webkit-details-marker { display: none; }
.shop-side-panel summary svg, .shop-panel-heading svg { width: 18px; height: 18px; flex: none; }
.shop-side-panel summary::after { content: "+"; margin-left: auto; color: #775376; }
.shop-side-panel[open] summary::after { content: "−"; }
.shop-side-categories .shop-panel-heading { background: #1c3b55; color: #f4f9ff; }
.shop-side-panel[open] > :not(summary) { animation: shop-reveal .22s ease both; }
.shop-side-filters[open] summary { border-bottom: 1px solid #e0eaf3; }
.shop-filter-active { padding: 3px 6px; border-radius: 6px; color: #654463; background: #efe2ef; font-size: .67rem; }
@keyframes shop-reveal { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
.shop-tree, .shop-tree ul { margin: 0; padding: 0; list-style: none; }
.shop-tree { padding: 8px; }
.shop-tree ul { margin-left: 10px; padding-left: 6px; border-left: 1px solid #c9d8e5; }
.shop-tree a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  min-height: 36px;
  padding: 8px;
  border-radius: 7px;
  color: #25455c;
  font-size: .78rem;
  overflow-wrap: anywhere;
}
.shop-tree a small { flex: none; color: #47647b; font-variant-numeric: tabular-nums; }
.shop-tree a:hover, .shop-tree a[aria-current] { background: #e4ecf6; }
.shop-tree a[aria-current] { color: #603b5c; font-weight: 700; }
.shop-tree-branch > a { font-weight: 700; }
.shop-filter-form { padding: 12px; }
.shop-refinements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shop-refinements .shop-filter-wide { grid-column: 1 / -1; }
.shop-refinements label { min-width: 0; color: #23445d; font-size: .8rem; font-weight: 650; }
.shop-refinements select, .shop-refinements input[type=search] {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 5px;
  padding: 6px 9px;
  border: 1px solid #a8c0d3;
  border-radius: 7px;
  background: #fff;
  color: #233e54;
  font: inherit;
  font-weight: 500;
}
.shop-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.shop-filter-actions .btn { min-height: 42px; padding: 8px 13px; border-radius: 8px; }
.shop-filter-actions a { color: #5f3b62; font-size: .8rem; text-decoration: underline; }
.shop-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; font-size: .78rem; }
.shop-crumbs > * + *::before { content: "/"; margin-right: 8px; color: #8c6685; }
.shop-crumbs a { color: #315775; }
.shop-crumb-brand { display: inline-flex; align-items: center; gap: 5px; }
.shop-crumb-brand img { width: 25px; height: 25px; }
.shop-brand a.shop-cart-link, .shop-crumbs .shop-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 8px 10px;
  border: 1px solid #bbd0e1;
  border-radius: 8px;
  color: #234862;
  background: #fff;
  font-size: .82rem;
  font-weight: 700;
}
.shop-cart-link b { min-width: 23px; padding: 3px 6px; border-radius: 20px; color: #fff; background: #254a66; text-align: center; }
.shop-crumbs .shop-cart-link::before { content: none; }
.shop-crumbs [aria-current] { color: #653a61; font-weight: 600; }
.shop-results-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 0 0 14px; }
.shop-results-heading h2 { margin: 0; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.02em; }
.shop-results-heading > span { color: #47647b; font-size: .8rem; }
.shop-results .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.shop-results .catalog-card { border-radius: 15px; background: #fff; transition: border-color .22s ease, box-shadow .22s ease; }
.shop-results .catalog-card:hover { box-shadow: 0 15px 25px -19px #264864; }
.shop-results .catalog-card > a { display: flex; flex-direction: column; }
.shop-results .catalog-card-info { display: flex; flex: 1; flex-direction: column; }
.shop-results .catalog-offer { margin: auto 0 0; padding-top: 10px; border-top: 1px solid #e4edf5; }
.shop-results .catalog-offer strong { color: #163650; font-size: 1.1rem; }
.shop-results .catalog-card img, .shop-results .catalog-no-image { height: 195px; border-bottom: 1px solid #ebf1f7; }
.shop-preview-description { margin: 0 0 7px; color: #47647b; font-size: .78rem; line-height: 1.42; }
.catalog-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #c7d8e7;
  border-radius: 14px;
  background: #e6eff8;
}
.catalog-filters input,
.catalog-filters select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: 1px solid #8ba7bc;
  border-radius: 8px;
  background: #fff;
  color: #253e51;
  padding: 8px 10px;
  font: inherit;
}
.catalog-filters .btn { min-height: 44px; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 18px;
}
.catalog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #bfd0de;
  border-radius: 14px;
  background: #f9fcff;
  overflow-wrap: anywhere;
  box-shadow: 0 6px 22px -15px #2b5677;
}
.catalog-card > a { display: block; height: 100%; color: inherit; }
.catalog-card > a:focus-visible { outline-offset: -3px; }
.catalog-card > a:hover h3 { color: #653a61; }
.catalog-card:focus-within, .catalog-card:hover { border-color: #a383a4; }
.catalog-card img, .catalog-no-image {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: contain;
  padding: 12px;
  background: #fff;
}
.catalog-no-image { display: grid; place-items: center; background: #e3edf7; color: #365974; }
.catalog-card-info { padding: 16px; }
.catalog-card-info .eyebrow { margin: 0 0 7px; }
.catalog-card-info h3 { margin: 0 0 8px; font-size: .875rem; font-weight: 650; line-height: 1.45; letter-spacing: normal; }
.catalog-code { font-size: .85rem; }
.catalog-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.catalog-offer small { font-size: .7rem; font-weight: 500; }
.catalog-supplier-price { flex-basis: 100%; color: #653a61; line-height: 1.45; }
.catalog-in-stock { background: #dff1e9; color: #205044; }
.catalog-out-of-stock { background: #f4e6ea; color: #78394b; }
.catalog-stock { display: inline-flex; align-items: center; gap: 6px; }
.catalog-stock::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.catalog-warning { border-left: 3px solid #a25883; padding: 8px 12px; }
.catalog-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 24px; }
.catalog-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 22px; }
.shop-product-heading { padding-bottom: 8px; }
.catalog-gallery { display: grid; gap: 12px; min-width: 0; }
.shop-gallery-cover, .shop-gallery-empty {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(55vw, 460px);
  overflow: hidden;
  border: 1px solid #bed0df;
  border-radius: 16px;
  background: #fff;
}
.shop-gallery-cover { cursor: zoom-in; }
.shop-gallery-cover img { width: 100%; height: min(62vw, 500px); padding: 16px; object-fit: contain; }
.shop-gallery-cover > span {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #b6c8d7;
  border-radius: 8px;
  background: #f8fbff;
  color: #23445f;
  font-size: .8rem;
  font-weight: 700;
}
.shop-gallery-cover svg { width: 14px; height: 14px; }
.shop-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-thumbnails a { display: block; border: 1px solid #bed0df; border-radius: 9px; overflow: hidden; background: #fff; }
.shop-thumbnails a[aria-current] { border: 2px solid #775376; }
.shop-thumbnails img { width: 74px; height: 64px; padding: 4px; object-fit: contain; }
.shop-single-photo { display: none; }
.shop-zoom {
  width: min(94vw, 1000px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  margin: auto;
  border: 0;
  border-radius: 15px;
  background: #fff;
  color: #19374d;
}
.shop-zoom[open] { animation: shop-reveal .25s ease both; }
.shop-zoom::backdrop { background: #132536bd; }
.shop-zoom-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: #eaf2f9; }
.shop-zoom-bar h2 { margin: 0; font-size: 1rem; letter-spacing: normal; }
.shop-zoom-stage { display: grid; place-items: center; padding: 10px; }
.shop-zoom-stage img { max-width: 100%; width: auto; height: min(74vh, 800px); object-fit: contain; }
.shop-zoom-button { min-height: 40px; padding: 6px 10px; border: 1px solid #9bb5c7; border-radius: 8px; background: #fff; color: #244963; font: inherit; cursor: pointer; }
.shop-zoom-nav { font-size: .85rem; }
.shop-product-info { padding: clamp(17px, 2.3vw, 26px); }
.shop-product-info h1 {
  margin: 5px 0 14px;
  font-size: clamp(1.125rem, 1.65vw, 1.5rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.018em;
  overflow-wrap: anywhere;
}
.shop-product-info .catalog-offer strong { font-size: clamp(1.125rem, 1.6vw, 1.375rem); }
.shop-product-codes { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 15px; }
.shop-product-codes p { margin: 0; }
.shop-description { margin-top: 23px; border-top: 1px solid #d4e1ec; padding-top: 15px; }
.shop-description h2 { font-size: 1.1rem; letter-spacing: normal; margin: 0 0 9px; }
.catalog-description { white-space: pre-line; }
.console-heading { padding-bottom: 22px; }
.console-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  width: min(86%, 1280px);
  margin: 0 auto 25px;
  padding: 9px;
  border-radius: 14px;
  background: #203e56;
  color: #eaf4fd;
}
.console-nav a { color: inherit; padding: 12px 14px; border-radius: 8px; }
.console-nav a[aria-current], .console-nav a:hover { background: #3a5970; }
.console-nav a span { margin-right: 5px; color: #f0c77f; font-size: .75rem; }
.console-client-view { margin-left: auto; }
.console-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.console-stats > div { padding: 18px; border: 1px solid #c6d8e6; border-radius: 12px; background: #e7eff8; }
.console-stats span { display: block; margin-bottom: 5px; font-size: .8rem; }
.console-stats strong { color: #233f57; font-size: clamp(1.1rem, 3vw, 1.8rem); }
.console-store { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; gap: 22px; }
.console-store .panel { min-width: 0; }
.console-inline-link { display: inline-block; margin: 14px 0 0; }
.console-overview { padding-bottom: 0; }
.console-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 20px; }
.console-toolbar h2 { margin: 4px 0 0; }
.console-table-wrap { overflow-x: auto; border: 1px solid #c6d8e6; border-radius: 14px; background: #f9fcff; }
.console-table { width: 100%; min-width: 570px; border-collapse: collapse; text-align: left; }
.console-table th, .console-table td { padding: 13px 16px; border-bottom: 1px solid #d9e6f0; }
.console-table thead { background: #203e56; color: #edf6fc; }
.console-table tbody tr:last-child > * { border-bottom: 0; }
.console-table tbody tr:hover { background: #e9f2fa; }
.console-table small { display: block; margin-top: 4px; color: #4e6b80; }
.console-product-form { max-width: 680px; }
.console-product-form .console-inline-link { margin-left: 12px; }
.console-category {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #d7e5f0;
  overflow-wrap: anywhere;
}
.console-category input[type=checkbox] { width: 17px; height: 17px; margin: 2px 0 0; }
.console-category small { display: block; margin-top: 3px; color: #4e6b80; }
.catalog-access-form { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.55fr); gap: 18px; align-items: start; }
.catalog-access-form fieldset { min-width: 0; }
.catalog-access-form legend { padding: 0 6px; color: #183a53; font-size: 1.05rem; font-weight: 700; }
.catalog-access-mode label, .access-category-choice { display: flex; gap: 9px; align-items: baseline; }
.catalog-access-mode :is(input[type=radio], input[type=checkbox]), .access-category-choice input[type=checkbox] {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #315c7c;
}
.catalog-access-mode .btn { margin-top: 13px; }
.access-category-save { display: none; }
.catalog-access-tree details { border-top: 1px solid #d6e4ee; }
.catalog-access-tree summary { padding: 10px 0; font-weight: 650; cursor: pointer; color: #264863; overflow-wrap: anywhere; }
.access-category-children { margin: 0 0 10px 12px; padding-left: 10px; border-left: 1px solid #cedeea; }
.access-category-choice { padding: 7px 0; overflow-wrap: anywhere; }
.shop-add-cart, .shop-cart-quantity, .shop-order-toolbar, .shop-bank-form { display: flex; flex-wrap: wrap; align-items: end; gap: 9px 12px; }
.shop-add-cart label, .shop-cart-quantity label { width: 76px; font-size: .78rem; }
.shop-add-cart input[type=number], .shop-cart-quantity input[type=number],
.shop-order-toolbar select, .shop-bank-form input:not([type=hidden]) {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 5px;
  padding: 7px 9px;
  border: 1px solid #a8bfd2;
  border-radius: 7px;
  color: #23445d;
  background: #fff;
  font: inherit;
}
.shop-add-cart .btn, .shop-order-toolbar .btn, .shop-bank-form .btn { min-height: 42px; }
.shop-order-page .account-meta { margin: 0 0 19px; }
.shop-checkout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 19px; }
.shop-checkout > * { min-width: 0; }
.shop-order-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #d6e4ef; }
.shop-order-item p { margin: 6px 0 0; }
.shop-order-item strong { overflow-wrap: anywhere; }
.shop-order-total strong { font-size: 1.5rem; color: #173b56; }
.shop-payment-options { min-width: 0; margin: 12px 0; padding: 10px; border: 1px solid #cbddea; border-radius: 9px; }
.shop-payment-options legend { padding: 0 5px; color: #254a67; font-weight: 700; }
.shop-payment-options label { display: flex; align-items: baseline; gap: 7px; }
.shop-payment-options input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: #285573; }
.shop-order-toolbar { margin-bottom: 15px; }
.shop-order-toolbar label { min-width: min(150px,100%); }
.order-proposal-form { display: grid; gap: 12px; margin-block: 14px 20px; min-width: 0; }
.order-proposal-form > label:not(.check-label) { display: grid; gap: 5px; }
.order-proposal-form > label.check-label { display: flex; gap: 8px; align-items: baseline; }
.order-proposal-form :is(input:not([type=hidden]):not([type=checkbox]), select, textarea) {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #a8bfd2;
  border-radius: 7px;
  background: #fff;
  color: #23445d;
  font: inherit;
}
.order-proposal-form :is(.btn, .small-button) { justify-self: start; }
.order-proposal-form .account-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.order-proposal-form .console-table-wrap { min-width: 0; }
.shop-bank-settings { margin-top: 20px; }
.shop-bank-settings summary { font-weight: 700; cursor: pointer; }
.shop-bank-form label { flex: 1 1 170px; }
.shop-transfer-info dd { margin: 0 0 8px; overflow-wrap: anywhere; font-weight: 700; }
@media (max-width: 760px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .shop-sidebar { gap: 8px; }
  .shop-brand { margin-bottom: 15px; }
  .shop-brand img { width: 48px; height: 48px; }
  .shop-tree a { min-height: 44px; }
  .shop-side-categories .shop-tree { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
  .shop-side-categories .shop-tree > li:first-child, .shop-side-categories .shop-tree-branch { grid-column: 1 / -1; }
  .shop-checkout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .catalog-filters, .catalog-detail, .console-store { grid-template-columns: 1fr; }
  .shop-gallery-cover img { height: min(82vw, 500px); }
  .shop-zoom-stage img { height: min(67vh, 700px); }
  .shop-results .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .shop-results .catalog-card img, .shop-results .catalog-no-image { height: 116px; }
  .shop-results .catalog-card-info { padding: 10px; }
  .shop-results .catalog-card-info h3 { font-size: .85rem; }
  .console-client-view { margin-left: 0; }
  .console-stats { gap: 7px; }
  .console-stats > div { padding: 10px; }
  .catalog-access-form { grid-template-columns: minmax(0, 1fr); }
  .catalog-access-mode .btn { display: none; }
  .access-category-save { display: inline-flex; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-side-panel[open] > :not(summary), .shop-zoom[open], .shop-results .catalog-card { animation: none; transition: none; }
}
