/* ================================================================
   legacy-misc.css — Tilbe Home Legacy/Miscellaneous
   Kaynak: misc.css'den ayristirildi (FAZ 2.2)
   NOT: Bu dosya temizlik bekleyen legacy kodlari icerir.
   Sonraki sprintlerde analiz edilip ayiklanacak.
   Yukleme: global (lazy)
   ================================================================ */

/* ═══════════════════════════════════════════════════════════════════
   BOLUM 10: ANALYTICS DEBUG PANEL
   Activate: ?th_debug=1 or Ctrl+Shift+A
   ═══════════════════════════════════════════════════════════════════ */

.th-ap {
  position: fixed;
  bottom: var(--th-space-4);
  right: var(--th-space-4);
  width: 380px;
  max-height: 520px;
  background: var(--th-neutral-900);
  color: var(--th-neutral-300);
  border-radius: var(--th-radius-xl);
  box-shadow: var(--th-shadow-xl);
  z-index: var(--th-z-max);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: var(--th-text-xs-plus);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.th-ap--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.th-ap__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--th-space-2-5) var(--th-space-3-5);
  background: var(--th-neutral-900);
  cursor: move;
  user-select: none;
  border-bottom: 1px solid color-mix(in srgb, var(--th-neutral-0) 8%, transparent);
}
.th-ap__title {
  font-weight: var(--th-font-bold);
  font-size: var(--th-text-sm);
  color: var(--th-cyan-400);
  letter-spacing: 0.5px;
}
.th-ap__actions { display: flex; gap: var(--th-space-1-5); }
.th-ap__btn {
  background: color-mix(in srgb, var(--th-neutral-0) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--th-neutral-0) 12%, transparent);
  color: var(--th-neutral-400);
  padding: var(--th-space-0-5) var(--th-space-2-5);
  border-radius: var(--th-radius-sm);
  font-size: var(--th-text-xs);
  cursor: pointer;
  min-height: 24px;
  min-width: auto;
}
.th-ap__btn:hover { background: color-mix(in srgb, var(--th-neutral-0) 15%, transparent); color: var(--th-color-text-inverse); }
.th-ap__btn--close { font-size: var(--th-text-md); padding: 0 var(--th-space-1-5); }

.th-ap__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: color-mix(in srgb, var(--th-neutral-0) 5%, transparent);
  padding: var(--th-space-2) var(--th-space-3);
}
.th-ap__metric { text-align: center; }
.th-ap__metric-val {
  display: block;
  font-size: var(--th-text-lg);
  font-weight: var(--th-font-bold);
  color: var(--th-color-text-inverse);
  line-height: 1.2;
}
.th-ap__metric-lbl {
  display: block;
  font-size: var(--th-text-2xs);
  color: var(--th-neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.th-ap__perf {
  display: flex;
  gap: var(--th-space-3);
  padding: var(--th-space-1-5) var(--th-space-3-5);
  font-size: var(--th-text-xs);
  color: var(--th-neutral-500);
  border-bottom: 1px solid color-mix(in srgb, var(--th-neutral-0) 6%, transparent);
}

.th-ap__log-header {
  padding: var(--th-space-1-5) var(--th-space-3-5);
  font-size: var(--th-text-xs);
  font-weight: var(--th-font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--th-neutral-500);
}

.th-ap__log {
  list-style: none;
  margin: 0;
  padding: 0 var(--th-space-2) 8px;
  overflow-y: auto;
  flex: 1;
  max-height: 280px;
  scrollbar-width: thin;
  scrollbar-color: var(--th-neutral-700) transparent;
}

.th-ap__log-item {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  padding: var(--th-space-1) 6px;
  border-radius: var(--th-radius-md);
  flex-wrap: wrap;
  animation: th-ap-fadein 0.3s ease;
}
.th-ap__log-item:hover { background: color-mix(in srgb, var(--th-neutral-0) 4%, transparent); }

.th-ap__log-time {
  font-size: var(--th-text-2xs);
  color: var(--th-neutral-600);
  flex-shrink: 0;
  width: 50px;
}

.th-ap__badge {
  display: inline-block;
  padding: var(--th-space-0-5) var(--th-space-2);
  border-radius: var(--th-radius-sm);
  font-size: var(--th-text-2xs);
  font-weight: var(--th-font-semibold);
  background: var(--th-neutral-800);
  color: var(--th-neutral-200);
  text-transform: lowercase;
}
.th-ap__badge--cart { background: var(--th-emerald-500); color: var(--th-color-text-inverse); }
.th-ap__badge--checkout { background: var(--th-violet-500); color: var(--th-color-text-inverse); }
.th-ap__badge--view { background: var(--th-blue-500); color: var(--th-color-text-inverse); }

.th-ap__log-count {
  font-size: var(--th-text-2xs);
  color: var(--th-neutral-500);
  flex-shrink: 0;
}

.th-ap__log-detail {
  font-size: var(--th-text-2xs);
  color: var(--th-neutral-400);
  width: 100%;
  padding-left: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes th-ap-fadein {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 576px) {
  .th-ap { width: calc(100% - 16px); right: var(--th-space-2); bottom: var(--th-space-2); max-height: 400px; }
}

@media print { .th-ap { display: none !important; } }


/* === legacy.css'ten tasindi: 2A — Bundle Box === */
/* =========================
   BUNDLE BOX
========================= */
/* [FAZ 2.6] bundle-badge, bundle-summary, qty-btn, qsf-topbar, qsf-result-count silindi — referanssız ölü kod */



/* === legacy.css'ten taşındı — 2D th-card right-to-left === */
@media (max-width: 768px) {
.th-card .right-to-left {
        display: none
    }

    

    footer .bar .right-image {
        justify-content: center
    }

    footer .bb .pr-5 {
        padding-right: var(--th-space-2-5)
    }

    

    .product-carousel-desktop.normal,footer .info ul li a:before,footer .logo-area {
        display: none
    }

    .mobile-header-space,.product-carousel-mobile,header.mobile {
        display: block
    }

    .stores .cards {
        display: block;
        text-align: center
    }

    .stores .card {
        display: inline-block;
        margin: 0;
        max-width: 45%;
        height: 50px;
        border: 0
    }

    footer .bar .right-image,footer .bar p {
        text-align: center
    }

    footer .bar .right-image {
        margin: var(--th-space-2-5) 0
    }

    footer .bb {
        border-top: 0;
        border-bottom: 0
    }

    footer .info {
        padding-top: 0
    }

    footer .info .title {
        color: var(--th-color-text-inverse);
        border: 0;
        padding: var(--th-space-2-5);
        position: relative
    }

    footer .info .title::after {
        content: "+";
        right: var(--th-space-2-5);
        top: 3px;
        bottom: 0;
        position: absolute;
        font-size: var(--th-text-xl);
        margin-bottom: var(--th-space-2-5)
    }

    footer .info .fs {
        text-align: center;
        border: 0;
        margin-bottom: var(--th-space-4);
        padding: var(--th-space-2-5)
    }

    footer .info ul {
        margin: 0
    }

    footer .info .fs,footer .info ul li {
        color: var(--th-color-text)
    }

    footer .info ul li a {
        color: var(--th-color-text)
    }

    

    footer .secure {
        text-align: center;
        margin: var(--th-space-2-5) 0
    }
}

/* === legacy.css'ten taşındı — S13 breadcrumb separator === */
.breadcrumb-item + .breadcrumb-item::before {
  font-family: "Font Awesome 5 Free";
  content: "\f105";
  font-weight: var(--th-font-black);
  font-size: var(--th-text-xs);
  color: var(--th-neutral-400);
}
@media (max-width: 576px) {
  .breadcrumb { flex-wrap: nowrap; overflow: hidden; }
  .breadcrumb-item:not(:last-child):not(:first-child) { display: none; }
  .breadcrumb-item:first-child::after { content: " / ..."; color: var(--th-neutral-400); }
}

/* === legacy.css'ten taşındı — S13 @keyframes th-stock-pulse === */
@keyframes th-stock-pulse {
  0%,100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--th-red-700) 15%, transparent); }
}

/* === legacy.css'ten taşındı — S13 .th-tag-x === */
.th-tag-x { font-size: var(--th-text-base); line-height: 1; margin-left: var(--th-space-0-5); opacity: .7; }

/* === legacy.css'ten taşındı — S13 blog card CLS shield === */
/* ── C3-3: Blog card image CLS shield ── */
.card-blog .image{aspect-ratio:3/2;overflow:hidden}
.card-blog .image img{width:100%;height:100%;object-fit:cover;display:block}


/* [FAZ 2.6] p-g-mod-t-39 silindi — referanssız eski modül stili */

.card-list-product .card-list-product-inner .th-card__image-wrap .image img,.product-carousel-desktop.normal .carousel-item a img {
    width: 75%
}

/* === legacy.css'ten taşındı — B9 card-list img width === */
.card-list-product .card-list-product-inner .th-card__image-wrap .image img,.product-carousel-desktop.normal .carousel-item a img {
    width: 75%
}

/* === legacy.css'ten taşındı — B10 breadcrumb-item last-child === */
.breadcrumb-wrapper .breadcrumb .breadcrumb-item:last-child a {
    color: var(--th-color-text-secondary);
    font-family: "Poppins",sans-serif
}

/* === legacy.css'ten taşındı — B10 th-card__price-old mobile === */
@media (max-width: 768px) {
    

    .th-card .th-card__inner .th-card__prices .th-card__price-wrap .th-card__price-old {
        font-size: var(--th-text-xs-plus);
        color: var(--th-neutral-400);
        text-decoration: line-through
    }
}

/* === legacy.css'ten taşındı — B10 mm-alt subtitle-img === */
@media (min-width: 900px) {
    .mm-alt,.subtitle-img {
        display: none
    }
}

/* === legacy.css'ten taşındı — B10 card-list-product family === */
.card-list-product .card-list-product-inner .info .title {
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: block;
    display: -webkit-box;
    font-size: var(--th-text-xs-plus);
    height: 55px;
    line-height: 18px;
    max-width: 100%;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    margin-top: var(--th-space-1);
    margin-left: -17px
}

.card-list-product .card-list-product-inner .th-card__prices .th-card__price-wrap .discount {
    color: var(--th-color-danger);
    font-size: var(--th-text-xs-plus);
    padding-right: var(--th-space-4);
    padding-top: -var(--th-space-2-5);
    margin-top: -var(--th-space-5)
}

.card-list-product .card-list-product-inner .th-card__prices .th-card__price-wrap .th-card__price-old {
    color: var(--th-color-text-muted);
    font-size: var(--th-text-xs-plus);
    text-decoration: line-through;
    padding-right: var(--th-space-4);
    padding-top: -var(--th-space-2-5)
}

.card-list-product .card-list-product-inner .th-card__prices .th-card__price-wrap .th-card__price-sale {
    color: var(--th-color-text-muted);
    font-size: var(--th-text-base);
    font-weight: var(--th-font-medium);
    padding-right: var(--th-space-4);
    padding-top: -var(--th-space-2-5);
    padding-bottom: var(--th-space-5)
}

.card-list-product .card-list-product-inner .th-card__image-wrap .image {
    display: block
}

.card-list-product .product-reviews .count {
    color: var(--th-color-text-muted);
    font-size: var(--th-text-2xs);
    padding-left: var(--th-space-1);
    padding-top: var(--th-space-1)
}

.card-list-product {
    overflow: hidden;
    border-radius: var(--th-radius-md);
    padding: 0;
    border: 1px solid var(--th-color-border);
    margin: -var(--th-space-1)
}

/* === legacy.css'ten taşındı — B10 custom-module-code-11205 === */
.row .custom-module-code-11205 {
    margin-top: 7px;
    margin-right: -var(--th-space-0-5);
    margin-left: -var(--th-space-0-5)
}

/* ── Platform Nötralizasyon — Z-3 ── */
/* Platform: .sale-price { color: #555; font-size: var(--th-text-md); font-weight: var(--th-font-medium) } */
.sale-price {
  color: var(--th-color-accent);
  font-size: var(--th-text-base);
  font-weight: var(--th-font-semibold);
}
/* Platform: .list-price { color: #555; font-size: var(--th-text-xs-plus); text-decoration: line-through } */
.list-price {
  color: var(--th-color-text-muted);
  font-size: var(--th-text-sm);
  text-decoration: line-through;
}

/* ── Platform Nötralizasyon: .price ── */
.price {
  font-size: var(--th-font-size-xl);
  font-weight: var(--th-font-bold);
  color: var(--th-color-primary);
}
.sale-variant-price .price,
.sale-list-price .price {
  color: var(--th-color-text-primary, var(--th-ink-800));
}
.sale-list-price .price {
  font-size: var(--th-font-size-sm);
  font-weight: var(--th-font-regular);
  text-decoration: line-through;
  color: var(--th-color-text-muted);
}

/* === footer.css'ten taşındı — custom-module btn-cart mobile hide === */
@media (max-width: 992px) {
    .custom-module-code-10564 .th-card .th-card__inner .buttons .btn-cart,.custom-module-code-8397 .th-card .th-card__inner .buttons .btn-cart,.modal-content .buttons .btn-cart,.product-profile-1 .carousel .carousel-indicators {
        display: none
    }
    .custom-module-code-10564 .th-card .th-card__inner .title,.custom-module-code-8397 .th-card .th-card__inner .title {
        width: 95%;
        padding: 0;
        margin-left: var(--th-space-1);
        line-height: 14px;
        height: 40px;
        font-weight: var(--th-font-regular);
        font-size: var(--th-text-2xs);
        color: var(--th-neutral-700);
        overflow: hidden;
        text-overflow: ellipsis;
        overflow-wrap: break-word;
        display: -webkit-box;
        max-width: 100%;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-align: center
    }
}

/* === footer.css'ten taşındı — video player === */
.video {
    position: relative;
    display: inline-block
}
.video video {
    width: 100%;
    height: auto;
    display: block
}

/* === footer.css'ten taşındı — video-play, category-image, misc === */
.video-play i {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center
}
.video-play {
    position: relative
}
.video-play i {
    top: 0;
    width: 30px;
    height: 30px;
    border: 3px solid var(--th-neutral-0);
    border-radius: 100%;
    line-height: 25px;
    margin: auto;
    text-indent: 1px;
    color: var(--th-color-text-inverse);
}
/* [FAZ 2.6] .cateogory-image silindi — yazım hatası + referanssız */
.custom-image-container {
    text-align: center
}
.custom-image-container img {
    width: 100%;
    height: auto
}
@media (max-width: 992px) {
    .category-filter-order-desktop,.dt-discount-img img,.product-view-select {
        display: none
    }
    .th-card .right-to-left {
        display: none
    }
    .stores .cards {
        display: block;
        text-align: center
    }
    .stores .card {
        display: inline-block;
        margin: 0;
        max-width: 45%;
        height: 50px;
        border: 0
    }
    .product-carousel-desktop.normal {
        display: none
    }
}
#payment-methods-content-0 .payment-method-form .alert,.product-carousel-mobile {
    display: none
}


/* ═══════════════════════════════════════════════════════════════════
   FAZ 5.4 — MOBİL UX İYİLEŞTİRME
   ═══════════════════════════════════════════════════════════════════ */

/* ── Smooth Scroll Behavior ── */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── Bottom Sheet Component ── */
.th-bottom-sheet__overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--th-ink-900) 45%, transparent);
  z-index: var(--th-z-modal);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.th-bottom-sheet__overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.th-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--th-z-modal) + 1);
  background: var(--th-color-bg);
  border-radius: var(--th-radius-2xl) var(--th-radius-2xl) 0 0;
  box-shadow: 0 -4px 24px color-mix(in srgb, var(--th-ink-900) 12%, transparent);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.th-bottom-sheet.is-open {
  transform: translateY(0);
}
.th-bottom-sheet__handle {
  display: flex;
  justify-content: center;
  padding: var(--th-space-3) 0 var(--th-space-1);
  cursor: grab;
  flex-shrink: 0;
}
.th-bottom-sheet__handle::after {
  content: '';
  width: 36px;
  height: 4px;
  background: var(--th-neutral-300);
  border-radius: var(--th-radius-full);
}
.th-bottom-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--th-space-2) var(--th-space-5) var(--th-space-3);
  border-bottom: var(--th-border-width-default) solid var(--th-color-border-light);
  flex-shrink: 0;
}
.th-bottom-sheet__title {
  font-size: var(--th-text-lg);
  font-weight: var(--th-font-bold);
  color: var(--th-color-text);
  margin: 0;
}
.th-bottom-sheet__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--th-color-text-muted);
  font-size: var(--th-text-lg);
}
.th-bottom-sheet__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--th-space-4) var(--th-space-5);
}
.th-bottom-sheet__footer {
  flex-shrink: 0;
  padding: var(--th-space-3) var(--th-space-5);
  border-top: var(--th-border-width-default) solid var(--th-color-border-light);
  display: flex;
  gap: var(--th-space-2);
}
.th-bottom-sheet__footer .th-btn {
  flex: 1;
}

/* ── Touch-friendly Quantity Selector ── */
.th-qty {
  display: inline-flex;
  align-items: center;
  border: var(--th-border-width-default) solid var(--th-color-border);
  border-radius: var(--th-radius-lg);
  overflow: hidden;
}
.th-qty__btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--th-color-bg);
  border: none;
  cursor: pointer;
  color: var(--th-color-text);
  font-size: var(--th-text-lg);
  transition: background var(--th-transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.th-qty__btn:hover {
  background: var(--th-color-bg-secondary);
}
.th-qty__btn:active {
  background: var(--th-color-bg-tertiary);
}
.th-qty__btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}
.th-qty__value {
  width: 48px;
  text-align: center;
  font-size: var(--th-text-md);
  font-weight: var(--th-font-semibold);
  color: var(--th-color-text);
  border: none;
  border-left: var(--th-border-width-default) solid var(--th-color-border);
  border-right: var(--th-border-width-default) solid var(--th-color-border);
  background: var(--th-color-bg);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.th-qty__value::-webkit-inner-spin-button,
.th-qty__value::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── Swipe-to-dismiss hint (drawer/sheet) ── */
.th-swipe-hint {
  position: absolute;
  top: var(--th-space-2);
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: var(--th-neutral-300);
  border-radius: var(--th-radius-full);
  opacity: 0.6;
}

/* ── Sticky Sepete Ekle Bar (PDP mobil) ── */
.th-sticky-addcart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--th-z-sticky);
  display: none;
  align-items: center;
  gap: var(--th-space-3);
  padding: var(--th-space-3) var(--th-space-4);
  padding-bottom: calc(var(--th-space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--th-ink-900);
  box-shadow: 0 -2px 12px color-mix(in srgb, var(--th-ink-900) 20%, transparent);
}
.th-sticky-addcart__price {
  flex: 1;
  min-width: 0;
}
.th-sticky-addcart__current {
  font-size: var(--th-text-lg);
  font-weight: var(--th-font-extrabold);
  color: var(--th-color-accent);
}
.th-sticky-addcart__old {
  font-size: var(--th-text-xs);
  color: var(--th-neutral-400);
  text-decoration: line-through;
}
.th-sticky-addcart__btn {
  flex-shrink: 0;
  padding: var(--th-space-3) var(--th-space-6);
  background: var(--th-color-accent);
  color: var(--th-neutral-0);
  border: none;
  border-radius: var(--th-radius-lg);
  font-size: var(--th-text-base);
  font-weight: var(--th-font-bold);
  cursor: pointer;
  transition: background var(--th-transition-fast);
  white-space: nowrap;
}
.th-sticky-addcart__btn:hover {
  background: var(--th-orange-700);
}

@media (max-width: 768px) {
  .th-sticky-addcart {
    display: flex;
  }
}

/* ── Pull-to-refresh visual hint ── */
.th-pull-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: var(--th-z-sticky);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--th-color-bg);
  border-radius: var(--th-radius-full);
  box-shadow: var(--th-shadow-md);
  transition: transform 0.3s ease;
}
.th-pull-indicator.is-pulling {
  transform: translateX(-50%) translateY(var(--th-space-4));
}
.th-pull-indicator__icon {
  width: var(--th-space-5);
  height: var(--th-space-5);
  border: 2px solid var(--th-color-primary);
  border-top-color: transparent;
  border-radius: var(--th-radius-circle);
  animation: th-spin 0.6s linear infinite;
}


