/*
 * Âlâ Kuru Kahve — Product Card Redesign (Instagram Style)
 * Desktop + Mobile — Build gerektirmez.
 * public/css/card-redesign.css
 */

/* ═══════════════════════════════════════
   PRODUCT CARD — Instagram Post Style
   ═══════════════════════════════════════ */

.product-card {
  position: relative;
  cursor: pointer;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

/* Görsel: 4:5 oran, Instagram post gibi */
.product-card .card-img-wrapper {
  border-radius: 0 !important;
  aspect-ratio: 4 / 5 !important;
}

.product-card .card-img-wrapper img {
  border-radius: 0 !important;
}

/* Hover reveal overlay — artık kullanılmıyor */
.card-hover-reveal {
  display: none !important;
}

/* Wishlist butonu — beyaz, yuvarlak */
.product-card .card-wishlist-btn {
  background: rgba(255,255,255,0.92) !important;
  width: 36px !important;
  height: 36px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-card .card-wishlist-btn:hover,
.product-card .card-wishlist-btn.active {
  background: #00392A !important;
  color: #fff !important;
}

/* Metin alanı */
.product-card .card-body-area {
  padding: 14px 16px 8px !important;
}

.product-card .card-origin-label {
  font-size: 9px !important;
  font-weight: 800;
  padding: 4px 10px !important;
  margin-bottom: 8px !important;
}

.product-card .card-product-name {
  font-family: 'Manrope', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-bottom: 4px !important;
  color: #1C1A1A;
}

/* Tadım notları chip'leri */
.product-card .card-body-area .flex.flex-wrap span {
  font-size: 9px !important;
}

/* ═══════════════════════════════════════
   FİYAT + SEPETE EKLE BAR
   ═══════════════════════════════════════ */

.card-cart-wrapper {
  padding: 0 16px 16px !important;
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.card-inline-price {
  display: flex !important;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}

.card-price-main {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #1C1A1A;
  white-space: nowrap;
}

.card-price-old-inline {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: rgba(28,26,26,0.35);
  text-decoration: line-through;
  margin-left: 2px;
  white-space: nowrap;
}

.card-price-soldout {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(28,26,26,0.3);
  white-space: nowrap;
}

.card-add-btn-fixed {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background: #00392A;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.card-add-btn-fixed i {
  font-size: 13px;
}

.card-add-btn-fixed:hover {
  background: #F7B03E !important;
  color: #1C1A1A !important;
}

/* Eski card-price satırını gizle (artık cart-wrapper'da) */
.product-card .card-body-area .card-price,
.product-card .card-body-area .card-price-old {
  display: none !important;
}

/* ═══════════════════════════════════════
   GRID — 3 Kolon Desktop, 1 Kolon Mobil
   ═══════════════════════════════════════ */

/* Desktop: max-width sınırlama ile ortalanmış grid */
@media (min-width: 1024px) {
  .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 {
    max-width: 1100px;
    margin: 0 auto;
    gap: 24px !important;
  }
}

/* Tablet */
@media (min-width: 640px) and (max-width: 1023px) {
  .product-card .card-price-main {
    font-size: 16px;
  }
}

/* ═══════════════════════════════════════
   BADGE STİLLERİ — Daha belirgin
   ═══════════════════════════════════════ */
.product-card .card-img-wrapper .absolute.top-3.left-3 span {
  font-size: 10px;
  padding: 4px 12px;
  backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════
   PRODUCT DETAIL — Görsel container fix
   flex-1 dış container'ı aspect-square'e sığdır
   ═══════════════════════════════════════ */
#product-hero .flex-1.relative.overflow-hidden.rounded-2xl {
  align-self: flex-start;
  height: fit-content;
}

/* ═══════════════════════════════════════
   LOADING SPINNER (card button)
   ═══════════════════════════════════════ */
@keyframes spin {
  to { transform: rotate(360deg); }
}
