body.gift-cards-page {
  background: #eaf3ff;
}

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

.gift-hero-panel {
  min-height: 500px;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  background:
    linear-gradient(180deg, rgba(7, 24, 117, 0.16) 0%, rgba(7, 24, 117, 0.22) 100%),
    url("../images/gift-hero-bg.webp") center top / cover no-repeat;
  overflow: hidden;
}

.gift-hero-copy {
  --animate-duration: 1.1s;
  --animate-delay: 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 139px;
  color: #ffffff;
  text-align: center;
}

.gift-hero-copy h1 {
  width: min(996px, 100%);
  margin: 0;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.22;
}

.gift-hero-copy p {
  width: min(996px, 100%);
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

.gift-grid-section {
  padding: 66px 0 140px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 387px));
  justify-content: center;
  gap: 60px 20px;
}

.gift-grid-loader {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  color: rgba(0, 0, 0, 0.55);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.gift-grid-loader.is-hidden,
.gift-grid-sentinel.is-hidden {
  display: none;
}

.gift-grid-loader.is-loading {
  color: #005cd7;
}

.gift-grid-sentinel {
  width: 100%;
  height: 1px;
}

.gift-card {
  --animate-duration: 0.95s;
  --animate-delay: 0.14s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 16px 19px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

.gift-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(75, 172, 255, 0.08) 0%, rgba(88, 76, 255, 0.16) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gift-card:hover,
.gift-card:focus-within {
  box-shadow: 0 24px 42px rgba(29, 61, 128, 0.18);
}

.gift-card:hover::before,
.gift-card:focus-within::before {
  opacity: 1;
}

.gift-card-media {
  position: relative;
  height: 245px;
  overflow: hidden;
  border-radius: 20px;
}

.gift-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gift-card:hover .gift-card-media img,
.gift-card:focus-within .gift-card-media img {
  transform: scale(1.06) rotate(-1deg);
  filter: saturate(1.08);
}

.gift-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 0 10px;
}

.gift-card-body h3,
.gift-cta-banner h2 {
  margin: 0;
}

.gift-card-body h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: #000000;
  transition: color 0.3s ease, transform 0.3s ease;
}

.gift-card-body p {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  color: #000000;
  transition: color 0.3s ease;
}

.gift-card:hover .gift-card-body h3,
.gift-card:focus-within .gift-card-body h3 {
  color: #1b5cff;
  transform: translateX(4px);
}

.gift-card:hover .gift-card-body p,
.gift-card:focus-within .gift-card-body p {
  color: #17223f;
}

.gift-card .button {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-card:hover .button,
.gift-card:focus-within .button {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(88, 76, 255, 0.28);
}

.gift-cta-section {
  padding-bottom: 80px;
}

.gift-cta-banner {
  --animate-duration: 1.05s;
  --animate-delay: 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 243px;
  padding: 59px 48px 48px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(9, 44, 145, 0.18) 0%, rgba(10, 176, 238, 0.12) 100%),
    url("../images/gift-cta-bg.webp") center center / cover no-repeat;
  color: #ffffff;
  text-align: center;
  transition: box-shadow 0.35s ease, filter 0.35s ease;
}

.gift-cta-banner:hover,
.gift-cta-banner:focus-within {
  box-shadow: 0 24px 40px rgba(17, 58, 125, 0.2);
  filter: saturate(1.05);
}

.gift-cta-banner h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 48px;
}

.gift-cta-banner p {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

.gift-cta-banner .button {
  margin-top: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .gift-card,
  .gift-card::before,
  .gift-card-media img,
  .gift-card-body h3,
  .gift-card-body p,
  .gift-card .button,
  .gift-cta-banner {
    transition: none;
  }
}

@media (max-width: 1280px) {
  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 387px));
  }
}

@media (max-width: 900px) {
  .gift-hero-panel {
    min-height: 440px;
  }

  .gift-hero-copy {
    padding-top: 110px;
  }

  .gift-hero-copy h1 {
    font-size: 52px;
  }

  .gift-grid-section {
    position: relative;
    z-index: 2;
    margin-top: -96px;
    padding-top: 0;
    padding-bottom: 96px;
  }

  .gift-grid {
    grid-template-columns: minmax(0, 387px);
    gap: 40px;
  }

  .gift-cta-banner {
    padding: 48px 28px;
  }
}

@media (max-width: 680px) {
  .gift-hero-panel {
    min-height: 660px;
    background-position: 56% center;
  }

  .gift-hero-copy {
    gap: 18px;
    padding-top: 58px;
  }

  .gift-hero-copy h1 {
    font-size: 42px;
    line-height: 1.15;
  }

  .gift-grid-section {
    margin-top: -208px;
    padding-bottom: 88px;
  }

  .gift-hero-copy p,
  .gift-card-body p,
  .gift-cta-banner p {
    font-size: 18px;
    line-height: 28px;
  }

  .gift-card-body h3 {
    font-size: 18px;
  }

  .gift-card-media {
    height: auto;
    aspect-ratio: 347 / 245;
  }

  .gift-cta-banner h2 {
    font-size: 30px;
    line-height: 40px;
  }
}
