.category-link {
  position: relative;
  display: block;
  min-width: 0;
  padding: 23px 8px;
  border-bottom: 1px solid #e6e6e6;
  color: #333;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: .5px;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: color .25s, padding .25s;
}

.products-page .collection-layout {
  grid-template-columns: 350px minmax(0, 1202px);
  gap: 48px;
  align-items: start;
}

.products-page .category-sidebar {
  top: 112px;
  min-height: 1222px;
  padding: 52px 24px;
  border: 1.5px solid #e3e3e3;
  background: #fbfbfb;
}

.products-page .category-list {
  display: flex;
  flex-direction: column;
  gap: 51px;
}

.products-page .category-link {
  min-height: 72px;
  padding: 0 0 39px;
  font-size: 20px;
  line-height: 32px;
}

.products-page .category-link:hover {
  padding-left: 0;
}


.products-page .category-link.active{
  color: var(--red);
  font-weight: 600;
}


.category-copper .category-link.active::after {
  content: "";
  position: absolute;
  right: -31px;
  top: -13px;
  width: 6px;
  height: 56px;
  background: var(--red);
}

.category-link:last-child {
  border-bottom: 0;
}

.category-link:hover {
  color: var(--red);
  padding-left: 15px;
}

.product-category-section {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
}

.category-copper #copper,
.category-aluminum #aluminum,
.category-cast-aluminum #cast-aluminum,
.category-courtyard #courtyard,
.category-railing #railing,
.category-gazebo #gazebo,
.category-screen #screen,
.category-window #window,
.category-wrought #wrought {
  display: block;
}

.products-page .results-heading {
  display: none;
}

.products-page .collection-grid {
  grid-template-columns: repeat(3, minmax(0, 379px));
  gap: 32px;
}

.products-page .collection-card figure {
  height: 290px;
}

.detail-shell,
.craft-section {
  width: min(1600px, calc(100% - 80px));
  margin: auto
}

.detail-shell {
  padding-top: 176px
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 58px;
  color: #aaa;
  font-size: 12px;
  letter-spacing: 1px
}

.detail-breadcrumb strong {
  color: #a7191f;
  font-weight: 600
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 808px) minmax(430px, 600px);
  gap: clamp(44px, 4vw, 72px);
  align-items: start
}

.product-gallery-main {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #eee
}

.product-gallery-main .swiper-slide {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #eee
}

.product-gallery-main img {
  max-width: 100%;
  margin:0 auto;
  height: 100%;
  transition: transform 1s ease
}

.product-gallery-main .swiper-slide-active img {
  transform: scale(1.015)
}

.gallery-prev,
.gallery-next {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border: 1px solid #ffffff99;
  background: #0006;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background .25s, border-color .25s, opacity .25s
}

.gallery-prev {
  left: 22px
}

.gallery-next {
  right: 22px
}

.gallery-prev:hover,
.gallery-next:hover {
  border-color: #a7191f;
  background: #a7191f
}

.gallery-prev.swiper-button-disabled,
.gallery-next.swiper-button-disabled {
  opacity: .35
}

.gallery-count {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 20px;
  left: auto !important;
  width: auto !important;
  padding: 8px 12px;
  background: #0008;
  color: #fff;
  font: 500 14px/1 var(--serif);
  letter-spacing: 1px
}

.product-gallery-thumbs {
  width: 100%;
  margin-top: 20px;
  overflow: hidden
}

.product-gallery-thumbs .swiper-slide {
  height: 128px;
  border: 2px solid transparent;
  background: #eee;
  overflow: hidden;
  opacity: .58;
  cursor: pointer;
  transition: border-color .25s, opacity .25s
}

.product-gallery-thumbs .swiper-slide:hover,
.product-gallery-thumbs .swiper-slide-thumb-active {
  border-color: #a7191f;
  opacity: 1
}

.product-gallery-thumbs img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

/* .detail-copy {
  padding-top: 8px
}

.detail-eyebrow {
  margin: 0 0 24px;
  color: #a7191f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px
}

.detail-copy h1 {
  margin: 0;
  font: 500 clamp(44px, 3.1vw, 60px)/1.05 var(--serif);
  letter-spacing: 0
}

.detail-rule {
  display: block;
  width: 72px;
  height: 3px;
  margin: 27px 0 30px;
  background: #a7191f
}

.detail-lead {
  margin: 0 0 35px;
  color: #666;
  font-size: 16px;
  line-height: 1.75
}

.spec-list {
  margin: 0;
  border-top: 1px solid #ddd
}

.spec-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid #ddd
}

.spec-list dt {
  color: #777;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px
}

.spec-list dd {
  margin: 0;
  color: #292929;
  font: 500 16px/1.4 var(--serif)
} */

.quote-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 250px;
  margin-top: 32px;
  padding: 18px 22px;
  background: #a7191f;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background .25s
}

.quote-button:hover {
  background: #72070d
}

.quote-button span {
  font-size: 20px
}

.custom-note {
  max-width: 480px;
  margin: 20px 0 0;
  color: #888;
  font-size: 14px;
  line-height: 1.6
}

.overview-section {
  margin-top: 112px;
  padding: 95px 40px;
  background: #f5f3f1;
  text-align: center
}

.overview-copy {
  max-width: 960px;
  margin: auto
}

.overview-copy>p,
.craft-heading>p {
  margin: 0 0 21px;
  color: #a7191f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px
}

.overview-copy h2,
.craft-heading h2 {
  margin: 0;
  font: 500 clamp(42px, 3.1vw, 58px)/1.08 var(--serif);
  letter-spacing: 0
}

.overview-copy i {
  display: block;
  width: 70px;
  height: 2px;
  margin: 28px auto;
  background: #a7191f
}

.overview-copy>div {
  color: #666;
  font-size: 17px;
  line-height: 1.75
}

.craft-section {
  padding: 108px 0 120px
}

.craft-heading {
  text-align: center;
  margin-bottom: 52px
}

.craftsmanship-swiper {
  overflow: hidden
}




.craft-card a>div {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 24px;
  bottom: 27px;
  color: #fff
}


.product-details-page .footer {
  margin-top: 0
}

.detail-grid>* {
  min-width: 0
}

.product-gallery {
  min-width: 0;
  max-width: 100%
}

.product-gallery-main,
.product-gallery-thumbs {
  max-width: 100%
}



@media (max-width: 820px) {
  .category-link:nth-child(odd) {
    border-right: 1px solid #e6e6e6;
  }

  .products-page .collection-layout {
    grid-template-columns: 1fr;
  }

  .products-page .category-sidebar {
    min-height: 0;
    padding: 24px 18px;
    display:none;
  }

  .products-page .category-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .products-page .category-link {
    min-height: 0;
    padding: 18px 12px;
    font-size: 14px;
    line-height: 1.45;
  }

  .products-page .category-link:hover {
    padding-left: 12px;
  }

  .products-page .category-link::after {
    display: none;
  }

  .products-page .collection-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-category-section {
    scroll-margin-top: 88px;
  }
  .detail-shell{padding-top:100px}

}

@media (max-width: 520px) {
  .category-link:nth-child(odd) {
    border-right: 0;
  }

  .products-page .category-list {
    grid-template-columns: 1fr;
  }

  .products-page .collection-grid {
    grid-template-columns: 1fr;
  }
}