/* PRODUCTS SINGLE */

.bread {
  padding: 40px 0 6px;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;

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

  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap; 
  -webkit-overflow-scrolling: touch;
}

.breadcrumbs-item {
  flex-shrink: 0; 
}

.breadcrumbs-item a {
  color: #333335;
  opacity: 0.7;
  text-decoration: none;
}

.breadcrumbs-current {
  flex-shrink: 0;
}

.breadcrumbs-separator {
  opacity: 0.4;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .breadcrumbs-list {
    padding-right: 16px;
  }
}

.product {
  padding: 20px 0;
  background: #fff;
}

.product-content {
  display: flex;
  gap: 42px;
  padding-bottom: 54px;
}

.product-image-area,
.product-info {
  width: calc(50% - 26px);
}

.product-image-area {
  position: relative;
}

/* Sticky image block */
.product-image-block {
  top: 100px;
  aspect-ratio: 16 / 12;
  width: 100%;
  background: #06080e;
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
}

/* Swiper fills the block */
.product-gallery-swiper {
  width: 100%;
  height: 100%;
}

.product-gallery-swiper .swiper-wrapper,
.product-gallery-swiper .swiper-slide {
  height: 100%;
}

.product-gallery-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image {
  width: 80%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Pagination */
.product-gallery-pagination {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 5;
}

/* Make bullets visible on dark bg */
.product-gallery-pagination .swiper-pagination-bullet {
  opacity: 0.5;
  background: #fff;
}
.product-gallery-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Nav buttons */
.product-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;

  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;

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

  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.product-gallery-prev { left: 12px; }
.product-gallery-next { right: 12px; }

.product-gallery-nav svg {
  display: block;
  width: 16px;
  height: 16px;
}

.product-gallery-nav:hover {
  background: rgba(255, 255, 255, 0.95);
}

.product-gallery-nav:active {
  transform: translateY(-50%) scale(0.98);
}

/* If only 1 slide - hide ui just in case */
.product-gallery.no-slider .product-gallery-pagination,
.product-gallery.no-slider .product-gallery-nav {
  display: none;
}

@media (max-width: 768px) {
  .product-image-area,
  .product-info {
    width: 100%;
  }

  .product-image-block {
    position: relative;
    top: auto;
  }

  .product-image {
    width: 88%;
  }
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 60px;
}


.product-title {
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.product-desc, .product-spec {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.product-desc p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.btn-product {
  margin-top: 24px;
}

.related-projects {
  background: #eef2fa;
  padding: 85px 0 100px;
}

.related-projects-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* CLIENTS SECTION */

.clients {
  background: #000;
  padding-bottom: 110px;
}

.clients-title {
  width: 100%;
  text-align: center;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 500;
  color: #fff;
  opacity: 0.4;
  margin-bottom: 30px;
}

.clients-content {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.clients-item {
  width: calc((100% - 20px) / 3);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #1b1b1b;
  transition: background-color 0.2s ease-in-out, box-shadow 0.6s ease-in-out;
  cursor: pointer;
}

.clients-item:hover {
  background-color: #212121;
  box-shadow: 0px 0px 0px 2px rgba(83, 83, 83, 1);
  -webkit-box-shadow: 0px 0px 0px 2px rgba(83, 83, 83, 1);
  -moz-box-shadow: 0px 0px 0px 2px rgba(83, 83, 83, 1);
}

.clients-item img {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

@media (max-width: 820px) {
  .clients-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .clients-content {
    gap: 6px;
  }

  .clients-item {
    width: calc((100% - 12px) / 3);
  }
}

@media (max-width: 767px) {
  .clients-title {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .clients-content {
    gap: 5px;
  }

  .clients-item {
    width: calc((100% - 5px) / 2);
  }
}

/* ----- CLIENTS SECTION ----- */

.product .clients {
  margin-top: 100px;
  background: #fff;
  padding-bottom: 100px;
}

.product .clients-title {
  color: #000;
  opacity: 0.4;
}

.product .clients-item {
  background-color: #eef2fa;
}

.product .clients-item:hover {
  background-color: #dee4ee;
  box-shadow: 0px 0px 0px 2px rgba(174, 183, 203, 1);
  -webkit-box-shadow: 0px 0px 0px 2px rgba(174, 183, 203, 1);
  -moz-box-shadow: 0px 0px 0px 2px rgba(174, 183, 203, 1);
}

@media (max-width: 1024px) {
  .product-info {
    gap: 30px;
  }

  .product-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .product-content {
    flex-direction: column;
  }

  .product-info {
    gap: 44px;
  }

  .product-title {
    font-size: 44px;
    max-width: 80%;
  }

  .related-projects {
    padding: 44px 0 54px;
  }

  .product .clients {
    margin-top: 65px;
  }
}

@media (max-width: 767px) {
  .product-info {
    gap: 24px;
  }

  .product-title {
    font-size: 28px;
    max-width: 100%;
  }

  .related-projects {
    padding: 44px 0 70px;
  }

  .product .clients {
    margin-top: 44px;
    padding-bottom: 44px;
  }
}

/* ================================
   Product specs table (3 columns)
================================ */

/* Make sure browser doesn't try to auto-merge widths */
.product .project-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate; /* keep your existing design if it uses radius */
  border-spacing: 0;
}

/* Force 3-column widths */
.product .project-table th:nth-child(1),
.product .project-table td:nth-child(1) {
  width: 55%;
}

.product .project-table th:nth-child(2),
.product .project-table td:nth-child(2) {
  width: 18%;
}

.product .project-table th:nth-child(3),
.product .project-table td:nth-child(3) {
  width: 27%;
}

/* Prevent long text from breaking layout */
.product .project-table th,
.product .project-table td {
  vertical-align: middle;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* If Projects table styles use grid/flex on rows — reset it for product page */
.product .project-table tr {
  display: table-row;
}

.product .project-table thead,
.product .project-table tbody {
  display: table-row-group;
}

.product .project-table th,
.product .project-table td {
  display: table-cell;
}

/* Optional: nicer header wrapping (avoid "stacked" look) */
.product .project-table thead th {
  white-space: normal;
  line-height: 1.1;
}

@media (max-width: 1024px) {
    .product .project-table th:nth-child(1),
    .product .project-table td:nth-child(1) {
        width: 40%;
}
}


@media (max-width: 767px) {
    .product .project-table th:nth-child(1),
    .product .project-table td:nth-child(1) {
        width: 30%;
}
}

/* ----- PROJECTS SECTION ----- */

/* LISTING SECTION */

.listing-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.listing-title {
  color: #000;
}

.listing-filters {
  display: flex;
  gap: 24px;
}

.sorting {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fiters-title {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  opacity: 0.4;
}

.filters-btn {
  display: flex;
}

.filter-btn {
  font-size: 15px;
  padding: 20px 27px;
  border-radius: 4px;
  background-color: #eef2fa;
  color: #000;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  cursor: pointer;
}

.filter-btn.active {
  background-color: #000;
  color: #fff;
}

.listing-area { 
  background: #eef2fa;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.listing-navigation {
  position: static;
  display: none;
}

.slider-navigation-btn {
  width: 51px;
  height: 51px;
  border-radius: 50px;
  box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 1) inset;
  -webkit-box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 1) inset;
  -moz-box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 1) inset;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
}

.swiper-button-disabled {
  opacity: 0.3;
}

.listing-area-title {
  color: #000;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.listing-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.listing-item {
  width: calc((100% - 30px) / 4);
  padding: 20px 24px 30px 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 376px;
  border-radius: 6px;
  cursor: pointer;
  transition: box-shadow 0.3s ease-in-out;
}

.listing-item:hover {
  box-shadow: 0px 0px 0px 2px rgba(168, 181, 208, 1) inset;
  -webkit-box-shadow: 0px 0px 0px 2px rgba(168, 181, 208, 1) inset;
  -moz-box-shadow: 0px 0px 0px 2px rgba(168, 181, 208, 1) inset;
}

.listing-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.listing-text-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #000;
}

.listing-block-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  opacity: 0.4;
}

.listing-block-value {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.listing-block-client {
  font-size: 20px;
}

.listing-item-btn {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  background-color: #000;
  border-radius: 4px;
  padding: 8.5px 21px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  max-width: fit-content;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.listing-item:hover .listing-item-btn {
  background-color: #2561ff;
}

@media (max-width: 1024px) {
  .listing-item {
    width: calc((100% - 20px) / 3);
  }
}

@media (max-width: 1023px) {
  .listing-items {
    display: block;
    width: 100%;
  }
  .listing-item {
    display: flex !important;
    height: 376px !important;
  }
  
  .listing-navigation {
    display: flex;
    gap: 8px;
  }
}

@media (max-width: 767px) {
  .listing-title-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ----- LISTING SECTION ----- */

