/* ==========================================================================
   KAMA — brown/gold luxury theme layered on top of Sneat Pro v3 (core.css)
   Only overrides; Sneat structure/classes stay intact.
   ========================================================================== */
:root, [data-bs-theme=light] {
  --kama-gold: #C8956B;
  --kama-gold-rgb: 200, 149, 107;
  --kama-gold-dark: #A8754C;
  --kama-brown: #3B2415;
  --kama-ink: #1E1A1B;
  --kama-cream: #F3EDE4;
  --kama-sand: #F8F4EE;

  --bs-primary: var(--kama-gold);
  --bs-primary-rgb: var(--kama-gold-rgb);
  --bs-primary-contrast: #1a110a;
  --bs-primary-bg-subtle: #f6ece2;
  --bs-primary-border-subtle: #e6cdb6;
  --bs-primary-text-emphasis: #7a5433;
  --bs-body-bg: #fbf9f6;
  --bs-heading-color: var(--kama-ink);
  --bs-link-color: var(--kama-gold-dark);
  --bs-link-hover-color: var(--kama-brown);
}
[data-bs-theme=dark] {
  --bs-primary: var(--kama-gold);
  --bs-primary-rgb: var(--kama-gold-rgb);
  --bs-primary-contrast: #1a110a;
  --bs-primary-bg-subtle: #3a2c21;
  --bs-primary-border-subtle: #5a4331;
  --bs-primary-text-emphasis: #e2c3a5;
  --bs-body-bg: #171314;
  --bs-paper-bg: #201b1c;
  --bs-heading-color: var(--kama-cream);
}

/* ---- Typography ---- */
.k-serif, h1, h2, h3, .display-6, .display-5, .k-title {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: .02em;
}
.k-caps { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 600; }
.k-eyebrow { color: var(--kama-gold); text-transform: uppercase; letter-spacing: .28em; font-size: .7rem; font-weight: 600; }
.k-name { font-family: "Cormorant Garamond", serif; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }

/* ---- Framed title (like the catalogue's "LUXURY" / "INDEX" box) ---- */
.k-frame { position: relative; text-align: center; padding: 1.25rem 0; }
.k-frame::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--kama-gold); opacity: .55; }
.k-frame span { position: relative; display: inline-block; padding: .55rem 2.5rem; border: 1px solid var(--kama-gold); background: var(--bs-body-bg); font-family: "Cormorant Garamond", serif; font-size: 1.6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--bs-heading-color); }
.k-dark .k-frame span { background: var(--kama-brown); color: var(--kama-cream); }
.k-ink .k-frame span { background: var(--kama-ink); color: var(--kama-cream); }

/* ---- Section backgrounds ---- */
.k-dark { background: var(--kama-brown); color: rgba(243,237,228,.82); }
.k-ink  { background: var(--kama-ink);  color: rgba(243,237,228,.82); }
.k-sand { background: var(--kama-sand); }
[data-bs-theme=dark] .k-sand { background: #1d1819; }
.k-dark h1, .k-dark h2, .k-dark h3, .k-dark h4, .k-dark h5, .k-dark h6,
.k-ink h1, .k-ink h2, .k-ink h3, .k-ink h4, .k-ink h5, .k-ink h6 { color: var(--kama-cream); }
.k-dark .text-muted, .k-ink .text-muted { color: rgba(243,237,228,.55) !important; }
.k-dark .card, .k-ink .card { background: rgba(255,255,255,.04); border: 1px solid rgba(200,149,107,.25); color: inherit; box-shadow: none; }
.k-dark hr, .k-ink hr { border-color: rgba(200,149,107,.4); opacity: 1; }
.k-gold-line { width: 64px; height: 1px; background: var(--kama-gold); display: inline-block; }

/* ---- Buttons: quiet, editorial ---- */
.btn { border-radius: 2px; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; font-weight: 600; }
.btn-lg { font-size: .85rem; padding: .8rem 1.6rem; }
.btn-sm { font-size: .68rem; }
.btn-outline-light { --bs-btn-border-color: rgba(243,237,228,.6); --bs-btn-color: var(--kama-cream); }
.badge { border-radius: 2px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.badge.rounded-pill { border-radius: 2px !important; }
.card { border-radius: 4px; }
.form-control, .form-select, .input-group-text, .select2-container--default .select2-selection--single { border-radius: 2px !important; }

/* ---- Navbar ---- */
.k-nav { background: rgba(251,249,246,.92) !important; backdrop-filter: blur(10px); border-bottom: 1px solid rgba(200,149,107,.25) !important; box-shadow: none !important; }
[data-bs-theme=dark] .k-nav { background: rgba(23,19,20,.92) !important; }
.k-nav .navbar-brand img { height: 38px; width: auto; }
.k-nav .nav-link { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600; color: var(--bs-heading-color); }
.k-nav .nav-link:hover, .k-nav .nav-link.active { color: var(--kama-gold); }
.k-logo-box { background: transparent; border-radius: 3px; padding: 0; display: inline-flex; }

/* ---- Hero ---- */
.k-hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: var(--kama-cream); overflow: hidden; }
.k-hero .k-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.k-hero .k-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,26,27,.85) 0%, rgba(30,26,27,.55) 55%, rgba(30,26,27,.25) 100%); }
.k-hero .container { position: relative; z-index: 1; }
.k-hero h2 { color: var(--kama-cream); }
.k-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1.05; color: var(--kama-cream); }
.k-hero p { color: rgba(243,237,228,.8); max-width: 560px; }
.k-hero .k-frame span { background: transparent; color: var(--kama-cream); }
.k-hero .k-frame::before { display: none; }

/* ---- Product line cards ---- */
.k-line-card { position: relative; display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; }
.k-line-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.k-line-card:hover img { transform: scale(1.06); }
.k-line-card .k-ov { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(30,26,27,.9)); }
.k-line-card .k-txt { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; }
.k-line-card h3 { color: #fff; margin: 0 0 .25rem; }
.k-line-card small { color: rgba(255,255,255,.75); letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; }

/* ---- Product cards (catalogue) ---- */
.k-card { border: 0; background: var(--bs-paper-bg); transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.k-card:hover { transform: translateY(-3px); box-shadow: 0 .75rem 1.75rem rgba(59,36,21,.14); }
.k-card .k-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #ddd; border-radius: 4px 4px 0 0; }
.k-card .k-thumb img { width: 100%; height: 100%; object-fit: cover; }
.k-card .k-thumb .k-line-tag { position: absolute; top: .6rem; left: .6rem; background: rgba(30,26,27,.75); color: var(--kama-cream); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; padding: .25rem .5rem; }
.k-card .k-thumb .k-match { position: absolute; top: .6rem; right: .6rem; background: var(--kama-gold); color: #1a110a; font-size: .62rem; font-weight: 700; padding: .25rem .45rem; letter-spacing: .04em; }
.k-card .k-thumb .k-scene-ic { position: absolute; bottom: .5rem; right: .5rem; background: rgba(255,255,255,.85); color: var(--kama-ink); border-radius: 2px; padding: .15rem .35rem; font-size: .8rem; }
.k-card .card-body { padding: .9rem 1rem 1rem; }
.k-card .k-name { font-size: .95rem; line-height: 1.25; }
.k-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; color: var(--bs-secondary-color); letter-spacing: .04em; }
.k-spec { font-size: .72rem; color: var(--bs-secondary-color); }
.k-dots { display: flex; gap: 4px; }
.k-dots span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.k-fav { border: 1px solid var(--bs-border-color); background: transparent; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 2px; color: var(--bs-secondary-color); }
.k-fav.on { background: var(--kama-gold); border-color: var(--kama-gold); color: #1a110a; }

/* ---- Filter sidebar ---- */
.k-sticky { position: sticky; top: 84px; }
.k-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.k-sw { width: 30px; height: 30px; border-radius: 2px; border: 1px solid rgba(0,0,0,.12); cursor: pointer; position: relative; }
.k-sw.on::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--kama-gold); border-radius: 3px; }
.k-fam { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; padding: .3rem .55rem; border: 1px solid var(--bs-border-color); border-radius: 2px; cursor: pointer; background: var(--bs-paper-bg); }
.k-fam.on { border-color: var(--kama-gold); background: rgba(200,149,107,.14); }
.k-fam i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }

/* ---- Tools panel ---- */
.k-tools .nav-tabs { border-bottom: 1px solid rgba(200,149,107,.35); }
.k-tools .nav-link { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 600; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--bs-secondary-color); }
.k-tools .nav-link.active { color: var(--kama-gold); border-bottom-color: var(--kama-gold); background: transparent; }
.k-drop { border: 1px dashed rgba(200,149,107,.7); border-radius: 4px; padding: 1.5rem; text-align: center; cursor: pointer; background: rgba(200,149,107,.05); transition: background .2s; }
.k-drop.over { background: rgba(200,149,107,.16); }
.k-drop img { max-height: 180px; border-radius: 3px; }
.k-pal { display: flex; gap: 6px; flex-wrap: wrap; }
.k-pal .k-sw { width: 40px; height: 40px; }
.k-color-preview { width: 44px; height: 44px; border-radius: 2px; border: 1px solid rgba(0,0,0,.15); }
input[type=color].k-picker { width: 44px; height: 44px; padding: 2px; border-radius: 2px; }

/* ---- Moodboard offcanvas ---- */
.k-mood-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 2px; }
.k-mood-badge { position: absolute; top: -6px; right: -8px; }

/* ---- Detail modal ---- */
.k-modal-slab { aspect-ratio: 1/1; object-fit: cover; width: 100%; border-radius: 3px; }
.k-modal-scene { width: 100%; border-radius: 3px; object-fit: cover; max-height: 300px; }
.k-spec-table td { padding: .35rem 0; font-size: .82rem; border-bottom: 1px solid var(--bs-border-color); }
.k-spec-table td:first-child { color: var(--bs-secondary-color); width: 38%; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; }
.k-sim img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 2px; cursor: pointer; }

/* ---- Size visualizer ---- */
.k-size-svg { width: 100%; max-width: 900px; height: auto; }
.k-size-svg .slab { fill: rgba(200,149,107,.12); stroke: var(--kama-gold); stroke-width: 1; cursor: pointer; transition: fill .2s; }
.k-size-svg .slab:hover, .k-size-svg .slab.on { fill: rgba(200,149,107,.5); }
.k-size-svg text { font-family: "Public Sans", sans-serif; font-size: 10px; fill: currentColor; }

/* ---- Feature/advantage items ---- */
.k-adv { border-left: 1px solid var(--kama-gold); padding-left: 1.25rem; }
.k-adv h6 { font-family: "Cormorant Garamond", serif; font-size: 1.25rem; letter-spacing: .04em; }
.k-app { text-align: center; padding: 1.25rem .5rem; border: 1px solid rgba(200,149,107,.3); border-radius: 3px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.k-app i { font-size: 1.6rem; color: var(--kama-gold); display: block; margin-bottom: .5rem; }
.k-perf { display: flex; gap: .9rem; align-items: flex-start; }
.k-perf i { color: var(--kama-gold); font-size: 1.25rem; flex: 0 0 auto; margin-top: .1rem; }
.k-finish-list { columns: 2; column-gap: 2rem; font-size: .85rem; }
.k-finish-list li { padding: .25rem 0; border-bottom: 1px solid rgba(200,149,107,.25); list-style: none; }

/* ---- Featured (index) ---- */
.k-feat { position: relative; display: block; overflow: hidden; border-radius: 3px; aspect-ratio: 1/1; text-decoration: none; }
.k-feat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.k-feat:hover img { transform: scale(1.05); }
.k-feat .k-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .75rem .9rem; background: linear-gradient(180deg, transparent, rgba(30,26,27,.85)); color: #fff; }
.k-feat .k-cap .k-name { font-size: .85rem; display: block; }
.k-feat .k-cap small { font-size: .62rem; letter-spacing: .12em; opacity: .8; }

/* ---- Coming soon block ---- */
.k-soon { border: 1px solid rgba(200,149,107,.4); border-radius: 4px; padding: 2rem; background: repeating-linear-gradient(135deg, rgba(200,149,107,.06) 0 10px, transparent 10px 20px); }

/* Footer */
.k-footer { background: var(--kama-ink); color: rgba(243,237,228,.6); font-size: .78rem; }
.k-footer a { color: rgba(243,237,228,.8); }
.k-footer a:hover { color: var(--kama-gold); }

.map-frame { border: 0; width: 100%; height: 300px; border-radius: 3px; filter: grayscale(.4); }
html { scroll-padding-top: 80px; scroll-behavior: smooth; }
