/*
Theme Name: Kadence Child
Theme URI: https://fablendo.com/
Description: Fablendo Ozel Alt Temasi
Author: Fablendo Tech
Template: kadence
Version: 1.0.0
*/

/* ==========================================================================
   FABLENDO PREMIUM ÜRÜN SAYFASI UX/UI MASTER CSS (NİHAİ KUSURSUZ SÜRÜM)
   ========================================================================== */

/* 1. Fotoğraf Yükleme Alanı */
.fablendo-upload-wrapper {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 0 15px 0 !important;
    display: block;
}
.fablendo-upload-text {
    white-space: pre-line;
    line-height: 1.4;
}

/* 2. DİKKAT DAĞITICI YAZILARI GİZLEME ("Ölçü:" etiketini kesin olarak yok eder) */
.woocommerce div.product form.cart .variations th.label,
.woocommerce div.product form.cart .variations td.label {
    display: none !important;
}

/* 3. TIKLANABİLİR ÖLÇÜ BUTONLARI (SWATCH) - DARALTILMIŞ ŞIK YAPI */
.woocommerce div.product form.cart .variations td.value {
    width: 100%;
    display: block;
}
.fablendo-swatch-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Butonlar arası boşluk kısıldı */
    width: 100%;
    max-width: 440px; /* Üstteki kutuyla mükemmel hiza */
    margin-bottom: 5px;
}
.fablendo-swatch-btn {
    display: flex;
    align-items: center;
    padding: 10px 15px; /* Kalınlık azaltıldı, çok daha zarif ve tıklanabilir */
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    font-weight: 600;
    color: #334155;
    font-size: 14px; /* Font hafif inceltildi */
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.fablendo-swatch-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
}
.fablendo-swatch-btn.active {
    border-color: #2ecc71; 
    background: rgba(46, 204, 113, 0.05); 
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.15);
}
.swatch-icon {
    margin-right: 10px;
    font-size: 16px;
}

/* 4. GEREKSİZ BOŞLUKLARI YOK ETME */
.woocommerce div.product form.cart .reset_variations {
    display: none !important; 
}
.woocommerce div.product form.cart .single_variation {
    margin-top: 5px !important; 
    margin-bottom: 0px !important; 
    padding-bottom: 0px !important;
}
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
    margin-top: 15px !important; /* Buton üstü jilet gibi ayarlandı */
    padding-top: 0 !important;
}

/* 5. Sihirli "Sihre Başla" Butonu (Genişlik 260px) */
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .single_add_to_cart_button.disabled {
    width: 100%;
    max-width: 260px !important; 
    background-color: #2ecc71 !important;
    opacity: 1 !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 10px 20px -5px rgba(46, 204, 113, 0.5) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-left: 0 !important; 
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background-color: #29b563 !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(46, 204, 113, 0.6) !important;
}

/* Butonun İçindeki Kayan Işık Hüzmesi */
.woocommerce div.product form.cart .single_add_to_cart_button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: magic-shine 3s infinite linear;
}

@keyframes magic-shine {
    0% { left: -100%; }
    100% { left: 200%; }
}