/* ===== Equipment page ===== */

/* --- Products section --- */
.equipment-products {
  background-color: var(--color-gray-light);
  overflow: visible;
}

.equipment-products__inner {
  max-width: 375px;
  margin: 0 auto;
  padding: 40px 18px 60px;
  box-sizing: border-box;
}

.equipment-products__header {
  text-align: center;
  margin-bottom: 30px;
}

.equipment-products__title {
  font-family: "Magistral", sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.5;
  color: var(--main-text-color);
  margin: 0 0 16px;
}

.equipment-products__title span {
  color: var(--color-orange-light);
}

.equipment-products__subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: var(--main-text-color);
  margin: 0;
}

.equipment-products__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ===== Product card — Mobile-first (375px) ===== */
.equipment-card {
  background: #fff;
  border: 1px solid #ebecf0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

/* --- Gallery (mobile: main image on top, thumb row below) --- */
.equipment-card__gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.equipment-card__main-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #ebecf0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  order: -1;
  box-sizing: border-box;
}

.equipment-card__main-img {
  display: block;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: cover;
  border-radius: 10px;
  margin: 3px;
}

/* Thumbs wrapper — holds Swiper + nav buttons */
.equipment-card__thumbs {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  position: relative;
  width: 100%;
}

/* Swiper container — horizontal on mobile */
.eq-thumbs-swiper {
  overflow: hidden;
  width: 100%;
}

.eq-thumbs-swiper .swiper-slide {
  width: auto;
  display: flex;
  justify-content: center;
}

.equipment-card__thumb {
  width: 67px;
  height: 67px;
  border: 1px solid #ebecf0;
  border-radius: 16px;
  background: #e8e8ec;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.swiper-slide-thumb-active .equipment-card__thumb,
.equipment-card__thumb:hover {
  border-color: var(--main-text-color);
}

.equipment-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation buttons — horizontal arrows on mobile */
.eq-thumbs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ebecf0;
  border-radius: 6px;
  background: #fff;
  color: var(--main-text-color);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.2s;
  z-index: 2;
}

.eq-thumbs-btn:hover {
  border-color: var(--main-text-color);
}

.eq-thumbs-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.eq-thumbs-btn--prev {
  order: -1;
}

.eq-thumbs-btn--prev svg {
  transform: rotate(-90deg);
}

.eq-thumbs-btn--next svg {
  transform: rotate(-90deg);
}

/* --- Info --- */
.equipment-card__info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.equipment-card__text {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.equipment-card__name {
  font-family: "Magistral", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5;
  color: var(--main-text-color);
  margin: 0;
}

.equipment-card__features {
  list-style: disc;
  padding-left: 24px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--main-text-color);
}

.equipment-card__features li {
  margin-bottom: 2px;
}

.equipment-card__features li:last-child {
  margin-bottom: 0;
}

.equipment-card__bottom {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.equipment-card__price {
  font-family: "Magistral", sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.5;
  color: var(--main-text-color);
  margin: 0;
}

.equipment-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 66px;
  border: 2px solid var(--color-orange);
  border-radius: 12px;
  background: transparent;
  color: var(--color-orange);
  font-family: "Magistral", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  box-sizing: border-box;
}

.equipment-card__btn:hover {
  background-color: var(--color-orange);
  color: #fff;
}

/* ===== Tablet (768px — 1199px) ===== */
@media (min-width: 768px) {
  /* Products section — container 710px centered, NO extra horizontal padding */
  .equipment-products__inner {
    max-width: 710px;
    padding: 60px 0 80px;
  }

  .equipment-products__title {
    font-size: 47px;
  }

  .equipment-products__subtitle {
    font-size: 20px;
  }

  .equipment-products__header {
    margin-bottom: 40px;
  }

  /* Card — vertical layout: gallery on top, info below */
  .equipment-card {
    padding: 30px;
    gap: 40px;
  }

  /* Gallery: horizontal — thumbs column left, main image right */
  .equipment-card__gallery {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .equipment-card__main-img-wrap {
    order: 0;
    width: 0;
    flex: 1 1 0%;
    aspect-ratio: 1;
  }

  .equipment-card__main-img {
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    margin: 6px;
  }

  /* Thumbs: vertical column on the left */
  .equipment-card__thumbs {
    flex-direction: column;
    align-items: center;
    order: -1;
    flex-shrink: 0;
    width: 122px;
  }

  .eq-thumbs-swiper {
    height: calc(122px * 3 + 10px * 3);
    width: 122px;
  }

  .equipment-card__thumb {
    width: 122px;
    height: 122px;
  }

  /* Vertical arrows */
  .eq-thumbs-btn--prev svg {
    transform: rotate(0deg);
  }

  .eq-thumbs-btn--next svg {
    transform: rotate(0deg);
  }

  .eq-thumbs-btn--prev {
    order: -1;
    margin-bottom: 6px;
  }

  .eq-thumbs-btn--next {
    margin-top: 6px;
  }

  /* Info */
  .equipment-card__name {
    font-size: 24px;
  }

  .equipment-card__features {
    font-size: 16px;
  }

  .equipment-card__btn {
    height: 76px;
    font-size: 20px;
  }
}

/* ===== Desktop (1200px+) ===== */
@media (min-width: 1200px) {
  /* Products section */
  .equipment-products__inner {
    max-width: 1290px;
    padding: 80px 30px 120px;
  }

  .equipment-products__header {
    margin-bottom: 60px;
  }

  .equipment-products__title {
    font-size: 52px;
  }

  .equipment-products__subtitle {
    font-size: 20px;
  }

  /* Card: horizontal — gallery left, info right */
  .equipment-card {
    flex-direction: row;
    padding: 30px;
    gap: 30px;
    align-items: flex-start;
  }

  /* Gallery: stays row (thumbs + main) — shrinks proportionally */
  .equipment-card__gallery {
    flex-shrink: 0;
    width: auto;
  }

  .equipment-card__thumbs {
    width: 105px;
  }

  .eq-thumbs-swiper {
    height: calc(105px * 3 + 10px * 3);
    width: 105px;
  }

  .equipment-card__thumb {
    width: 105px;
    height: 105px;
  }

  .equipment-card__main-img-wrap {
    width: 450px;
    flex: 0 0 450px;
    aspect-ratio: 1;
  }

  .equipment-card__main-img {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    margin: 5px;
  }

  /* Info takes remaining width, stretches full card height */
  .equipment-card__info {
    flex: 1 1 0%;
    min-width: 0;
    align-self: stretch;
  }
}

/* ===== Full-width (1920px) ===== */
@media (min-width: 1920px) {
  .equipment-products__inner {
    padding: 80px 0 120px;
  }
}
