/* ALYA V4.22 — Ürün detay üst barı, çok satanlar, karşılaştırma, SSS ve footer öncesi güven alanı */

/* Ürün detayında normal mağaza üst alanı sayfayla birlikte yukarı gider. */
.page-product .theme2-store-header,
.page-product .store-site-header,
.page-product .site-header,
.page-product .theme2-store-header.is-condensed,
.page-product .store-site-header.is-condensed,
.page-product .site-header.is-condensed {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: auto !important;
    will-change: auto !important;
}

/* İncehesap örneğine benzer, ALYA kimliğine uyarlanmış ürün barı. */
.page-product .product-sticky-v422 {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 1900 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, .985) !important;
    border: 0 !important;
    border-bottom: 3px solid var(--red, #d4201d) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .14) !important;
    transform: translate3d(0, -115%, 0) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform .28s ease, opacity .2s ease, visibility .28s ease !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-product .product-sticky-v422.is-visible {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.page-product .product-sticky-v422 .product-sticky-inner {
    min-height: 116px !important;
    display: grid !important;
    grid-template-columns: 180px 84px minmax(260px, 1fr) minmax(210px, auto) auto 34px !important;
    align-items: center !important;
    gap: 20px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.page-product .product-sticky-v422 .product-sticky-brand,
.page-product .product-sticky-v422 .product-sticky-image,
.page-product .product-sticky-v422 .product-sticky-delivery,
.page-product .product-sticky-v422 .product-sticky-form,
.page-product .product-sticky-v422 .product-sticky-close {
    display: flex !important;
}

.page-product .product-sticky-v422 .product-sticky-brand {
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.page-product .product-sticky-v422 .product-sticky-brand img {
    width: 168px !important;
    height: 66px !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.page-product .product-sticky-v422 .product-sticky-image {
    width: 78px !important;
    height: 86px !important;
    object-fit: contain !important;
    background: #fff !important;
    border: 0 !important;
}

.page-product .product-sticky-v422 .product-sticky-copy {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 7px !important;
}

.page-product .product-sticky-v422 .product-sticky-copy b {
    display: -webkit-box !important;
    overflow: hidden !important;
    color: #333 !important;
    font-size: clamp(15px, 1.25vw, 20px) !important;
    font-weight: 750 !important;
    line-height: 1.22 !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

.page-product .product-sticky-v422 .product-sticky-copy strong {
    color: #f27a00 !important;
    font-size: clamp(23px, 2vw, 31px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.page-product .product-sticky-v422 .product-sticky-delivery {
    min-height: 54px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    padding: 10px 14px !important;
    color: #475569 !important;
    background: #fff !important;
    border: 1px solid #d9dee5 !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    white-space: normal !important;
}

.page-product .product-sticky-v422 .product-sticky-delivery svg {
    width: 24px !important;
    min-width: 24px !important;
    color: var(--red, #d4201d) !important;
}

.page-product .product-sticky-v422 .product-sticky-form {
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

.page-product .product-sticky-v422 .product-sticky-form select {
    width: 128px !important;
    height: 50px !important;
    border: 1px solid #cfd6df !important;
    border-radius: 4px !important;
    background: #fff !important;
}

.page-product .product-sticky-v422 .product-sticky-form button {
    min-width: 190px !important;
    height: 54px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: var(--red, #d4201d) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
    cursor: pointer !important;
}

.page-product .product-sticky-v422 .product-sticky-form button:hover {
    filter: brightness(.94);
}

.page-product .product-sticky-v422 .product-sticky-form button svg {
    width: 25px !important;
}

.page-product .product-sticky-v422 .product-sticky-close {
    width: 34px !important;
    height: 34px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #4b5563 !important;
    font-size: 34px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

/* En çok satanlar listesi */
.page-product .product-bestseller-section {
    margin-top: 34px !important;
    padding: 24px 28px 10px !important;
    background: #fff !important;
    border: 1px solid #dfe3e8 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
}

.page-product .product-bestseller-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid #dfe3e8;
}

.page-product .product-bestseller-heading small,
.page-product .product-section-title small {
    display: block;
    margin-bottom: 5px;
    color: var(--red, #d4201d);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
}

.page-product .product-bestseller-heading h2,
.page-product .product-section-title h2 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: clamp(21px, 2vw, 28px) !important;
    line-height: 1.2 !important;
}

.page-product .product-bestseller-heading > span {
    color: #64748b;
    font-size: 12px;
}

.page-product .product-bestseller-list {
    border-top: 0 !important;
}

.page-product .product-bestseller-list article {
    min-height: 104px;
    grid-template-columns: 48px 78px minmax(0, 1fr) minmax(190px, 290px) 42px !important;
    gap: 16px !important;
    padding: 12px 6px !important;
    border-bottom: 1px solid #e3e6ea !important;
}

.page-product .product-bestseller-list .rank {
    width: 40px !important;
    height: 40px !important;
    background: #eceff2 !important;
    color: #a3a9b1 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.page-product .product-bestseller-list .thumb img {
    width: 72px !important;
    height: 78px !important;
    object-fit: contain !important;
}

.page-product .product-bestseller-list .copy {
    gap: 8px !important;
}

.page-product .product-bestseller-list .copy a {
    color: #1f2937 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

.page-product .product-bestseller-list .copy strong {
    color: #f27a00 !important;
    font-size: 19px !important;
    font-weight: 900 !important;
}

.page-product .product-bestseller-list .popularity {
    grid-template-columns: minmax(120px, 1fr) 48px !important;
    gap: 12px !important;
}

.page-product .product-bestseller-list .popularity > span {
    height: 12px !important;
    background: #f1f2f4 !important;
}

.page-product .product-bestseller-list .popularity i {
    background: linear-gradient(90deg, #ffbf20, #ff9700) !important;
}

.page-product .product-bestseller-list .popularity b {
    font-size: 13px !important;
}

.page-product .compare-pick span {
    width: 22px !important;
    height: 22px !important;
    border-radius: 5px !important;
}

.page-product .compare-selection-bar {
    position: fixed !important;
    left: 50% !important;
    bottom: 22px !important;
    z-index: 1750 !important;
    min-width: 330px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 7px 8px 7px 15px !important;
    border: 1px solid rgba(15, 23, 42, .1) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .2) !important;
    transform: translate(-50%, 140%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform .25s ease, opacity .2s ease !important;
}

.page-product .compare-selection-bar.has-selection {
    transform: translate(-50%, 0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.page-product .compare-selection-bar span {
    margin: 0 !important;
    color: #475569 !important;
    white-space: nowrap;
}

.page-product .compare-selection-bar a {
    min-height: 42px !important;
    background: #f27a00 !important;
    color: #fff !important;
    border-radius: 5px !important;
}

/* SSS sadece ürün detayının altında */
.page-product .product-faq-standalone {
    margin-top: 34px;
    padding: 26px 30px 30px;
    background: #fff;
    border: 1px solid #dfe3e8;
}

.page-product .product-section-title {
    padding-bottom: 17px;
    border-bottom: 1px solid #dfe3e8;
}

.page-product .product-faq-standalone .product-faq-list {
    border-top: 0 !important;
}

.page-product .product-faq-standalone .product-faq-list summary {
    padding: 20px 44px 20px 0 !important;
    font-size: 15px !important;
}

.page-product .product-faq-standalone .product-faq-list details > div {
    padding: 0 46px 22px 22px !important;
}

.page-product .product-question-drawer {
    margin-top: 22px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #f8fafc;
}

.page-product .product-question-drawer > summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 800;
}

.page-product .product-question-drawer .product-question-form {
    margin: 0;
    max-width: none;
    border: 0;
    border-top: 1px solid #dfe3e8;
    border-radius: 0;
}

/* Footer öncesi güven alanı */
.page-product .product-prefooter {
    margin-top: 48px;
    background: #f6f6f7;
    border-top: 1px solid #e2e5e9;
}

.page-product .product-prefooter-intro {
    padding: 42px 20px 32px;
    text-align: center;
}

.page-product .product-prefooter-intro h2 {
    margin: 0 0 8px;
    color: #4b5563;
    font-size: 18px;
    font-weight: 800;
}

.page-product .product-prefooter-intro p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.65;
}

.page-product .product-prefooter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 18px 0 48px;
}

.page-product .product-prefooter-grid article {
    min-height: 265px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 38px;
    text-align: center;
    border-right: 1px solid #d4d7dc;
}

.page-product .product-prefooter-grid article:last-child {
    border-right: 0;
}

.page-product .product-prefooter-grid article > span {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    color: #6b7280;
}

.page-product .product-prefooter-grid article > span svg {
    width: 86px;
    height: 86px;
    stroke-width: 1.25;
}

.page-product .product-prefooter-grid h3 {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 16px;
}

.page-product .product-prefooter-grid p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.75;
}

.page-product .product-payment-strip {
    background: #e9ecef;
    border-top: 1px solid #dde1e5;
}

.page-product .product-payment-strip .wrap {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.page-product .product-payment-strip b {
    color: #9aa0a7;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

.page-product .product-payment-brands {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 22px;
    color: #7b8188;
}

.page-product .product-payment-brands img {
    width: auto;
    max-width: 112px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .76;
}

.page-product .product-payment-brands span {
    font-size: 16px;
    font-weight: 900;
}

@media (max-width: 1180px) {
    .page-product .product-sticky-v422 .product-sticky-inner {
        grid-template-columns: 72px minmax(220px, 1fr) auto auto 32px !important;
        gap: 14px !important;
    }
    .page-product .product-sticky-v422 .product-sticky-brand { display: none !important; }
    .page-product .product-sticky-v422 .product-sticky-delivery { display: none !important; }
    .page-product .product-sticky-v422 .product-sticky-form button { min-width: 160px !important; }
}

@media (max-width: 820px) {
    .page-product .product-sticky-v422 .product-sticky-inner {
        min-height: 78px !important;
        grid-template-columns: 54px minmax(0, 1fr) auto 28px !important;
        gap: 10px !important;
        padding: 7px 12px !important;
    }
    .page-product .product-sticky-v422 .product-sticky-image {
        width: 52px !important;
        height: 60px !important;
    }
    .page-product .product-sticky-v422 .product-sticky-copy b {
        font-size: 12px !important;
        -webkit-line-clamp: 2 !important;
    }
    .page-product .product-sticky-v422 .product-sticky-copy strong {
        font-size: 18px !important;
    }
    .page-product .product-sticky-v422 .product-sticky-form select {
        display: none !important;
    }
    .page-product .product-sticky-v422 .product-sticky-form button {
        min-width: 0 !important;
        width: 48px !important;
        height: 48px !important;
        padding: 0 !important;
        font-size: 0 !important;
        border-radius: 50% !important;
    }
    .page-product .product-sticky-v422 .product-sticky-form button svg {
        width: 23px !important;
    }
    .page-product .product-sticky-v422 .product-sticky-close {
        width: 28px !important;
        height: 28px !important;
        font-size: 27px !important;
    }

    .page-product .product-bestseller-section {
        padding: 20px 14px 8px !important;
    }
    .page-product .product-bestseller-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .page-product .product-bestseller-list article {
        grid-template-columns: 34px 58px minmax(0, 1fr) 30px !important;
        gap: 10px !important;
        min-height: 88px;
    }
    .page-product .product-bestseller-list .popularity {
        display: none !important;
    }
    .page-product .product-bestseller-list .rank {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }
    .page-product .product-bestseller-list .thumb img {
        width: 56px !important;
        height: 62px !important;
    }
    .page-product .product-bestseller-list .copy a {
        font-size: 12px !important;
    }
    .page-product .product-bestseller-list .copy strong {
        font-size: 16px !important;
    }

    .page-product .compare-selection-bar {
        width: calc(100% - 24px) !important;
        min-width: 0 !important;
        bottom: 76px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 7px !important;
        padding: 8px !important;
    }
    .page-product .compare-selection-bar span {
        text-align: center;
    }
    .page-product .compare-selection-bar a {
        width: 100% !important;
    }

    .page-product .product-faq-standalone {
        padding: 22px 16px;
    }
    .page-product .product-prefooter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: 24px;
    }
    .page-product .product-prefooter-grid article {
        min-height: 230px;
        padding: 24px 18px;
        border-right: 1px solid #d4d7dc;
        border-bottom: 1px solid #d4d7dc;
    }
    .page-product .product-prefooter-grid article:nth-child(2n) { border-right: 0; }
    .page-product .product-prefooter-grid article:nth-last-child(-n+2) { border-bottom: 0; }
    .page-product .product-payment-strip .wrap {
        flex-direction: column;
        align-items: center;
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .page-product .product-payment-brands {
        justify-content: center;
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .page-product .product-sticky-v422 .product-sticky-inner {
        grid-template-columns: 46px minmax(0, 1fr) 28px !important;
    }
    .page-product .product-sticky-v422 .product-sticky-form {
        display: none !important;
    }
    .page-product .product-sticky-v422 .product-sticky-image {
        width: 44px !important;
        height: 52px !important;
    }
    .page-product .product-prefooter-grid article {
        min-height: 210px;
        padding: 20px 12px;
    }
    .page-product .product-prefooter-grid article > span {
        width: 70px;
        height: 70px;
        margin-bottom: 14px;
    }
    .page-product .product-prefooter-grid article > span svg {
        width: 66px;
        height: 66px;
    }
    .page-product .product-prefooter-grid h3 { font-size: 14px; }
    .page-product .product-prefooter-grid p { font-size: 11px; line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
    .page-product .product-sticky-v422,
    .page-product .compare-selection-bar {
        transition: none !important;
    }
}
