/* =====================================================================
   ASAY keşif katmanı (paket 31): kartlarda "Hızlı bakış" ve "Son gezdikleriniz" şeridi
   Betik çalışmazsa hiçbir şey görünmez; site olduğu gibi kalır. "Hareketi azalt" tercihinde animasyon yoktur.
   ===================================================================== */

/* 1. Kartta "Hızlı bakış" düğmesi: yalnızca fare ile gezen cihazlarda, kartın üzerine gelince görseli üstünden belirir */
.qv-wrap { position: relative; height: 0; z-index: 2; }
.qv-trigger { display: none; }
@media (hover: hover) and (pointer: fine) {
    html.qv-ok .qv-trigger {
        position: absolute; left: 50%; bottom: 14px; display: inline-flex; align-items: center; gap: 7px;
        padding: 9px 16px 9px 13px; border: 0; border-radius: 999px; background: rgba(10, 43, 66, .92); color: #fff;
        font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
        opacity: 0; transform: translate(-50%, 8px); pointer-events: none; box-shadow: 0 8px 22px rgba(3, 25, 40, .28);
    }
    html.qv-ok .product-card:hover .qv-trigger,
    html.qv-ok .qv-trigger:focus-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
    html.qv-ok .qv-trigger:hover { background: #087f79; }
    html.qv-ok .qv-trigger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px #087f79; }
    .qv-trigger .asay-icon { width: 16px; height: 16px; flex: none; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    html.qv-ok .qv-trigger { transition: opacity .18s ease, transform .18s ease, background-color .15s ease; }
}

/* 2. Hızlı bakış penceresi */
.qv-dialog { width: min(920px, calc(100vw - 32px)); max-width: none; max-height: min(680px, calc(100vh - 32px)); padding: 0; border: 0; border-radius: 20px; background: #fff; color: #0a2b42; overflow: hidden; box-shadow: 0 30px 90px rgba(3, 25, 40, .38); }
.qv-dialog::backdrop { background: rgba(7, 28, 44, .56); backdrop-filter: blur(3px); }
html.qv-lock { overflow: hidden; scrollbar-gutter: stable; }
.qv { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); max-height: inherit; min-height: 380px; }
.qv-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(241, 246, 247, .96); color: #4d6676; font-size: 24px; line-height: 1; cursor: pointer; }
.qv-close:hover { background: #e3edef; color: #0a2b42; }
.qv-close:focus-visible, .qv-thumbs button:focus-visible, .qv-fav:focus-visible { outline: 2px solid #087f79; outline-offset: 2px; }
.qv-media { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-width: 0; padding: 34px 28px 26px; background: linear-gradient(160deg, #f7fafb, #eaf3f4); }
.qv-stage { position: relative; display: grid; place-items: center; width: 100%; min-height: 280px; }
.qv-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(380px, 52vh); object-fit: contain; }
.qv-discount { position: absolute; top: 0; left: 0; padding: 5px 10px; border-radius: 8px; background: #c2273d; color: #fff; font-size: 13px; font-weight: 800; }
.qv-stage .condition-badge { position: absolute; top: 0; right: 0; left: auto; }
.qv-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.qv-thumbs button { width: 58px; height: 58px; padding: 5px; border: 1px solid #d4e1e6; border-radius: 11px; background: #fff; cursor: pointer; }
.qv-thumbs button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qv-thumbs button.active { border-color: #087f79; box-shadow: 0 0 0 2px rgba(8, 127, 121, .2); }
.qv-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 36px 32px 28px 30px; overflow-y: auto; }
.qv-eyebrow { margin: 0; padding-right: 36px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: #5b7384; }
.qv h2 { margin: 0; font-size: 23px; line-height: 1.25; color: #0a2b42; }
.qv-specs { margin: 0; font-size: 13.5px; line-height: 1.5; color: #5b7384; }
.qv-dialog .qv a.qv-rating { display: inline-flex; align-items: baseline; gap: 8px; align-self: flex-start; font-size: 14px; font-weight: 800; color: #0a2b42; text-decoration: none; }
.qv-dialog .qv a.qv-rating small { font-weight: 500; color: #5b7384; }
.qv-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 4px; }
.qv-price em { flex-basis: 100%; font-style: normal; font-size: 12.5px; color: #5b7384; }
.qv-price del { font-size: 15px; color: #7a8d99; }
.qv-price b { font-size: 30px; line-height: 1; letter-spacing: -.01em; color: #0a2b42; }
.qv-campaign { margin: 0; font-size: 12.5px; font-weight: 700; color: #b4503c; }
.qv-stock { margin: 0; font-size: 13.5px; font-weight: 700; }
.qv-stock.is-in { color: #0b7a5c; }
.qv-stock.is-out { color: #6a7f8c; }
.qv-summary { margin: 2px 0 0; font-size: 14px; line-height: 1.65; color: #40586a; }
.qv-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 14px; }
.qv-dialog .qv-actions .qv-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex: 1 1 auto; width: auto; height: auto; min-height: 50px; padding: 12px 18px; border: 1px solid #087f79; border-radius: 11px; background: #087f79; color: #fff; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.qv-dialog .qv-actions .qv-cta:hover { border-color: #066961; background: #066961; color: #fff; }
.qv-dialog .qv-actions .qv-cta .asay-icon { width: 20px; height: 20px; flex: none; }
.qv-dialog .qv-actions .qv-cta.is-notify { background: #fff !important; color: #087f79 !important; border: 1px solid #087f79 !important; }
.qv-dialog .qv-actions .qv-cta.is-notify:hover { background: #eaf7f5 !important; }
.qv-dialog .qv-actions .qv-cta:focus-visible { outline: 2px solid #087f79; outline-offset: 2px; }
.qv-fav { flex: 0 0 50px; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 1px solid #cfdde3; border-radius: 11px; background: #fff; color: #4d6676; cursor: pointer; }
.qv-fav svg { width: 22px; height: 22px; }
.qv-fav:hover { border-color: #b8ccd4; color: #0a2b42; }
.qv-fav.active { border-color: #e7b3bb; background: #fdf1f3; color: #c2273d; }
.qv-fav.active svg { fill: currentColor; }
.qv-dialog .qv a.qv-more, .qv-dialog .qv-loading a.qv-more { align-self: flex-start; margin-top: 2px; font-size: 14px; font-weight: 700; color: #087f79; text-decoration: none; }
.qv-dialog .qv a.qv-more:hover, .qv-dialog .qv-loading a.qv-more:hover { color: #066961; text-decoration: underline; }
.qv-loading { position: relative; display: grid; place-items: center; align-content: center; gap: 14px; min-height: 340px; padding: 40px; text-align: center; font-size: 15px; color: #5b7384; }
.qv-loading i { width: 34px; height: 34px; border: 3px solid #d7e6e8; border-top-color: #087f79; border-radius: 50%; }
.qv-loading .qv-more { align-self: center; }
@keyframes qv-spin { to { transform: rotate(360deg); } }
@keyframes qv-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
    .qv-loading i { animation: qv-spin .8s linear infinite; }
    .qv-dialog[open] { animation: qv-in .26s cubic-bezier(.2, .8, .2, 1); }
}
@media (max-width: 760px) {
    .qv-dialog { width: 100%; max-height: calc(100vh - 12px); margin: auto 0 0; border-radius: 20px 20px 0 0; }
    .qv { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
    .qv-media { padding: 26px 20px 12px; }
    .qv-stage { min-height: 200px; }
    .qv-stage img { max-height: 240px; }
    .qv-copy { padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); overflow: visible; }
    .qv h2 { font-size: 20px; }
    .qv-price b { font-size: 26px; }
}

/* 3. "Son gezdikleriniz" şeridi (ürün kartı genişliği ana sayfadaki raflarla aynıdır; ana sayfa dışındaki sayfalarda da geçerli olsun diye burada yinelenir) */
.recent-shelf { padding: 38px 0; background: #fff; border-top: 1px solid #e6eef1; }
@media (min-width: 1001px) {
    .recent-shelf .shelf-scroll { grid-auto-columns: min(280px, calc((100% - 39px) / 4)); }
}
.recent-shelf .shelf-title .recent-clear { padding: 0; border: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 800; color: #17283a; cursor: pointer; }
.recent-shelf .shelf-title .recent-clear:hover { color: #087f79; text-decoration: underline; }
.recent-shelf .shelf-title .recent-clear:focus-visible { outline: 2px solid #087f79; outline-offset: 3px; border-radius: 4px; }
@keyframes recent-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
    .recent-shelf { animation: recent-in .45s ease both; }
}
