:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #161413;
  background: #f4f5f7;
  --red: #a5000b;
  --wine: #69020b;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #1379bb; outline-offset: 4px; }

.header {
  color: white;
  background:
    linear-gradient(162deg, transparent 72%, #a72a4129 72% 83%, transparent 83%),
    linear-gradient(100deg, #710209, #540007 48%, #65121c 82%, #460b13);
  border-bottom: 1px solid #a1222c;
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(90px, .68fr);
  align-items: center;
  min-height: clamp(72px, 5.6vw, 104px);
  max-width: 1672px;
  padding: 0 5.4% 0 9.1%;
  margin-inline: auto;
  gap: clamp(24px, 5vw, 85px);
}
.logo { justify-self: start; display: block; width: clamp(164px, 13.4vw, 225px); line-height: 0; }
.logo img { width: 100%; height: auto; }
nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 54px); white-space: nowrap; }
nav a { position: relative; padding: 14px 0; font-size: clamp(15px, 1.08vw, 19px); font-weight: 700; }
nav a:hover::after, nav a.active::after {
  content: "";
  position: absolute;
  inset: auto -10px 0;
  height: 2px;
  background: #fb2435;
}
.search-button {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 44px;
  height: 44px;
  color: white;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  background: transparent;
}
.search-button:hover { background: #ffffff20; }
.search-button svg { width: 24px; }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(345px, 26.61vw, 540px);
  background: #f4e9df url("assets/hero.webp") center / cover no-repeat;
}
.hero-copy { padding: 8px 0 18px; margin-left: 4.8%; width: 31%; }
.eyebrow {
  margin: 0 0 clamp(8px, .85vw, 15px);
  font-size: clamp(12px, .9vw, 16px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .36em;
}
h1 {
  margin: 0;
  color: #191918;
  font-size: clamp(31px, 2.68vw, 54px);
  font-style: italic;
  letter-spacing: -.048em;
  line-height: 1.04;
}
h1 em { position: relative; color: #b5000a; white-space: nowrap; }
h1 em::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 18%;
  height: .29em;
  bottom: -.29em;
  border-top: 3px solid #9d0008;
  border-radius: 50%;
  transform: rotate(1.1deg);
}
.hero-categories { margin: clamp(22px, 1.9vw, 34px) 0 clamp(18px, 1.65vw, 29px); font-size: clamp(15px, 1.14vw, 21px); }
.hero-categories span { display: inline-block; margin: 0 .56em; color: #424040; }
.actions { display: flex; flex-wrap: wrap; gap: clamp(10px, .95vw, 17px); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 0 1.12em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: clamp(14px, .96vw, 18px);
  font-weight: 700;
  white-space: nowrap;
}
.actions .button { min-height: clamp(42px, 2.9vw, 56px); padding: 0 1.55em; }
.primary { color: white; background: linear-gradient(110deg, #d4000b, #67000a); box-shadow: 0 4px 13px #85071128; }
.primary:hover { background: #ac0011; }
.secondary { color: #141313; background: #fffc; border-color: #998985; }
.secondary:hover { background: white; }

.brands, .categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-inline: auto;
}
.brands {
  position: relative;
  width: 90%;
  gap: clamp(12px, 1.05vw, 22px);
  margin-top: 1px;
  margin-bottom: clamp(24px, 1.9vw, 36px);
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 18px);
  min-height: clamp(78px, 5.34vw, 106px);
  padding: 5px .7vw;
  border: 1px solid #fff;
  border-radius: clamp(16px, 1.7vw, 30px);
  background: linear-gradient(145deg, #fff, #f7f8fa 76%, #fff);
  box-shadow: 0 4px 13px #34323c25, inset 0 -1px #e4c2ac;
}
.brand img { width: 37%; height: auto; max-width: 174px; mix-blend-mode: multiply; }
.availability { display: flex; align-items: center; gap: clamp(7px, .65vw, 12px); padding-left: .8vw; border-left: 1px solid #b9b9bf; }
.availability p { margin: 0; line-height: 1.42; font-size: clamp(14px, .95vw, 18px); }
.availability strong { display: block; color: #115811; }
.brand.water strong, .brand.water svg { color: #09547a; }
.brand.cleaning svg { color: #17682d; }
.brand.food svg { color: #d80019; }
.availability svg { display: block; width: 20px; height: 20px; }

.categories { width: 94%; gap: clamp(12px, 1.05vw, 22px); }
.category {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(138px, 9.3vw, 185px);
  padding: clamp(12px, 1vw, 21px) clamp(15px, 1.75vw, 34px);
  color: white;
  border: 3px solid white;
  border-radius: clamp(16px, 1.65vw, 32px);
  box-shadow: 0 4px 8px #25243524;
  background: var(--card-bg);
}
.category::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 58%;
  background: var(--art) right bottom / auto 100% no-repeat;
}
.category.food { --card-bg: linear-gradient(115deg, #7e030d, #bd0019 67%, #970014); --art: url("assets/category-food.webp"); --ink: #86000c; }
.category.water { --card-bg: linear-gradient(115deg, #005786, #007cbc 74%, #007eaa); --art: url("assets/category-water.webp"); --ink: #053962; }
.category.cleaning { --card-bg: linear-gradient(115deg, #1b6634, #3a9b4d 74%, #347f35); --art: url("assets/category-cleaning.webp"); --ink: #174627; }
.category h2 { margin: 0 0 .2em; font-size: clamp(22px, 1.8vw, 36px); letter-spacing: -.025em; }
.category p { margin: 0; font-size: clamp(14px, .92vw, 17px); }
.category .button { margin-top: 1.2em; min-height: 35px; color: var(--ink); background: white; }
.category .button:hover { background: #f4f0e8; }
.category-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 1.2em;
}
.category .category-actions .button { margin-top: 0; }
.category .category-campaigns-link { border-color: #ffffffa6; color: white; background: var(--ink); }
.category .category-campaigns-link:hover { background: var(--ink); filter: brightness(.82); }

.benefits {
  display: grid;
  grid-template-columns: 1.14fr 1fr 1.2fr 1fr 1.05fr;
  align-items: center;
  width: 89%;
  margin: clamp(25px, 1.85vw, 40px) auto 0;
  padding-bottom: clamp(26px, 2.25vw, 48px);
}
.benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.05vw, 21px);
  min-width: 0;
  padding: 0 .7vw;
  border: 0;
  border-right: 1px solid #c3c3c8;
  color: inherit;
  background: none;
  text-align: left;
}
.benefit:last-child { border-right: 0; }
.benefit svg { display: block; width: clamp(32px, 2.9vw, 56px); height: auto; color: #075821; }
.benefit:first-child svg, .benefit:last-child svg { color: #95000e; }
.benefit strong, .benefit small { display: block; line-height: 1.35; }
.benefit strong { font-size: clamp(14px, 1vw, 18px); }
.benefit small { font-size: clamp(13px, .86vw, 16px); color: #303c4b; }
a.benefit:hover strong, button.benefit:hover strong { text-decoration: underline; }

dialog {
  width: min(800px, calc(100% - 40px));
  max-height: min(85vh, 800px);
  padding: clamp(20px, 3vw, 42px);
  border: 1px solid #ddd;
  border-radius: 24px;
  color: inherit;
  box-shadow: 0 24px 78px #0005;
}
dialog::backdrop { background: #2312179c; }
#info { max-width: 520px; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dialog-header h2 { margin: 0; }
.close { width: 38px; height: 38px; font-size: 1.65rem; color: var(--wine); background: #f7edef; border: 0; border-radius: 50%; }
.search-field { display: grid; gap: 7px; margin: 18px 0; }
.search-field input { width: 100%; border: 1px solid #999; border-radius: 8px; padding: 10px 12px; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 14px; }
.product { padding: 12px; border: 1px solid #eee; border-radius: 12px; text-align: center; }
.product img { width: 100%; height: 140px; object-fit: contain; }
.product h3 { margin: .65em 0 0; font-size: 1rem; }

@media (max-width: 1050px) {
  .header-inner { padding-inline: 4%; gap: 20px; grid-template-columns: auto 1fr auto; }
  nav { justify-content: center; gap: clamp(13px, 2.4vw, 26px); }
  .hero-copy { width: 43%; }
  .hero { background-position: 34% center; }
}
@media (max-width: 740px) {
  .header-inner { grid-template-columns: 1fr auto; padding-block: 8px; }
  nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; }
  .hero { align-items: end; background-size: auto 260px; background-position: 65% top; min-height: 500px; padding-top: 255px; }
  .hero-copy { width: auto; margin-inline: 6%; padding: 18px 0 35px; }
  .brands, .categories { grid-template-columns: 1fr; width: 90%; }
  .brand img { max-width: 125px; }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .benefit { justify-content: start; border: 0; }
}

.category.cleaning::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, transparent 34%, #1f713b70 51%, transparent 69%);
}
.category.food p { text-shadow: 0 1px 4px #57000b; }
.category.cleaning h2, .category.cleaning p { text-shadow: 0 1px 4px #153820; }


.menu-toggle { display: none; }
.product { padding: 0; }
.product a {
  display: block;
  min-height: 100%;
  padding: 12px;
  border-radius: inherit;
}
.product a:hover { background: #faf2f3; }
.product a:hover h3 { color: var(--wine); text-decoration: underline; }

@media (max-width: 740px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 9px;
    min-height: 72px;
    padding-inline: 5%;
  }
  .logo { width: clamp(130px, 35vw, 164px); }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid #ffffff55;
    border-radius: 50%;
    color: white;
  }
  .menu-toggle svg { width: 22px; }
  #main-navigation {
    display: none;
    grid-row: 2;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 14px;
    padding: 5px 0 7px;
    border-top: 1px solid #ffffff35;
  }
  #main-navigation.is-open { display: grid; }
  #main-navigation a { padding: 11px 6px; }
  #main-navigation a::after { inset-inline: 6px; }

  .hero {
    display: block;
    min-height: auto;
    padding: 0;
    background: #fff4e9;
  }
  .hero::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 2.76;
    background: url("assets/hero-mobile.webp") center / cover no-repeat;
  }
  .hero-copy { padding: 25px 0 29px; }
  .hero-copy h1 { font-size: clamp(27px, 7.6vw, 44px); }
  .hero-categories { margin: 21px 0 19px; font-size: clamp(13px, 3.7vw, 16px); }
  .hero-categories span { margin: 0 .35em; }
  .actions .button, .category .button { min-height: 44px; }

  .brands { margin-top: 18px; }
  .brand { justify-content: start; gap: 14px; padding: 9px 12px; }
  .brand img { width: 35%; }
  .availability { padding-left: 12px; }
  .categories { gap: 12px; }
  .category { min-height: 145px; padding: 14px 15px; }
  .category::before {
    width: 62%;
    mask-image: linear-gradient(to right, transparent, black 31%);
  }
  .category p { max-width: 65%; line-height: 1.35; }
  .category.food p { max-width: 58%; }
  .category .button, .category-actions { margin-top: 10px; }
  .benefits { align-items: stretch; gap: 16px 12px; }
  .benefit { padding: 5px 0; }

  dialog { width: calc(100% - 24px); max-height: 88dvh; padding: 17px; }
  .close { width: 44px; height: 44px; }
  .search-field input { font-size: 16px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product img { height: 120px; }
}
