/* =========================
   GENEL
========================= */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #111;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    min-height: 100vh;
}

/* =========================
   GENEL LINKLER
========================= */

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

/* =========================
   ÜRÜN KARTI
========================= */

.pcard {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    position: relative; /* KRİTİK */
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}

    .pcard:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }

/* =========================
   KART TAMAMINA TIKLAMA
   (ÜRÜNE BASINCA DETAY)
========================= */

.pcard-link {
    position: absolute; /* KRİTİK */
    inset: 0; /* TÜM KARTI KAPLAR */
    z-index: 1;
    display: block;
}

/* =========================
   RESİM
========================= */

.pcard-img {
    aspect-ratio: 1 / 1;
    background: #f6f6f6;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

    .pcard-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* =========================
   KART İÇERİK
========================= */

.pcard-body {
    padding: 12px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.pname {
    font-weight: 700;
    line-height: 1.25;
    min-height: 40px;
}

.pprice {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 800;
}

/* =========================
   KART AKSİYONLARI
========================= */

.pcard-actions {
    padding: 12px;
    padding-top: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
    z-index: 5; /* BUTONLAR LİNKİN ÜSTÜNDE */
}

/* =========================
   ADET KUTUSU (+ -)
========================= */

.qtybox {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

    .qtybox button {
        width: 34px;
        height: 34px;
        border: 0;
        background: #f9fafb;
        cursor: pointer;
        font-weight: 900;
        font-size: 16px;
    }

        .qtybox button:hover {
            background: #e5e7eb;
        }

    .qtybox input {
        width: 44px;
        height: 34px;
        border: 0;
        text-align: center;
        outline: none;
        font-weight: 700;
    }

/* =========================
   FAVORİ BUTONU
========================= */

.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10; /* HER ŞEYİN ÜSTÜNDE */
}

    .fav-btn:hover {
        background: #ffe4e6;
    }

/* =========================
   WHATSAPP FLOAT
========================= */

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    background: #25D366;
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
}

/* =========================
   FOOTER
========================= */

footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fa;
}
/* Ürün kartı tıklanabilir alan */
.pcard-click {
    display: block;
    color: #111;
    text-decoration: none;
}

    .pcard-click:hover {
        color: #111;
        text-decoration: none;
    }
