﻿/* ========================================================
           SAYFA GENEL YERLEŞİMİ
======================================================== */

/* Dış Kapsayıcı: Arka plan sabit kalır ve tüm ekranı kaplar */
.ay-bant-container {
    width: 100%;
    height: clamp(90px, 12vw, 150px); /* Banner yüksekliği */
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    border-radius: 8px;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ay-baslik-img {
    height: 50px;
}
/* Resmin üstündeki hafif karartma katmanı */
.ay-bant-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.3);*/
    z-index: 1;
}

/* İç Konteyner: Diğer bölümleriniz gibi ekranın %80'ini kaplar ve ortalanır */
.ay-bant-inner {
    width: 80%;
    padding: 70px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Karartmanın üstünde kalması için */
}

/* Ürün Grubu Yazısı (Konteynerın sol çizgisine tam yaslı) */
.ay-bant-title {
    font-size: 25px;
    font-weight: 700;
    color: #000000;
    /*text-transform: uppercase;*/
    text-align: left;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Mobil Uyumluluk */



.ay-urn-section {
    width: 80%;
    padding: 50px 0;
    /* background-color: #f8f9fa; */
    box-sizing: border-box;
    margin: 0 auto;
}

.ay-urn-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 30px;
    align-items: flex-start; /* Sağ ve sol sütun hizalaması, grid aşağı kaymaz */
    box-sizing: border-box;
}

/* ========================================================
           SOL TARAF: SIDEBAR & MENÜ
======================================================== */
.ay-urn-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #f3f3f3;
    padding: 20px;
    border-radius: 6px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); */
    box-sizing: border-box;
}

.ay-urn-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc3545;
    text-align: center; /* Başlık ortalandı */
}

.ay-urn-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ay-urn-menu-item {
    border-bottom: none; /* Alt çizgiler kaldırıldı */
}

/* Menü Linki & Ortadan İki Yana Açılan Kırmızı Çizgi Efekti */
.ay-urn-menu-link {
    position: relative;
    display: block;
    padding: 12px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    border-radius: 6px;
}

    .ay-urn-menu-link::after {
        content: '';
        position: absolute;
        bottom: 6px;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: #dc3545;
        transition: width 0.3s ease, left 0.3s ease;
    }

    .ay-urn-menu-link:hover {
        color: #dc3545;
    }

        .ay-urn-menu-link:hover::after {
            width: calc(100% - 20px);
            left: 10px;
        }

/* MOBİL KATEGORİ BUTONU - Varsayılan gizli */
.ay-urn-mobile-toggle {
    display: none;
}

/* ========================================================
           SAĞ TARAF: ÜRÜN LİSTELEME ALANI & KARTLAR
======================================================== */
.ay-urn-main {
    flex-grow: 1;
    min-width: 0;
}

.ay-urn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
}

.ay-urn-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    /* transition: box-shadow 0.3s ease; Yukarı kayma efekti kaldırıldı, sadece gölge var */
}

/* Kartı saran link etiketinin stilleri */
.ay-urn-card-link {
    text-decoration: none; /* Alt çizgiyi kaldırır */
    color: inherit; /* Yazı renklerinin kart içinden gelmesini sağlar */
    display: block; /* Tüm alanın kapsanmasını sağlar */
    height: 100%;
}

/* .ay-urn-card:hover {
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        } */

.ay-urn-card-title-wrap {
    margin-bottom: 15px;
    text-wrap-mode: nowrap;
}

.ay-urn-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #2b2b2b;
    margin: 0;
}

.ay-urn-card-image {
    width: 100%;
    height: 100%;
    max-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

    .ay-urn-card-image img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        transition: transform 0.35s ease;
    }

.ay-urn-card:hover .ay-urn-card-image img {
    transform: scale(1.07);
}

/*.ay-urn-card-action {
    width: 100%;
    margin-top: auto;
}

.ay-urn-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background-color: #dc3545;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
}

    .ay-urn-card-btn span {
        transition: transform 0.2s ease;
    }

    .ay-urn-card-btn:hover {
        background-color: #bb2d3b;
        box-shadow: 0 6px 16px rgba(220, 53, 69, 0.35);
    }

        .ay-urn-card-btn:hover span {
            transform: translateX(4px);
        }*/

/* ========================================================
           RESPONSIVE (MOBİL UYUMLULUK)
======================================================== */
@media (max-width:1200px) {
    .ay-urn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .ay-urn-section {
        width: 95%;
        padding-top: 20px;
    }

    .ay-urn-wrapper {
        flex-direction: row;
        gap: 20px;
        padding: 0;
        align-items: flex-start;
    }

    .ay-urn-sidebar {
        width: 190px;
        flex-shrink: 0;
        padding: 15px 10px;
    }

    .ay-urn-sidebar-title {
        font-size: clamp(13px, 1.2vw, 15px);
    }

    .ay-urn-menu-link {
        font-size: 13px;
        padding: 11px 7px;
    }

    .ay-urn-main {
        flex: 1;
        min-width: 0;
    }

    .ay-urn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .ay-urn-card {
        padding: 10px;
    }

    .ay-urn-card-title {
        font-size: 18px;
    }

    .ay-urn-card-image {
        height: 160px;
    }

    .ay-bant-inner {
        width: 90%;
        padding: 40px;
    }

    .ay-bant-title {
        font-size: 22px;
    }

    /* Mobil menü butonu - Masaüstünde görünmez */
    .ay-urn-mobile-toggle {
        display: none;
    }
}


/* =====================================================
   MOBİL TASARIM
===================================================== */
@media (max-width: 576px) {
    /* GENEL ALAN */
    .ay-urn-section {
        width: 98%;
        padding: 15px 10px;
        box-sizing: border-box;
    }

    .ay-bant-container {
        margin-bottom: 0;
    }

    .ay-bant-inner {
        width: 95%;
        padding: 30px;
    }

    .ay-bant-title {
        font-size: 18px;
    }

    /* ANA YERLEŞİM */
    .ay-urn-wrapper {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 0;
    }

    /* KATEGORİ MENÜSÜ */
    .ay-urn-sidebar {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        margin-bottom: 20px;
        padding: 0px;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Masaüstü başlığı mobilde gizle */
    .ay-urn-sidebar-title {
        display: none;
    }

    /* MOBİL MENÜ BUTONU */
    .ay-urn-mobile-toggle {
        display: flex !important;
        width: 100%;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px 16px;
        background: #b52636;
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

        .ay-urn-mobile-toggle span {
            position: static;
        }

    /* AÇILIR MENÜ */
    /* AÇILIR MENÜ */
    .ay-urn-menu-list {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-top: 0;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease, visibility 0.3s ease;
    }

        /* MENÜ AÇIK */
        .ay-urn-menu-list.ay-menu-active {
            max-height: 500px;
            opacity: 1;
            visibility: visible;
            margin-top: 10px;
        }

    /* MENÜ ELEMANLARI */
    .ay-urn-menu-item {
        width: 100%;
    }

    .ay-urn-menu-link {
        display: table;
        margin: 0 auto;
        position: relative;
        padding: 10px 0;
        white-space: nowrap;
        background: transparent;
        border: none;
        font-size: 13px;
        text-align: center;
        color: #333;
        text-decoration: none;
    }

    .ay-urn-menu-link {
        display: block;
        width: max-content;
        margin: 0 auto;
        position: relative;
        padding: 10px 0;
        white-space: nowrap;
        background: transparent;
        border: none;
        font-size: 13px;
        text-align: center;
        color: #333;
        text-decoration: none;
    }

        /* Hover alt çizgisi */
        .ay-urn-menu-link::after {
            content: "";
            position: absolute;
            bottom: 5px;
            left: 0;
            width: 100%;
            height: 2px;
            background: #b52636;
            transform: scaleX(0);
            transform-origin: center;
            transition: transform .3s ease;
        }

        .ay-urn-menu-link:hover {
            color: #b52636;
        }

            .ay-urn-menu-link:hover::after {
                transform: scaleX(1.5);
            }

    /* ÜRÜN ALANI */
    .ay-urn-main {
        width: 100%;
        min-width: 0;
        flex: none;
        box-sizing: border-box;
    }

    /* ÜRÜN GRID */
    .ay-urn-grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    /* ÜRÜN KARTI */
    .ay-urn-card-link {
        width: 100%;
        min-width: 0;
    }

    .ay-urn-card {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .ay-urn-card-image {
        width: 100%;
        height: 250px;
    }

        .ay-urn-card-image img {
            max-width: 100%;
        }
}
