/* Accessories Slider styling */

.accessories-slider {
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Header with title and VŠE button */
.accessories-slider__header {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.accessories-slider__header h2 {
  margin: 0;
  text-align: left;
}

.accessories-slider__all-link {
  display: inline-block;
  transform: translateY(-10px);
  padding: 10px 25px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wp--preset--color--primary, #009bb4);
  text-decoration: none;
  border: 1px solid var(--wp--preset--color--primary, #009bb4);
  transition: background-color 0.3s, color 0.3s;
}

.accessories-slider__all-link:hover {
  color: #fff;
  background-color: var(--wp--preset--color--primary, #009bb4);
}

/* Slider content */
.accessories-slider .content {
  width: 100%;
  height: 500px;
  padding: 15px;
  text-align: center;
  background-color: #fff;
  border: 1px solid var(--wp--preset--color--primary, #009bb4);
}

.accessories-slider .content .accessory {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.accessories-slider .accessory__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
}

.accessories-slider .accessory__image img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.accessories-slider .accessory__info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-top: 15px;
  text-align: left;
}

.accessories-slider .accessory__info h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  min-height: calc(2 * 16px * 1.3);
}

.accessories-slider .accessory__description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 15px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #333;
}

.accessories-slider .accessory__buy-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 25px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background-color: var(--wp--preset--color--primary, #009bb4);
  transition: background-color 0.3s;
}

.accessories-slider .accessory__buy-btn:hover {
  color: #fff;
  background-color: #007a91;
}

/* Pagination */
.accessories-slider .custom-pagination-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.accessories-slider .custom-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: none;
}

.accessories-slider .custom-pagination {
  display: flex;
  flex-grow: 1;
  gap: 2px;
  justify-content: center;
  min-width: 0;
}

.accessories-slider .custom-pagination .line {
  flex-grow: 1;
  height: 3px;
  cursor: pointer;
  background-color: #cdcdcd;
  transition: background-color 0.3s;
}

.accessories-slider .custom-pagination .line.active {
  background-color: var(--wp--preset--color--primary, #009bb4);
}

/* Responsive styles */
@media screen and (max-width: 1199px) {
  .accessories-slider .content {
    height: 400px;
    padding: 10px;
  }

  .accessories-slider .accessory__image {
    height: 200px;
  }

  .accessories-slider .accessory__image img {
    max-height: 200px;
  }

  .accessories-slider .accessory__info h3 {
    font-size: 14px;
    min-height: calc(2 * 14px * 1.3);
  }

  .accessories-slider .accessory__description {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .accessories-slider .accessory__buy-btn {
    padding: 8px 20px;
    font-size: 12px;
  }

  .accessories-slider .custom-arrow {
    width: 30px;
    height: 30px;
  }
}

@media screen and (max-width: 767px) {
  .accessories-slider .content {
    height: 340px;
  }

  .accessories-slider .accessory__image {
    height: 150px;
  }

  .accessories-slider .accessory__image img {
    max-height: 150px;
  }
}
