.product-workspace {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}

.product-main-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.product-edit-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.product-section {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.inline-upload-card,
.inline-measurement-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.section-anchor-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

:root {
  color-scheme: light;
  --bg: #f7f7f9;
  --card: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-contrast: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #d97706;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, #eef2ff 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #ecfeff 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1100px;
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

header h1 {
  font-size: 24px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

header p {
  color: var(--muted);
  margin-bottom: 12px;
}

/* Buttons */
a.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease, border-color 0.1s ease;
}

a.button:hover,
button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

a.button.secondary,
button.secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}
a.button.secondary:hover,
button.secondary:hover {
  background: var(--bg);
  border-color: var(--border-strong);
  color: var(--text);
}

a.button.ghost,
button.ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding-left: 10px;
  padding-right: 10px;
}
a.button.ghost:hover,
button.ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: transparent;
}

a.button.cta,
button.cta {
  padding: 13px 18px;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

a.button.block,
button.block {
  width: 100%;
}

.danger {
  background: var(--danger);
  border-color: var(--danger);
}
.danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  overflow-x: auto;
}
.tab-link {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  background: #fff;
  white-space: nowrap;
}
.tab-link--active {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

/* Contract summary */
.contract-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.summary-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.summary-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.summary-row--stacked {
  flex-direction: column;
  align-items: flex-start;
}
.summary-label {
  font-weight: 600;
  color: var(--muted);
}
.summary-value {
  font-size: 22px;
  font-weight: 700;
}
.summary-count {
  font-size: 26px;
  font-weight: 800;
}
.species-breakdown .summary-label,
.product-type-breakdown .summary-label {
  color: var(--text);
}
.summary-species-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.summary-species-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}
.species-name {
  font-weight: 600;
}
.species-botanical {
  color: var(--muted);
  margin-left: 4px;
  font-weight: 400;
  font-size: 13px;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

/* Alerts */
.alert {
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.alert-error {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #b91c1c;
}

/* Removed items */
.removed-items {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  background: #fff;
}
.removed-items summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
}
.removed-items__summary {
  list-style: none;
}
.removed-items[open] summary {
  border-bottom: 1px solid var(--border);
}
.removed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px 14px;
}
.removed-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #f9fafb;
}
.removed-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.removed-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.removed-title {
  font-weight: 700;
  word-break: break-word;
}
.removed-subtitle {
  font-size: 14px;
}
.removed-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .removed-row {
    grid-template-columns: 1fr;
  }
  .removed-actions {
    justify-content: flex-start;
  }
  .removed-thumb {
    width: 56px;
    height: 56px;
  }
}

/* Forms */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

label {
  font-weight: 600;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

/* Sections / cards */
.section {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.section h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.section p {
  color: var(--muted);
  margin-bottom: 10px;
}

.section--primary {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 60%);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.section-head__title h2 {
  font-size: 18px;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

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

.section-head__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Legacy aliases */
.contracts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.supplier-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--bg);
}

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

/* Generic data card */
.contract-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: #fff;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.contract-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.contract-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.contract-card__subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

/* Product cards */
.product-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: stretch;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.product-card__media {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card__thumb {
  width: 100%;
}
.product-card__media-date {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.product-card__media img,
.photo-placeholder {
  max-height: 260px;
}

.small-text {
  font-size: 12px;
}

.processing-section {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.processing-form.card {
  padding: 14px;
}

.processing-task-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.processing-task-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.processing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.task-type,
.task-status,
.visibility-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #f1f5f9;
  color: var(--text);
}

.task-status {
  background: #e0f2fe;
}

.visibility-badge {
  background: #ede9fe;
}

.processing-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.processing-card {
  margin-top: 12px;
}

.processing-task-card--full {
  padding: 16px;
}

.task-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-history-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.processing-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.processing-media-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.processing-media-group__title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

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

.processing-media-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
}

.processing-media-preview img,
.processing-media-preview video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.processing-media-preview video {
  background: #000;
}

.product-card__activity {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.product-card--full {
  grid-template-columns: minmax(180px, 320px) 1fr;
  gap: 18px;
  align-items: flex-start;
}

.product-card--full .product-card__media img,
.product-card--full .photo-placeholder {
  aspect-ratio: 4/3;
  min-height: 0;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: #f8fafc;
  font-weight: 600;
}

/* Meta strip */
.contract-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.contract-meta span {
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 8px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Stat grid (product specs) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.stat-grid__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-grid__label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-grid__value {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}

.badge.status-active { background: #dcfce7; color: #166534; }
.badge.status-inactive { background: #f1f5f9; color: #475569; }
.badge.status-blocked { background: #fee2e2; color: #991b1b; }
.badge.status-potential { background: #fff7ed; color: #9a3412; }
.badge.status-archived { background: #e5e7eb; color: #374151; }
.badge.status-draft { background: #fef3c7; color: #92400e; }
.badge.status-partially_completed { background: #fef9c3; color: #854d0e; }
.badge.status-completed { background: #dcfce7; color: #166534; }
.badge.status-cancelled { background: #fee2e2; color: #991b1b; }
.badge.badge-incomplete { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

.badge.type-own_company { background: #dcfce7; color: #166534; }
.badge.type-supplier { background: #e0f2fe; color: #075985; }
.badge.type-customer { background: #ede9fe; color: #5b21b6; }
.badge.type-logistics { background: #fef9c3; color: #92400e; }
.badge.type-agent { background: #f3e8ff; color: #6b21a8; }
.badge.type-other { background: #f1f5f9; color: #475569; }

.badge,
.pill,
.tag {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tag {
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: #e0f2fe;
  color: #075985;
  font-weight: 700;
  font-size: 12px;
}

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

.alert {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
  font-size: 14px;
}

/* Empty state */
.empty-state {
  padding: 24px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: #fafbff;
}

.empty-state__title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.empty-state__hint {
  font-size: 13px;
}

/* Action rows */
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  align-items: center;
}

.actions-row > form {
  display: inline-flex;
  margin: 0;
}

.actions-row--between { justify-content: space-between; }
.actions-row--right { justify-content: flex-end; }
.actions-row--end { margin-top: 12px; }

/* Page hero (used on detail screens) */
.page-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 4px;
}

.page-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.page-hero h1 {
  font-size: 24px;
  letter-spacing: -0.01em;
}

.page-hero__sub {
  color: var(--muted);
  font-size: 14px;
}

.page-hero__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.page-hero__quickbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* QR link box */
.qr-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  background: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.qr-link a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

/* Photo upload */
.upload-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.upload-dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  background: #fafbff;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-dropzone:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.upload-dropzone strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.upload-dropzone input[type="file"] {
  display: block;
  margin: 12px auto 0 auto;
  font-size: 14px;
  max-width: 100%;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 1000;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-close {
  background: #e5e7eb;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
}
.modal-close:hover { background: #d1d5db; transform: none; box-shadow: none; }

.log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: #f8fafc;
}

.log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

img {
  max-width: 100%;
  height: auto;
}

.complete-layout {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.complete-layout__photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.complete-layout__photo .photo-placeholder {
  height: 100%;
  min-height: 240px;
}

.complete-layout__form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* Login page */
.container--narrow { max-width: 460px; }
.login-container { max-width: 420px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}
.brand__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 12px;
  color: var(--muted);
}

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

footer {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .complete-layout {
    grid-template-columns: 1fr;
  }
  .complete-layout__photo {
    order: -1;
  }
  .product-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .product-card--full {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body { padding: 14px; }
  .container { padding: 16px; }
  header h1, .page-hero h1 { font-size: 22px; }
  .section { padding: 12px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head__actions { width: 100%; }
  .supplier-header { flex-direction: column; align-items: flex-start; }
  .actions-row { flex-direction: column; align-items: stretch; }
  .actions-row > a.button,
  .actions-row > button,
  .actions-row > form {
    width: 100%;
  }
  .actions-row > form > button {
    width: 100%;
  }
  .product-card,
  .product-card--full {
    grid-template-columns: 1fr;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
