﻿/* ========================================================
   SAYFA GENEL YERLEŞİMİ
======================================================== */

.ay-grb-section {
    width: 100%;
    padding: 0 0 40px;
    box-sizing: border-box;
}

.ay-grb-container {
    width: 80%;
    max-width: 1300px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ========================================================
   SAYFA BAŞLIĞI
======================================================== */

.ay-grb-header {
    text-align: center;
    padding: 3rem;
}

.ay-grb-title-img {
    height: 50px;
    max-width: 100%;
    object-fit: contain;
}

/* ========================================================
   ÜRÜN GRUPLARI GRID
======================================================== */

.ay-grb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.ay-grb-column {
    display: flex;
    min-width: 0;
}

.ay-grb-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ========================================================
   ÜRÜN KARTI
======================================================== */

.ay-grb-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

/* Ürün Görseli */

.ay-grb-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

/* Kart Başlığı */

.ay-grb-title {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0 0 16px 16px;
    padding: 8px 16px;
    background-color: rgba(33, 37, 41, 0.95);
    color: #ffffff;
    border-radius: 6px;
}

    .ay-grb-title h5 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
    }

/* Hover Efekti */

.ay-grb-card:hover .ay-grb-image {
    transform: scale(1.05);
}

/* ========================================================
   TABLET
======================================================== */

@media (max-width: 992px) {

    .ay-grb-container {
        width: 90%;
    }

    .ay-grb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ========================================================
   MOBİL
======================================================== */

@media (max-width: 576px) {

    .ay-grb-container {
        width: 95%;
    }

    .ay-grb-header {
        padding: 2rem 1rem;
    }

    .ay-grb-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ay-grb-card {
        min-height: 250px;
    }
}
