﻿/* Ana sayfa modern ürün listeleme */
:root {
    --uk-ana: #0c71b3;
    --uk-ana-koyu: #095a8f;
    --uk-vurgu: #e8453c;
    --uk-yazi: #1f2937;
    --uk-yazi-soluk: #6b7280;
    --uk-cizgi: #e5e7eb;
    --uk-zemin: #f5f7fa;
    --uk-golge: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
    --uk-golge-hover: 0 14px 30px rgba(12, 113, 179, .16), 0 4px 10px rgba(16, 24, 40, .06);
}

/* ---- Bölüm başlığı ---- */
.uk-bolum {
    padding: 1.5em 0 2em;
    font-family: 'Open Sans', sans-serif;
}

.uk-bolum-baslik {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--uk-cizgi);
    position: relative;
}

    .uk-bolum-baslik h3 {
        margin: 0;
        font-size: 1.6em;
        font-weight: 700;
        color: var(--uk-yazi);
        font-family: 'Open Sans', sans-serif;
    }

.uk-bolum-baslik:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: var(--uk-ana);
}

    .uk-bolum-baslik p {
        margin: 4px 0 0;
        font-size: .95em;
        color: var(--uk-yazi-soluk);
    }

.uk-tumu-link {
    white-space: nowrap;
    font-size: .9em;
    font-weight: 600;
    color: var(--uk-ana) !important;
    text-decoration: none !important;
}

    .uk-tumu-link:hover {
        color: var(--uk-ana-koyu) !important;
    }

/* ---- Izgara ---- */
.uk-izgara {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* ---- Kart ---- */
.uk-kart {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--uk-cizgi);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--uk-golge);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    .uk-kart:hover {
        transform: translateY(-4px);
        box-shadow: var(--uk-golge-hover);
        border-color: #cfe3f2;
    }

.uk-gorsel {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    padding: 16px;
    background: radial-gradient(circle at 50% 35%, #ffffff 0%, var(--uk-zemin) 75%);
    overflow: hidden;
}

    .uk-gorsel img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 8px 12px rgba(16, 24, 40, .18));
        transition: transform .4s ease;
    }

.uk-kart:hover .uk-gorsel img {
    transform: scale(1.05);
}

/* Rozetler */
.uk-rozetler {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.uk-rozet {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    letter-spacing: .2px;
}

.uk-rozet-indirim {
    background: var(--uk-vurgu);
}

.uk-rozet-stok {
    background: #f59e0b;
}

/* Hover'da görünen hızlı incele */
.uk-hizli {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translate(-50%, 12px);
    opacity: 0;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--uk-ana);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .15);
    transition: opacity .25s ease, transform .25s ease;
    white-space: nowrap;
}

.uk-kart:hover .uk-hizli {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* İçerik */
.uk-icerik {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 14px 16px;
}

.uk-baslik {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
}

    .uk-baslik a {
        color: var(--uk-yazi);
        text-decoration: none;
    }

        .uk-baslik a:hover {
            color: var(--uk-ana);
            text-decoration: none;
        }

.uk-aciklama {
    margin: 0 0 12px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--uk-yazi-soluk);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uk-alt {
    margin-top: auto;
}

.uk-fiyat {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.uk-fiyat-guncel {
    font-size: 18px;
    font-weight: 800;
    color: var(--uk-ana);
}

.uk-fiyat-eski {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

.uk-buton {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--uk-ana);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    transition: background .2s ease;
}

    .uk-buton:hover {
        background: var(--uk-ana-koyu);
    }

.uk-tumu-alt {
    text-align: center;
    margin-top: 28px;
}

    .uk-tumu-alt a {
        display: inline-block;
        padding: 11px 32px;
        border: 2px solid var(--uk-ana);
        border-radius: 999px;
        color: var(--uk-ana);
        font-weight: 700;
        font-size: 14px;
        text-decoration: none;
        transition: background .2s ease, color .2s ease;
    }

        .uk-tumu-alt a:hover {
            background: var(--uk-ana);
            color: #fff;
        }

/* ---- Fırsat köşesi (sol sütun) ---- */
.uk-firsat {
    background: #fff;
    border: 1px solid var(--uk-cizgi);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 6px;
    box-shadow: var(--uk-golge);
    font-family: 'Open Sans', sans-serif;
}

.uk-firsat-baslik {
    margin: 0;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
    background: linear-gradient(135deg, var(--uk-ana), #1a8fd6);
}

.uk-firsat-oge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--uk-cizgi);
    text-decoration: none !important;
    transition: background .2s ease;
}

    .uk-firsat-oge:last-child {
        border-bottom: 0;
    }

    .uk-firsat-oge:hover {
        background: #f3f8fc;
    }

.uk-firsat-resim {
    flex: 0 0 60px;
    height: 78px;
    border-radius: 8px;
    background: var(--uk-zemin);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

    .uk-firsat-resim img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.uk-firsat-bilgi {
    min-width: 0;
}

.uk-firsat-ad {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--uk-yazi);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uk-firsat-oge:hover .uk-firsat-ad {
    color: var(--uk-ana);
}

.uk-firsat-fiyat {
    font-size: 14px;
    font-weight: 800;
    color: var(--uk-vurgu);
}

/* ---- Duyarlı ---- */
@media (max-width: 1199px) {
    .uk-izgara {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .uk-izgara {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .uk-bolum-baslik h3 {
        font-size: 1.3em;
    }

    .uk-gorsel {
        padding: 10px;
    }

    .uk-icerik {
        padding: 10px 10px 12px;
    }

    .uk-baslik {
        font-size: 13px;
    }

    .uk-aciklama {
        display: none;
    }

    .uk-fiyat-guncel {
        font-size: 16px;
    }

    /* Dokunmatik ekranda hover yok */
    .uk-hizli {
        display: none;
    }
}
