:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --line: #d9dee8;
  --paper: #ffffff;
  --surface: #f5f7fb;
  --accent: #e11d48;
  --accent-dark: #be123c;
  --blue: #2563eb;
  --green: #14804a;
  --amber: #b45309;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(180px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.08);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-actions a,
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.search input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}

.cart-button,
.checkout-button,
.product-footer button,
.ghost-button,
.category-nav button {
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.cart-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.cart-button span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.82rem;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 32px;
  align-items: end;
  padding: 34px 0 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.service-strip div {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.service-strip div:last-child {
  border-right: 0;
}

.service-strip dt {
  margin-bottom: 4px;
  font-weight: 900;
}

.service-strip dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 18px;
}

.category-nav button {
  flex: 0 0 auto;
  padding: 0 14px;
  background: white;
  border-color: var(--line);
  color: var(--ink);
  font-weight: 760;
}

.category-nav button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 18px;
}

.toolbar p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.toolbar select {
  min-height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 48px;
}

.product-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(225, 29, 72, 0.14)),
    #eef2f7;
}

.product-visual-button,
.product-photo-button {
  display: block;
  width: 100%;
  min-height: 190px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-visual-button .product-visual {
  min-height: 190px;
}

.product-visual::before {
  content: "";
  position: absolute;
  width: 58%;
  height: 44%;
  border: 12px solid #172033;
  border-radius: 8px 8px 4px 4px;
  background: #dbeafe;
}

.product-visual::after {
  content: "";
  position: absolute;
  bottom: 36px;
  width: 64%;
  height: 12px;
  border-radius: 0 0 8px 8px;
  background: #172033;
}

.product-visual span {
  position: relative;
  z-index: 1;
  color: #172033;
  font-weight: 950;
  font-size: 2rem;
}

.product-photo {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: #f4f7fb;
}

.product-photo-button img {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 36px;
  min-height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.68);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-50%);
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.product-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  max-width: calc(100% - 24px);
  gap: 7px;
  padding: 6px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.product-dots button {
  width: 9px;
  min-height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #98a2b3;
}

.product-dots button.active {
  width: 22px;
  background: var(--accent);
}

.product-visual.desktop::before {
  width: 42%;
  height: 58%;
  border-radius: 8px;
}

.product-visual.desktop::after {
  width: 22%;
  height: 42%;
  right: 18%;
  bottom: 42px;
  border-radius: 8px;
}

.product-visual.drive::before {
  width: 45%;
  height: 58%;
  border-width: 10px;
  border-radius: 14px;
}

.product-visual.drive::after {
  width: 28%;
  height: 8px;
  bottom: 54px;
}

.product-visual.keyboard::before {
  width: 70%;
  height: 34%;
  border-width: 10px;
  border-radius: 10px;
}

.product-visual.keyboard::after {
  width: 54%;
  height: 10px;
  bottom: 62px;
}

.product-visual.gpu::before {
  width: 66%;
  height: 42%;
  border-radius: 12px;
}

.product-visual.gpu::after {
  width: 34%;
  height: 34%;
  bottom: 60px;
  border-radius: 999px;
  background: #dbeafe;
  border: 10px solid #172033;
}

.product-content {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 16px;
}

.product-topline,
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-label,
.stock,
.badge {
  font-size: 0.78rem;
  font-weight: 820;
}

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

.stock {
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.in-stock {
  color: var(--green);
  background: #e9f8ef;
}

.low-stock {
  color: var(--amber);
  background: #fff3d6;
}

.sold-out {
  color: #7f1d1d;
  background: #fee2e2;
}

.product-card h2 {
  margin: 14px 0 8px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.product-card h2 button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.product-card h2 button:hover {
  color: var(--accent);
}

.badge {
  margin: 0;
  color: var(--accent);
}

.product-card ul {
  display: grid;
  gap: 7px;
  margin: 14px 0 20px;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 0.93rem;
}

.product-card li::before {
  content: "+";
  margin-right: 7px;
  color: var(--blue);
  font-weight: 900;
}

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

.price strong,
.price span {
  display: block;
}

.price strong {
  font-size: 1.26rem;
}

.price span {
  color: var(--muted);
  text-decoration: line-through;
}

.product-footer button {
  min-width: 104px;
  padding: 0 14px;
  background: var(--accent);
  color: white;
  font-weight: 850;
}

.product-footer button:hover:not(:disabled),
.checkout-button:hover:not(:disabled) {
  background: var(--accent-dark);
}

.product-footer button:disabled {
  background: #d0d5dd;
  color: #475467;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 0;
  color: var(--muted);
  text-align: center;
}

.empty-state h2 {
  color: var(--ink);
}

.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.cart-panel.open {
  pointer-events: auto;
}

.product-detail {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.product-detail.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0);
  transition: background 180ms ease;
}

.cart-panel.open .cart-overlay,
.product-detail.open .detail-overlay {
  background: rgba(17, 24, 39, 0.44);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0);
  transition: background 180ms ease;
}

.detail-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: min(88vh, 860px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.24);
  transform: translateY(10px) scale(0.98);
  transition: transform 180ms ease;
}

.product-detail.open .detail-dialog {
  transform: translateY(0) scale(1);
}

.detail-close {
  position: sticky;
  top: 12px;
  z-index: 3;
  float: right;
  min-height: 38px;
  margin: 12px 12px 0 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 850;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  padding: 22px;
}

.detail-media {
  display: grid;
  gap: 12px;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f7fb;
  object-fit: contain;
}

.detail-fallback .product-visual {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.detail-thumbs button {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: #f4f7fb;
}

.detail-thumbs button.active {
  border-color: var(--accent);
}

.detail-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 14px;
}

.detail-info h2 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.12;
}

.detail-price strong,
.detail-price span {
  display: block;
}

.detail-price strong {
  font-size: 1.7rem;
}

.detail-price span {
  color: var(--muted);
  text-decoration: line-through;
}

.detail-specs {
  display: grid;
  gap: 9px;
  margin: 8px 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.detail-specs li::before {
  content: "+";
  margin-right: 7px;
  color: var(--blue);
  font-weight: 900;
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100%);
  height: 100%;
  background: white;
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

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

.cart-drawer header,
.cart-drawer footer {
  padding: 18px;
}

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

.cart-drawer h2 {
  margin: 0;
}

.ghost-button {
  padding: 0 12px;
  background: white;
  border-color: var(--line);
  color: var(--ink);
  font-weight: 750;
}

.cart-items {
  overflow: auto;
  padding: 8px 18px;
}

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

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
}

.quantity {
  display: grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.quantity button {
  width: 34px;
  height: 34px;
  border: 0;
  background: white;
  font-weight: 900;
}

.quantity span {
  display: grid;
  place-items: center;
  height: 34px;
  margin: 0;
  color: var(--ink);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cart-drawer footer {
  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.checkout-button {
  width: 100%;
  padding: 0 16px;
  background: var(--accent);
  color: white;
  font-weight: 900;
}

.checkout-button:disabled {
  background: #d0d5dd;
  color: #475467;
}

.checkout-button.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  margin-top: 16px;
  text-decoration: none;
}

.cart-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.workspace-page {
  padding: 34px 0 56px;
}

.workspace-intro {
  max-width: 760px;
  margin-bottom: 22px;
}

.workspace-intro h1 {
  margin-bottom: 12px;
}

.workspace-intro p {
  color: var(--muted);
  line-height: 1.65;
}

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

.admin-create-tools {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-panel[hidden] {
  display: none;
}

.modal-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.48);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

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

.modal-dialog h2 {
  margin: 0;
  font-size: 1.12rem;
}

.modal-form {
  border: 0;
  border-radius: 0;
}

.secondary-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.collapsible-form {
  width: min(560px, 100%);
}

.panel-form,
.status-panel,
.manager-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.panel-form,
.status-panel {
  padding: 18px;
}

.panel-form h2,
.status-panel h2,
.manager-section h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.panel-form {
  display: grid;
  gap: 12px;
  align-content: start;
}

.single-panel {
  width: min(560px, 100%);
}

.panel-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}

.form-help {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.panel-form input,
.panel-form select,
.panel-form textarea,
.manager-item input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}

.panel-form textarea {
  min-height: 96px;
  padding-top: 10px;
  resize: vertical;
}

.panel-form button,
.status-panel button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  font-weight: 900;
}

.admin-orders,
.orders-panel {
  padding: 18px;
}

.user-detail {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

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

.detail-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.detail-item span,
.detail-item strong {
  display: block;
}

.detail-item span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.detail-item strong {
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.orders-panel {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.orders-panel h3,
.admin-orders h3 {
  margin: 0 0 12px;
}

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

.order-heading p {
  margin: 0;
  color: var(--muted);
}

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

.inline-check {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  gap: 8px !important;
  align-items: center;
  color: var(--ink) !important;
}

.inline-check input {
  width: 18px;
  min-height: 18px;
}

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

.image-import-field {
  display: grid;
  gap: 10px;
}

.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.field-heading button,
.image-input-row button {
  width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
}

.field-heading button {
  background: var(--accent);
  color: white;
}

.image-input-list {
  display: grid;
  gap: 8px;
}

.image-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.image-input-row-single {
  grid-template-columns: minmax(0, 1fr);
}

.image-input-row input[type="file"] {
  width: 100%;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.email-warning,
.email-ok {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.email-warning {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: #fff7ed;
}

.email-warning p,
.email-ok {
  color: var(--muted);
}

.email-warning p {
  margin: 0;
}

.email-warning button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  font-weight: 900;
}

.email-ok {
  background: #ecfdf3;
}

.form-error {
  margin: 0;
  color: #b42318;
  font-weight: 800;
}

.manager-section {
  margin-top: 18px;
  overflow: hidden;
}

.manager-section h2 {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.manager-list {
  display: grid;
}

.manager-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.manager-item:last-child {
  border-bottom: 0;
}

.manager-item strong,
.manager-item span {
  display: block;
}

.manager-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-manager {
  grid-template-columns: minmax(0, 1fr) 110px auto;
}

.product-manager label,
.user-manager label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.user-manager {
  grid-template-columns: minmax(0, 1fr) 130px auto;
}

.user-manager button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 850;
}

.user-manager select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

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

.order-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.order-card-header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.order-card-header span {
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.order-card strong,
.order-card span {
  display: block;
}

.order-card span {
  margin-top: 4px;
  color: var(--muted);
}

.order-card .order-card-header span {
  margin: 0;
  color: var(--blue);
}

.order-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.order-status {
  display: grid;
  max-width: 220px;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.order-status select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.user-manager select:disabled {
  background: #eef2f7;
  color: var(--muted);
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .site-header,
  .intro {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
  }

  .cart-button {
    justify-self: stretch;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions a {
    flex: 1;
  }

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

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

  .detail-info {
    padding-top: 0;
  }

  .workspace-grid,
  .form-row,
  .product-manager,
  .user-manager {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .intro {
    padding-top: 24px;
  }

  .service-strip,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .service-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-strip div:last-child {
    border-bottom: 0;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar select {
    width: 100%;
  }

  .product-detail {
    padding: 12px;
  }

  .detail-dialog {
    max-height: 92vh;
  }

  .detail-layout {
    gap: 16px;
    padding: 14px;
  }

  .detail-info h2 {
    font-size: 1.45rem;
  }

  .product-card {
    grid-template-rows: 170px 1fr;
  }

  .product-photo,
  .product-photo-button,
  .product-visual-button,
  .product-visual-button .product-visual {
    min-height: 170px;
  }

  .product-photo-button img {
    height: 170px;
  }

  .product-content {
    min-height: auto;
  }
}
