/* Discount timer + exit-intent popup */
.disc-bar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, #b00020 0%, #d33a3a 100%);
  color: #fff; padding: 10px 16px;
  text-align: center; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 2px 12px rgba(176,0,32,.25);
  display: none;
}
.disc-bar.show { display: block; }
.disc-bar strong { font-weight: 700; }
.disc-bar .disc-timer {
  display: inline-block;
  background: rgba(255,255,255,.18); padding: 3px 9px; border-radius: 5px;
  font-variant-numeric: tabular-nums; margin-left: 5px;
  min-width: 70px; text-align: center;
}
.disc-bar.warn {
  background: linear-gradient(135deg, #c46900 0%, #d97706 100%);
  animation: discPulse 2s infinite;
}
@keyframes discPulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(196,105,0,.4); }
  50%      { box-shadow: 0 2px 22px rgba(196,105,0,.8); }
}

/* Exit-intent popup */
.disc-modal-bg {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(11,28,44,.65);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  animation: discFade .2s ease;
}
.disc-modal-bg.show { display: flex; }
@keyframes discFade { from { opacity: 0; } to { opacity: 1; } }
.disc-modal {
  background: #fff; border-radius: 16px;
  max-width: 460px; width: 100%; padding: 30px 30px 26px;
  position: relative; box-shadow: 0 24px 70px rgba(0,0,0,.3);
  animation: discRise .25s ease;
}
@keyframes discRise { from { transform: translateY(15px); opacity: 0; } to { transform: none; opacity: 1; } }
.disc-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: #f0eee5; border: none; width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; font-size: 16px; color: #45556c;
}
.disc-modal-close:hover { background: #e3e2dc; }
.disc-modal h2 {
  margin: 0 0 8px; font-size: 22px; color: #b00020; line-height: 1.25;
}
.disc-modal p {
  margin: 6px 0 0; font-size: 14px; color: #45556c; line-height: 1.5;
}
.disc-modal-price {
  background: #f7f6f1; border-radius: 10px; padding: 14px;
  margin: 18px 0; text-align: center;
}
.disc-modal-price .old {
  text-decoration: line-through; color: #8593a4; font-size: 14px; margin-right: 8px;
}
.disc-modal-price .new {
  font-size: 26px; font-weight: 700; color: #1c6a5b;
}
.disc-modal-price .pct {
  display: inline-block; background: #b00020; color: #fff;
  padding: 3px 8px; border-radius: 4px; font-size: 12px; margin-left: 6px;
  vertical-align: middle;
}
.disc-modal form { margin-top: 16px; }
.disc-modal input[type="email"] {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  border: 2px solid #d8e0e8; border-radius: 8px;
  font-size: 15px; font-family: inherit;
}
.disc-modal input[type="email"]:focus {
  outline: none; border-color: #1c6a5b;
}
.disc-modal button.primary {
  width: 100%; padding: 13px; background: #1c6a5b; color: #fff;
  border: none; border-radius: 8px; font-weight: 600; cursor: pointer;
  font-size: 15px; margin-top: 10px; font-family: inherit;
}
.disc-modal button.primary:hover { background: #0f4d41; }
.disc-modal button.primary:disabled { background: #8593a4; cursor: wait; }
.disc-modal-note {
  font-size: 11px; color: #8593a4; margin-top: 10px; text-align: center;
}
.disc-modal-ok {
  text-align: center; padding: 14px 0;
}
.disc-modal-ok .icon { font-size: 44px; }
.disc-modal-ok h3 { color: #1c6a5b; margin: 8px 0 4px; font-size: 18px; }
.disc-modal-ok p { color: #45556c; font-size: 14px; line-height: 1.5; }

@media (max-width: 480px) {
  .disc-bar { font-size: 12.5px; padding: 8px 12px; }
  .disc-bar .disc-timer { min-width: 60px; padding: 2px 7px; }
  .disc-modal { padding: 24px 22px 22px; border-radius: 14px; }
  .disc-modal h2 { font-size: 19px; }
}
