/* Product Carousel Styles */

.aicw-messages .aicw-message-products {
  clear: both;
  float: none;
  width: 100%;
  max-width: 100%;
  margin: 16px 0 20px;
  padding: 0;
  background: transparent;
  border: none;
  direction: ltr;
}

.aicw-messages .aicw-product-carousel-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  padding: 6px 10px 24px !important;
  position: relative !important;
}

.aicw-messages .aicw-product-carousel-wrapper .swiper {
  padding: 10px 35px 40px !important;
  overflow: visible !important;
  width: 100% !important;
  position: relative !important;
}

.aicw-messages .aicw-product-carousel-wrapper .swiper-wrapper {
  align-items: stretch !important;
}

.aicw-messages .aicw-product-carousel-wrapper .swiper-slide {
  height: auto !important;
  display: flex !important;
  width: 220px !important;
  max-width: calc(100vw - 100px) !important;
}

.aicw-product-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.aicw-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.15);
  border-color: #2271b1;
}

.aicw-product-card:active {
  transform: translateY(-2px);
}

.aicw-product-image {
  position: relative;
  width: 100%;
  height: 180px;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 35%, #e0f2fe 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.aicw-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.aicw-product-card:hover .aicw-product-image img {
  transform: scale(1.06);
}

.aicw-product-stock {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
}

.aicw-product-stock.in-stock {
  background: #16a34a;
}

.aicw-product-stock.out-of-stock {
  background: #dc2626;
}

.aicw-product-info {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}

.aicw-product-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.5;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aicw-product-card:hover .aicw-product-name {
  color: #2271b1;
}

.aicw-product-description {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aicw-product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aicw-product-price {
  font-size: 18px;
  font-weight: 800;
  color: #2271b1;
  letter-spacing: -0.02em;
}

/* Swiper Navigation Buttons */
.aicw-messages .aicw-product-carousel-wrapper .swiper-button-next,
.aicw-messages .aicw-product-carousel-wrapper .swiper-button-prev {
  width: 32px !important;
  height: 32px !important;
  background: #fff !important;
  border-radius: 50% !important;
  border: 2px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 10 !important;
  margin-top: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.aicw-messages .aicw-product-carousel-wrapper .swiper-button-next {
  right: 5px !important;
}

.aicw-messages .aicw-product-carousel-wrapper .swiper-button-prev {
  left: 5px !important;
}

.aicw-messages .aicw-product-carousel-wrapper .swiper-button-next:after,
.aicw-messages .aicw-product-carousel-wrapper .swiper-button-prev:after {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  transition: color 0.3s ease !important;
}

.aicw-messages .aicw-product-carousel-wrapper .swiper-button-next:hover,
.aicw-messages .aicw-product-carousel-wrapper .swiper-button-prev:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  border-color: transparent !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.aicw-messages .aicw-product-carousel-wrapper .swiper-button-next:hover:after,
.aicw-messages .aicw-product-carousel-wrapper .swiper-button-prev:hover:after {
  color: #fff !important;
}

.aicw-messages .aicw-product-carousel-wrapper .swiper-button-disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  transform: translateY(-50%) scale(1) !important;
}

/* Swiper Pagination */
.aicw-messages .aicw-product-carousel-wrapper .swiper-pagination {
  bottom: 0 !important;
  position: relative !important;
  margin-top: 8px !important;
}

.aicw-messages .aicw-product-carousel-wrapper .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  background: rgba(15, 23, 42, 0.25) !important;
  opacity: 1 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.aicw-messages .aicw-product-carousel-wrapper .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  width: 22px !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

/* Responsive adjustments */
@media only screen and (max-width: 767px) {
  .aicw-messages .aicw-product-carousel-wrapper .swiper {
    padding: 10px 30px 40px !important;
  }

  .aicw-messages .aicw-product-carousel-wrapper .swiper-slide {
    max-width: calc(100vw - 90px) !important;
  }
}

