/* =========================================================
   haay-product-seo.css  –  Ürün detay sayfası
   v20260614-02
   ========================================================= */

/* -------------------------------------------------------
   1. GENEL: Sayfa yatay taşmasını engelle
   ------------------------------------------------------- */
body.haay-product {
    overflow-x: hidden !important;
}

/* -------------------------------------------------------
   2. GALERİ SLIDER: overflow kontrolü
   ------------------------------------------------------- */
body.haay-product .product-details-page .gallery {
    overflow: hidden;
}

body.haay-product .gallery-top {
    position: relative !important;
    overflow: hidden !important;
}

body.haay-product .gallery-top .swiper-button-next,
body.haay-product .gallery-top .swiper-button-prev {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
}

/* -------------------------------------------------------
   3. SON GÖRÜNTÜLENEN ÜRÜNLER: overflow kontrolü
      slide-in- prefix CSS'i override: overflow:hidden var
   ------------------------------------------------------- */
body.haay-product .slide-in-recently-viewed-products-container {
    overflow: hidden !important;
    position: relative !important;
}

body.haay-product .slide-in-recently-viewed-products-container .swiper-container {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
}

/* -------------------------------------------------------
   4. ZİYARETÇİ BALONCUĞU – kusursuz fixed pill
   ------------------------------------------------------- */
body.haay-product .product-whatsapp-floating {
    position: fixed !important;
    bottom: 68px !important;
    left: 14px !important;
    z-index: 10019 !important;
    pointer-events: none !important;
    max-width: 280px;
}

body.haay-product .visitor-bubble {
    pointer-events: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-height: 38px !important;
    max-width: 268px !important;
    padding: 8px 15px 8px 9px !important;
    border: 1.5px solid rgba(255,255,255,.35) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, rgba(15,118,110,.97) 0%, rgba(20,169,255,.97) 100%) !important;
    box-shadow: 0 8px 22px rgba(20,169,255,.28), 0 2px 8px rgba(0,0,0,.15) !important;
    color: #fff !important;
    font-size: 0 !important; /* hide inline text nodes */
    font-weight: 700 !important;
    line-height: 1.3 !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    white-space: nowrap !important;
    animation: none !important;
}

body.haay-product .visitor-bubble .vb-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    background: rgba(255,255,255,.22) !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    color: #fff !important;
}

body.haay-product .visitor-bubble .vb-text {
    display: inline !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #fff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 200px !important;
}

body.haay-product .visitor-bubble .vb-text strong {
    color: #fff !important;
    font-weight: 900 !important;
}

/* -------------------------------------------------------
   5. ÜRÜN BAŞLIĞI – premium H1
   ------------------------------------------------------- */
body.haay-product .haay-product-header {
    margin-bottom: 10px;
}

body.haay-product .haay-product-title {
    margin: 0 0 8px !important;
    font-size: clamp(19px, 3vw, 27px) !important;
    font-weight: 900 !important;
    line-height: 1.28 !important;
    letter-spacing: -.35px !important;
    color: #0e1e2d !important;
    font-family: 'Inter', 'Outfit', sans-serif !important;
    background: linear-gradient(135deg, #0e1e2d 0%, #1a4064 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

body.haay-product .haay-print-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f0fdf4, #d1fae5);
    border: 1px solid #6ee7b7;
    color: #065f46;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .15px;
    margin-bottom: 12px;
}

body.haay-product .haay-print-badge i {
    font-size: 10px;
}

/* -------------------------------------------------------
   6. FİYAT HERO – "LÜTFEN FİYAT SORUNUZ" yerine premium
   ------------------------------------------------------- */
body.haay-product .haay-price-hero {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 16px 18px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg,
        #0d1d2e 0%,
        #0f3460 55%,
        #0e4a8a 100%) !important;
    box-shadow:
        0 16px 42px rgba(13,29,46,.28),
        inset 0 1px 0 rgba(255,255,255,.1) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 14px !important;
}

body.haay-product .haay-price-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #14a9ff, #20c997, #9bd500);
}

body.haay-product .haay-price-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(20,169,255,.18);
    border: 1px solid rgba(20,169,255,.3);
    color: #7dd9ff;
    font-size: 18px;
}

body.haay-product .haay-price-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.haay-product .haay-price-label {
    display: block;
    color: rgba(180,210,240,.75);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

body.haay-product .haay-price-value {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.15px;
}

body.haay-product .haay-price-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #14a9ff;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(20,169,255,.4);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

body.haay-product .haay-price-cta-btn:hover {
    background: #0b90e0;
    transform: scale(1.06);
    box-shadow: 0 10px 26px rgba(20,169,255,.55);
}

/* -------------------------------------------------------
   7. AYNI KATEGORİDEN ÜRÜNLER – Yeni tasarım
   ------------------------------------------------------- */
body.haay-product .haay-related-section {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    margin: 40px auto 36px;
    padding: 30px 26px 26px;
    border: 1px solid #d3e8f8;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(20,169,255,.07), transparent 35%),
        linear-gradient(150deg, #f7fbff 0%, #ffffff 100%);
    box-shadow: 0 18px 48px rgba(14,36,64,.07);
    overflow: hidden;
    box-sizing: border-box;
}

body.haay-product .haay-related-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #14a9ff 0%, #20c997 55%, #9bd500 100%);
}

body.haay-product .haay-related-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

body.haay-product .haay-related-title-wrap {
    min-width: 0;
}

body.haay-product .haay-related-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(20,169,255,.1);
    color: #087fca;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

body.haay-product .haay-related-title {
    margin: 0 0 5px;
    color: #0e1e2d;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.2px;
}

body.haay-product .haay-related-desc {
    margin: 0;
    color: #5d7a91;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
}

body.haay-product .haay-related-all-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    min-height: 36px;
    padding: 0 16px;
    border: 1.5px solid #14a9ff;
    border-radius: 999px;
    color: #087fca;
    font-size: 12px;
    font-weight: 800;
    transition: background .18s, color .18s, transform .18s;
    white-space: nowrap;
}

body.haay-product .haay-related-all-link:hover {
    background: #14a9ff;
    color: #fff;
    transform: translateX(2px);
}

/* Swiper wrapper for related */
body.haay-product .haay-related-swiper {
    position: relative;
    width: 100%;
    overflow: visible; /* so buttons can show outside */
}

body.haay-product .haay-related-swiper-inner {
    position: relative;
    overflow: hidden !important;
    width: 100%;
    box-sizing: border-box;
}

/* Nav buttons for related */
body.haay-product .haay-rel-btn-prev,
body.haay-product .haay-rel-btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #c8e0f5;
    box-shadow: 0 6px 18px rgba(14,36,64,.12);
    color: #087fca;
    font-size: 14px;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
}

body.haay-product .haay-rel-btn-prev {
    left: -18px;
}

body.haay-product .haay-rel-btn-next {
    right: -18px;
}

body.haay-product .haay-rel-btn-prev:hover,
body.haay-product .haay-rel-btn-next:hover {
    background: #14a9ff;
    border-color: #14a9ff;
    color: #fff;
    box-shadow: 0 8px 22px rgba(20,169,255,.35);
    transform: translateY(-50%) scale(1.08);
}

/* Product cards in related section */
body.haay-product .haay-rel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #d9eaf7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(14,36,64,.06);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.haay-product .haay-rel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(14,36,64,.12);
    border-color: #a8d6f8;
}

body.haay-product .haay-rel-card-img-wrap {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4f8fc;
}

body.haay-product .haay-rel-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
    transition: transform .3s ease;
}

body.haay-product .haay-rel-card:hover .haay-rel-card-img {
    transform: scale(1.06);
}

body.haay-product .haay-rel-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px 14px;
    flex: 1;
}

body.haay-product .haay-rel-card-name {
    margin: 0;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.4;
    color: #172033;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.haay-product .haay-rel-card-name a {
    color: inherit;
}

body.haay-product .haay-rel-card-name a:hover {
    color: #087fca;
}

body.haay-product .haay-rel-card-code {
    display: block;
    color: #8a9fb5;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .2px;
}

body.haay-product .haay-rel-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    margin-top: auto;
    border-radius: 999px;
    background: linear-gradient(135deg, #14a9ff, #0b90e0);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(20,169,255,.3);
    transition: transform .18s ease, box-shadow .18s ease;
}

body.haay-product .haay-rel-card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(20,169,255,.45);
    color: #fff;
}

/* -------------------------------------------------------
   8. ÜRÜN AÇIKLAMASI BÖLÜMÜ (product-index-summary)
   ------------------------------------------------------- */
body.haay-product .product-index-summary {
    position: relative;
    overflow: hidden;
    margin: 0 0 24px;
    padding: 24px 26px;
    border: 1px solid #d3e8f8;
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0, rgba(32,185,131,.09), transparent 34%),
        linear-gradient(145deg, #f4faff, #f9fffe);
    box-shadow: 0 12px 32px rgba(14,36,64,.06);
}

body.haay-product .product-index-summary::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #14a9ff, #20c997, #9bd500);
}

body.haay-product .product-index-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(20,169,255,.1);
    color: #087fca;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
}

body.haay-product .product-index-summary h2 {
    margin: 0 0 10px;
    color: #0e1e2d;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -.2px;
}

body.haay-product .product-index-summary > p {
    margin: 0;
    color: #4b6278;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.75;
}

body.haay-product .product-index-summary ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

body.haay-product .product-index-summary li {
    position: relative;
    min-width: 0;
    padding: 10px 12px 10px 28px;
    border: 1px solid #dce8f5;
    border-radius: 10px;
    background: rgba(255,255,255,.85);
    color: #516879;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.45;
}

body.haay-product .product-index-summary li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 11px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #14a9ff;
    box-shadow: 0 0 0 4px rgba(20,169,255,.11);
    transform: translateY(-50%);
}

body.haay-product .product-index-summary strong {
    color: #1e3346;
    font-weight: 900;
}

body.haay-product .product-index-summary a {
    color: #087fca;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(8,127,202,.25);
    text-underline-offset: 3px;
}

/* -------------------------------------------------------
   9. FOOTER – overflow fix
   ------------------------------------------------------- */
body.haay-product .footer {
    overflow: visible !important;
}

body.haay-product .seo-links {
    overflow: hidden !important;
}

/* -------------------------------------------------------
   10. RESPONSIVE
   ------------------------------------------------------- */
@media (max-width: 991px) {
    body.haay-product .haay-related-section {
        padding: 24px 20px 20px;
        border-radius: 16px;
    }

    body.haay-product .haay-rel-btn-prev {
        left: -12px;
    }
    body.haay-product .haay-rel-btn-next {
        right: -12px;
    }
}

@media (max-width: 767px) {
    body.haay-product .haay-related-section {
        width: calc(100% - 20px);
        margin: 28px auto 24px;
        padding: 20px 14px 16px;
        border-radius: 14px;
    }

    body.haay-product .haay-related-header {
        flex-direction: column;
        gap: 12px;
    }

    body.haay-product .haay-related-title {
        font-size: 17px;
    }

    body.haay-product .haay-rel-btn-prev {
        left: -10px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    body.haay-product .haay-rel-btn-next {
        right: -10px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    body.haay-product .haay-price-hero {
        padding: 13px 14px;
        gap: 11px;
    }

    body.haay-product .haay-price-value {
        font-size: 13px;
    }

    body.haay-product .haay-product-title {
        font-size: 19px !important;
    }

    body.haay-product .product-index-summary {
        padding: 20px 16px;
    }

    body.haay-product .product-index-summary ul {
        grid-template-columns: 1fr;
    }

    body.haay-product .product-whatsapp-floating {
        bottom: 64px !important;
        left: 10px !important;
        max-width: calc(100vw - 24px) !important;
    }

    body.haay-product .visitor-bubble .vb-text {
        max-width: calc(100vw - 80px) !important;
        font-size: 10.5px !important;
    }
}

@media (max-width: 480px) {
    body.haay-product .visitor-bubble {
        min-height: 34px !important;
    }
    body.haay-product .visitor-bubble .vb-text {
        font-size: 10px !important;
    }
}
