/*
Theme Name: Başka Şeyler Child
Theme URI: https://themenectar.com/salient/
Description: Başka Şeyler için Salient Child Theme
Author: Başka Şeyler
Template: salient
Version: 1.0.0
Text Domain: salient-child
*/

/* ===================================================
   GENEL / WOOCOMMERCE
   =================================================== */

/* 404 sayfasında header ve footer'ı gizle */
.error404 #header-outer,
.error404 #footer-outer,
.error404 #header-secondary-outer {
    display: none !important;
}

.error404 #ajax-content-wrap {
    padding-top: 0 !important;
}

/* Boş normal sepet sayfasındaki öğeleri gizle */
.cart-empty,
.return-to-shop {
    display: none !important;
}

/* Normal sepet sayfasındaki WooCommerce mesajlarını gizle */
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info {
    display: none !important;
}

/* Hesabım navigasyonunu gizle */
.woocommerce-MyAccount-navigation {
    display: none !important;
}

/* Select2 arama alanını gizle */
.select2-search.select2-search--dropdown {
    display: none !important;
}

/* Select2 dropdown */
.select2-dropdown.select2-dropdown--below,
.select2-dropdown.select2-dropdown--above {
    border: 1px solid #eaeaea !important;
    border-radius: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    padding: 10px 0 !important;
    background-color: #ffffff !important;
}

.select2-container--default .select2-results__option {
    padding: 12px 24px !important;
    font-size: 14px !important;
    color: #4a3b3f !important;
    background-color: transparent !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option:hover {
    background-color: #f7f5f4 !important;
    color: #000000 !important;
}

/* Ürün sonuç sayısını gizle */
.woocommerce .woocommerce-result-count {
    display: none !important;
}


/* ===================================================
   KD PRODUCT SHOWCASE BANNER
   =================================================== */

.kd-product-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 520px;
    max-height: 960px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f7;
}

.kd-banner-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.kd-banner-logo-bg {
    width: 70%;
    max-width: 750px;
    height: auto;
    object-fit: contain;
    opacity: 1;
    user-select: none;
    -webkit-user-select: none;
}

.kd-product-slides {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
}

.kd-product-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
    pointer-events: none;
}

.kd-product-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Desktop varsayılan */
.kd-product-slide img {
    max-height: 24vh;
    max-width: 22%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 64px rgba(0, 0, 0, 0.18));
    transform: translateY(-14%) translateX(6%);
}


/* ===================================================
   RESPONSIVE — KD PRODUCT BANNER
   =================================================== */

/* Desktop Large (≥ 1440px) */
@media (min-width: 1440px) {
    .kd-product-banner {
        max-height: 100vh;
    }

    .kd-banner-logo-bg {
        max-width: 75%;
    }

    .kd-product-slide img {
        max-width: 30%;
        max-height: 30vh;
        transform: translateY(-13%) translateX(5%);
    }
}

/* Desktop Small (1025px – 1279px) */
@media (max-width: 1279px) {
    .kd-product-banner {
        height: 90vh;
    }

    .kd-banner-logo-bg {
        width: 72%;
    }

    .kd-product-slide img {
        max-width: 24%;
        max-height: 20vh;
        transform: translateY(-13%) translateX(5%);
    }
}

/* Tablet Yatay (≤ 1024px, landscape) */
@media (max-width: 1024px) and (orientation: landscape) {
    .kd-product-banner {
        height: 85vh;
        min-height: 480px;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding-top: 30vh !important;
        gap: 0 !important;
    }

    .kd-banner-logo-bg {
        width: 60%;
        max-width: 620px;
    }
}

/* Tablet Dikey (≤ 1024px, portrait) */
@media (max-width: 1024px) and (orientation: portrait) {
    .kd-product-banner {
        height: 85vh;
        min-height: 480px;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .kd-banner-bg {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 3 !important;
        pointer-events: auto !important;
    }

    .kd-banner-logo-bg {
        width: 55% !important;
        max-width: 100% !important;
        max-height: 30vh !important;
        opacity: 1 !important;
    }

    .kd-product-slides {
        width: 100% !important;
        height: 32vh !important;
        flex-shrink: 0 !important;
    }

    .kd-product-slide img {
        max-width: 45% !important;
        max-height: 30vh !important;
        transform: none !important;
    }
}

/* Mobil Yatay (≤ 926px, landscape) */
@media (max-width: 926px) and (orientation: landscape) {
    .kd-product-banner {
        height: 100vh;
        min-height: 280px;
    }

    .kd-banner-logo-bg {
        width: 50% !important;
        max-width: 360px !important;
        opacity: 0.65 !important;
    }

    .kd-product-slide img {
        max-width: 12% !important;
        max-height: 50vh !important;
        transform: translateY(-5%) translateX(5%) !important;
    }
}

/* Mobil Dikey (≤ 768px, portrait) */
@media (max-width: 768px) and (orientation: portrait) {
    .kd-product-banner {
        height: 85vh;
        min-height: 360px;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .kd-banner-bg {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 3 !important;
        pointer-events: auto !important;
    }

    .kd-banner-logo-bg {
        width: 60% !important;
        max-width: 100% !important;
        max-height: 38vh !important;
        opacity: 1 !important;
    }

    .kd-product-slides {
        width: 100% !important;
        height: 45vh !important;
        flex-shrink: 0 !important;
    }

    .kd-product-slide img {
        max-width: 55% !important;
        max-height: 35vh !important;
        transform: none !important;
    }
}

/* Küçük Mobil (≤ 480px) */
@media (max-width: 480px) {
    .kd-product-banner {
        height: 90vh;
        min-height: 300px;
        gap: 0 !important;
    }

    .kd-banner-logo-bg {
        width: 70% !important;
        max-height: 36vh !important;
        transform: translateY(40%) translateX(0%) !important;
    }

    .kd-product-slides {
        height: 46vh !important;
    }

    .kd-product-slide img {
        max-width: 64% !important;
        max-height: 36vh !important;
        transform: translateY(15%) translateX(0%) !important;
    }
}

/* Çok Küçük Mobil (≤ 375px) */
@media (max-width: 375px) {
    .kd-product-banner {
        height: 92vh;
        min-height: 280px;
    }

    .kd-banner-logo-bg {
        width: 75% !important;
        max-height: 36vh !important;
        transform: translateY(45%) translateX(0%) !important;
    }

    .kd-product-slides {
        height: 48vh !important;
    }

    .kd-product-slide img {
        max-width: 70% !important;
        max-height: 38vh !important;
        transform: translateY(18%) translateX(0%) !important;
    }
}

.kd-product-banner,
.kd-product-banner * {
    box-sizing: border-box;
}


/* ===================================================
   PRODUCT FILTER
   =================================================== */

.wpf_item_wpf_cat input[type="radio"] {
    display: none !important;
}

.wpf_item_wpf_cat input[type="radio"] + label {
    cursor: pointer;
}

/* ===================================================
   SIDE CART — FINAL / CLEAN
   =================================================== */

/* Ana arka plan */
.nectar-slide-in-cart {
    background-color: #f5f5f7 !important;
}

/* Butonlar hariç tüm metin, ikon ve çizgiler bordo */
body .nectar-slide-in-cart.style_slide_in_click.open
*:not(.woocommerce-mini-cart__buttons):not(.woocommerce-mini-cart__buttons *),
body .nectar-slide-in-cart.style_slide_in_click.open
.woocommerce-mini-cart__empty-message
*:not(a.button):not(a.button *) {
    color: #381e2b !important;
    -webkit-text-fill-color: #381e2b !important;
    text-decoration-color: #381e2b !important;
    border-color: #381e2b !important;
    outline-color: #381e2b !important;
}

/* Kapatma işareti / çizgileri */
body .nectar-slide-in-cart.style_slide_in_click.open .close-line,
body .nectar-slide-in-cart.style_slide_in_click.open .close-line1,
body .nectar-slide-in-cart.style_slide_in_click.open .close-line2 {
    background-color: #381e2b !important;
    border-color: #381e2b !important;
    opacity: 1 !important;
}

/* SVG ikonları */
body .nectar-slide-in-cart.style_slide_in_click.open
svg:not(.woocommerce-mini-cart__buttons svg),
body .nectar-slide-in-cart.style_slide_in_click.open
svg:not(.woocommerce-mini-cart__buttons svg) * {
    fill: #381e2b !important;
    stroke: #381e2b !important;
}

/* Side cart buton yazıları — dolu / boş / pasif */
body .nectar-slide-in-cart.style_slide_in_click.open
.widget_shopping_cart_content .buttons a,
body .nectar-slide-in-cart.style_slide_in_click.open
.widget_shopping_cart_content .buttons a *,
body .nectar-slide-in-cart.style_slide_in_click.open
.widget_shopping_cart_content a.button,
body .nectar-slide-in-cart.style_slide_in_click.open
.widget_shopping_cart_content a.button *,
body .nectar-slide-in-cart.style_slide_in_click.open
.woocommerce-mini-cart__empty-message a.button,
body .nectar-slide-in-cart.style_slide_in_click.open
.woocommerce-mini-cart__empty-message a.button *,
body .nectar-slide-in-cart.style_slide_in_click.open
a.wc-forward,
body .nectar-slide-in-cart.style_slide_in_click.open
a.checkout,
body .nectar-slide-in-cart.style_slide_in_click.open
a.disabled,
body .nectar-slide-in-cart.style_slide_in_click.open
a[aria-disabled="true"],
body .nectar-slide-in-cart.style_slide_in_click.open
.widget_shopping_cart_content .buttons a:hover,
body .nectar-slide-in-cart.style_slide_in_click.open
.widget_shopping_cart_content .buttons a:focus,
body .nectar-slide-in-cart.style_slide_in_click.open
.widget_shopping_cart_content .buttons a:active,
body .nectar-slide-in-cart.style_slide_in_click.open
.widget_shopping_cart_content a.button:hover,
body .nectar-slide-in-cart.style_slide_in_click.open
.widget_shopping_cart_content a.button:focus,
body .nectar-slide-in-cart.style_slide_in_click.open
.widget_shopping_cart_content a.button:active {
    color: #f5f5f7 !important;
    -webkit-text-fill-color: #f5f5f7 !important;
}


/* ===================================================
   NORMAL SEPET SAYFASI — FINAL / CLEAN
   =================================================== */

/* Sepet sayfasındaki temel yüzeyleri site rengine eşitle */
.woocommerce-cart .woocommerce-cart-form table.shop_table,
.woocommerce-cart .woocommerce-cart-form table.shop_table thead,
.woocommerce-cart .woocommerce-cart-form table.shop_table tbody,
.woocommerce-cart .woocommerce-cart-form table.shop_table tr,
.woocommerce-cart .woocommerce-cart-form table.shop_table th,
.woocommerce-cart .woocommerce-cart-form table.shop_table td,
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals,
.woocommerce-cart .cart_totals table,
.woocommerce-cart .cart_totals table tbody,
.woocommerce-cart .cart_totals table tr,
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td,
.woocommerce-cart .woocommerce-shipping-totals,
.woocommerce-cart .woocommerce-shipping-totals th,
.woocommerce-cart .woocommerce-shipping-totals td {
    background-color: #f5f5f7 !important;
}

/* Ürün tablosu ferah kalsın */
.woocommerce-cart .woocommerce-cart-form table.shop_table td {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

/* Sepeti Güncelle ortalı */
.woocommerce-cart .woocommerce-cart-form td.actions {
    text-align: center !important;
    padding-top: 38px !important;
    padding-bottom: 38px !important;
}

.woocommerce-cart button[name="update_cart"] {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

/* Sepet toplamları tam genişlik */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}

.woocommerce-cart .cart_totals {
    margin: 55px 0 0 !important;
    overflow: visible !important;
}

/* Başlık sola */
.woocommerce-cart .cart_totals > h2 {
    margin: 0 0 28px !important;
    text-align: left !important;
    color: #381e2b !important;
}

/* Tablo geniş ve dengeli */
.woocommerce-cart .cart_totals table.shop_table {
    width: 100% !important;
    table-layout: fixed !important;
    overflow: visible !important;
}

.woocommerce-cart .cart_totals table.shop_table tr {
    border-bottom: 1px solid rgba(56, 30, 43, 0.18) !important;
}

.woocommerce-cart .cart_totals table.shop_table th {
    width: 30% !important;
    padding: 22px 0 !important;
    text-align: left !important;
    vertical-align: top !important;
    color: #381e2b !important;
}

.woocommerce-cart .cart_totals table.shop_table td {
    width: 70% !important;
    padding: 22px 0 !important;
    text-align: left !important;
    vertical-align: top !important;
    color: #381e2b !important;
}

/* Gönderim */
.woocommerce-cart .woocommerce-shipping-totals td {
    position: relative !important;
    overflow: visible !important;
    text-align: left !important;
}

.woocommerce-cart #shipping_method {
    margin: 0 0 7px !important;
    padding: 0 !important;
    text-align: left !important;
}

.woocommerce-cart #shipping_method li {
    margin: 0 !important;
    color: #381e2b !important;
}

.woocommerce-cart .woocommerce-shipping-destination {
    margin: 8px 0 0 !important;
    color: #381e2b !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Adresi değiştir küçük link */
.woocommerce-cart .shipping-calculator-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #381e2b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    opacity: 0.72 !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
}

.woocommerce-cart .shipping-calculator-button:hover,
.woocommerce-cart .shipping-calculator-button:focus {
    background: transparent !important;
    color: #381e2b !important;
    opacity: 1 !important;
}

/* Ödeme butonu ortalı */
.woocommerce-cart .wc-proceed-to-checkout {
    margin-top: 34px !important;
    text-align: center !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 360px !important;
    margin: 0 auto !important;
}


/* ===================================================
   TESLİMAT ADRESİ MODALI — FINAL
   =================================================== */

/* Modal açıkken arka sayfayı kilitle */
html.bs-shipping-modal-open,
body.bs-shipping-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body.bs-shipping-modal-open {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

/* Tüm ekranı kaplayan overlay */
.bs-shipping-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    background: rgba(56, 30, 43, 0.28) !important;
    pointer-events: none !important;
    touch-action: none !important;
    transition: opacity 0.20s ease, visibility 0.20s ease !important;
}

.bs-shipping-modal-overlay.is-active {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* WooCommerce'in kendi formunu ekran ortasında modal yap */
.woocommerce-cart .shipping-calculator-form {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2147483001 !important;
    width: min(460px, calc(100vw - 32px)) !important;
    max-height: min(78vh, 700px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 0 !important;
    padding: 32px 28px 28px !important;
    background: #f5f5f7 !important;
    border: 1px solid rgba(56, 30, 43, 0.22) !important;
    border-radius: 0 !important;
    box-shadow: 0 24px 60px rgba(56, 30, 43, 0.20) !important;
}

/* Modal kapatma */
.woocommerce-cart .shipping-calculator-form .bs-shipping-modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #381e2b !important;
    font-size: 24px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    opacity: 0.70 !important;
    cursor: pointer !important;
}

.woocommerce-cart .shipping-calculator-form .bs-shipping-modal-close:hover,
.woocommerce-cart .shipping-calculator-form .bs-shipping-modal-close:focus {
    background: transparent !important;
    color: #381e2b !important;
    opacity: 1 !important;
}

/* Modal içerikleri */
.woocommerce-cart .shipping-calculator-form,
.woocommerce-cart .shipping-calculator-form p,
.woocommerce-cart .shipping-calculator-form label,
.woocommerce-cart .shipping-calculator-form span {
    color: #381e2b !important;
}

.woocommerce-cart .shipping-calculator-form input,
.woocommerce-cart .shipping-calculator-form select,
.woocommerce-cart .shipping-calculator-form .select2-selection {
    width: 100% !important;
    background: #ffffff !important;
    color: #381e2b !important;
    border: 1px solid rgba(56, 30, 43, 0.22) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.woocommerce-cart .shipping-calculator-form .select2-selection__rendered,
.woocommerce-cart .shipping-calculator-form .select2-selection__arrow {
    color: #381e2b !important;
}

.woocommerce-cart .shipping-calculator-form .form-row {
    margin-bottom: 14px !important;
}

.woocommerce-cart .shipping-calculator-form button[type="submit"] {
    width: 100% !important;
    margin: 8px 0 0 !important;
    background: #381e2b !important;
    color: #f5f5f7 !important;
    border: 1px solid #381e2b !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.woocommerce-cart .shipping-calculator-form button[type="submit"]:hover,
.woocommerce-cart .shipping-calculator-form button[type="submit"]:focus {
    background: #d7c6bd !important;
    color: #381e2b !important;
    border-color: #381e2b !important;
}

/* Mobil */
@media (max-width: 768px) {
    .woocommerce-cart .cart_totals table.shop_table,
    .woocommerce-cart .cart_totals table.shop_table tbody,
    .woocommerce-cart .cart_totals table.shop_table tr,
    .woocommerce-cart .cart_totals table.shop_table th,
    .woocommerce-cart .cart_totals table.shop_table td {
        display: block !important;
        width: 100% !important;
    }

    .woocommerce-cart .cart_totals table.shop_table th {
        padding-bottom: 6px !important;
    }

    .woocommerce-cart .cart_totals table.shop_table td {
        padding-top: 0 !important;
    }

    .woocommerce-cart .wc-proceed-to-checkout .checkout-button {
        width: 100% !important;
        min-width: 0 !important;
    }

    .woocommerce-cart .shipping-calculator-form {
        width: calc(100vw - 24px) !important;
        max-height: 84vh !important;
        padding: 30px 20px 20px !important;
    }
}

