:root {
  --bg: #0f1110;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #d6b98a;
  --accent-2: #9fd3c7;
  --shadow: 0 18px 60px rgba(0,0,0,0.35);
  --radius: 14px;
  --max: 1120px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(214,185,138,0.10), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(159,211,199,0.08), transparent 55%),
    linear-gradient(180deg, #0b0d0c, #0f1110);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.hidden { display: none !important; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(15, 17, 16, 0.65);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 14px; height: 14px; border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), rgba(214,185,138,0.25));
  box-shadow: 0 0 0 4px rgba(214,185,138,0.10);
}
.brand-text { font-weight: 700; letter-spacing: 0.2px; }
.nav { display: flex; gap: 16px; align-items: center; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
.nav-admin { opacity: 0.75; }
.hero { padding: 44px 0 22px; }
.hero-inner {
  display: grid; grid-template-columns: 1.35fr 0.65fr;
  gap: 18px; align-items: stretch;
}
.hero h1 { font-size: clamp(1.75rem, 3vw, 2.6rem); margin: 0 0 10px; }
.hero-ctas { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.03));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 999px;
  border: 1px solid rgba(214,185,138,0.35);
  background: rgba(214,185,138,0.10);
  font-weight: 700; font-size: 0.9rem;
}
.hero-card-mid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.stat { padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,0.15); }
.stat-num { font-weight: 800; font-size: 1.15rem; }
.stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.section { padding: 26px 0 44px; }
.section-alt { border-top: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 1.35rem; }
.controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.quick-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
}
.chip.is-active {
  border-color: rgba(214,185,138,0.65);
  background: rgba(214,185,138,0.2);
}
.input, .select, .textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}
.input::placeholder { color: rgba(255,255,255,0.45); }
.select { width: 220px; }
.input { width: 280px; }
.textarea { resize: vertical; min-height: 120px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.03));
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}
.product { overflow: hidden; }
.product-media {
  position: relative;
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.stock-badge{
  position:absolute;left:10px;top:10px;z-index:2;
  font-size:.74rem;font-weight:800;padding:6px 9px;border-radius:999px;
  border:1px solid rgba(255,255,255,.22);background:rgba(12,12,12,.82);color:#fff;
}
.stock-low{ border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.18); }
.stock-sold{ border-color: rgba(248,113,113,.45); background: rgba(127,29,29,.35); }
.btn:disabled{ opacity:.55; cursor:not-allowed; transform:none !important; }
.product-price-lg{ font-size:1.5rem; }

.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02); transition: transform 240ms ease;
}
.product-media:hover img { transform: scale(1.06); }
.img-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.18);
}
.img-placeholder.tall { min-height: 420px; }
.product-body { padding: 14px; display: grid; gap: 10px; }
.product-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.product-title { margin: 0; font-size: 1.05rem; }
.product-price { font-weight: 800; color: rgba(214,185,138,0.95); }
.product-desc { margin: 0; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 0.82rem; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.12);
}
.pill-soft {
  border-color: rgba(214,185,138,0.25);
  background: rgba(214,185,138,0.08);
}
.product-actions { display: flex; gap: 10px; margin-top: 4px; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid rgba(214,185,138,0.40);
  background: rgba(214,185,138,0.16);
  color: var(--text); font-weight: 800; cursor: pointer;
  transition: transform 120ms ease, background 180ms ease, border-color 180ms ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(214,185,138,0.65); background: rgba(214,185,138,0.22); }
.btn:active { transform: translateY(0px); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,0.05); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.empty-state {
  margin-top: 14px; padding: 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.72);
}
.contact-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 16px; align-items: start;
}
.contact-notes { display: grid; gap: 10px; margin-top: 14px; }
.note {
  padding: 12px; border: 1px solid var(--line);
  border-radius: 12px; background: rgba(0,0,0,0.12);
}
.note-title { font-weight: 800; }
.label { display: grid; gap: 8px; font-weight: 700; color: rgba(255,255,255,0.88); }
.form { padding: 14px; display: grid; gap: 12px; }
.pad { padding: 16px; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  background: rgba(0,0,0,0.12);
}
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product-page { margin-top: 12px; }
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 12px;
}
.product-detail-media { overflow: hidden; }
.product-detail-media img { width: 100%; height: auto; }
.thumbs {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 8px; padding: 10px; border-top: 1px solid var(--line);
}
.thumb {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0; overflow: hidden;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
}
.thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-detail-body { padding: 6px 0; }
.product-detail-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.product-detail-top h1 { margin: 0; font-size: 1.6rem; }
.price { font-weight: 900; color: rgba(214,185,138,0.95); font-size: 1.2rem; }
.detail-notes { display: grid; gap: 10px; margin: 14px 0; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .input { width: 100%; }
  .select { width: 100%; }
  .product-actions { flex-direction: column; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .footer-links { gap: 8px 12px; justify-content: center; }
  .footer-links .dot { display: none; }
}
/* Typography */
h1, h2, h3, .brand-text { font-family: var(--font-display); letter-spacing: 0.2px; }


/* Empty state conversion */
.empty-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;}
.recently-sold{margin-top:16px;display:grid;gap:10px;}
.recently-sold-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;}


/* Product image hover (2nd photo) */
.media-stack { position: relative; width: 100%; height: 100%; }
.media-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-stack .img-secondary { opacity: 0; transition: opacity 220ms ease; }
.media-stack .img-primary { opacity: 1; transition: opacity 220ms ease; }
.product-media:hover .img-secondary { opacity: 1; }
.product-media:hover .img-primary { opacity: 0; }

/* Small separators */
.dot { display: inline-block; margin: 0 6px; opacity: 0.55; }

/* Post-actions link row */
.product-footlinks { margin-top: 10px; display: flex; gap: 12px; flex-wrap: wrap; }
.link { text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }

/* Footer links */
.footer-links { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.72); font-weight: 600; }
.footer-links a:hover { color: rgba(255,255,255,0.92); }
.footer-links .dot { opacity: 0.4; }


.mobile-buybar { display:none; }
@media (max-width: 700px) {
  .mobile-buybar {
    position: sticky;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(11,15,20,0.96);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  }
  .mobile-buybar .price { font-size: 1rem; }
}


/* --- Fixed "phone-sized" background (stays stationary while content scrolls) --- */
.fixed-bg{
  position: fixed;
  inset: 0;
  z-index: -3;
  display: block;
  width: min(520px, 100vw);
  height: 100vh;
  left: 50%;
  transform: translateX(-50%);
  background-image: url('/assets/img/brand/hero-mountain.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.9);
}
.fixed-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 700px at 30% 15%, rgba(214,185,138,0.16), transparent 55%),
    linear-gradient(180deg, rgba(11,13,12,0.20), rgba(11,13,12,0.82));
}
.fixed-bg-fade{
  position: fixed;
  inset: 0;
  z-index: -4;
  background: #0b0d0c;
}
/* Ensure page backgrounds are transparent so the fixed background shows through */
body{ background: transparent !important; }
.section, .site-header{ background: transparent; }


/* --- Boutique texture behind Products section --- */
#products { position: relative; overflow: hidden; }
#products::before{
  content:"";
  position:absolute;
  inset:-120px -80px -120px -80px;
  background-image: url('../img/brand/products-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
  opacity: 0.22;
  transform: scale(1.05);
  pointer-events:none;
}
#products::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1100px 500px at 30% 20%, rgba(214,185,138,0.10), transparent 60%),
    linear-gradient(180deg, rgba(11,13,12,0.15), rgba(11,13,12,0.65));
  pointer-events:none;
}
#products > .container { position: relative; z-index: 1; }


.brand-logo{height:36px;width:auto;display:block;filter:drop-shadow(0 8px 14px rgba(0,0,0,0.35));opacity:0.95;}


/* --- Fixed "phone-sized" background (stays stationary while content scrolls) --- */
.fixed-bg{
  position: fixed;
  inset: 0;
  z-index: -3;
  display: block;
  width: min(520px, 100vw);
  height: 100vh;
  left: 50%;
  transform: translateX(-50%);
  background-image: url('/assets/img/brand/hero-mountain.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.9);
}
.fixed-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 700px at 30% 15%, rgba(214,185,138,0.16), transparent 55%),
    linear-gradient(180deg, rgba(11,13,12,0.20), rgba(11,13,12,0.82));
}
.fixed-bg-fade{
  position: fixed;
  inset: 0;
  z-index: -4;
  background: #0b0d0c;
}
/* Ensure page backgrounds are transparent so the fixed background shows through */
body{ background: transparent !important; }
.section, .site-header{ background: transparent; }


/* --- Visual polish to match bronze + editorial reference --- */
:root {
  --font-serif: ui-serif, Georgia, "Times New Roman", Times, serif;
}

/* Top masthead */
.masthead {
  background:
    radial-gradient(900px 260px at 50% 20%, rgba(214,185,138,0.30), rgba(0,0,0,0.0) 60%),
    linear-gradient(180deg, rgba(20,18,16,0.92), rgba(10,10,10,0.55));
  border-bottom: 1px solid rgba(214,185,138,0.18);
}
.masthead-inner { padding: 16px 0 12px; }
.masthead-lockup { display: grid; justify-items: center; gap: 6px; }
.masthead-mark { width: 72px; height: 28px; color: rgba(214,185,138,0.95); filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35)); }
.masthead-title {
  font-family: var(--font-serif);
  letter-spacing: 4.5px;
  font-weight: 700;
  font-size: 1.05rem;
  color: rgba(214,185,138,0.95);
  text-transform: uppercase;
}

/* Header row slightly calmer */
.site-header {
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(10px);
}

/* Serif headings for the reference vibe */
.hero h1, .section h2 { font-family: var(--font-serif); letter-spacing: 0.3px; }

/* Global vignette (subtle, not a texture) */
body::before{
  content:"";
  position:fixed;
  inset:-60px;
  pointer-events:none;
  background:
    radial-gradient(1100px 700px at 50% 10%, rgba(214,185,138,0.08), transparent 55%),
    radial-gradient(1200px 800px at 50% 100%, rgba(0,0,0,0.55), transparent 60%);
  z-index:-1;
}

/* Hero image stronger + warm */
.hero {
  background-image:
    radial-gradient(1200px 600px at 20% 30%, rgba(0,0,0,0.06), rgba(0,0,0,0.42)),
    url('../img/brand/hero-mountain.png');
  background-size: cover;
  background-position: center;
}
.hero::before { background: radial-gradient(1200px 500px at 20% 30%, rgba(0,0,0,0.05), rgba(0,0,0,0.38)); }


.masthead-logo{
  width: min(520px, 78vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}


/* --- Boutique texture behind Products section --- */
#products { position: relative; overflow: hidden; }
#products::before{
  content:"";
  position:absolute;
  inset:-120px -80px -120px -80px;
  background-image: url('../img/brand/products-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
  opacity: 0.22;
  transform: scale(1.05);
  pointer-events:none;
}
#products::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1100px 500px at 30% 20%, rgba(214,185,138,0.10), transparent 60%),
    linear-gradient(180deg, rgba(11,13,12,0.15), rgba(11,13,12,0.65));
  pointer-events:none;
}
#products > .container { position: relative; z-index: 1; }


.brand-logo{height:22px;width:auto;display:block;filter:drop-shadow(0 8px 14px rgba(0,0,0,0.35));opacity:0.95;}


/* --- Fixed "phone-sized" background (stays stationary while content scrolls) --- */
.fixed-bg{
  position: fixed;
  inset: 0;
  z-index: -3;
  display: block;
  width: min(520px, 100vw);
  height: 100vh;
  left: 50%;
  transform: translateX(-50%);
  background-image: url('/assets/img/brand/hero-mountain.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.9);
}
.fixed-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 700px at 30% 15%, rgba(214,185,138,0.16), transparent 55%),
    linear-gradient(180deg, rgba(11,13,12,0.20), rgba(11,13,12,0.82));
}
.fixed-bg-fade{
  position: fixed;
  inset: 0;
  z-index: -4;
  background: #0b0d0c;
}
/* Ensure page backgrounds are transparent so the fixed background shows through */
body{ background: transparent !important; }
.section, .site-header{ background: transparent; }
