/* PRODUCT CARD */
.product-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 240, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
  border-radius: 20px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(114, 47, 55, 0.08),
              0 4px 12px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  transform-origin: center;
  display: flex;
  flex-direction: column;
  max-width: 380px;
  min-height: 650px;
  width: 100%;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--accent-wine) 0%, 
    var(--accent-plum) 50%, 
    var(--accent-gold) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(114, 47, 55, 0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(114, 47, 55, 0.18),
              0 12px 32px rgba(139, 90, 60, 0.12),
              0 6px 16px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(114, 47, 55, 0.15);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover::after {
  opacity: 1;
}

.product-card__image {
  margin: 0;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, 
    rgba(248, 245, 240, 0.5) 0%, 
    rgba(255, 255, 255, 0.8) 100%);
  position: relative;
}

.wine-page .product-card__image {
  height: 450px;
}

.wine-page .product-card__img {
  object-fit: cover;
  object-position: center;
}

.product-illustration {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    var(--accent-gold) 20%, 
    var(--accent-wine) 60%, 
    var(--accent-plum) 100%);
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.product-illustration::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.product-card:hover .product-illustration {
  transform: scale(1.1) rotate(2deg);
}

.product-card:hover .product-illustration::before {
  left: 100%;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px 20px 0 0;
  display: block;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-card__img {
  transform: scale(1.15);
}

.product-card__content {
  padding: 18px 20px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-card__title {
  font-size: 22px;
  margin-bottom: 10px;
  color: #2c1810;
  font-family: 'Playfair Display', var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
  line-height: 1.3;
  min-height: 58px;
  max-height: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card:hover .product-card__title {
  color: var(--accent-wine);
}

.product-card__desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  font-family: 'Poppins', var(--font-sans);
  line-height: 1.6;
  min-height: 44px;
  max-height: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-details {
  display: none;
}

.product-card__price {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-wine) 0%, var(--accent-plum) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 20px 0;
  font-family: 'Playfair Display', var(--font-serif);
  letter-spacing: -1px;
  text-shadow: 0 2px 8px rgba(114, 47, 55, 0.1);
  position: relative;
  display: inline-block;
}

.product-card__price::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-wine), var(--accent-gold));
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-card__price::after {
  opacity: 0.5;
}

/* STOCK INFO - HIDDEN */
.stock-info {
  display: none;
}

.stock-low {
  display: none;
}

/* ADD TO CART BUTTON - ALWAYS AT BOTTOM */
.add-to-cart-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-wine, #722f37), var(--accent-plum, #6b3a52));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s;
  margin-top: auto;
  box-shadow: 0 4px 10px rgba(114, 47, 55, 0.2);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #1a1410, var(--accent-grape, #5a2d4a));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(114, 47, 55, 0.35);
}

.add-to-cart-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
