/*
 Theme Name:   Astra Child
 Template:     astra
 Version:      1.0.1
*/

/* ========================
   Ürün listesi (normal grid)
   ======================== */
body.home .woocommerce ul.products {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 100%;
    box-sizing: border-box;
}

body.home .woocommerce ul.products li.product {
    flex: 0 0 calc(25% - 20px); /* 4 sütun masaüstü */
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.home .woocommerce ul.products li.product:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 1024px) {
    body.home .woocommerce ul.products li.product {
        flex: 0 0 calc(33.33% - 20px); /* 3 sütun */
    }
}

@media (max-width: 768px) {
    body.home .woocommerce ul.products li.product {
        flex: 0 0 calc(50% - 15px); /* 2 sütun */
    }
}

@media (max-width: 480px) {
    body.home .woocommerce ul.products li.product {
        flex: 0 0 100%; /* 1 sütun */
    }
}
/* Masaüstü sabit above-header */
.site-above-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Main header masaüstü normal */
.ast-main-header-wrap {
    position: relative;
    margin-top: 60px; /* above-header yüksekliği kadar */
}

/* Body padding masaüstü */
body {
    padding-top: 60px; /* above-header yüksekliği */
}

/* Mobilde */
@media (max-width: 768px) {
    /* Above-header ve main-header sabit */
    .site-above-header-wrap,
    .ast-main-header-wrap {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    /* Mobilde üst boşluğu azalt */
    body {
        padding-top: 1px; /* above-header + main-header toplam yüksekliği mobil için */
    }

    /* Eğer main-header içeriği mobilde taşarsa */
    .ast-main-header-wrap {
        margin-top: 0;
    }
}
/* Seepte ekleme butonu masaüstü*/
.woocommerce div.product form.cart .button.single_add_to_cart_button {
    width: auto !important;
    padding: 12px 24px !important;
    font-size: 16px;
}

