:root {
  --blue-light: #e8f4f8;
  --blue-mid: #b8dce8;
  --blue-accent: #4a9ebe;
  --blue-deep: #2a7a9e;
  --ink: #1a2a32;
  --ink-soft: #4a5a62;
  --cream: #f9fbfc;
  --border: #d4eaf3;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--ink); line-height: 1.6; padding-bottom: 80px; }

/* Navigation */
nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%; display: flex; align-items: center; justify-content: space-between; height: 70px;
}
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.nav-logo span { color: var(--blue-accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--blue-accent); }

/* Common Layout */
section { padding: 4rem 5%; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue-accent); margin-bottom: 0.8rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--ink); margin-bottom: 1.5rem; }

/* Product Cards */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.product-card { 
  background: white; border: 1px solid var(--border); border-radius: 16px; 
  padding: 1.5rem; transition: all 0.3s ease; position: relative;
}
.product-card:hover { border-color: var(--blue-accent); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(74,158,190,0.1); }
.product-name { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.product-zh { color: var(--blue-deep); font-size: 0.9rem; margin-bottom: 8px; }
.product-price { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--blue-deep); font-size: 1.1rem; }

/* Quantity Controls */
.qty-controls { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.qty-btn { 
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--blue-mid);
  background: white; cursor: pointer; font-weight: bold; color: var(--blue-deep);
}
.qty-btn:hover { background: var(--blue-light); }
.qty-val { font-weight: 600; min-width: 20px; text-align: center; }

/* Shopping List Drawer */
#list-drawer {
  position: fixed; right: -400px; top: 0; width: 380px; height: 100%;
  background: white; z-index: 2000; padding: 2rem; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.05); overflow-y: auto;
}
#list-drawer.active { right: 0; }
.floating-cart {
  position: fixed; bottom: 2rem; right: 2rem; background: var(--blue-accent);
  color: white; padding: 1rem 2rem; border-radius: 50px; cursor: pointer;
  box-shadow: 0 10px 20px rgba(74,158,190,0.3); font-weight: 600; z-index: 1500;
}

/* Buttons */
.btn-primary { 
  background: var(--blue-accent); color: white; border: none; padding: 0.8rem 1.5rem; 
  border-radius: 10px; cursor: pointer; font-weight: 600; width: 100%; transition: 0.2s;
}
.btn-primary:hover { background: var(--blue-deep); }

/* Footer */
footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 4rem 5%; text-align: center; }

@media (max-width: 600px) {
  #list-drawer { width: 100%; right: -100%; }
}
