/* Product Box Layout 15 - Clean Design with No Background */

.product-item {
  position: relative;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

/* Product Image Container */
.product-image-container {
  position: relative;
  background-color: #f3f3f3;
  overflow: hidden;
  border-radius: 8px;
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: contain;
  display: block;
  padding: 15px;
  transition: opacity 0.5s ease;
}

.main-image {
  position: relative;
  z-index: 1;
}

.hover-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 2;
  background-color: #f3f3f3;
}

.product-item:hover .hover-image {
  opacity: 1;
}

/* Product Badges */
.product-badges {
  position: absolute;
  bottom: 10px !important;
  left: 10px !important;
  z-index: 2 !important;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  line-height: 1;
}

.sale-badge {
  background-color: #ff6b6b !important;
  color: white !important;
}

.out-of-stock-badge {
  background-color: #6c757d !important;
  color: white !important;
}

/* Product Info */
.product-info {
  padding: 12px 10px !important;
  text-align: left;
}

.product-name {
  display: block;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #333 !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  margin-bottom: 1px !important;
  /* min-height: 40px; */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.3s ease;
}

.product-name:hover {
  color: #007bff;
  text-decoration: none;
}

/* Product Price */
.product-price {
  display: flex;
  align-items: start;
  justify-content: left;
  gap: 8px;
  flex-wrap: wrap;
}

.current-price {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.original-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-item {
    margin-bottom: 15px;
  }

  .product-name {
    font-size: 13px;
    min-height: 36px;
  }

  .current-price {
    font-size: 15px;
  }

  .original-price {
    font-size: 13px;
  }

  .badge {
    font-size: 10px;
    padding: 3px 6px;
  }
}

@media (max-width: 576px) {
  .product-item {
    margin-bottom: 12px;
  }

  .product-info {
    padding: 12px 10px;
  }

  .product-name {
    font-size: 12px;
    min-height: 34px;
    margin-bottom: 6px;
  }

  .current-price {
    font-size: 14px;
  }

  .original-price {
    font-size: 12px;
  }
}

/* Grid Layout for Multiple Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
}

/* Smooth Transitions */
.product-item * {
  transition: all 0.3s ease;
}

/* Focus States for Accessibility */
/* .product-name:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
  border-radius: 2px;
} */

/* Loading State */
.product-item.loading {
  opacity: 0.6;
  pointer-events: none;
}

.product-item.loading .product-image {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}