body:has(> .storefront-home) { background-color: #f6f7f9; }

.storefront-home {
    --brand-blue: #2e368f;
    --brand-blue-hover: #252c78;
    --brand-gradient: linear-gradient(90deg, #e93e3a, #ed683c);
    --brand-gradient-diagonal: linear-gradient(153deg, #ed683c, #e93e3a);
    --ink: #202538;
    --muted: #535b6d;
    --line: #e2e5ec;
    --page: #f6f7f9;
    --white: #fff;
    --ra: 16px;
    --gutter: clamp(16px, 3.8vw, 58px);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.52;
    width: min(calc(100% - var(--gutter) * 2), 1280px);
    margin-inline: auto;
}
.storefront-home :where(h1, h2, h3, p) { margin: 0; }
.storefront-home :where(a) { color: inherit; text-decoration: none; }
.storefront-home :where(button) { font: inherit; cursor: pointer; }
.storefront-home :where(img) { display: block; max-width: 100%; }
.storefront-home :focus-visible { outline: 2px solid #8b3620; outline-offset: 4px; }
.storefront-home-hero-manufacturing :focus-visible,
.storefront-home-quote :focus-visible { outline-color: #ffb59d; }
.storefront-home-icon { width: 22px; height: 22px; flex-shrink: 0; }

.storefront-home { display: grid; gap: clamp(15px, 1.6vw, 23px); padding-block: clamp(13px, 1.5vw, 22px) 26px; }
.storefront-home-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.storefront-home-hero, .storefront-home-hero-service { overflow: hidden; border: 1px solid #dbe0e8; border-radius: 20px; }
.storefront-home-hero {
  min-height: clamp(430px, 39vw, 500px);
  background-color: #e5ebf1;
  background-image: linear-gradient(155deg, #e5ebf1 12%, rgb(229 235 241 / 96%) 35%, rgb(229 235 241 / 78%) 48%, transparent 76%), url("/images/home/welding-industrial-supplies-warehouse.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.storefront-home-hero-content { padding: clamp(20px, 3vw, 43px) clamp(17px, 3vw, 43px); }
.storefront-home-hero-content h1 { color: var(--brand-blue); font-size: clamp(2rem, 4.03vw, 3.55rem); font-weight: 800; letter-spacing: -.057em; line-height: 1.03; }
.storefront-home-hero-content p { max-width: 35ch; margin-top: .8rem; color: #364157; font-size: clamp(.95rem, 1.28vw, 1.08rem); }
.storefront-home-hero-content .storefront-home-button { margin-top: 1rem; font-size: .93rem; }

.storefront-home-hero-services { display: grid; grid-template-rows: repeat(2, 1fr); gap: inherit; }
.storefront-home-hero-service { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 215px; }
.storefront-home-hero-service-content { width: 64%; padding: clamp(16px, 2.45vw, 34px); padding-inline-end: 0; }
.storefront-home-hero-service h2 { max-width: 18ch; font-size: clamp(1.43rem, 2.1vw, 2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.storefront-home-hero-service p { max-width: 30ch; margin-top: .5rem; font-size: .9rem; line-height: 1.45; }
.storefront-home-hero-service-image { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 56%; height: 100%; object-fit: cover; }
.storefront-home-hero-service-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; margin-top: .86rem; padding: .48rem .68rem; border: 1px solid transparent; border-radius: 9px; font-size: .8rem; font-weight: 800; line-height: 1.2; }
.storefront-home-hero-service-link .storefront-home-icon { width: 17px; height: 17px; }
.storefront-home-hero-manufacturing { color: var(--white); background: var(--brand-blue); border-color: var(--brand-blue); }
.storefront-home-hero-manufacturing p { color: #f0f1ff; }
.storefront-home-hero-manufacturing .storefront-home-hero-service-image { mask-image: linear-gradient(to right, transparent, #000 62%); object-position: 65% center; }
.storefront-home-hero-manufacturing .storefront-home-hero-service-link { border-color: #fff8; background: var(--brand-blue); }
.storefront-home-hero-manufacturing .storefront-home-hero-service-link:hover { background: var(--brand-blue-hover); }
.storefront-home-hero-manufacturing .storefront-home-hero-service-link:focus-visible { outline-color: #ffb59d; }
.storefront-home-hero-support { color: var(--brand-blue); background: #edf0f7; }
.storefront-home-hero-support p { color: #364157; }
.storefront-home-hero-support .storefront-home-hero-service-image { mask-image: linear-gradient(to right, transparent 7%, #000 82%); object-position: 68% center; }
.storefront-home-hero-support .storefront-home-hero-service-link { color: var(--white); background: var(--brand-blue); }
.storefront-home-hero-support .storefront-home-hero-service-link:hover { background: var(--brand-blue-hover); }
.storefront-home-button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: .63rem 1.05rem; border: 0; border-radius: 9px; font-size: 1.1875rem; font-weight: 800; text-align: center; color: var(--white); background: var(--brand-gradient); }
.storefront-home-hero-content .storefront-home-button { text-shadow: 0 1px 2px #64261ab3; }
.storefront-home-button:hover { box-shadow: inset 0 0 0 2px #0003; }

.storefront-home-category-shortcuts { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 7px; padding: 3px 4px 5px; }
.storefront-home-shortcut { display: grid; align-content: start; justify-items: center; gap: 7px; min-width: 0; padding: 5px 3px; border: 0; border-radius: 11px; background: transparent; text-align: center; color: var(--brand-blue); font-size: .86rem; font-weight: 800; line-height: 1.17; }
.storefront-home-shortcut-icon { display: grid; place-items: center; width: clamp(49px, 5.2vw, 69px); aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--white); color: var(--brand-blue); background: #e6eaf4; box-shadow: 0 1px 4px #17294c1a; transition: background .15s ease, transform .15s ease; }
.storefront-home-shortcut:nth-child(3n+2) .storefront-home-shortcut-icon { background: #eceef3; }
.storefront-home-shortcut:nth-child(3n) .storefront-home-shortcut-icon { background: #f4e9e2; }
.storefront-home-shortcut.storefront-home-shortcut-all .storefront-home-shortcut-icon {
  border-color: transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--brand-gradient-diagonal) border-box;
}
.storefront-home-shortcut-icon img { width: 53%; height: 53%; object-fit: contain; }
.storefront-home-shortcut:hover .storefront-home-shortcut-icon { transform: translateY(-2px); box-shadow: 0 2px 7px #17294c27; }

.storefront-home-products-panel, .storefront-home-brands { min-width: 0; padding: clamp(13px, 1.55vw, 22px); border: 1px solid var(--line); border-radius: var(--ra); background: var(--white); }
.storefront-home-section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 15px; margin-bottom: 13px; }
.storefront-home-section-head h2, .storefront-home-quote h2 { color: var(--brand-blue); font-size: clamp(1.35rem, 2.15vw, 1.93rem); letter-spacing: -.042em; line-height: 1.14; font-weight: 800; }
.storefront-home-text-link { display: inline-flex; align-items: center; min-height: 39px; color: var(--brand-blue); font-size: .88rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.storefront-home-text-link:hover { color: #9b3c21; }
.storefront-home-product-rack { --rack-gap: clamp(8px, 1vw, 14px); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(calc((100% - 4 * var(--rack-gap)) / 5), 1fr); gap: var(--rack-gap); overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 11px; }
.storefront-home-product-card { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0; min-width: 0; overflow: hidden; border: 1px solid #e7e9ee; border-radius: 11px; background: var(--white); scroll-snap-align: start; }
.storefront-home-product-card:hover { border-color: #a5aec4; }
.storefront-home-product-card:focus-visible { outline-offset: -3px; }
.storefront-home-product-image { display: grid; place-items: center; min-height: 0; height: clamp(135px, 14vw, 180px); padding: clamp(8px, 1.05vw, 15px); background: #eff1f5; }
.storefront-home-product-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.storefront-home-product-info { display: flex; flex-direction: column; padding: 9px 10px 11px; }
.storefront-home-product-brand { color: var(--muted); font-size: .77rem; font-weight: 700; }
.storefront-home-product-info h3 { margin-top: 3px; color: var(--ink); font-size: .94rem; font-weight: 800; line-height: 1.23; }
.storefront-home-product-card:hover h3 { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 3px; }
.storefront-home-product-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; column-gap: 8px; margin-top: auto; padding-top: 10px; }
.storefront-home-price { color: var(--brand-blue); font-size: 1.04rem; font-weight: 800; }
.storefront-home-availability { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.storefront-home-availability .storefront-home-icon { color: var(--brand-blue); width: 15px; height: 15px; }
.storefront-home-rack-controls { display: flex; align-items: center; gap: 5px; }
.storefront-home-rack-controls[hidden] { display: none; }
.storefront-home-rack-controls button { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; color: var(--brand-blue); background: var(--page); }
.storefront-home-rack-controls button:disabled { opacity: .44; cursor: default; }
.storefront-home-rack-controls button:not(:disabled):hover { background: #e8ebf4; }
.storefront-home-rack-controls .storefront-home-icon { width: 17px; height: 17px; }
.storefront-home-rack-controls .storefront-home-previous { transform: rotate(180deg); }

.storefront-home-department-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(9px, 1.3vw, 18px); }
.storefront-home-department { display: grid; grid-template-columns: minmax(0, 1fr) 40%; align-items: center; gap: 4px; min-height: 137px; padding: 13px clamp(12px, 1.5vw, 22px); border: 1px solid var(--line); border-radius: 13px; color: var(--brand-blue); background: #e9edf6; }
.storefront-home-department-safety { background: #f4ebe5; }
.storefront-home-department-abrasive { background: #eaecf0; }
.storefront-home-department:hover { border-color: #98a3b8; }
.storefront-home-department h2 { max-width: 14ch; font-size: clamp(1.1rem, 1.75vw, 1.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.14; }
.storefront-home-department p { margin-top: .35rem; color: var(--muted); font-size: .86rem; line-height: 1.25; }
.storefront-home-department img { width: 100%; height: 107px; object-fit: contain; mix-blend-mode: multiply; }

.storefront-home-brands .storefront-home-section-head { margin-bottom: 6px; }
.storefront-home-brand-links { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.storefront-home-brand-links a { display: grid; place-items: center; min-height: 52px; padding: 6px; border-radius: 7px; text-align: center; color: var(--brand-blue); font-size: clamp(.88rem, 1.35vw, 1.11rem); font-weight: 800; letter-spacing: -.026em; line-height: 1.14; }
.storefront-home-brand-links a:hover { background: #eef1f7; }
.storefront-home-brand-logo { width: min(100%, 148px); height: 42px; object-fit: contain; }
.storefront-home-brand-logo--dark { padding: 4px 8px; border-radius: 6px; background: #222d52; }

.storefront-home-quote { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(11px, 2.1vw, 28px); padding: clamp(15px, 2.35vw, 32px); border-radius: var(--ra); background: var(--brand-blue); color: var(--white); }
.storefront-home-quote-icon { display: grid; place-items: center; width: clamp(48px, 5.6vw, 69px); aspect-ratio: 1; border-radius: 50%; background: var(--white); color: var(--brand-blue); }
.storefront-home-quote-icon .storefront-home-icon { width: 54%; height: 54%; }
.storefront-home-quote h2 { color: var(--white); }
.storefront-home-quote p { margin-top: .34rem; color: #e1e5f3; font-size: .91rem; }
.storefront-home-quote .storefront-home-button { white-space: nowrap; }
.storefront-home-service-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 5px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.storefront-home-service-links a { display: flex; justify-content: center; align-items: center; min-height: 49px; gap: 9px; padding: 5px; text-align: center; color: var(--brand-blue); font-size: .87rem; font-weight: 800; line-height: 1.18; }


@media (max-width: 960px) {
  .storefront-home-category-shortcuts { gap: 2px; }
  .storefront-home-shortcut { font-size: .79rem; }
  .storefront-home-product-rack { grid-auto-columns: minmax(155px, 1fr); }
}

@media (max-width: 760px) {
  .storefront-home-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .storefront-home-hero { min-height: clamp(360px, 66vw, 460px); }
  .storefront-home-hero-content h1 { font-size: clamp(2rem, 6.6vw, 3.15rem); }
  .storefront-home-hero-service-content { width: 65%; }
}

@media (max-width: 730px) {
  .storefront-home-category-shortcuts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(79px, 1fr); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .storefront-home-shortcut { scroll-snap-align: start; }
  .storefront-home-shortcut-icon { width: 54px; }
  .storefront-home-product-rack { grid-auto-columns: minmax(153px, 31%); }
  .storefront-home-department { grid-template-columns: minmax(0, 1fr) 41%; min-height: 112px; padding-inline: 9px; }
  .storefront-home-department h2 { font-size: 1rem; }
  .storefront-home-department p { font-size: .77rem; }
  .storefront-home-department img { height: 82px; }
  .storefront-home-brand-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .storefront-home-hero-content p { margin-top: .65rem; max-width: 29ch; }
  .storefront-home-hero-content .storefront-home-button { margin-top: .8rem; }
  .storefront-home-hero-service-content { width: 69%; }
  .storefront-home-hero-service-image { width: 52%; }
  .storefront-home-hero-service h2 { font-size: 1.35rem; }
  .storefront-home-hero-service p { font-size: .84rem; }
  .storefront-home-product-rack { grid-auto-columns: minmax(144px, 47%); }
  .storefront-home-product-image { height: 129px; }
  .storefront-home-product-info { padding-inline: 8px; }
  .storefront-home-product-bottom { column-gap: 4px; }
  .storefront-home-availability { font-size: .72rem; }
  .storefront-home-department-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .storefront-home-department { min-height: 88px; padding: 7px 14px; }
  .storefront-home-department h2 { font-size: 1.03rem; max-width: none; }
  .storefront-home-department img { height: 74px; }
  .storefront-home-quote { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .storefront-home-quote h2 { font-size: 1.17rem; }
  .storefront-home-quote p { font-size: .86rem; }
  .storefront-home-quote .storefront-home-button { grid-column: 2; justify-self: start; }
  .storefront-home-service-links { padding: 5px; }
  .storefront-home-service-links a { flex-direction: column; align-items: center; gap: 5px; font-size: .75rem; }
}

@media (max-width: 360px) {
  .storefront-home-hero-content p { font-size: .89rem; }
  .storefront-home-section-head h2 { font-size: 1.24rem; }
}

@media (prefers-reduced-motion: reduce) {
    .storefront-home-shortcut-icon { transition: none; }
    .storefront-home-shortcut:hover .storefront-home-shortcut-icon { transform: none; }
}
