﻿/* =========================
   ORTAK ÜRÜN GÖRSEL GALERİSİ
   ========================= */

.ar-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ana resim */
.ar-main-image {
    width: 100%;
    max-height: 420px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ar-main-image img {
        max-width: 100%;
        max-height: 420px;
        object-fit: contain;
        cursor: zoom-in;
    }

/* Thumbnail strip (alt küçük resimler) */
.ar-thumb-strip {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sağ-sol oklar */
.ar-thumb-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    outline: none;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #3bb77e;
    transition: all .2s ease;
}

    .ar-thumb-nav:hover {
        background: #3bb77e;
        color: #fff;
    }

    /* Oklar pasifken */
    .ar-thumb-nav[disabled] {
        opacity: 0.4;
        cursor: default;
        box-shadow: none;
    }

/* Thumbnail track */
.ar-thumb-track-wrapper {
    overflow: hidden;
    flex: 1;
}

.ar-thumb-track {
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease;
}

/* Tek tek küçük resimler */
.ar-thumb {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    position: relative;
}

    .ar-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .ar-thumb.active {
        border-color: #3bb77e;
        box-shadow: 0 0 0 2px rgba(59,183,126,0.35);
    }

/* =========================
   BÜYÜK RESİM MODAL'I
   ========================= */

.ar-image-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ar-image-modal {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

    .ar-image-modal img {
        max-width: 88vw;
        max-height: 80vh;
        object-fit: contain;
        display: block;
        border-radius: 10px;
    }

/* Modal kapatma butonu */
.ar-image-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

    .ar-image-modal-close:hover {
        background: rgba(0,0,0,0.9);
    }


/* --- ÜRÜN DETAY SAYFASI FİYAT TASARIMI --- */
.ar-price-big {
    font-size: 38px;
    font-weight: 800;
    color: #2bb673; /* Premium yeşil */
    letter-spacing: -0.5px;
    display: inline-block;
    padding: 8px 0;
}

    .ar-price-big::after {
        content: "";
        display: block;
        width: 60px;
        height: 4px;
        background: #2bb673;
        border-radius: 2px;
        margin-top: 6px;
    }



/* ================= ADMIN ÜRÜN BİLGİLERİ (SADECE KART İÇİ) ================= */

.product-cart-wrap .admin-meta,
.product-detail-content .admin-meta,
.qv-content .admin-meta {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px dashed #bdbdbd;
    background: #f9fafb;
}

.product-cart-wrap .admin-meta-title,
.product-detail-content .admin-meta-title,
.qv-content .admin-meta-title {
    font-size: 14px;
    font-weight: 900;
    color: #253D4E;
    margin-bottom: 8px;
    text-align: center;
}

.product-cart-wrap .admin-meta-row,
.product-detail-content .admin-meta-row,
.qv-content .admin-meta-row {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    display: block; /* ⚠️ inline-block YOK */
    width: auto; /* ⚠️ 100% YOK */
}

    .product-cart-wrap .admin-meta-row span,
    .product-detail-content .admin-meta-row span,
    .qv-content .admin-meta-row span {
        font-weight: 900;
        color: #253D4E;
        margin-right: 4px;
    }

    .product-cart-wrap .admin-meta-row.stock,
    .product-detail-content .admin-meta-row.stock,
    .qv-content .admin-meta-row.stock {
        color: #1e7e34;
    }

.product-cart-wrap .admin-edit-btn,
.product-detail-content .admin-edit-btn,
.qv-content .admin-edit-btn {
    margin-top: 10px;
    width: 100%;
    border-radius: 999px;
    font-weight: 800;
    padding: 8px 14px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* =========================================================
   PRODUCT CARD - QuickView taşma + Mobil alt bar düzeni
   ========================================================= */

/* Görsel alanında taşan hover/tooltip olmasın */
.product-cart-wrap .product-img-action-wrap {
    overflow: hidden;
    border-radius: 15px;
}

/* QuickView: sadece ikon (uzayan label/tooltip kapalı) */
.product-cart-wrap .product-action-1 .action-btn::before,
.product-cart-wrap .product-action-1 .action-btn::after {
    display: none !important;
    content: none !important;
}

/* Masaüstünde de butonun "uzamasını" engelle */
.product-cart-wrap .product-action-1 {
    width: auto !important;
    max-width: 64px !important;
}

    /* QuickView butonu: tek ikon, kompakt */
    .product-cart-wrap .product-action-1 .action-btn.btn-quick-view {
        width: 40px !important;
        height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
    }

/* ---------------------------------------------------------
   MOBIL: Fiyat üstte, altında "Sepete Ekle + QuickView" yan yana
   (QuickView fiyat bloğunun altında olacak)
   --------------------------------------------------------- */
@media (max-width: 767.98px) {

    /* Alt bölüm: kolon düzen */
    .product-cart-wrap .product-card-bottom {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        min-height: auto !important;
        padding-top: 10px !important;
        border-top: 1px dashed rgba(0,0,0,.08) !important;
    }

        /* Fiyat ortalı */
        .product-cart-wrap .product-card-bottom .product-price {
            width: 100% !important;
            text-align: center !important;
        }

            .product-cart-wrap .product-card-bottom .product-price span {
                font-size: 18px !important;
                font-weight: 900 !important;
                letter-spacing: -0.2px !important;
            }

        /* Aksiyon satırı: buton + quickview yan yana */
        .product-cart-wrap .product-card-bottom .ar-actions {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
        }

        /* Sepete Ekle: minimal pill */
        .product-cart-wrap .product-card-bottom .add-cart {
            flex: 1 !important;
            width: auto !important;
        }

            .product-cart-wrap .product-card-bottom .add-cart a.add {
                width: 100% !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 10px !important;
                padding: 10px 12px !important;
                border-radius: 999px !important;
                font-weight: 900 !important;
                font-size: 14px !important;
                background: #E9FBF1 !important;
                border: 1px solid #BDEFD1 !important;
                color: #1E8A55 !important;
                box-shadow: 0 10px 20px rgba(0,0,0,.08) !important;
            }

                .product-cart-wrap .product-card-bottom .add-cart a.add i {
                    margin: 0 !important;
                    font-size: 16px !important;
                }

        /* Mobil QuickView: küçük ikon kutusu (fiyatın altında) */
        .product-cart-wrap .product-card-bottom .ar-qv {
            flex: 0 0 auto !important;
            width: 44px !important;
            height: 44px !important;
            border-radius: 14px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            background: rgba(255,255,255,.95) !important;
            border: 1px solid rgba(0,0,0,.08) !important;
            box-shadow: 0 10px 20px rgba(0,0,0,.08) !important;
        }

            .product-cart-wrap .product-card-bottom .ar-qv i {
                font-size: 18px !important;
            }

        /* Stok yok: full width düzgün pill */
        .product-cart-wrap .product-card-bottom .product-out-stock {
            width: 100% !important;
            text-align: center !important;
            padding: 10px 12px !important;
            border-radius: 999px !important;
            font-weight: 900 !important;
        }
}

/* =========================================================
   PRODUCT CARD - Mobil alt bar: fiyat üstte, altta buton + qv
   + QuickView tooltip/uzama fix
   ========================================================= */

/* Görsel alanında taşma olmasın */
.product-cart-wrap .product-img-action-wrap {
    overflow: hidden;
    border-radius: 15px;
}

/* QuickView hover label / tooltip uzaması (tema ::before/::after) kapat */
.product-cart-wrap .product-action-1 .action-btn::before,
.product-cart-wrap .product-action-1 .action-btn::after {
    display: none !important;
    content: none !important;
}

/* QuickView butonunu tek ikon gibi kompakt tut */
.product-cart-wrap .product-action-1 {
    width: auto !important;
    max-width: 64px !important;
}

    .product-cart-wrap .product-action-1 .action-btn.btn-quick-view {
        width: 40px !important;
        height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

@media (max-width: 767.98px) {

    /* Alt alan: fiyat üstte, aksiyonlar altta */
    .product-cart-wrap .product-card-bottom {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        min-height: auto !important;
        padding-top: 10px !important;
        border-top: 1px dashed rgba(0,0,0,.08) !important;
    }

        .product-cart-wrap .product-card-bottom .product-price {
            width: 100% !important;
            text-align: center !important;
        }

            .product-cart-wrap .product-card-bottom .product-price span {
                font-size: 18px !important;
                font-weight: 900 !important;
                letter-spacing: -0.2px !important;
                display: inline-block !important;
            }

        /* Buton + QuickView yan yana */
        .product-cart-wrap .product-card-bottom .ar-actions {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
        }

        /* Sepete Ekle: minimal pill */
        .product-cart-wrap .product-card-bottom .add-cart {
            flex: 1 !important;
            width: auto !important;
        }

            .product-cart-wrap .product-card-bottom .add-cart a.add {
                width: 100% !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 10px !important;
                padding: 10px 12px !important;
                border-radius: 999px !important;
                font-weight: 900 !important;
                font-size: 14px !important;
                background: #E9FBF1 !important;
                border: 1px solid #BDEFD1 !important;
                color: #1E8A55 !important;
                box-shadow: 0 10px 20px rgba(0,0,0,.08) !important;
                text-transform: none !important;
            }

                .product-cart-wrap .product-card-bottom .add-cart a.add i {
                    margin: 0 !important;
                    font-size: 16px !important;
                }

        /* Alttaki QuickView ikon kutusu */
        .product-cart-wrap .product-card-bottom .ar-qv {
            flex: 0 0 auto !important;
            width: 44px !important;
            height: 44px !important;
            border-radius: 14px !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            background: rgba(255,255,255,.95) !important;
            border: 1px solid rgba(0,0,0,.08) !important;
            box-shadow: 0 10px 20px rgba(0,0,0,.08) !important;
            text-decoration: none !important;
        }

            .product-cart-wrap .product-card-bottom .ar-qv i {
                font-size: 18px !important;
            }

        /* Stok yok: full width pill */
        .product-cart-wrap .product-card-bottom .product-out-stock {
            width: 100% !important;
            text-align: center !important;
            padding: 10px 12px !important;
            border-radius: 999px !important;
            font-weight: 900 !important;
        }
}

/* ================================
   QUICKVIEW TAŞMA / MOBİLDE KAPAT
   (Masaüstü görünümü bozmadan)
   ================================ */

/* Kart içindeki ikonların taşmasını engelle */
.product-cart-wrap .product-img-action-wrap{
    overflow: hidden;
    border-radius: 15px; /* kart/tema radius uyumu */
}

/* Quickview butonu bazen hover'da label/tooltip büyütüp taşıyor -> kapat */
.product-cart-wrap .product-action-1 .action-btn::before,
.product-cart-wrap .product-action-1 .action-btn::after{
    display: none !important;
    content: none !important;
}

/* Quickview butonu tek ikon gibi dursun (masaüstünde de düzgün) */
.product-cart-wrap .product-action-1 .action-btn.btn-quick-view{
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
}

/* MOBİLDE: QuickView komple kapat (resmin üstünde de çıkmaz) */
@media (max-width: 767.98px){
    .product-cart-wrap .product-action-1,
    .product-cart-wrap .btn-quick-view{
        display: none !important;
    }
}

/* =========================================================
   ÜRÜN KARTI - MOBİL / DESKTOP QUICKVIEW DAVRANIŞI
   - Desktop: resim üstündeki quickview görünür, alttaki göz gizli
   - Mobil: resim üstündeki quickview gizli, alttaki göz görünür
   ========================================================= */

/* Alt aksiyon grubu: Sepete Ekle + (mobilde) göz yan yana */
.product-cart-wrap .ar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* Alttaki quickview butonu (göz) */
.product-cart-wrap .ar-qv {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e9ecef;
    box-shadow: 0 6px 14px rgba(0,0,0,.06);
}

/* Alttaki göz: DESKTOP'TA GİZLİ */
@media (min-width: 768px) {
    .product-cart-wrap .ar-qv {
        display: none !important;
    }
}

/* MOBİLDE: resim üstündeki quickview (product-action-1) gizli */
@media (max-width: 767.98px) {
    .product-cart-wrap .product-action-1 {
        display: none !important;
    }

    /* Mobilde Sepete Ekle daha şık/pill */
    .product-cart-wrap .ar-actions {
        justify-content: center;
    }

    .product-cart-wrap .add-cart a.add {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 999px;
        font-weight: 800;
    }
}






