/* =====================================================
   OMNITORQUE PRODUCTS SECTION - CLEAN FINAL CSS
===================================================== */

.products-section {
  padding: 5px 0;
  background: #f3f3f1;
}

.products-section .section-head {
  align-items: flex-end;
}

.products-section .section-head h2 {
  margin-top: 5px;
}


/* =====================================================
   PRODUCT GRID
===================================================== */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid #c9cbc9;
}


/* =====================================================
   PRODUCT CARD
===================================================== */

.product-card {
  display: grid;
  grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
  align-items: stretch;

  min-height: 0;

  background: #f3f3f1;
  border-left: 1px solid #c9cbc9;
  border-right: 1px solid #c9cbc9;
  border-bottom: 1px solid #c9cbc9;

  overflow: hidden;

  transition:
    background 0.35s ease,
    transform 0.35s ease,
    color 0.35s ease;
}


/* ODD CARD
   Image left / Content right
----------------------------------------------------- */

.product-card .product-media-wrap {
  grid-column: 1;
  grid-row: 1;
}

.product-card .product-content {
  grid-column: 2;
  grid-row: 1;
}


/* EVEN CARD
   Content left / Image right
----------------------------------------------------- */

.product-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
}

.product-card:nth-child(even) .product-content {
  grid-column: 1;
  grid-row: 1;
}

.product-card:nth-child(even) .product-media-wrap {
  grid-column: 2;
  grid-row: 1;
}


/* CARD HOVER */

.product-card:hover {
  background: #fff;
  transform: translateY(-3px);
}


/* =====================================================
   CARD COLOURS
===================================================== */

.product-card-featured {
  background: #c75b2b;
  color: #fff;
}

.product-card-featured:hover {
  background: #b84f24;
}

.product-card-dark {
  background: #24272a;
  color: #fff;
}

.product-card-dark:hover {
  background: #191b1d;
}


/* =====================================================
   IMAGE AREA
   Main image + sub-product thumbnails
===================================================== */

.product-media-wrap {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  align-self: stretch;

  background: #e5e6e4;
}


/* MAIN IMAGE */

.product-media {
  width: 100%;
  aspect-ratio: 1 / 1;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: #e5e6e4;
  overflow: hidden;
}

.product-card-featured .product-media {
  background: #e2e3e1;
}

.product-card-dark .product-media {
  background: #d9dad8;
}

.product-media img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  filter: drop-shadow(
    0 18px 20px rgba(20, 22, 24, 0.18)
  );

  transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.025);
}


/* =====================================================
   SUB PRODUCT THUMBNAILS
===================================================== */

.product-thumbnails {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 6px;

  padding: 7px;

  background: #fff;
  border-top: 1px solid #d5d6d4;
}

.product-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  aspect-ratio: 1 / 1;

  background: #f3f3f1;

  overflow: hidden;
}

.product-thumbnail img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  filter: none;

  transition: transform 0.3s ease;
}

.product-thumbnail:hover img {
  transform: scale(1.06);
}


/* =====================================================
   PRODUCT CONTENT
===================================================== */

.product-content {
  min-width: 0;

  padding: clamp(18px, 3.5vw, 28px);

  display: flex;
  flex-direction: column;

  align-self: stretch;
}


/* NUMBER / TOP LINE */

.product-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 24px;

  padding-bottom: 15px;

  border-bottom: 1px solid currentColor;

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.15em;

  opacity: 0.72;
}


/* PRODUCT TITLE */

.product-card h3 {
  margin: 25px 0 18px;

  font:
    600 clamp(2.5rem, 4.5vw, 4.5rem) / 0.95
    Manrope,
    sans-serif;

  letter-spacing: -0.05em;
}

.product-card p {
  max-width: 580px;

  margin: 0 0 20px;

  color: inherit;

  line-height: 1.55;

  opacity: 0.75;
}


/* =====================================================
   OLD PRODUCT LIST FALLBACK
===================================================== */

.product-list {
  margin: 0 0 20px;
  padding: 0;

  list-style: none;
}

.product-list li {
  position: relative;

  padding: 9px 0 9px 22px;

  border-top:
    1px solid rgba(100, 104, 108, 0.25);

  line-height: 1.35;
}

.product-list li::before {
  content: "";

  position: absolute;

  left: 0;
  top: 15px;

  width: 6px;
  height: 6px;

  background: #c75b2b;

  border-radius: 50%;
}

.product-card-featured .product-list li,
.product-card-dark .product-list li {
  border-color:
    rgba(255, 255, 255, 0.22);
}

.product-card-featured .product-list li::before {
  background: #24272a;
}


/* =====================================================
   AUTOMATIC SUB PRODUCT LIST
===================================================== */

.product-subproducts {
  width: 100%;

  margin: 0 0 30px !important;
  padding: 0 !important;

  list-style: none !important;

  border-top:
    1px solid rgba(100, 104, 108, 0.25);
}

.product-subproducts li {
  margin: 0 !important;
  padding: 0 !important;

  list-style: none !important;

  border-bottom:
    1px solid rgba(100, 104, 108, 0.25);
}

.product-subproducts li::before {
  display: none !important;
  content: none !important;
}

.product-subproducts li::marker {
  content: "" !important;
}


/* SUB PRODUCT LINK */

.product-subproducts li a {
  width: 100%;

  display: flex !important;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 13px 0 !important;

  color: inherit !important;

  text-decoration: none !important;

  font-size: 15px;
  font-weight: 500;

  line-height: 1.35;

  transition: opacity 0.2s ease;
}

.product-subproducts li a > span:first-child {
  flex: 1 1 auto;
}

.product-subproducts .product-arrow {
  flex: 0 0 auto;

  margin-left: auto;

  font-size: 16px;
  line-height: 1;
}

.product-subproducts li a:hover {
  opacity: 0.65;
}


/* ORANGE CARD SUB PRODUCTS */

.product-card-featured .product-subproducts {
  border-top-color:
    rgba(255, 255, 255, 0.28);
}

.product-card-featured .product-subproducts li {
  border-bottom-color:
    rgba(255, 255, 255, 0.28);
}

.product-card-featured .product-subproducts li a {
  color: #fff !important;
}


/* DARK CARD SUB PRODUCTS */

.product-card-dark .product-subproducts {
  border-top-color:
    rgba(255, 255, 255, 0.22);
}

.product-card-dark .product-subproducts li {
  border-bottom-color:
    rgba(255, 255, 255, 0.22);
}

.product-card-dark .product-subproducts li a {
  color: #fff !important;
}


/* WHITE CARD SUB PRODUCTS */

.product-card:not(.product-card-featured):not(.product-card-dark)
.product-subproducts {
  border-top-color: #d5d6d4;
}

.product-card:not(.product-card-featured):not(.product-card-dark)
.product-subproducts li {
  border-bottom-color: #d5d6d4;
}

.product-card:not(.product-card-featured):not(.product-card-dark)
.product-subproducts li a {
  color: #24272a !important;
}


/* =====================================================
   DISCUSS REQUIREMENT
===================================================== */

.product-link {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;

  margin-top: auto;

  padding-top: 14px;

  border-top: 1px solid currentColor;

  font-weight: 600;
}

.product-link span {
  font-size: 1.5rem;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

  .product-card {
    grid-template-columns:
      minmax(280px, 42%)
      minmax(0, 1fr);
  }

  .product-card:nth-child(even) {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(280px, 42%);
  }

  .product-content {
    padding: 22px;
  }

  .product-card h3 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
  }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 800px) {

  .products-section {
    padding: 78px 0;
  }

  .product-card,
  .product-card:nth-child(even) {
    display: grid;

    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }


  /* IMAGE ALWAYS FIRST */

  .product-card .product-media-wrap,
  .product-card:nth-child(even) .product-media-wrap {
    grid-column: 1;
    grid-row: 1;

    order: initial;
  }


  /* CONTENT ALWAYS SECOND */

  .product-card .product-content,
  .product-card:nth-child(even) .product-content {
    grid-column: 1;
    grid-row: 2;
  }


  .product-media {
    aspect-ratio: 1 / 1;
    padding: 18px;
  }


  .product-content {
    padding: 28px 24px;
  }


  .product-card h3 {
    margin: 24px 0 16px;

    font-size: clamp(2.3rem, 11vw, 3.5rem);
  }


  .product-subproducts li a {
    padding: 12px 0 !important;

    font-size: 14px;
  }


  .product-thumbnails {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));

    gap: 5px;

    padding: 6px;
  }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 520px) {

  .product-thumbnails {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .product-content {
    padding: 24px 20px;
  }

}
/* =====================================================
   PRODUCT THUMBNAIL SLIDER - FINAL OVERRIDE
===================================================== */

.product-thumb-slider {
    position: relative;
    width: 100%;
    background: #fff;
    border-top: 1px solid #d5d6d4;
    overflow: hidden;
}

.product-thumbnails-viewport {
    width: 100%;
    overflow: hidden;
}

.product-thumbnails {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;

    width: max-content !important;
    gap: 6px !important;
    padding: 7px !important;

    transition: transform 0.35s ease;
}

.product-thumbnail {
    flex: 0 0 auto !important;

    width: 103px !important;
    height: 103px !important;
    aspect-ratio: 1 / 1;

    display: flex !important;
    align-items: center;
    justify-content: center;

    background: #f3f3f1;
    overflow: hidden;
}

.product-thumbnail img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}


/* ARROWS */

.product-thumb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;

    width: 34px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    padding: 0;

    background: rgba(36, 39, 42, 0.9);
    color: #fff;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.product-thumb-prev {
    left: 7px;
}

.product-thumb-next {
    right: 7px;
}

.product-thumb-arrow:hover {
    background: #c75b2b;
}

.product-thumb-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}


/* MOBILE */

@media (max-width: 800px) {

    .product-thumbnail {
        width: 90px !important;
        height: 90px !important;
    }

}
/* =====================================================
   THUMBNAIL SLIDER - EXACTLY 4 VISIBLE
===================================================== */

.product-thumb-slider {
    position: relative;
    width: 100%;
    overflow: hidden !important;
    background: #fff;
    border-top: 1px solid #d5d6d4;
}

/* viewport takes complete width */
.product-thumbnails-viewport {
    width: 100% !important;
    overflow: hidden !important;
}

/* single horizontal row */
.product-thumbnails {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;

    width: 100% !important;

    gap: 6px !important;
    padding: 7px !important;

    box-sizing: border-box !important;

    transition: transform 0.35s ease;
    will-change: transform;
}

/* EXACTLY 4 THUMBNAILS */
.product-thumbnail {
    flex: 0 0 calc((100% - 18px) / 4) !important;

    width: calc((100% - 18px) / 4) !important;
    min-width: calc((100% - 18px) / 4) !important;
    max-width: calc((100% - 18px) / 4) !important;

    aspect-ratio: 1 / 1 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    background: #f3f3f1;
    overflow: hidden;
    box-sizing: border-box;
}

.product-thumbnail img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}


/* =========================================
   ARROWS
========================================= */

.product-thumb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    z-index: 30;

    width: 32px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;

    background: rgba(36, 39, 42, 0.88);
    color: #fff;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.product-thumb-prev {
    left: 7px;
}

.product-thumb-next {
    right: 7px;
}

.product-thumb-arrow:hover {
    background: #c75b2b;
}

.product-thumb-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}