:root {
  --lowes-blue: #004990;
  --lowes-blue-dark: #01366e;
  --lowes-yellow: #fbd400;
  --ink: #1f2937;
  --muted: #4f5f73;
  --line: #d8e0ea;
  --page: #f4f6f8;
  --panel: #fff;
  --sale: #b00020;
  --focus: #0473c5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

.skip-link,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip-link:focus {
  z-index: 999;
  width: auto;
  height: auto;
  padding: 8px 12px;
  clip: auto;
  background: #fff;
  color: var(--lowes-blue);
}

.demo-ribbon {
  padding: 7px 18px;
  background: #fff6bf;
  color: #3b3100;
  border-bottom: 1px solid #eed774;
  text-align: center;
  font-size: 13px;
}

.demo-ribbon code,
.feature code {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
}

.promo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 18px;
  color: #111827;
  background: var(--lowes-yellow);
  font-size: 14px;
}

.promo-bar a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-header {
  background: var(--lowes-blue);
  color: #fff;
}

.utility-row,
.masthead,
.category-nav,
main,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.utility-row {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  min-height: 34px;
  align-items: center;
  font-size: 13px;
}

.utility-row a,
.category-nav a,
.account-nav a,
.store-link {
  text-decoration: none;
}

.utility-row a:hover,
.category-nav a:hover,
.account-nav a:hover,
.store-link:hover {
  text-decoration: underline;
}

.masthead {
  display: grid;
  grid-template-columns: 130px 174px minmax(240px, 1fr) 190px;
  gap: 18px;
  align-items: center;
  padding: 12px 0 16px;
}

.lowes-logo {
  display: grid;
  place-items: center;
  position: relative;
  width: 116px;
  height: 58px;
  color: #fff;
  background: #fff;
  clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%);
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.lowes-logo::before {
  position: absolute;
  inset: 5px 7px 6px;
  content: "";
  background: var(--lowes-blue-dark);
  clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%);
}

.lowes-logo span {
  position: relative;
  z-index: 1;
}

.store-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.pin {
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.search {
  display: grid;
  grid-template-columns: 1fr 92px;
  height: 44px;
}

.search input {
  min-width: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 3px 0 0 3px;
  font-size: 16px;
}

.search input:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.search button {
  border: 0;
  border-left: 1px solid #b8c3cf;
  border-radius: 0 3px 3px 0;
  background: #f5f7fa;
  color: var(--lowes-blue-dark);
  font-weight: 800;
  cursor: pointer;
}

.account-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
}

.cart-link {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
}

.category-nav {
  display: flex;
  gap: 19px;
  overflow: auto;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

main {
  padding-bottom: 54px;
}

.pricing-note {
  margin: 0;
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  margin-bottom: 18px;
  background: var(--line);
  border: 1px solid var(--line);
}

.quick-grid a {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 8px;
  background: #fff;
  color: var(--lowes-blue-dark);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.feature {
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 348px;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--line);
}

.feature-copy {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.deal-kicker {
  margin: 0 0 8px;
  color: var(--sale);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.feature h1 {
  margin: 0;
  color: var(--lowes-blue-dark);
  font-size: 42px;
  line-height: 1.05;
}

.feature p {
  max-width: 510px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.feature-button {
  width: fit-content;
  margin-top: 24px;
  padding: 12px 18px;
  border-radius: 3px;
  background: var(--lowes-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.feature img {
  width: 100%;
  height: 100%;
  min-height: 348px;
  object-fit: cover;
}

.deal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.deal-strip article,
.product-card,
.checkout,
.checkout-panel {
  background: #fff;
  border: 1px solid var(--line);
}

.deal-strip article {
  min-height: 132px;
  padding: 22px;
}

.deal-strip h2 {
  margin: 0 0 7px;
  font-size: 22px;
}

.deal-strip p,
.checkout p {
  margin: 0;
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
}

.section-head a {
  color: var(--lowes-blue);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.product-card {
  min-height: 280px;
  padding: 18px;
}

.product-image {
  height: 112px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: #f2f5f8;
}

.product-image.blade {
  background:
    radial-gradient(circle at center, #fff 0 16%, transparent 17%),
    repeating-conic-gradient(#b7c2cf 0 10deg, #edf1f5 10deg 18deg);
}

.product-image.tape {
  background:
    linear-gradient(
      90deg,
      transparent 0 32%,
      rgba(0, 0, 0, 0.22) 32% 35%,
      transparent 35% 62%,
      rgba(0, 0, 0, 0.22) 62% 65%,
      transparent 65%
    ),
    var(--lowes-yellow);
}

.product-image.clamp {
  background:
    linear-gradient(90deg, var(--lowes-blue) 0 14px, transparent 14px),
    linear-gradient(var(--lowes-blue) 0 14px, transparent 14px),
    linear-gradient(
      90deg,
      transparent 0 40%,
      var(--lowes-yellow) 40% 72%,
      transparent 72%
    ),
    #f2f5f8;
}

.product-image.power {
  background:
    radial-gradient(
      circle at 50% 55%,
      var(--lowes-blue) 0 18%,
      transparent 19%
    ),
    linear-gradient(90deg, var(--lowes-yellow) 0 100%);
}

.product-card h3 {
  min-height: 54px;
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.22;
}

.rating {
  margin: 0 0 9px;
  color: #7a6500;
  font-size: 13px;
}

.price {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.checkout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 22px;
  padding: 26px;
}

.checkout h2 {
  margin: 0 0 8px;
  color: var(--lowes-blue-dark);
  font-size: 28px;
}

.checkout-panel {
  padding: 18px;
}

.line-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.line-item strong {
  color: var(--ink);
}

.checkout-panel button {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 3px;
  background: var(--lowes-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.checkout-panel button:hover,
.feature-button:hover {
  background: var(--lowes-blue-dark);
}

.footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .utility-row {
    display: none;
  }

  .masthead {
    grid-template-columns: 112px 1fr auto;
  }

  .store-link {
    display: none;
  }

  .account-nav a:first-child {
    display: none;
  }

  .quick-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature,
  .checkout {
    grid-template-columns: 1fr;
  }

  .feature img {
    min-height: 220px;
    order: -1;
  }

  .deal-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .promo-bar {
    flex-direction: column;
    gap: 0;
  }

  .masthead {
    grid-template-columns: 1fr auto;
  }

  .lowes-logo {
    width: 104px;
    height: 52px;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .feature-copy,
  .checkout {
    padding: 22px;
  }

  .feature h1 {
    font-size: 32px;
  }
}
