:root {
  --primary: #197fe6;
  --catalog-bg: #000000;
  --accent: #ff0000;
  --card-gradient-start: #050505;
  --card-gradient-end: #1f2937;
  --card-opacity: 82%;
  --product-title-color: #ffffff;
  --product-description-color: #cbd5e1;
  --buy-prompt-color: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f8;
  color: #0f172a;
}

.login-body {
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(25, 127, 230, 0.22), transparent 34%),
    #0f172a;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-panel {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.login-brand {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.login-brand .material-symbols-outlined {
  align-items: center;
  background: var(--primary);
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.login-brand h1 {
  font-size: 22px;
  margin: 0 0 4px;
}

.login-brand p {
  color: #64748b;
  margin: 0;
}

.login-form {
  display: grid;
  gap: 16px;
}

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

.login-error {
  color: #dc2626;
  font-size: 13px;
  min-height: 18px;
  margin: 0;
}

.settings-subsection {
  border-top: 1px solid #e2e8f0;
  margin-top: 10px;
  padding-top: 18px;
}

.settings-subsection h3 {
  font-size: 18px;
  margin: 0;
}

.settings-modal-body {
  background: #f8fafc;
}

.settings-sections {
  display: grid;
  gap: 18px;
}

.settings-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.settings-section-head {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}

.settings-section-head h2 {
  color: #0f172a;
  font-size: 18px;
  margin: 0 0 4px;
}

.settings-section-head p {
  margin: 0;
}

.form-message {
  font-size: 13px;
  min-height: 18px;
  margin: 0;
}

.form-message.error {
  color: #dc2626;
}

.form-message.success {
  color: #16a34a;
}

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

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

button {
  cursor: pointer;
}

.admin-shell {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid #dbeafe;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 34px;
}

.brand .material-symbols-outlined {
  font-size: 30px;
}

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

.nav-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #475569;
  display: flex;
  gap: 12px;
  padding: 11px 12px;
  text-align: left;
  width: 100%;
}

.file-input {
  display: none;
}

.nav-button.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(25, 127, 230, 0.22);
}

.sidebar-footer {
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.main {
  min-width: 0;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #dbeafe;
  display: flex;
  gap: 16px;
  height: 64px;
  justify-content: space-between;
  padding: 0 32px;
}

.content {
  padding: 32px;
}

.page-head {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
}

.muted {
  color: #64748b;
}

.button {
  align-items: center;
  background: #e2e8f0;
  border: 0;
  border-radius: 8px;
  color: #0f172a;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  font-weight: 700;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
}

.button.danger {
  background: #fee2e2;
  color: #dc2626;
}

.button.ghost {
  background: transparent;
  color: #475569;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #64748b;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.icon-button:hover {
  background: #eff6ff;
  color: var(--primary);
}

.card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  text-align: left;
  text-transform: uppercase;
}

td {
  border-top: 1px solid #eff6ff;
  padding: 14px 18px;
  vertical-align: middle;
}

.status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.status.visible {
  background: #dcfce7;
  color: #16a34a;
}

.status.hidden {
  background: #e2e8f0;
  color: #475569;
}

.thumb {
  background: #e2e8f0 center / cover;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  height: 52px;
  width: 52px;
}

.channels {
  display: flex;
  gap: 8px;
}

.product-cell-actions {
  white-space: nowrap;
}

.channel {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.channel.ml {
  background: #fff7b2;
  color: #7c6a00;
}

.channel.shopee {
  background: #ffe4dc;
  color: #ee4d2d;
}

.channel.direct {
  background: #dcfce7;
  color: #16a34a;
}

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

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

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

label {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.checkbox-group {
  display: grid;
  gap: 10px;
}

.checkbox-option {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  display: flex;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
}

.checkbox-option input {
  accent-color: var(--primary);
  height: 18px;
  min-height: 18px;
  width: 18px;
}

.checkbox-option.compact {
  font-size: 13px;
  min-height: 36px;
  padding: 8px 10px;
}

input,
select,
textarea {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

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

.modal-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.58);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 20;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: #ffffff;
  border-radius: 8px;
  max-height: 92vh;
  max-width: 760px;
  overflow: auto;
  width: 100%;
}

.modal-head,
.modal-actions {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}

.modal-actions {
  border-bottom: 0;
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
}

.modal-body {
  padding: 20px;
}

.toolbar {
  display: flex;
  gap: 12px;
}

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

.image-preview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  margin-top: 12px;
}

.image-preview-grid.compact-preview {
  grid-template-columns: repeat(auto-fill, minmax(72px, 96px));
}

.image-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.image-preview.main-image-preview {
  border-color: #111827;
}

.image-main-badge {
  background: rgba(17, 24, 39, 0.88);
  border-radius: 6px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  left: 8px;
  padding: 4px 6px;
  position: absolute;
  text-transform: uppercase;
  top: 8px;
  z-index: 2;
}

.image-preview img {
  aspect-ratio: 4 / 5;
  background: #e2e8f0;
  display: block;
  object-fit: cover;
  width: 100%;
}

.product-preview-grid .image-preview,
.product-preview-grid .image-preview img {
  background: #ffffff;
}

.image-preview-actions {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  padding: 8px;
}

.image-preview-buttons {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.image-preview-buttons .icon-button:disabled {
  background: #111827;
  color: #ffffff;
  cursor: default;
  opacity: 1;
}

.image-preview-actions small {
  color: #64748b;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-image-link-row {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 240px) minmax(180px, 1fr);
}

.cropper-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.72);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 14px;
  position: fixed;
  z-index: 40;
}

.cropper-backdrop.open {
  display: flex;
}

.cropper-modal {
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: min(100%, calc(100dvh - 28px));
  max-height: calc(100vh - 28px);
  max-width: 680px;
  overflow: hidden;
  width: min(100%, 680px);
}

.cropper-modal .modal-head,
.cropper-modal .modal-actions {
  flex: 0 0 auto;
}

.cropper-body {
  align-content: start;
  display: grid;
  gap: 12px;
  grid-template-rows: auto auto auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.cropper-frame {
  aspect-ratio: 4 / 5;
  background: #ffffff;
  border: 3px solid #000000;
  border-radius: 4px;
  box-shadow: none;
  cursor: grab;
  overflow: hidden;
  position: relative;
  touch-action: none;
  min-width: 0;
  max-width: 100%;
  width: min(100%, 420px, max(180px, calc((100dvh - 330px) * 0.8)));
  justify-self: center;
}

.cropper-frame.dragging {
  cursor: grabbing;
}

.cropper-frame::after {
  display: none;
}

.cropper-frame img {
  left: 0;
  max-width: none;
  object-fit: contain;
  position: absolute;
  top: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.cropper-hint {
  color: #64748b;
  font-size: 13px;
  margin: -4px 0 0;
  text-align: center;
}

.cropper-controls {
  background: #ffffff;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.cropper-controls label {
  color: #334155;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
}

.cropper-rotate-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cropper-rotate-actions .button {
  justify-content: center;
}

.social-link-editor {
  display: grid;
  gap: 10px;
}

.social-link-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(140px, 180px) minmax(180px, 1fr) auto;
}

.catalog-body {
  background: var(--catalog-bg);
  color: #ffffff;
  min-height: 100vh;
}

.catalog-header {
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--accent), transparent 70%);
  display: flex;
  justify-content: center;
  padding: 22px 16px;
}

.catalog-header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
}

.catalog-logo {
  align-items: center;
  background: transparent;
  border-radius: 0;
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

.catalog-logo .material-symbols-outlined {
  align-items: center;
  background: var(--accent);
  border-radius: 12px;
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent), transparent 20%);
  display: flex;
  font-size: 34px;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.catalog-logo img {
  display: block;
  height: auto;
  max-width: min(420px, 58vw);
  width: auto;
}

.header-quick-links {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  justify-content: flex-end;
}

.catalog-header .header-quick-links .header-quick-link {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px;
  box-shadow: none !important;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  padding: 0;
  outline: 0;
  overflow: hidden;
  transition: opacity 180ms ease;
  width: 48px;
}

.catalog-header .header-quick-links .header-quick-link:hover,
.catalog-header .header-quick-links .header-quick-link:focus-visible {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none;
  opacity: 0.9;
  transform: none;
}

.catalog-header .header-quick-links .header-quick-link img {
  display: block;
  filter: none !important;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.catalog-main {
  margin: 0 auto;
  max-width: 1200px;
  padding: 24px 16px 80px;
}

.banner-carousel {
  aspect-ratio: 21 / 9;
  background: #111827;
  border-radius: 8px;
  margin-bottom: 24px;
  min-height: 180px;
  overflow: hidden;
  position: relative;
}

.banner-track,
.banner-slide {
  inset: 0;
  position: absolute;
}

.banner-slide {
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 900ms ease, transform 1600ms ease;
}

.banner-slide img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.banner-slide.active {
  opacity: 1;
  transform: scale(1);
}

.banner-dots {
  bottom: 12px;
  display: flex;
  gap: 8px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.banner-dots button {
  background: rgba(255, 255, 255, 0.42);
  border: 0;
  border-radius: 999px;
  height: 8px;
  padding: 0;
  width: 8px;
}

.banner-dots button.active {
  background: #ffffff;
  width: 22px;
}

.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: color-mix(in srgb, #000000 88%, var(--accent));
  border: 1px solid color-mix(in srgb, var(--accent), transparent 45%);
  border-radius: 6px;
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  padding: 10px 14px;
  text-align: center;
  white-space: nowrap;
}

.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow:
    0 0 8px color-mix(in srgb, var(--accent), transparent 18%),
    0 0 18px color-mix(in srgb, var(--accent), transparent 34%);
  color: #ffffff;
}

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

.product-card {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--card-gradient-start) var(--card-opacity), transparent),
    color-mix(in srgb, var(--card-gradient-end) var(--card-opacity), transparent)
  );
  backdrop-filter: blur(8px);
  border: 1px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent), transparent 35%);
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.product-share-button {
  align-items: center;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  bottom: 10px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 10px;
  transition: background 180ms ease, transform 180ms ease;
  width: 30px;
  z-index: 4;
}

.product-share-button:hover {
  background: color-mix(in srgb, var(--accent), #0f172a 38%);
  transform: translateY(-1px);
}

.product-share-button .material-symbols-outlined {
  font-size: 17px;
}

.product-image {
  aspect-ratio: 4 / 5;
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}

.product-image-carousel {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.product-image-carousel.is-swiping {
  cursor: grabbing;
}

.product-image-slide {
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: scale(1.02);
  transition: opacity 520ms ease, transform 900ms ease;
}

.product-image-slide.active {
  opacity: 1;
  transform: scale(1);
}

.product-image-slide img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-image-slide {
  background: #ffffff;
}

.product-image-dots {
  bottom: 10px;
  display: flex;
  gap: 6px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.product-image-dots button {
  background: rgba(255, 255, 255, 0.44);
  border: 0;
  border-radius: 999px;
  height: 7px;
  padding: 0;
  width: 7px;
}

.product-image-dots button.active {
  background: #ffffff;
  width: 18px;
}

.badge {
  background: #f97316;
  border-radius: 6px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  left: 10px;
  padding: 5px 8px;
  position: absolute;
  text-transform: uppercase;
  top: 10px;
  z-index: 3;
}

.badge + .badge {
  background: #facc15;
  color: #111827;
  top: 40px;
}

.product-card h3 {
  color: var(--product-title-color);
  margin: 0 0 8px;
}

.product-card p {
  color: var(--product-description-color);
  font-size: 13px;
  line-height: 1.5;
  min-height: 58px;
}

.buy-prompt {
  color: var(--buy-prompt-color);
  font-size: 12px;
  font-weight: 400;
  margin: 0 0 10px;
}

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

.buy-link {
  align-items: center;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 56px;
  overflow: hidden;
  padding: 6px 10px;
  transition: filter 180ms ease, transform 180ms ease;
}

.buy-link:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.buy-link img {
  display: block;
  max-height: 44px;
  max-width: 96%;
  object-fit: contain;
}

.buy-link.ml {
  background: #ffe600;
  color: #111827;
}

.buy-link.shopee {
  background: #4a1308;
  color: #ffffff;
}

.buy-link.direct {
  background: #111b14;
  color: #ffffff;
}

.buy-link.ml img {
  max-height: 48px;
}

.buy-link.shopee img {
  max-height: 46px;
}

.copy-feedback {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  bottom: 20px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  left: 50%;
  opacity: 0;
  padding: 10px 14px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 80;
}

.copy-feedback.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.buy-link.direct img {
  max-height: 46px;
}

.catalog-footer {
  align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--accent), transparent 70%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  padding: 28px 16px 34px;
  text-align: center;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.footer-social-link {
  align-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent), transparent 36%);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 18px;
  height: 42px;
  justify-content: center;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  width: 42px;
}

.footer-social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 30%);
  transform: translateY(-2px);
}

.catalog-footer p {
  color: #cbd5e1;
  font-size: 12px;
  margin: 0;
}

.floating-action {
  align-items: center;
  background: color-mix(in srgb, var(--accent) 18%, #020617);
  border: 1px solid color-mix(in srgb, var(--accent), transparent 38%);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32), 0 0 18px color-mix(in srgb, var(--accent), transparent 42%);
  display: flex;
  height: 64px;
  justify-content: center;
  padding: 10px;
  position: fixed;
  right: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
  width: 64px;
  z-index: 10;
}

.floating-action:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38), 0 0 22px color-mix(in srgb, var(--accent), transparent 24%);
  transform: translateY(-2px);
}

.floating-action img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.empty {
  color: #64748b;
  padding: 28px;
  text-align: center;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

  .topbar,
  .page-head {
    align-items: stretch;
    flex-direction: column;
    height: auto;
    padding: 18px;
  }

  .content {
    padding: 18px;
  }

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

  .upload-row {
    grid-template-columns: 1fr;
  }

  .social-link-row {
    grid-template-columns: 1fr auto;
  }

  .settings-image-link-row {
    grid-template-columns: 1fr;
  }

  .product-table-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .product-admin-table,
  .product-admin-table tbody,
  .product-admin-table tr,
  .product-admin-table td {
    display: block;
    width: 100%;
  }

  .product-admin-table thead {
    display: none;
  }

  .product-admin-table tbody {
    display: grid;
    gap: 12px;
  }

  .product-admin-table tr {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: grid;
    gap: 8px;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    padding: 12px;
  }

  .product-admin-table td {
    border-top: 0;
    padding: 0;
  }

  .product-admin-table .empty {
    grid-column: 1 / -1;
    padding: 24px 12px;
  }

  .product-cell-image {
    grid-row: span 3;
  }

  .product-cell-image .thumb {
    height: 64px;
    width: 64px;
  }

  .product-cell-info {
    min-width: 0;
  }

  .product-cell-info strong,
  .product-cell-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-cell-info strong {
    white-space: nowrap;
  }

  .product-cell-info small {
    line-height: 1.35;
    max-height: 36px;
  }

  .product-cell-actions {
    align-items: center;
    display: flex;
    gap: 4px;
    grid-column: 3;
    grid-row: 1 / span 3;
    justify-content: flex-end;
  }

  .product-cell-status,
  .product-cell-channels {
    align-items: center;
    display: flex;
    min-width: 0;
  }

  .product-cell-status {
    grid-column: 2;
  }

  .product-cell-channels {
    grid-column: 2;
  }

  .social-link-row input {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .catalog-header {
    padding: 18px 12px;
  }

  .catalog-header-inner {
    gap: 12px;
  }

  .catalog-logo img {
    max-width: min(260px, 62vw);
  }

  .header-quick-link {
    height: 42px;
    width: 42px;
  }

  .cropper-backdrop {
    align-items: stretch;
    padding: 8px;
  }

  .cropper-modal {
    height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    width: 100%;
  }

  .cropper-modal .modal-head,
  .cropper-modal .modal-actions {
    padding: 12px;
  }

  .cropper-body {
    gap: 10px;
    padding: 12px;
  }

  .cropper-frame {
    max-width: 100%;
    width: min(100%, calc(100vw - 40px), max(150px, calc((100dvh - 360px) * 0.8)));
  }

  .cropper-frame::after {
    inset: 10px;
  }

  .cropper-hint {
    font-size: 12px;
  }

  .cropper-controls {
    gap: 8px;
  }

  .cropper-rotate-actions {
    grid-template-columns: 1fr;
  }

  .catalog-main {
    padding: 16px 12px 56px;
  }

  .banner-carousel {
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
    min-height: 156px;
  }

  .filter-row {
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .filter-chip {
    font-size: 12px;
    padding: 9px 12px;
  }

  .floating-action {
    bottom: 16px;
    height: 56px;
    right: 16px;
    width: 56px;
  }
}
