@font-face {
  font-family: "Uni Sans";
  src: url("/static/fonts/unisans.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-soft: #fafaf8;
  --line: #e8e8e3;
  --line-strong: #d8d8d0;
  --text: #111111;
  --muted: #6f6f68;
  --muted-soft: #9a9a92;
  --accent: #0e0e0e;
  --accent-soft: #f0f0ed;
  --success: #56b85e;
  --danger-bg: #fce2de;
  --danger-text: #a02e1c;
  --success-bg: #e2f4e2;
  --success-text: #216631;
  --shadow: 0 24px 60px rgba(15, 15, 15, 0.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  background: linear-gradient(180deg, #f6f6f3 0%, #efefeb 100%);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Uni Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(180deg, #f6f6f3 0%, #efefeb 100%);
  overflow: hidden;
}

.brand-mark,
.hero-banner h1,
.hero-banner h2,
.auth-showcase h1,
.detail-title,
.product-can strong,
.product-title,
.auth-form h2 {
  font-family: "Uni Sans", "Arial Black", "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  height: 100vh;
  padding: 0;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 10, 0.18);
  backdrop-filter: blur(4px);
}

.page-loader[hidden] {
  display: none;
}

.page-loader-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.12);
}

.page-loader-card span {
  font-size: 0.92rem;
  font-weight: 700;
}

.page-loader-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(17, 17, 17, 0.12);
  border-top-color: #111;
  border-radius: 999px;
  animation: page-loader-spin 0.8s linear infinite;
}

@keyframes page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.app-frame {
  min-height: 100vh;
}

.portal-layout {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 22px 22px;
  background: #070707;
  color: #fff;
}

.portal-logo img {
  width: 154px;
  display: block;
}

.portal-logo {
  display: flex;
  justify-content: center;
}

.sidebar-client {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  justify-items: center;
}

.sidebar-client strong {
  font-size: 1.05rem;
}

.sidebar-client span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
}

.sidebar-nav,
.sidebar-footer {
  display: grid;
  gap: 8px;
}

.sidebar-footer {
  margin-top: auto;
}

.sidebar-link,
.sidebar-tree summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.76);
  list-style: none;
  transition: 0.18s ease;
}

.sidebar-link:hover,
.sidebar-link.is-active,
.sidebar-tree[open] > summary,
.sidebar-tree summary.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sidebar-link-quiet {
  color: rgba(255, 255, 255, 0.64);
}

.sidebar-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.sidebar-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-tree-children {
  display: grid;
  gap: 4px;
  padding-left: 14px;
}

.sidebar-tree-children-static {
  margin-top: -4px;
  padding-left: 18px;
}

.sidebar-tree-link {
  display: block;
  padding: 9px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.sidebar-tree-link:hover,
.sidebar-tree-link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-tree-group {
  display: grid;
  gap: 4px;
}

.sidebar-tree-nested {
  display: grid;
  gap: 4px;
  margin-left: 14px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-tree-link-child {
  padding-left: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95em;
}

.portal-main {
  min-width: 0;
  height: 100vh;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
}

.main-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.main-shell-wide {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
}

.topbar-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-dark {
  padding: 0 24px;
  background: rgba(4, 4, 4, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: grid;
  grid-template-columns: 180px minmax(320px, 1fr) minmax(320px, 520px) 220px;
  align-items: center;
  gap: 18px;
  width: min(1440px, 100%);
  min-height: 86px;
  margin: 0 auto;
}

.header-spacer {
  width: 100%;
  min-height: 1px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  width: 180px;
}

.header-logo img {
  width: 150px;
  max-width: 100%;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  transition: 0.18s ease;
}

.header-nav-link:hover,
.header-nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, 100%);
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.search-box-centered {
  width: 100%;
  max-width: none;
  margin: 0;
}

.search-box input {
  width: 100%;
  padding: 13px 0;
  border: 0;
  background: transparent;
  outline: none;
}

.search-box-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.search-box-dark input {
  color: #fff;
}

.search-box-dark input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.search-key {
  padding: 4px 8px;
  border-radius: 8px;
  background: #ecece6;
  color: var(--muted);
  font-size: 0.75rem;
}

.topbar-customer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.icon-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  line-height: 16px;
  text-align: center;
}

.user-meta strong {
  display: block;
  font-size: 0.92rem;
}

.user-meta span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.user-meta-inline {
  text-align: right;
  color: #fff;
}

.user-meta-inline span {
  color: rgba(255, 255, 255, 0.58);
}

.header-logout {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.content-stack {
  display: grid;
  gap: 22px;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  padding: 34px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 76% 38%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(112deg, #050607 0%, #0d1014 42%, #171b1f 100%);
  color: #fff;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 360px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
}

.hero-banner h1,
.hero-banner h2,
.hero-banner p {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.hero-banner h1,
.hero-banner h2 {
  margin: 0 0 10px;
  max-width: 440px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.95;
}

.hero-banner p {
  margin: 0 0 22px;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.hero-banner .hero-ghost {
  position: absolute;
  right: 42px;
  bottom: 26px;
  z-index: 1;
  width: 280px;
  height: 160px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  filter: blur(4px);
}

.primary-button,
.button-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.button-link.secondary,
.secondary-button {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.section-card,
.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.03);
}

.section-card,
.panel {
  padding: 18px 20px;
  margin-bottom: 24px;
}

.section-card:last-child {
  margin-bottom: 0;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-heading h1,
.page-heading h2,
.panel h1,
.panel h2 {
  margin: 0;
  font-size: 1.5rem;
}

.muted {
  color: var(--muted);
}

.subtle {
  color: var(--muted-soft);
}

.flash {
  padding: 14px 16px;
  border-radius: 16px;
}

.flash.error {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.flash.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.catalog-line-buttons {
  margin-top: 14px;
}

.toolbar-row-end {
  justify-content: flex-end;
}

.catalog-controls-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-controls-inline-wide {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.catalog-search {
  flex: 1 1 420px;
  min-width: 320px;
  max-width: 560px;
  position: relative;
}

.catalog-search input {
  display: block;
    width: 100%;
    min-height: 42px;
    padding-left: 42px;
}

.catalog-cart-widget {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fcfcf9 0%, #f4f4ef 100%);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.04);
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.catalog-cart-widget:hover {
  transform: translateY(-1px);
  border-color: #d1d1c8;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.06);
}

.catalog-cart-widget-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #111315;
  color: #fff;
  flex: 0 0 auto;
}

.catalog-cart-widget-icon svg {
  width: 18px;
  height: 18px;
}

.catalog-cart-widget-copy {
  display: grid;
  gap: 3px;
}

.catalog-cart-widget-title {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-cart-widget-metrics {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.catalog-cart-widget-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
}

.catalog-cart-widget-metric {
  display: grid;
  gap: 2px;
  min-width: 84px;
}

.catalog-cart-widget-metric span {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-cart-widget-metric strong {
  font-size: 0.94rem;
  white-space: nowrap;
}

.catalog-progress-widget {
  display: grid;
  gap: 8px;
  min-width: 260px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f9f9f4 0%, #f5f4ee 100%);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.04);
}

.catalog-progress-widget-compact {
  min-width: 300px;
}

.catalog-progress-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog-progress-topline span {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-progress-topline strong {
  font-size: 0.92rem;
  white-space: nowrap;
}

.catalog-progress-copy {
  display: grid;
  gap: 2px;
}

.catalog-progress-copy strong {
  font-size: 0.94rem;
}

.catalog-progress-copy span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.catalog-progress-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(17, 19, 21, 0.08);
}

.catalog-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #111315 0%, #4f8f3f 100%);
}

.catalog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--muted-soft);
  transform: translateY(-50%);
}

.catalog-search-icon svg {
  width: 18px;
  height: 18px;
}

.catalog-select {
  min-width: 180px;
  height: 42px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
}

.filter-chip.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-soft);
}

.view-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 42px;
  color: var(--muted);
  background: transparent;
}

.view-toggle-button.is-selected {
  background: var(--accent);
  color: #fff;
}

.view-icon-grid,
.view-icon-table {
  display: inline-grid;
  gap: 3px;
}

.view-icon-grid {
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
}

.view-icon-table {
  grid-template-columns: 14px;
  grid-template-rows: repeat(3, 4px);
}

.view-icon-grid i,
.view-icon-table i {
  display: block;
  background: currentColor;
  border-radius: 2px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card-compact {
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(10, 10, 10, 0.06);
}

.product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 138px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.3), transparent 26%),
    linear-gradient(180deg, #1c1f23 0%, #060708 100%);
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-can {
  position: relative;
  width: 124px;
  height: 124px;
  padding-top: 30px;
  border-radius: 24px 24px 20px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, #171a1d 0%, #070809 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.product-can-large {
  width: 240px;
  height: 240px;
  padding-top: 62px;
}

.product-can-thumb {
  width: 62px;
  height: 62px;
  padding-top: 18px;
  border-radius: 14px;
}

.product-can::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 14px;
  right: 14px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #484d51 0%, #16181a 100%);
}

.product-can strong {
  display: block;
  padding: 0 10px;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.product-can span {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(76, 95, 255, 0.3);
  color: #dfe7ff;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.product-meta {
  display: grid;
  gap: 8px;
}

.product-title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.28;
}

.product-brand {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-soft);
}

.product-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
}

.stock-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.stock-inline-detail {
  margin-top: 0;
}

.stock-caption {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stock-meter {
  display: inline-grid;
  grid-template-columns: repeat(4, 16px);
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #ecece5;
  border-radius: 999px;
  background: linear-gradient(180deg, #fbfbf8 0%, #f1f1eb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stock-meter span {
  display: block;
  width: 16px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e6e6df 0%, #d4d4cc 100%);
  opacity: 0.55;
}

.stock-meter-level-1 span:nth-child(-n+1) {
  background: linear-gradient(180deg, #ef8f74 0%, #d95b43 100%);
  box-shadow: 0 0 10px rgba(217, 91, 67, 0.22);
  opacity: 1;
}

.stock-meter-level-2 span:nth-child(-n+2) {
  background: linear-gradient(180deg, #f2c16b 0%, #e79c3d 100%);
  box-shadow: 0 0 10px rgba(231, 156, 61, 0.18);
  opacity: 1;
}

.stock-meter-level-3 span:nth-child(-n+3) {
  background: linear-gradient(180deg, #d7e37b 0%, #bfd04b 100%);
  box-shadow: 0 0 10px rgba(191, 208, 75, 0.16);
  opacity: 1;
}

.stock-meter-level-4 span:nth-child(-n+4) {
  background: linear-gradient(180deg, #7fda86 0%, #56b85e 100%);
  box-shadow: 0 0 10px rgba(86, 184, 94, 0.16);
  opacity: 1;
}

.qty-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-inline input {
  width: 68px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.qty-control.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.qty-control.is-empty .js-qty-minus,
.qty-control.is-empty .js-qty-input {
  display: none;
}

.qty-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 1.15rem;
  line-height: 1;
}

.qty-button-add {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.qty-button:disabled {
  cursor: default;
  opacity: 0.38;
  box-shadow: none;
}

.qty-button-add:disabled {
  background: #cfcfc8;
  border-color: #cfcfc8;
  color: #8e8e86;
}

.qty-input {
  width: 62px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: center;
  font-weight: 600;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-control-table {
  min-width: 146px;
}

.qty-control-detail {
  width: fit-content;
}

.qty-button-add-labeled {
  gap: 8px;
  width: auto;
  padding: 0 14px;
  font-size: 0.9rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.9fr);
  gap: 22px;
}

.catalog-layout {
  align-items: start;
}

.catalog-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  gap: 18px;
  height: calc(100vh - 48px);
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.04);
}

.catalog-toolbar {
  display: grid;
  gap: 14px;
}

.catalog-toolbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.catalog-panel {
  font-family: "Uni Sans", "Arial Black", "Segoe UI", sans-serif;
}

.catalog-controls-inline {
  justify-content: flex-start;
}

.catalog-table-head-static {
  margin-bottom: 0;
  padding: 20px 20px;
  border: 1px solid #d9d9d1;
  border-radius: 10px;
  background: linear-gradient(180deg, #f2f2ec 0%, #e7e7df 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 18px rgba(17, 17, 17, 0.05);
}

.catalog-table-scroll {
  display: block;
  align-self: stretch;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}

.catalog-search-empty {
  margin-top: 12px;
}

.catalog-search-empty[hidden] {
  display: none !important;
}

.catalog-table-scroll::-webkit-scrollbar {
  width: 10px;
}

.catalog-table-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d5d5ce;
}

.catalog-list-plain {
  gap: 10px;
}

.catalog-row-plain {
  grid-template-columns: minmax(0, 1.8fr) 160px 150px 190px;
  padding: 16px 14px;
  border-radius: 20px;
}

.catalog-row.is-search-hidden {
  display: none !important;
}

.catalog-sheet {
  display: grid;
  gap: 18px;
  padding: 18px 22px 22px;
}

.catalog-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.catalog-count {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.catalog-group {
  display: grid;
  gap: 10px;
}

.catalog-group-title {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}

.catalog-table-head {
  display: grid;
  grid-template-columns: minmax(0, 2.8fr) 128px 108px 154px;
  gap: 12px;
  padding: 10px;
  color: #4a4a44;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-table-head span {
  padding: 0 6px;
}

.catalog-list {
  display: grid;
  gap: 12px;
}

.catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 2.8fr) 128px 108px 154px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fbfbf8 100%);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.04);
}

.catalog-row:has(.product-badge-top) {
  border-color: rgba(17, 19, 21, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(17, 19, 21, 0.05),
    0 10px 24px rgba(17, 17, 17, 0.06);
}

.catalog-row:has(.product-badge-new) {
  border-color: rgba(86, 184, 94, 0.24);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fcf8 100%);
}

.catalog-row-product,
.catalog-row-stock,
.catalog-row-price,
.catalog-row-qty {
  min-width: 0;
}

.catalog-row-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-row-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.catalog-row-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.catalog-row-copy a {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.catalog-row-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.15;
}

.catalog-row-price strong {
  font-size: 0.96rem;
  font-weight: 900;
}

.catalog-thumb-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: "Uni Sans", "Arial Black", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  background: #000;
  border-radius: 12px;
}

.catalog-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.profile-wide-card {
  max-width: 100%;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 18px;
  align-items: start;
}

.profile-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-pane {
  min-width: 0;
}

.profile-info-list {
  display: grid;
  gap: 0;
}

.profile-info-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.profile-info-row:last-child {
  border-bottom: 0;
}

.profile-info-row span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-info-row strong {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.profile-password-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.profile-form-stack {
  max-width: 100%;
}

.order-topline {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.order-chip {
  min-width: 160px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.order-chip span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-chip strong {
  font-size: 1.1rem;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 28px;
}

.product-detail-gallery {
  display: grid;
  gap: 16px;
}

.product-detail-topbar {
  align-items: center;
}

.product-detail-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.35), transparent 24%),
    linear-gradient(180deg, #f6f6f2 0%, #ffffff 100%);
  border: 1px solid var(--line);
}

.product-description-panel {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.product-description-panel p {
  margin: 0;
  line-height: 1.7;
}

.product-detail-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.detail-title-block {
  display: grid;
  gap: 10px;
}

.detail-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.product-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-badge-list-inline {
  flex: 0 0 auto;
}

.product-badge-list-inline-leading {
  margin-right: 2px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: 0 4px 10px rgba(17, 17, 17, 0.05);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-badge-top {
  background: linear-gradient(180deg, #181a1d 0%, #050607 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.product-badge-new {
  background: linear-gradient(180deg, #eff8ef 0%, #def1de 100%);
  color: #216631;
  border-color: #c6e6c7;
}

.detail-price-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.product-price-detail {
  font-family: "Uni Sans", "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.detail-cart-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.detail-cart-row input {
  width: 110px;
}

.detail-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-copy-block h3 {
  margin: 0 0 10px;
}

.detail-copy-block p {
  margin: 0;
  line-height: 1.7;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.spec-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.spec-grid strong {
  display: block;
}

.attribute-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-soft);
}

.attribute-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.attribute-row:last-child {
  border-bottom: 0;
}

.attribute-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.attribute-row strong {
  overflow-wrap: anywhere;
}

.order-summary {
  display: grid;
  gap: 10px;
}

.order-summary-shell {
  position: sticky;
  top: 112px;
  align-self: start;
}

.order-summary-card {
  display: grid;
  gap: 12px;
}

.order-summary-head {
  display: grid;
  gap: 4px;
}

.order-summary-head strong {
  font-size: 1.2rem;
}

.order-summary-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-block {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.summary-block-soft {
  background: #fff;
}

.summary-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-block-label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-address {
  line-height: 1.6;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child {
  border-bottom: 0;
}

.catalog-cart-shell {
  min-width: 280px;
  max-width: 280px;
}

.catalog-cart-preview {
  gap: 0;
}

.catalog-cart-card {
  gap: 14px;
}

.catalog-cart-meta {
  display: grid;
  gap: 10px;
}

.catalog-cart-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.catalog-cart-metric span {
  color: var(--muted);
}

.catalog-cart-metric strong {
  font-size: 1rem;
}

.catalog-submit-form {
  gap: 12px;
}

.summary-item-meta strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
}

.summary-total-strong {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #111315 0%, #1b1d21 100%);
  color: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.table-shell {
  overflow: auto;
}

.cart-table-shell {
  max-height: calc(100vh - 360px);
  min-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.data-table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
}

.data-table th,
.data-table td {
  padding: 15px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-form-compact button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
}

.data-table-products td {
  vertical-align: middle;
}

.data-table-catalog {
  border-collapse: separate;
  border-spacing: 0 10px;
}

.data-table-catalog thead th {
  top: 0;
  background: transparent;
}

.data-table-catalog tbody tr td {
  background: #fbfbf8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.data-table-catalog tbody tr td:first-child {
  border-left: 1px solid var(--line);
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.data-table-catalog tbody tr td:last-child {
  border-right: 1px solid var(--line);
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

.data-table-catalog tbody tr:hover td {
  background: #f6f6f1;
}

.data-table-order th,
.data-table-order td {
  padding: 14px 12px;
  vertical-align: middle;
}

.data-table-order-compact th,
.data-table-order-compact td {
  padding: 10px 10px;
  font-size: 0.92rem;
}

.data-table-order-compact th {
  font-size: 0.76rem;
}

.data-table-order:not(.cart-review-table) th:nth-child(2),
.data-table-order:not(.cart-review-table) th:nth-child(4),
.data-table-order:not(.cart-review-table) td:nth-child(2),
.data-table-order:not(.cart-review-table) td:nth-child(4) {
  text-align: center;
}

.cart-review-card {
  display: grid;
  gap: 18px;
}

.cart-review-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cart-review-meta-item {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.cart-review-meta-item span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-review-table thead th {
  background: #f8f8f4;
}

.cart-review-table tbody td:first-child {
  width: 56%;
}

.cart-review-table thead th:last-child,
.cart-review-table tbody td:last-child,
.cart-review-table tfoot td:last-child {
  width: 52px;
}

.cart-review-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 1;
  background: #fbfbf7;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.admin-carts-stack {
  display: grid;
  gap: 18px;
}

.admin-cart-card {
  padding: 20px;
  background: #fff;
}

.admin-cart-meta {
  display: grid;
  gap: 10px;
}

.admin-cart-meta-list {
  gap: 8px;
}

.admin-cart-meta-list .profile-info-row {
  grid-template-columns: 110px minmax(0, 1fr);
}

.admin-cart-table-shell {
  min-height: 0;
  max-height: 420px;
}

.admin-summary-chips {
  margin-top: -4px;
}

.cart-totals-row td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.cart-product-copy strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.cart-product-copy {
  display: grid;
  gap: 4px;
}

.cart-review-footer {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding-top: 2px;
}

.cart-line-totals {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.cart-line-total-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  white-space: nowrap;
}

.cart-line-total-chip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-row-action {
  text-align: right;
}

.cart-remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #767676;
  font-size: 1.2rem;
  line-height: 1;
}

.cart-remove-button:hover {
  color: #111;
  border-color: #cfcfc6;
}

.cart-totals-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}

.cart-totals-value strong {
  font-size: 1rem;
  white-space: nowrap;
}

.cart-review-comment {
  display: grid;
  gap: 6px;
}

.cart-review-comment span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-review-comment textarea {
  min-height: 44px;
  max-height: 96px;
}

.data-table-order tbody tr:hover {
  background: rgba(17, 17, 17, 0.02);
}

.product-row-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-row-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.catalog-row-thumb.product-row-thumb {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 12px;
  background: #000;
  border-color: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.product-row-thumb-small {
  width: 68px;
  height: 56px;
  border-radius: 14px;
}

.thumb-image-small {
  max-width: 56px;
  max-height: 48px;
}

.product-row-thumb-fluid {
  padding: 6px;
}

.catalog-row-thumb.product-row-thumb-small {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.catalog-row-thumb.product-row-thumb-fluid {
  padding: 0;
}

.thumb-image-fluid {
  width: auto;
  height: auto;
  object-fit: contain;
}

.table-form input {
  width: 76px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.checkout-submit {
  width: auto;
  min-width: 180px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.6rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f2f3ef;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-pill.is-draft,
.status-pill.is-confirmed,
.status-pill.is-processing {
  color: var(--success);
  background: #ecf8ec;
}

.status-pill-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 108px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, #fafaf6 0%, #f3f2ec 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  text-align: center;
  white-space: nowrap;
}

.status-pill-portal.is-draft {
  background: #f5f1ea;
  color: #9a6b33;
  border-color: #eadbc3;
}

.status-pill-portal.is-confirmed,
.status-pill-portal.is-processing {
  background: #edf7ee;
  color: #2f7a45;
  border-color: #d4ead9;
}

.status-pill-portal.is-completed,
.status-pill-portal.is-invoiced {
  background: #eef2fb;
  color: #365b9d;
  border-color: #d6dff3;
}

.status-pill-portal.is-cancelled,
.status-pill-portal.is-void {
  background: #f9ece9;
  color: #b04d35;
  border-color: #f0d1c8;
}

.inline-form-flags {
  align-items: center;
  gap: 10px;
}

.flag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.flag-toggle input {
  margin: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.info-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 36px);
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 440px);
  width: min(1180px, 100%);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.auth-showcase {
  position: relative;
  min-height: 640px;
  padding: 42px;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.18), transparent 16%),
    linear-gradient(120deg, #050607 0%, #0d1014 42%, #16191d 100%);
  color: #fff;
}

.auth-showcase-center {
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  height: 100%;
  gap: 20px;
}

.auth-showcase-logo {
  width: min(320px, 76%);
  display: block;
}

.auth-showcase-title {
  font-family: "Uni Sans", "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.9);
}

.auth-showcase h1 {
  margin: 18px 0 14px;
  max-width: 420px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
}

.auth-showcase p {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.showcase-cans {
  position: absolute;
  right: 36px;
  bottom: 40px;
  display: flex;
  gap: 18px;
  align-items: end;
}

.showcase-cans .product-can:nth-child(2) {
  transform: translateY(18px) scale(0.92);
}

.auth-form-wrap {
  padding: 42px;
  display: flex;
  align-items: center;
}

.auth-form {
  width: 100%;
  max-width: 360px;
}

.auth-form h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.auth-form p {
  margin: 0 0 24px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  outline: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.stack {
  display: grid;
  gap: 16px;
}

.panel.narrow {
  max-width: 580px;
}

.empty-state {
  display: grid;
  gap: 12px;
  place-items: start;
  min-height: 260px;
  align-content: center;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

@media (max-width: 1120px) {
  body {
    overflow: auto;
  }

  .portal-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .portal-sidebar,
  .portal-main {
    height: auto;
  }

  .portal-main {
    overflow: visible;
  }

  .catalog-panel {
    height: auto;
  }

  .catalog-table-scroll {
    overflow: visible;
    padding-right: 0;
  }

  .topbar-inner {
    grid-template-columns: 180px 1fr;
    grid-template-areas:
      "logo customer"
      "nav nav"
      "spacer spacer";
  }

  .header-logo {
    grid-area: logo;
  }

  .topbar-customer {
    grid-area: customer;
  }

  .header-nav {
    grid-area: nav;
  }

  .header-spacer {
    grid-area: spacer;
  }

  .split-layout,
  .checkout-grid,
  .auth-card {
    grid-template-columns: 1fr;
  }

  .catalog-cart-shell {
    min-width: 100%;
    max-width: none;
  }

  .cart-review-meta,
  .cart-review-footer {
    grid-template-columns: 1fr;
  }

  .order-summary-shell {
    position: static;
  }

  .auth-showcase {
    min-height: 320px;
  }

  .showcase-cans {
    position: static;
    margin-top: 34px;
  }
}

@media (max-width: 760px) {
  .portal-main {
    padding: 14px;
  }

  .portal-sidebar {
    padding: 18px 14px;
  }

  .catalog-panel {
    padding: 18px 14px;
  }

  .catalog-controls-inline {
    justify-content: stretch;
  }

  .topbar-dark {
    padding: 0 12px;
  }

  .main-shell {
    width: calc(100% - 20px);
    padding-top: 18px;
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "nav"
      "customer"
      "spacer";
    gap: 12px;
    padding: 12px 0;
  }

  .topbar {
    align-items: stretch;
  }

  .header-logo,
  .topbar-customer,
  .header-nav,
  .header-spacer {
    max-width: 100%;
    width: 100%;
  }

  .topbar-customer {
    justify-content: space-between;
  }

  .user-meta-inline {
    text-align: left;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .cart-table-shell {
    max-height: 56vh;
  }

  .order-topline,
  .summary-block-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .catalog-table-head,
  .catalog-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .catalog-table-head {
    display: none;
  }

  .catalog-row {
    padding: 16px 14px;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .attribute-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-banner {
    min-height: 280px;
    padding: 26px;
  }

}

.order-pdf-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.order-inline-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.order-inline-link-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 11px;
  color: #111111;
  background: linear-gradient(180deg, #ffffff 0%, #f4f1ea 100%);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 4px 12px rgba(17, 17, 17, 0.05);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.pdf-icon-link:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 20, 20, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #ece7dc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(17, 17, 17, 0.08);
}

.pdf-icon-link svg {
  width: 17px;
  height: 17px;
}

.pdf-icon-link-inline {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.order-detail-pdf-links {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}
