/* Oeltek Post Image Section - clean version */

.oeltek-pi-wrap,
.oeltek-pi-wrap * {
  box-sizing: border-box;
}

.oeltek-pi-wrap {
  direction: rtl;
  width: min(80vw, 1280px);
  margin: 34px auto;
  padding: 0;
  background: transparent;
  border: 0;
  position: relative;
  clear: both;
}

.oeltek-pi-track {
  direction: rtl;
  display: flex;
  flex-direction: row;
  gap: 14px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 12px;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: #bdbdbd transparent;
}

.oeltek-pi-track::-webkit-scrollbar {
  height: 7px;
}

.oeltek-pi-track::-webkit-scrollbar-track {
  background: transparent;
}

.oeltek-pi-track::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 20px;
}

.oeltek-pi-card {
  flex: 0 0 calc((100% - 70px) / 6);
  min-width: 132px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  scroll-snap-align: start;
}

.oeltek-pi-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.oeltek-pi-imgbox {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
}

.oeltek-pi-imgbox img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.oeltek-pi-title {
  display: block;
  margin-top: 9px;
  height: 44px;
  overflow: hidden;
  text-align: right;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 500;
  color: #555;
}

.oeltek-pi-price,
.oeltek-pi-unavailable {
  display: block;
  margin-top: 3px;
  text-align: right;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 800;
}

.oeltek-pi-price,
.oeltek-pi-price *,
.oeltek-pi-price ins,
.oeltek-pi-price bdi,
.oeltek-pi-price .amount {
  color: #d71920 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
  text-decoration: none !important;
  font-weight: 800;
}

.oeltek-pi-price del,
.oeltek-pi-price .screen-reader-text {
  display: none !important;
}

.oeltek-pi-price ins {
  padding: 0 !important;
  margin: 0 !important;
}

.oeltek-pi-unavailable {
  color: #777;
}

.oeltek-pi-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.oeltek-pi-btn {
  width: 36px;
  height: 30px;
  border: 1px solid #d2d2d2;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tablet */
@media (max-width: 1024px) {
  .oeltek-pi-wrap {
    width: 92vw;
  }

  .oeltek-pi-card {
    flex-basis: calc((100% - 56px) / 5);
  }

  .oeltek-pi-controls {
    display: none;
  }
}

/* Phone - safe clean version */
@media (max-width: 768px) {
  .oeltek-pi-wrap {
    width: 100%;
    max-width: 100%;
    margin: 26px 0;
    padding: 0;
    overflow: hidden;
  }

  .oeltek-pi-track {
    width: 100%;
    max-width: 100%;
    gap: 10px;
    padding: 0 0 8px 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .oeltek-pi-track::-webkit-scrollbar {
    display: none;
  }

  .oeltek-pi-card {
    flex: 0 0 calc((100% - 23px) / 3.3);
    width: calc((100% - 23px) / 3.3);
    min-width: calc((100% - 23px) / 3.3);
    max-width: calc((100% - 23px) / 3.3);
  }

  .oeltek-pi-imgbox {
    border-radius: 10px;
  }

  .oeltek-pi-title {
    margin-top: 7px;
    height: 38px;
    font-size: 11.5px;
    line-height: 1.65;
  }

  .oeltek-pi-price,
  .oeltek-pi-price *,
  .oeltek-pi-price ins,
  .oeltek-pi-price bdi,
  .oeltek-pi-price .amount,
  .oeltek-pi-unavailable {
    font-size: 9.6px !important;
    line-height: 1.55 !important;
  }
}
