:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-soft: #edf4f4;
  --line: #d9e2e5;
  --text: #101820;
  --muted: #64727c;
  --teal: #007b7b;
  --teal-dark: #045c60;
  --ink: #112731;
  --amber: #d99a00;
  --green: #16803a;
  --red: #c73535;
  --shadow: 0 10px 28px rgba(20, 38, 45, 0.05);
  --font: "Google Sans", "Product Sans", Roboto, Arial, sans-serif;
  font-family: var(--font);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button,
input,
select {
  font-family: var(--font);
}

button {
  cursor: pointer;
}

button::before,
button::after,
button .plus,
button .icon-plus,
button .lucide-plus,
button [class*="plus" i],
button [data-icon="plus"] {
  content: none !important;
  display: none !important;
}

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

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: 220px minmax(280px, 720px) auto;
  justify-content: start;
  min-height: 78px;
  padding: 0 38px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.erp-mode .search,
.erp-mode .top-actions {
  display: none;
}

.erp-mode .topbar {
  grid-template-columns: 220px 1fr;
}

.brand {
  color: var(--text);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand span {
  color: var(--teal-dark);
}

.search {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  height: 44px;
  max-width: 720px;
  overflow: hidden;
  padding: 3px;
  width: 100%;
}

.search input {
  border: 0;
  flex: 1;
  height: 100%;
  min-width: 0;
  outline: 0;
  padding: 0 15px;
  width: 0;
}

.top-actions button,
.section-heading button,
.panel-heading button,
.cart-header button,
.remove-cart,
.order-filters input,
.order-filters select,
.order-status {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  min-height: 38px;
  padding: 0 14px;
}

.search button {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  flex: 0 0 auto;
  font-weight: 800;
  min-height: 36px;
  padding: 0 16px;
}

.search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 123, 123, 0.08);
}

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

.cart-button strong {
  background: var(--teal);
  border-radius: 999px;
  color: white;
  display: inline-grid;
  margin-left: 6px;
  min-width: 22px;
  place-items: center;
}

.cart-button[aria-expanded="true"] {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  min-height: calc(100vh - 78px);
  padding: 24px 18px;
}

.sidebar-title,
.preview-title {
  border-bottom: 3px solid var(--teal);
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 800;
}

.sidebar-title {
  margin: 0 0 20px;
  padding: 0 12px 16px;
}

.category {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #24323a;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.category small {
  color: var(--muted);
  font-size: 12px;
}

.category.active,
.category:hover {
  background: var(--surface-soft);
  color: var(--teal-dark);
}

.service-list {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 22px;
}

.service-list p {
  margin: 0 0 18px;
}

.service-list span,
.payment-strip span,
.metric-row span,
.inventory-grid span,
.payment-admin span,
.bottom-service-bar small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.shop-surface {
  min-width: 0;
  padding: 0 24px 42px;
}

.section-tabs {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 22px;
  margin: 0 -24px 24px;
  padding: 0 24px;
}

.tab,
.mini-nav,
.more-menu summary {
  align-items: center;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  min-height: 54px;
  padding: 0 6px;
}

.tab.active {
  color: var(--teal-dark);
}

.more-menu {
  position: relative;
}

.more-menu summary {
  cursor: pointer;
  list-style: none;
}

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

.more-menu summary::after {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  height: 6px;
  margin-left: 8px;
  transform: rotate(45deg) translateY(-2px);
  width: 6px;
}

.more-menu-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(20, 38, 45, 0.12);
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 8px;
  position: absolute;
  top: 48px;
  z-index: 10;
}

.more-menu-panel button,
.more-menu-panel a {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  display: flex;
  align-items: center;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  min-height: 34px;
  padding: 0 10px;
  text-align: left;
  text-decoration: none;
}

.more-menu-panel button:hover,
.more-menu-panel a:hover {
  background: var(--surface-soft);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

#shop-view.view.active {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
}

#shop-home {
  min-width: 0;
}

.hero {
  align-items: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 123, 123, 0.14), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #eef6f6 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  min-height: 270px;
  padding: 38px 46px;
  width: 100%;
}

.hero > * {
  min-width: 0;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 12px;
  max-width: 440px;
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 26px;
}

.primary-action,
.add-cart {
  background: var(--teal);
  border: 0;
  border-radius: 7px;
  color: white;
  font-weight: 800;
  min-height: 42px;
  padding: 0 18px;
}

.primary-action:hover,
.add-cart:hover {
  background: var(--teal-dark);
}

.secondary-action {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--teal-dark);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  text-decoration: none;
}

.hero-products {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: center;
  min-height: 190px;
  position: relative;
}

.device,
.product-shape {
  background: linear-gradient(145deg, #172027, #eef4f6);
  box-shadow: 0 18px 35px rgba(13, 32, 38, 0.16);
  position: relative;
}

.laptop {
  border-radius: 8px 8px 4px 4px;
  height: 96px;
  width: 155px;
}

.laptop span {
  background: linear-gradient(145deg, #1f3440, #61a5a4);
  border: 6px solid #172027;
  border-radius: 6px;
  inset: 8px 10px 18px;
  position: absolute;
}

.headphones {
  border-radius: 60px 60px 34px 34px;
  height: 120px;
  width: 94px;
}

.headphones::before,
.headphones::after {
  background: #132733;
  border-radius: 18px;
  bottom: 12px;
  content: "";
  height: 46px;
  position: absolute;
  width: 22px;
}

.headphones::before {
  left: -4px;
}

.headphones::after {
  right: -4px;
}

.router {
  border-radius: 22px;
  height: 72px;
  width: 118px;
}

.router::before,
.router::after {
  background: var(--ink);
  border-radius: 999px;
  content: "";
  height: 56px;
  position: absolute;
  top: -38px;
  width: 4px;
}

.router::before {
  left: 26px;
  transform: rotate(-18deg);
}

.router::after {
  right: 26px;
  transform: rotate(18deg);
}

.hero-badge {
  align-items: center;
  background: #ffd978;
  border-radius: 999px;
  color: #12202a;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  height: 76px;
  justify-content: center;
  line-height: 1.15;
  position: absolute;
  right: 6px;
  text-align: center;
  top: 12px;
  width: 76px;
}

.trust-row,
.payment-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
  overflow: hidden;
}

.payment-strip {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.eyebrow {
  color: var(--teal-dark);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.imprint-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 22px;
  margin-top: 24px;
  padding: 28px;
}

.imprint-panel h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.imprint-panel p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

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

.imprint-grid article {
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.imprint-grid span,
.imprint-grid a {
  color: var(--muted);
  line-height: 1.35;
  text-decoration: none;
}

.imprint-grid a:hover,
.bottom-service-bar a:hover,
.site-footer a:hover {
  color: var(--teal-dark);
}

.bottom-service-bar a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.trust-row span,
.payment-strip article {
  background: var(--surface);
  min-height: 72px;
  padding: 20px 24px;
}

.trust-row strong,
.trust-row small,
.bottom-service-bar strong,
.bottom-service-bar small {
  display: block;
}

.trust-row span {
  color: #26363e;
  font-weight: 700;
}

.trust-row small,
.bottom-service-bar small {
  font-size: 12px;
  font-weight: 500;
}

.section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 30px 0 16px;
}

.section-heading h1,
.section-heading h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

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

.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
}

.empty-state.compact {
  box-shadow: none;
  padding: 18px;
}

.product-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 18px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.product-card:hover {
  border-color: rgba(0, 123, 123, 0.38);
  box-shadow: 0 18px 42px rgba(13, 32, 38, 0.1);
  transform: translateY(-2px);
}

.product-image {
  align-items: center;
  background: #edf2f4;
  border-radius: 7px;
  display: flex;
  height: 140px;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
}

.product-shape.notebook {
  border-radius: 8px;
  height: 78px;
  width: 122px;
}

.product-shape.notebook::before {
  background: linear-gradient(145deg, #213640, #78b8b5);
  border: 5px solid #172027;
  border-radius: 6px;
  content: "";
  inset: 8px 10px 16px;
  position: absolute;
}

.product-shape.mouse {
  border-radius: 48%;
  height: 96px;
  width: 74px;
}

.product-shape.mouse::before {
  background: rgba(255, 255, 255, 0.5);
  content: "";
  height: 32px;
  left: 50%;
  position: absolute;
  top: 10px;
  transform: translateX(-50%);
  width: 1px;
}

.product-shape.gpu {
  border-radius: 6px;
  height: 76px;
  width: 136px;
}

.product-shape.gpu::before,
.product-shape.gpu::after {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  content: "";
  height: 42px;
  position: absolute;
  top: 17px;
  width: 42px;
}

.product-shape.gpu::before {
  left: 18px;
}

.product-shape.gpu::after {
  right: 18px;
}

.product-shape.ssd {
  border-radius: 5px;
  height: 62px;
  width: 126px;
}

.product-shape.ssd::before {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  content: "";
  height: 18px;
  left: 16px;
  position: absolute;
  top: 14px;
  width: 42px;
}

.stock {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.stock.low,
.rating {
  color: var(--amber);
}

.product-card h3 {
  font-size: 17px;
  line-height: 1.25;
  margin: 10px 0 6px;
}

.product-card p {
  color: var(--muted);
  line-height: 1.4;
  margin: 0 0 12px;
}

.rating {
  margin-top: auto;
}

.price {
  display: block;
  font-size: 24px;
  font-weight: 850;
  margin: 12px 0;
}

.secondary-action {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--teal-dark);
  display: grid;
  font-weight: 800;
  margin-bottom: 10px;
  min-height: 38px;
  place-items: center;
  text-decoration: none;
}

.add-cart {
  width: 100%;
}

.backend-preview {
  border-left: 1px solid var(--line);
  min-width: 0;
  padding-left: 72px;
  position: relative;
}

.backend-preview[hidden] {
  display: none;
}

.preview-title {
  margin-bottom: 18px;
  min-height: 56px;
  padding-top: 16px;
}

.tool-rail {
  align-items: center;
  background: #10222c;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  left: 0;
  padding-top: 24px;
  position: absolute;
  top: 58px;
  width: 42px;
}

.tool-rail span {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 5px;
  height: 16px;
  width: 16px;
}

.tool-rail span:nth-child(4) {
  background: var(--teal);
  border-color: var(--teal);
}

.panel {
  padding: 18px;
}

.backend-preview .panel {
  margin-bottom: 14px;
}

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

.panel-heading h2 {
  font-size: 19px;
  margin: 0;
}

.status,
.badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.status.good,
.badge.card,
.badge.paid {
  background: #e7f7ed;
  color: var(--green);
}

.badge.invoice {
  background: #e6f1ff;
  color: #27639b;
}

.badge.prepay {
  background: #f0e9ff;
  color: #6950a8;
}

.badge.open {
  background: #fff4d8;
  color: #8a6300;
}

.badge.processing {
  background: #eaf1ff;
  color: #315f9f;
}

.metric-row,
.inventory-grid,
.payment-admin {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.backend-preview .metric-row,
.backend-preview .payment-admin {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-row div,
.inventory-grid div,
.payment-admin div {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
}

table {
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 18px;
  width: 100%;
}

.backend-preview table {
  font-size: 12px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 8px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.backend-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 1fr;
}

.wide,
.sync-panel {
  grid-column: 1 / -1;
}

.product-detail[hidden],
#shop-home[hidden] {
  display: none;
}

.product-detail {
  grid-column: 1 / -1;
}

.detail-layout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  padding: 48px;
}

.detail-gallery {
  align-items: center;
  background: #edf2f4;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 360px;
}

.detail-gallery .product-shape {
  transform: scale(1.45);
}

.detail-info {
  align-self: center;
}

.sku {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.detail-info h1 {
  font-size: 48px;
  line-height: 1.12;
  margin: 0 0 14px;
}

.detail-info p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 18px;
}

.detail-price {
  display: block;
  font-size: 34px;
  font-weight: 700;
  margin: 18px 0;
}

.detail-actions,
.detail-panels {
  display: grid;
  gap: 18px;
}

.detail-actions {
  grid-template-columns: minmax(160px, 220px) minmax(160px, 220px);
}

.detail-actions .secondary-action {
  margin: 0;
}

.detail-panels {
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.back-link {
  background: transparent;
  border: 0;
  color: var(--teal-dark);
  font-weight: 800;
  margin: 6px 0 18px;
  padding: 0;
}

.bottom-service-bar {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 18px -24px -42px;
  min-height: 70px;
  padding: 12px 34px;
}

.bottom-service-bar[hidden] {
  display: none;
}

.bottom-service-bar strong {
  display: block;
  font-size: 14px;
}

.site-footer {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--text);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 1fr) auto minmax(70px, auto);
  margin: 18px -24px -42px;
  min-height: 36px;
  padding: 0 34px;
}

.site-footer p {
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  margin: 0;
}

.site-footer nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

.site-footer strong {
  font-size: inherit;
  letter-spacing: 0;
}

.site-footer a,
.site-footer span {
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
}

.site-footer nav a:not(:last-of-type)::after {
  content: "|";
  display: inline-block;
  margin: 0 3px;
}

.site-footer nav a:last-of-type::after {
  content: "";
  display: inline-block;
  margin: 0 8px 0 3px;
}

.language-switch {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  white-space: nowrap;
}

.language-switch a,
.language-switch strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1;
}

.login-page {
  align-items: center;
  display: grid;
  min-height: calc(100vh - 78px);
  padding: 32px;
}

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

.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 430px;
  padding: 30px;
  width: 100%;
}

.login-card .brand {
  font-size: 28px;
}

.login-card h1 {
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 8px;
}

.login-card p {
  color: var(--muted);
  margin: 0;
}

.login-card label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.login-card input {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font-size: 16px;
  min-height: 44px;
  padding: 0 12px;
}

.login-message {
  min-height: 20px;
}

.cart-backdrop {
  background: rgba(10, 20, 26, 0.34);
  inset: 0;
  position: fixed;
  z-index: 19;
}

.cart-drawer {
  background: var(--surface);
  border-left: 1px solid var(--line);
  bottom: 0;
  box-shadow: -24px 0 60px rgba(13, 32, 38, 0.18);
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: min(420px, 100vw);
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 0.22s ease;
  width: 420px;
  z-index: 20;
}

.cart-drawer.open {
  transform: translateX(0);
}

.account-drawer {
  background: var(--surface);
  border-left: 1px solid var(--line);
  bottom: 0;
  box-shadow: -24px 0 60px rgba(13, 32, 38, 0.18);
  display: grid;
  grid-template-rows: auto 1fr;
  max-width: min(440px, 100vw);
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 0.22s ease;
  width: 440px;
  z-index: 20;
}

.account-drawer.open {
  transform: translateX(0);
}

.account-panel {
  align-content: start;
  display: grid;
  gap: 16px;
  overflow: auto;
  padding: 18px 0;
}

.account-tabs {
  background: var(--surface-soft);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
}

.account-tabs button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
  min-height: 36px;
}

.account-tabs button.active {
  background: var(--surface);
  color: var(--teal-dark);
}

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

.account-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.account-form input {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font-size: 16px;
  min-height: 42px;
  padding: 0 12px;
}

.account-welcome {
  font-size: 18px;
  margin: 0;
}

.cart-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
}

.cart-header h2 {
  font-size: 24px;
  margin: 0;
}

.cart-items {
  align-content: start;
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 18px 0;
}

.cart-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  padding: 14px;
}

.cart-line span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 5px;
}

.remove-cart {
  align-self: center;
  color: var(--teal-dark);
  min-height: 34px;
}

.cart-summary {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

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

.cart-summary strong {
  font-size: 28px;
}

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

.payment-options {
  display: grid;
  gap: 8px;
}

.payment-option {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  padding: 12px;
}

.payment-option.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 123, 123, 0.08);
}

.payment-option.setup {
  cursor: not-allowed;
  opacity: 0.62;
}

.payment-option input {
  margin-top: 3px;
}

.payment-option small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.erp-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}

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

.erp-sidebar {
  background: #10222c;
  color: white;
  padding: 28px 20px;
}

.erp-brand {
  color: white;
  display: block;
  font-size: 28px;
  margin-bottom: 28px;
}

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

.erp-sidebar nav a {
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  padding: 12px 14px;
  text-decoration: none;
}

.erp-sidebar nav a.active,
.erp-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.erp-workspace {
  min-width: 0;
  padding: 28px;
}

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

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

.erp-header h1 {
  font-size: 34px;
  line-height: 1.12;
  margin: 0;
}

.erp-header p,
.order-toolbar p {
  color: var(--muted);
  margin: 6px 0 0;
}

.erp-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.erp-metrics article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.erp-metrics span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.erp-metrics strong {
  font-size: 28px;
}

.order-manager {
  margin-bottom: 18px;
}

.order-toolbar {
  align-items: end;
}

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

.order-filters input {
  min-width: 260px;
}

.order-status {
  min-width: 142px;
}

.table-scroll {
  overflow-x: auto;
}

.erp-support {
  grid-template-columns: 1.3fr 0.7fr;
}

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

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

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

@media (max-width: 1280px) {
  #shop-view.view.active,
  .hero,
  .detail-layout,
  .detail-panels,
  .backend-grid {
    grid-template-columns: 1fr;
  }

  .backend-preview {
    border-left: 0;
    padding-left: 0;
  }

  .tool-rail {
    display: none;
  }
}

@media (max-width: 1120px) {
  .topbar,
  .workspace,
  .erp-page {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 18px;
  }

  .search {
    max-width: none;
    width: 100%;
  }

  .sidebar {
    border-right: 0;
    min-height: auto;
  }

  .erp-sidebar {
    display: none;
  }

  .erp-metrics,
  .erp-support,
  .imprint-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 10px 18px;
    text-align: center;
  }

  .language-switch {
    justify-content: center;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }
}

@media (max-width: 680px) {
  .shop-surface {
    padding: 0 16px 28px;
  }

  .section-tabs {
    margin: 0 -16px 18px;
    padding: 0 16px;
  }

  .search button,
  .mini-nav,
  .more-menu,
  .bottom-service-bar,
  .hero-products {
    display: none;
  }

  .hero,
  .detail-layout {
    padding: 24px;
  }

  .hero h1,
  .detail-info h1 {
    font-size: 28px;
  }

  .cart-drawer {
    width: 100vw;
  }

  .account-drawer {
    width: 100vw;
  }

  .product-grid,
  .trust-row,
  .payment-strip,
  .metric-row,
  .inventory-grid,
  .erp-metrics,
  .erp-support,
  .payment-admin,
  .imprint-grid,
  .backend-preview .metric-row,
  .backend-preview .payment-admin,
  .detail-actions {
    grid-template-columns: 1fr;
  }
}
