/* Promotions page — loaded only on promotions.php */

.promotions-page .promotions-editorial {
  padding-bottom: 28px;
}

.promotions-editorial__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.promotions-editorial__actions .button-primary,
.promotions-editorial__actions .button-secondary {
  min-width: 11.5rem;
  padding: 0.72rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: none;
}

.promotions-editorial__actions .button-primary {
  background: linear-gradient(135deg, #0a1f44 0%, #173863 100%);
  border: 1px solid rgba(10, 31, 68, 0.08);
  box-shadow: 0 12px 28px rgba(10, 31, 68, 0.16);
}

.promotions-editorial__actions .button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(10, 31, 68, 0.22);
}

.promotions-editorial__actions .button-secondary {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(10, 31, 68, 0.14);
  color: var(--navy, #0a1f44);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.promotions-editorial__actions .button-secondary:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(10, 31, 68, 0.22);
}

.promotions-list {
  padding: 12px 0 96px;
}

.promotions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.promo-tile {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(8, 22, 47, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.promo-tile__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a1f44;
}

.promo-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-art {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1.35rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
}

.promo-art__bg,
.promo-art__glow,
.promo-art__ribbon,
.promo-art__panel {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.promo-art__content {
  position: relative;
  z-index: 2;
  width: min(100%, 26rem);
  text-align: center;
}

.promo-art__brand,
.promo-art__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.promo-art__brand {
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.72);
}

.promo-art__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.95rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promo-art__badge {
  margin-top: 0.75rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.62rem;
}

/* Variant 1 — editorial gold spotlight */
.promo-art--v1 {
  background: linear-gradient(145deg, #07152f 0%, #0f2f5d 52%, #173863 100%);
}

.promo-art--v1 .promo-art__bg {
  background:
    radial-gradient(circle at 18% 18%, rgba(184, 154, 100, 0.34), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(139, 187, 248, 0.18), transparent 38%);
}

.promo-art--v1 .promo-art__title {
  text-shadow:
    0 0 28px rgba(184, 154, 100, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.28);
}

.promo-art--v1 .promo-art__badge {
  color: #f6edd8;
  background: rgba(184, 154, 100, 0.22);
  border: 1px solid rgba(184, 154, 100, 0.42);
}

/* Variant 2 — glass aurora */
.promo-art--v2 {
  background: linear-gradient(135deg, #0a1f44 0%, #1a4f86 48%, #8bbbf8 100%);
}

.promo-art--v2 .promo-art__glow {
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 42%, transparent 72%);
  transform: translateX(-120%);
  animation: promo-art-shimmer 7s ease-in-out infinite;
}

.promo-art--v2 .promo-art__panel {
  inset: auto;
  left: 50%;
  top: 50%;
  width: min(88%, 24rem);
  height: auto;
  min-height: 58%;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.promo-art--v2 .promo-art__content {
  padding: 1rem 0.85rem;
}

.promo-art--v2 .promo-art__badge {
  color: #e8f2ff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

/* Variant 3 — ribbon stamp */
.promo-art--v3 {
  background: linear-gradient(160deg, #102746 0%, #0a1f44 55%, #2a1608 100%);
}

.promo-art--v3 .promo-art__ribbon {
  inset: -35% -10%;
  background: linear-gradient(118deg, rgba(184, 154, 100, 0.92) 0%, rgba(214, 181, 120, 0.88) 48%, rgba(111, 86, 48, 0.92) 100%);
  transform: rotate(-14deg);
  opacity: 0.92;
}

.promo-art--v3 .promo-art__content {
  transform: rotate(-2deg);
}

.promo-art--v3 .promo-art__title {
  color: #0a1f44;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.promo-art--v3 .promo-art__brand {
  color: rgba(10, 31, 68, 0.62);
}

.promo-art--v3 .promo-art__badge {
  color: #fff;
  background: rgba(10, 31, 68, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.promo-art.is-ready {
  animation: promo-art-enter 0.65s ease both;
}

.promo-art.is-ready .promo-art__title {
  animation: promo-art-title 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes promo-art-shimmer {
  0%, 100% { transform: translateX(-120%); }
  45%, 55% { transform: translateX(120%); }
}

@keyframes promo-art-enter {
  from {
    opacity: 0.4;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes promo-art-title {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promo-tile__body {
  padding: 1.15rem 1.2rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.promo-tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.promo-tile__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(184, 154, 100, 0.16);
  color: #6f5630;
  font-size: 0.75rem;
  font-weight: 700;
}

.promo-tile__title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--navy, #0a1f44);
  line-height: 1.35;
}

.promo-tile__code {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
}

.promo-tile__code strong {
  color: var(--navy, #0a1f44);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.promo-tile__expires {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(10, 31, 68, 0.06);
  color: #4a5a72;
  font-size: 0.82rem;
  width: fit-content;
}

.promo-tile__expires-label {
  font-weight: 700;
  color: #6f5630;
}

.promo-tile__expires time {
  font-weight: 600;
  color: var(--navy, #0a1f44);
  font-variant-numeric: tabular-nums;
}

.promo-tile__note {
  margin: 0;
  color: #4a5a72;
  font-size: 0.92rem;
  line-height: 1.55;
}

.promo-tile__conds {
  margin: 0.15rem 0 0;
  padding-left: 1.1rem;
  color: #5a6a82;
  font-size: 0.86rem;
  line-height: 1.45;
}

.promo-tile__actions.product-card__actions {
  padding: 0.55rem 1.2rem 1.25rem;
  margin-top: auto;
}

.promo-tile__actions .button-primary,
.promo-tile__actions .button-secondary {
  flex: 1 1 120px;
  text-align: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
}

.promotions-empty {
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.promotions-empty h2 {
  margin: 0 0 0.5rem;
  color: var(--navy, #0a1f44);
}

.promotions-empty p {
  color: #64748b;
  margin: 0 0 1.25rem;
}

@media (max-width: 768px) {
  .promotions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .promotions-page .promotions-editorial {
    padding-bottom: 16px;
  }

  .promotions-editorial__actions {
    margin-top: 1.35rem;
    gap: 0.5rem;
  }

  .promotions-editorial__actions .button-primary,
  .promotions-editorial__actions .button-secondary {
    flex: 1 1 120px;
    width: auto;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    box-shadow: none;
  }

  .promotions-editorial__actions .button-primary {
    box-shadow: none;
  }

  .promotions-list {
    padding-bottom: 120px;
  }

  /* Mobile: product/shop split — media + details, actions full width below */
  .promo-tile {
    display: grid;
    grid-template-columns: minmax(108px, 38%) minmax(0, 1fr);
    grid-template-areas:
      "media body"
      "actions actions";
    gap: 0.75rem 0.85rem;
    align-items: start;
    padding: 14px;
    border-radius: 18px;
    overflow: visible;
  }

  .promo-tile__media {
    grid-area: media;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    margin: 0;
  }

  .promo-tile__media,
  .promo-tile__media img,
  .promo-art {
    border-radius: 16px;
  }

  .promo-art {
    padding: 0.7rem 0.75rem;
  }

  .promo-art__title {
    font-size: clamp(0.82rem, 3.6vw, 1.05rem);
    -webkit-line-clamp: 4;
  }

  .promo-art__brand {
    margin-bottom: 0.3rem;
    font-size: 0.58rem;
  }

  .promo-art__badge {
    margin-top: 0.4rem;
    padding: 0.18rem 0.5rem;
    font-size: 0.54rem;
  }

  .promo-art--v2 .promo-art__panel {
    min-height: 68%;
    border-radius: 12px;
  }

  .promo-tile__body {
    grid-area: body;
    padding: 0;
    gap: 0.4rem;
    min-width: 0;
  }

  .promo-tile__title {
    font-size: 1rem;
    line-height: 1.3;
  }

  .promo-tile__note,
  .promo-tile__conds {
    display: none;
  }

  .promo-tile__tags {
    gap: 0.3rem;
  }

  .promo-tile__tag {
    font-size: 0.68rem;
    padding: 0.18rem 0.5rem;
  }

  .promo-tile__code {
    font-size: 0.78rem;
  }

  .promo-tile__expires {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }

  .promo-tile__actions.product-card__actions {
    grid-area: actions;
    padding: 0;
    margin-top: 0;
    flex-direction: row;
  }

  .promo-tile__actions .button-primary,
  .promo-tile__actions .button-secondary {
    flex: 1 1 120px;
    width: auto;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-art.is-ready,
  .promo-art.is-ready .promo-art__title,
  .promo-art--v2 .promo-art__glow {
    animation: none;
  }
}
