/* ============================================================
   W3316 Tulip Dining Collection — stylesheet
   Inspired by the FurnitureFactory.ie product page style:
   clean white, generous spacing, elegant furniture presentation
   ============================================================ */

:root {
  --ink: #1c1c1c;
  --ink-soft: #555;
  --muted: #8a8a8a;
  --line: #e6e4df;
  --paper: #ffffff;
  --paper-warm: #f7f5f1;
  --accent: #1c1c1c;
  --gold: #b28a4c;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; z-index: 2000; top: -60px; left: 18px; padding: 10px 16px; background: #fff; color: var(--ink); border: 2px solid var(--gold); }
.skip-link:focus { top: 12px; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { opacity: 0.85; transition: opacity .2s; }
.topbar a:hover { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .logo { font-size: 24px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.brand .logo small { font-weight: 400; font-size: 12px; letter-spacing: 1px; color: var(--muted); text-transform: none; }

.main-nav ul { display: flex; gap: 28px; list-style: none; }
.main-nav a {
  font-size: 14px; letter-spacing: 0.6px; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.main-nav a:hover, .main-nav a.active { border-color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-right a { font-size: 13px; color: var(--ink-soft); }
.nav-right a:hover { color: var(--ink); }

.menu-toggle { display: none; background: none; border: 0; font-size: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 490px;
  overflow: hidden;
  background: var(--paper-warm);
}
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,18,17,.83) 0%, rgba(15,18,17,.54) 42%, rgba(15,18,17,.06) 100%);
  display: flex; align-items: center;
}
.hero-overlay > .container { width: 100%; }
.hero-copy { color: #fff; max-width: 520px; }
.hero-copy .eyebrow { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; opacity: .85; margin-bottom: 14px; }
.hero-copy h1 { font-size: 42px; font-weight: 600; line-height: 1.2; letter-spacing: 1px; margin-bottom: 14px; }
.hero-copy p { font-size: 15px; opacity: .92; max-width: 440px; }
.hero-copy .btn { margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 30px;
  background: var(--accent); color: #fff;
  font-size: 13.5px; letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid var(--accent); transition: all .2s;
}
.btn:hover { background: #3a3a3a; border-color: #3a3a3a; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn-gold:hover { background: #9a7440; border-color: #9a7440; }
.btn-sm { padding: 9px 18px; font-size: 12px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-warm { background: var(--paper-warm); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.section-head h2 { font-size: 30px; font-weight: 600; letter-spacing: 1px; }
.section-head p { color: var(--ink-soft); margin-top: 10px; font-size: 14.5px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-card {
  background: #fff; border: 1px solid var(--line);
  text-align: center; padding-bottom: 20px; overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card .thumb { height: 210px; overflow: hidden; background: var(--paper-warm); }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover .thumb img { transform: scale(1.05); }
.cat-card h3 { font-size: 16px; font-weight: 600; margin: 16px 12px 4px; }
.cat-card p { font-size: 12.5px; color: var(--muted); }
.cat-card .count { display: inline-block; margin-top: 10px; font-size: 11.5px; letter-spacing: 1.5px; color: var(--ink-soft); border: 1px solid var(--line); padding: 3px 12px; border-radius: 20px; }

/* ---------- Filter tabs ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 13px; letter-spacing: 0.5px; padding: 8px 20px; border-radius: 24px;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--paper-warm); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(28,28,28,.85); color: #fff;
  font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px;
}
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body .name { font-size: 14.5px; font-weight: 600; }
.card-body .name-en { font-size: 12px; color: var(--muted); }
.card-body .meta { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.card-body .btn { margin-top: auto; align-self: flex-start; margin-top: 12px; }

/* ---------- Product detail ---------- */
.breadcrumb {
  font-size: 12.5px; color: var(--muted); letter-spacing: 0.4px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 8px; color: #c9c5bd; }

.product-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 44px 0 56px; }

.gallery { }
.gallery-main {
  border: 1px solid var(--line); background: var(--paper-warm);
  aspect-ratio: 1/1; overflow: hidden; position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs .t {
  width: 76px; height: 76px; border: 2px solid transparent;
  cursor: pointer; overflow: hidden; opacity: .75; transition: all .2s;
  padding: 0; background: var(--paper-warm); flex: 0 0 76px;
}
.gallery-thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .t:hover { opacity: 1; }
.gallery-thumbs .t.active { border-color: var(--ink); opacity: 1; }

.product-info .cat-label {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px; display: block;
}
.product-info h1 { font-size: 30px; font-weight: 600; letter-spacing: 0.5px; line-height: 1.3; }
.product-info .name-en { font-size: 15px; color: var(--muted); margin-top: 6px; }
.product-info .code { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.price-row { display: flex; align-items: center; gap: 16px; margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-row .price { font-size: 26px; font-weight: 600; }
.price-row .price-note { font-size: 12px; color: var(--muted); }

.spec-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.spec-chip { background: var(--paper-warm); border: 1px solid var(--line); padding: 12px 14px; }
.spec-chip .k { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.spec-chip .v { font-size: 14px; font-weight: 600; margin-top: 3px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.pack-selector { margin: 18px 0; }
.pack-selector .pk-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pack-options { display: flex; gap: 10px; }
.pack-opt {
  border: 1px solid var(--line); background: #fff; padding: 10px 20px;
  font-size: 13.5px; text-align: center; transition: all .2s;
}
.pack-opt .spec { font-weight: 600; display: block; }
.pack-opt .code { font-size: 11px; color: var(--muted); }
.pack-opt.active, .pack-opt:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.pack-opt.active .code, .pack-opt:hover .code { color: #ccc; }

/* Detail sections */
.detail-block { padding: 44px 0; border-top: 1px solid var(--line); }
.detail-block .block-title { font-size: 22px; font-weight: 600; letter-spacing: 1px; margin-bottom: 8px; }
.detail-block .block-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }

.spec-table { width: 100%; border-collapse: collapse; background: #fff; }
.spec-table th, .spec-table td { text-align: left; padding: 15px 20px; font-size: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 200px; font-weight: 600; background: var(--paper-warm); color: var(--ink); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table .cn { color: var(--muted); font-size: 12.5px; display: block; margin-top: 3px; }

.hl-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.hl-list li { padding-left: 26px; position: relative; font-size: 14.5px; color: var(--ink-soft); }
.hl-list li::before { content: "◆"; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 11px; }
.hl-list li b { color: var(--ink); font-weight: 600; }

.suit-list { list-style: none; }
.suit-list li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-soft); }
.suit-list li:last-child { border-bottom: 0; }
.suit-list li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--gold); font-weight: 700; }

/* Related */
.related-strip { overflow-x: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- Inquiry ---------- */
.inquiry {
  background: var(--ink); color: #fff; padding: 60px 0; text-align: center;
}
.inquiry h2 { font-size: 26px; font-weight: 600; letter-spacing: 1px; margin-bottom: 12px; }
.inquiry p { color: #bbb; font-size: 14px; max-width: 560px; margin: 0 auto 26px; }
.inquiry .btn { background: #fff; color: var(--ink); border-color: #fff; }
.inquiry .btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: #141414; color: #9a9a9a; padding: 48px 0 26px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; font-size: 13.5px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-note { border-top: 1px solid #2c2c2c; padding-top: 20px; font-size: 12px; color: #6a6a6a; }

/* ---------- Floating chat ---------- */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  background: var(--gold); color: #fff;
  border: 0; border-radius: 40px;
  padding: 13px 22px; font-size: 14px; letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(178,138,76,.45);
  transition: transform .2s, box-shadow .2s;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(178,138,76,.55); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; font-size: 13px; padding: 11px 22px; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-top { grid-template-columns: 1fr; gap: 30px; }
  .hl-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; box-shadow: var(--shadow); }
  .main-nav.open ul { flex-direction: column; gap: 14px; }
  .menu-toggle { display: block; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { height: 390px; }
  .hero img { object-position: 62% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(15,18,17,.86), rgba(15,18,17,.36)); }
  .hero-copy h1 { font-size: 28px; }
  .spec-table th { width: 110px; }
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .related-strip { grid-template-columns: repeat(2, 1fr); }
}
/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { border: 1px solid var(--line); padding: 28px 26px; background: #fff; transition: box-shadow .25s, transform .25s; }
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.why-ico { font-size: 12px; letter-spacing: 2px; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.why-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.why-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- Stone materials ---------- */
.material-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mat-card { background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.mat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.mat-img { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-warm); }
.mat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.mat-card:hover .mat-img img { transform: scale(1.05); }
.mat-body { padding: 14px 16px 16px; }
.mat-name { font-size: 14px; font-weight: 600; }
.mat-body p { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.6; }

/* ---------- Product page material block ---------- */
.material-block .material-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.material-img { border: 1px solid var(--line); overflow: hidden; }
.material-img img { width: 100%; height: auto; }
.material-copy h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.material-copy p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; margin-bottom: 16px; }
.mat-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.mat-tags li { font-size: 12px; border: 1px solid var(--line); padding: 5px 12px; border-radius: 20px; color: var(--ink-soft); background: var(--paper-warm); }
.spec-table .mat-ref { color: var(--muted); font-size: 12.5px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details { border: 1px solid var(--line); background: #fff; margin-bottom: 12px; }
.faq-list summary { padding: 18px 24px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 44px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--gold); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 24px 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }

/* ---------- Responsive additions ---------- */
@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .material-grid { grid-template-columns: repeat(3, 1fr); }
  .material-block .material-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; }
  .material-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Card: div wrapper + inner links + add button ---------- */
.card { position: relative; }
.card .thumb { display: block; }
.card .thumb-link { display: block; height: 100%; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .name-link { text-decoration: none; color: inherit; }
.card .name-link:hover .name { color: var(--gold); }
.card .card-actions { display: flex; gap: 8px; margin-top: auto; }
.card .card-actions .btn { margin: 12px 0 0; padding: 7px 12px; font-size: 12px; }
.card .add-btn {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  background: rgba(20, 20, 20, .78); color: #fff; border: 0; border-radius: 20px;
  padding: 7px 12px; font-size: 12px; cursor: pointer;
  transition: background .2s, transform .2s;
}
.card .add-btn:hover { background: var(--gold); transform: translateY(-1px); }
.card .add-btn.added { background: var(--gold); }

/* ---------- Stats strip ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.stat-card { border: 1px solid var(--line); background: #fff; padding: 26px 16px; }
.stat-card .num { font-size: 34px; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-card .lbl { font-size: 13px; color: var(--ink-soft); margin-top: 10px; letter-spacing: 1px; }

/* ---------- Toolbar (search / stone / sort) ---------- */
.toolbar { display: flex; gap: 12px; margin: 0 0 22px; flex-wrap: wrap; }
.toolbar input[type="search"],
.toolbar select {
  border: 1px solid var(--line); background: #fff; padding: 11px 14px;
  font-size: 14px; color: var(--ink); border-radius: 4px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.toolbar input[type="search"] { flex: 1 1 280px; min-width: 220px; }
.toolbar select { flex: 0 1 auto; min-width: 170px; cursor: pointer; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(178, 138, 76, .12); }
.result-count { color: var(--ink-soft); font-size: 12px; margin: -10px 0 18px; text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Empty state ---------- */
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; border: 1px dashed var(--line); background: #fff; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); margin-bottom: 18px; }

/* ---------- Quick view modal ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10, 10, 10, .55);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; max-width: 860px; width: 100%; max-height: 88vh; overflow: auto;
  position: relative; padding: 26px; border-radius: 6px;
}
.modal-close {
  position: absolute; top: 10px; right: 14px; background: none; border: 0;
  font-size: 26px; color: var(--ink-soft); cursor: pointer; line-height: 1; z-index: 2;
}
.modal-close:hover { color: var(--ink); }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.qv-main { border: 1px solid var(--line); background: var(--paper-warm); }
.qv-main img { width: 100%; height: auto; display: block; }
.qv-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.qv-thumbs button { width: 64px; height: 64px; padding: 0; cursor: pointer; border: 2px solid transparent; background: var(--paper-warm); }
.qv-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.qv-thumbs button.on { border-color: var(--gold); }
.qv-info h3 { font-size: 21px; font-weight: 600; margin: 6px 0 14px; }
.qv-specs { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.qv-code { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.qv-mat { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 10px; margin-bottom: 16px; }
.qv-mat img { width: 74px; height: 56px; object-fit: cover; }
.qv-mat span { font-size: 13px; color: var(--ink-soft); }
.qv-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Inquiry basket ---------- */
.basket-mask {
  position: fixed; inset: 0; z-index: 1100; background: rgba(10, 10, 10, .4);
  display: none;
}
.basket-mask.show { display: block; }
.basket-drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 92vw; height: 100vh;
  background: #fff; z-index: 1101; box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
  display: flex; flex-direction: column; transition: right .3s ease;
}
.basket-drawer.open { right: 0; }
.bd-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.bd-head h3 { font-size: 17px; font-weight: 600; }
.bd-head button { background: none; border: 0; font-size: 24px; color: var(--ink-soft); cursor: pointer; }
.bd-list { flex: 1; overflow-y: auto; padding: 14px 18px; }
.bd-empty { text-align: center; color: var(--muted); font-size: 14px; line-height: 1.8; padding: 50px 10px; }
.bd-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bd-item img { width: 58px; height: 58px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.bd-meta { flex: 1; min-width: 0; }
.bd-meta .n { font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; display: block; }
.bd-meta .n:hover { color: var(--gold); }
.bd-meta .c { font-size: 12px; color: var(--muted); margin-top: 3px; }
.bd-qty { display: flex; align-items: center; gap: 6px; flex: none; }
.bd-qty button {
  width: 24px; height: 24px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 14px; line-height: 1; color: var(--ink);
}
.bd-qty span { min-width: 22px; text-align: center; font-size: 14px; }
.bd-rm { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; flex: none; }
.bd-rm:hover { color: #c0392b; }
.bd-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bd-total { width: 100%; font-size: 14px; color: var(--ink-soft); }
.bd-total b { color: var(--ink); }

/* ---------- Basket FAB + back-to-top ---------- */
.basket-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); color: #fff; font-size: 20px;
  box-shadow: 0 8px 24px rgba(178, 138, 76, .45);
  transition: transform .2s;
}
.basket-fab:hover { transform: translateY(-2px); }
.basket-fab .bd-badge {
  position: absolute; top: -4px; right: -4px; background: #c0392b; color: #fff;
  min-width: 22px; height: 22px; border-radius: 11px; font-size: 12px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.chat-fab { bottom: 92px; }
.back-top {
  position: fixed; right: 24px; bottom: 158px; z-index: 890;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 18px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .25s; box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- How to order ---------- */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); background: #fff; padding: 26px 24px;
  transition: box-shadow .25s, transform .25s;
}
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-no { font-size: 13px; letter-spacing: 2px; color: var(--gold); font-weight: 700; }
.step-card h3 { font-size: 16px; font-weight: 600; }
.step-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.step-go { font-size: 13px; font-weight: 600; color: var(--gold); }
.step-card:hover .step-go { text-decoration: underline; }

/* ---------- Product page: add-cta / prev-next / mat-link ---------- */
.btn-add-cta { background: var(--gold); border-color: var(--gold); }
.prevnext { display: flex; justify-content: space-between; gap: 20px; margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.prevnext .pn { font-size: 13.5px; color: var(--ink-soft); text-decoration: none; max-width: 46%; }
.prevnext .pn:hover { color: var(--gold); }
.mat-link {
  margin-top: 10px; background: none; border: 0; padding: 0;
  color: var(--gold); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.mat-link:hover { text-decoration: underline; }

/* ---------- Variant selector (Taobao-style color / finish) ---------- */
.variant-selector { margin: 4px 0 6px; }
.variant-selector .pk-label { font-size: 12px; letter-spacing: 1.2px; color: var(--ink-soft); margin-bottom: 9px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; padding: 8px; min-width: 92px; max-width: 108px;
  transition: border-color .2s, box-shadow .2s;
}
.variant-opt img { width: 68px; height: 68px; object-fit: cover; border-radius: 4px; }
.variant-opt span { font-size: 11.5px; color: var(--ink-soft); text-align: center; line-height: 1.35; }
.variant-opt:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.variant-opt.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(178,149,88,.18); }
.variant-opt.active span { color: var(--ink); font-weight: 600; }

/* ---------- Card color swatches ---------- */
.swatches { display: flex; align-items: center; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: inline-block;
  border: 1.5px solid var(--line); transition: transform .2s, border-color .2s;
}
.swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swatch:hover { transform: scale(1.12); border-color: var(--gold); }
.swatch.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(178,149,88,.25); }
.sw-count { font-size: 11px; color: var(--ink-soft); }

/* ---------- Lightbox (image preview) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; background: rgba(20,20,22,.92);
  padding: 40px; cursor: zoom-out;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lb-close {
  position: absolute; top: 18px; right: 22px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 20px; cursor: pointer;
}
.lb-close:hover { background: rgba(255,255,255,.25); }

/* ---------- Basket quantity input ---------- */
.bd-qty { display: flex; align-items: center; gap: 4px; }
.bd-qty button {
  width: 26px; height: 26px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 14px; line-height: 1; color: var(--ink);
}
.bd-qty button:hover { border-color: var(--gold); color: var(--gold); }
.bd-input {
  width: 44px; height: 26px; border: 1px solid var(--line); text-align: center;
  font-size: 13px; font-family: inherit; -moz-appearance: textfield;
}
.bd-input::-webkit-outer-spin-button, .bd-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 1000px) {
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .qv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: 1fr; }
  .basket-drawer { width: 92vw; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .brand .logo { font-size: 19px; letter-spacing: 1px; }
  .brand .logo small { display: block; line-height: 1.2; }
  .nav-right { gap: 10px; }
  .nav-contact { display: none; }
  .hero-copy h1 { font-size: 30px; }
  .hero-copy p { font-size: 13.5px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 25px; }
  .grid, .cat-grid, .related-strip { grid-template-columns: 1fr; }
  .cat-card .thumb { height: 230px; }
  .toolbar input[type="search"], .toolbar select { width: 100%; flex: 1 1 100%; min-width: 0; }
  .product-top { padding: 28px 0 40px; }
  .product-info h1 { font-size: 25px; }
  .spec-strip { grid-template-columns: 1fr; }
  .spec-table th, .spec-table td { padding: 12px; font-size: 12.5px; }
  .cta-row .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Catalog presentation ---------- */
:root {
  --ink: #24302d;
  --ink-soft: #56605b;
  --muted: #707a74;
  --line: #e1e4de;
  --paper-warm: #f5f5f0;
  --accent: #24302d;
  --gold: #a87b43;
  --shadow: 0 14px 36px rgba(25, 36, 31, .09);
}
body { font-size: 15px; }
.section-head h2, .hero-copy h1, .product-info h1, .inquiry h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.025em;
}
.section-head h2 { font-size: clamp(30px, 3vw, 38px); line-height: 1.18; }
.section-head .eyebrow { color: var(--gold); font-weight: 700; }
.site-header { box-shadow: 0 4px 24px rgba(31, 43, 36, .035); }
.hero { height: min(560px, 72vh); min-height: 440px; }
.hero-copy { max-width: 600px; }
.hero-copy h1 { font-size: clamp(42px, 5vw, 68px); line-height: 1.08; max-width: 590px; }
.hero-copy p { max-width: 490px; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.hero-actions .btn { margin-top: 0; background: #fff; color: var(--ink); border-color: #fff; }
.hero-actions .btn:hover { background: var(--paper-warm); border-color: var(--paper-warm); }
.hero-text-link { color: #fff; border-bottom: 1px solid rgba(255,255,255,.7); padding-bottom: 4px; font-size: 14px; font-weight: 600; }
.hero-text-link:hover { border-color: #fff; }
.hero-facts { margin-top: 28px; color: rgba(255,255,255,.9); font-size: 12px; letter-spacing: .06em; }
.hero-facts span { padding: 0 8px; opacity: .6; }
#categories .section-head, #all-products .section-head { text-align: left; }
#categories .section-head p, #all-products .section-head p { max-width: 660px; }
.cat-card { text-align: left; padding-bottom: 18px; }
.cat-card h3 { margin: 18px 16px 5px; line-height: 1.3; }
.cat-card p { margin: 0 16px; min-height: 38px; line-height: 1.5; }
.cat-card .count { margin: 16px 16px 0; border: 0; padding: 0; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.cat-card .count span { margin-left: 6px; font-size: 15px; }
#stats { padding: 12px 0 34px; }
.stats-grid { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-card { border: 0; border-right: 1px solid var(--line); padding: 24px 12px; }
.stat-card:last-child { border-right: 0; }
.stat-card .num { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.filters { justify-content: flex-start; margin-bottom: 22px; }
.filter-btn { border-radius: 5px; padding: 9px 16px; }
.toolbar { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)); gap: 14px; margin-bottom: 12px; }
.toolbar-field { display: flex; flex-direction: column; min-width: 0; gap: 7px; }
.toolbar-field span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.toolbar input[type="search"], .toolbar select { width: 100%; min-width: 0; height: 46px; padding: 10px 12px; border-radius: 3px; }
.catalog-summary { display: flex; align-items: center; justify-content: space-between; min-height: 30px; margin: 0 0 20px; }
.catalog-summary p { color: var(--ink-soft); font-size: 13px; }
.clear-filters { background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 2px 0; color: var(--ink); font-size: 13px; }
.clear-filters:hover { color: var(--gold); border-color: var(--gold); }
.card { border-color: #e6e8e2; }
.card .thumb { background: #f8f8f5; }
.card .thumb.is-product img { object-fit: contain; padding: 12px; }
.card .thumb.is-scene img { object-fit: cover; }
.card-body { padding: 17px 17px 20px; gap: 5px; }
.card-kicker { font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }
.card-body .name { font-size: 16px; line-height: 1.35; }
.card-body .meta { line-height: 1.55; }
.card-code { color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.card .card-actions { gap: 8px; }
.card .card-actions .btn { flex: 1; text-align: center; letter-spacing: .05em; }
.product-lead { margin-top: 12px; max-width: 480px; color: var(--ink-soft); line-height: 1.7; }
.product-info h1 { font-size: clamp(30px, 3vw, 42px); }
.product-info .code:empty { display: none; }
.price-row { margin: 24px 0; }
.price-row .price { font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 400; white-space: nowrap; }
.gallery-zoom { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; }
.gallery-main.is-product img { object-fit: contain; padding: 20px; }
.gallery-thumbs { overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs .t img { object-fit: contain; }
.inquiry-hint { font-size: 12px; color: var(--muted); margin-top: 14px; }
.detail-nav { display: flex; flex-wrap: wrap; gap: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 12px; }
.detail-nav a { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.detail-nav a:hover { color: var(--gold); }
.detail-block[id] { scroll-margin-top: 100px; }
.material-block .material-inner { align-items: center; }
.spec-table th { width: 220px; }

@media (max-width: 1000px) {
  .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { height: 500px; }
}
@media (max-width: 720px) {
  .hero { min-height: 470px; height: auto; }
  .hero-overlay { position: relative; min-height: 470px; padding: 54px 0; }
  .hero > img { position: absolute; inset: 0; }
  .hero-copy h1 { font-size: clamp(36px, 8vw, 48px); }
  .toolbar { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-nav { gap: 18px; }
}
@media (max-width: 520px) {
  .hero-overlay { padding: 46px 0; }
  .hero-copy p { font-size: 14px; }
  .hero-actions { gap: 18px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-facts { line-height: 1.8; }
  .cat-card .thumb { height: 245px; }
  .card .thumb { aspect-ratio: 4 / 3; }
  .spec-table th { width: 125px; }
  .price-row { flex-wrap: wrap; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Product films ---------- */
.video-section {
  padding: 76px 0 82px;
  color: #fff;
  background: radial-gradient(circle at 5% 0%, #40564b 0, transparent 38%), #1c2925;
}
.video-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.video-section-head .eyebrow, .video-detail-copy .eyebrow { color: #d6b482; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
.video-section-head h2 { font: 400 clamp(30px, 3.3vw, 43px)/1.12 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.video-section-head p { max-width: 345px; color: #d1dad4; font-size: 13.5px; line-height: 1.7; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.video-card { min-width: 0; background: #f7f7f2; color: var(--ink); box-shadow: 0 18px 36px rgba(0,0,0,.13); }
.video-frame { aspect-ratio: 16 / 9; overflow: hidden; background: #101c18; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #101c18; }
.video-card-copy { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 16px; padding: 20px 22px 22px; }
.video-card-copy > span { grid-column: 1 / -1; margin-bottom: 3px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.video-card-copy h3 { font: 400 22px/1.22 Georgia, "Times New Roman", serif; }
.video-card-copy h3 a:hover, .video-card-link:hover { color: var(--gold); }
.video-card-link { white-space: nowrap; font-size: 12px; font-weight: 700; }
.video-card-link span { font-size: 16px; margin-left: 4px; }
.video-detail { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 36px; }
.video-detail-copy p { color: var(--ink-soft); font-size: 14px; max-width: 310px; line-height: 1.8; }
.video-detail .video-frame { border: 1px solid var(--line); }
@media (max-width: 720px) {
  .video-section { padding: 55px 0; }
  .video-section-head { display: block; }
  .video-section-head p { margin-top: 12px; }
  .video-grid, .video-detail { grid-template-columns: 1fr; }
  .video-detail { gap: 22px; }
}
@media (max-width: 520px) {
  .video-grid { gap: 18px; }
  .video-card-copy { display: block; padding: 16px 18px 19px; }
  .video-card-copy h3 { margin: 5px 0 9px; font-size: 21px; }
}

/* Source series and the workbook's overlapping Luxury Stone collection */
.filter-divider {
  display: inline-flex; align-items: center; padding: 0 3px 0 15px;
  border-left: 1px solid var(--line); color: var(--muted);
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.filter-collection { border-color: #b88b5e; color: #805a31; background: #fbf4e9; }
.filter-collection:hover, .filter-collection.active { background: #805a31; border-color: #805a31; color: #fff; }
.card .badge-stack {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  max-width: calc(100% - 24px);
}
.card .badge-stack .badge { position: static; max-width: 100%; line-height: 1.4; }
.card .badge-stack .badge-luxury { background: #805a31; }
.detail-collection-tag {
  display: inline-block; margin: 0 0 13px; padding: 5px 9px;
  border: 1px solid #b88b5e; color: #805a31; background: #fbf4e9;
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.detail-collection-tag:hover { color: #5b3d20; border-color: #805a31; }
.card .thumb img, .cat-card .thumb img, .gallery-main img,
.gallery-thumbs img, .qv-main img, .qv-thumbs img,
.swatch img, .variant-opt img { background: #fff; }
.collection-feature { background: #e9dfd0; overflow: hidden; }
.collection-feature > .container { display: grid; grid-template-columns: .88fr 1.12fr; min-height: 430px; }
.collection-feature-copy {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 55px clamp(30px, 5vw, 86px) 55px 0;
}
.collection-feature-copy .eyebrow { color: #805a31; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.collection-feature-copy h2 { margin: 14px 0 22px; font: 400 clamp(44px, 5vw, 74px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.collection-feature-copy p { max-width: 430px; color: #4e4a43; line-height: 1.8; font-size: 14px; }
.collection-feature-link { display: inline-block; margin-top: 30px; padding-bottom: 8px; border-bottom: 1px solid #805a31; color: #664321; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.collection-feature-link:hover { color: var(--ink); border-color: var(--ink); }
.collection-feature-link span { margin-left: 14px; }
.collection-feature-image { position: relative; display: block; min-height: 430px; background: #f4f0e8; overflow: hidden; }
.collection-feature-image img { display: block; width: 100%; height: 100%; min-height: 430px; object-fit: cover; transition: transform .5s; }
.collection-feature-image:hover img { transform: scale(1.035); }
.collection-feature-image > span { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; justify-content: space-between; gap: 10px; padding: 12px 15px; background: rgba(248,246,241,.94); font-size: 12px; font-weight: 700; }
@media (max-width: 720px) {
  .filter-divider { width: 100%; justify-content: center; padding: 8px 0 0; border-left: 0; }
  .collection-feature > .container { display: flex; flex-direction: column; }
  .collection-feature-copy { padding: 50px 0 35px; }
  .collection-feature-copy h2 { font-size: 50px; }
  .collection-feature-image, .collection-feature-image img { min-height: 280px; max-height: 420px; }
}

/* ---------- Editorial section details ---------- */
.why-card { position: relative; min-height: 210px; border-radius: 2px; }
.why-card:first-child { background: var(--ink); border-color: var(--ink); }
.why-card:first-child h3 { color: #fff; }
.why-card:first-child p { color: #d9e0db; }
.why-card:first-child .why-ico { color: #e3bf87; }
.why-card h3 { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 400; }
.why-ico { font-size: 11px; }
.step-card { border-top: 3px solid var(--gold); }
.step-no { font: 400 34px/1 Georgia, "Times New Roman", serif; color: var(--gold); margin-bottom: 10px; }
.step-card h3 { font-size: 17px; }
.mat-card { border-radius: 2px; }
.mat-card .mat-name { font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 400; }
.mat-card .mat-img img { object-position: center; }
.inquiry { background: radial-gradient(circle at 90% 10%, #38544a, transparent 42%), #1d2b25; }
.inquiry h2 { font-size: clamp(28px, 3vw, 38px); }
