/* Original Bargain Galaxy template styles. */

:root {
  --cream: #ffefd2;
  --ink: #110d20;
  --navy: #0b0926;
  --pink: #f7356c;
  --orange: #ff6414;
  --teal: #008d96;
  --yellow: #ffce2f;
  --line: #ddb66f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 9%, rgba(255, 206, 47, 0.3), transparent 260px),
    radial-gradient(circle at 82% 18%, rgba(247, 53, 108, 0.19), transparent 260px),
    var(--cream);
  color: var(--ink);
  font-family:
    "Arial Rounded MT Bold",
    "Trebuchet MS",
    Arial,
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.template-shell {
  width: min(100%, 948px);
  margin: 0 auto;
  padding: 14px 6px 0;
}

.template-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 220px 1fr 112px;
  align-items: center;
  min-height: 76px;
  padding: 8px 24px 8px 34px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 244, 222, 0.97);
  box-shadow: 0 8px 22px rgba(74, 38, 35, 0.13);
}

.logo-link {
  display: block;
  width: 190px;
}

.logo-link img {
  display: block;
  width: 100%;
  height: auto;
}

.template-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 950;
}

.template-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.template-actions button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #e8ad4f;
  border-radius: 999px;
  background: #fff1d6;
  color: var(--ink);
  font-size: 21px;
  font-weight: 950;
}

.template-hero {
  position: relative;
  min-height: 449px;
  margin-top: -2px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--navy);
}

.template-hero > img {
  object-fit: cover;
}

.home-shell .template-header {
  grid-template-columns: 226px minmax(0, 1fr) 126px;
  min-height: 76px;
  padding: 8px 24px 8px 34px;
  overflow: visible;
}

.home-shell .logo-link {
  position: relative;
  z-index: 2;
  width: 214px;
  transform: translateY(34px);
}

.home-shell .template-nav {
  gap: 26px;
  transform: translateY(10px);
}

.home-shell .template-actions {
  align-items: center;
  gap: 12px;
  transform: translateY(10px);
}

.header-rocket-badge {
  display: block;
  width: 74px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 8px rgba(74, 48, 41, 0.12));
}

.template-search {
  position: absolute;
  z-index: 3;
  right: 53px;
  bottom: 138px;
  left: 53px;
  display: grid;
  grid-template-columns: 1fr 264px;
  gap: 14px;
  min-height: 54px;
  padding: 9px 11px;
  border: 2px solid #edb34e;
  border-radius: 999px;
  background: #fff3da;
  box-shadow: 0 10px 24px rgba(10, 10, 28, 0.22);
}

.template-search input,
.newsletter-hit-area input {
  min-width: 0;
  border: 0;
  border-radius: 999px;
  background: #fff3da;
  color: var(--ink);
  outline: none;
}

.template-search input {
  padding: 0 20px;
  font-size: 14px;
}

.template-search button,
.newsletter-hit-area button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4f7a, #eb235b);
  color: #fff9ec;
  font-weight: 950;
  box-shadow: inset 0 -3px 0 rgba(145, 24, 49, 0.25);
}

.image-band {
  position: relative;
  overflow: hidden;
}

.image-band img,
.template-card-img img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.16) contrast(1.045);
}

.main-newsletter {
  width: calc(100% - 94px);
  margin: -118px auto 28px;
  border-radius: 17px;
  box-shadow: 0 12px 24px rgba(0, 91, 96, 0.12);
  z-index: 4;
}

.newsletter-hit-area {
  position: absolute;
  right: 28px;
  top: 51px;
  display: grid;
  width: 294px;
  gap: 11px;
}

.newsletter-hit-area input {
  height: 40px;
  padding: 0 18px;
}

.newsletter-hit-area button {
  height: 44px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.newsletter-hit-area button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.newsletter-hit-area button:focus-visible {
  outline: 3px solid #fff8e8;
  outline-offset: 2px;
}

.template-section {
  margin: 0 53px 23px;
}

.template-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.template-heading h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
  color: var(--ink);
  text-shadow: 2px 2px 0 #f2c65e;
}

.template-heading::before {
  content: "";
  width: 25px;
  height: 20px;
  margin-right: -8px;
  border: 4px solid var(--orange);
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-16deg);
}

.template-heading h2 {
  margin-right: auto;
}

.template-heading a {
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 1.5px solid #ff4c78;
  border-radius: 999px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 950;
}

.deal-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.template-card-img {
  display: block;
  overflow: hidden;
  border-radius: 14px;
}

.categories {
  margin-bottom: 25px;
}

.category-card-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.coupon-card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.coupon-card {
  position: relative;
  display: grid;
  min-height: 142px;
  padding: 15px 14px 13px;
  overflow: hidden;
  border: 1.5px dashed rgba(2, 154, 160, 0.72);
  border-radius: 9px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 211, 78, 0.7), transparent 46px),
    linear-gradient(135deg, #e9fbf6 0%, #fff6dc 54%, #d9f7f5 100%);
  box-shadow: inset 0 -4px 0 rgba(2, 154, 160, 0.12);
  color: var(--ink);
}

.coupon-card::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px dashed rgba(2, 154, 160, 0.35);
  border-radius: 6px;
  pointer-events: none;
}

.coupon-card span,
.coupon-card strong,
.coupon-card small {
  position: relative;
  z-index: 1;
}

.coupon-brand {
  color: var(--teal);
  font-size: 15px;
  font-weight: 950;
}

.coupon-card strong {
  margin-top: 3px;
  color: var(--pink);
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.coupon-card span:not(.coupon-brand):not(.coupon-code) {
  font-size: 10px;
  font-weight: 900;
}

.coupon-code {
  align-self: end;
  margin-top: 8px;
  padding: 7px 8px;
  border-radius: 999px;
  background: #fff9ec;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  box-shadow: inset 0 -2px 0 rgba(2, 154, 160, 0.16);
}

.coupon-card small {
  margin-top: 5px;
  color: rgba(23, 20, 35, 0.68);
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.bottom-newsletter {
  width: calc(100% - 36px);
  margin: 17px auto 0;
  border-radius: 16px 16px 0 0;
}

.newsletter-hit-area.bottom {
  top: 19px;
  right: 176px;
  width: 241px;
}

.newsletter-hit-area.bottom input {
  height: 37px;
}

.newsletter-hit-area.bottom button {
  height: 40px;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  min-height: 184px;
  padding: 26px 220px 22px 40px;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(circle at 78% 38%, rgba(255, 206, 47, 0.3), transparent 110px),
    var(--navy);
  color: #fff8e8;
}

.footer-brand {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-brand img {
  width: 174px;
  height: auto;
}

.footer-brand p {
  margin: 0;
  max-width: 205px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.social-links a {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 248, 232, 0.45);
  border-radius: 999px;
  color: #fff8e8;
  font-size: 13px;
  font-weight: 950;
}

.footer-nav {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-column h2 {
  margin: 0 0 12px;
  color: #fff8e8;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
}

.footer-column ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a {
  color: rgba(255, 248, 232, 0.86);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.footer-column a:hover,
.social-links a:hover {
  color: var(--yellow);
}

.footer-rocket {
  position: absolute;
  right: 8px;
  bottom: -2px;
  width: 258px;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

.footer-copyright {
  position: relative;
  grid-column: 2;
  z-index: 1;
  margin: 8px 0 0;
  color: rgba(255, 248, 232, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.legal-shell {
  min-height: 100vh;
  padding-bottom: 42px;
}

.legal-panel {
  margin: 18px auto 0;
  padding: 44px 52px 48px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 206, 47, 0.31), transparent 170px),
    radial-gradient(circle at 12% 88%, rgba(0, 141, 150, 0.2), transparent 200px),
    rgba(255, 244, 222, 0.96);
  box-shadow: 0 18px 35px rgba(74, 38, 35, 0.14);
}

.legal-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-panel h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  text-shadow: 2px 2px 0 #f2c65e;
}

.legal-intro {
  margin: 12px 0 30px;
  color: rgba(23, 20, 35, 0.72);
  font-size: 16px;
  font-weight: 850;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 36px;
}

.legal-stack {
  display: grid;
  gap: 28px;
}

.legal-grid section {
  padding-top: 16px;
  border-top: 2px solid rgba(230, 205, 165, 0.75);
}

.legal-stack section {
  padding-top: 18px;
  border-top: 2px solid rgba(230, 205, 165, 0.75);
}

.legal-grid h2 {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 18px;
  line-height: 1.1;
}

.legal-stack h2 {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 20px;
  line-height: 1.15;
}

.legal-grid p,
.legal-stack p,
.legal-list {
  margin: 0;
  color: rgba(23, 20, 35, 0.86);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.legal-stack p + p {
  margin-top: 12px;
}

.legal-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-left: 22px;
}

.legal-grid a,
.legal-stack a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-backlink {
  display: inline-flex;
  margin-top: 34px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd94e, #ffbd21);
  color: var(--ink);
  font-weight: 950;
  box-shadow: inset 0 -3px 0 rgba(145, 94, 12, 0.22);
}

.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;
}

@media (max-width: 820px) {
  .template-shell {
    padding-inline: 10px;
  }

  .template-header {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 10px 14px 14px;
  }

  .logo-link {
    width: 164px;
  }

  .home-shell .logo-link {
    width: 176px;
    transform: translateY(24px);
  }

  .template-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 7px 18px;
  }

  .home-shell .template-nav,
  .home-shell .template-actions {
    transform: none;
  }

  .template-actions button {
    width: 38px;
    height: 38px;
  }

  .header-rocket-badge {
    width: 58px;
  }

  .template-hero {
    min-height: 560px;
  }

  .template-hero > img {
    object-position: left center;
  }

  .template-search {
    right: 16px;
    bottom: 58px;
    left: 16px;
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .template-search input,
  .template-search button {
    height: 50px;
  }

  .main-newsletter,
  .bottom-newsletter {
    width: 100%;
    margin-top: 10px;
  }

  .newsletter-hit-area,
  .newsletter-hit-area.bottom {
    position: static;
    width: auto;
    padding: 12px 18px 16px;
    background: #00868b;
  }

  .newsletter-hit-area button {
    border-radius: 0;
    background: transparent url("template/newsletter-button.png") center / 100% 100% no-repeat;
  }

  .newsletter-hit-area button:hover {
    filter: saturate(1.05) brightness(1.02);
  }

  .template-section {
    margin-inline: 0;
  }

  .deal-card-row,
  .coupon-card-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .deal-card-row .template-card-img {
    width: min(100%, 320px);
  }

  .category-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .coupon-card-row .template-card-img {
    width: min(100%, 300px);
  }

  .coupon-card {
    width: min(100%, 300px);
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 24px 150px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-column ul {
    gap: 9px;
  }

  .footer-rocket {
    width: 220px;
  }

  .footer-copyright {
    grid-column: auto;
    text-align: left;
  }

  .legal-panel {
    padding: 32px 24px 36px;
  }

  .legal-panel h1 {
    font-size: 34px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }
}
