:root {
  --shopee: #ee4d2d;
  --shopee-deep: #d73211;
  --shopee-soft: #fff5f3;
  --page: #f5f5f5;
  --card: #ffffff;
  --line: #e5e5e5;
  --text: #222;
  --muted: #757575;
  --green: #00bfa5;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

html,
body {
  min-height: 100%;
}

a {
  color: inherit;
}

.site-header {
  background: linear-gradient(180deg, #f8572d 0%, var(--shopee) 62%, #f8562a 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.utility-row,
.header-main,
.topnav,
.promo-banner,
.section,
.product-hero {
  width: min(1200px, calc(100vw - 24px));
  margin-inline: auto;
}

.utility-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 6px;
  font-size: 0.88rem;
}

.utility-links {
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: 0.92;
}

.utility-links a {
  text-decoration: none;
}

.header-main {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  align-items: center;
  padding: 10px 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--shopee);
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-family: 'Sora', sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.brand-copy small {
  opacity: 0.88;
}

.search-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 3px;
  border-radius: 4px;
  background: #fff;
}

.search-input {
  border: 0;
  outline: 0;
  min-width: 0;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
}

.search-button {
  border: 0;
  border-radius: 3px;
  padding: 0 22px;
  background: var(--shopee);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.topnav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0 0 14px;
  font-size: 0.95rem;
}

.topnav a {
  text-decoration: none;
  opacity: 0.92;
}

.promo-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  padding: 24px 0 10px;
}

.promo-tight {
  grid-template-columns: 1fr;
}

.hero-copy {
  border-radius: 2px;
  padding: 32px;
  min-height: 320px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 229, 151, 0.68), transparent 26%),
    radial-gradient(circle at 18% 30%, rgba(255, 162, 57, 0.55), transparent 36%),
    linear-gradient(135deg, #ff541a 0%, #ff6a20 48%, #ff4d2d 100%);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: 2px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  color: #ffe8d8;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero-panel .panel-kicker {
  color: var(--shopee);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Sora', sans-serif;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.hero-text,
.section-note,
.meta,
.product-description,
.stat,
.panel-list {
  line-height: 1.6;
}

.hero-text {
  max-width: 54ch;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.95);
}

.panel-list,
.meta,
.section-note,
.product-description,
.stat {
  color: var(--muted);
}

.hero-actions,
.hero-metrics,
.card-actions,
.price-row,
.product-actions,
.product-meta,
.category-footer,
.feature-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 22px;
}

.cta-button,
.ghost-button,
.link-button,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 2px;
  transition: 160ms ease;
}

.cta-button,
.link-button {
  padding: 13px 18px;
  color: #fff;
  background: var(--shopee);
}

.ghost-button,
.secondary-link {
  padding: 12px 18px;
  color: var(--shopee);
  border: 1px solid #ffd0c4;
  background: #fff;
}

.cta-button:hover,
.ghost-button:hover,
.link-button:hover,
.secondary-link:hover {
  filter: brightness(0.98);
}

.hero-metrics {
  margin-top: 22px;
}

.metric {
  min-width: 126px;
  padding: 14px 16px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.metric strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.55rem;
}

.section {
  padding: 20px 0 32px;
}

.hidden {
  display: none;
}

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

.section .eyebrow {
  color: var(--shopee);
}

.featured-grid,
.category-grid,
.catalog-grid {
  display: grid;
  gap: 10px;
}

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

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

.catalog-grid {
  grid-template-columns: repeat(6, 1fr);
}

.load-more-row {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}

.load-more-button {
  cursor: pointer;
}

.category-block {
  margin-top: 26px;
}

.category-head {
  padding-top: 4px;
}

.category-head-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.feature-card,
.category-card,
.product-card,
.product-shell,
.product-aside {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-card {
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #fff;
}

.feature-overlay {
  padding: 14px 16px 18px;
}

.rank-pill,
.badge-pill,
.meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 700;
}

.rank-pill {
  color: var(--shopee);
  border: 1px solid #ffd0c4;
  background: var(--shopee-soft);
}

.badge-pill {
  color: var(--shopee);
  background: #fff1ee;
}

.feature-title {
  margin: 12px 0 6px;
  font-size: 1rem;
  line-height: 1.4;
  min-height: 2.8em;
}

.feature-bottom strong,
.price-row strong,
.price-block strong {
  color: var(--shopee);
}

.category-card {
  padding: 18px;
}

.category-card h3 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.product-card {
  overflow: hidden;
  border-radius: 2px;
  border-color: #ececec;
  box-shadow: none;
  transition: transform 140ms ease, border-color 140ms ease;
}

.product-card:hover {
  transform: translateY(-1px);
  border-color: #e4e4e4;
}

.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-image-shell {
  position: relative;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #fff;
}

.product-flag {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  background: rgba(255, 245, 240, 0.98);
  color: var(--shopee);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-card-body {
  padding: 8px 10px 10px;
}

.product-card h3 {
  min-height: 2.85em;
  margin: 0 0 6px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-before {
  margin: 0 0 2px;
  color: #9d9d9d;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1;
  text-decoration: line-through;
}

.price-row-shopee {
  gap: 4px;
  align-items: baseline;
}

.price-row strong {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.price-note {
  color: #ff6a3d;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.68rem;
  line-height: 1;
}

.sales-line {
  margin: 6px 0 0;
  color: #222;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.76rem;
  line-height: 1.25;
}

.meta-chip {
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fafafa;
}

.product-hero {
  padding: 18px 0 8px;
}

.product-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 16px;
}

.product-shell,
.product-aside {
  padding: 18px;
}

.product-main-image {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
}

.product-aside h1 {
  max-width: none;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.35;
}

.price-block {
  padding: 16px;
  border-radius: 2px;
  background: #fafafa;
}

.price-block strong {
  font-size: 2rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-card {
  padding: 14px;
  border: 1px solid var(--line);
  background: #fafafa;
}

.stat-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.05rem;
}

@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 920px) {
  .header-main,
  .promo-banner,
  .featured-grid,
  .category-grid,
  .product-layout {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .utility-row,
  .topnav {
    display: none;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card h3 {
    min-height: auto;
  }

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