/* Homepage Modül A — Sıcak Fırsatlar strip (final revision)
   Full-bleed gray band like .headline; cards stay in .container (1200px). */
.hp-hot-deals {
  --tam-blue: #007ee7;
  --tam-blue-dark: #0466bd;
  --ink: #191c1e;
  --muted: #5a6470;
  --plat: #7c8794;
  --card: #fff;
  --line: #e6ebf0;
  --vitrin: #ececec;
  --save-bg: #c8f08a;
  --save-ink: #2e4f00;
  --free-bg: #1f9d55;
  --soon-bg: #fff1e0;
  --soon-ink: #b25e14;
  --urgent-bg: #fde5e2;
  --urgent-ink: #c2331f;
  /* Room inside each flex cell so card shadows are never clipped */
  --hp-card-pad-x: 14px;
  --hp-card-pad-top: 12px;
  --hp-card-pad-bottom: 22px;
  width: 100%;
  background: var(--vitrin);
  margin: 0 0 14px;
  padding: 14px 0 8px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Seamlessly continue manşet gray band */
body:has(.hp-hot-deals) .headline {
  margin-bottom: 0;
  padding-bottom: 14px;
}

.hp-hot-deals .container {
  min-width: 0;
}

.hp-hot-deals__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 40px 13px;
  gap: 10px;
}

.hp-hot-deals__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
}

.hp-hot-deals__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hp-hot-deals__nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d7dde3;
  background: #fff;
  color: var(--tam-blue);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(20, 40, 60, .1);
  padding: 0;
  transition: background .15s, color .15s, border-color .15s;
}

.hp-hot-deals__nav:hover {
  background: var(--tam-blue);
  color: #fff;
  border-color: var(--tam-blue);
}

.hp-hot-deals__all {
  font-size: 13px;
  font-weight: 800;
  color: var(--tam-blue);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.hp-hot-deals__all:hover {
  color: var(--tam-blue-dark);
  text-decoration: none;
}

.hp-hot-deals__all-ico {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.hp-hot-deals__scroller {
  display: flex;
  gap: 0;
  overflow-x: auto;
  /* Margin insets clip edge so the next page of cards never peeks */
  padding: 4px 0 2px;
  margin: 0 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

.hp-hot-deals__scroller::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/*
 * Each flex cell is exactly 1/3 of the scroller. Visual card + shadow sit
 * fully inside the cell (see --hp-card-pad-*) so overflow never clips them.
 */
.hp-fcard {
  scroll-snap-align: start;
  flex: 0 0 calc(100% / 3);
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--hp-card-pad-top) var(--hp-card-pad-x) var(--hp-card-pad-bottom);
  box-sizing: border-box;
  transition: transform .15s;
  text-decoration: none;
  color: inherit;
}

.hp-fcard::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: var(--hp-card-pad-top);
  right: var(--hp-card-pad-x);
  bottom: var(--hp-card-pad-bottom);
  left: var(--hp-card-pad-x);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  /* Negative spread keeps blur inside the cell padding */
  box-shadow: 0 4px 14px -4px rgba(20, 40, 60, .18);
  pointer-events: none;
  transition: box-shadow .15s;
}

.hp-fcard:hover,
.hp-fcard:focus {
  transform: translateY(-3px);
  box-shadow: none;
  text-decoration: none;
  color: inherit;
}

.hp-fcard:hover::before,
.hp-fcard:focus::before {
  box-shadow: 0 10px 20px -6px rgba(20, 40, 60, .22);
}

.hp-fcard:focus-visible {
  outline: none;
}

.hp-fcard:focus-visible::before {
  outline: 2px solid var(--tam-blue);
  outline-offset: 2px;
}

.hp-fcard__badge {
  position: absolute;
  top: calc(var(--hp-card-pad-top) + 11px);
  right: calc(var(--hp-card-pad-x) + 11px);
  z-index: 3;
  background: var(--save-bg);
  color: var(--save-ink);
  font-size: 15px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 9px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(46, 79, 0, .2);
}

.hp-fcard__badge--free {
  background: var(--free-bg);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(31, 157, 85, .25);
}

.hp-fcard__top {
  padding: 16px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.hp-fcard__ico {
  width: 62px;
  height: 62px;
  border-radius: 13px;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.hp-fcard__ico img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.hp-fcard__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--ink);
}

.hp-fcard__plat {
  color: var(--plat);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 18px;
}

.hp-fcard__plat .sep {
  color: #c4ccd3;
  margin: 0 5px;
}

.hp-fcard__time {
  margin-top: auto;
  padding-top: 2px;
}

.hp-fcard__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  background: var(--soon-bg);
  color: var(--soon-ink);
  border-radius: 7px;
  padding: 5px 9px;
}

.hp-fcard__pill--urgent {
  background: var(--urgent-bg);
  color: var(--urgent-ink);
}

.hp-fcard__foot {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 11px 14px;
  position: relative;
  z-index: 1;
}

.hp-fcard__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex: 0 1 auto;
  min-width: 0;
}

.hp-fcard__now {
  font-size: 25px;
  font-weight: 800;
  color: var(--tam-blue);
  letter-spacing: -.01em;
}

.hp-fcard__old {
  font-size: 13.5px;
  font-weight: 500;
  color: #9aa5b1;
  text-decoration: line-through;
}

.hp-fcard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--tam-blue);
  border: 1.5px solid var(--tam-blue);
  border-radius: 9px;
  padding: 9px 13px;
  white-space: nowrap;
  flex: 0 0 auto;
  background: transparent;
  pointer-events: none;
}

.hp-fcard:hover .hp-fcard__cta {
  background: var(--tam-blue);
  color: #fff;
}

.hp-hot-deals__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 6px 0 2px;
}

.hp-hot-deals__dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4ccd3;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width .15s, border-radius .15s, background .15s;
}

.hp-hot-deals__dots button.on {
  background: var(--tam-blue);
  width: 20px;
  border-radius: 4px;
}

/* Desktop: yatay şerit · Mobil: dikey TDW (makale içi ile aynı bileşen) */
.hp-hot-deals__mobile {
  display: none;
}

@media (max-width: 991px) {
  .hp-hot-deals__desktop {
    display: none !important;
  }

  .hp-hot-deals__mobile {
    display: block;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .hp-hot-deals__mobile .tdw {
    display: block;
    margin: 0;
  }
}

@media (min-width: 992px) {
  .hp-hot-deals__mobile {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .hp-fcard {
    flex-basis: calc(100% / 2);
  }
}

@media (max-width: 600px) {
  .hp-hot-deals__desktop.container {
    padding-left: 0;
    padding-right: 0;
  }

  .hp-hot-deals__head {
    margin: 0 16px 13px;
  }

  .hp-hot-deals__scroller {
    padding: 4px 16px 8px;
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
  }

  .hp-hot-deals__nav,
  .hp-hot-deals__dots {
    display: none;
  }

  .hp-hot-deals__title {
    font-size: 16px;
  }

  .hp-fcard {
    flex-basis: 285px;
  }
}
