:root {
  --ayfix-c-navy: #0b3155;
  --ayfix-c-blue: #155886;
  --ayfix-c-orange: #ef7f24;
  --ayfix-c-ink: #132d42;
  --ayfix-c-muted: #667b8d;
  --ayfix-c-surface: #f5f8fa;
  --ayfix-c-line: #dde6ec;
  --ayfix-c-radius: 18px;
  --ayfix-c-shadow: 0 18px 44px rgba(13, 48, 77, 0.12);
}

body {
  color: var(--ayfix-c-ink);
  background: #fff;
  text-rendering: optimizeLegibility;
}

a,
button,
.product-cart-wrap,
.ayfix-orbit-icon {
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(.2, .65, .3, 1);
}

/* Header and navigation */
.header-middle {
  padding: 10px 0 !important;
  background: #fff;
}

.header-middle .header-wrap {
  min-height: 74px;
}

.header-middle .logo.logo-width-1 {
  width: 190px;
  min-width: 190px;
}

.header-middle .logo img {
  max-height: 72px;
}

.header-middle .search-style-2 form {
  border-color: #d5e0e7;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(13, 48, 77, .06);
}

.header-middle .search-style-2 input {
  height: 48px;
}

.ayfix-category-bar,
.ayfix-category-bar .header-wrap,
.ayfix-category-bar .main-menu > nav > ul {
  min-height: 52px;
}

.ayfix-category-bar .main-menu > nav > ul > li > a {
  min-height: 52px;
  font-size: 12px;
  letter-spacing: .005em;
}

.ayfix-support-block {
  min-height: 52px;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Photo-led category orbit */
.ayfix-category-orbit {
  padding: 18px 0 17px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.ayfix-section-heading {
  margin-bottom: 12px;
}

.ayfix-section-heading h2 {
  font-size: clamp(20px, 1.8vw, 25px);
}

.ayfix-orbit-track {
  gap: clamp(10px, 1.3vw, 20px);
}

.ayfix-orbit-icon {
  width: 98px;
  height: 98px;
  border: 5px solid #fff;
  background-color: #eef3f6;
  background-image: url("../ayfix/creative/category-orbits/ayfix-category-orbits-sprite.webp");
  background-repeat: no-repeat;
  background-size: 400% 200%;
  box-shadow: 0 0 0 1px #dce6ec, 0 13px 28px rgba(13, 48, 77, .13);
}

.ayfix-orbit-item:nth-child(1) .ayfix-orbit-icon { background-position: 0% 0%; }
.ayfix-orbit-item:nth-child(2) .ayfix-orbit-icon { background-position: 33.333% 0%; }
.ayfix-orbit-item:nth-child(3) .ayfix-orbit-icon { background-position: 66.666% 0%; }
.ayfix-orbit-item:nth-child(4) .ayfix-orbit-icon { background-position: 100% 0%; }
.ayfix-orbit-item:nth-child(5) .ayfix-orbit-icon { background-position: 0% 100%; }
.ayfix-orbit-item:nth-child(6) .ayfix-orbit-icon { background-position: 33.333% 100%; }
.ayfix-orbit-item:nth-child(7) .ayfix-orbit-icon { background-position: 66.666% 100%; }
.ayfix-orbit-item:nth-child(8) .ayfix-orbit-icon { background-position: 100% 100%; }

.ayfix-orbit-item strong {
  min-height: 32px;
  margin-top: 9px;
  color: #20384a;
  font-size: 12px;
}

.ayfix-orbit-item:hover .ayfix-orbit-icon,
.ayfix-orbit-item:focus-visible .ayfix-orbit-icon {
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(239, 127, 36, .55), 0 18px 34px rgba(13, 48, 77, .18);
  transform: translateY(-5px) scale(1.025);
}

/* Hero and editorial promos */
.ayfix-hero-section {
  padding-bottom: 18px;
}

.ayfix-hero-section .row {
  --bs-gutter-x: 16px;
}

.ayfix-hero-slide,
.ayfix-hero-slide picture,
.ayfix-hero-slide img {
  height: 368px;
  min-height: 368px;
}

.ayfix-hero-slide {
  position: relative;
  overflow: hidden;
  border-radius: var(--ayfix-c-radius);
  background: var(--ayfix-c-navy);
  box-shadow: var(--ayfix-c-shadow);
  isolation: isolate;
}

.ayfix-hero-slide img {
  width: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.002);
  transition: transform 900ms cubic-bezier(.2, .65, .3, 1);
}

.ayfix-hero-slide:hover img {
  transform: scale(1.025);
}

.ayfix-hero-shade {
  position: absolute;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 26, 43, .9) 0%, rgba(7, 38, 62, .67) 32%, rgba(7, 38, 62, .08) 67%);
  inset: 0;
}

.ayfix-hero-copy {
  position: absolute;
  z-index: 2;
  display: flex;
  width: min(47%, 470px);
  padding: clamp(30px, 4vw, 52px);
  justify-content: center;
  flex-direction: column;
  color: #fff;
  inset: 0 auto 0 0;
}

.ayfix-hero-copy small {
  margin-bottom: 9px;
  color: #ffc58f;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .14em;
}

.ayfix-hero-copy strong {
  color: #fff;
  font-size: clamp(35px, 3.6vw, 52px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: .98;
}

.ayfix-hero-copy em {
  max-width: 390px;
  margin-top: 15px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.ayfix-hero-copy b {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  padding: 11px 17px;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  background: var(--ayfix-c-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ayfix-side-promos {
  display: grid !important;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ayfix-side-promo {
  min-height: 178px;
  padding: 23px;
  justify-content: flex-end;
  border-radius: var(--ayfix-c-radius);
  background-position: center;
  background-size: cover;
  box-shadow: var(--ayfix-c-shadow);
}

.ayfix-side-promo::before,
.ayfix-wide-promo::before {
  position: absolute;
  z-index: -1;
  background: linear-gradient(0deg, rgba(6, 28, 45, .86), rgba(6, 28, 45, .06) 85%);
  content: "";
  inset: 0;
}

.ayfix-side-promo::after,
.ayfix-wide-promo::after {
  display: none;
}

.ayfix-side-promo-tools {
  background-image: url("../ayfix/creative/promo/ayfix-promo-power-tools.webp");
}

.ayfix-side-promo-paint {
  background-image: url("../ayfix/creative/promo/ayfix-promo-paint.webp");
}

.ayfix-side-promo span,
.ayfix-wide-promo span {
  color: #ffc18a;
}

.ayfix-side-promo strong {
  max-width: 230px;
  font-size: 21px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .22);
}

.ayfix-side-promo small {
  margin-top: 8px;
}

.ayfix-side-promo:hover,
.ayfix-wide-promo:hover {
  box-shadow: 0 22px 46px rgba(13, 48, 77, .19);
  transform: translateY(-4px);
}

.ayfix-promo-grid {
  gap: 16px;
  margin-bottom: 18px;
}

.ayfix-wide-promo {
  min-height: 154px;
  padding: 25px 32px;
  justify-content: flex-end;
  border-radius: var(--ayfix-c-radius);
  background-position: center;
  background-size: cover;
  box-shadow: 0 15px 34px rgba(13, 48, 77, .11);
}

.ayfix-wide-promo::before {
  background: linear-gradient(90deg, rgba(6, 28, 45, .9) 0%, rgba(6, 28, 45, .5) 47%, rgba(6, 28, 45, .04) 82%);
}

.ayfix-wide-promo-workshop {
  background-image: url("../ayfix/creative/banners/ayfix-banner-hand-tools.webp");
}

.ayfix-wide-promo-build {
  background-image: url("../ayfix/creative/banners/ayfix-banner-fasteners.webp");
}

.ayfix-wide-promo strong {
  font-size: clamp(21px, 2vw, 27px);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .24);
}

.ayfix-wide-promo small {
  margin-top: 9px;
}

.ayfix-trust-strip {
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(13, 48, 77, .07);
}

.ayfix-seed-notice {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  padding: 11px 16px;
  border: 1px solid #dfe8ee;
  border-radius: 12px;
  background: #f7fafb;
}

.ayfix-seed-notice i {
  color: var(--ayfix-c-orange);
  font-size: 20px;
}

.ayfix-seed-notice p {
  margin: 0;
  color: var(--ayfix-c-muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Catalog cards */
.product-grid {
  row-gap: 8px;
}

.product-cart-wrap {
  height: calc(100% - 30px);
  overflow: hidden;
  border: 1px solid #e1e8ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(13, 48, 77, .055);
}

.product-cart-wrap:hover {
  border-color: rgba(239, 127, 36, .58);
  box-shadow: 0 18px 36px rgba(13, 48, 77, .13);
  transform: translateY(-4px);
}

.product-cart-wrap .product-img-action-wrap {
  padding: 12px 12px 0;
}

.product-cart-wrap .product-img-action-wrap .product-img,
.product-cart-wrap .product-img-action-wrap .product-img a {
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f7f8;
}

.product-cart-wrap .product-img-action-wrap .product-img a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-cart-wrap .product-content-wrap {
  padding: 15px 16px 17px;
}

.product-cart-wrap .product-content-wrap h2 a {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--ayfix-c-ink);
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-cart-wrap .product-content-wrap .product-price span {
  color: var(--ayfix-c-orange);
  font-size: 18px;
  font-weight: 850;
}

.product-cart-wrap .product-action-1 a.action-btn {
  border-color: #dfe7ec;
  background: rgba(255, 255, 255, .94);
  color: var(--ayfix-c-blue);
}

/* Category, product and cart surfaces */
.page-header.breadcrumb-wrap {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid #e5ecef;
  background: #f7f9fa;
}

.breadcrumb,
.breadcrumb a {
  color: #617687;
  font-size: 12px;
}

.sidebar-widget.widget-category-2,
.featured-card,
.detail-gallery,
.detail-info,
.shopping-summery,
.cart-totals {
  border: 1px solid #e0e8ed !important;
  border-radius: 17px !important;
  background: #fff;
  box-shadow: 0 12px 32px rgba(13, 48, 77, .07);
}

.sidebar-widget.widget-category-2 {
  padding: 22px;
}

.sidebar-widget.widget-category-2 .section-title {
  color: var(--ayfix-c-ink);
  font-size: 20px;
}

.sidebar-widget.widget-category-2 ul li {
  border-radius: 9px;
}

.sidebar-widget.widget-category-2 ul li:hover {
  background: #f3f7f9;
}

.shop-product-fillter {
  min-height: 52px;
  margin-bottom: 18px;
  padding: 13px 17px;
  border: 1px solid #e1e8ed;
  border-radius: 13px;
  background: #fff;
}

.ayfix-category-title {
  margin-bottom: 20px;
}

.ayfix-category-title span {
  color: var(--ayfix-c-orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ayfix-category-title h1 {
  margin: 3px 0 0;
  color: var(--ayfix-c-ink);
  font-size: clamp(27px, 3vw, 39px);
  letter-spacing: -.025em;
  line-height: 1.12;
}

.ayfix-category-title p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--ayfix-c-muted);
  font-size: 14px;
}

.detail-gallery {
  padding: 18px;
  overflow: hidden;
}

.detail-gallery .product-image-slider figure {
  overflow: hidden;
  border-radius: 13px;
  background: #f4f6f7;
}

.detail-gallery .product-image-slider img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* Keep the main slide and the thumbnail rail in normal document flow. */
.ayfix-product-gallery-main {
  width: 100%;
  position: relative;
  min-width: 0;
}

.ayfix-product-detail > .row > [class*="col-"] {
  min-width: 0;
}

.ayfix-product-detail .detail-gallery,
.ayfix-product-detail .detail-info {
  width: 100%;
  min-width: 0;
}

.ayfix-product-detail .slider-nav-thumbnails img {
  object-fit: contain;
}

/* Footer links/signature must remain clear of the fixed support controls. */
footer.main {
  padding-bottom: 76px;
}

body:has(.ayfix-cmp--notice:not([hidden])) footer.main {
  padding-bottom: 270px;
}

footer.main .animate__fadeInUp {
  animation-name: ayfix-footer-reveal;
}

@keyframes ayfix-footer-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* The newsletter's legacy 300px + 440px columns do not fit tablet gutters. */
@media (max-width: 1024px) {
  footer.main .newsletter .ayfix-newsletter .newsletter-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  body:has(.ayfix-cmp--notice:not([hidden])) footer.main {
    padding-bottom: 400px;
  }
}

.detail-info {
  padding: clamp(22px, 3vw, 38px) !important;
}

.detail-info .title-detail {
  color: var(--ayfix-c-ink);
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.15;
}

.detail-info .product-price .current-price {
  color: var(--ayfix-c-orange) !important;
  font-size: clamp(28px, 3vw, 42px);
}

.detail-info .button-add-to-cart,
.cart-totals .btn {
  border-radius: 11px !important;
  background: var(--ayfix-c-orange) !important;
  box-shadow: 0 10px 22px rgba(239, 127, 36, .2);
}

.detail-info .button-add-to-cart:hover,
.cart-totals .btn:hover {
  background: #d96d17 !important;
  transform: translateY(-2px);
}

.shopping-summery {
  overflow: hidden;
}

.shopping-summery thead {
  background: var(--ayfix-c-navy);
}

.shopping-summery thead th {
  border: 0;
  color: #fff;
  font-size: 12px;
}

.shopping-summery tbody tr {
  border-color: #e4ebef;
}

.shopping-summery .product-thumbnail img {
  width: 84px;
  height: 84px;
  border-radius: 11px;
  object-fit: cover;
}

.cart-totals {
  padding-bottom: 24px !important;
}

.cart-totals table tr:last-child {
  background: #eef4f7 !important;
}

.coupon + .btn {
  border-radius: 11px;
  background: var(--ayfix-c-orange);
}

.coupon + .btn:hover {
  background: #d96d17;
}

/* Responsive rhythm */
@media (min-width: 992px) and (max-width: 1199px) {
  .ayfix-hero-slide,
  .ayfix-hero-slide picture,
  .ayfix-hero-slide img {
    height: 338px;
    min-height: 338px;
    aspect-ratio: auto;
  }

  .ayfix-side-promo {
    min-height: 163px;
  }

  .ayfix-orbit-icon {
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 991px) {
  .ayfix-category-orbit {
    padding-top: 14px;
  }

  .ayfix-orbit-track {
    gap: 14px;
  }

  .ayfix-orbit-icon {
    width: 88px;
    height: 88px;
  }

  .ayfix-hero-slide,
  .ayfix-hero-slide picture,
  .ayfix-hero-slide img {
    height: 330px;
    min-height: 330px;
    aspect-ratio: auto;
  }

  .ayfix-hero-copy {
    width: min(56%, 430px);
    padding: 32px;
  }

  .ayfix-side-promos {
    display: grid !important;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    margin-top: 14px;
  }

  .ayfix-side-promo {
    min-height: 176px;
  }

  .ayfix-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ayfix-trust-strip > div:nth-child(2) {
    border-right: 0;
  }

  .ayfix-trust-strip > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--ayfix-c-line);
  }

  .primary-sidebar.sticky-sidebar {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .ayfix-promo-grid {
    grid-template-columns: 1fr;
  }

  .ayfix-wide-promo {
    min-height: 144px;
  }

  .detail-info {
    margin-top: 14px;
  }

  .shopping-summery table,
  .shopping-summery thead,
  .shopping-summery tbody,
  .shopping-summery th,
  .shopping-summery td,
  .shopping-summery tr {
    display: block;
  }

  .shopping-summery table.table-wishlist {
    width: 100%;
    min-width: 0;
  }

  .shopping-summery thead {
    display: none;
  }

  .shopping-summery tbody tr {
    position: relative;
    display: grid;
    padding: 15px;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 7px 13px;
  }

  .shopping-summery tbody td {
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
  }

  .shopping-summery tbody td.image {
    grid-row: 1 / 5;
  }

  .shopping-summery tbody td.action {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .shopping-summery tbody tr.pt-30 {
    display: block;
    padding: 14px;
  }

  .shopping-summery tbody tr.pt-30 > td {
    display: block;
    width: 100% !important;
  }

  .shopping-summery tbody tr.pt-30 .col-lg-12 {
    width: 100%;
    margin: 0 !important;
    padding: 0;
  }

  .shopping-summery tbody tr.pt-30 .featured-card {
    width: 100%;
    min-height: 0;
    padding: 24px 16px;
  }
}

@media (max-width: 575px) {
  body .container {
    width: min(100% - 20px, 540px);
  }

  .ayfix-section-heading > a {
    font-size: 11px;
  }

  .ayfix-orbit-track {
    padding: 3px 2px 9px;
  }

  .ayfix-orbit-item {
    min-width: 92px;
  }

  .ayfix-orbit-icon {
    width: 82px;
    height: 82px;
  }

  .ayfix-hero-slide,
  .ayfix-hero-slide picture,
  .ayfix-hero-slide img {
    height: 420px;
    min-height: 420px;
    aspect-ratio: auto;
  }

  .ayfix-hero-slide img {
    object-position: center 58%;
  }

  .ayfix-hero-shade {
    background: linear-gradient(180deg, rgba(6, 31, 51, .86) 0%, rgba(6, 31, 51, .38) 47%, rgba(6, 31, 51, .12) 72%);
  }

  .ayfix-hero-copy {
    width: 100%;
    height: auto;
    padding: 27px 24px;
    justify-content: flex-start;
    inset: 0 0 auto;
  }

  .ayfix-hero-copy strong {
    font-size: clamp(35px, 11vw, 45px);
  }

  .ayfix-hero-copy em {
    max-width: 270px;
    margin-top: 10px;
    font-size: 12px;
  }

  .ayfix-hero-copy b {
    margin-top: 15px;
  }

  .ayfix-side-promos {
    grid-template-columns: 1fr;
  }

  .ayfix-side-promo {
    min-height: 142px;
    padding: 19px;
  }

  .ayfix-side-promo strong {
    font-size: 20px;
  }

  .ayfix-wide-promo {
    min-height: 136px;
    padding: 20px;
  }

  .ayfix-wide-promo strong {
    max-width: 76%;
    font-size: 21px;
  }

  .ayfix-trust-strip > div {
    padding: 14px 12px;
  }

  .ayfix-trust-strip i {
    margin-right: 8px;
    font-size: 25px;
  }

  .ayfix-trust-strip strong {
    font-size: 12px;
  }

  .ayfix-trust-strip small {
    font-size: 10px;
  }

  .ayfix-seed-notice {
    align-items: flex-start;
  }

  .product-cart-wrap .product-img-action-wrap {
    padding: 7px 7px 0;
  }

  .product-cart-wrap .product-content-wrap {
    padding: 11px 10px 13px;
  }

  .product-cart-wrap .product-content-wrap h2 a {
    min-height: 38px;
    font-size: 12px;
  }

  .product-cart-wrap .product-content-wrap .product-price span {
    font-size: 15px;
  }
}

@media (max-width: 359px) {
  .ayfix-hero-slide,
  .ayfix-hero-slide picture,
  .ayfix-hero-slide img {
    height: 386px;
    min-height: 386px;
  }

  .ayfix-hero-copy {
    padding: 22px 18px;
  }

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

  .ayfix-trust-strip > div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--ayfix-c-line);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
