/* Shop / buyer portal */
.shop-body {
  background: var(--body-bg);
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: var(--shop-header-bg);
  border-bottom: 1px solid var(--shop-header-border);
}

.shop-header.portal-header {
  background: var(--shop-header-bg);
  border-bottom: 1px solid var(--shop-header-border);
}

.shop-header-inner {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.shop-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.shop-header-cart {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.shop-header-cart:hover,
.shop-header-cart:focus-visible {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  background: #ffffff;
}

.shop-header-cart-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-header-cart-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.shop-header-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f766e 0, #14b8a6 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.24);
}

.shop-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--shop-brand-ink);
}

.portal-header .shop-brand {
  color: var(--shop-brand-ink);
}

.shop-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7dd3fc 0, #60a5fa 100%);
  color: #09111f;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.shop-brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.shop-brand-copy strong {
  font-size: 18px;
  letter-spacing: -0.04em;
}

.shop-brand-copy span {
  font-size: 12px;
  color: var(--public-header-muted);
}

.portal-header .shop-brand-copy span {
  color: var(--public-header-muted);
}

.shop-nav {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.shop-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(219, 231, 245, 0.92);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.shop-nav a.active {
  background: #fff;
  color: #09111f;
}

.portal-header .shop-nav a {
  color: #61738d;
  background: transparent;
  border-color: transparent;
  font-weight: 800;
}

.portal-header .shop-nav a.active {
  background: #eef2f8;
  color: #09111f;
}

.portal-header .shop-nav a:hover,
.portal-header .shop-nav a:focus-visible {
  background: #f4f7fb;
  color: #1c2940;
}

.portal-utility-strip {
  display: flex;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 1.1rem 0 0;
}

.portal-utility-link {
  color: var(--ink-soft);
  font-weight: 700;
}

.portal-header .shop-nav {
  flex: 1 1 auto;
  justify-content: center;
  gap: 18px;
  margin: 0 10px 0 18px;
}

.portal-header .shop-nav a {
  min-height: auto;
  padding: 10px 0 12px;
  border-radius: 0;
  position: relative;
  font-size: 14px;
  letter-spacing: -0.015em;
}

.portal-header .shop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transform: scaleX(0.35);
  transition: background 140ms ease, transform 140ms ease;
}

.portal-header .shop-nav a.active::after {
  background: color-mix(in srgb, var(--accent) 86%, white 14%);
  transform: scaleX(1);
}

.portal-header .shop-nav a:hover::after,
.portal-header .shop-nav a:focus-visible::after {
  background: rgba(15, 118, 110, 0.24);
  transform: scaleX(0.85);
}

.shop-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  color: #1e293b;
}

.shop-nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.shop-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f172a 0, #1e293b 100%);
  color: #f8fafc;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.shop-header-cta:hover,
.shop-header-cta:focus-visible {
  background: linear-gradient(135deg, #111827 0, #0f172a 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.shop-header-cta-login {
  background: linear-gradient(135deg, #0f766e 0, #0f9f8c 100%);
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.2);
}

.shop-header-cta-login:hover,
.shop-header-cta-login:focus-visible {
  background: linear-gradient(135deg, #115e59 0, #0f766e 100%);
}

.portal-home-hero {
  background: linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
}

.portal-home-grid {
  align-items: start;
}

.portal-home-panel {
  display: grid;
  gap: 0.75rem;
}

.portal-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.portal-link-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.05rem;
  background: linear-gradient(180deg, #ffffff 0, #f7fbff 100%);
  color: var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.portal-link-card:hover {
  transform: translateY(-1px);
  border-color: #cdd8e6;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.portal-link-card strong {
  font-size: 1.02rem;
}

.portal-link-card span {
  color: var(--ink-soft);
}

[data-theme="dark"] .portal-utility-link {
  color: rgba(219, 231, 245, 0.82);
}

[data-theme="dark"] .portal-utility-link:hover,
[data-theme="dark"] .portal-utility-link:focus-visible {
  color: #f8fafc;
}

[data-theme="dark"] .portal-user-chip {
  color: #dbe7f5;
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .shop-nav-toggle {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e5edf8;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .shop-header-cart {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e5edf8;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .shop-header-cart:hover,
[data-theme="dark"] .shop-header-cart:focus-visible {
  background: rgba(30, 41, 59, 0.98);
  border-color: rgba(148, 163, 184, 0.28);
}

[data-theme="dark"] .portal-user-chip:hover,
[data-theme="dark"] .portal-user-menu[open] .portal-user-chip {
  background: rgba(30, 41, 59, 0.98);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .portal-user-avatar {
  background: rgba(226, 232, 240, 0.14);
  color: #f8fafc;
}

[data-theme="dark"] .portal-user-caret {
  color: rgba(219, 231, 245, 0.72);
}

[data-theme="dark"] .portal-user-menu-panel {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] .portal-user-menu-link,
[data-theme="dark"] .portal-user-menu-button {
  color: #e5edf8;
}

[data-theme="dark"] .portal-user-menu-link:hover,
[data-theme="dark"] .portal-user-menu-link:focus-visible,
[data-theme="dark"] .portal-user-menu-button:hover,
[data-theme="dark"] .portal-user-menu-button:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .portal-home-hero,
[data-theme="dark"] .portal-link-card {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .portal-link-card:hover {
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .portal-link-card strong {
  color: #f8fafc;
}

[data-theme="dark"] .portal-link-card span {
  color: rgba(219, 231, 245, 0.76);
}

.shop-nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.16);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.shop-shell {
  width: min(1440px, calc(100% - 36px));
  margin: 22px auto 56px;
  display: grid;
  gap: 18px;
}

.portal-user-menu {
  position: relative;
}

.portal-user-menu summary {
  list-style: none;
}

.portal-user-menu summary::-webkit-details-marker {
  display: none;
}

.portal-user-menu:hover .portal-user-menu-panel,
.portal-user-menu:focus-within .portal-user-menu-panel {
  display: grid;
}

.portal-user-menu {
  position: relative;
  flex: 0 0 auto;
}

.portal-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 12px 8px 8px;
  border-radius: 18px;
  cursor: pointer;
  color: #243247;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: background 140ms ease, box-shadow 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.portal-user-chip:hover,
.portal-user-menu[open] .portal-user-chip {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.portal-user-chip strong,
.portal-user-chip > div > span {
  display: block;
}

.portal-user-chip strong {
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.portal-user-chip > div > span {
  font-size: 12px;
  color: #64748b;
}

.portal-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  line-height: 1;
  background: #e2e8f0;
  color: #1e293b;
  font-weight: 800;
}

.portal-user-caret {
  color: #64748b;
  font-size: 14px;
  line-height: 1;
}

.portal-user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  display: none;
  gap: 6px;
  z-index: 40;
}

.portal-user-menu-link,
.portal-user-menu-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

.portal-user-menu-link:hover,
.portal-user-menu-link:focus-visible,
.portal-user-menu-button:hover,
.portal-user-menu-button:focus-visible {
  background: #f4f7fb;
}

.portal-switch-modal {
  width: min(620px, calc(100vw - 28px));
}

.portal-switch-list {
  display: grid;
  gap: 10px;
  max-height: min(56vh, 460px);
  overflow: auto;
}

.portal-switch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}

.portal-switch-row strong {
  display: block;
}

.portal-switch-reset {
  padding-top: 6px;
}

.portal-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.portal-profile-panel {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  display: grid;
  gap: 18px;
}

.portal-profile-panel h3 {
  margin: 0;
  font-size: 18px;
}

.portal-profile-panel--password {
  align-content: start;
}

.portal-profile-avatar-editor {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.portal-profile-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #1e293b;
  font-size: 36px;
  font-weight: 800;
  border: 1px solid var(--line-soft);
}

.portal-profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-profile-avatar-fields {
  display: grid;
  gap: 10px;
}

.portal-profile-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.portal-profile-panel .primary-btn {
  justify-self: start;
}

[data-theme="dark"] .portal-profile-avatar-preview {
  background: rgba(148, 163, 184, 0.12);
  color: #f8fafc;
}

@media (max-width: 960px) {
  .portal-profile-layout {
    grid-template-columns: 1fr;
  }

  .portal-profile-avatar-editor {
    grid-template-columns: 1fr;
  }
}

.portal-section-card {
  padding: 28px 30px;
}

.portal-record-list {
  display: grid;
  gap: 14px;
}

.portal-record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.85fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
}

.portal-record-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-record-topline strong {
  font-size: 18px;
}

.portal-record-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.portal-record-meta span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--ink-soft);
}

.portal-record-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.portal-record-actions {
  justify-self: end;
  text-align: right;
}

.portal-login-hero {
  min-height: calc(100vh - 120px);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.68)),
    url("https://images.unsplash.com/photo-1511379938547-c1f69419868d?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}

.portal-login-hero.has-background {
  background:
    linear-gradient(rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.68)),
    var(--portal-login-bg-image) center/cover no-repeat;
}

.portal-login-overlay {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.portal-login-card {
  width: min(360px, 100%);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.22);
}

.portal-login-card h1 {
  margin: 0;
  text-align: center;
  font-size: 2rem;
}

.portal-login-submit {
  width: 100%;
}

.portal-login-links {
  margin-top: 16px;
  text-align: center;
  color: #64748b;
}

.portal-login-staff-link {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  text-align: center;
  font-size: 0.95rem;
  color: #64748b;
}

.portal-login-staff-link a {
  font-weight: 700;
}

[data-theme="dark"] .portal-login-hero {
  background:
    linear-gradient(rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.82)),
    url("https://images.unsplash.com/photo-1511379938547-c1f69419868d?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}

[data-theme="dark"] .portal-login-hero.has-background {
  background:
    linear-gradient(rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.82)),
    var(--portal-login-bg-image) center/cover no-repeat;
}

[data-theme="dark"] .portal-login-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 32px 80px rgba(2, 6, 23, 0.42);
  color: #e5edf8;
}

[data-theme="dark"] .portal-login-card h1,
[data-theme="dark"] .portal-login-card label {
  color: #f8fafc;
}

[data-theme="dark"] .portal-login-card input[type="email"],
[data-theme="dark"] .portal-login-card input[type="password"] {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.2);
  color: #f8fafc;
}

[data-theme="dark"] .portal-login-card input[type="email"]::placeholder,
[data-theme="dark"] .portal-login-card input[type="password"]::placeholder {
  color: #94a3b8;
}

[data-theme="dark"] .portal-login-card .checkline {
  color: #dbe7f5;
}

[data-theme="dark"] .portal-login-links {
  color: #cbd5e1;
}

[data-theme="dark"] .portal-login-links a {
  color: #93c5fd;
}

[data-theme="dark"] .portal-login-staff-link {
  color: #cbd5e1;
  border-top-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .portal-login-staff-link a {
  color: #93c5fd;
}

.shop-shell > .card {
  border-radius: 30px;
}

.shop-context {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 32%),
    linear-gradient(135deg, #ffffff 0, #f8fbfd 100%);
}

.shop-context-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.shop-context-copy h1 {
  max-width: 14ch;
}

.shop-context-copy .lede {
  max-width: 58ch;
}

.shop-context-panel {
  border-radius: 24px;
  border: 1px solid rgba(125, 198, 188, 0.24);
  background: linear-gradient(180deg, #0f172a 0, #111d30 100%);
  color: #fff;
  padding: 22px;
  display: grid;
  gap: 16px;
}

.shop-context-panel .muted {
  color: rgba(219, 231, 245, 0.72);
}

.shop-context-panel .pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.shop-context-panel .pill.pill-warm {
  background: rgba(251, 191, 36, 0.16);
  color: #fed7aa;
}

.shop-context-panel-head,
.shop-hero-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.shop-account-form {
  display: grid;
  gap: 12px;
}

.shop-account-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 0 48px 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(217, 225, 234, 0.9);
  background:
    linear-gradient(45deg, transparent 50%, #64748b 50%) calc(100% - 22px) calc(50% - 2px) / 8px 8px no-repeat,
    linear-gradient(135deg, #64748b 50%, transparent 50%) calc(100% - 16px) calc(50% - 2px) / 8px 8px no-repeat,
    rgba(255, 255, 255, 0.98);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.shop-account-summary {
  display: grid;
  gap: 12px;
}

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

.shop-address-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-address-card span,
.shop-address-card strong {
  color: rgba(255, 255, 255, 0.88);
}

.shop-address-card .shop-address-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(219, 231, 245, 0.72);
  font-weight: 800;
}

.shop-context-note {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.shop-kpis,
.shop-hero-metrics,
.shop-cart-summary,
.shop-checkout-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shop-kpi {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 225, 234, 0.9);
}

.shop-context-panel .shop-kpi {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.shop-kpi span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--ink-soft);
}

.shop-context-panel .shop-kpi span {
  color: rgba(219, 231, 245, 0.7);
}

.shop-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.shop-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

.shop-hero-panel {
  border-radius: 24px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background: linear-gradient(180deg, #ffffff 0, #f6fbff 100%);
  padding: 20px;
  display: grid;
  gap: 16px;
}

.catalog-hero .shop-hero-grid {
  align-items: start;
}

.catalog-hero-side {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.catalog-hero-actions {
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
}

.catalog-hero-actions > .pill,
.catalog-hero-actions > .ghost-btn,
.catalog-hero-actions > .primary-btn {
  flex: 0 0 auto;
}

.catalog-hero-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.catalog-hero-meta-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.catalog-hero-meta-copy strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.shop-hero-panel .pill {
  align-self: start;
}

[data-theme="dark"] .shop-context {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0, rgba(9, 15, 26, 0.98) 100%);
}

[data-theme="dark"] .shop-context-copy h1,
[data-theme="dark"] .shop-context-copy .lede,
[data-theme="dark"] .shop-context-copy .eyebrow,
[data-theme="dark"] .shop-kpi strong,
[data-theme="dark"] .shop-kpi span {
  color: #f8fafc;
}

[data-theme="dark"] .shop-kpi {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .shop-context-copy .lede {
  color: rgba(219, 231, 245, 0.82);
}

[data-theme="dark"] .shop-account-form select {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(45deg, transparent 50%, rgba(219, 231, 245, 0.82) 50%) calc(100% - 22px) calc(50% - 2px) / 8px 8px no-repeat,
    linear-gradient(135deg, rgba(219, 231, 245, 0.82) 50%, transparent 50%) calc(100% - 16px) calc(50% - 2px) / 8px 8px no-repeat,
    rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

[data-theme="dark"] .shop-hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .shop-hero-panel .shop-kpi {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .shop-hero-panel .pill {
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
}

[data-theme="dark"] .catalog-hero-meta-copy {
  color: rgba(226, 232, 240, 0.82);
}

[data-theme="dark"] .catalog-hero-meta-copy strong {
  color: #f8fafc;
}

.shop-context-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.1), transparent 32%),
    linear-gradient(135deg, #ffffff 0, #f8fbfd 100%);
}

.shop-context-compact-main {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex: 1 1 auto;
}

.shop-context-compact-copy {
  min-width: 0;
}

.shop-context-compact-copy h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.02;
}

.shop-context-compact-copy .muted {
  margin-top: 8px;
  max-width: 56ch;
}

.shop-context-compact-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  flex: 1 1 auto;
}

.shop-context-compact .mini-stat {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(217, 225, 234, 0.9);
  background: rgba(255, 255, 255, 0.9);
}

.shop-context-compact .mini-stat span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--ink-soft);
}

.shop-context-compact .mini-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.shop-context-compact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

[data-theme="dark"] .shop-context-compact {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0, rgba(9, 15, 26, 0.98) 100%);
}

[data-theme="dark"] .shop-context-compact-copy h1,
[data-theme="dark"] .shop-context-compact-copy .eyebrow,
[data-theme="dark"] .shop-context-compact .mini-stat strong,
[data-theme="dark"] .shop-context-compact .mini-stat span {
  color: #f8fafc;
}

[data-theme="dark"] .shop-context-compact-copy .muted {
  color: rgba(219, 231, 245, 0.82);
}

[data-theme="dark"] .shop-context-compact .mini-stat {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .shop-product-stage,
[data-theme="dark"] .shop-product-purchase-card,
[data-theme="dark"] .shop-product-specs > div,
[data-theme="dark"] .portal-insights-hero,
[data-theme="dark"] .portal-files-hero,
[data-theme="dark"] .portal-po-hero {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0, rgba(9, 15, 26, 0.98) 100%);
  border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .portal-insights-inline-hovercard {
  background: rgba(9, 15, 26, 0.98);
  border-color: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
}

[data-theme="dark"] .portal-insights-tooltip-row span,
[data-theme="dark"] .portal-insights-tooltip-total span {
  color: rgba(219, 231, 245, 0.72);
}

[data-theme="dark"] .portal-insights-tooltip-total {
  border-top-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .shop-product-copy h1,
[data-theme="dark"] .shop-product-topline span,
[data-theme="dark"] .shop-product-price-primary strong,
[data-theme="dark"] .shop-product-price-meta strong,
[data-theme="dark"] .shop-product-specs strong {
  color: #f8fafc;
}

[data-theme="dark"] .shop-product-topline,
[data-theme="dark"] .shop-product-price-primary span,
[data-theme="dark"] .shop-product-price-meta span,
[data-theme="dark"] .shop-product-specs span {
  color: rgba(219, 231, 245, 0.72);
}

[data-theme="dark"] .shop-product-thumb {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .shop-detail-tab {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e5edf8;
}

[data-theme="dark"] .shop-detail-tab.active {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #09111f;
}

.shop-fast-order-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.shop-quick-order-form {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.72);
}

.shop-quick-order-form h3,
.shop-reorder-card h3 {
  margin: 4px 0 2px;
  font-size: 18px;
}

.shop-quick-order-form textarea {
  min-height: 110px;
  resize: vertical;
}

.shop-quick-order-builder {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.72);
}

#shop-quick-order-modal.perfex-modal-shell {
  align-items: center;
  padding: 42px 16px;
}

.shop-quick-order-modal {
  width: min(1360px, calc(100vw - 48px)) !important;
  max-width: min(1360px, calc(100vw - 48px));
  max-height: min(920px, calc(100vh - 40px));
}

.shop-quick-order-modal .perfex-modal-body {
  overflow-x: hidden;
  overflow-y: auto;
}

.suggested-cart-recipient-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.suggested-cart-recipient-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.86);
  cursor: pointer;
}

.suggested-cart-recipient-option input {
  width: 20px;
  height: 20px;
}

.suggested-cart-recipient-option strong,
.suggested-cart-recipient-option small {
  display: block;
}

.suggested-cart-recipient-option small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
}

.shop-quick-order-table-head {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) 148px 190px 110px;
  gap: 14px;
  align-items: end;
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-quick-order-list {
  display: grid;
  gap: 0;
}

.shop-quick-order-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) 148px 190px 110px;
  gap: 14px;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}

.shop-quick-order-modal .shop-quick-order-builder {
  padding: 0;
  border: 0;
  background: transparent;
}

.shop-quick-order-search-shell {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.shop-quick-order-field {
  display: grid;
  gap: 6px;
}

.shop-quick-order-field input,
.shop-quick-order-field select {
  width: 100%;
}

.shop-quick-order-selected[hidden],
.shop-quick-order-selected-thumb[hidden],
.shop-quick-order-results[hidden] {
  display: none !important;
}

.shop-quick-order-selected {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  align-self: start;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.shop-quick-order-selected-thumb {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.shop-quick-order-selected-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-quick-order-selected-copy {
  display: grid;
  gap: 2px;
}

.shop-quick-order-selected-copy strong {
  font-size: 15px;
}

.shop-quick-order-selected .table-subline {
  margin: 0;
}

.shop-quick-order-qty input {
  text-align: center;
  min-height: 52px;
}

.shop-quick-order-meta {
  display: contents;
}

.shop-quick-order-price {
  display: grid;
  gap: 4px;
  align-self: center;
  text-align: right;
  grid-column: 3;
}

.shop-quick-order-price strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.shop-quick-order-price .table-subline {
  margin: 0;
}

.shop-quick-order-toolbar,
.shop-quick-order-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.shop-quick-order-summary {
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}

.shop-quick-order-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.shop-quick-order-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.shop-quick-order-actions > .primary-btn {
  min-width: 180px;
}

.shop-quick-order-remove {
  align-self: center;
  justify-self: end;
  white-space: nowrap;
  grid-column: 4;
}

.shop-quick-order-qty {
  grid-column: 2;
}

.shop-quick-order-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 6;
  display: grid;
  gap: 2px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.14);
}

.shop-quick-order-result {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.shop-quick-order-result-thumb {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbfd 0, #eef4f9 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.shop-quick-order-result-thumb.is-empty::before {
  content: "";
  width: 22px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
}

.shop-quick-order-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-quick-order-result:hover {
  background: rgba(59, 130, 246, 0.08);
}

.shop-quick-order-result-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.shop-quick-order-result-copy strong {
  font-size: 14px;
  font-weight: 700;
}

.shop-quick-order-result-copy span,
.shop-quick-order-result-price,
.shop-quick-order-empty {
  font-size: 13px;
  color: var(--ink-soft);
}

.shop-quick-order-empty {
  padding: 12px;
}

.shop-reorder-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #ffffff 0, #f7fbff 100%);
}

.shop-reorder-list {
  display: grid;
  gap: 10px;
}

.shop-reorder-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.84);
}

.shop-reorder-row strong {
  display: block;
}

.shop-step-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-step {
  display: inline-grid;
  grid-template-columns: 32px auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  background: #f4f7fb;
  border: 1px solid var(--line-soft);
}

.shop-step span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line-soft);
  font-size: 12px;
  font-weight: 800;
}

.shop-step strong {
  font-size: 13px;
}

.shop-step.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.shop-step.is-active span {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.shop-step.is-complete {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.16);
}

.shop-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 28px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fbfdff 0, #f6fafe 100%);
}

.filter-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(190px, 0.65fr) minmax(210px, 0.75fr);
  gap: 12px;
  align-items: center;
}

.shop-filter-bar input,
.shop-filter-bar select {
  min-height: 68px;
  padding: 0 20px;
  border-radius: 22px;
  border: 1px solid #d7e3f0;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.shop-filter-bar input::placeholder {
  color: #9aa7b7;
  font-weight: 600;
}

.shop-filter-bar select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #506176 50%),
    linear-gradient(135deg, #506176 50%, transparent 50%);
  background-position:
    calc(100% - 26px) calc(50% - 4px),
    calc(100% - 18px) calc(50% - 4px);
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  padding-right: 52px;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.shop-filter-bar .filter-actions .primary-btn {
  min-height: 68px;
  padding: 0 28px;
  border-radius: 22px;
  font-size: 18px;
}

.shop-filter-bar .filter-actions .muted {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.shop-catalog-shell {
  display: grid;
  grid-template-columns: minmax(280px, 332px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.shop-catalog-sidebar {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 58%, #f5f8fc 100%);
  box-shadow: var(--shadow-soft);
}

.shop-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf2f7;
}

.shop-sidebar-head h2 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
}

.shop-sidebar-head .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

.shop-clear-filters-btn {
  align-self: center;
  flex: 0 0 auto;
}

.shop-filter-panel {
  display: grid;
  gap: 13px;
}

.shop-filter-field {
  display: grid;
  gap: 8px;
}

.shop-filter-field span,
.shop-filter-checkbox span {
  font-size: 12px;
  font-weight: 650;
  color: #6f7d91;
  letter-spacing: 0;
  text-transform: none;
}

.shop-filter-field input,
.shop-filter-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d7e3f0;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.shop-filter-field input:focus,
.shop-filter-field select:focus {
  border-color: rgba(48, 125, 115, 0.45);
  box-shadow: 0 0 0 4px rgba(48, 125, 115, 0.1);
  outline: none;
}

.shop-filter-field input::placeholder {
  color: #9aa7b7;
  font-weight: 600;
}

.shop-filter-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #506176 50%),
    linear-gradient(135deg, #506176 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 15px) calc(50% - 3px);
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.shop-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 2px;
}

.shop-filter-checkbox span {
  font-size: 12px;
  font-weight: 600;
}

.shop-filter-checkbox input {
  width: 22px;
  height: 22px;
  accent-color: var(--teal);
}

.shop-filter-panel .primary-btn {
  min-height: 50px;
  justify-content: center;
  border-radius: 16px;
  font-weight: 700;
}

.shop-more-filters {
  border: 1px solid #dce6f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.shop-more-filters summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.shop-more-filters summary::-webkit-details-marker {
  display: none;
}

.shop-more-filters summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #506176;
  border-bottom: 2px solid #506176;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}

.shop-more-filters[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.shop-more-filters-panel {
  display: grid;
  gap: 13px;
  padding: 0 14px 14px;
}

.shop-price-slider {
  display: grid;
  gap: 13px;
  padding: 14px 16px 16px;
  border: 1px solid #dce6f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.shop-price-slider-head,
.shop-price-slider-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-price-slider-head span,
.shop-price-slider-values span {
  color: #6f7d91;
  font-size: 12px;
  font-weight: 650;
}

.shop-price-slider-head strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.shop-price-range-track {
  --price-min: 0%;
  --price-max: 0%;
  position: relative;
  height: 30px;
  margin: 1px 10px 0;
}

.shop-price-range-track::before,
.shop-price-range-track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 6px;
  border-radius: 999px;
}

.shop-price-range-track::before {
  background: #d9e3ee;
  box-shadow: inset 0 0 0 1px rgba(82, 99, 120, 0.08);
}

.shop-price-range-track::after {
  left: var(--price-min);
  right: var(--price-max);
  background: linear-gradient(90deg, #168274, #2f9b8d);
  box-shadow: 0 1px 3px rgba(22, 130, 116, 0.22);
}

.shop-price-range-track input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 30px;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.shop-price-range-track input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #168274;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(22, 130, 116, 0.24);
  appearance: none;
  cursor: pointer;
  pointer-events: auto;
}

.shop-price-range-track input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #168274;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(22, 130, 116, 0.24);
  cursor: pointer;
  pointer-events: auto;
}

.shop-price-range-track input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

.shop-price-range-track input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
}

.shop-price-slider-values label {
  display: grid;
  gap: 5px;
  width: 100%;
}

.shop-price-slider-values input {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #d7e3f0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
}

.shop-catalog-results {
  min-width: 0;
}

.shop-catalog-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.shop-catalog-toolbar-group {
  display: inline-flex;
  align-items: end;
  gap: 10px;
}

.shop-catalog-toolbar-group label {
  display: grid;
  gap: 6px;
}

.shop-catalog-toolbar-group label span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 800;
}

.shop-catalog-toolbar-group select {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid #d7e3f0;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.shop-view-mode-group {
  align-items: center;
  padding: 4px;
  border-radius: 20px;
  border: 1px solid #d9e4f0;
  background: linear-gradient(180deg, #ffffff 0, #f4f8ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.shop-view-toggle {
  width: 52px;
  min-width: 52px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.shop-view-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.shop-view-toggle:hover {
  color: var(--ink);
  background: rgba(15, 118, 110, 0.08);
}

.shop-view-toggle.is-active {
  background: linear-gradient(180deg, #f5f1ff 0, #e8e5ff 100%);
  color: #5648d8;
  box-shadow: 0 6px 16px rgba(86, 72, 216, 0.18);
}

.shop-catalog-toolbar-summary {
  color: var(--ink-soft);
  font-weight: 700;
}

.shop-category-strip {
  background: linear-gradient(180deg, #ffffff 0, #f7fbff 100%);
}

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

.shop-active-filters {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.shop-active-filters .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  line-height: 1;
  white-space: nowrap;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f4f7fb;
  border: 1px solid var(--line-soft);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.category-pill.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.category-pill.removable:hover {
  background: #1e293b;
  color: #fff;
  text-decoration: none;
}

.category-pill-remove {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 18px;
  line-height: 1;
}

.catalog-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
  color: var(--ink-soft);
  font-size: 12px;
}

.catalog-meta-row span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f3f7fb;
  border: 1px solid var(--line-soft);
}

.shop-card-action {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
}

.shop-card-icon-action {
  width: 52px;
  min-width: 52px;
  padding: 0;
  aspect-ratio: 1;
  justify-self: end;
}

.shop-card-quickview-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  margin-top: 0;
  border-radius: 16px;
  border-color: rgba(210, 220, 232, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.shop-card-icon-eye {
  width: 22px;
  height: 22px;
  display: inline-flex;
}

.shop-card-icon-eye svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.catalog-list {
  grid-template-columns: 1fr;
  gap: 18px;
}

.catalog-list .catalog-card {
  grid-template-columns: 180px minmax(0, 1fr);
  grid-template-rows: none;
  align-items: stretch;
}

.catalog-list .catalog-card-image-shell {
  min-height: 100%;
  padding: 18px 0 18px 18px;
  display: flex;
  align-items: stretch;
}

.catalog-list .catalog-card-image {
  min-height: 168px;
  max-height: none;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: #fff;
}

.catalog-list .catalog-card-image img {
  max-height: 132px;
}

.catalog-list .catalog-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 10px 18px;
  align-content: center;
  padding: 20px 22px 20px 10px;
}

.catalog-list .catalog-card-topline,
.catalog-list .catalog-card-body h3,
.catalog-list .catalog-card-body > .muted,
.catalog-list .catalog-card-body > .catalog-meta-row,
.catalog-list .catalog-card-body > .table-subline,
.catalog-list .catalog-card-body > form {
  grid-column: 1;
}

.catalog-list .catalog-card-topline {
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.catalog-list .catalog-card-body h3 {
  font-size: 18px;
  line-height: 1.16;
}

.catalog-list .catalog-card-body > .muted {
  margin-top: -2px;
}

.catalog-list .catalog-card-pricing {
  grid-column: 2;
  grid-row: 1 / span 4;
  justify-self: end;
  align-self: center;
  width: 100%;
  text-align: right;
  display: grid;
  gap: 6px;
}

.catalog-list .catalog-card-pricing strong {
  font-size: 28px;
}

.catalog-list .catalog-card-pricing span {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.catalog-list .catalog-meta-row {
  margin: 2px 0 4px;
}

.catalog-list .catalog-meta-row span {
  padding: 5px 8px;
  font-size: 11px;
}

.catalog-list .table-subline {
  font-size: 13px;
}

.catalog-list .catalog-card-body > form {
  margin-top: 4px;
}

.catalog-list .shop-card-buy-row {
  grid-template-columns: 82px 220px;
  gap: 10px;
  align-items: end;
}

.catalog-list .shop-card-buy-row .primary-btn {
  width: auto;
  min-width: 0;
}

.catalog-list .shop-card-quickview-corner {
  top: 14px;
  left: 14px;
}

.catalog-list .catalog-card-topline .pill.subtle:last-child {
  margin-left: auto;
}

.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-pagination-pages {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.shop-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.shop-pagination-link.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.shop-pagination-ellipsis {
  color: var(--ink-soft);
  font-weight: 800;
}

.ghost-btn.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.catalog-card {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0, #f9fbff 100%);
  border: 1px solid var(--line-soft);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
}

.catalog-card-image-shell {
  position: relative;
  min-height: 220px;
}

.catalog-card-image {
  min-height: 220px;
  max-height: 220px;
  background: #fff;
  overflow: hidden;
  align-items: center;
  justify-items: center;
  padding: 18px;
}

.catalog-card-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  object-position: center center;
  margin: auto;
}

.catalog-card-body {
  padding: 18px 18px 20px;
  display: grid;
  gap: 10px;
  align-content: start;
  position: relative;
  z-index: 1;
}

.catalog-card-body h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.catalog-card-pricing strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.shop-card-buy-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.shop-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.shop-related-card {
  display: grid;
  grid-template-rows: 210px auto;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0, #f9fbff 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.shop-related-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: #fff;
  min-height: 210px;
  overflow: hidden;
}

.shop-related-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
  object-position: center center;
  margin: auto;
  flex: 0 0 auto;
}

.shop-related-image.is-empty {
  color: var(--ink-soft);
  font-weight: 700;
  background: #fff url("media/no-image-placeholder.png") center/72px 72px no-repeat;
}

.shop-related-body {
  display: grid;
  gap: 8px;
  padding: 16px 18px 18px;
  align-content: start;
}

.shop-related-brand {
  margin: 0;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-related-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
}

.shop-related-body h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-related-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.shop-related-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4f7fb;
}

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

@media (max-width: 900px) {
  .shop-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shop-related-grid {
    grid-template-columns: 1fr;
  }
}

.inline-field {
  display: grid;
  gap: 6px;
}

.inline-field .form-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 800;
}

.shop-product-hero {
  align-items: start;
}

.shop-product-page {
  padding: 28px 30px;
}

.shop-product-breadcrumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--ink-soft);
  font-weight: 700;
}

.shop-product-breadcrumbs strong {
  color: var(--ink);
}

.shop-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.82fr);
  gap: 28px;
  align-items: start;
}

.shop-product-gallery,
.shop-product-copy {
  display: grid;
  gap: 16px;
}

.shop-product-toolbar {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.shop-product-stage {
  min-height: 520px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line-soft);
  background: #fff;
  display: grid;
  place-items: center;
}

.shop-product-stage-link {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.shop-product-stage img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
}

.shop-product-stage.is-empty {
  color: var(--ink-soft);
  background: #fff url("media/no-image-placeholder.png") center/96px 96px no-repeat;
}

.shop-product-thumb-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-product-thumb {
  width: 82px;
  height: 82px;
  padding: 0;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.shop-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-product-thumb.is-active {
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.shop-product-copy h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.shop-product-topline {
  margin: -4px 0 2px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-weight: 700;
}

.shop-product-topline span {
  color: var(--ink);
}

.shop-product-purchase-card {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
  position: sticky;
  top: 104px;
}

.shop-product-price-stack {
  display: grid;
  gap: 14px;
}

.shop-product-price-primary span,
.shop-product-price-meta span,
.shop-product-specs span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  color: var(--ink-soft);
}

.shop-product-price-primary strong {
  display: block;
  margin-top: 6px;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.shop-product-price-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shop-product-price-meta strong,
.shop-product-specs strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
}

.shop-product-price-rule {
  padding-top: 2px;
}

.shop-product-price-rule span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  color: var(--ink-soft);
}

.shop-product-price-rule strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.shop-product-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shop-product-specs > div {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.72);
}

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

.shop-detail-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: #f4f7fb;
  color: var(--ink);
  font-weight: 700;
}

.shop-detail-tab.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.portal-insights-hero,
.portal-files-hero,
.portal-po-hero {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
}

.portal-insights-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.portal-insights-hero-copy {
  min-width: 0;
}

.portal-insights-hero-copy h1 {
  max-width: none;
}

.portal-insights-hero-actions {
  justify-content: flex-end;
}

.portal-insights-year-bars {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.portal-insights-top-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.portal-insights-expandable {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.portal-insights-expandable summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.portal-insights-expandable summary::-webkit-details-marker {
  display: none;
}

.portal-insights-expandable summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14px;
}

.portal-insights-expandable[open] summary::before {
  content: "\2212";
}

.portal-insights-mtd-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  min-height: 340px;
  margin-top: 28px;
}

.portal-insights-pie-shell {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 300px;
}

.portal-insights-pie-svg {
  width: 280px;
  height: 280px;
  overflow: visible;
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 1;
}

.portal-insights-pie-disc {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.portal-insights-pie-slice {
  cursor: pointer;
  transition: opacity 120ms ease;
}

.portal-insights-pie-slice:hover {
  opacity: 0.92;
}

.portal-insights-pie-legend {
  display: grid;
  gap: 0;
}

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

.portal-insights-pie-row:last-child {
  border-bottom: 0;
}

.portal-insights-category-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  color: var(--ink);
}

.portal-insights-category-label span:last-child {
  min-width: 0;
}

.portal-insights-pie-values {
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
}

.portal-insights-pie-values strong {
  font-size: 16px;
  color: var(--ink);
}

.portal-insights-pie-values span {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 700;
}

#account-insights-panel .portal-insights-mtd-layout {
  grid-template-columns: minmax(220px, 260px) minmax(280px, 1fr);
  gap: 22px;
  align-items: center;
  min-height: auto;
  margin-top: 34px;
}

#account-insights-panel .portal-insights-pie-shell {
  min-height: 240px;
  width: min(100%, 260px);
  justify-self: center;
}

#account-insights-panel .portal-insights-pie-disc {
  width: 220px;
  height: 220px;
}

#account-insights-panel .portal-insights-pie-svg {
  width: 220px;
  height: 220px;
  pointer-events: auto;
}

#account-insights-panel .portal-insights-pie-legend {
  min-width: 0;
  align-content: center;
}

#account-insights-panel .portal-insights-pie-row {
  gap: 12px;
  padding: 6px 0;
}

#account-insights-panel .portal-insights-years-panel .portal-insights-year-bars {
  margin-top: 34px;
}

#account-insights-panel .portal-insights-years-panel .perfex-table th,
#account-insights-panel .portal-insights-years-panel .perfex-table td {
  white-space: nowrap;
}

#account-insights-panel .portal-insights-category-label {
  gap: 8px;
  font-size: 13px;
  line-height: 1.2;
}

#account-insights-panel .portal-insights-category-label span:last-child {
  overflow-wrap: anywhere;
}

#account-insights-panel .portal-insights-pie-values strong {
  font-size: 13px;
}

#account-insights-panel .portal-insights-pie-values span {
  font-size: 11px;
}

#account-insights-panel .portal-insights-pie-slice {
  pointer-events: auto;
}

.portal-insights-plain-rankings {
  padding-left: 0;
  list-style: none;
}

.portal-insights-plain-rankings li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}

.portal-insights-plain-rankings li:last-child {
  border-bottom: 0;
}

.portal-insights-plain-rankings .insights-ranked-main {
  gap: 8px;
}

.portal-insights-plain-rankings .insights-ranked-label {
  gap: 8px;
}

.portal-insights-plain-rankings .insights-ranked-main span {
  line-height: 1.25;
}

.portal-insights-plain-rankings .insights-ranked-main strong {
  line-height: 1.2;
  white-space: nowrap;
}

.portal-insights-year-card {
  cursor: default;
}

.portal-insights-years-panel {
  position: relative;
}

.portal-insights-years-panel .portal-insights-year-bars {
  align-items: center;
  margin-top: 28px;
}

.portal-insights-years-panel .portal-insights-year-card {
  align-content: center;
  padding-top: 18px;
  padding-bottom: 16px;
}

.portal-insights-years-panel .insights-year-bar-track {
  margin-block: 4px;
}

.portal-insights-inline-hovercard {
  position: absolute;
  z-index: 12;
  min-width: 240px;
  max-width: min(360px, calc(100% - 24px));
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  color: var(--ink);
  pointer-events: none;
  display: grid;
  gap: 8px;
}

.portal-insights-inline-hovercard[hidden] {
  display: none !important;
}

.portal-insights-pie-hovercard {
  max-width: min(280px, calc(100% - 24px));
}

.portal-insights-inline-hovercard strong:first-child {
  font-size: 18px;
}

.portal-insights-tooltip-row,
.portal-insights-tooltip-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.portal-insights-tooltip-row span,
.portal-insights-tooltip-total span {
  color: var(--ink-soft);
}

.portal-insights-tooltip-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.portal-insights-tooltip-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.portal-insights-tooltip-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .portal-insights-top-grid {
    grid-template-columns: 1fr;
  }

  .portal-insights-mtd-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .portal-insights-year-bars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-insights-hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .portal-insights-pie-svg {
    width: 220px;
    height: 220px;
  }

  .portal-insights-year-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.portal-po-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-po-head-actions {
  align-items: center;
}

.portal-po-items-table td {
  vertical-align: top;
}

.portal-po-item-action {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.portal-po-reorder-btn {
  min-width: 116px;
  justify-content: center;
}

.shop-kpi.shop-kpi-success {
  background: linear-gradient(180deg, #effaf2 0, #e5f7ea 100%);
}

.shop-kpi.shop-kpi-success strong,
.shop-kpi.shop-kpi-success span {
  color: #1f7a38;
}

.shop-kpi.shop-kpi-info {
  background: linear-gradient(180deg, #eef5ff 0, #e6f0ff 100%);
}

.shop-kpi.shop-kpi-info strong,
.shop-kpi.shop-kpi-info span {
  color: #1d4ed8;
}

.shop-kpi.shop-kpi-warm {
  background: linear-gradient(180deg, #fff7ec 0, #fff1dd 100%);
}

.shop-kpi.shop-kpi-warm strong,
.shop-kpi.shop-kpi-warm span {
  color: #b45309;
}

.shop-kpi.shop-kpi-danger {
  background: linear-gradient(180deg, #fff0ef 0, #fee9e7 100%);
}

.shop-kpi.shop-kpi-danger strong,
.shop-kpi.shop-kpi-danger span {
  color: #b42318;
}

.portal-inline-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 150px) auto;
  gap: 12px;
  align-items: end;
}

.portal-inline-filter {
  display: grid;
  gap: 8px;
}

.portal-inline-filter span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.portal-po-link {
  font-weight: 800;
}

.portal-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.portal-record-meta.portal-record-meta-stack {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.portal-record-list-tight {
  gap: 12px;
}

.portal-po-summary-stack {
  display: grid;
  gap: 12px;
}

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

.portal-po-summary-grid > div {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fbfdff;
  min-width: 0;
}

.portal-po-summary-grid > div strong {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
  word-break: break-word;
}

.portal-po-summary-total {
  grid-column: 1 / -1;
}

.portal-po-summary-total strong {
  font-size: 22px;
}

.portal-po-summary-note {
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fbfdff;
}

.portal-summary-list {
  padding: 10px 0 0;
  border-top: 1px solid var(--line-soft);
}

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

.portal-summary-row span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portal-summary-row strong {
  text-align: right;
  font-size: 18px;
  line-height: 1.35;
  word-break: break-word;
}

.portal-summary-row-stack {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.portal-summary-row-stack strong {
  text-align: left;
  width: 100%;
}

.portal-summary-row-total strong {
  font-size: 24px;
}

.portal-po-summary-note .eyebrow {
  margin: 0 0 10px;
}

[data-theme="dark"] .shop-kpi.shop-kpi-success {
  background: rgba(34, 197, 94, 0.14);
}

[data-theme="dark"] .shop-kpi.shop-kpi-success strong,
[data-theme="dark"] .shop-kpi.shop-kpi-success span {
  color: #86efac;
}

[data-theme="dark"] .shop-kpi.shop-kpi-info {
  background: rgba(59, 130, 246, 0.16);
}

[data-theme="dark"] .shop-kpi.shop-kpi-info strong,
[data-theme="dark"] .shop-kpi.shop-kpi-info span {
  color: #93c5fd;
}

[data-theme="dark"] .shop-kpi.shop-kpi-warm {
  background: rgba(245, 158, 11, 0.16);
}

[data-theme="dark"] .shop-kpi.shop-kpi-warm strong,
[data-theme="dark"] .shop-kpi.shop-kpi-warm span {
  color: #fcd34d;
}

[data-theme="dark"] .shop-kpi.shop-kpi-danger {
  background: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .shop-kpi.shop-kpi-danger strong,
[data-theme="dark"] .shop-kpi.shop-kpi-danger span {
  color: #fca5a5;
}

[data-theme="dark"] .portal-inline-filter span {
  color: rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .portal-po-summary-grid > div {
  background: rgba(15, 23, 42, 0.58);
  border-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .portal-po-summary-note {
  background: rgba(15, 23, 42, 0.58);
  border-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .portal-summary-list,
[data-theme="dark"] .portal-summary-row {
  border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .shop-filter-bar {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0, rgba(15, 23, 42, 0.68) 100%);
  border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .shop-filter-bar input,
[data-theme="dark"] .shop-filter-bar select {
  background-color: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e5edf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .shop-filter-bar input::placeholder {
  color: rgba(203, 213, 225, 0.62);
}

[data-theme="dark"] .shop-filter-bar select {
  background-image:
    linear-gradient(45deg, transparent 50%, #c9d5e6 50%),
    linear-gradient(135deg, #c9d5e6 50%, transparent 50%);
}

[data-theme="dark"] .shop-catalog-toolbar-group select,
[data-theme="dark"] .shop-pagination-link {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e5edf8;
}

[data-theme="dark"] .shop-view-mode-group {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .shop-view-toggle {
  color: rgba(219, 231, 245, 0.78);
}

[data-theme="dark"] .shop-view-toggle:hover {
  color: #fff;
  background: rgba(142, 227, 214, 0.12);
}

[data-theme="dark"] .shop-view-toggle.is-active,
[data-theme="dark"] .shop-pagination-link.is-active {
  background: #8ee3d6;
  border-color: #8ee3d6;
  color: #10203f;
}

.shop-product-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.shop-product-summary {
  margin-top: 0;
}

.shop-public-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.shop-buying-note {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.76);
}

.shop-buying-note span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--ink-soft);
}

.shop-buying-note strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.shop-buy-box {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.shop-buy-box .form-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 800;
}

.shop-product-description,
.shop-product-info-card,
.shop-product-videos {
  background: linear-gradient(180deg, #ffffff 0, #fafcff 100%);
}

.shop-product-description .product-description {
  display: flow-root;
}

.shop-video-frame {
  overflow: hidden;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: #f8fafc;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.shop-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.shop-cart-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

.shop-cart-hero--single {
  grid-template-columns: 1fr;
}

.shop-cart-summary,
.shop-checkout-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shop-checklist {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.shop-checklist-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
}

.shop-checklist-item strong {
  font-size: 13px;
}

.shop-checklist-item span {
  color: var(--ink-soft);
  font-size: 13px;
}

.shop-checklist-item.done {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.16);
}

.shop-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.shop-cart-accelerators {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.shop-order-context-card {
  display: grid;
  gap: 16px;
}

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

.shop-order-context-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0, #f8fbfd 100%);
}

.shop-order-context-item span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.shop-order-context-item strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.shop-order-context-item .table-subline {
  margin: 0;
}

.shop-order-context-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-checkout-panel {
  position: sticky;
  top: 92px;
}

.shop-order-sheet {
  display: grid;
  gap: 18px;
}

.shop-order-sheet > .section-head {
  margin-bottom: -2px;
}

.cart-line-list {
  display: grid;
  gap: 14px;
}

.cart-line-list--sheet {
  gap: 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0, #f9fcff 100%);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
}

.cart-line-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.cart-line-image {
  height: 92px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(15,118,110,0.12), transparent 30%),
    linear-gradient(180deg, #f9fcfe 0, #edf4f8 100%);
  display: grid;
  place-items: center;
}

.cart-line-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-line-copy h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.cart-line-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cart-line-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.cart-price-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cart-price-stack div {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fbfd;
  border: 1px solid var(--line-soft);
}

.cart-price-stack span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 800;
}

.cart-price-stack strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
}

.cart-line-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.cart-line-remove {
  justify-self: start;
}

.shop-checkout-panel {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
}

.shop-order-table .cart-line-image {
  width: 72px;
  height: 72px;
}

.shop-order-qty-form {
  display: grid;
  grid-template-columns: 92px auto;
  gap: 8px;
  align-items: center;
}

.shop-order-item-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.shop-order-item-copy strong,
.shop-order-item-copy a {
  color: var(--ink);
  text-decoration: none;
}

.shop-order-item-copy a:hover {
  text-decoration: underline;
}

.shop-order-remove-form {
  display: flex;
  justify-content: flex-end;
}

.shop-order-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shop-order-sheet-summary {
  width: min(100%, 640px);
  margin-left: auto;
  display: grid;
  gap: 0;
  padding-top: 4px;
}

.shop-order-sheet-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.shop-order-sheet-summary-row:first-child {
  border-top: 0;
}

.shop-order-sheet-summary-row span {
  font-size: 16px;
  color: var(--ink-soft);
  font-weight: 600;
}

.shop-order-sheet-summary-row strong {
  font-size: 24px;
  color: var(--ink);
}

.shop-order-sheet-summary-row--total span,
.shop-order-sheet-summary-row--total strong {
  color: #cf3b2c;
  font-weight: 800;
}

.shop-checkout-sections {
  display: grid;
  gap: 14px;
}

.shop-checkout-sections--full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-checkout-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.72);
}

.shop-checkout-block h3 {
  margin: 0;
  font-size: 16px;
}

.shop-checkout-sheet-block {
  padding: 0 0 4px;
}

.shop-checkout-sheet-block h3 {
  margin: 0;
  font-size: 1.45rem;
}

.shop-checkout-sheet-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding-top: 8px;
}

[data-theme="dark"] .shop-quick-order-form,
[data-theme="dark"] .shop-quick-order-builder,
[data-theme="dark"] .shop-reorder-card,
[data-theme="dark"] .shop-reorder-row,
[data-theme="dark"] .catalog-card,
[data-theme="dark"] .portal-record-card,
[data-theme="dark"] .soft-list-row,
[data-theme="dark"] .shop-buying-note,
[data-theme="dark"] .cart-line {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .shop-reorder-row strong {
  color: #f8fafc;
}

[data-theme="dark"] .portal-record-topline strong,
[data-theme="dark"] .portal-record-meta strong,
[data-theme="dark"] .shop-product-breadcrumbs strong,
[data-theme="dark"] .catalog-card-body h3,
[data-theme="dark"] .catalog-card-pricing strong,
[data-theme="dark"] .shop-buying-note strong {
  color: #f8fafc;
}

[data-theme="dark"] .portal-record-meta span,
[data-theme="dark"] .soft-list-row .table-subline,
[data-theme="dark"] .shop-product-breadcrumbs,
[data-theme="dark"] .shop-buying-note span {
  color: rgba(219, 231, 245, 0.72);
}

[data-theme="dark"] .soft-list-row strong,
[data-theme="dark"] .soft-list-row .mini-chip,
[data-theme="dark"] .soft-list-row .text-right {
  color: #f8fafc;
}

[data-theme="dark"] .catalog-card-image,
[data-theme="dark"] .shop-checklist-item,
[data-theme="dark"] .shop-checkout-block,
[data-theme="dark"] .cart-price-stack div {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .catalog-meta-row span {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.16);
  color: rgba(219, 231, 245, 0.82);
}

[data-theme="dark"] .shop-order-sheet-summary-row {
  border-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .shop-order-sheet-summary-row span {
  color: rgba(219, 231, 245, 0.76);
}

[data-theme="dark"] .shop-order-sheet-summary-row strong {
  color: #f8fafc;
}

[data-theme="dark"] .shop-order-sheet-summary-row--total span,
[data-theme="dark"] .shop-order-sheet-summary-row--total strong {
  color: #fca5a5;
}

[data-theme="dark"] .shop-order-item-copy strong,
[data-theme="dark"] .shop-order-item-copy a {
  color: #f8fafc;
}

[data-theme="dark"] .shop-quick-order-row {
  background: transparent;
}

[data-theme="dark"] .shop-quick-order-price strong,
[data-theme="dark"] .shop-quick-order-line-total strong,
[data-theme="dark"] .shop-quick-order-summary strong,
[data-theme="dark"] .shop-quick-order-result {
  color: var(--ink);
}

[data-theme="dark"] .shop-quick-order-results {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0, rgba(10, 17, 30, 0.98) 100%);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 22px 40px rgba(2, 6, 23, 0.38);
}

[data-theme="dark"] .shop-quick-order-result:hover {
  background: rgba(59, 130, 246, 0.16);
}

.shop-quick-view-modal {
  width: min(980px, calc(100vw - 1rem));
  max-height: none;
  margin: auto 0;
  overflow: visible;
}

.shop-quick-view-modal .perfex-modal-body {
  overflow: visible;
  max-height: none;
}

.shop-quick-view-modal.is-public .shop-quick-view-cart-form {
  display: none !important;
}

.shop-quick-view-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.shop-quick-view-image {
  min-height: 320px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 1.25rem;
}

.shop-quick-view-image img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.shop-quick-view-image.is-empty {
  color: var(--ink-soft);
  background: #ffffff;
  background-image: url("media/no-image-placeholder.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 96px 96px;
}

.table-thumb.is-empty {
  background: #fff url("media/no-image-placeholder.png") center/48px 48px no-repeat;
}

.featured-card-image.is-empty span,
.catalog-card-image.is-empty span,
.product-thumb.is-empty span,
.product-main-image.is-empty span,
.catalog-detail-main.is-empty span,
.shop-related-image.is-empty span,
.shop-product-stage.is-empty span,
.shop-quick-view-image.is-empty span,
.table-thumb.is-empty span {
  display: none;
}

.shop-quick-view-thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.shop-quick-view-thumb {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: #fff;
  display: grid;
  place-items: center;
  padding: 8px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.shop-quick-view-thumb:hover,
.shop-quick-view-thumb.is-active {
  border-color: rgba(31, 126, 114, 0.45);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.shop-quick-view-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.shop-quick-view-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.shop-quick-view-summary {
  max-width: 34ch;
  font-size: 1.02rem;
  line-height: 1.7;
}

.shop-quick-view-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-quick-view-guest-note {
  display: grid;
  gap: 12px;
  align-content: start;
}

.shop-quick-view-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.shop-quick-view-price strong {
  font-size: 2.35rem;
  line-height: 1;
  color: var(--ink);
}

.shop-quick-view-price span {
  color: var(--ink-soft);
  font-weight: 700;
}

.shop-quick-view-cart-form {
  display: flex;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}

.shop-quick-view-cart-form[hidden],
.shop-quick-view-guest-note[hidden] {
  display: none !important;
}

.shop-quick-view-cart-form .inline-field {
  min-width: 120px;
}

[data-theme="dark"] .shop-quick-view-image {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .shop-quick-view-thumb {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .shop-card-quickview-corner {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

[data-theme="dark"] .shop-quick-view-price strong {
  color: #f8fafc;
}

@media (max-width: 900px) {
  .perfex-modal-shell {
    padding: 12px 10px;
  }

  .shop-quick-view-grid {
    grid-template-columns: 1fr;
  }

  .shop-product-toolbar,
  .shop-quick-view-tools,
  .catalog-card-actions {
    justify-content: stretch;
  }

  .shop-quick-view-image {
    min-height: 240px;
  }

  .shop-quick-view-price strong {
    font-size: 1.75rem;
  }

  .portal-record-card,
  .portal-record-meta,
  .shop-buying-notes,
  .shop-product-specs,
  .shop-product-price-meta,
  .cart-price-stack {
    grid-template-columns: 1fr;
  }

  .shop-order-qty-form {
    grid-template-columns: 1fr;
  }

  .portal-record-actions {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 1220px) {
  .shop-header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
  }

  .shop-brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .shop-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .shop-header-actions {
    margin-left: 0;
  }

  .portal-header .shop-nav {
    order: 10;
    display: none;
    width: 100%;
    flex: 1 0 100%;
    margin: 2px 0 0;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .portal-header .shop-nav.is-open {
    display: flex;
  }

  .portal-header .shop-nav a {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
  }

  .portal-header .shop-nav a::after {
    display: none;
  }

  [data-theme="dark"] .portal-header .shop-nav {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(148, 163, 184, 0.18);
  }
}

@media (max-width: 900px) {
  .shop-shell,
  .shop-header-inner {
    width: min(100% - 18px, 1440px);
  }

  .shop-shell {
    margin-top: 14px;
    margin-bottom: 36px;
    gap: 14px;
  }

  .shop-header-inner {
    padding: 10px 0;
  }

  .brand-logo-wrap-portal {
    max-width: min(52vw, 240px);
  }

  .shop-brand-copy {
    min-width: 0;
  }

  .shop-brand-copy strong,
  .shop-brand-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-user-menu {
    max-width: 100%;
  }

  .portal-user-chip {
    max-width: min(100%, 260px);
  }

  .portal-user-chip-copy {
    min-width: 0;
  }

  .portal-user-chip-copy strong,
  .portal-user-chip-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-hero {
    padding: 22px 20px;
  }

  .catalog-hero .section-head,
  .catalog-hero-side,
  .catalog-hero-actions,
  .catalog-hero-meta {
    align-items: stretch;
    justify-items: stretch;
    justify-content: flex-start;
  }

  .catalog-hero-actions > .ghost-btn,
  .catalog-hero-actions > .primary-btn {
    flex: 1 1 180px;
    justify-content: center;
  }

  .catalog-hero-meta {
    gap: 8px;
  }

  .shop-catalog-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .shop-catalog-sidebar {
    position: static;
    top: auto;
    width: 100%;
    max-width: 100%;
    padding: 18px;
    border-radius: 20px;
  }

  .shop-sidebar-head {
    align-items: center;
  }

  .shop-sidebar-head h2 {
    font-size: 28px;
  }

  .shop-filter-panel {
    gap: 12px;
  }

  .shop-price-slider {
    padding: 14px;
  }

  .shop-price-slider-head,
  .shop-price-slider-values {
    gap: 10px;
  }

  .shop-price-slider-values input,
  .shop-filter-field input,
  .shop-filter-field select,
  .shop-catalog-toolbar-group select {
    min-width: 0;
    font-size: 16px;
  }

  .shop-filter-panel .primary-btn {
    width: 100%;
  }

  .shop-catalog-toolbar {
    display: grid;
    grid-template-columns: auto auto;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
  }

  .shop-catalog-toolbar-summary {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .shop-active-filters {
    gap: 8px;
  }

  .shop-active-filters .category-pill {
    max-width: 100%;
  }

  .shop-active-filters .category-pill,
  .shop-active-filters .ghost-btn {
    min-height: 40px;
    padding-inline: 14px;
  }

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

  .catalog-card {
    border-radius: 20px;
  }

  .catalog-card-image-shell,
  .catalog-card-image {
    min-height: 190px;
    max-height: none;
  }

  .catalog-card-image img {
    max-height: 152px;
  }

  .catalog-card-body {
    padding: 16px;
    gap: 9px;
  }

  .catalog-card-body h3 {
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
  }

  .catalog-card-pricing {
    align-items: flex-start;
  }

  .shop-card-buy-row {
    grid-template-columns: minmax(90px, 0.42fr) minmax(0, 1fr);
  }

  .catalog-list .catalog-card,
  .catalog-list .catalog-card-body,
  .catalog-list .shop-card-buy-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-list .catalog-card-image-shell {
    padding: 0;
  }

  .catalog-list .catalog-card-image {
    min-height: 190px;
    border-radius: 0;
    border: 0;
  }

  .catalog-list .catalog-card-body {
    padding: 16px;
  }

  .catalog-list .catalog-card-pricing,
  .catalog-list .catalog-card-topline,
  .catalog-list .catalog-card-body h3,
  .catalog-list .catalog-card-body > .muted,
  .catalog-list .catalog-card-body > .catalog-meta-row,
  .catalog-list .catalog-card-body > .table-subline,
  .catalog-list .catalog-card-body > form {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    justify-self: stretch;
    text-align: left;
  }

  .catalog-list .catalog-card-pricing strong {
    font-size: 24px;
  }

  .shop-product-page {
    padding: 20px;
  }

  .shop-product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .shop-product-purchase-card {
    position: static;
  }

  .shop-product-stage {
    min-height: 360px;
    padding: 18px;
    border-radius: 22px;
  }

  .shop-product-stage img {
    max-height: 320px;
  }

  .shop-product-copy h1 {
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1.02;
  }
}

@media (max-width: 640px) {
  .shop-shell,
  .shop-header-inner {
    width: min(100% - 12px, 1440px);
  }

  .shop-header-actions {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .shop-header-actions > * {
    flex: 0 0 auto;
  }

  .portal-user-menu {
    margin-left: auto;
  }

  .portal-user-chip {
    max-width: calc(100vw - 86px);
    min-height: 44px;
    padding: 6px 8px;
  }

  .portal-user-avatar {
    width: 32px;
    height: 32px;
  }

  .portal-header .shop-nav {
    padding: 8px;
    border-radius: 16px;
  }

  .portal-header .shop-nav a {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .catalog-hero {
    padding: 18px 16px;
  }

  .catalog-hero h1 {
    font-size: clamp(28px, 11vw, 42px);
    line-height: 1;
  }

  .catalog-hero .lede {
    font-size: 15px;
    line-height: 1.45;
  }

  .shop-catalog-sidebar {
    padding: 16px;
    border-radius: 18px;
  }

  .shop-sidebar-head {
    gap: 10px;
  }

  .shop-sidebar-head .ghost-btn {
    min-height: 40px;
    padding-inline: 16px;
  }

  .shop-catalog-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .shop-catalog-toolbar-group,
  .shop-view-mode-group {
    justify-content: flex-start;
    width: 100%;
  }

  .shop-view-mode-group {
    width: max-content;
    max-width: 100%;
  }

  .shop-active-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-active-filters .category-pill,
  .shop-active-filters .ghost-btn {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .category-pill {
    white-space: normal;
    line-height: 1.2;
  }

  .category-pill-remove {
    flex: 0 0 auto;
  }

  .catalog-grid,
  .catalog-grid.compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-card-image-shell,
  .catalog-card-image {
    min-height: 210px;
  }

  .catalog-card-image img {
    max-height: 170px;
  }

  .shop-card-buy-row {
    grid-template-columns: minmax(96px, 0.36fr) minmax(0, 1fr);
  }

  .shop-card-buy-row .primary-btn {
    min-width: 0;
    padding-inline: 16px;
  }

  .shop-pagination {
    justify-content: center;
  }

  .shop-pagination-pages {
    justify-content: center;
    width: 100%;
  }

  .shop-product-page {
    padding: 16px;
  }

  .shop-product-toolbar {
    justify-content: stretch;
  }

  .shop-product-toolbar > * {
    flex: 1 1 160px;
    justify-content: center;
  }

  .shop-product-stage {
    min-height: 280px;
    padding: 14px;
  }

  .shop-product-stage img {
    max-height: 250px;
  }

  .shop-product-price-primary strong {
    font-size: 34px;
  }

  .shop-product-specs,
  .shop-product-price-meta,
  .shop-buy-box {
    grid-template-columns: minmax(0, 1fr);
  }
}
