:root {
  --ink: #241d15;
  --ink-soft: #5a4f40;
  --gold: #b9884f;
  --gold-dark: #8a6620;
  --cream: #faf6ef;
  --cream-deep: #f2ece0;
  --border: #e5ddcc;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(36, 29, 21, 0.08);
  --shadow-sm: 0 2px 10px rgba(36, 29, 21, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--ink); margin: 0 0 0.5em; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-soft); }

/* Topbar */
.topbar { background: var(--ink); color: #ece4d3; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; padding: 8px 24px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #f0d8a8; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--white); z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color:#fff; font-weight:bold; font-family: Georgia, serif; }
.logo-text { font-family: Georgia, serif; font-size: 20px; font-weight: bold; letter-spacing: 0.5px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 15px; color: var(--ink); }
.main-nav a:hover { color: var(--gold-dark); }
.nav-item.has-dropdown { position: relative; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 220px; padding: 8px; flex-direction: column; }
.nav-item.has-dropdown:hover .dropdown { display: flex; }
.dropdown a { padding: 8px 10px; border-radius: 6px; }
.dropdown a:hover { background: var(--cream-deep); }
.btn-nav { background: var(--gold); color: #fff !important; padding: 9px 18px; border-radius: 999px; }
.btn-nav:hover { background: var(--gold-dark); }
.mobile-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--cream), var(--cream-deep)); padding: 70px 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 42px; line-height: 1.15; }
.hero p.lead { font-size: 18px; color: var(--ink-soft); max-width: 520px; }
.hero-badges { display: flex; gap: 22px; margin-top: 24px; flex-wrap: wrap; }
.hero-badge { font-size: 13px; color: var(--ink-soft); border-left: 3px solid var(--gold); padding-left: 10px; }
.hero-art { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hero-art img { width: 100%; height: 130px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.btn { display: inline-block; background: var(--gold); color: #fff; padding: 13px 26px; border-radius: 999px; font-weight: 600; margin-top: 26px; }
.btn:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--gold); color: var(--gold-dark); }

/* Section */
.section { padding: 60px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: 30px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.6px; font-size: 12px; color: var(--gold-dark); font-weight: 700; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.cat-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform .18s ease, box-shadow .18s ease; background: #fff; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.cat-card-body { padding: 16px 18px; }
.cat-card-body h3 { font-size: 18px; margin-bottom: 4px; }
.cat-card-body p { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; }
.cat-count { font-size: 12px; color: var(--gold-dark); font-weight: 600; }

/* Why us */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--cream); }
.feature h3 { font-size: 17px; }
.feature .icon { font-size: 26px; margin-bottom: 10px; display:block; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.product-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .18s ease, transform .18s ease; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.product-card-body { padding: 14px 16px; }
.product-card-body .code { font-size: 11px; color: var(--gold-dark); font-weight: 700; letter-spacing: .5px; }
.product-card-body h3 { font-size: 16px; margin: 4px 0 6px; }
.product-card-body .meta { font-size: 12.5px; color: var(--ink-soft); }
.product-card-body .moq { margin-top: 8px; font-size: 12.5px; font-weight: 600; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumb a:hover { color: var(--gold-dark); }

/* Category header */
.category-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; padding: 40px 0; }
.category-hero img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.category-hero .cluster-tag { display:inline-block; font-size:12px; background: var(--cream-deep); color: var(--gold-dark); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; font-weight: 600;}

/* Product page */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 30px 0 60px; align-items: start; }
.gallery-main { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; background: var(--cream); }
.gallery-main img { width: 100%; display: block; transition: transform .25s ease; }
.gallery-main.zoomed img { transform: scale(1.7); cursor: zoom-out; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; opacity: .75; }
.gallery-thumbs img.active { border-color: var(--gold); opacity: 1; }
.gallery-fullscreen-btn { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.55); color: #fff; border: none; padding: 6px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; }

.product-info .code { font-size: 12px; color: var(--gold-dark); font-weight: 700; }
.product-info h1 { font-size: 30px; margin: 6px 0 14px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 9px 4px; font-size: 14px; }
.spec-table td:first-child { color: var(--ink-soft); width: 42%; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
.tag { background: var(--cream-deep); padding: 5px 12px; border-radius: 999px; font-size: 12.5px; }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(20,15,10,0.92); display: none; align-items: center; justify-content: center; z-index: 999; flex-direction: column; }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 82vh; border-radius: 6px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 30px; background: none; border: none; cursor: pointer; }
.lightbox-nav { display: flex; gap: 40px; margin-top: 16px; }
.lightbox-nav button { background: rgba(255,255,255,0.12); color: #fff; border: none; padding: 10px 16px; border-radius: 6px; cursor: pointer; font-size: 18px; }
.lightbox-nav button:hover { background: rgba(255,255,255,0.25); }

/* Forms */
.form-box { max-width: 640px; margin: 0 auto; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.alert-success { background: #eaf6ee; border: 1px solid #bfe4cb; color: #226a3a; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }

/* Content pages (guides, blog, faqs) */
.content-page { max-width: 820px; margin: 0 auto; padding: 40px 0 70px; }
.content-page h1 { font-size: 32px; }
.content-page h2 { font-size: 22px; margin-top: 34px; }
.guide-section { margin-bottom: 26px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.blog-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 24px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: #fff; }
.blog-card h3 { font-size: 17px; }
.blog-card a.readmore { color: var(--gold-dark); font-weight: 600; font-size: 13.5px; }

/* Footer */
.site-footer { background: var(--ink); color: #d9cfbe; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 50px 24px 30px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 8px; font-size: 13.5px; }
.footer-list a:hover { color: var(--gold); }
.footer-logo { margin-bottom: 12px; }
.footer-logo .logo-text { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 24px; font-size: 12.5px; text-align: center; }

@media (max-width: 900px) {
  .hero-inner, .category-hero, .product-page { grid-template-columns: 1fr; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 16px 24px; border-bottom: 1px solid var(--border); display: none; }
  .main-nav.open { display: flex; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
