﻿/* ========================================
   CSS VARIABLES - Material You Theme + Brand
   ======================================== */
:root {
  /* Material You Light Theme (HSL) */
  --m3-primary: hsl(212, 100%, 45%);
  --m3-primary-foreground: hsl(0, 0%, 100%);
  --m3-background: hsl(240, 18%, 97%);
  --m3-foreground: hsl(240, 10%, 10%);
  --m3-card: hsl(240, 18%, 98%);
  --m3-card-foreground: hsl(240, 10%, 10%);
  --m3-secondary: hsl(240, 20%, 90%);
  --m3-secondary-foreground: hsl(240, 10%, 15%);
  --m3-muted: hsl(240, 10%, 92%);
  --m3-muted-foreground: hsl(240, 5%, 40%);
  --m3-accent: hsl(221.25, 40%, 92.16%);
  --m3-accent-foreground: hsl(225.48, 60.78%, 20%);
  --m3-border: hsl(240, 10%, 88%);
  --m3-ring: hsl(212, 100%, 45%);
  --m3-destructive: hsl(0, 84%, 60%);
  --m3-radius: 1.75rem;

  /* Brand Colors */
  --color-ink: #141820;
  --color-muted: #667085;
  --color-canvas: #F7F8FA;
  --color-surface: #FFFFFF;
  --color-brand: #0F8B8D;
  --color-brand-light: #e6f5f5;
  --color-accent: #F4A261;
  --color-accent-light: #fef3e6;
  --color-success: #1F9D55;
  --color-warning: #D97706;
  --color-danger: #D92D20;
  --color-primary: hsl(212, 100%, 45%);
  --color-primary-light: hsl(212, 100%, 95%);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 1.75rem;

  /* Container */
  --container: 1200px;
  --container-sm: 800px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.03);

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-ink);
  background-color: var(--color-canvas);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-ink);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.2);
}

button:focus:not(:focus-visible) {
  outline: none;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--sm {
  max-width: var(--container-sm);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background-color: var(--color-surface);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

.flex {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.flex--between {
  justify-content: space-between;
}

.flex--center {
  justify-content: center;
}

.flex--wrap {
  flex-wrap: wrap;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-ink);
}

h1 { font-size: var(--font-size-4xl); margin-bottom: var(--space-lg); }
h2 { font-size: var(--font-size-3xl); margin-bottom: var(--space-md); }
h3 { font-size: var(--font-size-xl); margin-bottom: var(--space-sm); }
h4 { font-size: var(--font-size-lg); margin-bottom: var(--space-sm); }

p {
  color: var(--color-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

.text-center { text-align: center; }
.text-sm { font-size: var(--font-size-sm); }
.text-lg { font-size: var(--font-size-lg); }
.text-muted { color: var(--color-muted); }
.text-brand { color: var(--color-brand); }

.section-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: var(--font-size-lg);
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-bottom: 1px solid var(--m3-border);
  box-shadow: var(--shadow-xs);
  overflow: visible;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  overflow: visible;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
}

.header__logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
}

.header__logo-icon img {
  display: block;
  width: 32px;
  height: 32px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  overflow: visible;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__nav-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-ink);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  overflow: visible;
}

/* ========================================
   LANGUAGE DROPDOWN
   ======================================== */
.lang-dropdown {
  position: relative;
  z-index: 1001;
}

.lang-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1.5px solid var(--m3-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-ink);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.lang-dropdown__trigger:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.lang-dropdown__trigger[aria-expanded="true"] {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.1);
}

.lang-dropdown__globe {
  font-size: var(--font-size-base);
  line-height: 1;
}

.lang-dropdown__arrow {
  font-size: 10px;
  color: var(--color-muted);
  transition: transform 0.2s;
  line-height: 1;
}

.lang-dropdown__trigger[aria-expanded="true"] .lang-dropdown__arrow {
  transform: rotate(180deg);
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--color-surface);
  border: 1px solid var(--m3-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1002;
  pointer-events: none;
}

.lang-dropdown__menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.lang-dropdown__item:hover {
  background: var(--color-brand-light);
  color: var(--color-brand);
}

.lang-dropdown__item--active {
  color: var(--color-brand);
  font-weight: 600;
  background: var(--color-brand-light);
}

.lang-dropdown__item--active::after {
  content: '✓';
  margin-left: auto;
  font-size: var(--font-size-xs);
  color: var(--color-brand);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========================================
   BUTTONS - Material You Style
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0 24px;
  height: 44px;
  border: none;
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: #0a7072;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--m3-secondary);
  color: var(--color-ink);
}

.btn--secondary:hover {
  background: var(--m3-muted);
  color: var(--color-ink);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--m3-border);
  color: var(--color-ink);
}

.btn--outline:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-light);
}

.btn--accent {
  background: var(--color-accent);
  color: #ffffff;
}

.btn--accent:hover {
  background: #e08f4e;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn--lg {
  height: 56px;
  padding: 0 32px;
  font-size: var(--font-size-base);
  border-radius: 28px;
}

.btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: var(--font-size-xs);
}

.btn--full {
  width: 100%;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-brand-light) 50%, var(--color-canvas) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15, 139, 141, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  background: var(--color-brand-light);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-brand);
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--color-ink);
}

.hero__desc {
  font-size: var(--font-size-lg);
  color: var(--color-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 520px;
}

.hero__visual {
  position: relative;
  z-index: 1;
}

.hero__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.hero__card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--m3-border);
}

.hero__card--featured {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.hero__card-img {
  width: 100%;
  height: 100px;
  background: linear-gradient(135deg, #0F8B8D, #14B8A6);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 500;
}

.hero__card-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 4px;
}

.hero__card-meta {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

.hero__card-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-brand-light);
  color: var(--color-brand);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 500;
  margin-top: 4px;
}

/* B2B Sourcing Signal Pills */
.hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero__signal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  white-space: nowrap;
}

.hero__signal-pill--sample {
  background: #ECFDF5;
  color: #1F9D55;
}

.hero__signal-pill--supplier {
  background: #FFF7ED;
  color: #C2410C;
}

.hero__signal-pill--bulk {
  background: #EFF6FF;
  color: #1D4ED8;
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--m3-border);
  overflow: hidden;
  transition: all 0.2s ease;
}

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

.product-card__img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #0F8B8D, #14B8A6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: var(--font-size-sm);
  position: relative;
}

.product-card__img--coral { background: linear-gradient(135deg, #F97066, #FB923C); }
.product-card__img--purple { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.product-card__img--sky { background: linear-gradient(135deg, #0EA5E9, #38BDF8); }
.product-card__img--green { background: linear-gradient(135deg, #1F9D55, #34D399); }
.product-card__img--orange { background: linear-gradient(135deg, #F4A261, #FBBF24); }
.product-card__img--teal { background: linear-gradient(135deg, #0F8B8D, #14B8A6); }
.product-card__img--rose { background: linear-gradient(135deg, #F43F5E, #FB7185); }
.product-card__img--indigo { background: linear-gradient(135deg, #6366F1, #818CF8); }

.product-card__tags {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.product-card__body {
  padding: var(--space-lg);
}

.product-card__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-ink);
}

.product-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-normal);
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.product-card__price {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-brand);
}

.product-card__price span {
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: var(--color-muted);
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-sm);
}

.product-card__rating-stars {
  color: var(--color-accent);
}

.product-card__rating-count {
  color: var(--color-muted);
  font-size: var(--font-size-xs);
}

.product-card__actions {
  display: flex;
  gap: var(--space-sm);
}

.product-card__actions .btn {
  flex: 1;
}

/* ========================================
   BADGES & TAGS
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.badge--sample {
  background: var(--color-brand-light);
  color: var(--color-brand);
}

.badge--bulk {
  background: var(--color-accent-light);
  color: var(--color-warning);
}

.badge--promo {
  background: #f0fdf4;
  color: var(--color-success);
}

.badge--trending {
  background: #fef2f2;
  color: var(--color-danger);
}

.badge--moq {
  background: var(--m3-muted);
  color: var(--color-muted);
}

/* ========================================
   TRUST BADGES
   ======================================== */
.trust-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.trust-badge__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-light);
  border-radius: 50%;
  color: var(--color-brand);
  font-size: 10px;
}

/* ========================================
   FEATURE CARDS
   ======================================== */
.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid var(--m3-border);
  transition: all 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: var(--font-size-xl);
}

.feature-card__icon--brand {
  background: var(--color-brand-light);
  color: var(--color-brand);
}

.feature-card__icon--accent {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.feature-card__icon--success {
  background: #f0fdf4;
  color: var(--color-success);
}

.feature-card__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   ROLE CARDS
   ======================================== */
.role-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid var(--m3-border);
  text-align: center;
  transition: all 0.2s ease;
}

.role-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-brand);
}

.role-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: var(--font-size-2xl);
  background: var(--color-brand-light);
  color: var(--color-brand);
}

.role-card__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.role-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   PROCESS STEPS
   ======================================== */
.process {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.process__step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 var(--space-md);
}

.process__step::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--m3-border);
  z-index: 0;
}

.process__step:last-child::after {
  display: none;
}

.process__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto var(--space-md);
  position: relative;
  z-index: 1;
}

.process__title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 4px;
}

.process__desc {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

/* ========================================
   SEARCH BAR
   ======================================== */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-surface);
  border: 1.5px solid var(--m3-border);
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 20px;
  margin-bottom: var(--space-xl);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.1);
}

.search-bar__icon {
  font-size: var(--font-size-lg);
  color: var(--color-muted);
  flex-shrink: 0;
}

.search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: var(--font-size-base);
  color: var(--color-ink);
  background: transparent;
  padding: 10px 0;
}

.search-bar__input::placeholder {
  color: var(--color-muted);
}

.search-bar__btn {
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--color-brand);
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.search-bar__btn:hover {
  background: #0a7072;
}

/* ========================================
   PRODUCT LAYOUT (Sidebar + Grid)
   ======================================== */
.product-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* ========================================
   FILTER SIDEBAR
   ======================================== */
.filter-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--m3-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: sticky;
  top: 80px;
}

.filter-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--m3-border);
}

.filter-sidebar__title {
  font-size: var(--font-size-base);
  font-weight: 600;
}

.filter-sidebar__clear {
  font-size: var(--font-size-sm);
  color: var(--color-brand);
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 500;
  transition: color 0.2s;
}

.filter-sidebar__clear:hover {
  color: var(--color-ink);
}

.filter-sidebar__close-mobile {
  display: none;
}

.filter-group {
  margin-bottom: var(--space-lg);
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group__title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.filter-group__toggle {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  transition: transform 0.2s;
}

.filter-group__toggle--collapsed {
  transform: rotate(-90deg);
}

.filter-group__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.filter-group__options--collapsed {
  display: none;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 0;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.filter-option:hover {
  color: var(--color-ink);
}

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-brand);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-option__count {
  margin-left: auto;
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  opacity: 0.7;
}

/* Price Range */
.price-range {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.price-range__input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--m3-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--color-ink);
  background: var(--color-canvas);
  outline: none;
  transition: border-color 0.2s;
}

.price-range__input:focus {
  border-color: var(--color-brand);
}

.price-range__sep {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
}

/* Mobile filter toggle */
.filter-mobile-toggle {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  border: 1.5px solid var(--m3-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-ink);
  cursor: pointer;
  margin-bottom: var(--space-md);
  transition: all 0.2s;
}

.filter-mobile-toggle:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.filter-mobile-toggle__count {
  background: var(--color-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
}

.filter-overlay--visible {
  display: block;
}

/* ========================================
   FILTER CHIPS (Active Filters)
   ======================================== */
.filter-chips {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--color-brand-light);
  color: var(--color-brand);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-xs);
  font-weight: 500;
  white-space: nowrap;
}

.filter-chip__remove {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  line-height: 1;
  border: none;
  transition: background 0.2s;
}

.filter-chip__remove:hover {
  background: var(--color-ink);
}

.filter-chips__clear {
  font-size: var(--font-size-xs);
  color: var(--color-brand);
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 500;
  margin-left: var(--space-xs);
}

.filter-chips__clear:hover {
  color: var(--color-ink);
}

/* ========================================
   TOOLBAR (Sort + Results Count)
   ======================================== */
.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
}

.product-toolbar__count {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.product-toolbar__count strong {
  color: var(--color-ink);
  font-weight: 600;
}

.product-toolbar__sort {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-toolbar__sort-label {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  white-space: nowrap;
}

.product-toolbar__sort-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--m3-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--font-size-sm);
  color: var(--color-ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667085' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  outline: none;
  transition: border-color 0.2s;
}

.product-toolbar__sort-select:focus {
  border-color: var(--color-brand);
}

/* ========================================
   FILTERS (Legacy - kept for backward compat)
   ======================================== */
.filters {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--m3-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn--active {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-light);
}

/* ========================================
   PRODUCT DETAIL
   ======================================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.product-detail__gallery {
  position: sticky;
  top: 80px;
}

.product-detail__main-img {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #0F8B8D, #14B8A6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}

.product-detail__thumbs {
  display: flex;
  gap: var(--space-sm);
}

.product-detail__thumb {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #0F8B8D, #14B8A6);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
}

.product-detail__thumb:nth-child(2) { background: linear-gradient(135deg, #F97066, #FB923C); }
.product-detail__thumb:nth-child(3) { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.product-detail__thumb:nth-child(4) { background: linear-gradient(135deg, #0EA5E9, #38BDF8); }

.product-detail__thumb--active {
  border-color: var(--color-brand);
}

.product-detail__info {
  padding: var(--space-lg) 0;
}

.product-detail__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.product-detail__rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.product-detail__rating-stars {
  color: var(--color-accent);
  font-size: var(--font-size-lg);
}

.product-detail__rating-text {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.product-detail__pricing {
  background: var(--color-canvas);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.product-detail__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.product-detail__sample-price {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-brand);
}

.product-detail__sample-label {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.product-detail__moq {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.product-detail__badges {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.product-detail__section {
  margin-bottom: var(--space-xl);
}

.product-detail__section-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--m3-border);
}

.product-detail__list {
  list-style: none;
}

.product-detail__list li {
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-detail__list li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 600;
}

.product-detail__specs {
  width: 100%;
  border-collapse: collapse;
}

.product-detail__specs tr {
  border-bottom: 1px solid var(--m3-border);
}

.product-detail__specs td {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
}

.product-detail__specs td:first-child {
  font-weight: 500;
  color: var(--color-ink);
  width: 40%;
}

.product-detail__specs td:last-child {
  color: var(--color-muted);
}

/* ========================================
   REVIEWS
   ======================================== */
.review-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--m3-border);
  margin-bottom: var(--space-md);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--m3-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-muted);
  font-size: var(--font-size-sm);
}

.review-card__name {
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.review-card__date {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

.review-card__stars {
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.review-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   FORMS
   ======================================== */
.form {
  max-width: 640px;
}

.form--full {
  max-width: 100%;
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--m3-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--font-size-base);
  color: var(--color-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.1);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667085' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form__checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  cursor: pointer;
}

.form__checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-brand);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand-desc {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-top: var(--space-md);
  color: rgba(255, 255, 255, 0.5);
}

.footer__title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #ffffff;
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer__compliance {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.35);
  max-width: 600px;
  line-height: var(--line-height-relaxed);
}

/* ========================================
   PAGE HERO (Inner pages)
   ======================================== */
.page-hero {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-brand-light) 100%);
}

.page-hero__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.page-hero__desc {
  font-size: var(--font-size-lg);
  color: var(--color-muted);
  max-width: 640px;
}

/* ========================================
   INFO SECTIONS
   ======================================== */
.info-block {
  margin-bottom: var(--space-xl);
}

.info-block__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.info-block__list {
  list-style: none;
}

.info-block__list li {
  padding: var(--space-sm) 0;
  font-size: var(--font-size-base);
  color: var(--color-muted);
  padding-left: var(--space-lg);
  position: relative;
}

.info-block__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-brand);
  font-weight: 600;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-section--brand {
  background: linear-gradient(135deg, var(--color-brand) 0%, #0a7072 100%);
  color: #ffffff;
}

.cta-section--brand h2,
.cta-section--brand p {
  color: #ffffff;
}

.cta-section--brand p {
  opacity: 0.85;
}

/* ========================================
   SOCIAL PROOF
   ======================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
  padding: var(--space-xl) 0;
}

.stat__number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 4px;
}

.stat__label {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

/* ========================================
   AUTH MODAL
   ======================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: var(--space-lg);
}

.auth-overlay--open {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}

.auth-overlay--open .auth-modal {
  transform: translateY(0) scale(1);
}

.auth-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--m3-border);
}

.auth-modal__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-ink);
}

.auth-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--m3-muted);
  color: var(--color-muted);
  font-size: var(--font-size-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.auth-modal__close:hover {
  background: var(--m3-secondary);
  color: var(--color-ink);
}

.auth-modal__tabs {
  display: flex;
  border-bottom: 1px solid var(--m3-border);
}

.auth-modal__tab {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: none;
  background: transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 2px solid transparent;
  position: relative;
  bottom: -1px;
}

.auth-modal__tab--active {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}

.auth-modal__tab:hover:not(.auth-modal__tab--active) {
  color: var(--color-ink);
}

.auth-modal__body {
  padding: var(--space-xl);
}

.auth-modal__form {
  display: none;
}

.auth-modal__form--active {
  display: block;
}

.auth-modal__form .form__group {
  margin-bottom: var(--space-md);
}

.auth-modal__form .form__input {
  border-radius: var(--radius-lg);
  padding: 12px 16px;
}

.auth-modal__submit {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--color-brand);
  color: #ffffff;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: var(--space-sm);
}

.auth-modal__submit:hover {
  background: #0a7072;
  box-shadow: var(--shadow-md);
}

.auth-modal__divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--color-muted);
  font-size: var(--font-size-sm);
}

.auth-modal__divider::before,
.auth-modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--m3-border);
}

.auth-modal__social {
  display: flex;
  gap: var(--space-sm);
}

.auth-modal__social-btn {
  flex: 1;
  height: 44px;
  border: 1.5px solid var(--m3-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.auth-modal__social-btn:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-light);
}

.auth-modal__footer {
  padding: 0 var(--space-xl) var(--space-lg);
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.auth-modal__footer a {
  color: var(--color-brand);
  font-weight: 500;
}

/* ========================================
   SOCIAL SHARE
   ======================================== */
.social-share {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--m3-border);
}

.social-share__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.social-share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.social-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1.5px solid var(--m3-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap;
  line-height: 1;
}

.social-share__btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-light);
}

.social-share__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.25);
}

.social-share__btn:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.social-share__btn svg {
  flex-shrink: 0;
}

.social-share__label {
  display: inline;
}

/* Platform-specific hover colors */
.social-share__btn--wechat:hover {
  border-color: #07C160;
  color: #07C160;
  background: rgba(7, 193, 96, 0.08);
}

.social-share__btn--whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
  background: rgba(37, 211, 102, 0.08);
}

.social-share__btn--twitter:hover {
  border-color: #1DA1F2;
  color: #1DA1F2;
  background: rgba(29, 161, 242, 0.08);
}

.social-share__btn--facebook:hover {
  border-color: #1877F2;
  color: #1877F2;
  background: rgba(24, 119, 242, 0.08);
}

.social-share__btn--linkedin:hover {
  border-color: #0A66C2;
  color: #0A66C2;
  background: rgba(10, 102, 194, 0.08);
}

.social-share__btn--copy:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-light);
}

/* WeChat tooltip */
.social-share__btn--wechat {
  position: relative;
}

.social-share__btn--wechat::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--color-ink);
  color: #fff;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.social-share__btn--wechat:hover::after {
  opacity: 1;
}

/* Copy toast */
.social-share__toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 24px;
  background: var(--color-ink);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
}

.social-share__toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile: compact icon-only circular buttons */
@media (max-width: 768px) {
  .social-share__btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .social-share__label {
    display: none;
  }

  .social-share__buttons {
    gap: var(--space-md);
  }
}

/* Header Auth Button */
.header__auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1.5px solid var(--color-brand);
  border-radius: var(--radius-xl);
  background: transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-brand);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1;
  outline: none;
}

.header__auth-btn:hover {
  background: var(--color-brand);
  color: #ffffff;
}

.header__auth-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.2);
}

/* Header Cart Icon */
.header__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brand-light);
  color: var(--color-brand);
  text-decoration: none;
  font-size: 18px;
  transition: background 0.2s, color 0.2s;
  outline: none;
}

.header__cart:hover {
  background: var(--color-brand);
  color: #ffffff;
}

.header__cart:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.2);
}

.header__cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ========================================
   CART PAGE
   ======================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xl);
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--m3-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: box-shadow 0.2s;
}

.cart-item:hover {
  box-shadow: var(--shadow-sm);
}

.cart-item__img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.cart-item__img--teal { background: linear-gradient(135deg, #0F8B8D, #14B8A6); }
.cart-item__img--coral { background: linear-gradient(135deg, #F97066, #FB923C); }
.cart-item__img--purple { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.cart-item__variant {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.cart-item__pricing {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
}

.cart-item__sample-price {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-brand);
}

.cart-item__bulk-price {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.cart-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--m3-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cart-item__qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cart-item__qty-btn:hover {
  background: var(--m3-muted);
}

.cart-item__qty-value {
  width: 44px;
  height: 36px;
  border: none;
  border-left: 1.5px solid var(--m3-border);
  border-right: 1.5px solid var(--m3-border);
  background: var(--color-surface);
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-ink);
}

.cart-item__remove {
  border: none;
  background: none;
  color: var(--color-danger);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.2s;
}

.cart-item__remove:hover {
  opacity: 0.7;
}

/* Cart Summary */
.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--m3-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: sticky;
  top: 80px;
}

.cart-summary__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--m3-border);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.cart-summary__row--total {
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 2px solid var(--m3-border);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-ink);
}

.cart-summary__row--total span:last-child {
  color: var(--color-brand);
}

.cart-summary__shipping-note {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  background: var(--color-canvas);
  border-radius: var(--radius-sm);
}

.cart-summary__actions {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Empty Cart */
.cart-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.cart-empty__icon {
  font-size: 64px;
  margin-bottom: var(--space-lg);
  opacity: 0.4;
}

.cart-empty__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.cart-empty__desc {
  font-size: var(--font-size-base);
  color: var(--color-muted);
  margin-bottom: var(--space-xl);
}

/* ========================================
   CHECKOUT PAGE
   ======================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-xl);
  align-items: start;
}

.checkout-section {
  background: var(--color-surface);
  border: 1px solid var(--m3-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.checkout-section__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--m3-border);
}

.checkout-section .form__group {
  margin-bottom: var(--space-md);
}

.checkout-section .form__input,
.checkout-section .form__select {
  border-radius: var(--radius-lg);
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.payment-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 1.5px solid var(--m3-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.payment-method:hover {
  border-color: var(--color-brand);
}

.payment-method--selected {
  border-color: var(--color-brand);
  background: var(--color-brand-light);
}

.payment-method input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-brand);
  flex-shrink: 0;
}

.payment-method__icon {
  font-size: var(--font-size-xl);
  width: 32px;
  text-align: center;
}

.payment-method__info {
  flex: 1;
}

.payment-method__name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-ink);
}

.payment-method__desc {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

/* Order Summary Sidebar */
.order-summary {
  background: var(--color-surface);
  border: 1px solid var(--m3-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  position: sticky;
  top: 80px;
}

.order-summary__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--m3-border);
}

.order-summary__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--m3-border);
}

.order-summary__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.order-summary__item-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 9px;
}

.order-summary__item-info {
  flex: 1;
  min-width: 0;
}

.order-summary__item-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-summary__item-qty {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

.order-summary__item-price {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

.order-summary__row--total {
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 2px solid var(--m3-border);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-ink);
}

.order-summary__row--total span:last-child {
  color: var(--color-brand);
}

.order-summary__place-order {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--color-brand);
  color: #ffffff;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: var(--space-lg);
}

.order-summary__place-order:hover {
  background: #0a7072;
  box-shadow: var(--shadow-md);
}

.order-summary__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

/* Responsive for cart/checkout */
@media (max-width: 1024px) {
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary,
  .order-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .cart-item__actions {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }
  .auth-modal {
    max-width: 100%;
    margin: var(--space-md);
  }
}

/* ========================================
   M3 COMPONENTS
   ======================================== */
.m3-button {
  height: 56px;
  padding: 0 24px;
  border-radius: 28px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.m3-container {
  padding: 1.5rem;
  border-radius: 2rem;
  background-color: var(--m3-secondary);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail__gallery { position: static; }
  .product-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .filter-mobile-toggle { display: flex; }
  .filter-sidebar.filter-sidebar--mobile-closed { display: none; }
  .filter-sidebar.filter-sidebar--mobile-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    border-radius: 0;
    overflow-y: auto;
    padding: var(--space-xl);
    max-width: none;
  }
  .filter-sidebar.filter-sidebar--mobile-open .filter-sidebar__header {
    position: sticky;
    top: 0;
    background: var(--color-surface);
    padding-bottom: var(--space-md);
    z-index: 1;
  }
  .filter-sidebar.filter-sidebar--mobile-open .filter-sidebar__close-mobile {
    display: inline-flex !important;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.25rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
  }

  .header__nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-xl);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .header__nav--open {
    transform: translateX(0);
  }

  .header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header__nav-link {
    display: block;
    padding: var(--space-md) 0;
    font-size: var(--font-size-lg);
    border-bottom: 1px solid var(--m3-border);
  }

  /* On mobile, header__actions stays in the top bar as a compact row */
  .header__actions {
    gap: var(--space-sm);
  }

  /* Hide lang dropdown and CTA in the top bar on mobile — they go into the mobile nav */
  .header__actions .lang-dropdown,
  .header__actions .header__cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: var(--space-xl) 0;
  }

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

  .hero__card--featured {
    grid-column: span 1;
    flex-direction: column;
  }

  .process {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    width: 100%;
  }

  .process__step {
    width: min(100%, 280px);
    padding: 0;
    text-align: center;
  }

  .process__step::after {
    display: none;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

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

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .header__inner {
    padding: 0 var(--space-md);
  }

  .product-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xs);
  }

  .product-card__actions .btn {
    min-width: 0;
    width: 100%;
    padding-left: 6px;
    padding-right: 6px;
    white-space: nowrap;
  }
}
