/* ===== PRODUCT CARD STYLES - COMPLETE ===== */

/* Product Card Container */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
  width: 175px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.product-card.out-of-stock-card {
  opacity: 0.6;
}

.product-card.out-of-stock-card .product-image {
  filter: grayscale(50%);
}

/* Size Variants */
/* .product-card-small {
  max-width: 200px;
}

.product-card-medium {
  max-width: 280px;
}

.product-card-large {
  max-width: 320px;
} */

/* Product Badges */
.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.badge {
  display: inline-block;
  padding: 4px 4px;
  /* border-radius: 12px; */
  font-size: 0.65rem;
  font-weight: 400;
  /* text-transform: uppercase; */
  letter-spacing: 0.3px;
}

.badge-deal {
  background: #ff6b6b;
  color: white;
}

.badge-premium {
  background: #f093fb;
  color: white;
}

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

/* Image Container */
.product-image-container {
  position: relative;
  width: 165px;
  padding: 4px;
  height: auto;
  background: white;
  object-fit: cover;
  align-items: center;
  cursor: pointer;
}

/* .product-card-small .product-image-container {
  height: 180px;
  padding: 15px;
}

.product-card-large .product-image-container {
  height: 280px;
  padding: 25px;
} */

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  align-items: center;
  transition: transform 0.3s ease;
}

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

/* Product Info */
.product-info {
  padding: 0.5rem;
  /* flex: 1;
  display: flex;
  flex-direction: column; */
  /* gap: 8px;
  cursor: pointer; */
}

.product-title {
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 0.25rem;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.product-description {
  color: #666;
  margin-bottom: 0rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.8rem;
}

.price-tag {
  color: var(--accent);
  font-size: medium;
  font-weight: 400;
}

.product-category {
  font-weight: 500;
  color: #2A9D8F;
}

.separator {
  color: #dee2e6;
}

.product-specs {
  color: #6c757d;
  font-size: 0.75rem;
}

/* Price Section */
.product-price-section {
  margin-top: auto;
  padding-top: 8px;
}

.price-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-original {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 300;
  text-decoration: line-through;
}

.price-current {
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark);
}

/* Action Button */
/* .product-actions {
  padding: 0 16px 16px;
} */

.add-to-cart-icon {
  position: relative;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(42, 157, 143, 0.2);
  background: var(--accent);
  color: var(--white);
  padding: 5px 5px;
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;
}

.add-to-cart-icon:hover {
  background: #238276;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 157, 143, 0.3);
}

.add-to-cart-icon:active {
  transform: translateY(0);
}

/* .add-to-cart-icon svg {
  color: white;
  transition: all 0.3s ease;
} */

.cart-icon-svg {
  opacity: 1;
  transition: all 0.3s ease;
}

.check-icon-svg {
  position: absolute;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

/* carting extra */

.add-to-cart:hover {
  background: var(--dark);
  transform: scale(1.1);
}

/* Out of Stock Button Styling */
.add-to-cart.out-of-stock {
  background: #cccccc;
  color: #666666;
  cursor: not-allowed;
  opacity: 0.6;
}

.add-to-cart.out-of-stock:hover {
  background: #cccccc;
  transform: none;
}

/* Optional: Grey out entire out-of-stock product card */
.product-card:has(.out-of-stock) {
  opacity: 0.7;
}

.product-card:has(.out-of-stock) .product-image {
  filter: grayscale(50%);
}

/* Added State */
.add-to-cart-icon.added {
  background: #28a745;
}

.add-to-cart-icon.added .cart-icon-svg {
  opacity: 0;
  transform: scale(0);
}

.add-to-cart-icon.added .check-icon-svg {
  opacity: 1;
  transform: scale(1);
}

/* Disabled State */
.add-to-cart-icon.disabled {
  background: #e9ecef;
  cursor: not-allowed;
  box-shadow: none;
}

.add-to-cart-icon.disabled:hover {
  transform: none;
  background: #e9ecef;
}

.add-to-cart-icon.disabled svg {
  color: #6c757d;
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  top: 100px;
  right: -400px;
  background: white;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transition: right 0.3s ease;
  max-width: 320px;
}

.notification-toast.show {
  right: 24px;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.9rem;
}

.notification-success svg {
  color: #28a745;
}

.notification-error svg {
  color: #dc3545;
}

/* No Products Message */
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
  font-size: 1.1rem;
}

/* Placeholder Image */
img[src*="placeholder-product.png"] {
  opacity: 0.5;
}

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}