/*
Theme Name: Ronghua Heritage
Description: Luxury Cross-Border E-commerce theme for handcrafted Chinese art.
Author: WordPress Expert
Version: 1.0
*/

:root {
  --bg-color: #F9F9F7;
  --text-dark: #1A1A1A;
  --text-light: #555555;
  --accent-red: #8B0000;
  --accent-teal: #2F4F4F;
  --border-color: #E5E5E0;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --container-max: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

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

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

/* Navigation */
.site-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}

.nav-menu a:hover {
  opacity: 0.6;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-menu {
    display: none; /* In a real scenario, implement a hamburger */
  }
}

/* Hero */
.hero {
  padding: 80px 0;
  text-align: center;
  background: #fff;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 64px);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  border: 1px solid var(--text-dark);
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.btn:hover {
  background: var(--text-dark);
  color: #fff;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--text-dark);
}

/* Grid Systems */
.grid {
  display: grid;
  gap: 30px;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product Cards */
.product-card {
  text-align: center;
  background: #fff;
  padding: 20px;
  border: 1px solid transparent;
  transition: border 0.3s;
}

.product-card:hover {
  border-color: var(--border-color);
}

.product-card img {
  margin-bottom: 20px;
  transition: transform 0.5s;
}

.product-card:hover img {
  transform: scale(1.03);
}

.product-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-price {
  font-weight: 300;
  color: var(--text-light);
}

/* Blog Cards */
.blog-card {
  margin-bottom: 40px;
}

.blog-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 15px;
}

.blog-meta {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: #fff;
  padding: 80px 0 40px;
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-widget h4 {
  margin-bottom: 20px;
  color: #fff;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget ul li {
  margin-bottom: 10px;
}

.footer-widget a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #777;
}