/*---------------------------------------
  PRODUCT PUZZLE GRID
-----------------------------------------*/
.product {
  background: var(--white-color);
  padding: 80px 0;
  position: relative;
}

.puzzle-wrapper {
  width: 100%;
  padding: 20px 0;
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.puzzle-piece {
  position: relative;
  overflow: visible;
  aspect-ratio: 4 / 3;
}

.puzzle-piece svg {
  position: absolute;
  left: -12.5%;
  top: -16.67%;
  width: 125%;
  height: 133.33%;
  pointer-events: none;
}

.puzzle-empty {
  /* placeholder for missing top-left piece */
}

.puzzle-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 10px;
}

.puzzle-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.row-top .puzzle-icon {
  background: linear-gradient(135deg, #E7490C, #D7260D);
}

.row-mid .puzzle-icon {
  background: linear-gradient(135deg, #F6A313, #E7490C);
}

.row-bot .puzzle-icon {
  background: linear-gradient(135deg, #F6A313, #E7490C);
}

.puzzle-label {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--p-color);
  line-height: 1.2;
}

@media screen and (max-width: 768px) {
  .puzzle-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .puzzle-grid {
    min-width: 600px;
  }
}

@media screen and (max-width: 880px) {
  .puzzle-grid {
    max-width: 700px;
  }
  .puzzle-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .puzzle-label {
    font-size: 11px;
  }
}

@media screen and (max-width: 480px) {
  .puzzle-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .puzzle-label {
    font-size: 9px;
  }
}
