:root {
  --bg: #fff3fd;
  --surface: #ffffff;
  --sidebar: #feebff;
  --primary: #7f30c3;
  --primary-strong: #531185;
  --primary-soft: #f2c7ff;
  --ink: #27162f;
  --muted: #84728d;
  --line: rgba(127, 48, 195, 0.14);
  --shadow: 0 22px 60px rgba(88, 31, 128, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

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

.site-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 78% 8%,
      rgba(247, 183, 255, 0.42),
      transparent 28rem
    ),
    radial-gradient(
      circle at 30% 28%,
      rgba(255, 255, 255, 0.9),
      transparent 22rem
    ),
    var(--bg);
}

.site-main {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  max-width: 1440px;
  padding: 28px 40px 48px;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100vh;
  padding: 38px 22px;
  background: var(--sidebar);
  border-right: 1px solid rgba(127, 48, 195, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sidebar h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.sidebar-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.platform-list {
  display: grid;
  gap: 10px;
}

.platform-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  color: #6c5b73;
  background: transparent;
  border-radius: 18px;
  text-align: left;
  transition: 180ms ease;
}

.platform-item:hover,
.platform-item.active {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(127, 48, 195, 0.08);
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--primary);
  background: #fff;
  border-radius: 14px;
  font-weight: 800;
}

.platform-item strong {
  color: #9b88a5;
  font-size: 0.82rem;
}

.clear-button {
  width: 100%;
  margin-top: auto;
  padding: 14px 18px;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 16px 28px rgba(127, 48, 195, 0.24);
  font-weight: 800;
  text-align: center;
}

.top-nav {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #c348d4);
  border-radius: 14px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #8f7b99;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 0;
}

.nav-links a.active {
  color: var(--primary);
}

.search-field {
  position: relative;
  display: block;
}

.search-field::before {
  position: absolute;
  top: 50%;
  left: 18px;
  z-index: 1;
  color: #b69fc1;
  content: "⌕";
  transform: translateY(-50%);
}

.search-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px 0 44px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  box-shadow: 0 14px 38px rgba(127, 48, 195, 0.08);
}

.domain-pill {
  max-width: 220px;
  padding: 11px 16px;
  overflow: hidden;
  color: #765980;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  min-height: 250px;
  padding: 34px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(
      circle at 84% 20%,
      rgba(255, 255, 255, 0.34),
      transparent 13rem
    ),
    linear-gradient(135deg, #7829c4 0%, #bb48d0 58%, #ff84c6 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  position: absolute;
  border-radius: 999px;
  content: "";
}

.hero::before {
  right: -52px;
  bottom: -72px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.16);
}

.hero::after {
  top: 34px;
  right: 210px;
  width: 84px;
  height: 84px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-content,
.hero-stats {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 14px;
  color: #5f117e;
  background: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  width: 190px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  backdrop-filter: blur(14px);
}

.hero-stats strong {
  font-size: 3rem;
  line-height: 1;
}

.hero-stats span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 12px 18px;
  color: #80618a;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(127, 48, 195, 0.07);
  font-weight: 800;
}

.chip.active {
  color: #fff;
  background: var(--primary);
}

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

.product-card {
  content-visibility: auto;
  contain-intrinsic-size: 360px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 36px rgba(127, 48, 195, 0.08);
}

.product-art,
.product-image {
  display: grid;
  place-items: center;
  min-height: 168px;
  overflow: hidden;
  border-radius: 16px;
}

.product-art {
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #f2c7ff, #8130c3);
  text-align: center;
}

.product-art span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 22px;
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-art small {
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-art-amazon {
  background: linear-gradient(135deg, #151515, #ffad2b);
}

.product-art-shopee {
  background: linear-gradient(135deg, #ff5a2a, #ffb17e);
}

.product-art-mercadolivre,
.product-art-mercado {
  background: linear-gradient(135deg, #2b6cff, #ffd84a);
}

.product-art-magalu {
  background: linear-gradient(135deg, #0975ff, #60d0ff);
}

.product-art-natura {
  background: linear-gradient(135deg, #844318, #f3b36e);
}

.product-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #fff7ff;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  mix-blend-mode: multiply;
}

.floating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(127, 48, 195, 0.12);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-meta {
  display: grid;
  gap: 10px;
  padding: 18px 8px 14px;
}

.product-badge {
  width: max-content;
  padding: 7px 10px;
  color: var(--primary);
  background: #f9e7ff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h3 {
  display: -webkit-box;
  min-height: 56px;
  margin: 0;
  overflow: hidden;
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: -0.03em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 12px 8px 6px;
}

.product-footer div {
  display: grid;
  gap: 4px;
}

.price-label {
  color: #a08aa9;
  font-size: 0.78rem;
  font-weight: 800;
}

.price-label s {
  color: #b9a9c1;
  text-decoration-thickness: 2px;
}

.product-footer strong {
  font-size: 0.92rem;
}

.round-cta {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 14px 24px rgba(127, 48, 195, 0.25);
  font-size: 1.25rem;
  font-weight: 900;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 0 0;
}

.pagination a,
.pagination .disabled {
  padding: 12px 18px;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  font-weight: 800;
}

.pagination .disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.pagination span:not(.disabled) {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.state-view {
  display: grid;
  place-items: center;
  min-height: 310px;
  padding: 42px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  text-align: center;
}

.state-view.error {
  border-color: rgba(220, 38, 86, 0.22);
  background: #fff0f4;
}

.state-orb {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 35% 30%, #fff, transparent 22px),
    linear-gradient(135deg, #f6b5ff, var(--primary));
  border-radius: 24px;
}

.state-view h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.05em;
}

.state-view p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.redirect-screen,
.preview-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(247, 183, 255, 0.42),
      transparent 26rem
    ),
    var(--bg);
}

.preview-card {
  width: min(720px, 100%);
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.preview-brand {
  margin-bottom: 22px;
}

.preview-product {
  display: grid;
  place-items: center;
  min-height: 300px;
  margin-bottom: 20px;
  background: #fff7ff;
  border-radius: 24px;
}

.preview-product img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  padding: 18px;
  mix-blend-mode: multiply;
}

.preview-card h1 {
  margin: 16px 0 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.preview-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.offer-button {
  display: inline-flex;
  margin-top: 16px;
  padding: 15px 22px;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 16px 28px rgba(127, 48, 195, 0.24);
  font-weight: 900;
}

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

@media (max-width: 1180px) {
  .site-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .site-main {
    padding: 24px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .top-nav {
    grid-template-columns: auto 1fr;
  }

  .nav-links,
  .domain-pill {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar > div:first-child,
  .clear-button {
    display: none;
  }

  .platform-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .platform-item {
    grid-template-columns: 30px auto auto;
    min-width: max-content;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.65);
  }

  .platform-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .site-main {
    gap: 20px;
    padding: 18px;
  }

  .top-nav {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .brand {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 26px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 14vw, 2rem);
  }

  .hero-stats {
    width: 100%;
  }

  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .chip {
    white-space: nowrap;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card {
    contain-intrinsic-size: 318px;
    min-height: 318px;
  }
}

@media (max-width: 560px) {
  .site-main {
    padding: 12px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    contain-intrinsic-size: 250px;
    min-height: 0;
    padding: 8px;
    border-radius: 16px;
  }

  .product-art,
  .product-image {
    min-height: 112px;
    border-radius: 12px;
  }

  .product-image img {
    height: 128px;
    padding: 8px;
  }

  .floating-badge {
    top: 8px;
    right: 8px;
    padding: 5px 7px;
    font-size: 0.58rem;
  }

  .product-meta {
    gap: 6px;
    padding: 10px 4px 8px;
  }

  .product-badge {
    padding: 5px 7px;
    font-size: 0.58rem;
  }

  .product-card h3 {
    min-height: 42px;
    font-size: 0.86rem;
    line-height: 1.24;
  }

  .product-footer {
    gap: 8px;
    padding: 8px 4px 4px;
  }

  .price-label {
    font-size: 0.64rem;
  }

  .product-footer strong {
    font-size: 0.82rem;
  }

  .round-cta {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .pagination {
    flex-direction: column;
  }
}

