/* BODYWAY E-COMMERCE CUSTOM STYLES */

/* Logo Sizing */
.navbar-brand img,
.main-logo,
.white-logo {
    max-height: 48px !important;
    width: auto !important;
    object-fit: contain;
    transition: all 0.3s ease;
}

.xton-responsive-nav .logo img {
    max-height: 40px !important;
    width: auto !important;
}

.single-footer-widget .logo img {
    max-height: 52px !important;
    width: auto !important;
    margin-bottom: 20px;
}

/* Hero Slayt Arka Planları (Bodyway Lookbook Mankenleri) */
.bodyway-hero-1 {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2)), url('../img/bodyway/hero/banner_hero_1.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
}

.bodyway-hero-2 {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2)), url('../img/bodyway/hero/banner_hero_2.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
}

.bodyway-hero-3 {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2)), url('../img/bodyway/hero/banner_hero_3.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* Parallax Kampanya Alanı */
.bodyway-offer-bg {
    background-image: url('../img/bodyway/hero/offer_banner.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
}

.bodyway-offer-bg .offer-content-box {
    background: rgba(255, 255, 255, 0.92);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    text-align: center;
}

.bodyway-offer-bg .offer-content-box .sub-title {
    color: #e02454 !important;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.bodyway-offer-bg .offer-content-box h2 {
    color: #111111 !important;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
}

.bodyway-offer-bg .offer-content-box p {
    color: #555555 !important;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Ürün Kartı Görselleri ve Hover Efekti */
.products-box .products-image a {
    position: relative;
    display: block;
    overflow: hidden;
}

.products-box .products-image a img.main-image {
    width: 100%;
    height: auto;
    display: block;
    background-color: #f8f9fa;
    transition: all 0.6s ease-in-out;
}

.products-box .products-image a img.hover-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.07);
    transition: all 0.6s ease-in-out;
}

.products-box:hover .products-image a img.main-image {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.07);
}

.products-box:hover .products-image a img.hover-image {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Kategori Kutuları - Xton Demo Uyumlu */
.categories-box {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.categories-box img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: all 0.6s ease;
}

.categories-box:hover img {
    transform: scale(1.06);
}

/* Renk Seçenekleri Paleti (Bodyway Kataloğuna Göre) */
.color-ten { background-color: #d6b293 !important; border: 1px solid #c49f80; }
.color-lila { background-color: #c8a2c8 !important; }
.color-bordo { background-color: #6b1d2f !important; }
.color-vizon { background-color: #9e8b7d !important; }
.color-yesil { background-color: #2e6b4f !important; }
.color-gri-melanj { background-color: #9e9e9e !important; }
.color-pembe { background-color: #f48fb1 !important; }

/* WhatsApp Hızlı İletişim Butonu */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
    color: #ffffff;
}

/* Fiyat ve İndirim Rozetleri */
.products-box .products-content .price .new-price {
    font-weight: 700;
    color: #e02454;
}

/* Modal Tablo */
.modal-sizeguide table td, .modal-sizeguide table th {
    text-align: center;
    vertical-align: middle;
}

/* Hero Slider Content Alignment & Contrast */
.main-banner {
    height: 750px !important;
}

.main-banner .banner-content {
    max-width: 620px;
}

.main-banner .banner-content h1 {
    font-size: 52px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.main-banner .banner-content p {
    font-size: 17px !important;
    color: #f8f8f8 !important;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* Ana Menüye Taşınan Favori & Karşılaştır İkonları */
.others-option .option-item .top-icon-link {
    color: #221638;
    font-size: 25px;
    line-height: 1;
    display: inline-block;
    position: relative;
    top: 3px;
    transition: color 0.3s ease;
}

.others-option .option-item .top-icon-link:hover {
    color: #e02454;
}

.navbar-area.is-sticky .others-option .option-item .top-icon-link {
    color: #221638;
}

/* Sadeleştirilmiş Üst Bar */
.top-header .header-top-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px 0;
}

/* Yatay taşma düzeltmesi:
   .related-products padding'i yokken içindeki Bootstrap row'un
   negatif kenar boşluğu (-12px) sayfayı ekrandan taşırıyordu. */
.related-products {
    padding-left: 12px;
    padding-right: 12px;
}

/* ==========================================================
   MOBİL DÜZENLEMELER (991px ve altı)
   ========================================================== */
@media only screen and (max-width: 991px) {

    /* Üst bar: iletişim bloğu ve para birimi gizlenir.
       Telefon/WhatsApp'a zaten sabit WhatsApp butonundan ve
       menüden ulaşılıyor; böylece logo ekranın tepesinde kalır. */
    .top-header .header-contact-info {
        display: none !important;
    }

    .top-header .header-top-menu .language-switcher {
        display: none !important;
    }

    .top-header {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Dikey dizilimde sarkan "|" ayraçlarını kaldır */
    .header-contact-info li::before,
    .header-top-menu li::before {
        display: none !important;
    }

    .top-header-discount-info p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 0;
    }

    .header-top-menu li {
        margin-top: 6px !important;
    }

    /* Hero: 52px mobilde çok büyük */
    .main-banner {
        height: auto !important;
        min-height: 520px !important;
    }

    .main-banner .banner-content h1 {
        font-size: 32px !important;
        margin-bottom: 14px;
    }

    .main-banner .banner-content p {
        font-size: 15px !important;
        margin-bottom: 22px;
    }

    /* WhatsApp butonu: metnin üstüne binmesin diye küçült */
    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }

    /* Ürün galerisi: mobilde ilk fotoğrafa katlanır.
       Böylece fiyat / renk / beden / Sepete Ekle hemen ulaşılabilir. */
    .products-details-image.bw-collapsed {
        max-height: 600px;
        overflow: hidden;
        position: relative;
    }

    .products-details-image.bw-collapsed::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 110px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
        pointer-events: none;
    }

    .bw-gallery-toggle {
        display: block;
        width: 100%;
        margin: 12px 0 25px;
        padding: 13px 18px;
        background: #ffffff;
        border: 1px solid #dcdcdc;
        border-radius: 6px;
        color: #221638;
        font-size: 14.5px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .bw-gallery-toggle i {
        position: relative;
        top: 2px;
        margin-right: 6px;
        font-size: 18px;
    }

    .bw-gallery-toggle:hover,
    .bw-gallery-toggle:active {
        border-color: #e02454;
        color: #e02454;
    }

    /* Kategori kutuları mobilde daha makul yükseklikte */
    .categories-box img {
        height: 240px !important;
    }

    .categories-banner-area .categories-box-large img {
        height: 320px !important;
    }
}

/* Sidebar Filter Button Overrides */
.woocommerce-widget .size-list-row li a {
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    border-radius: 4px !important;
    text-align: center !important;
    display: inline-block !important;
}
