/* ==========================================================
   New Raj Signature & Interior - Online Furniture Catalog
   Website & System by www.fathoni.co.uk
   ========================================================== */
:root {
  --primary: #7a5c3e;
  --primary-dark: #5e4630;
  --accent: #c9a15e;
  --bg: #faf8f5;
  --text: #2c2620;
  --text-muted: #7a736a;
  --border: #e4dfd6;
  --card-bg: #ffffff;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; }
.brand-name { font-size: 19px; font-weight: 700; color: var(--primary-dark); }
.brand-tag { font-size: 11.5px; color: var(--accent); letter-spacing: .5px; }
.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--text); }
.main-nav a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* ---------- Hero / search ---------- */
.hero { background: linear-gradient(135deg, #2c2620, #5e4630); color: #fff; padding: 56px 0 46px; text-align: center; }
.hero h1 { margin: 0 0 10px; font-size: 32px; }
.hero p { max-width: 620px; margin: 0 auto; color: #e6ddd0; font-size: 15px; }
.search-bar { max-width: 480px; margin: 26px auto 0; display: flex; gap: 8px; }
.search-bar input { flex: 1; padding: 12px 16px; border-radius: 30px; border: none; font-size: 14px; }
.search-bar button { padding: 12px 22px; border-radius: 30px; border: none; background: var(--accent); color: #2c2620; font-weight: 700; cursor: pointer; }

/* ---------- Catalog grid ---------- */
.catalog-section { padding: 40px 20px 60px; }
.result-count { color: var(--text-muted); font-size: 13.5px; margin-bottom: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product-card {
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: transform .15s, box-shadow .15s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(44,38,32,.1); }
.product-thumb { position: relative; aspect-ratio: 4/3; background: #f0ece3; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; opacity: .4; }
.thumb-empty.large { aspect-ratio: 4/3; border-radius: var(--radius); background: #f0ece3; }
.featured-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #2c2620; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.product-info { padding: 14px 16px 18px; }
.product-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); font-weight: 700; }
.product-info h3 { margin: 6px 0 6px; font-size: 16px; }
.product-desc { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-weight: 700; color: var(--primary-dark); font-size: 14.5px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); font-size: 13.5px; }
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Product detail ---------- */
.breadcrumb { padding: 18px 20px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a:hover { text-decoration: underline; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 30px 20px 20px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: #f0ece3; }
.gallery-main img, .gallery-main iframe { width: 100%; height: 100%; object-fit: cover; border: none; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb-btn { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #f0ece3; }
.gallery-thumb-btn.active { border-color: var(--accent); }
.gallery-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.video-icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 20px; color: var(--primary); }

.product-main h1 { font-size: 26px; margin: 8px 0 6px; }
.product-price-large { font-size: 22px; font-weight: 700; color: var(--primary-dark); margin-bottom: 12px; }
.lead { color: var(--text-muted); font-size: 15px; margin-bottom: 18px; }
.btn-wa { display: inline-block; background: #25d366; color: #fff; padding: 12px 22px; border-radius: 30px; font-weight: 700; font-size: 14.5px; margin-bottom: 24px; }
.btn-wa:hover { background: #1ebc59; }

.spec-table { border-top: 1px solid var(--border); margin-top: 6px; }
.spec-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-label { color: var(--text-muted); }
.spec-val { font-weight: 600; text-align: right; }

.product-desc-full { margin-top: 28px; }
.product-desc-full h2 { font-size: 18px; margin-bottom: 8px; }

.related-section { padding: 20px 20px 60px; }
.related-section h2 { font-size: 20px; margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #241f19; color: #cfc6b8; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; padding: 46px 20px 30px; }
.footer-grid h3 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.footer-grid p { font-size: 13.5px; margin: 0 0 8px; }
.footer-grid a:hover { text-decoration: underline; color: var(--accent); }
.footer-bottom { border-top: 1px solid #3a332a; padding: 16px 20px; font-size: 12.5px; text-align: center; color: #9c9284; }
.footer-credit { display: block; margin-top: 4px; }
.footer-credit a { color: var(--accent); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; flex-direction: column; align-items: flex-start; width: 100%; gap: 4px; padding-top: 10px; }
  .main-nav.open { display: flex; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}
