* {
  box-sizing: border-box;
}

:root {
  --discount-bg: #03050b;
  --discount-panel: rgba(7, 10, 20, 0.72);
  --discount-panel-strong: rgba(5, 8, 17, 0.9);
  --discount-border: rgba(255, 255, 255, 0.14);
  --discount-text: #fff;
  --discount-muted: rgba(255, 255, 255, 0.72);
  --discount-dim: rgba(255, 255, 255, 0.5);
  --discount-blue: #43a3ff;
  --discount-pink: #ff149d;
  --discount-green: #5ee58a;
}

html {
  min-height: 100%;
  background: var(--discount-bg);
}

body {
  min-height: var(--bs-small-viewport-height, 100vh);
  margin: 0;
  color: var(--discount-text);
  background: var(--discount-bg);
  font-family: var(--bs-site-font, Arial, sans-serif);
  overflow-x: hidden;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.18) 0%, rgba(2, 4, 10, 0.26) 52%, rgba(2, 4, 10, 0.48) 100%),
    rgba(8, 12, 24, 0.04);
  backdrop-filter: blur(1px) saturate(125%);
}

.discounts-page {
  position: relative;
  z-index: 1;
  width: min(1220px, 100%);
  min-height: var(--bs-small-viewport-height, 100vh);
  margin: 0 auto;
  padding: 116px 24px 54px;
}

.discounts-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.discounts-kicker {
  margin: 0 0 8px;
  color: var(--discount-blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.discounts-heading h1,
.discounts-calendar-header h2,
.discount-details h2,
.discount-event-detail h3,
.discounts-empty h2,
.discounts-empty h3 {
  margin: 0;
  color: #fff;
  letter-spacing: 0;
}

.discounts-heading h1 {
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.92;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.56);
}

.discounts-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.discounts-region {
  position: relative;
}

.discounts-region.is-loading {
  pointer-events: none;
}

.discounts-region.is-loading::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  z-index: 4;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--discount-blue) 32%, #8bd2ff 68%, transparent);
  box-shadow: 0 0 14px rgba(67, 163, 255, 0.48);
  transform: scaleX(0.18);
  transform-origin: left center;
  animation: discounts-region-loading 0.8s ease-in-out infinite alternate;
}

@keyframes discounts-region-loading {
  from {
    opacity: 0.42;
    transform: scaleX(0.18);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.discounts-navigation-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.discounts-calendar-card,
.discount-details,
.discounts-empty {
  border: 1px solid var(--discount-border);
  border-radius: 20px;
  background: var(--discount-panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px) saturate(140%);
}

.discounts-calendar-card,
.discount-details,
.discounts-empty {
  padding: 22px;
}

.discounts-calendar-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.discounts-calendar-header h2 {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.discounts-calendar-header a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.2s ease;
}

.discounts-calendar-header a:hover,
.discounts-calendar-header a:focus-visible {
  color: var(--discount-blue);
  outline: none;
}

.discounts-calendar-arrow {
  display: block;
  color: inherit;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.discounts-calendar-header a:hover .discounts-calendar-arrow,
.discounts-calendar-header a:focus-visible .discounts-calendar-arrow {
  transform: translateY(-2px) scale(1.12);
}

.discounts-weekdays,
.discounts-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.discounts-weekdays {
  margin-bottom: 8px;
}

.discounts-weekdays span {
  color: var(--discount-dim);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.discount-day {
  position: relative;
  display: grid;
  min-height: 78px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.discount-day--empty {
  border-color: transparent;
  background: transparent;
}

.discount-day span {
  align-self: start;
  font-weight: 900;
}

.discount-day strong {
  align-self: end;
  justify-self: end;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(67, 163, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
}

.discount-day.has-event {
  color: #fff;
  border-color: rgba(67, 163, 255, 0.34);
  background: rgba(67, 163, 255, 0.1);
}

.discount-day.active,
.discount-day:hover,
.discount-day:focus-visible {
  border-color: rgba(67, 163, 255, 0.58);
  background: rgba(67, 163, 255, 0.16);
  box-shadow: 0 0 28px rgba(67, 163, 255, 0.14);
  outline: none;
}

.discount-day.is-today::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--discount-green);
  box-shadow: 0 0 12px rgba(94, 229, 138, 0.5);
}

.discount-details {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.discount-details h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.discount-event-details {
  display: grid;
  gap: 14px;
}

.discount-event-detail {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: var(--discount-panel-strong);
}

.discount-event-detail h3 {
  font-size: 1.35rem;
}

.discount-event-detail__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.discount-event-detail__heading span {
  padding: 6px 9px;
  border: 1px solid rgba(67, 163, 255, 0.26);
  border-radius: 999px;
  color: #b9ddff;
  background: rgba(67, 163, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
}

.discount-event-detail p {
  margin: 0;
  color: var(--discount-muted);
  line-height: 1.5;
}

.discount-product-list {
  display: grid;
  gap: 10px;
}

.discount-product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(67, 163, 255, 0.2);
  border-radius: 14px;
  color: inherit;
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
}

.discount-product-item span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.discount-product-item strong {
  color: #fff;
  font-size: 1.05rem;
}

.discount-product-item small,
.discount-product-item em {
  color: var(--discount-muted);
  font-style: normal;
  overflow-wrap: anywhere;
}

.discount-product-item b {
  flex: 0 0 auto;
  color: var(--discount-blue);
  font-size: 1.6rem;
}

.discounts-empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  text-align: center;
}

.discounts-empty p {
  margin: 10px 0 0;
  color: var(--discount-muted);
}

.discounts-empty--small {
  min-height: 180px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.discount-details .discounts-empty--small {
  display: grid;
  place-items: start;
  min-height: 0;
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .discounts-region.is-loading::after {
    animation: none;
    opacity: 0.72;
    transform: scaleX(1);
  }
}

@media (max-width: 980px) {
  .discounts-layout {
    grid-template-columns: 1fr;
  }

  .discount-details {
    position: static;
  }
}

@media (max-width: 620px) {
  .discounts-page {
    padding: 96px 14px 40px;
  }

  .discounts-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .discounts-calendar-card,
  .discount-details,
  .discounts-empty {
    padding: 16px;
    border-radius: 16px;
  }

  .discounts-calendar-grid,
  .discounts-weekdays {
    gap: 6px;
  }

  .discount-day {
    min-height: 58px;
    padding: 8px;
    border-radius: 12px;
  }

  .discount-product-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
