:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #607089;
  --line: #d8e1ed;
  --paper: #ffffff;
  --soft: #f3f4f6;
  --soft-2: #eaf4f2;
  --brand: #008f86;
  --brand-dark: #056b65;
  --accent: #c99742;
  --header: #f4c542;
  --header-dark: #d99024;
  --accent-soft: #fff2d2;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #eeeeee;
}

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

button {
  cursor: pointer;
}

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

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 42px);
  min-height: 30px;
  padding: 6px 14px;
  color: #5d430b;
  background: #ffe28a;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 10px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(146, 91, 13, 0.18);
  background: var(--header);
  box-shadow: 0 3px 10px rgba(23, 32, 51, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: #6b4300;
  font-size: 26px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: #6b4300;
  font-size: 12px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #4e390a;
  font-size: 14px;
}

.nav a:hover {
  color: #000000;
}

.header-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.18);
}

.header-search input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  padding: 0 14px;
  font-size: 15px;
  box-shadow: none;
}

.header-search input:focus {
  border: 0;
  box-shadow: none;
}

.header-search button {
  min-width: 88px;
  border: 0;
  color: #3b2b08;
  background: #ffffff;
  border-left: 1px solid var(--line);
  font-weight: 900;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.cart-trigger,
.primary-button,
.secondary-button,
.ghost-button,
.whatsapp-link {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 9px 14px;
  font-weight: 800;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #3b2b08;
  background: rgba(255, 255, 255, 0.8);
}

.cart-trigger strong {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand-dark);
}

.category-strip {
  position: sticky;
  top: 78px;
  z-index: 19;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: #f8d35d;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  font-weight: 800;
  white-space: nowrap;
}

.category-chip.active,
.category-chip:hover {
  color: #ffffff;
  border-color: #6b4300;
  background: #6b4300;
}

.primary-button,
.whatsapp-link {
  color: var(--paper);
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(0, 143, 134, 0.22);
}

.primary-button:hover,
.whatsapp-link:hover {
  background: var(--brand-dark);
}

.secondary-button {
  color: var(--brand-dark);
  border-color: var(--line);
  background: var(--paper);
}

.ghost-button {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.ghost-button.full {
  width: 100%;
}

main {
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 70;
  min-width: min(360px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 900;
  text-align: center;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.promo-stage {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 18px 0 14px;
  position: relative;
}

.promo-rail {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.promo-rail-card {
  border: 1px solid rgba(216, 225, 237, 0.86);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.08);
}

.promo-rail-search {
  display: grid;
  gap: 10px;
}

.promo-rail-search strong,
.promo-shortcuts > strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.promo-rail-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.promo-rail-search-box input {
  min-width: 0;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  padding: 0 10px;
  box-shadow: none;
}

.promo-rail-search-box button {
  min-width: 68px;
  border: 0;
  border-left: 1px solid var(--line);
  color: #3b2b08;
  background: #ffe28a;
  font-weight: 900;
}

.promo-family-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.promo-family-panel summary::after {
  content: "+";
  color: var(--brand-dark);
  font-size: 20px;
  line-height: 1;
}

.promo-family-panel[open] summary::after {
  content: "-";
}

.promo-family-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding-top: 10px;
}

.promo-family-button,
.promo-shortcut-button {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  text-align: left;
  color: var(--ink);
  background: #fbfbfb;
  font-size: 13px;
  font-weight: 800;
}

.promo-family-button.active,
.promo-family-button:hover,
.promo-shortcut-button:hover {
  color: #ffffff;
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.promo-shortcuts {
  display: grid;
  gap: 7px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.06;
}

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

.promo-carousel {
  position: relative;
  min-height: 0;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.12);
}

.promo-carousel:hover {
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.16);
}

.promo-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  text-align: left;
  color: var(--ink);
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.promo-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.promo-slide-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 0;
  background: #ffffff;
}

.promo-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.promo-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(23, 32, 51, 0.22);
}

.promo-dot.active {
  width: 18px;
  background: var(--brand-dark);
}

.market-summary {
  position: absolute;
  top: 28px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(23, 32, 51, 0.12);
}

.market-summary strong {
  color: var(--brand-dark);
  font-size: 18px;
  line-height: 1;
}

.market-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.market-summary .whatsapp-link {
  width: 100%;
  text-align: center;
}

.family-accordion {
  margin-bottom: 14px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.08);
}

.family-accordion summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.family-accordion summary::after {
  content: "+";
  color: var(--brand-dark);
  font-size: 22px;
  line-height: 1;
}

.family-accordion[open] summary::after {
  content: "-";
}

.family-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.family-card {
  display: grid;
  gap: 6px;
  min-height: 74px;
  border: 0;
  border-radius: 8px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.08);
}

.family-card:hover,
.family-card.active {
  border-color: var(--brand);
  box-shadow: 0 16px 30px rgba(0, 143, 134, 0.14);
}

.family-card strong {
  font-size: 15px;
}

.family-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.shop-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.1);
}

.filters {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfb;
}

.side-promos {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.side-promo-card {
  display: grid;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.08);
}

.side-promo-card:hover {
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.12);
}

.side-promo-card img,
.side-promo-card .side-promo-empty {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f7f7;
}

.side-promo-card strong {
  font-size: 14px;
  line-height: 1.2;
}

.side-promo-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 143, 134, 0.12);
}

textarea {
  resize: vertical;
}

.catalog-panel {
  min-width: 0;
}

.catalog-heading {
  margin-bottom: 16px;
}

.catalog-heading h2 {
  margin: 0 0 5px;
  font-size: 22px;
  line-height: 1.2;
}

.catalog-heading span {
  color: var(--muted);
  font-size: 13px;
}

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

.catalog-toolbar p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.catalog-toolbar span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

#searchHelp {
  color: var(--brand-dark);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0;
  border-top: 1px solid #f0f0f0;
  border-left: 1px solid #f0f0f0;
}

.product-card {
  display: grid;
  grid-template-rows: 180px 1fr;
  overflow: hidden;
  min-width: 0;
  border: 0;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
  background: var(--paper);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  border-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(23, 32, 51, 0.1);
  z-index: 2;
}

.product-media,
.dialog-media {
  background: var(--soft);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  display: block;
  background: #ffffff;
}

.dialog-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  display: block;
  background: #ffffff;
}

.no-photo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: linear-gradient(135deg, #eef6f5, #fbfcfe);
  font-weight: 900;
}

.product-body {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 8px;
  padding: 12px 13px 14px;
}

.product-meta {
  min-height: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-body h2 {
  margin: 0;
  min-height: 42px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.32;
}

.product-code {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.price-row {
  display: grid;
  gap: 7px;
}

.price-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.price {
  color: #222222;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.wholesale {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 9px;
  border-radius: 8px;
  color: #008744;
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.wholesale:empty {
  display: none;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-self: end;
  padding-top: 4px;
}

.service-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
}

.service-band article {
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.service-band span {
  color: var(--muted);
  line-height: 1.45;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(16px, 4vw, 42px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer div {
  display: grid;
  gap: 4px;
}

.footer strong,
.footer a {
  color: var(--ink);
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(23, 32, 51, 0.38);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(430px, 100%);
  height: 100dvh;
  padding: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font-size: 28px;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 14px 2px;
}

.cart-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.cart-line img,
.cart-line .no-photo {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-line h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.25;
}

.cart-line p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.cart-line-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 30px 38px 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.qty-control button {
  width: 30px;
  height: 30px;
  border: 0;
  background: var(--paper);
  font-weight: 900;
}

.qty-control span {
  min-width: 38px;
  text-align: center;
  font-weight: 900;
}

.line-total {
  color: var(--brand-dark);
  font-weight: 900;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.checkout {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 18px;
}

.total-row strong {
  color: var(--brand-dark);
}

.form-note {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.product-dialog,
.customer-dialog {
  width: min(860px, calc(100% - 26px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-dialog::backdrop,
.customer-dialog::backdrop {
  background: rgba(23, 32, 51, 0.42);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.dialog-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1fr;
  min-height: 420px;
}

.dialog-media {
  min-height: 420px;
}

.dialog-body {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 34px;
}

.dialog-body h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
}

#dialogCode,
#dialogWholesale,
#dialogDescription {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

#dialogPrice {
  color: var(--brand-dark);
  font-size: 30px;
}

.customer-dialog {
  width: min(520px, calc(100% - 26px));
}

.customer-form {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.customer-form h2 {
  margin: 0;
  font-size: 30px;
}

.customer-form p {
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.45;
}

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

  .header-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .nav {
    display: none;
  }

  .category-strip {
    top: 122px;
  }

  .promo-stage {
    grid-template-columns: 1fr;
  }

  .promo-rail {
    grid-template-columns: 1fr 1fr;
  }

  .promo-rail-search {
    grid-column: 1 / -1;
  }

  .promo-carousel {
    min-height: 0;
    max-height: none;
  }

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

  .filters {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .filters label:first-child {
    grid-column: 1 / -1;
  }

  .service-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 8px, 1280px);
  }

  .topbar {
    min-height: 64px;
    gap: 10px;
    padding: 9px 10px;
  }

  .utility-bar {
    justify-content: start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 22px;
  }

  .cart-trigger {
    padding-inline: 10px;
  }

  .cart-trigger span {
    display: none;
  }

  .promo-stage {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    padding-top: 12px;
  }

  .promo-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .promo-rail-card {
    padding: 10px;
  }

  .promo-rail-search {
    grid-column: 1 / -1;
  }

  .promo-rail-search strong,
  .promo-shortcuts > strong,
  .promo-family-panel summary {
    font-size: 13px;
  }

  .promo-rail-search-box input,
  .promo-rail-search-box button {
    min-height: 38px;
    padding: 8px 9px;
    font-size: 13px;
  }

  .promo-family-list {
    max-height: 132px;
    overflow-y: auto;
  }

  .promo-family-button,
  .promo-shortcut-button {
    min-height: 34px;
    padding: 8px 9px;
    font-size: 12px;
    line-height: 1.15;
  }

  .promo-carousel {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .promo-slide-image {
    height: 100%;
    max-height: none;
    padding: 0;
  }

  .market-summary {
    top: 8px;
    right: 8px;
    padding: 5px 8px;
  }

  .market-summary strong {
    font-size: 15px;
  }

  .market-summary span {
    font-size: 11px;
  }

  .family-accordion {
    margin-bottom: 8px;
  }

  .family-accordion summary {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .family-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 10px 10px;
  }

  .family-card {
    min-height: 64px;
    padding: 10px;
  }

  .family-card strong {
    font-size: 13px;
  }

  .family-card span {
    font-size: 11px;
  }

  .shop-layout {
    gap: 8px;
    padding: 6px;
    border-radius: 6px;
  }

  h1 {
    font-size: 28px;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .filters label:first-child {
    grid-column: 1 / -1;
  }

  label {
    gap: 5px;
    font-size: 11px;
  }

  input,
  select,
  textarea {
    min-height: 38px;
    padding: 8px 9px;
    font-size: 13px;
  }

  .side-promos {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .side-promo-card {
    gap: 5px;
    padding: 8px;
  }

  .side-promo-card strong {
    font-size: 12px;
  }

  .side-promo-card span {
    display: none;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: row;
    margin-bottom: 8px;
  }

  .catalog-heading {
    margin-bottom: 8px;
  }

  .catalog-heading h2 {
    font-size: 18px;
  }

  .catalog-heading span,
  .catalog-toolbar span {
    font-size: 11px;
  }

  .catalog-toolbar p {
    font-size: 13px;
  }

  .catalog-toolbar .ghost-button {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
  }

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

  .product-card {
    grid-template-rows: 98px 1fr;
    border: 1px solid #f0f0f0;
    border-radius: 0;
  }

  .product-media img {
    padding: 6px;
  }

  .product-body {
    gap: 5px;
    padding: 7px;
  }

  .product-meta,
  .product-code {
    display: none;
  }

  .product-body h2 {
    display: -webkit-box;
    min-height: 45px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .price {
    font-size: 18px;
  }

  .wholesale {
    min-height: 0;
    padding: 5px 6px;
    font-size: 10px;
    line-height: 1.15;
  }

  .product-actions {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-top: 0;
  }

  .details-button {
    display: none;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
  }

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

  .dialog-media {
    min-height: 260px;
  }

  .dialog-body {
    padding: 22px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .product-card {
    grid-template-rows: 88px 1fr;
  }

  .product-body {
    padding: 6px;
  }

  .product-body h2 {
    min-height: 42px;
    font-size: 11px;
  }

  .price {
    font-size: 16px;
  }

  .wholesale {
    font-size: 9px;
  }

  .add-button {
    font-size: 11px;
  }
}
