/* ============================================================
   绿康百香 PC 端商城 — 全局样式
   品牌色系: 森林绿 + 暖金 + 奶油米色
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Brand Colors */
  --c-green-900: #1a3a1a;
  --c-green-800: #1e4d2b;
  --c-green-700: #2d6a3e;
  --c-green-600: #3a8c3f;
  --c-green-500: #4caf50;
  --c-green-400: #66bb6a;
  --c-green-100: #e8f5e9;
  --c-green-50:  #f1f8f1;

  --c-gold-700: #8d6e2c;
  --c-gold-600: #b8860b;
  --c-gold-500: #c8963a;
  --c-gold-400: #d4a84b;
  --c-gold-300: #e8c56a;
  --c-gold-200: #f0d888;
  --c-gold-100: #faf0d0;

  --c-cream:    #faf6ee;
  --c-cream-d:  #f5edd8;
  --c-warm-bg:  #fffcf5;

  --c-text:     #2c2c2c;
  --c-text-sec: #666;
  --c-text-thi: #999;
  --c-border:   #e8e2d6;

  /* Typography */
  --ff-serif:  'Playfair Display', Georgia, serif;
  --ff-body:   'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-w: 1280px;
  --nav-h: 72px;
  --radius: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.15);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--ff-body);
  color: var(--c-text);
  background: var(--c-warm-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--c-green-600); }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }

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

/* ---------- Utility ---------- */
.serif { font-family: var(--ff-serif); }
.text-center { text-align: center; }
.text-green { color: var(--c-green-600); }
.text-gold  { color: var(--c-gold-600); }

/* ============================================================
   1. TOP BAR
   ============================================================ */
.top-bar {
  background: var(--c-green-900);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  height: 36px;
  display: flex;
  align-items: center;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.top-bar a { color: rgba(255,255,255,.75); }
.top-bar a:hover { color: #fff; }
.top-bar-right { display: flex; gap: 20px; align-items: center; }
.top-bar-right .divider { width: 1px; height: 12px; background: rgba(255,255,255,.2); }

/* ============================================================
   2. HEADER / NAV
   ============================================================ */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--c-green-600), var(--c-green-700));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 17px;
  box-shadow: 0 2px 8px rgba(58,140,63,.25);
  flex-shrink: 0;
}
#logo-img {
  height: 38px !important;
  width: 38px !important;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  display: none;
  box-shadow: 0 2px 8px rgba(58,140,63,.2);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text .brand {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-green-800);
  letter-spacing: 1px;
  line-height: 1.3;
  white-space: nowrap;
}
.logo-text .tagline {
  font-size: 10px;
  color: var(--c-text-thi);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Nav Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: center;
  margin: 0 12px;
}
.main-nav a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  border-radius: 8px;
  transition: all .25s;
  position: relative;
  white-space: nowrap;
  letter-spacing: .5px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--c-green-500), var(--c-green-700));
  border-radius: 2px;
  transition: width .3s;
}
.main-nav a:hover { color: var(--c-green-600); background: var(--c-green-50); }
.main-nav a:hover::after { width: 20px; }
.main-nav a.active { color: var(--c-green-700); font-weight: 700; }
.main-nav a.active::after { width: 24px; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--c-green-50);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  padding: 0 14px;
  height: 38px;
  transition: all .3s;
}
.search-box:focus-within {
  border-color: var(--c-green-400);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(76,175,80,.1);
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 160px;
  font-size: 13px;
  color: var(--c-text);
}
.search-box input::placeholder { color: var(--c-text-thi); }
.search-box .search-icon { font-size: 18px; margin-right: 8px; opacity: .5; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: transparent;
  transition: background .25s;
  position: relative;
}
.icon-btn:hover { background: var(--c-green-50); }
.icon-btn .badge {
  position: absolute; top: 2px; right: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #e53935; color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   3. HERO BANNER
   ============================================================ */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.85);
  transition: transform 8s ease-out;
}
.hero:hover .hero-bg { transform: scale(1.03); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,58,26,.72) 0%,
    rgba(30,77,43,.55) 40%,
    rgba(0,0,0,.35) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 16px; border-radius: 24px;
  margin-bottom: 20px; width: fit-content;
  font-size: 13px; color: rgba(255,255,255,.9);
  letter-spacing: .5px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-gold-300);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero h1 {
  font-family: var(--ff-serif);
  font-size: 52px; font-weight: 700;
  color: #fff; line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  max-width: 600px;
}
.hero h1 span {
  color: var(--c-gold-300);
}

.hero-desc {
  font-size: 17px; color: rgba(255,255,255,.85);
  line-height: 1.8; max-width: 520px;
  margin-bottom: 32px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border-radius: 32px;
  background: linear-gradient(135deg, var(--c-green-600), var(--c-green-700));
  color: #fff; font-size: 16px; font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(58,140,63,.4);
  transition: all .3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(58,140,63,.5);
  color: #fff;
}

.btn-outline-light {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border-radius: 32px;
  border: 2px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  color: #fff; font-size: 16px; font-weight: 500;
  transition: all .3s;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.8);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  position: absolute; bottom: 40px; right: 60px;
  z-index: 2;
  display: flex; gap: 32px;
}
.hero-stat {
  text-align: center; color: #fff;
}
.hero-stat .num {
  font-family: var(--ff-serif);
  font-size: 36px; font-weight: 700;
  color: var(--c-gold-300);
  line-height: 1;
}
.hero-stat .label {
  font-size: 12px; color: rgba(255,255,255,.7);
  margin-top: 4px; letter-spacing: 1px;
}

/* ============================================================
   4. TRUST RIBBON
   ============================================================ */
.trust-ribbon {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 24px 0;
}
.trust-ribbon .container {
  display: flex; align-items: center;
  justify-content: center; gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--c-text-sec);
}
.trust-item .icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-green-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

/* ============================================================
   5. FEATURED CATEGORIES
   ============================================================ */
.section { padding: 80px 0; }
.section-header {
  text-align: center; margin-bottom: 56px;
}
.section-header .overline {
  font-size: 13px; font-weight: 600;
  color: var(--c-gold-600);
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--ff-serif);
  font-size: 38px; font-weight: 700;
  color: var(--c-text);
  margin-bottom: 16px;
}
.section-header .desc {
  font-size: 16px; color: var(--c-text-sec);
  max-width: 560px; margin: 0 auto;
  line-height: 1.8;
}
.section-header .line {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--c-green-600), var(--c-gold-400));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Category Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .4s cubic-bezier(.25,.8,.25,1);
  position: relative;
  cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.cat-card-img {
  height: 220px; overflow: hidden;
  position: relative;
}
.cat-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.8,.25,1);
}
.cat-card:hover .cat-card-img img { transform: scale(1.08); }

.cat-card-img .organic-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  padding: 4px 12px; border-radius: 16px;
  font-size: 12px; font-weight: 600;
  color: var(--c-green-700);
  display: flex; align-items: center; gap: 4px;
}

.cat-card-body {
  padding: 20px 24px;
}
.cat-card-body h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 6px;
}
.cat-card-body p {
  font-size: 13px; color: var(--c-text-sec);
  line-height: 1.6;
}
.cat-card-body .price-range {
  margin-top: 12px;
  font-size: 14px; font-weight: 700;
  color: var(--c-green-700);
}
.cat-card-body .arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: 13px; font-weight: 600;
  color: var(--c-green-600);
  transition: gap .3s;
}
.cat-card:hover .arrow-link { gap: 10px; }

/* ============================================================
   6. PRODUCT HOT PICKS
   ============================================================ */
.products-section { background: var(--c-cream); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .4s cubic-bezier(.25,.8,.25,1);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-thumb {
  position: relative;
  height: 260px; overflow: hidden;
  background: var(--c-cream);
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }

.product-thumb .tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 14px; border-radius: 16px;
  font-size: 12px; font-weight: 600;
  color: #fff;
}
.tag-hot { background: linear-gradient(135deg, #e53935, #ff7043); }
.tag-new { background: linear-gradient(135deg, var(--c-green-600), var(--c-green-400)); }
.tag-organic { background: linear-gradient(135deg, var(--c-gold-600), var(--c-gold-400)); }

.product-thumb .quick-actions {
  position: absolute; bottom: -48px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
  padding: 12px;
  transition: bottom .35s cubic-bezier(.25,.8,.25,1);
}
.product-card:hover .quick-actions { bottom: 0; }
.quick-actions button {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
}
.quick-actions button:hover {
  background: var(--c-green-600);
  color: #fff;
  transform: scale(1.1);
}

.product-info { padding: 18px 20px; }
.product-info .product-name {
  font-size: 15px; font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.product-info .product-origin {
  font-size: 12px; color: var(--c-text-thi);
  margin-bottom: 10px;
}
.product-info .price-row {
  display: flex; align-items: baseline; gap: 8px;
}
.price-row .price-now {
  font-size: 22px; font-weight: 800;
  color: var(--c-green-700);
}
.price-row .price-now .yen { font-size: 14px; }
.price-row .price-old {
  font-size: 13px; color: var(--c-text-thi);
  text-decoration: line-through;
}
.product-info .sold {
  font-size: 12px; color: var(--c-text-thi);
  margin-top: 6px;
}

/* ============================================================
   7. BRAND STORY
   ============================================================ */
.story-section { position: relative; overflow: hidden; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.story-image {
  position: relative; border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.story-image img { width: 100%; height: 420px; object-fit: cover; }
.story-image .float-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.float-badge .big { font-size: 28px; font-weight: 800; color: var(--c-green-700); line-height: 1; }
.float-badge .small { font-size: 12px; color: var(--c-text-sec); }

.story-text .overline {
  font-size: 13px; font-weight: 600;
  color: var(--c-gold-600);
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 12px;
}
.story-text h2 {
  font-family: var(--ff-serif);
  font-size: 36px; font-weight: 700;
  line-height: 1.3; margin-bottom: 20px;
}
.story-text p {
  font-size: 15px; color: var(--c-text-sec);
  line-height: 1.9; margin-bottom: 16px;
}
.story-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 28px;
}
.story-feat {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border-radius: 10px;
  background: var(--c-green-50);
  transition: background .3s;
}
.story-feat:hover { background: var(--c-green-100); }
.story-feat .feat-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--c-green-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; flex-shrink: 0;
}
.story-feat .feat-label {
  font-size: 14px; font-weight: 600; line-height: 1.4;
}
.story-feat .feat-desc {
  font-size: 12px; color: var(--c-text-sec); line-height: 1.5;
}

/* ============================================================
   8. PARTNER CTA
   ============================================================ */
.partner-cta {
  background: linear-gradient(135deg, var(--c-green-800) 0%, var(--c-green-900) 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.partner-cta::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,150,58,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.partner-cta .container {
  display: flex; align-items: center;
  justify-content: space-between;
  position: relative; z-index: 1;
}
.partner-info { max-width: 560px; }
.partner-info .overline {
  font-size: 13px; font-weight: 600;
  color: var(--c-gold-300);
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.partner-info h2 {
  font-family: var(--ff-serif);
  font-size: 36px; font-weight: 700;
  color: #fff; line-height: 1.3;
  margin-bottom: 16px;
}
.partner-info p {
  font-size: 15px; color: rgba(255,255,255,.7);
  line-height: 1.8; margin-bottom: 28px;
}
.partner-levels {
  display: flex; gap: 16px;
}
.partner-level {
  flex: 1; padding: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  text-align: center;
  transition: all .3s;
}
.partner-level:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--c-gold-400);
  transform: translateY(-4px);
}
.partner-level .level-icon { font-size: 28px; margin-bottom: 8px; }
.partner-level .level-name {
  font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 4px;
}
.partner-level .level-price {
  font-size: 12px; color: var(--c-gold-300);
}

.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 40px; border-radius: 32px;
  background: linear-gradient(135deg, var(--c-gold-500), var(--c-gold-600));
  color: #fff; font-size: 16px; font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(200,150,58,.4);
  transition: all .3s;
  margin-top: 24px;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,150,58,.5);
  color: #fff;
}

/* ============================================================
   9. TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--c-cream); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testi-card {
  background: #fff;
  padding: 32px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all .35s;
  position: relative;
}
.testi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testi-card .quote-icon {
  font-size: 32px; color: var(--c-green-100);
  position: absolute; top: 20px; right: 24px;
  font-family: var(--ff-serif);
}
.testi-stars { color: var(--c-gold-400); font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testi-text { font-size: 14px; color: var(--c-text-sec); line-height: 1.8; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-green-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--c-green-600);
}
.testi-name { font-size: 14px; font-weight: 600; }
.testi-role { font-size: 12px; color: var(--c-text-thi); }

/* ============================================================
   10. FAQ
   ============================================================ */
.faq-list {
  max-width: 720px; margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--c-border);
  padding: 20px 0;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-size: 16px; font-weight: 600;
  color: var(--c-text);
  transition: color .25s;
}
.faq-q:hover { color: var(--c-green-600); }
.faq-q .toggle-icon { font-size: 20px; transition: transform .3s; color: var(--c-text-thi); }
.faq-item.open .toggle-icon { transform: rotate(45deg); color: var(--c-green-600); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  font-size: 14px; color: var(--c-text-sec); line-height: 1.8;
}
.faq-item.open .faq-a {
  max-height: 200px;
  padding-top: 12px;
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-green-900);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand-name {
  font-size: 22px; font-weight: 800; color: #fff;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px; line-height: 1.8;
  color: rgba(255,255,255,.5);
  max-width: 280px;
}
.footer-social {
  display: flex; gap: 12px; margin-top: 20px;
}
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: rgba(255,255,255,.6);
  transition: all .25s;
}
.footer-social a:hover { background: var(--c-green-600); color: #fff; }

.footer-col h4 {
  font-size: 15px; font-weight: 700; color: #fff;
  margin-bottom: 20px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.5); transition: color .25s; }
.footer-col a:hover { color: #fff; }

.footer-contact p {
  font-size: 13px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.footer-contact .contact-icon { font-size: 16px; }

.footer-bottom {
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: rgba(255,255,255,.6); }

/* ============================================================
   12. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-green-600);
  color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: all .35s;
  z-index: 999;
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover {
  background: var(--c-green-700);
  transform: translateY(-4px);
}

/* ============================================================
   13. ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 120ms); }

/* ============================================================
   14. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 40px; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { display: none; }
  .partner-cta .container { flex-direction: column; text-align: center; }
  .partner-levels { justify-content: center; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .top-bar { display: none; }
  .hero { height: 420px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 28px; }
  .category-grid, .product-grid, .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .main-nav { display: none; }
  .partner-levels { flex-direction: column; }
}

/* ============================================================
   15. LOGIN MODAL
   ============================================================ */
.login-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all .3s;
}
.login-modal-overlay.show {
  opacity: 1; visibility: visible;
}
.login-modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  position: relative;
  transform: scale(.9) translateY(20px);
  transition: transform .3s;
}
.login-modal-overlay.show .login-modal {
  transform: scale(1) translateY(0);
}
.login-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-green-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--c-text-sec);
  transition: all .2s;
}
.login-close:hover { background: #eee; }
.login-header {
  text-align: center; margin-bottom: 28px;
}
.login-logo {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--c-green-600), var(--c-green-700));
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 26px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(58,140,63,.3);
}
.login-header h3 {
  font-size: 22px; font-weight: 700;
  margin-bottom: 4px;
}
.login-header p {
  font-size: 13px; color: var(--c-text-sec);
}
.login-form .form-group {
  margin-bottom: 16px;
}
.login-form label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--c-text); margin-bottom: 6px;
}
.login-form input {
  width: 100%; height: 44px; padding: 0 16px;
  border: 1px solid var(--c-border);
  border-radius: 10px; font-size: 14px;
  outline: none; transition: border-color .25s;
  box-sizing: border-box;
}
.login-form input:focus {
  border-color: var(--c-green-400);
  box-shadow: 0 0 0 3px rgba(76,175,80,.1);
}
.login-error {
  color: #e53935; font-size: 13px;
  min-height: 20px; margin-bottom: 8px;
}
.login-submit {
  width: 100%; height: 48px;
  background: linear-gradient(135deg, var(--c-green-600), var(--c-green-700));
  color: #fff; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 600;
  letter-spacing: 2px; cursor: pointer;
  transition: all .25s;
}
.login-submit:hover {
  box-shadow: 0 4px 16px rgba(58,140,63,.4);
  transform: translateY(-1px);
}
.login-submit:disabled {
  opacity: .6; cursor: not-allowed;
  transform: none;
}
.login-footer-text {
  text-align: center; margin-top: 16px;
  font-size: 13px; color: var(--c-text-sec);
}
.login-footer-text a {
  color: var(--c-green-600); font-weight: 600;
}
.login-footer-text a:hover {
  text-decoration: underline;
}

/* Register form - code row */
.code-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.code-row input {
  flex: 1;
}
.send-code-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 16px;
  background: var(--c-green-50);
  border: 1px solid var(--c-green-400);
  border-radius: 10px;
  color: var(--c-green-700);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s;
}
.send-code-btn:hover {
  background: var(--c-green-100);
}
.send-code-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  background: var(--c-green-50);
}

/* ============================================================
   16. LOADING PLACEHOLDER
   ============================================================ */
.loading-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--c-text-thi);
  font-size: 15px;
}
.loading-placeholder::after {
  content: '';
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--c-green-100);
  border-top-color: var(--c-green-600);
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Product card clickable */
.product-card { cursor: pointer; }
