:root {
  --ink: #15171d;
  --muted: #687083;
  --paper: #f6f7fb;
  --panel: #ffffff;
  --line: #e3e7ef;
  --line-strong: #cfd6e3;
  --magalu: #0086ff;
  --magalu-dark: #005bb8;
  --accent: #ffcc00;
  --deal: #0d8f5b;
  --rose: #b4235a;
  --shadow: 0 18px 44px rgba(21, 23, 29, .10);
  --soft-shadow: 0 8px 22px rgba(21, 23, 29, .07);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 54px);
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  width: clamp(136px, 16vw, 190px);
  min-width: 132px;
}

.brand img {
  width: 100%;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

nav a,
.category-strip a,
.ghost-cta,
.text-link {
  text-decoration: none;
  font-weight: 850;
}

nav a {
  padding: 9px 10px;
  border-radius: 8px;
  color: #2f3542;
  font-size: .92rem;
}

nav a:hover {
  background: #eef6ff;
  color: var(--magalu-dark);
}

.offer-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
  gap: clamp(20px, 4vw, 44px);
  align-items: stretch;
  padding: clamp(28px, 5vw, 62px);
  border-radius: 10px;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(0, 74, 151, .96), rgba(0, 134, 255, .90) 54%, rgba(255, 204, 0, .84)),
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, .28), transparent 30%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.offer-hero-copy,
.hero-offer-card,
.offer-card,
.product-copy,
.product-image-panel,
.mini-offer {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.35rem, 5.8vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 950;
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.12;
  font-weight: 950;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 900;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.offer-hero p {
  max-width: 760px;
  color: #eef7ff;
  font-size: 1.08rem;
}

.hero-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta,
.ghost-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
}

.cta {
  border: 0;
  background: var(--magalu);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 134, 255, .22);
  font-weight: 950;
  text-decoration: none;
}

.offer-hero .cta {
  background: #fff;
  color: var(--magalu-dark);
}

.ghost-cta {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .46);
}

.ghost-cta.compact {
  min-height: 42px;
  color: var(--magalu-dark);
  border-color: var(--line-strong);
}

.cta:hover {
  background: var(--magalu-dark);
  color: #fff;
}

.hero-offer-card {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 22px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 38, 79, .22);
}

.hero-offer-card span,
.offer-meta span,
.product-image-panel span,
.mini-offer span {
  width: fit-content;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #063f7a;
  background: #e6f3ff;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-offer-card p {
  margin: 0;
}

.hero-offer-card strong {
  color: var(--deal);
  font-size: 1.45rem;
}

.hero-offer-card a {
  color: var(--magalu-dark);
  font-weight: 950;
  text-decoration: none;
}

.content-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto;
}

.tv-feature {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid rgba(0, 134, 255, .18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0, 134, 255, .10), rgba(255, 204, 0, .18)),
    #fff;
  box-shadow: var(--soft-shadow);
}

.tv-feature-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 12px;
}

.tv-feature-copy p {
  margin: 0;
}

.tv-feature-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tv-tile {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
}

.tv-tile img {
  width: 100%;
  height: 112px;
  object-fit: contain;
}

.tv-tile span {
  width: fit-content;
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #063f7a;
  background: #e6f3ff;
  font-size: .7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tv-tile h3 {
  font-size: .94rem;
}

.tv-tile h3 a {
  text-decoration: none;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.category-strip a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #2f3542;
}

.category-strip a.is-active,
.category-strip a:hover {
  color: #fff;
  background: var(--magalu);
  border-color: var(--magalu);
}

.category-strip span {
  color: inherit;
  opacity: .72;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.offer-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.offer-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.offer-media {
  display: grid;
  place-items: center;
  min-height: 148px;
  background:
    linear-gradient(135deg, #eef7ff, #fff9d7),
    #fff;
}

.offer-media img,
.product-image-panel img {
  width: min(170px, 62%);
  height: 112px;
  object-fit: contain;
}

.offer-visual,
.product-visual {
  display: grid;
  place-items: center;
  gap: 8px;
  width: min(100% - 28px, 280px);
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(0, 134, 255, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .76);
  text-align: center;
}

.offer-visual span,
.product-visual strong {
  color: var(--magalu-dark);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.offer-visual strong,
.product-visual span {
  color: var(--deal);
  font-size: 1.28rem;
  line-height: 1.08;
  font-weight: 950;
}

.offer-visual small,
.product-visual small {
  color: var(--rose);
  font-weight: 900;
}

.offer-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.offer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.offer-meta small,
.price-line small {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
}

.offer-card h3 a,
.mini-offer h3 a {
  text-decoration: none;
}

.offer-card p {
  margin: 0;
  font-size: .94rem;
}

.price-line {
  display: grid;
  gap: 3px;
}

.price-line del {
  color: #8a93a5;
  font-size: .9rem;
}

.price-line strong,
.product-price strong,
.mini-offer strong {
  color: var(--deal);
  font-size: 1.35rem;
  line-height: 1.1;
}

.card-cta {
  min-height: 42px;
  padding: 0 14px;
  font-size: .9rem;
}

.text-link {
  color: var(--magalu-dark);
}

.seo-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.seo-panel p {
  max-width: 840px;
  margin-bottom: 0;
}

.product-page {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 44px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: .9rem;
}

.breadcrumbs a {
  color: var(--magalu-dark);
  text-decoration: none;
  font-weight: 850;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.product-image-panel,
.product-copy,
.mini-offer {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.product-image-panel {
  display: grid;
  gap: 18px;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #eef7ff, #fff9d7);
}

.product-image-panel img {
  width: min(260px, 78%);
  height: 190px;
}

.product-visual {
  width: min(100%, 360px);
  min-height: 220px;
}

.product-visual span {
  font-size: 1.6rem;
}

.product-copy {
  padding: clamp(22px, 4vw, 42px);
}

.product-copy h1 {
  font-size: clamp(2rem, 4.3vw, 3.7rem);
}

.product-price {
  display: grid;
  gap: 4px;
  margin: 18px 0;
}

.product-price del {
  color: #8a93a5;
}

.product-price span {
  color: var(--rose);
  font-weight: 900;
}

.decision-list {
  margin: 0 0 22px;
  padding-left: 18px;
}

.decision-list li {
  margin: 8px 0;
  color: #323847;
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mini-offer {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.site-footer {
  padding: 24px clamp(16px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  margin: 0;
  font-size: .92rem;
}

@media (max-width: 820px) {
  .site-header,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .offer-hero,
  .product-hero,
  .tv-feature {
    grid-template-columns: 1fr;
  }

  .offer-hero {
    width: min(100% - 20px, 1180px);
    padding: 26px;
  }

  .content-wrap,
  .product-page {
    width: min(100% - 20px, 1180px);
  }

  .hero-offer-card {
    padding: 18px;
  }

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

  .tv-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 440px) {
  nav a {
    padding: 8px;
    font-size: .86rem;
  }

  h1 {
    font-size: 2.1rem;
  }

  .offer-hero {
    padding: 22px;
  }

  .offer-body,
  .seo-panel,
  .product-copy {
    padding: 15px;
  }

  .tv-feature {
    padding: 16px;
  }

  .tv-feature-grid {
    grid-template-columns: 1fr;
  }
}
