/* --- 📦 ORTAK ÜRÜN KARTI STİLLERİ --- */

.product-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card.out-of-stock { opacity: 0.65; filter: grayscale(40%); }
.product-card.out-of-stock:hover { opacity: 0.85; filter: grayscale(10%); transform: none; }
.product-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }

/* Kart resim yüksekliğini ana sayfa sliderına uygun olacak şekilde revize ettik */
.card-img { width: 100%; height: 280px; position: relative; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; }
.card-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: 0.5s; }
.product-card:hover .card-img img { transform: scale(1.03); }

.btn-fav-toggle { position: absolute; bottom: 12px; left: 12px; z-index: 10; background: white; border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: all 0.3s ease; color: #94a3b8; }
.btn-fav-toggle:hover { transform: scale(1.15); }
.btn-fav-toggle.is-active { color: #e11d48; }

.card-badges { position: absolute; top: 12px; left: 12px; z-index: 5; display:flex; flex-direction:column; gap:5px; }
.badge.discount { background: #ef4444; color: #fff; padding: 5px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 800; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); text-transform: uppercase; }
.badge.exhausted { background: #374151; color: white; padding: 4px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; }

.variant-count-badge { position: absolute; bottom: 12px; right: 12px; background: #ef4444; color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; border: none; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); z-index: 6; }

.card-details { padding: 15px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; }

.card-rating { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 8px; }
.card-rating .stars { color: #f59e0b; font-size: 0.85rem; }
.card-rating .rating-text { font-size: 0.75rem; color: #64748b; font-weight: 600; }

.title { font-size: 0.95rem; font-weight: 600; color: #111827; margin-bottom: 8px; height: 38px; overflow: hidden; line-height: 1.3; }
.title a { text-decoration: none; color: inherit; }
.title a:hover { color: var(--theme-color); }

.price-area { margin-bottom: 12px; min-height: 55px; display: flex; flex-direction: column; justify-content: center; }
.old-price { text-decoration: line-through; color: #94a3b8; font-size: 0.85rem; margin-bottom: 2px; font-weight: 400; }
.current-price { color: var(--price-color, #f97316); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.5px; }

.qty-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.qty-row button { width: 32px; height: 32px; border: 1px solid #d1d5db; background: #fff; color: #374151; font-weight: 900; cursor: pointer; border-radius: 6px; font-size: 1.1rem; }
.qty-row input { width: 45px; height: 32px; text-align: center; border: 1px solid #d1d5db; border-radius: 6px; font-weight: 800; font-size: 1rem; color: #111827; outline:none; }
.unit-label { font-size: 0.85rem; color: #64748b; font-weight: 600; margin-left: 4px; white-space: nowrap; }

.variant-info { display: block; background: #eff6ff; color: #2563eb; font-size: 0.75rem; padding: 6px; border-radius: 8px; margin-bottom: 8px; font-weight: 700; border: 1px solid #dbeafe; }

.action-area { margin-top: auto; }

.btn-block { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--theme-color, #f97316); color: var(--theme-text, #fff); border: none; padding: 10px 15px; font-weight: 600; font-size: 0.85rem; cursor: pointer; text-transform: uppercase; border-radius: 30px; white-space: nowrap; transition: all 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-decoration:none;}
.btn-block:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.btn-options { background: #374151; color: #fff;}
.btn-disabled { background: #e5e7eb; color: #94a3b8; cursor: not-allowed; box-shadow: none; }