:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  --brand: #0b4f87;
  --brand-strong: #063967;
  --brand-soft: #e9f5ff;
  --accent: #6bb8ee;
  --accent-soft: #f1f8fe;
  --page: #f5f8fb;
  --surface: #ffffff;
  --line: #d8e3ee;
  --line-strong: #b9cee2;
  --text: #1f2933;
  --muted: #607080;
  background: var(--page);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

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

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

.product-detail-link:hover { color: var(--brand); text-decoration: underline; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #eef7ff 0, var(--page) 210px),
    var(--page);
}

.topbar {
  display: flex;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(11, 79, 135, 0.06);
  position: sticky;
  top: 0;
  z-index: 30;
  justify-content: space-between;
}

.brand {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand-logo {
  display: block;
  height: 90px;
  max-width: min(420px, 78vw);
  object-fit: contain;
}

.topbar-actions,
.contact-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.contact-link {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--brand-strong);
  padding: 8px 11px;
  text-decoration: none;
}

.contact-link:hover {
  background: var(--brand-soft);
  border-color: var(--accent);
}

.cart-button,
.submit-order,
.add-to-order {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  font-weight: 700;
}

.cart-button:hover,
.submit-order:hover,
.add-to-order:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

.cart-count {
  background: white;
  border-radius: 999px;
  color: var(--brand-strong);
  display: inline-block;
  margin-left: 5px;
  min-width: 22px;
  padding: 2px 6px;
}

h1 {
  margin: 0;
  font-size: 0;
  font-weight: 700;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
}

button,
input {
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

button {
  cursor: pointer;
}

button:hover,
input:focus {
  border-color: var(--accent);
  outline: none;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-panel .searchbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(11, 79, 135, 0.05);
  padding: 10px;
}

#searchInput {
  width: 100%;
}

.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
  width: min(1320px, calc(100% - 32px));
  margin: 22px auto 40px;
}

.side-panel {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 141px;
}

.sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(11, 79, 135, 0.05);
}

.sidebar-title {
  color: var(--brand-strong);
  font-weight: 700;
  margin-bottom: 10px;
}

.sort-box {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.sort-box label {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.sort-box select {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  height: 34px;
  padding: 0 8px;
  width: 100%;
}

.category-menu {
  display: flex;
  flex-direction: column;
  position: relative;
}

.category-item {
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  min-height: 34px;
  padding: 8px 10px;
  position: relative;
}

.category-item:hover,
.category-item.active {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.category-item.has-children::after {
  content: ">";
  color: var(--accent);
  position: absolute;
  right: 10px;
}

.submenu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(11, 79, 135, 0.14);
  display: none;
  left: calc(100% + 8px);
  min-width: 240px;
  padding: 8px;
  position: absolute;
  top: 0;
  z-index: 10;
}

.category-item:hover > .submenu {
  display: block;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.active-category {
  color: var(--brand-strong);
  font-weight: 700;
  margin-bottom: 3px;
}

#countLabel {
  color: var(--muted);
  font-size: 14px;
}

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

.product {
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  min-height: 142px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(11, 79, 135, 0.04);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.product:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 20px rgba(11, 79, 135, 0.09);
}

.product-image {
  background: var(--accent-soft);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex: 0 0 168px;
  font-size: 14px;
  min-height: 142px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
}

.product-body {
  align-content: start;
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(260px, 2fr);
  gap: 4px 18px;
  padding: 14px;
  width: 100%;
}

.sku {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  grid-column: 1;
  margin-bottom: 6px;
}

h2 {
  grid-column: 1;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.description {
  color: #435160;
  grid-column: 1;
  margin: 0 0 12px;
  line-height: 1.4;
}

.price {
  font-weight: 700;
  grid-column: 1;
  margin-bottom: 10px;
}

.price-login {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--brand);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 7px 9px;
  text-align: left;
}

.price-options {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  justify-content: flex-end;
}

.price-option {
  align-items: baseline;
  display: inline-flex;
  gap: 6px;
  text-align: right;
}

.price-option + .price-option {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.price-option span:first-child { color: var(--muted); font-weight: 500; }

.login-dialog { max-width: 520px; }
.login-email { color: var(--muted); display: grid; gap: 6px; }
.login-email input { font: inherit; padding: 10px; }

.attributes {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 4;
  grid-template-columns: minmax(90px, auto) 1fr;
  gap: 6px 10px;
  margin: 0;
  font-size: 13px;
}

.order-controls {
  align-items: end;
  display: flex;
  gap: 8px;
  grid-column: 1;
  margin-top: 8px;
}

.order-controls label,
.customer-fields label {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 4px;
}

.quantity-input {
  width: 100px;
}

.price-choice { max-width: 190px; }

.order-dialog {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(6, 57, 103, 0.28);
  max-height: min(88vh, 900px);
  max-width: 820px;
  padding: 0;
  width: calc(100% - 28px);
}

.order-dialog::backdrop {
  background: rgba(18, 36, 52, 0.58);
}

.order-dialog form {
  padding: 20px;
}

.dialog-header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dialog-header h2,
.dialog-header p {
  margin: 0;
}

.dialog-header p {
  color: var(--muted);
  margin-top: 5px;
}

.order-items {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
  max-height: 280px;
  overflow: auto;
}

.order-item {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 9px;
  grid-template-columns: 105px 1fr 100px 82px;
  padding: 9px 2px;
}

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

.order-item-sku {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.remove-order-item {
  color: #9d2b2b;
}

.customer-fields {
  display: grid;
  gap: 11px;
  grid-template-columns: 1fr 1fr;
}

.customer-fields input,
.customer-fields textarea {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: inherit;
  padding: 8px 10px;
}

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

.order-message {
  color: #9d2b2b;
  min-height: 22px;
  padding-top: 10px;
}

.order-message.success {
  color: #176b3a;
  font-weight: 700;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
}

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

dd {
  margin: 0;
}

#mobileCategoriesButton {
  display: none;
}

.mobile-overlay {
  background: rgba(31, 41, 51, 0.38);
  inset: 0;
  position: fixed;
  z-index: 20;
}

.mobile-panel {
  background: var(--surface);
  bottom: 0;
  box-shadow: 0 -10px 26px rgba(11, 79, 135, 0.2);
  left: 0;
  max-height: 82vh;
  overflow: auto;
  padding: 14px;
  position: fixed;
  right: 0;
  z-index: 21;
}

.mobile-panel-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-sort-box {
  margin-bottom: 10px;
}

.mobile-category {
  border-bottom: 1px solid var(--line);
}

.mobile-category-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 4px;
  text-align: left;
  width: 100%;
}

.mobile-category-button.active {
  background: var(--brand-soft);
  border-radius: 6px;
  color: var(--brand-strong);
  font-weight: 700;
}

.mobile-children {
  display: none;
  padding-left: 18px;
}

.mobile-category.expanded > .mobile-children {
  display: block;
}

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

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

  .contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-link,
  .cart-button {
    text-align: center;
    width: 100%;
  }

  .brand-logo {
    height: 64px;
    max-width: 100%;
  }

  .searchbar {
    width: 100%;
  }

  #mobileCategoriesButton {
    display: inline-block;
    min-width: 112px;
  }

  #searchInput {
    width: 100%;
  }

  .layout {
    display: block;
    width: min(100% - 24px, 680px);
  }

  .side-panel {
    margin: 12px 0;
    position: static;
  }

  .sidebar {
    display: none;
  }

  .products {
    gap: 10px;
  }

  .product {
    min-height: 112px;
  }

  .product-image {
    flex-basis: 118px;
    min-height: 112px;
  }

  .product-body {
    display: block;
    padding: 10px;
  }

  .attributes {
    display: none;
  }

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

  .quantity-input {
    width: 100%;
  }

  .order-item {
    grid-template-columns: 80px 1fr;
  }

  .order-item .quantity-input,
  .remove-order-item {
    width: 100%;
  }

  .customer-fields {
    grid-template-columns: 1fr;
  }

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

/* Diseno tecnico del catalogo */
:root {
  --ink: #142334;
  --navy: #073b66;
  --blue: #087bb8;
  --cyan: #19b7cf;
  --rail: #78bfd1;
  --line: #ccd7df;
  --soft: #f3f6f8;
  --muted: #607282;
}

body {
  background: #eef2f5;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}

.signal {
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 45%, var(--navy));
}

.topbar {
  display: block;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  position: relative;
  top: auto;
  z-index: 30;
}

.business-strip {
  align-items: flex-start;
  background: #fff;
  color: #738995;
  display: flex;
  font-size: 12px;
  gap: 20px;
  height: 26px;
  justify-content: space-between;
  letter-spacing: .1px;
  line-height: 14px;
  padding: 8px 20px 4px;
  white-space: nowrap;
}

.business-copy {
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
}

.business-info,
.contact-links {
  align-items: center;
  display: flex;
  gap: 16px;
}

.business-info {
  color: #8196a1;
}

.contact-link {
  border: 0;
  border-radius: 0;
  color: #4d8198;
  padding: 0;
  text-decoration: none;
}

.contact-link:hover {
  background: transparent;
  border-color: transparent;
  color: var(--blue);
  text-decoration: underline;
}

.mobile-contact-links {
  display: none;
}

.header-main {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 245px minmax(420px, 1fr) auto;
  height: 68px;
  margin: auto;
  max-width: none;
  padding: 4px 20px 8px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 56px;
  max-width: 225px;
  object-fit: contain;
  object-position: left center;
  width: 225px;
}

.searchbar {
  align-items: center;
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 0;
  display: flex;
  gap: 0;
  height: 44px;
  min-width: 0;
  padding: 0;
}

#searchInput {
  border: 0;
  border-radius: 0;
  flex: 1;
  font-size: 16px;
  height: 40px;
  min-width: 0;
  outline: 0;
  padding: 0 16px;
  width: auto;
}

.search-scope {
  align-items: center;
  align-self: stretch;
  background: #f7f9fa;
  border-right: 1px solid var(--line);
  color: #435565;
  display: flex;
  flex: 0 0 150px;
  font-size: 14px;
  padding: 0 12px;
}

.search-icon {
  align-items: center;
  align-self: stretch;
  background: var(--navy);
  color: #fff;
  display: flex;
  font-size: 22px;
  justify-content: center;
  width: 54px;
}

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

.contact-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--navy);
  color: var(--navy);
  display: flex;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  text-decoration: none;
  width: 83px;
}

.contact-button:hover {
  background: #edf7fa;
}

.cart-button {
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 0;
  color: #fff;
  font-weight: 700;
  height: 38px;
  padding: 0 14px;
  white-space: nowrap;
  min-width: 140px;
  width: auto;
}

.cart-count {
  background: transparent;
  border-radius: 0;
  color: inherit;
  margin-left: 0;
  min-width: 0;
  padding: 0;
}

.layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 265px minmax(0, 1fr);
  margin: 10px auto 20px;
  max-width: 1500px;
  padding: 0 28px;
  width: 100%;
}

.side-panel {
  align-self: start;
  display: block;
  overflow-x: hidden;
  position: static;
}

.sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 4px 14px rgba(23, 54, 74, .08);
  padding: 0;
}

.sidebar-title {
  background: #e8eef2;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .7px;
  margin: 0;
  padding: 16px 18px;
  text-transform: uppercase;
}

.category-menu {
  display: flex;
  flex-direction: column;
  position: relative;
}

.category-item {
  background: #fff;
  border-bottom: 1px solid #e3e9ed;
  border-radius: 0;
  color: #263a4d;
  cursor: pointer;
  min-height: 42px;
  padding: 12px 32px 12px 16px;
  position: relative;
}

.category-item:hover,
.category-item.active {
  background: #edf7fa;
  border-left: 4px solid var(--cyan);
  color: #005c8a;
  padding-left: 12px;
}

.category-item.has-children::after {
  color: var(--blue);
  content: ">";
  position: absolute;
  right: 12px;
}

.submenu {
  background: #f7fafb;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
  display: none;
  left: auto;
  margin: 10px -32px -12px -16px;
  min-width: 0;
  padding: 0 0 0 12px;
  position: static;
  top: auto;
  z-index: auto;
}

.category-item.active > .submenu {
  margin-left: -12px;
}

.category-item:hover > .submenu {
  display: none;
}

.category-item.expanded > .submenu {
  display: block;
}

.category-item.expanded.has-children::after {
  content: "⌄";
}

.submenu .category-item {
  font-size: 14px;
}

.catalog {
  min-width: 0;
}

.catalog-toolbar {
  display: none;
}

.products {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.pagination {
  align-items: center;
  background: #eef2f5;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 8px 6px 0 0;
}

.pagination[hidden] {
  display: none;
}

.pagination button {
  background: #fff;
  border: 1px solid var(--navy);
  border-radius: 0;
  color: var(--navy);
  font-size: 13px;
  height: 34px;
  min-width: 88px;
}

.pagination button:disabled {
  border-color: var(--line);
  color: #93a1aa;
  cursor: default;
}

#pageLabel {
  color: #526a79;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  min-width: 110px;
  text-align: center;
}

.product {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--rail);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  grid-template-rows: 1fr;
  height: 200px;
  min-height: 200px;
  overflow: hidden;
  position: relative;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.product:hover {
  border-color: #76a9c6;
  box-shadow: 0 8px 22px rgba(19, 50, 72, .10);
  transform: translateY(-2px);
}

.product-tag {
  background: #e9f5ed;
  border: 1px solid #bddbc6;
  color: #38704b;
  font-size: 10px;
  letter-spacing: .5px;
  padding: 3px 6px;
  position: static;
  text-transform: uppercase;
  z-index: 2;
}

.product-meta {
  align-items: center;
  display: flex;
  gap: 10px;
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 3;
}

.product-image {
  align-items: center;
  background: #fafcfd;
  border: 1px solid #e1e7eb;
  color: var(--muted);
  display: flex;
  flex: none;
  font-size: 13px;
  grid-column: 1;
  grid-row: 1;
  height: auto;
  justify-content: center;
  margin: 8px 10px 8px 8px;
  min-height: 0;
}

.product-image img {
  background: #fff;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  width: 100%;
}

.product-body {
  align-content: normal;
  display: grid;
  gap: 14px;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  min-width: 0;
  padding: 34px 14px 9px 4px;
  width: 100%;
}

.product-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product h2 {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #152d40;
  display: -webkit-box;
  font-size: 19px;
  grid-column: auto;
  line-height: 1.2;
  margin: 0 0 5px;
  overflow: hidden;
  padding-right: 0;
}

.description {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #617483;
  display: -webkit-box;
  font-size: 14px;
  grid-column: auto;
  line-height: 1.3;
  margin: 0 0 6px;
  overflow: hidden;
}

.price {
  font-size: 14px;
  grid-column: auto;
  margin: 0 0 4px;
}

.attributes {
  border-top: 1px solid #dfe6ea;
  display: grid;
  font-size: 13px;
  gap: 0;
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: auto 0 0;
}

.attributes:empty {
  display: none;
}

.attribute {
  border-bottom: 1px solid #edf1f3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 6px 12px 6px 0;
}

.attribute:nth-child(n+4) {
  display: none;
}

.attribute dt {
  color: #71828f;
}

.attribute dd {
  color: #2d4353;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-controls {
  align-content: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: auto;
  justify-content: center;
  margin-top: 0;
}

.delivery-note {
  color: #416276;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  margin: 0;
  text-align: right;
}

.order-row {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(72px, 1fr) auto 58px 88px;
  min-height: 34px;
  width: 100%;
}

.order-price-label {
  color: #526a79;
  font-size: 12px;
  text-align: right;
}

.order-price-value {
  color: var(--navy);
  font-size: 13px;
  white-space: nowrap;
}

.order-row .quantity-input {
  height: 32px;
  width: 58px;
}

.order-row .add-to-order {
  height: 32px;
  padding: 0 8px;
  width: 88px;
}

.order-controls label {
  display: block;
}

.quantity-label {
  display: none;
}

.price-choice-label > span {
  display: none;
}

.sku {
  color: #568096;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .5px;
  margin: 0;
  white-space: nowrap;
}

.quantity-input {
  border: 1px solid #aebdc7;
  border-radius: 0;
  font-size: 16px;
  height: 36px;
  padding: 0 4px;
  text-align: center;
  width: 72px;
}

.add-to-order {
  background: var(--blue);
  border: 0;
  border-radius: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  height: 34px;
  padding: 0 14px;
  width: 112px;
}

@media (min-width: 981px) {
  body {
    height: 100vh;
    overflow: hidden;
  }

  .layout {
    align-items: stretch;
    height: calc(100vh - 108px);
    margin-bottom: 0;
    min-height: 400px;
    overflow: hidden;
  }

  .side-panel {
    height: 100%;
    overflow-y: auto;
  }

  .catalog {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
  }

  .products {
    align-content: start;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
  }
}

@media (max-width: 1100px) {
  .header-main {
    grid-template-columns: 200px minmax(320px, 1fr) auto;
  }

  .brand-logo {
    max-width: 185px;
    width: 185px;
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .header-main {
    grid-template-columns: 190px minmax(0, 1fr) auto;
  }

  #mobileCategoriesButton {
    background: #f3f6f8;
    border: 0;
    border-radius: 0;
    color: var(--navy);
    display: inline-block;
    min-width: 104px;
  }

  .layout {
    display: block;
    padding: 0 14px;
    width: 100%;
  }

  .side-panel {
    display: none;
  }
}

@media (max-width: 760px) {
  .business-strip {
    display: none;
  }

  .business-copy,
  .business-location {
    display: none;
  }

  .business-info,
  .contact-links {
    gap: 10px;
    justify-content: space-between;
    width: 100%;
  }

  .header-main {
    gap: 7px;
    grid-template-columns: 150px minmax(56px, 1fr) auto;
    height: auto;
    padding: 6px 10px 8px;
  }

  .brand-logo {
    height: 44px;
    max-width: 150px;
    width: 150px;
  }

  .mobile-contact-links {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    font-size: 11px;
    gap: 4px;
    justify-content: center;
    min-width: 0;
  }

  .mobile-contact-links a {
    color: #4d8198;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
  }

  .contact-button,
  .search-scope {
    display: none;
  }

  .topbar-actions {
    align-items: center;
    display: flex;
    flex-direction: row;
  }

  .cart-button {
    font-size: 12px;
    height: 34px;
    padding: 0 9px;
    width: auto;
  }

  .searchbar {
    grid-column: 1 / 4;
    height: 38px;
    width: 100%;
  }

  #searchInput {
    font-size: 14px;
    height: 34px;
    padding: 0 8px;
  }

  .search-icon {
    width: 40px;
  }

  #mobileCategoriesButton {
    font-size: 12px;
    height: 34px;
    min-width: 88px;
    padding: 0 7px;
  }

  .layout {
    margin-top: 8px;
    padding: 0 8px;
  }

  .products {
    gap: 9px;
  }

  .pagination {
    justify-content: center;
    padding: 8px 0 4px;
  }

  .pagination button {
    min-width: 82px;
  }

  .product {
    border-left-width: 4px;
    grid-template-columns: 105px minmax(0, 1fr);
    height: 205px;
    min-height: 205px;
  }

  .product-image {
    margin: 7px 6px;
  }

  .product-body {
    display: block;
    padding: 32px 8px 7px 3px;
  }

  .product-info {
    display: block;
  }

  .product h2 {
    font-size: 16px;
    margin-bottom: 5px;
    padding-right: 0;
  }

  .product-tag {
    font-size: 9px;
  }

  .product-meta {
    gap: 6px;
    right: 7px;
    top: 7px;
  }

  .description {
    display: none;
  }

  .price {
    font-size: 12px;
  }

  .attributes {
    display: none;
  }

  .attribute {
    display: none;
  }

  .order-controls {
    gap: 3px;
    margin-top: 4px;
    width: 100%;
  }

  .order-row {
    gap: 4px;
    grid-template-columns: minmax(48px, 1fr) auto 42px 72px;
    min-height: 30px;
  }

  .order-price-label,
  .order-price-value {
    font-size: 10px;
  }

  .sku {
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .quantity-input {
    height: 34px;
    width: 42px;
  }

  .add-to-order {
    font-size: 10px;
    height: 34px;
    padding: 0 4px;
    width: 82px;
  }
}