/* 2025 Redesign - Badges Product category archive page */

.info-prod.category-content {
  display: none;
}

/* All Products page (/products) */
.page-products #catalogue .container {
  padding-bottom: 0;
}

.products-section-divider {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid rgba(9, 9, 17, 0.10);
}

.products-page-section {
  margin-bottom: 40px;
}

.products-page-section-title h2 {
  margin: 0 0 24px;
  color: #090911;
  font-size: 48px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -1.44px;
}

.products-empty-message {
  grid-column: 1 / -1;
  color: rgba(9, 9, 17, 0.70);
  font-size: 16px;
}

.cat-page-product-card .presentation-item.keyring-lead-time-item {
  background: url(images/icon_lead_time-b.png) left 0px no-repeat !important;
}

/* Keyrings grid — All Products page only (not archive-keyrings) */
.page-products .all-keyrings-section .cat-page-product-card--keyring .hero-img-wrapper {
  padding-bottom: 0;
  height: 280px;
}

.page-products .all-keyrings-section .cat-page-product-card--keyring .hero-img-wrapper .product-swiper {
  height: 100%;
  width: 100%;
  max-width: 200px;
}

.page-products .all-keyrings-section .cat-page-product-card--keyring .hero-img-wrapper .product-swiper .swiper-wrapper,
.page-products .all-keyrings-section .cat-page-product-card--keyring .hero-img-wrapper .product-swiper .swiper-slide {
  height: 100%;
}

.page-products .all-keyrings-section .cat-page-product-card--keyring .hero-img-wrapper .product-swiper .swiper-slide {
  align-items: center;
}

.page-products .all-keyrings-section .cat-page-product-card--keyring .hero-img-wrapper .product-swiper img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 16px 12px;
  scale: 1.3;
}

/* Other Custom-made products — All Products page only */
.page-products .all-other-products-section .cat-page-product-card--static .hero-img-wrapper {
  padding-bottom: 0;
}

.page-products .all-other-products-section .cat-page-product-card--static .hero-img-wrapper .product-swiper,
.page-products .all-other-products-section .cat-page-product-card--static .hero-img-wrapper .product-swiper--static {
  height: 100%;
  width: 100%;
  max-width: 208px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-products .all-other-products-section .cat-page-product-card--static .hero-img-wrapper .product-swiper .swiper-wrapper,
.page-products .all-other-products-section .cat-page-product-card--static .hero-img-wrapper .product-swiper .swiper-slide {
  height: 100%;
  width: 100%;
}

.page-products .all-other-products-section .cat-page-product-card--static .hero-img-wrapper .product-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-products .all-other-products-section .cat-page-product-card--static .hero-img-wrapper .product-swiper img {
  max-height: none;
  height: 100%;
  width: auto;
  max-width: 208px;
  object-fit: contain;
  padding: 16px 12px;
}

.page-products .title-wrapper h1 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 48px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -1.44px;
  color: #090911;
}

.page-products .cat-page-product-card .product-name {
  font-size: 19px;
  line-height: 25px;
}

/* Product page */

.title-wrapper {
  color: #090911;
}

.title-wrapper h2 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 48px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -1.44px;
}

.title-wrapper h4 {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.title-filters-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.filters-wrapper {
  display: flex;
  gap: 24px;
  align-items: center;
}

.filters-wrapper p {
  margin: 0;
  color: #071209;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.42px;
}

.badge-filter .label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(9, 9, 17, 0.05);
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  color: #090911;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  cursor: pointer;
  border-radius: 0;
}

.badge-filter .label svg {
  width: 16px;
  height: 16px;
}

.badge-filter .label svg path {
  fill: #090911;
}

.badge-filter .label i {
  display: none;
}

.badge-filter .label.filter-active {
  background: #090911;
  color: #FFFFFF;
}

.badge-filter .label.filter-active svg path {
  fill: #FFFFFF;
}

.badge-filter .label.filter-active i {
  display: inline-block;
  color: #FFFFFF;
}

/* All badges */
.all-badges-section-title>h2 {
  color: #464686;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  background: rgba(9, 9, 17, 0.05);
  display: inline-block;
  padding: 8px 12px;
  margin-bottom: 16px;
}

.all-badges-section {
  margin-bottom: 40px;
}

.all-badges-cat-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cat-page-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cat-page-product-card .hero-img-wrapper {
  border: 1px solid rgba(9, 9, 17, 0.10);
  position: relative;
  padding-bottom: 34px;
  height: 260px;
  display: flex;
  align-items: center;
}

.cat-page-product-card .hero-img-wrapper .product-swiper {
  margin: 0 auto;
  max-width: 180px;
}

.cat-page-product-card .hero-img-wrapper .product-swiper .swiper-slide {
  display: flex;
  justify-content: center;
}

.cat-page-product-card .hero-img-wrapper .product-swiper img {
  max-width: 100%;
  padding: 16px 0;
  max-height: 200px;
  height: 100%;
}

.cat-page-product-card .custom-prev img,
.cat-page-product-card .custom-next img {
  width: 48px;
}

.cat-page-product-card .custom-prev.swiper-button-disabled,
.cat-page-product-card .custom-next.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cat-page-product-card .custom-prev,
.cat-page-product-card .custom-next,
.cat-page-product-card .custom-prev.swiper-button-disabled,
.cat-page-product-card .custom-next.swiper-button-disabled {
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.cat-page-product-card:hover .custom-prev,
.cat-page-product-card:hover .custom-next {
  opacity: 1;
}

.cat-page-product-card:hover .custom-prev.swiper-button-disabled,
.cat-page-product-card:hover .custom-next.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cat-page-product-card .label {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(9, 9, 17, 0.05);
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  color: #090911;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
}

.cat-page-product-card .label svg {
  width: 16px;
  height: 16px;
}

.cat-page-product-card .label svg path {
  fill: #090911;
}

.cat-page-product-card .pricing-delivery-wrapper {
  position: absolute;
  bottom: 0;
  z-index: 2;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 0;
}

.cat-page-product-card .pricing-delivery-wrapper p {
  margin: 0;
  color: #464686;
  line-height: 1;
  font-size: 16px;
}

.cat-page-product-card .pricing-delivery-wrapper p img {
  margin-right: 8px;
}

.cat-page-product-card .pricing-delivery-wrapper .pricing-delivery-divider {
  font-size: 12px;
  color: rgba(7, 18, 9, 0.2);
  line-height: normal;
}

.cat-page-product-card .price-range span {
  display: inline-block;
  height: auto;
  transform: translateY(2px);
}

.cat-page-product-card .price-bg path {
  fill: #07120933;
  line-height: normal;
}

.cat-page-product-card .product-details {
  padding: 15px 8px 32px;
}

.cat-page-product-card .product-name {
  margin: 0 0 15px 0;
  color: #090911;
  font-size: 21px;
  font-weight: 400;
  line-height: 26px;
  text-transform: capitalize;
}

.cat-page-product-card .product-subtitle {
  color: rgba(9, 9, 17, 0.70);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin-top: 4px;
  margin-bottom: 15px;
  display: none;
}

.cat-page-product-card .product-description {
  color: rgba(9, 9, 17, 0.70);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  margin-top: 0px;
  margin-bottom: 16px;
}

.cat-page-product-card .shape-wrapper {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.cat-page-product-card .shape-wrapper .shape-item {
  height: 24px;
  padding-left: 42px;
  margin-bottom: 0px;
  background: url(../images/rd/shapes-icon.png) left 0px no-repeat !important;
  background-size: 22px !important;
}

.cat-page-product-card .shape-wrapper span {
  color: #090911;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.cat-page-product-card .hardness-wrapper {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.cat-page-product-card .hardness-wrapper .hardness-item {
  height: 24px;
  padding-left: 42px;
  margin-bottom: 0px;
  background: url(images/icon_hardness.png) left 0px no-repeat !important;
}

.cat-page-product-card .hardness-wrapper span {
  color: #090911;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.cat-page-product-card .presentation-wrapper {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.cat-page-product-card .presentation-wrapper .presentation-item {
  height: 24px;
  padding-left: 42px;
  margin-bottom: 0px;
  background: url(images/icon_presentation.png) left 0px no-repeat !important;
}

.cat-page-product-card .presentation-wrapper span {
  color: #090911;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.cat-page-product-card .packaging-wrapper {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.cat-page-product-card .packaging-wrapper .packaging-item {
  height: 24px;
  padding-left: 42px;
  margin-bottom: 0px;
  background: url(../images/rd/custom-packaging-icon.png) left 0px no-repeat !important;
  background-size: 22px !important;
}

.cat-page-product-card .packaging-wrapper span {
  color: #090911;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.cat-page-product-card .colours-wrapper {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.cat-page-product-card .colours-wrapper .colours-item {
  height: 24px;
  padding-left: 42px;
  margin-bottom: 0px;
  background: url(../images/rd/shapes-icon.png) left 0px no-repeat !important;
  background-size: 22px !important;
}

.cat-page-product-card .colours-wrapper span {
  color: #090911;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.cat-page-product-card .ribbon-wrapper {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.cat-page-product-card .ribbon-wrapper .ribbon-item {
  height: 24px;
  padding-left: 42px;
  margin-bottom: 0px;
  background: url(../images/rd/ribbon-design-icon.png) left 0px no-repeat !important;
  background-size: 22px !important;
}

.cat-page-product-card .ribbon-wrapper span {
  color: #090911;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

/* Product Card Slider + Video on mouseover*/

.product-swiper {
  position: relative;
  overflow: hidden;
}

.product-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
  z-index: 2;
}

.product-video-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-swiper:hover .product-video-overlay {
  opacity: 1;
}



/* Media Queries */

@media(max-width: 1200px) {
  .post-type-archive-badges #catalogue,
  .page-products #catalogue {
    margin: 96px auto;
    padding-top: 40px;
  }

  .products-page-section-title h2 {
    font-size: 38px;
    line-height: 48px;
  }

  .page-products .title-wrapper h1 {
    font-size: 38px;
    line-height: 48px;
  }

  .title-wrapper h2 {
    font-size: 38px;
    line-height: 48px;
  }

  .cat-page-product-card .custom-prev,
  .cat-page-product-card .custom-next,
  .cat-page-product-card .custom-prev.swiper-button-disabled,
  .cat-page-product-card .custom-next.swiper-button-disabled {
    position: absolute;
    z-index: 100;
  }
}

@media(max-width: 991px) {
  .title-filters-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }
  
  .cat-page-product-card .hero-img-wrapper .product-swiper img {
    padding: 16px 10px;
  }

  .all-badges-cat-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media(max-width:767px) {
  .post-type-archive-badges #catalogue,
  .page-products #catalogue {
    margin: 10px auto;
    padding-top: 0px;
  }

  .products-page-section {
    padding: 0 16px;
  }

  .products-page-section-title h2 {
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 40px;
  }

  .page-products .title-wrapper h1 {
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 40px;
  }

  .products-section-divider {
    margin: 32px 16px;
  }

  .hero-breadcrumb a {
    margin-left: 15px;
    padding-left: 0px;
  }

  .title-filters-wrapper {
    flex-direction: column;
    padding: 0 15px;
  }

  .all-badges-section {
    padding: 0 16px;
  }

  .all-badges-cat-products {
    grid-template-columns: 1fr;
  }

  .title-wrapper h2 {
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 40px;
  }

  .filters-wrapper {
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    align-items: baseline;
    gap: 12px;
  }

  .filters-wrapper .badge-filter {
    width: 100%;
  }

  .badge-filter .label span {
    margin-right: auto;
  }

  .product-video-overlay {
    display: none;
    z-index: -1;
  }

  .cat-page-product-card .custom-prev,
  .cat-page-product-card .custom-next {
    opacity: 1;
  }

  .cat-page-product-card .custom-next {
    right: 0;
  }
}