:root {
  --ink: #171329;
  --muted: #696779;
  --paper: #fbf9f6;
  --cream: #fffefd;
  --wine: #9d0d4a;
  --wine-dark: #780633;
  --wine-soft: #f8e9ee;
  --line: #e7dfdb;
  --green: #137044;
  --green-soft: #dff4e8;
  --max-width: 1376px;
  --shadow: 0 14px 38px rgba(53, 32, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.offscreen {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  min-height: 72px;
  background: rgba(255, 254, 253, .97);
  border-bottom: 1px solid #eee8e4;
}
.header-inner {
  width: min(var(--max-width), calc(100% - 72px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #a60d4d, #7a0736);
  border-radius: 50%;
  box-shadow: 0 6px 13px rgba(121, 9, 55, .25);
}
.brand-icon {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-copy { min-width: 0; display: grid; gap: 1px; }
.brand-name {
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.brand-tagline { color: var(--muted); font-size: .78rem; }

nav {
  display: flex;
  padding: 3px;
  gap: 0;
  border: 1px solid #eadde1;
  border-radius: 999px;
  background: #fff9fb;
}
nav a {
  min-width: 122px;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--wine-dark);
  font-size: .86rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
nav a span {
  min-width: 30px;
  margin-left: 8px;
  padding: 2px 8px;
  display: inline-block;
  color: var(--wine);
  background: #f6e2e9;
  border-radius: 99px;
  font-size: .78rem;
}
nav a:hover, nav a[aria-current="page"] { color: white; background: linear-gradient(135deg, #a70f4f, #87083d); }
nav a:hover span, nav a[aria-current="page"] span { color: var(--wine-dark); background: white; }
.header-updated {
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  white-space: nowrap;
}

.status-warning {
  padding: 9px 24px;
  color: #684808;
  background: #f5e4b9;
  border-bottom: 1px solid #e5ca83;
  text-align: center;
  font-size: .8rem;
}

main { min-width: 0; }
.catalog-hero {
  min-height: 288px;
  background-image: linear-gradient(90deg, rgba(255, 253, 250, .12), rgba(255, 253, 250, 0)), url("header_hero_image.png");
  background-position: center 54%;
  background-size: cover;
}
.hero-inner {
  width: min(var(--max-width), calc(100% - 72px));
  min-height: 288px;
  margin: 0 auto;
  padding: 27px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-eyebrow, .eyebrow {
  margin: 0 0 8px;
  color: var(--wine);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.catalog-hero h1, .detail-copy h1, .section-heading h2, .empty-state h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -.045em;
}
.catalog-hero h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 4vw, 3.65rem);
  line-height: .96;
}
.hero-lead {
  margin: 8px 0 0;
  color: #626071;
  font-size: 1.12rem;
}
.hero-benefits {
  width: min(640px, 50%);
  margin: auto 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
}
.hero-benefits li { min-width: 0; display: flex; align-items: center; gap: 11px; }
.benefit-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--wine);
  background: rgba(248, 227, 234, .82);
  border-radius: 50%;
}
.benefit-icon svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-benefits li > span:last-child { min-width: 0; display: grid; line-height: 1.15; }
.hero-benefits strong { font-size: .77rem; white-space: nowrap; }
.hero-benefits small { margin-top: 3px; color: var(--muted); font-size: .69rem; white-space: nowrap; }

.toolbar,
.product-grid,
.empty-state,
.detail-shell {
  width: min(var(--max-width), calc(100% - 72px));
  margin-right: auto;
  margin-left: auto;
}
.toolbar { margin-top: 0; }
.filter-shell {
  padding: 13px 16px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 254, 253, .96);
  box-shadow: 0 7px 18px rgba(80, 53, 62, .035);
}
.control-form { min-width: 0; }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) 102px; gap: 10px; }
.search-field { min-width: 0; position: relative; }
.search-icon {
  width: 17px;
  height: 17px;
  position: absolute;
  top: 50%;
  left: 17px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translateY(-57%);
  pointer-events: none;
}
.search-icon::after {
  width: 7px;
  height: 2px;
  position: absolute;
  right: -5px;
  bottom: -3px;
  content: "";
  background: var(--ink);
  border-radius: 2px;
  transform: rotate(45deg);
}
.search-field input,
.filter-field select,
.sort-field select,
.price-inputs input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dddde3;
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, .88);
  outline: none;
}
.search-field input { padding: 0 16px 0 51px; }
.search-field input::placeholder { color: #777589; opacity: 1; }
.filter-field select, .sort-field select { padding: 0 35px 0 13px; }
.price-inputs input { padding: 0 13px; }
.search-field input:focus, .filter-field select:focus, .sort-field select:focus, .price-inputs input:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(157, 13, 74, .1);
}
.search-button,
.filter-actions button,
.sort-button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, #a80d50, #87083d);
  font-weight: 750;
  cursor: pointer;
}
.search-button:hover, .filter-actions button:hover, .sort-button:hover, .store-link:hover, .store-button:hover { background: var(--wine-dark); }
.filter-form { margin-top: 11px; }
.filter-controls {
  display: grid;
  grid-template-columns: minmax(130px, 1.05fr) minmax(150px, 1.05fr) minmax(140px, 1fr) minmax(125px, .8fr) minmax(265px, 1.6fr) minmax(135px, .85fr);
  align-items: end;
  gap: 12px;
}
.filter-field, .price-inputs label { min-width: 0; display: grid; gap: 4px; }
.filter-field > span, .price-inputs label > span {
  padding-left: 2px;
  color: #666477;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.price-filter { min-width: 0; display: grid; gap: 3px; }
.price-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 9px; }
.price-separator { padding-bottom: 14px; color: var(--muted); }
.price-inputs input[aria-invalid="true"] { border-color: #a52020; }
.price-error { margin: 3px 2px 0; color: #a52020; font-size: .7rem; font-weight: 700; }
.filter-actions { min-width: 0; display: grid; gap: 3px; }
.filter-actions button { width: 100%; }
.clear-filters {
  min-height: 18px;
  color: var(--muted);
  font-size: .7rem;
  text-align: center;
  text-underline-offset: 2px;
}
.results-bar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.catalog-status { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.catalog-status strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.catalog-status > span { color: #d2a63d; }
.catalog-status small { color: var(--muted); font-size: .75rem; }
.sort-form { display: flex; align-items: center; gap: 9px; }
.sort-field { display: flex; align-items: center; gap: 9px; }
.sort-field > span { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.sort-field select { min-width: 205px; min-height: 42px; }
.sort-button { min-height: 42px; padding: 0 16px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.product-card {
  min-width: 0;
  min-height: 435px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 254, 253, .92);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-image {
  height: 214px;
  padding: 18px 24px 7px;
  display: grid;
  place-items: center;
  position: relative;
  text-decoration: none;
  background: linear-gradient(155deg, rgba(255, 253, 250, .35), #fff);
}
.product-image img { max-height: 190px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.image-placeholder { color: var(--wine-soft); font-size: 4rem; }
.discount-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 7px 11px;
  border-radius: 7px;
  color: white;
  background: linear-gradient(135deg, #aa0e50, #85083b);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.product-content {
  min-height: 0;
  padding: 10px 20px 13px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-info {
  margin: 0;
  color: var(--wine);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .05em;
  line-height: 1.3;
  text-transform: uppercase;
}
.product-details {
  min-height: 1rem;
  margin: 3px 0 5px;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 650;
  line-height: 1.2;
  text-transform: uppercase;
}
.product-details span:not(:last-child)::after { padding: 0 4px; content: "|"; color: #aaa4ac; }
.product-card h2 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -.018em;
}
.product-card h2 a { text-decoration: none; }
.product-card h2 a:hover { color: var(--wine); }
.price-line { min-height: 30px; display: flex; align-items: baseline; gap: 10px; }
.price-line strong { color: var(--wine); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; line-height: 1; }
.price-line del { color: var(--muted); font-size: .78rem; }
.saving {
  width: fit-content;
  min-height: 0;
  margin: 4px 0 10px;
  padding: 3px 11px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.25;
}
.saving.regular { padding-left: 0; color: var(--muted); background: transparent; font-weight: 500; }
.card-actions {
  margin-top: auto;
  padding-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-actions a { color: var(--wine); font-size: .68rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.history-link { display: inline-flex; align-items: center; gap: 7px; }
.history-link svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.store-link {
  padding: 9px 12px;
  border-radius: 8px;
  color: white !important;
  background: linear-gradient(135deg, #a70e4f, #84073a);
}
.store-link span { margin-left: 4px; }

.empty-state {
  min-height: 320px;
  padding: 50px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border: 1px dashed #cbbeb7;
  border-radius: 18px;
  background: rgba(255, 255, 255, .52);
}
.empty-state > span { color: #d2a63d; font-size: 2.5rem; }
.empty-state h2 { margin-top: 12px; font-size: 2rem; }
.empty-state p { max-width: 560px; color: var(--muted); }

.detail-shell { padding-top: 35px; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: .86rem; font-weight: 650; text-decoration: none; }
.back-link:hover { color: var(--wine); }
.product-detail {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(280px, .75fr) 1.25fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: var(--shadow);
}
.detail-image { min-height: 430px; padding: 36px; display: grid; place-items: center; color: var(--wine-soft); background: linear-gradient(145deg, #f1e7e3, #fbf8f4); font-size: 6rem; }
.detail-image img { max-height: 360px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.detail-copy { padding: clamp(36px, 6vw, 85px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.detail-copy h1 { max-width: 760px; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: .98; }
.detail-copy .product-variant { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 7px; font-size: .82rem; font-weight: 750; }
.detail-copy .product-variant span { padding: 6px 10px; border-radius: 999px; }
.detail-copy .variant-size { color: white; background: var(--wine); }
.detail-copy .variant-package { color: var(--wine-dark); background: var(--wine-soft); border: 1px solid #ead5dd; }
.detail-price { margin: 24px 0 16px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.detail-price del { color: var(--muted); }
.detail-price strong { color: var(--wine); font-family: Georgia, serif; font-size: 2.2rem; }
.detail-price span { color: var(--green); font-size: .85rem; font-weight: 750; }
.wine-facts { width: 100%; max-width: 630px; margin: 0 0 22px; border-top: 1px solid var(--line); }
.wine-facts div { padding: 9px 0; display: grid; grid-template-columns: 90px 1fr; gap: 16px; border-bottom: 1px solid var(--line); }
.wine-facts dt { color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.wine-facts dd { margin: 0; font-size: .84rem; }
.availability { margin: 0 0 22px; font-size: .82rem; font-weight: 700; }
.availability.available { color: var(--green); }
.availability.unavailable { color: #a04738; }
.store-button { padding: 13px 18px; border-radius: 9px; color: white; background: var(--wine); font-size: .84rem; font-weight: 750; text-decoration: none; }
.history-section { margin-top: 30px; padding: clamp(25px, 5vw, 60px); border: 1px solid var(--line); border-radius: 22px; background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2 { font-size: 2.8rem; }
.history-stats { display: flex; gap: 34px; }
.history-stats div { display: grid; gap: 3px; }
.history-stats span { color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.history-stats strong { color: var(--wine); font-family: Georgia, serif; font-size: 1.25rem; }
.chart { min-height: 340px; margin-top: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 16px; background: #fbf8f4; color: var(--muted); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: #ded5ce; stroke-width: 1; }
.chart-label { fill: #776a70; font-family: system-ui, sans-serif; font-size: 14px; }
.chart-area { fill: rgba(157, 13, 74, .1); }
.chart-line { fill: none; stroke: var(--wine); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: #d2a63d; stroke: #fffdf8; stroke-width: 2; }
.history-table-wrap { margin-top: 30px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: #f4eee8; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
.table-status { font-size: .78rem; font-weight: 750; }
.table-status.available { color: var(--green); }
.table-status.unavailable { color: #a04738; }

footer {
  width: min(var(--max-width), calc(100% - 72px));
  margin: 20px auto 0;
  padding: 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .66rem;
}
.footer-source { display: flex; align-items: center; gap: 13px; }
.footer-source p, .health-note { margin: 0; }
.footer-source a { text-underline-offset: 2px; }
.footer-mark { width: 25px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; color: var(--wine); }
.footer-mark .brand-icon { width: 23px; height: 28px; }
.health-note { text-align: right; }

@media (min-width: 1181px) {
  .toolbar { margin-top: 12px; }
  .catalog-hero {
    position: relative;
    isolation: isolate;
    background-image: none;
  }
  .catalog-hero::before {
    width: calc(50% + min(688px, calc(50% - 36px)));
    position: absolute;
    inset: 0 auto 0 0;
    z-index: -1;
    content: "";
    background-image: linear-gradient(90deg, rgba(255, 253, 250, .12), rgba(255, 253, 250, 0)), url("header_hero_image.png");
    background-position: center 54%;
    background-size: cover;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 7px 18px rgba(80, 53, 62, .035);
  }
  .filter-controls { align-items: start; }
  .filter-actions { padding-top: 19px; }
}

@media (max-width: 1180px) {
  .header-inner, .hero-inner, .toolbar, .product-grid, .empty-state, .detail-shell, footer { width: min(100% - 48px, var(--max-width)); }
  .brand-name { font-size: 1.2rem; }
  .header-updated { font-size: .7rem; }
  .filter-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .price-filter { grid-column: span 2; }
  .filter-actions { grid-column: span 2; grid-template-columns: minmax(140px, 1fr) auto; align-items: center; gap: 12px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-updated { display: none; }
  .hero-benefits { width: min(680px, 70%); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 700px) {
  .site-header { min-height: 174px; }
  .header-inner {
    width: 100%;
    min-height: 174px;
    padding: 17px 20px 8px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    gap: 8px;
  }
  .brand { justify-self: center; gap: 12px; }
  .brand-mark { width: 45px; height: 45px; }
  .brand-name { font-size: 1.23rem; }
  .brand-tagline { font-size: .72rem; }
  nav { width: min(100%, 340px); }
  nav a { min-width: 0; flex: 1; padding: 7px 13px; }
  .header-updated { display: block; justify-self: center; font-size: .72rem; }

  .catalog-hero {
    min-height: 330px;
    background-position: 58% center;
    background-size: auto 100%;
  }
  .hero-inner {
    width: 100%;
    min-height: 330px;
    padding: 28px 24px 19px;
  }
  .hero-eyebrow { font-size: .66rem; }
  .catalog-hero h1 { max-width: 76%; font-size: clamp(2.15rem, 9.5vw, 3rem); }
  .catalog-hero .desktop-break { display: none; }
  .hero-lead { max-width: 66%; font-size: .95rem; line-height: 1.28; }
  .hero-benefits { width: 100%; gap: 9px; }
  .hero-benefits li { gap: 7px; }
  .benefit-icon { width: 35px; height: 35px; }
  .benefit-icon svg { width: 20px; height: 20px; }
  .hero-benefits strong { font-size: .66rem; white-space: normal; }
  .hero-benefits small { font-size: .59rem; white-space: normal; }

  .toolbar, .product-grid, .empty-state, .detail-shell, footer { width: calc(100% - 28px); }
  .filter-shell { padding: 13px; border-radius: 13px; }
  .search-form { grid-template-columns: minmax(0, 1fr) 112px; }
  .filter-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .price-filter, .filter-actions { grid-column: 1 / -1; }
  .filter-actions { grid-template-columns: 1fr; gap: 6px; }
  .filter-actions button { min-height: 46px; }
  .clear-filters { min-height: 22px; }
  .results-bar { min-height: 74px; gap: 12px; }
  .catalog-status { display: block; }
  .catalog-status strong { font-size: 1.25rem; line-height: 1.05; }
  .catalog-status > span, .catalog-status small { display: none; }
  .sort-form { min-width: 0; flex: 1; justify-content: flex-end; gap: 6px; }
  .sort-field { min-width: 0; gap: 6px; }
  .sort-field select { min-width: 0; width: min(42vw, 190px); }
  .sort-button { min-height: 42px; padding: 0 12px; }

  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card {
    min-height: 238px;
    display: grid;
    grid-template-columns: minmax(115px, 34%) minmax(0, 1fr);
  }
  .product-image { width: 100%; height: 100%; min-height: 238px; padding: 43px 11px 11px; }
  .product-image img { max-width: 100%; max-height: 190px; }
  .discount-badge { top: 12px; left: 12px; padding: 7px 10px; }
  .product-content { padding: 14px 14px 11px; }
  .product-info { font-size: .62rem; }
  .product-details { min-height: auto; margin-bottom: 6px; font-size: .61rem; }
  .product-card h2 { margin-bottom: 8px; font-size: 1rem; }
  .price-line strong { font-size: 1.55rem; }
  .saving { margin-bottom: 7px; }
  .card-actions { align-items: end; }
  .card-actions a { font-size: .66rem; }
  .store-link { padding: 9px 11px; }

  .product-detail { grid-template-columns: 1fr; }
  .detail-image { min-height: 320px; }
  .detail-copy { padding: 36px 26px 44px; }
  .history-stats { width: 100%; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .chart { min-height: 240px; }
  footer { align-items: flex-start; flex-direction: column; }
  .health-note { text-align: left; }
}

@media (max-width: 430px) {
  .header-inner { padding-right: 14px; padding-left: 14px; }
  .brand-name { font-size: 1.08rem; }
  .catalog-hero h1 { max-width: 78%; font-size: 2rem; }
  .hero-lead { max-width: 68%; font-size: .85rem; }
  .hero-benefits { gap: 5px; }
  .benefit-icon { width: 31px; height: 31px; }
  .benefit-icon svg { width: 18px; height: 18px; }
  .hero-benefits strong { font-size: .59rem; }
  .hero-benefits small { font-size: .53rem; }
  .search-form { grid-template-columns: minmax(0, 1fr) 92px; gap: 7px; }
  .search-field input { padding-left: 43px; font-size: .88rem; }
  .search-icon { left: 15px; }
  .filter-field > span, .price-inputs label > span { font-size: .6rem; }
  .filter-field select, .price-inputs input { padding-left: 10px; font-size: .88rem; }
  .results-bar { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.5fr); }
  .catalog-status strong { font-size: 1.1rem; }
  .sort-field > span { display: none; }
  .sort-field select { width: 100%; font-size: .82rem; }
  .sort-button { padding: 0 10px; font-size: .78rem; }
  .product-card { grid-template-columns: minmax(105px, 33%) minmax(0, 1fr); }
  .product-content { padding-right: 10px; padding-left: 10px; }
  .product-card h2 { font-size: .92rem; }
  .card-actions { gap: 5px; }
  .card-actions a { font-size: .6rem; }
  .history-link { gap: 4px; }
  .history-link svg { width: 16px; height: 16px; }
  .store-link { padding: 8px; }
  .history-section { padding: 24px 16px; }
  .history-stats { display: grid; grid-template-columns: 1fr 1fr; }
  th, td { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card { transition: none; }
}
