/**
 * ASA Teknoloji - Premium Ürün Kartı Tasarım Sistemi
 * Web & Mobil Uyumlu, Dark Mode Destekli, Segmentli Galeri
 */

:root {
  --asa-card-bg: #ffffff;
  --asa-card-text: #090a0f;
  --asa-card-muted: #64748b;
  --asa-card-soft: #64748b;
  --asa-card-accent: #001845;
  --asa-card-accent-hover: #0466c8;
  --asa-card-star: #f59e0b;
  --asa-card-border: #edf0f5;
  --asa-card-border-hover: #cbd5e1;
  --asa-card-radius: 18px;
  --asa-card-btn-radius: 12px;
  --asa-card-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04);
  --asa-card-shadow-hover: 0 20px 36px -6px rgba(15, 23, 42, 0.12);
  --asa-card-transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark {
  --asa-card-bg: #0f172a;
  --asa-card-text: #f8fafc;
  --asa-card-muted: #94a3b8;
  --asa-card-soft: #64748b;
  --asa-card-accent: #0284c7;
  --asa-card-accent-hover: #38bdf8;
  --asa-card-border: rgba(255, 255, 255, 0.08);
  --asa-card-border-hover: rgba(255, 255, 255, 0.18);
  --asa-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --asa-card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* Ana Kart Taşıyıcısı */
.asa-store-product-shell {
  height: 100% !important;
  min-height: 0 !important;
}

.card.asa-store-product-card,
.asa-store-product-card {
  background: var(--asa-card-bg) !important;
  border-radius: var(--asa-card-radius) !important;
  border: 1px solid var(--asa-card-border) !important;
  box-shadow: var(--asa-card-shadow) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: var(--asa-card-transition) !important;
  position: relative !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  font-family: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

.card.asa-store-product-card:hover,
.asa-store-product-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--asa-card-shadow-hover) !important;
  border-color: var(--asa-card-border-hover) !important;
  z-index: 35 !important;
}

/* 2:3 Görsel Alanı */
.media.asa-store-product-card__media,
.asa-store-product-card__media {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  background-color: #f8fafc !important;
  overflow: hidden !important;
  cursor: pointer !important;
  border-radius: calc(var(--asa-card-radius) - 1px) calc(var(--asa-card-radius) - 1px) 0 0 !important;
  border-bottom: 1px solid var(--asa-card-border) !important;
  flex: 0 0 auto !important;
  display: block !important;
  padding: 0 !important;
}

.dark .media.asa-store-product-card__media,
.dark .asa-store-product-card__media {
  background-color: #0b1120 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Ürün Görselleri & Smooth Fade Switch */
.media-img,
.asa-store-product-card__image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 6px !important;
  opacity: 0 !important;
  transform: scale(0.98) !important;
  transition: opacity 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  pointer-events: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
  will-change: opacity, transform !important;
}

.media-img.active,
.asa-store-product-card__image.active,
.asa-store-product-card__media > img:only-of-type {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.card:hover .media-img.active,
.asa-store-product-card:hover .asa-store-product-card__image.active {
  transform: scale(1.025) !important;
}

/* Alt Segment İndikatör Kapsülü - Her Renk/Görsel Üzerinde Net Okunur */
.slider-track {
  position: absolute !important;
  bottom: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4.5px !important;
  padding: 3.5px 7px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.52) !important;
  backdrop-filter: blur(10px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
  z-index: 6 !important;
  pointer-events: none !important;
  width: auto !important;
  max-width: 80% !important;
}

.slider-bar {
  width: 10px !important;
  height: 3px !important;
  background: rgba(255, 255, 255, 0.45) !important;
  border-radius: 999px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.dark .slider-bar {
  background: rgba(255, 255, 255, 0.35) !important;
}

.slider-bar.active {
  width: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9) !important;
}

.dark .slider-track {
  background: rgba(0, 0, 0, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Ultra-Luxury Minimalist Ürün Rozetleri */
.badge-wrap {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  bottom: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  z-index: 8 !important;
  pointer-events: none !important;
}

.pill-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.pill-badge .dot {
  display: none !important;
}

/* İndirim Rozeti: Lüks Obsidian & İnce Kenarlık */
.pill-badge.discount {
  background: #090a0f !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28) !important;
}

/* Çok Satan Rozeti: Derin Mat Lüks Lacivert */
.pill-badge.popular {
  background: #001845 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 4px 12px rgba(0, 24, 69, 0.26) !important;
}

/* Yeni Rozeti: Minimalist Fildişi & Kusursuz Tipografi */
.pill-badge.curated {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #001845 !important;
  border: 1px solid rgba(0, 24, 69, 0.12) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
}

.dark .pill-badge.discount {
  background: #9f1239 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

.dark .pill-badge.popular {
  background: #032b69 !important;
  color: #f8fafc !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

.dark .pill-badge.curated {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

/* Favori Butonu */
.btn-wish,
.asa-store-product-card__favorite {
  position: absolute !important;
  top: 12px !important;
  right: 10px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 6 !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  padding: 0 !important;
}

.dark .btn-wish,
.dark .asa-store-product-card__favorite {
  background: rgba(15, 23, 42, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.btn-wish:hover,
.asa-store-product-card__favorite:hover {
  transform: scale(1.12) !important;
  background: #ffffff !important;
}

.dark .btn-wish:hover,
.dark .asa-store-product-card__favorite:hover {
  background: #1e293b !important;
}

.btn-wish svg,
.asa-store-product-card__favorite svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #334155 !important;
  stroke-width: 2 !important;
  fill: transparent !important;
  transition: stroke 0.2s ease, fill 0.2s ease !important;
  pointer-events: none !important;
}

.dark .btn-wish svg,
.dark .asa-store-product-card__favorite svg {
  stroke: #94a3b8 !important;
}

.btn-wish.active svg,
.btn-wish.is-favorite svg,
.asa-store-product-card__favorite.is-favorite svg {
  stroke: #e11d48 !important;
  fill: #e11d48 !important;
}

/* Kart İçerik Gövdesi */
.content.asa-store-product-card__info,
.asa-store-product-card__info {
  padding: 14px 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Üst Meta: Solda Kategori & Sağda Puan (Aynı Satır) */
.top-meta {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 18px !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

.category-plain {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.dark .category-plain {
  color: #94a3b8 !important;
}

.rating {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 3.5px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: var(--asa-card-text) !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
  white-space: nowrap !important;
}

.rating svg {
  width: 12.5px !important;
  height: 12.5px !important;
  fill: var(--asa-card-star) !important;
  flex-shrink: 0 !important;
}

.rating-count {
  font-weight: 500 !important;
  color: var(--asa-card-soft) !important;
  font-size: 10.5px !important;
  margin-left: 1px !important;
}

/* Real reviews only: products without ratings show a muted note instead. */
.rating-empty {
  font-weight: 600 !important;
  color: var(--asa-card-soft) !important;
  font-size: 10.5px !important;
  white-space: nowrap !important;
}

/* Başlık */
.title.asa-store-product-card__title,
.asa-store-product-card__title {
  font-size: 13.5px !important;
  font-weight: 650 !important;
  color: var(--asa-card-text) !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  transition: color 0.2s ease !important;
  text-align: left !important;
}

.title.asa-store-product-card__title:hover,
.asa-store-product-card__title:hover {
  color: #0284c7 !important;
}

/* Fiyat & İncele Aksiyon Satırı (İnce Çizgili & Şık) */
.action-zone.asa-store-product-card__bottom,
.asa-store-product-card__bottom {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 10px !important;
  border-top: 1px solid #edf2f7 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.dark .action-zone.asa-store-product-card__bottom,
.dark .asa-store-product-card__bottom {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.price-wrap.asa-store-product-card__price,
.asa-store-product-card__price {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  text-align: left !important;
}

.old-price {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: var(--asa-card-soft) !important;
  text-decoration: line-through !important;
  line-height: 1 !important;
  margin-bottom: 2px !important;
  min-height: 10px !important;
  display: block !important;
}

.price {
  font-size: 18.5px !important;
  font-weight: 800 !important;
  color: var(--asa-card-text) !important;
  letter-spacing: -0.4px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: baseline !important;
}

.price small {
  font-size: 11px !important;
  font-weight: 700 !important;
  margin-left: 1.5px !important;
  letter-spacing: 0 !important;
}

/* İncele Linki: Sade Yazı & İnce Ok (Görseldeki Gibi) */
.btn-view.asa-store-product-card__view,
.asa-store-product-card__view {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 3px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 3px 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: #64748b !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: color 0.18s ease, transform 0.18s ease !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.btn-view.asa-store-product-card__view:hover,
.asa-store-product-card__view:hover {
  background: transparent !important;
  color: #0284c7 !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-view svg,
.asa-store-product-card__view svg {
  width: 14px !important;
  height: 14px !important;
  fill: currentColor !important;
  stroke: none !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-view:hover svg,
.asa-store-product-card__view:hover svg {
  transform: translateX(2.5px) !important;
}

.dark .btn-view.asa-store-product-card__view,
.dark .asa-store-product-card__view {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}

.dark .btn-view.asa-store-product-card__view:hover,
.dark .asa-store-product-card__view:hover {
  color: #38bdf8 !important;
  background: transparent !important;
}

/* Mobil Ekran: Web ile Birebir Aynı Tasarım & Uyumlu Boyutlar */
@media (max-width: 700px) {
  .media.asa-store-product-card__media,
  .asa-store-product-card__media {
    aspect-ratio: 2 / 3 !important;
  }

  .media-img,
  .asa-store-product-card__image {
    padding: 6px !important;
  }

  .badge-wrap {
    top: 8px !important;
    left: 8px !important;
    gap: 3px !important;
  }

  .pill-badge {
    font-size: 8.5px !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
    letter-spacing: 0.5px !important;
  }

  .btn-wish,
  .asa-store-product-card__favorite {
    top: 8px !important;
    right: 8px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
  }

  .btn-wish svg,
  .asa-store-product-card__favorite svg {
    width: 13px !important;
    height: 13px !important;
  }

  .content.asa-store-product-card__info,
  .asa-store-product-card__info {
    padding: 9px 10px 11px !important;
    gap: 4px !important;
  }

  .top-meta {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 14px !important;
    gap: 4px !important;
  }

  .category-plain {
    font-size: 9px !important;
    letter-spacing: 0.4px !important;
    text-align: left !important;
  }

  .rating {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 2px !important;
    font-size: 10px !important;
    margin-left: auto !important;
  }

  .rating svg {
    width: 10px !important;
    height: 10px !important;
  }

  .rating-count {
    font-size: 8.5px !important;
  }

  .title.asa-store-product-card__title,
  .asa-store-product-card__title {
    font-size: 12px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 1.32 !important;
    font-weight: 600 !important;
  }

  .action-zone.asa-store-product-card__bottom,
  .asa-store-product-card__bottom {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding-top: 6px !important;
    margin-top: auto !important;
  }

  .price-wrap.asa-store-product-card__price,
  .asa-store-product-card__price {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .old-price {
    font-size: 9px !important;
    margin-bottom: 0 !important;
  }

  .price {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  .price small {
    font-size: 9px !important;
  }

  .btn-view.asa-store-product-card__view,
  .asa-store-product-card__view {
    height: auto !important;
    min-height: 0 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    padding: 2px 0 !important;
    background: transparent !important;
    border: none !important;
    gap: 2.5px !important;
  }

  .btn-view svg,
  .asa-store-product-card__view svg {
    width: 12px !important;
    height: 12px !important;
  }
}

/* Phase 2.3: explicit rating score next to the stars. Empty (0-review)
 * cards show muted stars + 0,0 so every card keeps an identical row. */
.asa-store-product-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.asa-store-product-card__score {
  font-size: 11px;
  font-weight: 800;
  color: #0b1b33;
  letter-spacing: -0.01em;
}
.asa-store-product-card__rating.is-empty .asa-store-product-card__score {
  color: #94a3b8;
}
.asa-store-product-card__rating.is-empty > span:not(.asa-store-product-card__review-media) {
  color: #cbd5e1;
}
.dark .asa-store-product-card__score {
  color: #f1f5f9;
}
.dark .asa-store-product-card__rating.is-empty .asa-store-product-card__score {
  color: #64748b;
}
/* Phase 2.6: regular vs. sale price lockup. Single flex row, no inline
 * breaks between the strikethrough and the current price; tabular figures
 * keep the strikethrough optically aligned at every size. */
.asa-store-product-card__price,
.asa-store-product-card .price,
.asa-product-price-v2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  font-variant-numeric: tabular-nums;
}
.asa-store-product-card__price del,
.asa-store-product-card .price del,
.asa-product-price-v2 del {
  white-space: nowrap;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.asa-store-product-card__price strong,
.asa-store-product-card__price ins,
.asa-store-product-card .price strong,
.asa-store-product-card .price ins,
.asa-product-price-v2 strong,
.asa-product-price-v2 ins {
  white-space: nowrap;
  text-decoration: none;
}
