/*
 * File: assets/css/product-carousel.css
 * Polymati Product Carousel Styles
 */

.polymati-product-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.polymati-carousel-title {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.polymati-carousel-container {
  position: relative;
  padding: 0 60px;
}

.polymati-product-carousel {
  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.polymati-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.polymati-product-category a {
    text-decoration: none;
    color: inherit;
}

.polymati-carousel-item {
  flex: 0 0 auto;
  box-sizing: border-box;
}

/* Product Card */
.polymati-product-card {
  background: transparent !important;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Product Image */
.polymati-product-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transform: translateY(-5px);
  border-radius: 10px;
}

.polymati-product-image img {
  width: 85%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  padding: 25px;
}

.polymati-product-card:hover .polymati-product-image img {
  transform: scale(1.05);
}

/* Product Content */
.polymati-product-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.polymati-product-price {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}

.polymati-product-price del {
  color: #999;
  margin-right: 5px;
}

.polymati-product-price ins {
  text-decoration: none;
  color: #e74c3c;
}

.polymati-product-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px 0;
  color: #333;
}

.polymati-product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.polymati-product-title:hover {
  color: #6c5ce7;
}

.polymati-product-category {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}

.polymati-add-to-cart {
  margin-top: auto;
  padding-top: 10px;
}

.polymati-add-to-cart .button {
  width: 100%;
  padding: 10px 20px;
  background: #6c5ce7;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.polymati-add-to-cart .button:hover {
  background: #5244c7;
}

/* Navigation Arrows */
.polymati-carousel-arrow {
  position: absolute;
  top: 32%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: #999;
}

.polymati-carousel-arrow:hover {
  background: #f5f5f5;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.polymati-carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.polymati-carousel-prev {
  left: 0;
}

.polymati-carousel-next {
  right: 0;
}

/* Dots Navigation */
.polymati-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.polymati-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.polymati-carousel-dot.active {
  background: #6c5ce7;
  width: 24px;
  border-radius: 5px;
}

/* Responsive Design */
@media (min-width: 1240px) {
	.polymati-product-carousel-wrapper {
		width: 466px;
	}
}
@media (max-width: 1200px) {
  .polymati-carousel-container {
    padding: 0 50px;
  }
}

@media (max-width: 992px) {
  .polymati-carousel-title {
    font-size: 24px;
  }

  .polymati-product-image {
    height: 200px;
    padding: 15px;
  }

  .polymati-carousel-container {
    padding: 0 45px;
  }
}

@media (max-width: 768px) {
  .polymati-carousel-container {
    padding: 0 40px;
  }

  .polymati-carousel-arrow {
    width: 35px;
    height: 35px;
  }

  .polymati-carousel-arrow svg {
    width: 18px;
    height: 18px;
  }

  .polymati-product-content {
    padding: 15px;
  }

  .polymati-product-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .polymati-carousel-container {
    padding: 0 35px;
  }

  .polymati-carousel-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .polymati-carousel-arrow {
    width: 30px;
    height: 30px;
  }

  .polymati-carousel-arrow svg {
    width: 16px;
    height: 16px;
  }

  .polymati-product-image {
    height: 150px;
    padding: 10px;
  }

  .polymati-product-title {
    font-size: 14px;
  }

  .polymati-product-price {
    font-size: 14px;
  }
}
