﻿/*
Theme Name: Qianlan B2B Skincare
Theme URI: https://x.qianlan.cloud
Author: Qianlan Cosmetics
Author URI: https://x.qianlan.cloud
Description: A professional B2B skincare and cosmetics theme designed for overseas wholesale business. Features include product catalog, multi-language support, B2B inquiry system, and WooCommerce integration.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qianlan-b2b
Domain Path: /languages
*/

/* Basic reset and typography */
:root {
  --primary: #2d5a3d;
  --primary-light: #4a8c5e;
  --primary-dark: #1a3b25;
  --accent: #c8a96e;
  --accent-light: #e0c99a;
  --text: #333333;
  --text-light: #666666;
  --bg-light: #f8f9f6;
  --bg-white: #ffffff;
  --border: #e0e0e0;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 5px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  margin: 0;
  background: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--primary-dark); line-height: 1.3; }
h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-light); }

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

/* Header */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 15px 20px;
}
.site-branding { display: flex; align-items: center; }
.site-title { font-family: var(--font-heading); font-size: 1.5em; color: var(--primary); margin: 0; }
.site-description { font-size: 0.85em; color: var(--text-light); margin: 0; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-navigation a { color: var(--text); font-weight: 500; font-size: 0.95em; padding: 5px 0; border-bottom: 2px solid transparent; transition: all 0.3s; }
.main-navigation a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* Language Switcher */
.language-switcher { display: flex; gap: 8px; align-items: center; }
.language-switcher a { padding: 4px 10px; border-radius: 4px; font-size: 0.85em; font-weight: 500; border: 1px solid var(--border); }
.language-switcher a.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 100px 20px;
  text-align: center;
}
.hero-section h1 { color: white; font-size: 3em; margin-bottom: 20px; }
.hero-section p { font-size: 1.2em; opacity: 0.9; max-width: 700px; margin: 0 auto 30px; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 35px; border-radius: 50px; font-weight: 600;
  font-size: 1em; cursor: pointer; transition: all 0.3s; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-light); color: var(--primary-dark); }
.btn-outline { background: transparent; color: white; border-color: white; }
.btn-outline:hover { background: white; color: var(--primary); }

/* Featured Categories */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; padding: 80px 20px; }
.category-card { background: var(--bg-light); border-radius: var(--radius); padding: 40px 30px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.category-card h3 { margin-top: 0; }
.category-card .btn { margin-top: 15px; }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; padding: 40px 0; }
.product-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 25px; text-align: center; transition: all 0.3s; }
.product-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.product-card h3 { font-size: 1.1em; margin: 15px 0 10px; }
.product-price { font-size: 1.3em; color: var(--primary); font-weight: 700; }
.product-meta { font-size: 0.85em; color: var(--text-light); margin: 8px 0; }

/* Inquiry Form */
.inquiry-section { background: var(--bg-light); padding: 80px 20px; }
.inquiry-form { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1em; font-family: var(--font-body); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* Footer */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 60px 20px 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; max-width: var(--max-width); margin: 0 auto; }
.footer-column h4 { color: white; font-family: var(--font-heading); margin-bottom: 20px; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 10px; }
.footer-column a { color: rgba(255,255,255,0.7); }
.footer-column a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 30px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); max-width: var(--max-width); margin-left: auto; margin-right: auto; }

/* Page Sections */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { position: relative; display: inline-block; }
.section-title h2:after { content: ""; display: block; width: 60px; height: 3px; background: var(--accent); margin: 15px auto 0; }

/* About Page */
.about-content { max-width: 800px; margin: 0 auto; padding: 80px 20px; }
.about-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.value-item { text-align: center; padding: 30px; }
.value-icon { font-size: 3em; margin-bottom: 15px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { cursor: pointer; font-size: 1.1em; margin: 0; }
.faq-answer { padding-top: 15px; color: var(--text-light); }

/* Contact Page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: var(--max-width); margin: 0 auto; padding: 80px 20px; }
.contact-info h3 { margin-bottom: 15px; }
.contact-detail { margin-bottom: 20px; }
.contact-detail strong { display: block; color: var(--primary); }

/* MOQ Notice */
.moq-notice { background: var(--accent); color: var(--primary-dark); text-align: center; padding: 12px; font-size: 0.9em; font-weight: 500; }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 15px; }
  .main-navigation ul { flex-direction: column; text-align: center; gap: 10px; }
  .hero-section { padding: 60px 20px; }
  .hero-section h1 { font-size: 2em; }
  .contact-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}
