
:root {
  --primary: #8B4513;
  --primary-dark: #5C2E0B;
  --accent: #D4A373;
  --accent-light: #FAEDCD;
  --dark: #2B2D42;
  --text-muted: #6B7280;
  --bg-light: #FDFBF7;
  --bg-white: #FFFFFF;
  --border: #E8DFD8;
  --shadow: 0 4px 18px rgba(43,45,66,0.06);
  --shadow-hover: 0 10px 25px rgba(139,69,19,0.12);
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Cinzel', serif;
  color: var(--dark);
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top-announcement { background: #231F1C; color: #E5D5C5; font-size: 13px; padding: 8px 0; }
.top-bar-flex { display: flex; justify-content: space-between; align-items: center; }
.top-contacts a { margin-left: 18px; color: #F4E7DA; }
.top-contacts a:hover { color: var(--accent); }

.site-header { background: #FFFFFF; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.header-main { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.main-nav { display: flex; align-items: center; gap: 24px; font-weight: 600; font-size: 15px; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

.dropdown { position: relative; display: inline-block; }
.dropdown-content {
  display: none; position: absolute; background-color: #ffffff; min-width: 260px;
  box-shadow: 0px 8px 24px rgba(0,0,0,0.12); z-index: 101; border-radius: 6px; padding: 8px 0; border: 1px solid var(--border);
}
.dropdown-content a { color: var(--dark); padding: 10px 18px; display: block; font-size: 14px; font-weight: 500; }
.dropdown-content a:hover { background-color: var(--accent-light); color: var(--primary); }
.dropdown:hover .dropdown-content { display: block; }

.btn {
  display: inline-block; padding: 10px 22px; font-size: 14px; font-weight: 700; border-radius: 6px; cursor: pointer; transition: all 0.25s ease;
}
.btn-primary { background: var(--primary); color: #FFF; border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #FFF; }

/* Hero */
.hero { background: linear-gradient(135deg, #FAF6F0 0%, #F0E6D8 100%); padding: 70px 0; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero-tag { display: inline-block; background: var(--accent-light); color: var(--primary); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 30px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.hero h1 { font-size: 44px; line-height: 1.2; margin-bottom: 20px; color: var(--primary-dark); }
.hero p { font-size: 17px; color: #555; margin-bottom: 25px; max-width: 620px; }
.hero-stats { display: flex; gap: 30px; margin-top: 30px; }
.stat-item strong { display: block; font-size: 28px; font-family: 'Cinzel', serif; color: var(--primary); }
.stat-item span { font-size: 13px; color: #777; font-weight: 600; }

/* Product Grid */
.section { padding: 60px 0; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-header h2 { font-size: 32px; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 16px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: #FFF; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.25s ease; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.product-img-wrap { position: relative; width: 100%; padding-top: 100%; background: #FAF9F6; overflow: hidden; }
.product-img-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-info { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.product-cat { font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--primary); letter-spacing: 0.5px; margin-bottom: 6px; }
.product-title { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; flex-grow: 1; color: var(--dark); }
.product-meta { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #F0EAE4; padding-top: 10px; margin-top: 8px; font-size: 13px; }
.product-price { font-size: 18px; font-weight: 700; color: #C2410C; }
.product-moq { color: var(--text-muted); }

/* Detail Page */
.breadcrumb { font-size: 13px; color: #888; margin-bottom: 25px; }
.breadcrumb a { color: var(--primary); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; background: #FFF; padding: 36px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.gallery-main { width: 100%; height: 460px; background: #FAF9F6; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.gallery-main img { max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 15px; }
.gallery-thumb { width: 80px; height: 80px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; padding: 4px; background: #FAF9F6; }
.gallery-thumb.active { border-color: var(--primary); border-width: 2px; }
.specs-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.specs-table th, .specs-table td { padding: 10px 14px; border: 1px solid var(--border); font-size: 14px; text-align: left; }
.specs-table th { background: #FDFBF7; width: 35%; color: #555; }

/* Footer */
.site-footer { background: #221F1D; color: #DDD2C7; padding: 60px 0 25px; border-top: 4px solid var(--primary); margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer-col h4 { color: #FFF; font-size: 17px; margin-bottom: 20px; position: relative; padding-bottom: 8px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 36px; height: 2px; background: var(--accent); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul a:hover { color: var(--accent); }
.footer-col p { font-size: 14px; margin-bottom: 12px; line-height: 1.6; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.badge { background: #35302C; color: #E8DFD8; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.footer-bottom { border-top: 1px solid #332E2A; padding-top: 25px; text-align: center; font-size: 13px; color: #9E9388; }

@media (max-width: 900px) {
  .hero-grid, .detail-grid, .footer-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
