/* Anasayfa ek: eşiği bar + hızlı modal + en ucuzlar + gece teaser */

/* —— Sepet eşiği sticky —— */
.uo-esik-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1150;
  padding: 0 12px 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.uo-esik-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.uo-esik-bar.is-hidden-user {
  display: none !important;
}
.uo-esik-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 12px 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 22, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}
.uo-esik-bar__icon {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
}
.uo-esik-bar__main {
  flex: 1 1 auto;
  min-width: 0;
}
.uo-esik-bar__msg {
  margin: 0 0 6px;
  font-size: 13px;
  color: #c7d5e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uo-esik-bar__msg strong {
  color: #fff;
}
.uo-esik-bar__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.uo-esik-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #66c0f4, #34d399);
  transition: width 0.35s ease;
}
.uo-esik-bar__meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.uo-esik-bar__meta em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #66c0f4;
}
.uo-esik-bar__cta {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0b1520;
  text-decoration: none;
  background: linear-gradient(180deg, #8fd4ff, #66c0f4);
}
.uo-esik-bar__cta:hover {
  filter: brightness(1.06);
  color: #0b1520;
}
.uo-esik-bar__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  font-size: 18px;
  cursor: pointer;
}
.uo-esik-bar__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* —— Hızlı sepet modal —— */
.uo-quick {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.uo-quick[hidden] {
  display: none !important;
}
.uo-quick__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.uo-quick__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%),
    rgba(12, 17, 26, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: uoQuickIn 0.28s ease;
}
@keyframes uoQuickIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.uo-quick__x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.uo-quick__grid {
  display: flex;
  gap: 16px;
  align-items: stretch;
}
.uo-quick__media {
  flex: 0 0 140px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.uo-quick__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}
.uo-quick__body {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 28px;
}
.uo-quick__title {
  margin: 0 0 10px;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.uo-quick__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
}
.uo-quick__price del {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}
.uo-quick__price ins {
  text-decoration: none;
  color: #66c0f4;
  font-size: 26px;
  font-weight: 800;
}
.uo-quick__qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.uo-quick__qty button {
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.uo-quick__qty button:hover {
  background: rgba(102, 192, 244, 0.18);
}
.uo-quick__qty input {
  width: 52px;
  height: 40px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #fff;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}
.uo-quick__qty input::-webkit-outer-spin-button,
.uo-quick__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.uo-quick__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.uo-quick__buy {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0b1520;
  background: linear-gradient(180deg, #8fd4ff, #66c0f4);
  cursor: pointer;
}
.uo-quick__buy:hover {
  filter: brightness(1.06);
}
.uo-quick__detail {
  font-size: 13px;
  color: rgba(199, 213, 224, 0.9);
  text-decoration: none;
}
.uo-quick__detail:hover {
  color: #66c0f4;
}

/* Mobil: alt sheet + yatay kompakt satır */
@media (max-width: 767.98px) {
  .uo-quick {
    align-items: flex-end;
    justify-content: stretch;
    padding: 0;
  }
  .uo-quick__panel {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    animation: uoQuickSheet 0.28s ease;
  }
  @keyframes uoQuickSheet {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
  .uo-quick__x {
    top: 8px;
    right: 10px;
    width: 40px;
    height: 40px;
    z-index: 2;
  }
  .uo-quick__grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .uo-quick__media {
    flex: 0 0 96px;
    width: 96px;
    max-width: 96px;
    margin: 0;
    align-self: stretch;
  }
  .uo-quick__media img {
    min-height: 128px;
    height: 100%;
    aspect-ratio: auto;
  }
  .uo-quick__body {
    flex: 1 1 auto;
    padding-right: 36px;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .uo-quick__title {
    font-size: 17px;
    margin: 0 0 6px;
    padding-right: 4px;
  }
  .uo-quick__price {
    margin-bottom: 10px;
  }
  .uo-quick__price ins {
    font-size: 22px;
  }
  .uo-quick__qty {
    width: 100%;
    margin-bottom: 10px;
  }
  .uo-quick__qty button {
    width: 44px;
    height: 44px;
  }
  .uo-quick__qty input {
    flex: 1 1 auto;
    width: auto;
    height: 44px;
  }
  .uo-quick__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: auto;
  }
  .uo-quick__buy {
    width: 100%;
    min-height: 48px;
    flex: none;
  }
  .uo-quick__detail {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c7d5e0;
    font-size: 14px;
    font-weight: 650;
  }
}

/* —— En ucuz 6 —— */
.uo-cheap-section {
  padding-top: 12px !important;
  padding-bottom: 8px !important;
}
.uo-cheap-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.uo-cheap-head__title {
  margin: 0;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.uo-cheap-head__title b {
  color: #fff;
}
.uo-cheap-head__title span {
  color: #66c0f4;
}
.uo-cheap-head__all {
  font-size: 13px;
  font-weight: 700;
  color: #66c0f4;
  text-decoration: none;
}
.uo-cheap-head__all:hover {
  color: #fff;
}
.uo-cheap-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.uo-cheap-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 17, 24, 0.58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.uo-cheap-card:hover {
  border-color: rgba(102, 192, 244, 0.4);
  transform: translateY(-3px);
}
.uo-cheap-card__media {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0e15;
}
.uo-cheap-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.uo-cheap-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  min-height: 2.6em;
}
.uo-cheap-card__title a {
  color: #fff;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.uo-cheap-card__title a:hover {
  color: #66c0f4;
}
.uo-cheap-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
}
.uo-cheap-card__price del {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.uo-cheap-card__price ins {
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  color: #66c0f4;
}
.uo-cheap-card__buy {
  margin-top: auto;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b1520;
  background: linear-gradient(180deg, #8fd4ff, #66c0f4);
  cursor: pointer;
}
.uo-cheap-card__buy:hover {
  filter: brightness(1.06);
}

/* —— Gece Pazarı teaser —— */
.uo-gp-teaser-section {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
.uo-gp-teaser {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background:
    radial-gradient(80% 120% at 0% 50%, rgba(0, 240, 255, 0.12), transparent 55%),
    radial-gradient(70% 100% at 100% 0%, rgba(209, 76, 146, 0.14), transparent 50%),
    rgba(8, 12, 22, 0.72);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.uo-gp-teaser:hover {
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  color: inherit;
}
.uo-gp-teaser__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 40%, rgba(0, 240, 255, 0.08), transparent 40%);
  pointer-events: none;
  animation: uoGpGlow 6s ease-in-out infinite alternate;
}
@keyframes uoGpGlow {
  from { opacity: 0.55; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}
.uo-gp-teaser__left {
  position: relative;
  z-index: 1;
  flex: 1 1 240px;
  min-width: 0;
}
.uo-gp-teaser__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #041018;
  background: linear-gradient(90deg, #00f0ff, #66c0f4);
}
.uo-gp-teaser__title {
  margin: 0 0 6px;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}
.uo-gp-teaser__sub {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(199, 213, 224, 0.88);
  max-width: 42ch;
}
.uo-gp-teaser__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  color: #c7d5e0;
}
.uo-gp-teaser__cd b {
  color: #00f0ff;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 15px;
}
.uo-gp-teaser__cards {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.uo-gp-teaser__card {
  width: 110px;
  height: 150px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  pointer-events: none;
  position: relative;
}
.uo-gp-teaser__card .gp-closed {
  transform: scale(0.42);
  transform-origin: top left;
  width: 260px;
  pointer-events: none;
}
.uo-gp-teaser__card:nth-child(2) {
  transform: translateY(-8px);
}
.uo-gp-teaser__cta {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #041018;
  background: linear-gradient(180deg, #7af7ff, #00d4e8);
  box-shadow: 0 10px 24px rgba(0, 240, 255, 0.28);
}
.uo-gp-teaser:hover .uo-gp-teaser__cta {
  filter: brightness(1.06);
}

@media (max-width: 1199.98px) {
  .uo-cheap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .uo-esik-bar__meta {
    display: none;
  }
  .uo-esik-bar__cta {
    padding: 8px 10px;
    font-size: 12px;
  }
  .uo-cheap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .uo-gp-teaser__cards {
    display: none;
  }
  .uo-gp-teaser__title {
    font-size: 22px;
  }
  .uo-gp-teaser {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uo-esik-bar,
  .uo-quick__panel,
  .uo-gp-teaser__glow {
    animation: none;
    transition: none;
  }
}

/* Live toast ile eşiği bar çakışmasın */
body:has(.uo-esik-bar.is-visible) .uo-live-toast {
  bottom: 88px;
}
