/* =========================================================
   Misslanonly - Global Stylesheet
   Theme: light luxury + whitespace + B2B trust
   Updated 2026-09-11 - image-aware + sticky WhatsApp
   ========================================================= */
:root {
  --c-bg: #faf5ec;
  --c-bg-alt: #f3ede4;
  --c-line: #e6dcc4;
  --c-ink: #1a1a1a;
  --c-body: #4a4a4a;
  --c-text: #2a2a2a;
  --c-mute: #8a8170;
  --c-accent: #c9a36b;
  --c-accent-deep: #8b6f47;
  --c-success: #3a7a48;
  --c-error: #c0392b;
  --shadow-sm: 0 2px 8px rgba(45, 30, 12, .06);
  --shadow-md: 0 6px 18px rgba(45, 30, 12, .10);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: 'Georgia', 'Times New Roman', serif; color: var(--c-ink); margin: 0 0 .6em; line-height: 1.25; }
h1 { font-size: 2.5rem; letter-spacing: -.01em; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; letter-spacing: .04em; }
p { margin: 0 0 1em; }
a { color: var(--c-accent-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-ink); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-ink); color: #fff; padding: 12px 20px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar { background: var(--c-ink); color: #d8cfb8; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; padding: 10px 24px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #f1eadb; }
.topbar a:hover { color: var(--c-accent); }

/* Header / nav */
.site-header { background: var(--c-bg); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--c-ink); font-family: Georgia, serif; font-size: 1.3rem; font-weight: 700; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-deep));
  color: #fff; font-weight: 700;
}
.brand small { display: block; font-family: Helvetica, sans-serif; font-size: .65rem; font-weight: 400; letter-spacing: .2em; color: var(--c-mute); margin-top: 2px; }
.nav-links { display: flex; list-style: none; gap: 22px; padding: 0; margin: 0; font-size: .95rem; }
.nav-links a { color: var(--c-text); padding: 6px 0; position: relative; }
.nav-links a.active { color: var(--c-accent-deep); font-weight: 600; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--c-accent); border-radius: 1px;
}
.nav-links a:hover { color: var(--c-accent-deep); }
.nav-cta {
  display: inline-block; padding: 10px 18px; background: var(--c-ink); color: #f1eadb !important;
  border-radius: var(--radius); font-weight: 600; font-size: .9rem;
}
.nav-cta:hover { background: var(--c-accent-deep); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }

/* Hero */
.hero { padding: 80px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .3em; color: var(--c-accent-deep); text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.lede { font-size: 1.15rem; color: var(--c-mute); line-height: 1.7; max-width: 580px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual {
  position: relative;
  background: linear-gradient(135deg, var(--c-bg-alt) 0%, #e6d9bb 100%);
  border-radius: 10px;
  padding: 0;
  /* 跟着主视觉图的比例走（当前图 1200x1136 ≈ 正方形），避免 contain 后
    上下留出大片空白、图显得很小。以后换回竖构图封面图时改回 4/5。 */
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line);
  overflow: hidden;
}
/* contain + padding：整图完整显示，不被裁。
   原先用 cover，横向产品图塞进 4:5 竖框会被切掉左右各约 40%，
   看起来像"只显示一半"。contain 由上方渐变背景补齐留白，
   且以后换任何比例的图都不会再被切。 */
.hero-visual img { width: 100%; height: 100%; object-fit: contain; padding: 16px; box-sizing: border-box; }
.hero-badge {
  position: absolute; top: 16px; right: 16px;
  background: #c0392b; color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  padding: 6px 13px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* Page hero */
.page-hero { padding: 60px 0 40px; background: linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 100%); border-bottom: 1px solid var(--c-line); }
.page-hero h1 { font-size: 2.6rem; max-width: 800px; }
.page-hero p { max-width: 700px; font-size: 1.1rem; color: var(--c-mute); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: var(--radius); font-weight: 600; font-size: .95rem; border: 0; cursor: pointer; transition: all .2s ease; font-family: inherit; }
.btn-primary { background: var(--c-ink); color: #f1eadb; }
.btn-primary:hover { background: var(--c-accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-ink); border: 2px solid var(--c-ink); }
.btn-ghost:hover { background: var(--c-ink); color: #f1eadb; }

/* Section heads */
section { padding: 80px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--c-mute); font-size: 1.05rem; }

/* USP grid */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.usp-card { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; padding: 32px; transition: transform .2s ease, box-shadow .2s ease; }
.usp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.usp-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-deep));
  color: #fff; font-weight: 700; margin-bottom: 16px; font-family: Georgia, serif;
}
.usp-card h3 { margin-bottom: 10px; }
.usp-card p { color: var(--c-mute); font-size: .95rem; margin: 0; }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-stat strong { display: block; font-family: Georgia, serif; font-size: 2rem; color: var(--c-accent-deep); }
.trust-stat span { color: var(--c-mute); font-size: .9rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item {
  background: linear-gradient(135deg, var(--c-bg-alt) 0%, #e3d4b6 100%);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; aspect-ratio: 4/5; object-fit: contain; padding: 10px 10px 0; min-height: 0; background: #fff; }
.gallery-item span {
  display: block; padding: 10px 12px; background: rgba(255,255,255,.92);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--c-ink); text-align: center;
}

/* Product variants comparison table */
.variants { overflow-x: auto; border-radius: 10px; box-shadow: var(--shadow-sm); background: #fff; }
.variants table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .9rem; }
.variants th { background: var(--c-ink); color: #f1eadb; padding: 16px 14px; text-align: left; font-family: Helvetica, sans-serif; font-weight: 600; vertical-align: top; font-size: .85rem; }
.variants th .tag { display: inline-block; margin-top: 6px; padding: 3px 10px; background: rgba(255,255,255,.15); color: #f1eadb; border-radius: 999px; font-size: .7rem; letter-spacing: .04em; }
.variants td { padding: 14px; border-top: 1px solid var(--c-line); vertical-align: top; color: var(--c-text); }
.variants tr:nth-child(even) td { background: var(--c-bg-alt); }
.tag { display: inline-block; padding: 4px 10px; background: var(--c-bg-alt); color: var(--c-accent-deep); border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; margin-right: 4px; }
.tag-hot { background: #c0392b; color: #fff; }
.tag-new { background: #3a7a48; color: #fff; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.p-img {
  background: linear-gradient(135deg, var(--c-bg-alt) 0%, #e6d9bb 100%);
  /* 4/5 portrait: matches the book-style covers (they are upright book shots,
     ~1:1.25–1:1.6). A square frame left them floating between wide side gaps
     and made three covers of different ratios look misaligned side by side.
     Product photos are uploaded at 1200x1500 (4:5) — keep this in sync. */
  aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center; padding: 10px;
}
.p-img img { width: 100%; height: 100%; object-fit: contain; margin: auto; background: #fff; border-radius: 6px; }
.p-body { padding: 24px; }
.p-meta { color: var(--c-mute); font-size: .9rem; margin-bottom: 14px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.p-body .btn-ghost { margin-top: 8px; }
/* long copy stays scannable — 3 lines, expand on hover/focus */
.p-desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; color: var(--c-mute); font-size: .92rem;
  transition: color .2s ease;
}
.p-card:hover .p-desc, .product-card:hover .p-desc { color: var(--c-body); }

/* Series jump cards (products page) */
.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.series-card {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 10px;
  padding: 24px 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.series-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.series-name { font-weight: 700; font-size: 1.1rem; }
.series-meta { color: var(--c-mute); font-size: .88rem; }
.series-go { color: var(--c-accent-deep); font-weight: 600; font-size: .9rem; margin-top: 4px; }

/* Grouped home gallery: one block per product line.
   #homeGallery keeps its base .gallery class (4-col grid), so the grouped
   variant must out-specify it or both groups squeeze into the 4 columns. */
.gallery.gallery-groups,
.gallery-groups { display: grid; grid-template-columns: 1fr; gap: 44px; }
.gallery-group .gallery-title {
  font-size: 1.05rem; margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--c-accent); display: inline-block;
}
.gallery-group .gallery { margin-top: 0; }
.gallery.gallery-2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .gallery.gallery-2col { grid-template-columns: 1fr; } }

/* Cover-design swatches: two-letter monogram instead of a colour dot */
.swatch-letter {
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 700; font-size: .72rem; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-deep)); color: #fff;
}

/* flash the unified inquiry form after an "Inquire" click */
.lead-form-wrap.form-flash { animation: formflash 1.2s ease 1; }
@keyframes formflash {
  0% { box-shadow: 0 0 0 3px var(--c-accent); }
  100% { box-shadow: 0 0 0 3px transparent; }
}

/* Lead form */
.lead-form-wrap {
  display: grid; grid-template-columns: 1fr 1.4fr; align-items: stretch;
  background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md);
  margin-bottom: 0;
}
.lead-side { padding: 40px; background: linear-gradient(180deg, var(--c-ink) 0%, #2a2a2a 100%); color: #e9dfc8; }
.lead-side h2, .lead-side h3 { color: #f1eadb; }
.lead-side ul { padding-left: 18px; color: #d8cfb8; margin-top: 12px; }
.lead-side ul li { padding: 4px 0; }
.lead-form { padding: 40px; }
.lead-form h3 { margin-bottom: 4px; }
.form-eyebrow { color: var(--c-mute); font-size: .85rem; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.single { grid-template-columns: 1fr; }
.form-row > div { display: flex; flex-direction: column; }
.lead-form label { font-size: .82rem; color: var(--c-text); font-weight: 600; margin-bottom: 6px; letter-spacing: .02em; }
.lead-form input, .lead-form select, .lead-form textarea {
  font-family: inherit; font-size: .95rem; padding: 11px 12px; border: 1px solid var(--c-line);
  border-radius: var(--radius); background: var(--c-bg); color: var(--c-ink); transition: border-color .2s ease;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  border-color: var(--c-accent-deep); outline: 0; background: #fff;
}
.lead-form textarea { min-height: 100px; resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; color: var(--c-mute); margin-top: 8px; }
.consent input { margin-top: 4px; flex-shrink: 0; }
.consent span { line-height: 1.4; }
.form-status { margin-top: 12px; font-size: .9rem; }
.form-status.success { color: var(--c-success); }
.form-status.error { color: var(--c-error); }

/* FAQ accordion */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 22px 8px;
  font-family: Georgia, serif; font-size: 1.1rem; font-weight: 600; color: var(--c-ink); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q::after { content: '+'; font-size: 1.6rem; color: var(--c-accent-deep); font-family: Helvetica, sans-serif; transition: transform .2s ease; flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-q:hover { color: var(--c-accent-deep); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 700px; padding: 0 8px 22px; }
.faq-a p { color: var(--c-mute); margin: 0; }
.faq-a p strong { color: var(--c-text); }

/* Prose */
.prose { max-width: 760px; margin: 0 auto; font-size: 1.02rem; color: var(--c-text); }
.prose h2, .prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 22px; }
.prose hr { border: 0; border-top: 1px solid var(--c-line); margin: 32px 0; }

/* Sample tips */
.sample-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.sample-tip { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; padding: 28px; text-align: center; }
.sample-tip strong { display: block; font-family: Georgia, serif; font-size: 2.2rem; color: var(--c-accent-deep); }
.sample-tip span { color: var(--c-mute); font-size: .9rem; }

/* Footer */
.site-footer { background: var(--c-ink); color: #c8c1b0; padding: 60px 0 24px; }
.site-footer h4 { color: #f1eadb; margin-bottom: 14px; font-family: Helvetica, sans-serif; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; font-size: .92rem; }
.site-footer a { color: #c8c1b0; }
.site-footer a:hover { color: var(--c-accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid #3a3a3a; }
.legal { display: flex; justify-content: space-between; padding-top: 20px; font-size: .82rem; color: #8a8170; flex-wrap: wrap; gap: 8px; }

/* Legal entity + registered trademark disclosure */
.legal .tm-line { flex-basis: 100%; color: #7d7566; }
.legal .tm-line a { color: var(--c-accent); }
.reg-mark { font-size: .52em; vertical-align: super; letter-spacing: 0; margin-left: .08em; opacity: .9; }

/* Brand / trademark information table */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--c-line); font-size: .95rem; }
.info-table th, .info-table td { padding: 14px 18px; text-align: left; border-top: 1px solid var(--c-line); vertical-align: top; }
.info-table thead th { border-top: 0; }
.info-table th {
  width: 36%; background: var(--c-bg-alt); color: var(--c-ink);
  font-family: Helvetica, sans-serif; font-weight: 600; font-size: .85rem; letter-spacing: .02em;
}
.info-table td { color: var(--c-text); }
.info-table td code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; }

/* Two-column brand / company card */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.entity-card { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; padding: 30px 32px; }
.entity-card h3 { margin-bottom: 6px; }
.entity-card .entity-role { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent-deep); font-weight: 600; margin-bottom: 14px; }
.entity-card p { color: var(--c-body); font-size: .95rem; margin: 0 0 12px; }
.entity-card p:last-child { margin-bottom: 0; }
.entity-card .entity-name { font-family: Georgia, serif; font-size: 1.18rem; color: var(--c-ink); font-weight: 700; }
.tm-verify { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; }

/* Floating widgets */
.wa-float {
  position: fixed; right: 20px; bottom: 90px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; background: #25D366; color: #fff !important;
  border-radius: 30px; font-weight: 600; font-size: .9rem;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .35); text-decoration: none;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { display: inline-block; vertical-align: middle; }

.ribbon { position: fixed; left: -1px; bottom: 24px; z-index: 60; display: none; }
.ribbon a {
  display: inline-block; padding: 12px 20px; background: var(--c-ink); color: #f1eadb !important;
  font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  border-radius: 0 4px 4px 0; text-decoration: none; box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  .series-nav { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .lead-form-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .sample-tips { grid-template-columns: 1fr; }
  .split-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; padding: 16px 0; gap: 12px;
    border-top: 1px solid var(--c-line); margin-top: 12px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-cta { width: 100%; text-align: center; margin-top: 8px; }
  h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 2rem; }
  section { padding: 56px 0; }
  .wa-float span.long { display: none; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar-inner { font-size: .75rem; }
  .wa-float { padding: 12px 14px; right: 14px; }
}

::selection { background: var(--c-accent); color: var(--c-ink); }

/* Blog-specific */
.blog-list { max-width: 760px; margin: 0 auto; display: grid; gap: 28px; }
.blog-card { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; padding: 28px; transition: box-shadow .2s ease, transform .2s ease; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card .meta { color: var(--c-mute); font-size: .85rem; margin-bottom: 8px; }
.blog-card h3 { margin-bottom: 8px; }
.blog-card p { color: var(--c-body); }
.blog-card a.read-more { font-weight: 600; }

/* ---- color swatches (click to preview colorway) ---- */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.swatch { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; background: var(--c-bg-alt); border: 1.5px solid var(--c-line); border-radius: 999px; cursor: pointer; font: inherit; font-size: .74rem; color: var(--c-text); transition: border-color .15s ease, box-shadow .15s ease; }
/* Book-safe finishes are photographed as upright book covers (~1:1.6).
   The old 26x26 CIRCLE + cover cropped them down to a tiny fragment, so a
   cover was unrecognisable. Now: a small upright "book" frame that shows
   the whole cover. Keeps every finish legible at a glance. */
.swatch img { width: 32px; height: 40px; border-radius: 4px; object-fit: contain; background: #fff; flex: 0 0 32px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10); }
.swatch span { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatch:hover { border-color: var(--c-accent); }
.swatch.active { border-color: var(--c-accent-deep); box-shadow: 0 0 0 2px rgba(139, 111, 71, .18); }
.swatch.active span { font-weight: 600; }

/* colour chip shown before a finish's photos have loaded (or when none exist) */
/* Same upright frame as .swatch img so chips and covers line up evenly. */
.swatch-dot { width: 30px; height: 42px; border-radius: 4px; flex: 0 0 30px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* selected color note + angle thumbnail strip */
.cv-note { margin: 8px 0 0; font-size: .78rem; color: var(--c-mute); font-style: italic; }
.cv-empty { margin: 8px 0 0; font-size: .76rem; color: var(--c-mute); }
.cv-loading { margin: 8px 0 0; font-size: .76rem; color: var(--c-mute); opacity: .85; }
.cv-loading::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: currentColor; animation: cvPulse 1s ease-in-out infinite; vertical-align: middle; }
@keyframes cvPulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.angles { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
/* Upright frame too: the old 44x44 square + cover cropped tall book covers.
   40x50 = 4/5, same ratio as the product photos, so nothing is letterboxed. */
.angle { width: 40px; height: 50px; padding: 0; border: 1.5px solid var(--c-line); border-radius: 6px; overflow: hidden; cursor: pointer; background: #fff; transition: border-color .15s ease; }
.angle img { width: 100%; height: 100%; object-fit: contain; display: block; }
.angle:hover { border-color: var(--c-accent); }
.angle.active { border-color: var(--c-accent-deep); box-shadow: 0 0 0 2px rgba(139, 111, 71, .18); }

/* ---- mini spec table (book safe cards) ---- */
.spec-mini { width: 100%; border-collapse: collapse; margin: 12px 0 4px; font-size: .8rem; }
.spec-mini th, .spec-mini td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.spec-mini th { color: var(--c-mute); font-weight: 600; width: 42%; }
.spec-mini td { color: var(--c-body); }
.spec-mini tr:last-child th, .spec-mini tr:last-child td { border-bottom: 0; }

/* deep-link anchors: keep sticky header from covering the target card */
#variant-a, #variant-b, #variant-c, #variant-d,
article[id^="bs-"], #bookSafe { scroll-margin-top: 96px; }

/* ---- clickable card photo: hover zoom + "N photos" badge ---- */
.p-img { position: relative; cursor: zoom-in; }
.p-img img { transition: transform .4s ease; }
.p-img:hover img { transform: scale(1.05); }
.photo-badge {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(28, 24, 20, .78); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .05em;
  padding: 5px 12px; border-radius: 999px; pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

/* home gallery tiles get the same subtle life */
.gallery-item img { transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* ---- fullscreen photo lightbox ---- */
.lb-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20, 16, 12, .93);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: lbIn .22s ease;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-stage {
  margin: 0; flex: 1; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 72px;
}
.lb-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 8px; box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
  animation: lbImg .22s ease;
}
@keyframes lbImg { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
.lb-close, .lb-arrow {
  position: absolute; width: 46px; height: 46px; border: none; cursor: pointer;
  border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff;
  font-size: 26px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease; z-index: 2;
}
.lb-close:hover, .lb-arrow:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 14px; right: 18px; }
.lb-arrow { top: 50%; margin-top: -23px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-bar { display: flex; align-items: baseline; gap: 16px; padding: 10px 24px 0; color: #efe8dc; max-width: 94vw; }
.lb-caption { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { font-size: .78rem; opacity: .7; flex: 0 0 auto; }
.lb-strip {
  display: flex; gap: 8px; padding: 12px 24px 20px; max-width: 94vw;
  overflow-x: auto; scrollbar-width: thin;
}
.lb-thumb {
  width: 56px; height: 56px; padding: 0; flex: 0 0 56px;
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  background: none; cursor: pointer; transition: border-color .15s ease;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .72; background: #fff; }
.lb-thumb:hover img { opacity: 1; }
.lb-thumb.active { border-color: var(--c-accent); }
.lb-thumb.active img { opacity: 1; }
@media (max-width: 640px) {
  .lb-stage { padding: 20px 12px; }
  .lb-close, .lb-arrow { width: 38px; height: 38px; font-size: 22px; }
  .lb-arrow { margin-top: -19px; }
  .lb-thumb { width: 44px; height: 44px; flex-basis: 44px; }
}

/* ---------------- product detail pages (/products/<slug>/) ---------------- */
.breadcrumb { font-size: 13px; color: var(--c-mute); padding-top: 20px; }
.breadcrumb a { color: var(--c-mute); }
.breadcrumb a:hover { color: var(--c-accent); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 36px; align-items: start; padding-bottom: 56px; }
.detail-card { max-width: 560px; margin: 0 auto; }
.detail-hint { font-size: 12.5px; color: var(--c-mute); text-align: center; margin: 10px 0 0; }
.detail-side h2 { font-size: 17px; margin: 22px 0 10px; }
.detail-side h2:first-child { margin-top: 0; }
.detail-feats { margin: 0 0 18px; padding-left: 18px; color: var(--c-text); }
.detail-feats li { margin: 6px 0; font-size: 14.5px; }
.detail-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 14px; }
.detail-note { font-size: 13.5px; color: var(--c-mute); }
.detail-note a { color: var(--c-accent); }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
