/* ═══════════════════════════════════════════════════════════
   INFARCTED — Christmas / Winter Promo Theme 2025
═══════════════════════════════════════════════════════════ */

:root {
  --xmas-red: #c41e3a;
  --xmas-red-bright: #e63950;
  --xmas-green: #1a7a4c;
  --xmas-green-bright: #2ecc71;
  --xmas-gold: #f5c518;
  --xmas-snow: #f0f4f8;
  --xmas-dark: #0f1419;
}

/* Snowfall */
.xmas-snow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  overflow: hidden;
}
.xmas-snow span {
  position: absolute;
  top: -10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  animation: xmas-fall linear infinite;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  user-select: none;
}
@keyframes xmas-fall {
  0%   { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0.3; }
}

/* Promo bar removed */
.xmas-promo-bar { display: none !important; }

/* Christmas badge on product cards */
.xmas-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: linear-gradient(135deg, #c41e3a, #e63950);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.xmas-badge::before {
  content: '❄';
  font-size: 0.75rem;
}

/* Price with discount */
.product-price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.price-original {
  font-size: 0.78rem;
  color: #94a3b8;
  text-decoration: line-through;
  opacity: 0.85;
  font-weight: 500;
}
.product-price-big {
  color: #2ecc71 !important;
  font-weight: 800;
}
.xmas-discount-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  margin-left: 6px;
  vertical-align: middle;
}

/* Featured banner Christmas override */
.featured-banner.xmas-featured {
  border-color: rgba(196, 30, 58, 0.45) !important;
  background: linear-gradient(135deg, #1a1520 0%, #1c2433 50%, #0f1a14 100%) !important;
}
.featured-banner.xmas-featured::before {
  background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.6), rgba(46, 204, 113, 0.5), transparent) !important;
}
.feat-badge.xmas {
  color: #f5c518 !important;
  background: rgba(245, 197, 24, 0.12) !important;
  border-color: rgba(245, 197, 24, 0.4) !important;
}
.feat-price .xmas-old {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-bottom: 2px;
}
.feat-price {
  color: #2ecc71 !important;
}

/* Shop title Christmas */
.shop-title h1 .xmas-span {
  background: linear-gradient(135deg, #e63950, #f5c518, #2ecc71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Popup modal — always centered in the viewport, no page scroll needed */
.xmas-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.xmas-popup-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.xmas-popup-open {
  overflow: hidden !important;
  height: 100% !important;
}
.xmas-popup {
  position: relative;
  max-width: 400px;
  width: 100%;
  max-height: min(90vh, 560px);
  margin: auto;
  background: linear-gradient(180deg, #1e2433 0%, #151a24 100%);
  border: 1px solid rgba(196, 30, 58, 0.45);
  border-radius: 20px;
  overflow: hidden;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 197, 24, 0.15);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}
.xmas-popup-overlay.show .xmas-popup {
  transform: scale(1) translateY(0);
}
.xmas-popup-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid rgba(196, 30, 58, 0.35);
}
.xmas-popup-body {
  padding: 1.35rem 1.4rem 1.5rem;
  text-align: center;
}
.xmas-popup-body h2 {
  margin: 0 0 0.4rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.xmas-popup-body h2 span {
  color: #e63950;
}
.xmas-popup-body p {
  margin: 0 0 1rem;
  color: #a0a8ba;
  font-size: 0.92rem;
  line-height: 1.55;
}
.xmas-popup-discount {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.2), rgba(46, 204, 113, 0.15));
  border: 1px solid rgba(245, 197, 24, 0.35);
  border-radius: 12px;
  padding: 0.65rem 1.1rem;
  margin-bottom: 1.1rem;
}
.xmas-popup-discount .big {
  font-size: 1.75rem;
  font-weight: 900;
  color: #2ecc71;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1;
}
.xmas-popup-discount .label {
  text-align: left;
  font-size: 0.72rem;
  color: #f5c518;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.xmas-popup-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
  color: #c8d0dc;
}
.xmas-popup-code code {
  background: rgba(0,0,0,0.35);
  border: 1px dashed #f5c518;
  color: #f5c518;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}
.xmas-popup-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.xmas-popup-btns a,
.xmas-popup-btns button {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.xmas-popup-btns a {
  background: linear-gradient(135deg, #c41e3a, #e63950);
  color: #fff;
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}
.xmas-popup-btns a:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #e63950, #c41e3a);
}
.xmas-popup-btns button {
  background: rgba(255,255,255,0.08);
  color: #c8d0dc;
  border: 1px solid rgba(255,255,255,0.12);
}
.xmas-popup-btns button:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.xmas-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.xmas-popup-close:hover {
  background: rgba(196, 30, 58, 0.8);
}

/* Detail sidebar promo */
.sidebar-price-top .xmas-save {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #2ecc71;
  font-weight: 700;
}
.plan-option-price {
  position: relative;
}
.plan-option .xmas-plan-badge {
  position: absolute;
  top: -8px;
  right: 8px;
  background: #c41e3a;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Body Christmas accent (subtle) */
body.xmas-mode {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse 85% 50% at 50% -8%, rgba(196, 30, 58, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 15%, rgba(26, 122, 76, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #1a1520 0%, #151a24 40%, #0f1419 100%) !important;
}

/* Navbar stays at top: 0 (never shift it) — only a subtle accent */
.xmas-mode .navbar {
  top: 0 !important;
  border-bottom-color: rgba(196, 30, 58, 0.25) !important;
}

/* Keep Christmas titles / -25% text BELOW the fixed navbar */
body.xmas-mode .store-hero {
  padding-top: 150px !important;
}
body.xmas-mode .shop-section {
  padding-top: 130px !important;
}
body.xmas-mode #detailPage {
  padding-top: 100px !important;
}

@media (max-width: 768px) {
  body.xmas-mode .store-hero {
    padding-top: 130px !important;
  }
  body.xmas-mode .shop-section {
    padding-top: 115px !important;
  }
  body.xmas-mode #detailPage {
    padding-top: 90px !important;
  }
}

/* No sticky bottom bar / no promo bar layout hacks */
.xmas-sticky-cta,
.xmas-promo-bar {
  display: none !important;
}
