:root {
  --shopee-orange: #ee4d2d;
  --shopee-orange-dark: #d6431f;
  --shopee-orange-light: #ff6a3d;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #222222;
  --text-muted: #757575;
  --star: #ffce3d;
  --border: #eaeaea;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn--light {
  background: #ffffff;
  color: var(--shopee-orange);
}

.btn--light:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn--primary {
  background: var(--shopee-orange);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--shopee-orange-dark);
}

.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Header */
.header {
  background: var(--shopee-orange);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 400;
}

.logo__icon {
  font-size: 1.6rem;
}

.logo__text strong {
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__link {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.95;
}

.nav__link:hover {
  opacity: 1;
  text-decoration: underline;
}

.nav__cta {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--shopee-orange) 0%, var(--shopee-orange-light) 100%);
  color: #ffffff;
  padding: 48px 0;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero__title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin: 0 0 12px;
  font-weight: 800;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin: 0 0 24px;
  opacity: 0.95;
  max-width: 480px;
}

.hero__art {
  font-size: clamp(4rem, 10vw, 8rem);
  flex-shrink: 0;
}

/* Section heading */
.section-heading {
  text-align: center;
  margin: 40px 0 24px;
}

.section-heading h2,
.section-heading__title {
  font-size: 1.5rem;
  margin: 0 0 6px;
  font-weight: 700;
}

.section-heading p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Supplier grid */
.suppliers {
  padding-bottom: 48px;
}

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

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #ffe8d9, #ffd0b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--shopee-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card__badge--verified {
  background: #26aa99;
}

.card__badge--new {
  background: #ffb300;
}

.card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card__name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.6em;
}

.card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card__stars {
  color: var(--star);
  letter-spacing: 1px;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0;
}

.tag {
  background: #fef1ec;
  color: var(--shopee-orange-dark);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.card__location {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card__footer {
  margin-top: auto;
  padding-top: 8px;
}

/* How it works */
.how-it-works {
  background: var(--surface);
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.step {
  text-align: center;
  padding: 16px;
}

.step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--shopee-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: #2b2b2b;
  color: #ffffff;
  padding: 32px 0 16px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo--footer {
  color: #ffffff;
  margin-bottom: 6px;
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0;
}

.footer__cta {
  text-align: right;
}

.footer__cta p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer__disclaimer {
  max-width: 720px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 20px auto 0;
}

.footer__copy {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin: 12px 0 0;
}

/* Responsive breakpoints */
@media (max-width: 992px) {
  .supplier-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .supplier-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .hero__inner {
    text-align: center;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__cta {
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--shopee-orange-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 4px;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav__cta {
    margin-top: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
  }
}

@media (max-width: 600px) {
  .supplier-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .card__body {
    padding: 8px;
  }

  .card__name {
    font-size: 0.85rem;
  }

  .hero {
    padding: 32px 0;
  }
}
