:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --surface-3: #f8fbff;
  --text: #162133;
  --muted: #627188;
  --line: #d9e1ec;
  --line-strong: #c7d3e2;
  --primary: #215fe4;
  --primary-strong: #154cc1;
  --primary-soft: #eaf1ff;
  --success: #23a058;
  --warning: #c27a22;
  --danger: #c14444;
  --shadow: 0 18px 48px rgba(16, 32, 61, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(33, 95, 228, 0.08), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.page-shell {
  width: min(1240px, calc(100% - 18px));
  margin: 0 auto;
  padding: 10px 0 16px;
}

.catalog {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 225, 236, 0.92);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 12px;
}

.catalog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  min-width: 0;
}

.store-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 86px;
  height: 42px;
}

.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.account-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.chip-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #effaf3;
  color: #158347;
  border-color: #cdebd7;
}

.user-menu {
  position: relative;
}

.user-trigger {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #4a82f5);
  color: #ffffff;
  font-weight: 800;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  z-index: 40;
}

.user-summary {
  padding: 10px;
  border-radius: 12px;
  background: var(--surface-3);
  font-size: 0.85rem;
  color: var(--muted);
}

.user-summary strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.dropdown-link {
  width: 100%;
  margin-top: 6px;
  padding: 12px 10px;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.dropdown-link:hover {
  background: var(--surface-2);
}

.tab-bar {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(245, 248, 252, 0.96);
  backdrop-filter: blur(12px);
  min-width: 0;
}

.tab-button {
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
}

.tab-label-mobile {
  display: none !important;
}

.tab-button.active {
  background: #ffffff;
  color: var(--primary);
  border-color: rgba(33, 95, 228, 0.14);
  box-shadow: 0 8px 22px rgba(33, 95, 228, 0.08);
}

.tab-panel {
  margin-top: 12px;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.product-card {
  --card-accent: #215fe4;
  --card-accent-2: #8ab0ff;
  --card-accent-soft: rgba(33, 95, 228, 0.18);
  --card-accent-2-soft: rgba(138, 176, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 30%, var(--line));
  border-radius: 14px;
  background:
    linear-gradient(140deg, var(--card-accent-soft), transparent 38%),
    linear-gradient(320deg, var(--card-accent-2-soft), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.78));
  box-shadow: 0 10px 28px rgba(16, 32, 61, 0.06);
  width: 100%;
  text-align: left;
  white-space: normal;
  min-width: 0;
  overflow: hidden;
  animation: cardFlowIn 0.46s ease both;
  animation-delay: calc(var(--card-index, 0) * 55ms);
}

.product-main {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  min-width: 0;
}

.product-card {
  min-height: 112px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-main:focus-visible {
  outline: 3px solid rgba(33, 95, 228, 0.14);
  outline-offset: 2px;
  border-radius: 12px;
}

.product-media {
  position: relative;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 22%, var(--line));
  background:
    linear-gradient(145deg, var(--card-accent-soft), var(--card-accent-2-soft)),
    rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 2px;
  border-radius: 10px;
}

.product-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-art svg {
  width: 36px;
  height: 36px;
  stroke: var(--card-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-tag-row,
.tag-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.accounting-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--pill-bg, #fee2e2);
  color: var(--pill-color, #b91c1c);
  border: 1px solid var(--pill-border, #fecaca);
  font-size: 0.68rem;
  font-weight: 800;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--pill-bg, #eaf1ff);
  color: var(--pill-color, #2563eb);
  border: 1px solid var(--pill-border, #cfe0ff);
  font-size: 0.62rem;
  font-weight: 800;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  margin-top: 6px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff6e7;
  color: #a15c08;
  border: 1px solid #f6d39a;
  font-size: 0.68rem;
  font-weight: 900;
}

.product-card.is-coming-soon {
  filter: saturate(0.9);
}

.product-chip,
.status-chip,
.mini-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.product-chip {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.status-chip {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
}

.status-chip.soon {
  color: var(--warning);
}

.product-body {
  min-width: 0;
  overflow: hidden;
}

.product-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.product-topline > div {
  min-width: 0;
}

.product-category {
  display: none;
}

.product-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  min-width: 0;
}

.product-tagline {
  margin-top: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2b476f;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-summary {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}

.card-action.whatsapp {
  color: #ffffff;
  border-color: transparent;
  background: #20a65a;
}

.card-action.disabled,
.detail-button.disabled {
  color: #7a8798;
  border-color: #d9e1ec;
  background: #eef3f8;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.78;
}

.mini-chip {
  background: var(--surface-2);
  color: #29456c;
}

.product-hint {
  margin-top: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
}

.loading-state,
.empty-state,
.error-state {
  grid-column: 1 / -1;
  padding: 30px 18px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-3);
  text-align: center;
  color: var(--muted);
}

.loading-state {
  position: relative;
  overflow: hidden;
}

.loading-state::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translateX(-100%);
  animation: loadingSweep 1.45s ease-in-out infinite;
}

.spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

@keyframes cardFlowIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loadingSweep {
  to {
    transform: translateX(100%);
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 21, 40, 0.5);
  backdrop-filter: blur(10px);
}

.modal {
  position: relative;
  width: min(100%, 520px);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(217, 225, 236, 0.95);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(10, 21, 40, 0.22);
  padding: 20px;
}

.modal-wide {
  width: min(100%, 920px);
}

.product-modal {
  width: min(100%, 760px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.modal-tab-row,
.dashboard-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.modal-tab,
.dashboard-tab {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--muted);
  font-weight: 800;
}

.modal-tab.active,
.dashboard-tab.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: rgba(33, 95, 228, 0.16);
}

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

.auth-form h2,
.dashboard-head h2,
.form-head h2,
.product-detail-title {
  margin: 0;
  line-height: 1.1;
}

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

.field span {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.field input,
.field select,
.field textarea,
.toolbar-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.toolbar-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(33, 95, 228, 0.08);
}

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

.form-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff2f2;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-head,
.form-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

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

.toolbar {
  margin-bottom: 16px;
}

.toolbar-field {
  display: inline-grid;
  gap: 6px;
  min-width: 220px;
}

.toolbar-field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

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

.dashboard-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-3);
}

.dashboard-card-art {
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(33, 95, 228, 0.12), rgba(35, 160, 88, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.dashboard-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.dashboard-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

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

.dashboard-actions {
  display: grid;
  gap: 8px;
}

.button-quiet,
.button-danger {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

.button-quiet {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

.button-danger {
  border: 1px solid rgba(193, 68, 68, 0.14);
  background: #fff3f3;
  color: var(--danger);
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-3);
}

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

.user-copy strong {
  font-size: 0.98rem;
}

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

.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--primary-soft);
  color: var(--primary);
}

.role-pill.user {
  color: var(--text);
  background: #edf2f8;
}

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

.field-full {
  grid-column: 1 / -1;
}

.asset-status {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.asset-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}

.asset-item strong {
  color: var(--text);
}

.upload-progress {
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-3);
}

.upload-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.upload-progress-meta strong {
  color: var(--primary);
}

.upload-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf7;
}

.upload-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #20a65a);
  transition: width 0.18s ease;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #4a82f5);
}

.button-secondary {
  color: var(--text);
  background: #ffffff;
  border-color: var(--line);
}

.button-block {
  width: 100%;
}

.product-detail-shell {
  display: grid;
  gap: 18px;
}

.product-detail-top {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
}

.product-detail-art {
  height: 140px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--detail-accent-soft, rgba(33, 95, 228, 0.1));
  position: relative;
}

.product-detail-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.product-detail-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.product-detail-icon svg {
  width: 72px;
  height: 72px;
  stroke: var(--detail-accent, var(--primary));
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-detail-kicker {
  display: none;
}

.product-detail-title {
  margin-top: 8px;
  font-size: 2rem;
}

.product-detail-tagline {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #2b476f;
  line-height: 1.45;
}

.product-detail-description {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.product-detail-features {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-3);
}

.product-detail-features h4,
.product-detail-actions h4 {
  margin: 0;
  font-size: 1rem;
}

.product-detail-feature-list {
  display: grid;
  gap: 8px;
}

.product-detail-feature {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.product-detail-feature::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--success);
  flex: 0 0 8px;
}

.product-detail-actions {
  display: grid;
  gap: 10px;
}

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

.detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.detail-button.primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), #4a82f5);
}

.detail-button.whatsapp {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #1d9b56, #2cb969);
}

.detail-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff6ea;
  color: #8c5b18;
  font-size: 0.9rem;
  line-height: 1.55;
}

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

  .dashboard-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .dashboard-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .page-shell {
    width: calc(100% - 10px);
    padding-top: 6px;
  }

  .catalog {
    padding: 8px;
    border-radius: 18px;
  }

  .catalog-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
  }

  .store-logo {
    order: 2;
    width: 58px;
    height: 32px;
    margin-left: auto;
  }

  .account-chip-row {
    order: 1;
    width: auto;
    max-width: calc(100% - 66px);
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    flex: 1 1 auto;
    flex-wrap: nowrap;
  }

  .chip-button {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .tab-bar {
    top: 6px;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
  }

  .tab-button {
    min-width: 0;
    min-height: 42px;
    padding: 6px 2px;
    font-size: 0.68rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tab-label-desktop {
    display: none !important;
  }

  .tab-label-mobile {
    display: inline !important;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-card {
    gap: 8px;
    min-height: 92px;
    padding: 10px;
    border-radius: 14px;
  }

  .product-main {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
  }

  .product-media {
    width: 54px;
    height: 54px;
    border-radius: 12px;
  }

  .product-art svg {
    width: 30px;
    height: 30px;
  }

  .product-chip,
  .status-chip,
  .mini-chip {
    min-height: 22px;
    padding: 0 7px;
    font-size: 0.64rem;
  }

  .product-title {
    font-size: 0.92rem;
  }

  .product-tagline {
    margin-top: 4px;
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-summary {
    display: none;
  }

  .product-chip {
    display: none;
  }

  .product-hint {
    display: none;
  }

  .accounting-badge {
    margin-top: 6px;
    font-size: 0.68rem;
  }

  .card-actions {
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-action {
    min-height: 30px;
    padding: 0 2px;
    border-radius: 8px;
    font-size: 0.58rem;
    letter-spacing: 0;
  }

  .modal {
    width: 100vw;
    max-width: none;
    max-height: 100dvh;
    height: auto;
    border-radius: 18px 18px 0 0;
    padding: 46px 12px 16px;
    overflow-x: hidden;
  }

  .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
  }

  .product-detail-top {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-detail-art {
    height: 104px;
    border-radius: 16px;
  }

  .product-detail-title {
    font-size: 1.32rem;
  }

  .product-detail-tagline {
    font-size: 0.86rem;
  }

  .product-detail-description {
    margin-top: 8px;
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .product-detail-features {
    padding: 12px;
    border-radius: 14px;
  }

  .product-detail-feature {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .product-detail-action-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detail-button {
    min-height: 42px;
    border-radius: 12px;
    font-size: 0.82rem;
  }

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

  .field-full {
    grid-column: auto;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .toolbar-field {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .loading-state::after,
  .spinner {
    animation: none;
  }
}
