:root {
  --red: #d71920;
  --red2: #b80f16;
  --navy: #10295a;
  --ink: #222;
  --muted: #666;
  --line: #d9d9d9;
  --soft: #f4f4f4;
  --white: #fff;
  --body: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.container {
  width: min(1220px, calc(100% - 40px));
  margin: auto;
}
.topbar {
  background: #2e2e2e;
  color: #fff;
  font-size: 0.76rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 116px;
  flex-wrap: wrap;
  padding-top: 15px;
}
.brand {
  display: flex;
  align-items: center;
  flex: none;
}
.brand img {
  width: 225px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.site-search {
  display: flex;
  flex: 1;
  min-width: 280px;
  margin: 0;
}
.site-search input {
  height: 44px;
  flex: 1;
  border: 1px solid #aaa;
  border-right: 0;
  padding: 0 15px;
  font: inherit;
}
.site-search button {
  height: 44px;
  background: var(--red);
  color: #fff;
  border: 0;
  padding: 0 25px;
  font-weight: 700;
  cursor: pointer;
}
.site-search button:hover {
  background: var(--red2);
}
.nav-links {
  width: 100%;
  display: flex;
  order: 5;
  border-top: 1px solid var(--line);
  height: 45px;
  align-items: center;
  gap: 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-links:before {
  content: "Shop departments";
  align-self: stretch;
  display: flex;
  align-items: center;
  background: var(--red);
  color: #fff;
  padding: 0 24px;
  margin-right: 10px;
}
.nav-links a {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-right: 1px solid #eee;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  background: #f7f7f7;
}
.menu-btn {
  display: none;
  margin-left: auto;
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 13px;
  font-size: 1.1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  cursor: pointer;
}
.btn:hover {
  background: var(--red2);
  border-color: var(--red2);
}
.btn-outline {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}
.hero {
  min-height: 520px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(
      90deg,
      rgba(10, 26, 61, 0.96) 0%,
      rgba(10, 26, 61, 0.87) 42%,
      rgba(10, 26, 61, 0.16) 68%
    ),
    url("assets/hero-electrical-plumbing.png") 70% center/cover;
}
.hero-copy {
  max-width: 590px;
  padding: 65px 0;
}
.eyebrow {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero h1,
.page-hero h1,
.section h2 {
  margin: 10px 0 18px;
  line-height: 1.05;
}
.hero h1 {
  font-size: clamp(2.8rem, 5.8vw, 5.3rem);
  text-transform: uppercase;
}
.hero h1 span {
  color: #fff;
}
.hero p {
  max-width: 530px;
  color: #e3e8f0;
  font-size: 1.05rem;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 27px;
}
.trustbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.trustgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trustitem {
  position: relative;
  padding: 20px 25px 20px 58px;
  border-right: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.92rem;
}
.trustitem:before {
  content: "✓";
  position: absolute;
  left: 25px;
  top: 19px;
  color: var(--red);
  font-size: 1.25rem;
}
.trustitem small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.section {
  padding: 66px 0;
}
.section.alt {
  background: var(--soft);
  border-block: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.section h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  color: #222;
}
.section-head p {
  max-width: 530px;
  color: var(--muted);
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  transition: 0.18s;
}
.card:hover {
  border-color: #999;
  box-shadow: 0 6px 17px rgba(0, 0, 0, 0.11);
}
.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.card-body {
  padding: 19px 20px 22px;
}
.card h3 {
  font-size: 1.03rem;
  margin: 0 0 7px;
  color: #222;
}
.card p {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0;
}
.link {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  font-size: 0.82rem;
  margin-top: 13px;
}
.grid.five {
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.grid.five .card,
.grid.five .card:nth-child(4),
.grid.five .card:nth-child(5) {
  grid-column: auto;
}
.grid.five .card img {
  aspect-ratio: 1.1;
}
.grid.five .card-body {
  min-height: 145px;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
}
.feature > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}
.feature > div {
  padding: 48px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
}
.ticks li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
}
.ticks li:before {
  content: "✓";
  color: var(--red);
  margin-right: 10px;
}
.cta {
  background: var(--navy);
  color: #fff;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-left: 7px solid var(--red);
}
.cta h2 {
  color: #fff;
  margin: 0;
}
.page-hero {
  padding: 58px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow {
  color: var(--red);
}
.page-hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  text-transform: uppercase;
  margin: 8px 0 12px;
}
.page-hero p {
  max-width: 700px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.filter {
  padding: 9px 16px;
  border: 1px solid #bbb;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.filter.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.product-card[hidden] {
  display: none;
}
.poster-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.poster-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 35px;
}
.contact-list {
  display: grid;
  gap: 10px;
}
.contact-item {
  padding: 19px;
  background: var(--soft);
  border-left: 4px solid var(--red);
}
.map-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(16, 41, 90, 0.1);
}
.map-card iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
}
.map-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
}
.map-details strong,
.map-details span {
  display: block;
}
.map-details span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 760px) {
  .map-card iframe {
    height: 330px;
  }
  .map-details {
    display: grid;
    padding: 18px;
  }
  .map-details .btn {
    width: 100%;
  }
}
form {
  display: grid;
  gap: 14px;
}
label {
  font-weight: 700;
  font-size: 0.85rem;
}
input,
textarea,
select {
  width: 100%;
  padding: 13px;
  border: 1px solid #aaa;
  font: inherit;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(215, 25, 32, 0.16);
  border-color: var(--red);
}
textarea {
  min-height: 130px;
}
.footer {
  background: #292929;
  color: #ccc;
  padding: 50px 0 20px;
  border-top: 5px solid var(--red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 45px;
}
.footer h3 {
  color: #fff;
}
.footer a {
  display: block;
  margin: 8px 0;
}
.footer .brand img {
  background: #fff;
  padding: 7px;
  width: 230px;
  mix-blend-mode: normal;
}
.copyright {
  border-top: 1px solid #4c4c4c;
  margin-top: 35px;
  padding-top: 18px;
  font-size: 0.8rem;
}
.wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  background: #1daf57;
  color: #fff;
  padding: 12px 17px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}
@media (max-width: 920px) {
  .grid.five {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .container {
    width: min(100% - 26px, 1220px);
  }
  .topbar {
    display: none;
  }
  .nav {
    min-height: 72px;
    padding: 10px 0;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .brand img {
    width: 165px;
  }
  .site-search {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    height: auto;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 3px solid var(--red);
    padding: 8px 15px;
  }
  .nav-links:before {
    padding: 12px 15px;
    margin: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 15px;
    border-right: 0;
    border-bottom: 1px solid #eee;
  }
  .hero {
    min-height: 500px;
    background-position: 61% center;
  }
  .hero-copy {
    padding: 55px 0;
  }
  .hero h1 {
    font-size: 3.7rem;
  }
  .trustgrid,
  .grid,
  .grid.five,
  .feature,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 52px 0;
  }
  .section-head {
    display: block;
  }
  .section-head p {
    margin-top: 15px;
  }
  .feature > div {
    padding: 30px 25px;
  }
  .feature > img {
    min-height: 320px;
  }
  .cta {
    padding: 32px 25px;
    display: block;
  }
  .cta .btn {
    margin-top: 18px;
  }
  .poster-strip {
    grid-template-columns: 1fr 1fr;
  }
  .wa {
    right: 13px;
    bottom: 13px;
  }
}

/* Cart and menu are anchored inside the stationary top header. */
.nav {
  position: relative;
}
@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .menu-btn {
    position: absolute;
    top: 10px;
    right: 0;
  }
  .cart-fab {
    position: absolute;
    top: 10px;
    right: 58px;
  }
  .nav-links.open {
    position: absolute;
    top: 100%;
  }
}

/* Fixed actions and a clean CSS-drawn menu icon. */
.menu-btn {
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
}
.menu-lines {
  display: grid;
  gap: 5px;
  width: 22px;
}
.menu-lines i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-btn.open .menu-lines i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn.open .menu-lines i:nth-child(2) {
  opacity: 0;
}
.menu-btn.open .menu-lines i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.wa {
  position: fixed;
  left: 20px;
  right: auto;
  bottom: 20px;
  z-index: 45;
}
.cart-fab {
  position: fixed;
  right: 20px;
  top: 20px;
  bottom: auto;
  z-index: 55;
}
@media (max-width: 760px) {
  .menu-btn {
    display: flex;
  }
  .wa {
    left: 14px;
    right: auto;
    bottom: 14px;
  }
  .cart-fab {
    right: 76px;
    top: 14px;
    bottom: auto;
    width: 52px;
    height: 52px;
  }
}
.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
.catalog-tools .filters {
  margin-bottom: -1px;
}
.catalog-count {
  font-size: 0.85rem;
  color: var(--muted);
}
.catalog-count strong {
  font-size: 1.25rem;
  color: var(--red);
}
.product-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  transition: 0.18s;
}
.catalog-card:hover {
  border-color: #999;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.catalog-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #fff;
}
.catalog-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
  border-top: 1px solid #eee;
}
.catalog-tag {
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}
.catalog-card h3 {
  font-size: 0.97rem;
  line-height: 1.3;
  margin: 6px 0 15px;
}
.catalog-card .buy-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  background: var(--navy);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}
.catalog-card .buy-link:hover {
  background: var(--red);
}
@media (max-width: 920px) {
  .product-catalog {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .product-catalog {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-tools {
    align-items: flex-start;
    flex-direction: column;
  }
  .catalog-count {
    margin-bottom: 10px;
  }
}
.department-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.department-card {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 330px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.department-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #aaa;
}
.department-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.department-card > div {
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.department-card span {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.department-card h3 {
  font-size: 2rem;
  margin: 7px 0;
}
.department-card p {
  color: var(--muted);
  font-size: 0.9rem;
}
.department-card b {
  color: var(--red);
  font-size: 0.82rem;
  text-transform: uppercase;
  margin-top: 12px;
}
@media (max-width: 760px) {
  .department-grid {
    grid-template-columns: 1fr;
  }
  .department-card {
    grid-template-columns: 42% 58%;
    min-height: 260px;
  }
  .department-card > div {
    padding: 25px 18px;
  }
}
.brand img {
  mix-blend-mode: normal;
}
.catalog-image {
  position: relative;
  background: #fff;
}
.catalog-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}
.product-wa,
.wa {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  transition: 0.18s;
}
.product-wa {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 46px;
  height: 46px;
  border: 3px solid #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}
.product-wa:hover,
.wa:hover {
  background: #1da851;
  transform: translateY(-2px);
}
.product-wa svg {
  width: 25px;
  height: 25px;
}
.wa {
  width: 58px;
  height: 58px;
  padding: 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}
.wa svg {
  width: 31px;
  height: 31px;
}
.footer-contact {
  margin-top: 35px;
  border-top: 1px solid #4c4c4c;
  padding-top: 20px;
}
.footer-contact .container {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-contact span {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.footer-contact a {
  color: #fff;
  margin: 0;
}
.footer-contact a:hover {
  color: #ff6b70;
}
@media (max-width: 760px) {
  .nav {
    min-height: 124px;
    flex-wrap: wrap;
    align-content: center;
  }
  .brand img {
    width: 155px;
  }
  .site-search {
    display: flex;
    order: 5;
    width: 100%;
    min-width: 0;
  }
  .site-search input {
    height: 40px;
    font-size: 0.84rem;
  }
  .site-search button {
    height: 40px;
    padding: 0 16px;
  }
  .nav-links {
    top: 124px;
  }
  .hero {
    min-height: 460px;
    background-position: 66% center;
  }
  .hero h1 {
    font-size: 3.25rem;
  }
  .hero p {
    max-width: 88%;
    font-size: 0.95rem;
  }
  .catalog-card img {
    aspect-ratio: 1/1;
  }
  .catalog-body {
    padding: 12px;
  }
  .catalog-card h3 {
    font-size: 0.86rem;
    margin: 5px 0 7px;
  }
  .catalog-body p {
    display: none;
  }
  .product-wa {
    width: 42px;
    height: 42px;
    right: 8px;
    bottom: 8px;
  }
  .product-wa svg {
    width: 23px;
    height: 23px;
  }
  .footer-contact .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 430px) {
  .product-catalog {
    grid-template-columns: 1fr;
  }
  .catalog-card h3 {
    font-size: 1rem;
  }
  .catalog-body p {
    display: block;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 15px;
  }
  .container {
    width: calc(100% - 28px);
  }
  .site-header {
    position: relative;
  }
  .nav {
    min-height: 0;
    padding: 10px 0 12px;
    display: grid;
    grid-template-columns: 1fr 46px;
    gap: 10px 12px;
  }
  .brand img {
    width: 190px;
    max-width: 100%;
  }
  .menu-btn {
    display: block;
    width: 46px;
    height: 44px;
    margin: 0;
    justify-self: end;
  }
  .site-search {
    display: flex;
    grid-column: 1/-1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }
  .site-search input {
    height: 44px;
    min-width: 0;
    border-radius: 0;
    font-size: 16px;
  }
  .site-search button {
    height: 44px;
    min-width: 82px;
  }
  .nav-links {
    top: 120px;
    z-index: 50;
  }
  .hero {
    min-height: 520px;
    background-image:
      linear-gradient(
        90deg,
        rgba(10, 26, 61, 0.98) 0%,
        rgba(10, 26, 61, 0.92) 58%,
        rgba(10, 26, 61, 0.45) 100%
      ),
      url("assets/hero-electrical-plumbing.png");
    background-position: 72% center;
  }
  .hero-copy {
    padding: 58px 0;
  }
  .hero h1 {
    max-width: 330px;
    font-size: 3.45rem;
    line-height: 0.95;
  }
  .hero p {
    max-width: 330px;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .actions .btn {
    padding: 0 10px;
    font-size: 0.74rem;
  }
  .trustitem {
    padding: 18px 18px 18px 52px;
  }
  .section {
    padding: 48px 0;
  }
  .section-head {
    margin-bottom: 22px;
  }
  .section h2 {
    font-size: 2rem;
  }
  .department-card {
    grid-template-columns: 38% 62%;
    min-height: 240px;
  }
  .department-card > div {
    padding: 22px 16px;
  }
  .department-card h3 {
    font-size: 1.55rem;
  }
  .page-hero {
    padding: 35px 0;
  }
  .page-hero h1 {
    font-size: 2.5rem;
  }
  .page-hero p {
    font-size: 0.9rem;
  }
  .catalog-tools {
    gap: 12px;
    margin-bottom: 18px;
  }
  .filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 0;
    margin: 0;
  }
  .filter {
    padding: 11px 6px;
    font-size: 0.76rem;
  }
  .catalog-count {
    order: -1;
  }
  .product-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .catalog-card img {
    aspect-ratio: 1;
    object-fit: contain;
  }
  .catalog-body {
    padding: 11px;
    min-height: 92px;
  }
  .catalog-card h3 {
    font-size: 0.86rem;
    line-height: 1.25;
    margin: 5px 0 0;
  }
  .catalog-body p {
    display: none;
  }
  .catalog-tag {
    font-size: 0.6rem;
  }
  .product-wa {
    width: 39px;
    height: 39px;
    border-width: 2px;
  }
  .product-wa svg {
    width: 22px;
    height: 22px;
  }
  .cta {
    padding: 28px 22px;
  }
  .footer {
    padding-top: 38px;
  }
  .footer-grid {
    gap: 26px;
  }
  .footer-contact {
    margin-top: 25px;
  }
  .wa {
    width: 54px;
    height: 54px;
  }
}
@media (max-width: 340px) {
  .brand img {
    width: 165px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .actions {
    grid-template-columns: 1fr;
  }
  .product-catalog {
    grid-template-columns: 1fr;
  }
  .catalog-body p {
    display: block;
  }
}
.site-search {
  border-radius: 4px;
  overflow: hidden;
}
.site-search input {
  border-radius: 4px 0 0 4px;
}
.site-search button {
  border-radius: 0 4px 4px 0;
  white-space: nowrap;
}
.catalog-body {
  position: relative;
}
.add-cart {
  margin-top: auto;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
}
.add-cart:hover {
  background: var(--navy);
  color: #fff;
}
.cart-fab {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 42;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}
.cart-fab svg {
  width: 27px;
  height: 27px;
}
.cart-count {
  position: absolute;
  right: -2px;
  top: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  z-index: 61;
  right: 0;
  top: 0;
  width: min(430px, 100%);
  height: 100dvh;
  background: #fff;
  transform: translateX(100%);
  transition: 0.25s;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.2);
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-open {
  overflow: hidden;
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.cart-head small {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
}
.cart-head h2 {
  margin: 2px 0 0;
}
.cart-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}
.cart-items {
  overflow: auto;
  padding: 10px 24px;
}
.cart-empty {
  padding: 55px 10px;
  text-align: center;
  color: var(--muted);
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item strong {
  display: block;
  font-size: 0.9rem;
}
.cart-remove {
  border: 0;
  background: none;
  color: var(--red);
  padding: 4px 0;
  font-size: 0.72rem;
  cursor: pointer;
}
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
}
.qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--soft);
  font-size: 1.1rem;
  cursor: pointer;
}
.qty span {
  width: 34px;
  text-align: center;
  font-weight: 700;
}
.cart-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}
.cart-foot p {
  margin: 0 0 15px;
  font-size: 0.76rem;
  color: var(--muted);
}
.cart-whatsapp {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.cart-whatsapp svg {
  width: 25px;
  height: 25px;
}
.cart-whatsapp.disabled {
  opacity: 0.45;
  pointer-events: none;
}
@media (max-width: 760px) {
  .site-search {
    border: 1px solid #aaa;
  }
  .site-search input {
    border: 0;
  }
  .site-search button {
    border-left: 1px solid var(--red2);
  }
  .add-cart {
    min-height: 40px;
    font-size: 0.7rem;
    margin-top: 10px;
  }
  .cart-fab {
    right: 13px;
    bottom: 80px;
    width: 54px;
    height: 54px;
  }
  .cart-drawer {
    width: 100%;
  }
  .cart-head {
    padding: 18px;
  }
  .cart-items {
    padding: 8px 18px;
  }
  .cart-foot {
    padding: 16px 18px;
  }
}

/* Keep the two global actions in predictable screen corners. */
.wa {
  left: 20px;
  right: auto;
  bottom: 20px;
}
.cart-fab {
  right: 20px;
  top: 20px;
  bottom: auto;
  z-index: 55;
}
@media (max-width: 760px) {
  .wa {
    left: 14px;
    right: auto;
    bottom: 14px;
  }
  .cart-fab {
    right: 76px;
    top: 14px;
    bottom: auto;
    width: 52px;
    height: 52px;
  }
}

/* Compact location presentation. */
.location-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(16, 41, 90, 0.09);
}
.location-copy {
  padding: 42px;
  border-left: 6px solid var(--red);
}
.location-copy h2 {
  margin-bottom: 14px;
}
.location-copy > p {
  color: var(--muted);
  margin-bottom: 28px;
}
.location-address {
  padding: 18px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.location-address small,
.location-address strong,
.location-address span {
  display: block;
}
.location-address small {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.location-address strong {
  margin: 6px 0 2px;
  font-size: 1.08rem;
}
.location-address span {
  color: var(--muted);
}
.location-grid .map-card {
  border: 0;
  box-shadow: none;
}
.location-grid .map-card iframe {
  height: 100%;
  min-height: 420px;
}

/* A fixed cart bar is clearer than a floating icon. */
.cart-fab {
  width: 100%;
  height: 52px;
  min-width: 0;
  padding: 0 max(20px, calc((100vw - 1220px) / 2));
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-radius: 0;
  top: 0;
  right: 0;
  left: 0;
}
body {
  padding-top: 52px;
}
.site-header {
  top: 52px;
}
.cart-fab svg {
  width: 23px;
  height: 23px;
}
.cart-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cart-count {
  position: static;
  min-width: 24px;
  border: 0;
}
@media (max-width: 760px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  .location-copy {
    padding: 28px 22px;
  }
  .location-grid .map-card iframe {
    height: 300px;
    min-height: 300px;
  }
  .cart-fab {
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 48px;
    min-width: 0;
    padding: 0 14px;
    border-radius: 0;
  }
  body {
    padding-top: 48px;
  }
  .site-header {
    top: 0;
  }
  .cart-label {
    font-size: 0.66rem;
  }
}

/* Catalogue stays three products across at every viewport size. */
@media (max-width: 920px) {
  .product-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .product-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .catalog-body {
    padding: 8px;
    min-height: 0;
  }
  .catalog-card h3 {
    font-size: 0.72rem;
    line-height: 1.2;
  }
  .catalog-tag {
    font-size: 0.52rem;
  }
  .add-cart {
    min-height: 34px;
    padding: 4px;
    font-size: 0.58rem;
  }
}
@media (max-width: 340px) {
  .product-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Compact cart control beside the mobile hamburger. */
body {
  padding-top: 0;
}
.site-header {
  top: 0;
}
.cart-fab {
  left: auto;
  right: 20px;
  top: 20px;
  width: auto;
  min-width: 154px;
  height: 48px;
  padding: 0 13px;
  justify-content: center;
  border-radius: 7px;
}
.cart-count {
  position: static;
}
@media (max-width: 760px) {
  body {
    padding-top: 0;
  }
  .cart-fab {
    left: auto;
    right: 72px;
    top: 33px;
    width: 46px;
    min-width: 46px;
    height: 44px;
    padding: 0;
    border-radius: 6px;
  }
  .cart-label {
    display: none;
  }
  .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    border: 2px solid #fff;
  }
}

/* Keep the cart and menu paired while scrolling, with clear open states. */
.cart-fab.active {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.2), 0 7px 22px rgba(0, 0, 0, 0.28);
}
@media (max-width: 760px) {
  .menu-btn {
    position: fixed;
    top: 33px;
    right: 14px;
    z-index: 56;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
  }
  .menu-btn.open {
    background: var(--navy);
    box-shadow: 0 0 0 4px rgba(16, 41, 90, 0.18), 0 7px 22px rgba(0, 0, 0, 0.25);
  }
  .cart-fab {
    position: fixed;
    top: 33px;
    right: 72px;
    z-index: 56;
  }
  .nav-links.open {
    position: fixed;
    top: 87px;
    z-index: 54;
    max-height: calc(100dvh - 87px);
    overflow-y: auto;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
  }
}

/* Final header anchoring: both controls belong to the sticky header. */
.nav {
  position: relative;
}
@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .menu-btn {
    position: absolute;
    top: 10px;
    right: 0;
  }
  .cart-fab {
    position: absolute;
    top: 10px;
    right: 58px;
  }
  .nav-links.open {
    position: absolute;
    top: 100%;
    max-height: calc(100dvh - 124px);
  }
}
