:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --bg-strong: #e7ebef;
  --ink: #131921;
  --muted: #5d6873;
  --line: #d6dbe1;
  --panel: #ffffff;
  --accent: #ff9900;
  --accent-dark: #e47911;
  --gold: #febd69;
  --warn: #b96b00;
  --danger: #a33b35;
  --nav: #131921;
  --nav-soft: #232f3e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(35, 47, 62, 0.16), rgba(243, 244, 246, 0.98) 420px),
    radial-gradient(circle at top right, rgba(254, 189, 105, 0.24), transparent 360px),
    #f3f4f6;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  padding: 0 28px;
  background: linear-gradient(90deg, var(--nav), var(--nav-soft));
  border-bottom: 3px solid var(--gold);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(178px, 22vw, 244px);
  height: auto;
}

.view-switch {
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
}

.view-switch a {
  border-radius: 5px;
  color: #e8edf3;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 10px;
  text-decoration: none;
}

.view-switch a.active {
  background: var(--gold);
  color: var(--ink);
}

.nav-menu {
  position: relative;
}

.nav-menu details {
  position: relative;
}

.menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  padding: 0 16px;
}

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

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

.nav-menu details[open] .menu-trigger {
  background: var(--gold);
  color: var(--ink);
}

.nav-menu details[open] .menu-trigger::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(19, 25, 33, 0.22);
  padding: 10px;
}

.nav-button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #c9ced6;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 0 14px;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.menu-panel .nav-button {
  justify-content: flex-start;
  width: 100%;
}

.nav-button:hover,
button:hover {
  border-color: rgba(255, 153, 0, 0.72);
  transform: translateY(-1px);
}

.primary {
  border-color: #d78600;
  background: linear-gradient(180deg, var(--gold), var(--accent));
  color: var(--ink);
  font-weight: 700;
}

.primary:hover {
  background: linear-gradient(180deg, #ffd088, var(--accent-dark));
}

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

.view {
  min-height: calc(100vh - 120px);
}

.hidden {
  display: none !important;
}

.app-status {
  position: sticky;
  top: 90px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 153, 0, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(23, 33, 28, 0.14);
  color: var(--nav);
  font-weight: 800;
  margin-bottom: 16px;
  padding: 10px 14px;
}

.spinner,
.button-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 153, 0, 0.26);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.button-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
  border-top-color: currentColor;
}

button:disabled,
button.button-busy {
  cursor: wait;
  opacity: 0.74;
  transform: none;
}

.button-busy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #e7ece7;
}

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

.skeleton-image {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.skeleton-line {
  width: 68%;
  height: 14px;
}

.skeleton-line.wide {
  width: 92%;
  height: 18px;
}

.skeleton-line.short {
  width: 42%;
}

.skeleton-row {
  min-height: 72px;
  background: #fff;
}

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

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

.section-head {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  border: 1px solid rgba(35, 47, 62, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 249, 0.94) 58%, rgba(254, 189, 105, 0.32)),
    linear-gradient(90deg, rgba(35, 47, 62, 0.08), transparent);
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 20px 48px rgba(19, 25, 33, 0.1);
}

.catalog-page {
  background: #f3f4f6;
}

.catalog-topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.catalog-hero {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(35, 47, 62, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 249, 0.94) 60%, rgba(254, 189, 105, 0.28));
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 16px 36px rgba(23, 33, 28, 0.08);
}

.catalog-hero h1 {
  margin-bottom: 0;
}

.catalog-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.5;
}

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

.catalog-tools,
.store-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 18px;
  padding: 14px;
}

.catalog-card .primary {
  width: fit-content;
}

.empty-catalog {
  grid-column: 1 / -1;
}

.section-head.compact {
  margin-bottom: 18px;
  padding: 22px;
}

.section-head::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 18px;
  width: 144px;
  height: 76px;
  border: 1px solid rgba(35, 47, 62, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 18%, rgba(35, 47, 62, 0.14) 18% 20%, transparent 20% 43%, rgba(35, 47, 62, 0.14) 43% 45%, transparent 45% 70%, rgba(35, 47, 62, 0.14) 70% 72%, transparent 72%),
    linear-gradient(180deg, transparent 48%, rgba(255, 153, 0, 0.3) 48% 53%, transparent 53%);
  opacity: 0.7;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  margin: 12px 0 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-badges span {
  border: 1px solid rgba(35, 47, 62, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--nav);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 11px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 22px;
}

.price-note {
  position: relative;
  z-index: 1;
  max-width: 290px;
  color: var(--muted);
  line-height: 1.45;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.product-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 32px rgba(23, 33, 28, 0.08);
}

.product-card {
  overflow: hidden;
  display: grid;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(23, 33, 28, 0.12);
}

.product-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, rgba(35, 47, 62, 0.12), rgba(254, 189, 105, 0.26)),
    var(--bg-strong);
  color: var(--nav);
  font-weight: 800;
  text-align: center;
  padding: 18px;
}

.product-image-rotator {
  position: relative;
  overflow: hidden;
  padding: 0;
}

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

.product-image-rotator img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.product-image-rotator img.active {
  opacity: 1;
}

.product-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 18px 20px;
}

.product-body h2 {
  display: -webkit-box;
  min-height: 52px;
  margin-bottom: 6px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-title-link:hover {
  color: #007185;
  text-decoration: underline;
}

.product-body > p:not(.sku):not(.spec-summary) {
  display: -webkit-box;
  min-height: 42px;
  color: var(--muted);
  line-height: 1.42;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sku {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.price {
  color: #b12704;
  font-size: 22px;
  font-weight: 900;
}

.dealer-price {
  width: fit-content;
  border: 1px solid rgba(0, 113, 133, 0.24);
  border-radius: 999px;
  background: rgba(0, 113, 133, 0.08);
  color: #007185;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 10px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-actions .primary,
.product-actions .nav-button {
  flex: 1;
  min-width: 112px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 33, 28, 0.09);
  padding: clamp(18px, 3vw, 30px);
}

.product-detail-media {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-strong);
  overflow: hidden;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #fff;
}

.product-detail-body {
  display: grid;
  align-content: start;
  gap: 14px;
}

.product-spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.product-spec-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px;
}

.product-spec-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-spec-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.shopping-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shopping-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--nav);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  text-decoration: none;
}

.shopping-links a:hover {
  background: var(--bg-strong);
  border-color: rgba(254, 189, 105, 0.7);
}

.locked {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(185, 109, 31, 0.24);
  border-radius: 999px;
  background: rgba(185, 109, 31, 0.08);
  color: var(--warn);
  font-weight: 800;
  padding: 7px 10px;
}

.recommended-addons {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.recommended-title {
  color: var(--nav);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.addon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.addon-pill {
  display: grid;
  gap: 2px;
  min-width: 150px;
  border: 1px solid rgba(255, 153, 0, 0.28);
  border-radius: 8px;
  background: rgba(254, 189, 105, 0.12);
  padding: 9px 10px;
}

.addon-pill span {
  font-weight: 800;
}

.addon-pill small {
  color: var(--muted);
  font-weight: 700;
}

.addon-pill strong {
  color: #b12704;
}

.comparison-box {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.comparison-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.comparison-box ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.comparison-box li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.comparison-box a,
.comparison-links a,
.source-link {
  color: #007185;
  font-weight: 700;
  text-decoration: none;
}

.comparison-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

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

.cart-line p {
  color: var(--muted);
  margin-bottom: 4px;
}

.cart-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cart-controls button {
  min-height: 34px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
  font-size: 18px;
}

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

.checkout-form .wide-field {
  grid-column: 1 / -1;
}

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

.checkout-flags label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
}

.checkout-flags input {
  width: auto;
}

.order-items {
  margin: 8px 0 0;
  padding-left: 18px;
}

.panel {
  padding: 22px;
}

.admin-add-product {
  border-color: rgba(255, 153, 0, 0.36);
}

.auth-panel {
  width: min(440px, 100%);
  margin: 40px auto;
}

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

.listing-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.listing-section summary {
  cursor: pointer;
  background: linear-gradient(180deg, #fff, var(--bg-strong));
  color: var(--nav);
  font-weight: 900;
  list-style-position: inside;
  padding: 13px 14px;
}

.listing-section[open] summary {
  border-bottom: 1px solid var(--line);
}

.listing-section-grid {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.spec-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.import-url-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px auto;
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.upc-lookup-form {
  border-bottom: 0;
  margin-bottom: 10px;
  padding-bottom: 0;
}

.import-url-form .form-message {
  grid-column: 1 / -1;
  min-height: 0;
}

.lookup-results {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.lookup-summary,
.lookup-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.lookup-summary {
  display: grid;
  gap: 8px;
}

.lookup-result {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.lookup-result img,
.lookup-image-fallback {
  width: 96px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-strong);
  object-fit: cover;
}

.lookup-image-fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.lookup-result p {
  color: var(--muted);
  margin-bottom: 8px;
}

.dropzone {
  border: 2px dashed rgba(255, 153, 0, 0.5);
  border-radius: 8px;
  background: rgba(254, 189, 105, 0.14);
  cursor: pointer;
  padding: 14px;
}

.dropzone input {
  border: 0;
  background: transparent;
  padding: 8px 0 4px;
}

.dropzone strong {
  color: var(--nav);
}

.dropzone small {
  color: var(--muted);
  font-weight: 700;
}

.dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(254, 189, 105, 0.26);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

.form-message {
  min-height: 22px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  border-left: 5px solid var(--accent);
}

.stat strong {
  display: block;
  font-size: 28px;
}

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

.wide {
  grid-column: 1 / -1;
}

.stack {
  display: grid;
  gap: 10px;
}

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

.mini-comparisons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.facebook-listing {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0;
  padding: 10px;
}

.edit-listing {
  border: 1px solid rgba(255, 153, 0, 0.28);
  border-radius: 8px;
  background: rgba(254, 189, 105, 0.1);
  margin: 10px 0;
  padding: 10px;
}

.edit-listing summary,
.facebook-listing summary {
  color: #007185;
  cursor: pointer;
  font-weight: 800;
}

.product-edit-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.product-edit-form .wide-field {
  grid-column: 1 / -1;
}

.product-edit-form small {
  color: var(--muted);
  font-weight: 700;
}

.addon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 10px;
}

.addon-picker legend {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 0 6px;
}

.addon-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid rgba(35, 47, 62, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px;
}

.addon-choice input {
  width: auto;
  margin-top: 2px;
}

.facebook-listing textarea {
  min-height: 180px;
  margin: 10px 0;
  resize: vertical;
}

.admin-image-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-image-strip img {
  width: 74px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.mini-comparisons span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 8px;
}

.mini-comparisons button {
  min-height: 24px;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}

.comparison-form {
  grid-template-columns: 1fr 110px minmax(180px, 1fr) 90px 120px auto;
  align-items: end;
}

.comparison-form input,
.comparison-form select {
  min-width: 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.danger {
  border-color: var(--danger);
  color: var(--danger);
}

body[data-view="desktop"] .listing-section-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-view="desktop"] .product-form button,
body[data-view="desktop"] .product-form .form-message {
  grid-column: 1 / -1;
}

body[data-view="mobile"] {
  padding-bottom: 82px;
}

body[data-view="mobile"] .topbar {
  position: sticky;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 14px 16px;
}

body[data-view="mobile"] .brand {
  font-size: 18px;
}

body[data-view="mobile"] .brand img {
  width: min(220px, 76vw);
}

body[data-view="mobile"] .view-switch {
  order: 3;
  width: 100%;
}

body[data-view="mobile"] .view-switch a {
  flex: 1;
  text-align: center;
}

body[data-view="mobile"] .nav-menu {
  order: 2;
  width: 100%;
}

body[data-view="mobile"] .menu-trigger {
  width: 100%;
  min-height: 48px;
}

body[data-view="mobile"] .menu-panel {
  position: static;
  margin-top: 8px;
  min-width: 0;
  width: 100%;
}

body[data-view="mobile"] .nav-button {
  min-height: 48px;
}

body[data-view="mobile"] nav .nav-button,
body[data-view="mobile"] nav button {
  border-color: rgba(255, 255, 255, 0.18);
  background: #fff;
}

body[data-view="mobile"] main {
  width: min(100% - 24px, 520px);
  padding: 24px 0;
}

body[data-view="mobile"] .app-status {
  top: 112px;
  width: 100%;
}

body[data-view="mobile"] .section-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  padding: 20px;
}

body[data-view="mobile"] .section-head::after {
  right: 14px;
  top: 14px;
  width: 92px;
  height: 50px;
  opacity: 0.42;
}

body[data-view="mobile"] h1 {
  font-size: 34px;
}

body[data-view="mobile"] .store-tools,
body[data-view="mobile"] .product-grid,
body[data-view="mobile"] .stats,
body[data-view="mobile"] .admin-layout,
body[data-view="mobile"] .checkout-layout,
body[data-view="mobile"] .checkout-form,
body[data-view="mobile"] .checkout-flags {
  grid-template-columns: 1fr;
}

body[data-view="mobile"] .admin-add-product {
  order: -1;
}

body[data-view="mobile"] .panel {
  padding: 16px;
}

body[data-view="mobile"] .product-form {
  gap: 12px;
}

body[data-view="mobile"] .import-url-form {
  grid-template-columns: 1fr;
  gap: 10px;
}

body[data-view="mobile"] .lookup-result {
  grid-template-columns: 72px minmax(0, 1fr);
}

body[data-view="mobile"] .lookup-result img,
body[data-view="mobile"] .lookup-image-fallback {
  width: 72px;
}

body[data-view="mobile"] label {
  font-size: 13px;
}

body[data-view="mobile"] input,
body[data-view="mobile"] textarea,
body[data-view="mobile"] select {
  min-height: 48px;
  font-size: 16px;
}

body[data-view="mobile"] textarea {
  min-height: 112px;
}

body[data-view="mobile"] .primary,
body[data-view="mobile"] .product-form button[type="submit"],
body[data-view="mobile"] .import-url-form button[type="submit"] {
  min-height: 52px;
  width: 100%;
}

body[data-view="mobile"] .row {
  grid-template-columns: 1fr;
}

body[data-view="mobile"] .cart-line {
  grid-template-columns: 1fr;
}

body[data-view="mobile"] .cart-controls {
  justify-content: stretch;
}

body[data-view="mobile"] .row-actions,
body[data-view="mobile"] .comparison-links {
  justify-content: stretch;
}

body[data-view="mobile"] .row-actions button {
  flex: 1;
}

body[data-view="mobile"] .comparison-form {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body[data-view="mobile"] .product-edit-form {
  grid-template-columns: 1fr;
}

body[data-view="mobile"] .addon-picker {
  grid-template-columns: 1fr;
}

body[data-view="mobile"] .comparison-form input[name="site"],
body[data-view="mobile"] .comparison-form input[name="productUrl"],
body[data-view="mobile"] .comparison-form button {
  grid-column: 1 / -1;
}

.catalog-page .topbar {
  align-items: center;
  flex-direction: row;
}

.catalog-page .topbar nav {
  position: static;
  display: flex;
  border: 0;
  box-shadow: none;
  padding: 0;
}

@media (max-width: 760px) {
  .catalog-page .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-page .topbar nav {
    width: 100%;
  }

  .catalog-page .topbar nav a {
    flex: 1;
  }

  .catalog-tools,
  .store-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .product-spec-list {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 14px 16px;
  }

  nav {
    justify-content: flex-start;
  }

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

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