/* Modern ürün kartı (2 Aralık 2026) — yalnızca stil; HTML değişmedi.
   Eski karta dönmek için includes/header.php içinde $kartTasarimi = 'klasik' yapın
   (karşılaştırma: herhangi bir sayfaya ?kart=klasik ekleyin). */

.product-grid { align-items: stretch; }

.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ECECEC;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17,17,17,.04);
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -12px rgba(17,17,17,.18);
    border-color: rgba(245,197,24,.55);
}

/* Görsel alanı: içten çerçeveli, yumuşak degrade zemin */
.product-card .product-img {
    height: auto;
    aspect-ratio: 5 / 4;
    margin: 8px 8px 0;
    padding: 18px;
    border-radius: 13px;
    background: radial-gradient(120% 90% at 50% 35%, #FFFFFF 0%, #F4F4F2 60%, #ECECE8 100%);
    overflow: hidden;
}
.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
    filter: drop-shadow(0 10px 12px rgba(0,0,0,.12));
}
.product-card:hover .product-img img { transform: scale(1.06); }

/* Rozet: hap şekli */
.product-card .product-badge {
    top: 18px; left: 18px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .3px;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

/* Metin: başlık ve açıklama sabit satır, fiyat satırı hep en altta */
.product-card .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px;
}
.product-card .product-name {
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .product-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #8A8A8A;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .product-bottom {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed #E6E6E6;
    gap: 8px;
}
.product-card .product-price {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.3px;
    white-space: nowrap;
}

/* Sepete ekle: beyaz, ince kenarlı, köşeleri hafif yuvarlak; sarı ikon kutucuğu vurgu */
.product-card .add-to-cart {
    flex-shrink: 0;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #E2E2E2;
    color: #1A1A1A;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .1px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(17,17,17,.05);
    transition: border-color .25s, background .25s, box-shadow .25s, transform .2s;
}
.product-card .add-to-cart .fa-cart-plus {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--primary);
    color: #1A1A1A;
    font-size: 12px;
    transition: transform .25s;
}
.product-card .add-to-cart .fa-arrow-right { display: none; }
.product-card:hover .add-to-cart { border-color: rgba(245,197,24,.7); }
.product-card .add-to-cart:hover {
    border-color: var(--primary);
    background: #FFFCEF;
    box-shadow: 0 6px 14px -6px rgba(212,169,10,.45);
}
.product-card .add-to-cart:hover .fa-cart-plus { transform: rotate(-8deg) scale(1.05); }
.product-card .add-to-cart:active { transform: translateY(1px); }
.product-card .add-to-cart:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Dar kartlarda fiyat ve buton alt alta */
@media (max-width: 1240px) and (min-width: 1025px), (max-width: 480px) {
    .product-card .product-bottom { flex-wrap: wrap; }
}

@media (max-width: 600px) { .product-card .product-img { aspect-ratio: 4 / 3; } }

@media (prefers-reduced-motion: reduce) {
    .product-card, .product-card .product-img img { transition: none; }
    .product-card:hover, .product-card:hover .product-img img { transform: none; }
}
