/* ==========================================================================
   Acostamento — Novidades | Design System
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #131313;
  --bg-card: #161616;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f3;
  --text-muted: #9a9a94;
  --text-faint: #6b6b66;
  --gold: #c9a961;
  --gold-soft: rgba(201, 169, 97, 0.14);
  --gold-line: rgba(201, 169, 97, 0.35);

  --ml-yellow: #ffe600;
  --ml-yellow-soft: rgba(255, 230, 0, 0.14);
  --ml-yellow-line: rgba(255, 230, 0, 0.45);
  --ml-text: #1a1a1a;
  --ml-green: #00a650;

  --header-bg: rgba(10, 10, 10, 0.72);
  --hero-grad-1: #0a0a0a;
  --hero-grad-2: #0d0d0d;
  --hero-grid-line: rgba(255, 255, 255, 0.025);
  --card-visual-grad-1: #171717;
  --card-visual-grad-2: #0e0e0e;
  --card-visual-grid-line: rgba(255, 255, 255, 0.02);

  --font-display: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1200px;
  --radius: 2px;
}

:root[data-theme="light"] {
  --bg: #faf9f6;
  --bg-elevated: #f0eee9;
  --bg-card: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --text: #17140f;
  --text-muted: #5c574e;
  --text-faint: #8c8579;
  --gold: #a3793a;
  --gold-soft: rgba(163, 121, 58, 0.12);
  --gold-line: rgba(163, 121, 58, 0.4);

  --header-bg: rgba(250, 249, 246, 0.78);
  --hero-grad-1: #faf9f6;
  --hero-grad-2: #f2efe9;
  --hero-grid-line: rgba(0, 0, 0, 0.035);
  --card-visual-grad-1: #ffffff;
  --card-visual-grad-2: #efece5;
  --card-visual-grid-line: rgba(0, 0, 0, 0.03);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* subtle grain overlay for premium texture */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--gold-line);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 76px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  height: 26px;
  width: auto;
  display: block;
}

.logo__img--light {
  display: none;
}

:root[data-theme="light"] .logo__img--dark {
  display: none;
}

:root[data-theme="light"] .logo__img--light {
  display: block;
}

.header__divider {
  width: 1px;
  height: 20px;
  background: var(--line-strong);
  display: none;
}

.header__tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  font-weight: 500;
  display: none;
}

.header__cta {
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  border-radius: var(--radius);
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--gold);
  color: #0a0a0a;
}

.theme-toggle {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.theme-toggle__mask-circle {
  transition: transform 0.4s ease;
  transform: translate(-9px, -5px);
}

.theme-toggle__rays {
  transform-origin: 12px 12px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

:root[data-theme="light"] .theme-toggle__mask-circle {
  transform: translate(0, 0);
}

:root[data-theme="light"] .theme-toggle__rays {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

@media (min-width: 640px) {

  .header__divider,
  .header__tag {
    display: block;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 0 60px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 169, 97, 0.12), transparent 70%),
    linear-gradient(180deg, var(--hero-grad-1) 0%, var(--hero-grad-2) 60%, var(--hero-grad-1) 100%);
  z-index: -1;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

.hero__inner {
  max-width: 780px;
}

.hero__wolf {
  display: block;
  margin: 0 auto 8px;
}

.hero__wolf-img {
  margin: 0 auto;
  height: clamp(52px, 8vw, 88px);
  width: auto;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero__logo {
  display: block;
  margin-top: 0;
}

.hero__logo .logo__img {
  margin: 0 auto;
  width: min(13.9em, 92%);
  height: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn__ml-icon {
  height: 13px;
  width: auto;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.btn svg {
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--ml-yellow);
  color: var(--ml-text);
  border: 1px solid var(--ml-yellow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: #fff066;
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  margin-top: 0;
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn--card {
  width: 100%;
  justify-content: center;
  margin-top: 0;
  background: var(--ml-yellow);
  color: var(--ml-text);
  border: 1px solid var(--ml-yellow);
  font-size: 12.5px;
  padding: 13px 20px;
}

.btn--card:hover {
  background: #fff066;
  border-color: #fff066;
  color: var(--ml-text);
}

/* ==========================================================================
   Section head
   ========================================================================== */

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

.section-head__eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head__desc {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

/* ==========================================================================
   Products
   ========================================================================== */

.products {
  padding: 120px 0;
  background: var(--bg);
}

.product-carousel {
  padding: 8px 0 40px;
}

.product-carousel .swiper-wrapper {
  align-items: stretch;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.carousel-arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.swiper-pagination {
  position: static !important;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto !important;
}

.swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: var(--line-strong);
  opacity: 1;
  margin: 0 !important;
  transition: background 0.25s ease, transform 0.25s ease;
}

.swiper-pagination-bullet-active {
  background: var(--gold);
  transform: scale(1.3);
}

.card {
  display: flex;
  flex-direction: column;
  height: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.35s ease;
}

.card:hover {
  border-color: var(--gold-line);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}

.card__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(201, 169, 97, 0.08), transparent 60%),
    linear-gradient(160deg, var(--card-visual-grad-1) 0%, var(--card-visual-grad-2) 100%);
  border-bottom: 1px solid var(--line);
}

.card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--card-visual-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--card-visual-grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
}

.card__index {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--gold-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--gold);
  border: 1px solid var(--gold-line);
}

.card__icon {
  width: 46%;
  color: var(--text-faint);
  opacity: 0.55;
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.4s ease;
}

.card:hover .card__icon {
  color: var(--gold);
  opacity: 0.9;
  transform: scale(1.04);
}

.card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.92) contrast(1.03);
}

.card:hover .card__photo {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.05);
}

.card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.card__name {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 44px;
}

.card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.card__price-old {
  font-size: 13px;
  color: var(--text-faint);
  text-decoration: line-through;
}

.card__price-new {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.card__price-off {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--ml-green);
  color: #ffffff;
}

.card__body .btn--card {
  margin-top: auto;
}

/* ==========================================================================
   Perks (vantagens Mercado Livre)
   ========================================================================== */

.perks {
  padding: 36px 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.perks__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.perks__item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.perks__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ml-yellow-soft);
  border: 1px solid var(--ml-yellow-line);
  color: var(--gold);
}

.perks__title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.perks__desc {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .perks__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }
}

@media (max-width: 480px) {
  .perks {
    padding: 28px 0;
  }
  .perks__item {
    gap: 10px;
  }
  .perks__icon {
    width: 36px;
    height: 36px;
  }
  .perks__title {
    font-size: 12.5px;
  }
  .perks__desc {
    font-size: 11px;
  }
}

/* ==========================================================================
   Store Banner (Loja Oficial Mercado Livre)
   ========================================================================== */

.store-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 640px;
  margin: 40px auto 0;
}

.store-banner__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.store-banner__badge {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--ml-yellow);
  color: var(--ml-text);
}

.store-banner__badge--outline {
  background: var(--ml-yellow-soft);
  border: 1px solid var(--ml-yellow-line);
  color: var(--text);
}

.store-banner__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

.store-banner__desc {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

.coupon {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px dashed var(--ml-yellow-line);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 4px;
}

.coupon__icon {
  display: flex;
  align-items: center;
  padding: 0 0 0 14px;
  color: var(--gold);
  background: var(--ml-yellow-soft);
}

.coupon__code {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--ml-yellow-soft);
  border-right: 1.5px dashed var(--ml-yellow-line);
}

.coupon__value {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ml-text);
  background: var(--ml-yellow);
}

/* ==========================================================================
   Banner
   ========================================================================== */

.banner {
  padding: 90px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.banner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 64px 0 40px;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.logo--footer .logo__img {
  height: 22px;
}

.footer__ml-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
}

.footer__ml-logo {
  height: 40px;
  width: auto;
  display: block;
}

.footer__text {
  max-width: 420px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.6;
}

.footer__copy {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ==========================================================================
   Cookie banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line-strong);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}

.cookie-banner__text {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 62ch;
}

.cookie-banner__text abbr {
  color: var(--text);
  text-decoration-color: var(--text-faint);
}

.cookie-banner__btn {
  flex-shrink: 0;
  padding: 10px 22px;
}

@media (max-width: 480px) {
  .cookie-banner__inner {
    padding: 14px 16px;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
  .products {
    padding: 80px 0;
  }

  .hero {
    padding: 100px 0 48px;
  }

  .banner {
    padding: 64px 0;
  }

  .container {
    padding: 0 16px;
  }

  .header__inner {
    gap: 10px;
  }

  .logo__img {
    height: 22px;
  }

  .header__cta {
    padding: 8px 14px;
    font-size: 12px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }
}