/* Embla Carousel - Clean Modern Design */
.embla {
  overflow: hidden;
  position: relative;
}

.embla__container {
  display: flex;
  gap: 24px;
  margin-left: -24px;
}

.embla__slide {
  flex: 0 0 325px;
  min-width: 0;
  padding-left: 24px;
}

/* Clean Product Card */
.embla__slide .product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.embla__slide .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #d1d5db;
}

.embla__slide .product-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f9fafb;
}

.embla__slide .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.embla__slide .product-card:hover .product-image img {
  transform: scale(1.02);
}

.embla__slide .product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: #111827;
  color: white;
}

.embla__slide .product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.embla__slide .product-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.embla__slide .product-category {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
  font-weight: 400;
}

.embla__slide .product-price {
  margin-bottom: 12px;
}

.embla__slide .price-current {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.embla__slide .price-original {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 8px;
}

.embla__slide .product-seller {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.embla__slide .product-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.embla__slide .btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.embla__slide .btn-primary {
  background: #111827;
  color: white;
  border-color: #111827;
}

.embla__slide .btn-primary:hover {
  background: #374151;
  border-color: #374151;
}

.embla__slide .btn-secondary {
  background: transparent;
  color: #6b7280;
  border-color: #d1d5db;
}

.embla__slide .btn-secondary:hover {
  background: #f9fafb;
  color: #374151;
  border-color: #9ca3af;
}

/* Clean Navigation */
.embla__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

.embla__buttons {
  display: flex;
  gap: 8px;
}

.embla__button {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
}

.embla__button:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #374151;
}

.embla__button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.embla__button:disabled:hover {
  border-color: #e5e7eb;
  background: white;
  color: #6b7280;
}

.embla__button svg {
  width: 18px;
  height: 18px;
}

/* Clean Section Headers */
.carousel-section {
  margin-bottom: 48px;
}

.carousel-section .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: none;
}

.carousel-section .card-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.carousel-section .card-title::before {
  display: none;
}

.carousel-section .btn-outline {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
}

.carousel-section .btn-outline:hover {
  background: #f9fafb;
  color: #374151;
  border-color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
  .embla__container {
    gap: 16px;
    margin-left: -16px;
  }
  
  .embla__slide {
    flex: 0 0 260px;
    padding-left: 16px;
  }
  
  .embla__slide .product-image {
    height: 180px;
  }
  
  .embla__slide .product-info {
    padding: 16px;
  }
  
  .embla__slide .product-name {
    font-size: 15px;
  }
  
  .embla__slide .price-current {
    font-size: 18px;
  }
  
  .carousel-section .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .carousel-section .card-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .embla__container {
    gap: 12px;
    margin-left: -12px;
  }
  
  .embla__slide {
    flex: 0 0 240px;
    padding-left: 12px;
  }
  
  .embla__slide .product-image {
    height: 160px;
  }
  
  .embla__slide .product-info {
    padding: 14px;
  }
  
  .embla__button {
    width: 36px;
    height: 36px;
  }
  
  .embla__button svg {
    width: 16px;
    height: 16px;
  }
}

/* Loading State */
.carousel-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #9ca3af;
}

.carousel-loading::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 2px solid #f3f4f6;
  border-top: 2px solid #6b7280;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Empty State */
.carousel-empty {
  text-align: center;
  padding: 48px 20px;
  color: #9ca3af;
}

.carousel-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.carousel-empty h3 {
  margin-bottom: 6px;
  color: #374151;
  font-size: 18px;
}
