/* Deal of the Day popup — Phones Dukan */
.pd-deal-popup {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px))
           max(16px, env(safe-area-inset-right, 0px))
           max(16px, env(safe-area-inset-bottom, 0px))
           max(16px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.pd-deal-popup[hidden] {
  display: none !important;
}

.pd-deal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pd-deal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 640px);
  overflow: hidden;
  background: #ffffff;
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  box-sizing: border-box;
}

.pd-deal-popup.is-open .pd-deal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pd-deal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.88);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}

.pd-deal-close:hover {
  background: #000;
  transform: scale(1.05);
}

.pd-deal-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 420px;
}

.pd-deal-copy {
  padding: 36px 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(247, 209, 23, 0.16), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  box-sizing: border-box;
  min-width: 0;
}

.pd-deal-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #111111;
  color: #f7d117;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-deal-title {
  margin: 0;
  color: #111111;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pd-deal-prices {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.pd-deal-price-sale {
  color: #111111;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.pd-deal-price-old {
  color: #9ca3af;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: line-through;
}

.pd-deal-urgency {
  margin: 2px 0 0;
  color: #6b7280;
  font-size: 0.86rem;
  font-weight: 600;
}

.pd-deal-timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 340px;
  width: 100%;
}

.pd-deal-timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 8px 4px;
  border: 1.5px solid #f7d117;
  border-radius: 12px;
  background: #fffef5;
  box-sizing: border-box;
}

.pd-deal-timer-unit span {
  color: #111111;
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pd-deal-timer-unit small {
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pd-deal-perks {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.pd-deal-perks li {
  position: relative;
  padding-left: 18px;
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
}

.pd-deal-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f7d117;
  box-shadow: 0 0 0 3px rgba(247, 209, 23, 0.22);
}

.pd-deal-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  background: #111111;
  color: #f7d117 !important;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.22);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
  align-self: flex-start;
  box-sizing: border-box;
}

.pd-deal-cta:hover {
  background: #f7d117;
  color: #111111 !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.pd-deal-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 320px;
  padding: 32px 28px;
  box-sizing: border-box;
  background:
    linear-gradient(160deg, #1c1c1c 0%, #0d0d0d 42%, #16120a 100%);
  isolation: isolate;
}

.pd-deal-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(247, 209, 23, 0.18) 0%, transparent 62%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08) 0%, transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(247, 209, 23, 0.1) 0%, transparent 34%),
    repeating-linear-gradient(
      -28deg,
      transparent 0,
      transparent 14px,
      rgba(255, 255, 255, 0.015) 14px,
      rgba(255, 255, 255, 0.015) 15px
    );
  pointer-events: none;
  z-index: 0;
}

.pd-deal-media::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px solid rgba(247, 209, 23, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 40px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 0;
}

.pd-deal-media-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.pd-deal-media-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(247, 209, 23, 0.18) 0%, rgba(247, 209, 23, 0.06) 42%, transparent 70%);
  box-shadow:
    0 0 0 1px rgba(247, 209, 23, 0.28),
    0 0 0 10px rgba(247, 209, 23, 0.05),
    0 0 40px rgba(247, 209, 23, 0.14);
  pointer-events: none;
  animation: pd-deal-ring-pulse 5.2s ease-in-out infinite;
}

.pd-deal-media-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 48%,
    transparent 60%
  );
  transform: translateX(-40%) rotate(8deg);
  pointer-events: none;
  animation: pd-deal-shine 6.5s ease-in-out infinite;
  z-index: 2;
}

.pd-deal-media img {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  width: 62%;
  height: 62%;
  max-width: 62%;
  max-height: 62%;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.55));
  animation: pd-deal-float 4.8s ease-in-out infinite;
}

.pd-deal-media-base {
  display: none;
}

@keyframes pd-deal-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pd-deal-ring-pulse {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes pd-deal-shine {
  0%, 55% { transform: translateX(-55%) rotate(8deg); opacity: 0; }
  65% { opacity: 0.9; }
  80%, 100% { transform: translateX(55%) rotate(8deg); opacity: 0; }
}

@media (max-width: 820px) {
  .pd-deal-popup {
    align-items: flex-end;
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .pd-deal-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pd-deal-dialog {
    width: 100%;
    max-height: min(90dvh, 92vh);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 20px;
    -webkit-overflow-scrolling: touch;
  }

  .pd-deal-copy {
    padding: 22px 20px 24px !important;
    gap: 12px;
    order: 2;
  }

  .pd-deal-title {
    font-size: 1.35rem;
  }

  .pd-deal-price-sale {
    font-size: 1.55rem;
  }

  .pd-deal-timer {
    max-width: none;
    width: 100%;
    gap: 6px;
  }

  .pd-deal-timer-unit {
    min-height: 58px;
    padding: 8px 2px;
  }

  .pd-deal-timer-unit span {
    font-size: 1.05rem;
  }

  .pd-deal-timer-unit small {
    font-size: 0.62rem;
  }

  .pd-deal-media {
    order: 1;
    min-height: 0;
    padding: 28px 20px;
  }

  .pd-deal-media::after {
    inset: 12px;
    border-radius: 14px;
  }

  .pd-deal-media-stage {
    width: min(58vw, 210px);
  }

  .pd-deal-media img {
    width: 60%;
    height: 60%;
    max-width: 60%;
    max-height: 60%;
    animation: none;
  }

  .pd-deal-media-ring,
  .pd-deal-media-shine {
    animation: none;
  }

  .pd-deal-cta {
    width: 100%;
    align-self: stretch;
  }

  .pd-deal-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 380px) {
  .pd-deal-copy {
    padding: 18px 16px 20px !important;
  }

  .pd-deal-timer-unit span {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-deal-dialog,
  .pd-deal-media img,
  .pd-deal-media-ring,
  .pd-deal-media-shine,
  .pd-deal-cta {
    transition: none !important;
    animation: none !important;
  }
}
