/* Shared visual system for catalogue, service, account and management pages. */
:root {
  --ink: #14263d; --navy: #132b49; --muted: #637185; --line: #dfe5ed;
  --wash: #f4f6f9; --teal: #245a91; --mint: #245a91; --white: #fff;
  --accent-soft: #edf3fa; --radius: 8px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
body { font-size: 1rem; line-height: 1.65; }
h1, h2, h3 { font-weight: 650; }
:focus-visible { outline: 3px solid #477eb7; outline-offset: 3px; }
.search:focus-within { outline-color: #477eb7; }
.button { border-radius: 6px; min-height: 44px; font-weight: 600; padding: 11px 18px; }
.button.primary { background: #245a91; color: white; border-color: #245a91; }
.button.primary:hover { background: #194571; border-color: #194571; }
.button.secondary { border-color: #ced8e5; background: white; color: #253b55; }
.button.secondary:hover { border-color: #91a8c4; background: #f0f4f9; }
.button.small { min-height: 40px; padding: 8px 12px; }
.text-link { color: #245a91; font-weight: 600; }
.field { color: #35475d; font-size: .94rem; }
.field input, .field select, .field textarea, .qty { border-color: #cbd5e1; border-radius: 6px; }
.field input, .field select { min-height: 46px; }
.panel, .feature-panel, .account-panel, .account-help, .admin-panel { border-radius: 8px; }
.panel { padding: 24px; }
.panel.soft, .feature-panel, .feature-panel:nth-child(2), .note { background: #f4f6f9; }
.note { color: #536174; font-size: .875rem; }
.aligned-page-head, .account-heading { background: #f4f6f9; color: #132b49; border-bottom: 1px solid #e5eaf1; }
.aligned-page-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr); gap: 12px 48px; min-height: 0; padding: 36px 0; }
.aligned-page-title h1 { font-size: clamp(1.65rem, 2.7vw, 2.25rem); font-weight: 650; }
.aligned-page-title p { color: #637185; margin-top: 9px; font-size: 1rem; }
.aligned-crumb { grid-column: 1; color: #637185; font-size: .875rem; }
.aligned-page-row > .store-reference-search { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end; margin: 0; width: 100%; }
.page-body, .aligned-shop { padding-block: 40px 60px; }
.shop-intro { text-align: left; }
.shop-intro p { margin: 0 0 14px; max-width: 900px; color: var(--muted); }
.shop-intro h2 { font-size: 1.3rem; font-weight: 600; }
.shop-services { grid-template-columns: repeat(3, minmax(0, 150px)); margin-block: 24px; }
.shop-services a, .product-services a { background: #f4f6f9; border: 1px solid #dfe5ed; border-radius: 6px; color: #354d6b; font-size: .875rem; }
.shop-services a { min-height: 48px; flex-direction: row; padding: 10px; }
.shop-controls { padding: 18px 0; border-block: 1px solid #e5eaf1; margin-bottom: 24px; gap: 18px; }
.shop-filters { gap: 10px; }
.shop-filters select { min-height: 44px; }
.catalogue-disclosure { font-size: .875rem; }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product, .store-products .product, .aligned-shop .product, .aligned-product .product { border: 1px solid #dfe5ed; border-radius: 8px; overflow: hidden; background: white; transition: border-color .16s, box-shadow .16s; }
.product:hover { border-color: #a6b9d0; box-shadow: 0 5px 20px #14263d08; }
.product .product-art, .store-products .product-art, .aligned-shop .product .product-art, .aligned-product .product .product-art { width: 100%; aspect-ratio: 1.55; min-height: 0; background: #f4f6f9; border-bottom: 1px solid #e9edf3; }
.product-art { background: #f4f6f9; }
.product-art::after { display: none; }
.product-art.has-product-image { background: #f7f9fb; }
.product-art.has-product-image img { padding: 16px; }
.product .product-body, .store-products .product-body, .aligned-shop .product-body, .aligned-product .product-body { padding: 18px; gap: 7px; }
.product-brand { font-size: .875rem; color: #637185; }
.product .product-title { min-height: 0; font-size: 1rem; font-weight: 650; line-height: 1.45; }
.product-text { font-size: .875rem; line-height: 1.65; min-height: 3.3em; }
.product-category-line, .product-category { font-size: .875rem; }
.product .product-category-line { display: none; }
.availability { font-size: .875rem; color: #49637c; }
.product .product-bottom, .store-products .product-bottom, .aligned-shop .product-bottom, .aligned-product .product-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid #e5eaf1; }
.price { color: #183e66; font-weight: 650; }
.product .price small { font-size: .8rem; }
.product-order { gap: 8px; padding-top: 6px; display: grid; grid-template-columns: 94px minmax(0, 1fr); }
.product-order > .button { min-height: 40px; padding-inline: 7px; font-size: .875rem; }
.qty-step { border-color: #cbd5e1; min-height: 40px; }
.qty-step button:hover { background: #e6edf7; }
.qty-step .qty { font-size: .94rem; }
.pkg { bottom: 10px; left: 12px; color: #748195; font-weight: 500; }
.product-gallery-stage .product-art { border-radius: 8px; border-color: #dfe5ed; }
.product-thumb { border-radius: 5px; overflow: hidden; }
.product-fields th { background: #f4f6f9; border-left: 0; color: #536174; font-weight: 550; }
.product-fields tr:nth-child(odd) td { background: #fafbfd; }
.product-fields th, .product-fields td { padding: 12px; }
.product-tab-list button { min-height: 48px; }
.product-tab-list button[aria-selected="true"] { background: #edf3fa; color: #245a91; border-color: #245a91; }
.detail-copy h2 { color: #132b49; }
.contact-guide { background: #f4f6f9; border: 1px solid #dfe5ed; padding: 24px; border-radius: 8px; }
.contact-intro { margin-top: 28px; }
.cart-empty-notice { background: #edf3fa; border-color: #245a91; color: #354d6b; border-radius: 4px; }
.cart-table th { background: #f4f6f9; color: #536174; }
.order-totals .order-grand { color: #183e66; }
.aligned-checkout .order-summary, .aligned-cart-grid .order-summary { border-radius: 8px; }
.request-confirmation { border-color: #c2d2e5; }
.pager .active { background: #edf3fa; border-color: #779bc4; color: #245a91; }
.maker:hover, .category:hover { border-color: #91a8c4; background: #f4f6f9; }
.toast { background: #132b49; box-shadow: 0 8px 30px #14263d20; border-radius: 6px; }
.admin-table th, .admin-table td { font-size: .875rem; }
.admin-tabs button { min-height: 44px; }
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 820px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aligned-page-row { grid-template-columns: 1fr; gap: 14px; padding-block: 28px; }
  .aligned-page-row > .store-reference-search { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 4px; }
  .page-body, .aligned-shop { padding-block: 28px 42px; }
}
@media (max-width: 767px) {
  .cart-table thead { width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 520px) {
  .store-utility-links [href="/admin"] { display: none; }
  .product-grid { gap: 12px; }
  .product .product-body, .store-products .product-body, .aligned-shop .product-body, .aligned-product .product-body { padding: 13px; }
  .product-order { grid-template-columns: 1fr; }
  .product-order .qty-step { width: 100%; }
  .product-order > .button { width: 100%; min-height: 44px; }
  .product .product-title { font-size: .94rem; }
  .product-text { min-height: 4.95em; }
  .product .product-art, .store-products .product-art, .aligned-shop .product .product-art, .aligned-product .product .product-art { aspect-ratio: 1.2; }
  .panel { padding: 18px; }
  .shop-services { gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-services a { flex-direction: column; min-height: 70px; }
  .shop-filters { width: 100%; }
  .shop-filters .field { flex: 1 1 42%; }
  .shop-filters select { width: 100%; min-width: 0; max-width: none; }
}
@media (max-width: 359px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-text { min-height: 0; }
}
