@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Montserrat:wght@400;500;600;700&display=swap');

/* ---------- theme variables: one store, three premium looks ---------- */
:root {
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Montserrat', Arial, sans-serif;
  /* default = Maroon Royale */
  --bg: #f7f0e6;
  --card: #fdf9ef;
  --alt: #f0e6d2;
  --ink: #5c1a24;
  --accent: #5c1a24;
  --gold: #c6a962;
  --golddark: #8a6d2b;
  --line: #e5d9c5;
  --muted: #938377;
  --body: #7a6a5e;
  --band: #5c1a24;
  --bandtext: #f7f0e6;
  color: #5c1a24;
  background: #f7f0e6;
  scroll-behavior: smooth;
}
html[data-theme="noir"] {
  --bg: #f6f1e7;
  --card: #fdfbf6;
  --alt: #efe8d8;
  --ink: #1b1b1b;
  --accent: #1b1b1b;
  --gold: #b9975b;
  --golddark: #8a6d2b;
  --line: #ddd5c2;
  --muted: #8a8378;
  --body: #6e685c;
  --band: #1b1b1b;
  --bandtext: #f6f1e7;
  color: #1b1b1b;
  background: #f6f1e7;
}
html[data-theme="olive"] {
  --bg: #f5f0e6;
  --card: #f5f0e6;
  --alt: #ede6d3;
  --ink: #3f4a1e;
  --accent: #556b2f;
  --gold: #c6a962;
  --golddark: #7a5f32;
  --line: #dcd2b8;
  --muted: #938377;
  --body: #857a6e;
  --band: #3f4a1e;
  --bandtext: #f5f0e6;
  color: #3f4a1e;
  background: #f5f0e6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); overflow-x: clip; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.site { width: 100%; }

/* ---------- theme switcher bar (demo chrome, not part of the store) ---------- */
.theme-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 14px;
  background: #141414; color: #fff; font-size: 11px; letter-spacing: 1px;
}
.theme-bar b { letter-spacing: 2px; white-space: nowrap; }
.theme-buttons { display: flex; gap: 8px; }
.theme-btn {
  background: transparent; border: 1px solid rgba(255, 255, 255, .45); color: #fff;
  padding: 8px 12px; font-size: 11px; letter-spacing: 1px; cursor: pointer; border-radius: 0; white-space: nowrap;
}
.theme-btn.active { background: #fff; color: #141414; border-color: #fff; }
.theme-desc { margin-left: auto; color: rgba(255, 255, 255, .75); letter-spacing: .4px; font-size: 11px; text-align: right; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 26px; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: 0; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: background .25s, border-color .25s;
}
.button:hover { background: var(--ink); border-color: var(--ink); }
.button-small { padding: 12px 16px; font-size: 10px; }
.button-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--bg); }

/* ---------- hero: fixed at the top; the page slides over it ---------- */
.hero {
  height: 100vh; height: 100svh;
  position: fixed; top: 0; left: 0; width: 100%; z-index: 0;
  overflow: hidden; background: var(--ink); padding: 0;
}
.page {
  position: relative; z-index: 1;
  margin-top: 100vh; margin-top: 100svh;
  background: var(--bg);
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%; display: block;
}
.hero-card {
  position: absolute; left: 5.5%; bottom: 48px;
  width: min(440px, calc(100% - 40px));
  background: var(--card); padding: 36px 36px 30px; z-index: 2;
}
.eyebrow {
  font-size: 10px; letter-spacing: 2.4px; font-weight: 700; text-transform: uppercase;
  margin: 0 0 14px; display: flex; align-items: center; gap: 10px; color: var(--golddark);
}
.eyebrow span:first-child { width: 24px; height: 1px; background: var(--gold); display: inline-block; }
.hero-card h1 {
  font: 400 clamp(34px, 4vw, 52px)/1.1 var(--serif);
  letter-spacing: 0; color: var(--ink); margin: 0;
}
.hero-card h1 span { display: block; }
.hero-card h1 .gold { color: var(--gold); }
.hero-rule { display: block; width: 35px; height: 2px; background: var(--gold); margin: 18px 0; }
.hero-desc { color: var(--body); font-size: 13px; line-height: 1.9; margin: 0 0 24px; }
.hero-button { width: 100%; }

/* ---------- header (below hero, sticks under the demo bar) ---------- */
.header {
  height: 80px; padding: 0 5.5%; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 56px; z-index: 20;
  background: var(--bg); color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 14px; }
.wordmark-logo { display: block; width: auto; height: 54px; object-fit: contain; }
.wordmark-text { font: 600 21px var(--serif); letter-spacing: 3px; color: var(--ink); text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 11px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink); padding-bottom: 4px; }
.nav a:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  padding: 8px 12px; font-size: 12px; cursor: pointer; border-radius: 0;
}
.menu-btn { display: none; background: transparent; border: 0; color: var(--ink); font-size: 24px; cursor: pointer; }

/* ---------- sections ---------- */
.section { padding: 110px 5.5%; max-width: 1450px; margin: 0 auto; }
.section-alt { background: var(--alt); max-width: none; }
.section-alt > .section-heading, .section-alt > .product-grid { max-width: 1450px; margin-left: auto; margin-right: auto; }
.section-heading { margin-bottom: 48px; }
.section-heading h2 { font: 400 clamp(30px, 3.4vw, 46px)/1.15 var(--serif); color: var(--ink); margin: 0 0 14px; }
.section-heading h2::after { content: ""; display: block; width: 35px; height: 2px; background: var(--gold); margin-top: 18px; }
.section-heading.center { text-align: center; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading.center h2::after { margin-left: auto; margin-right: auto; }
.section-sub { color: var(--body); font-size: 13px; line-height: 1.9; max-width: 620px; margin: 0; }
.section-heading.center .section-sub { margin: 0 auto; }

/* ---------- collections ---------- */
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.collection-card {
  position: relative; display: block; height: 520px; overflow: hidden; cursor: pointer;
  background: var(--alt); border-radius: 0;
}
.collection-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.collection-card:hover img { transform: scale(1.04); }
.collection-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20, 10, 5, .75)); }
.collection-label { position: absolute; left: 22px; bottom: 74px; color: #fff; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.collection-title { position: absolute; left: 22px; bottom: 44px; color: #fff; font: 500 24px var(--serif); }
.collection-arrow {
  position: absolute; left: 22px; bottom: 14px; color: #fff; font-size: 15px;
  border: 1px solid rgba(255, 255, 255, .7); padding: 6px 14px;
}

/* ---------- products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 22px; max-width: 1100px; }
.product-card { min-width: 0; }
.product-image {
  width: 100%; height: 480px; position: relative; display: block; overflow: hidden;
  padding: 0; border: 0; background: var(--alt); cursor: pointer; border-radius: 0;
}
.product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 10%; transition: transform .4s; }
.product-card:hover .product-image { outline: 1px solid var(--gold); outline-offset: -8px; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-badge {
  position: absolute; top: 15px; left: 15px; background: var(--gold); color: #fff;
  padding: 7px 12px; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; z-index: 2;
}
.quick-view {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; background: var(--bg);
  display: flex; justify-content: center; gap: 8px; align-items: center;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
  transform: translateY(100%); transition: transform .3s; color: var(--ink);
}
.product-card:hover .quick-view { transform: translateY(0); }
.product-info { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0 10px; }
.product-category { font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.product-info h3 { font: 500 24px/1.1 var(--serif); color: var(--ink); margin: 0 0 8px; }
.product-fabric { font-size: 11px; margin: 0; color: var(--body); }
.product-info strong { white-space: nowrap; font-size: 13px; padding-top: 20px; color: var(--ink); }
.product-bottom { border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: space-between; font-size: 10px; color: var(--body); }
.product-bottom a { display: flex; gap: 6px; align-items: center; font-weight: 700; color: var(--ink); letter-spacing: 1px; }

/* ---------- story ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-photo { overflow: hidden; }
.story-photo img { width: 100%; height: 560px; object-fit: cover; display: block; }
.story-copy h2 { font: 400 clamp(28px, 3vw, 42px)/1.15 var(--serif); color: var(--ink); margin: 0 0 18px; }
.story-copy h2::after { content: ""; display: block; width: 35px; height: 2px; background: var(--gold); margin-top: 18px; }
.story-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.9; color: var(--body); margin: 0 0 16px; }
.story-copy .button { margin-top: 12px; }

/* ---------- why ---------- */
.why-section { background: var(--band); color: var(--bandtext); }
.why-section .section { padding-top: 100px; padding-bottom: 100px; }
.why-section h2, .why-section .eyebrow { color: var(--bandtext); }
.why-section .eyebrow span:first-child { background: var(--gold); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.why-item { border-left: 1px solid var(--gold); padding-left: 22px; }
.why-icon { display: block; width: 28px; height: 2px; background: var(--gold); }
.why-item b { display: block; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; margin: 14px 0 10px; color: var(--bandtext); }
.why-item p { font-size: 12px; line-height: 1.9; color: var(--bandtext); opacity: .78; margin: 0; }

/* ---------- instagram ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.insta-grid a { display: block; overflow: hidden; aspect-ratio: 1 / 1; background: var(--alt); }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.insta-grid a:hover img { transform: scale(1.06); }
.insta-cta { text-align: center; margin-top: 32px; }

/* ---------- footer ---------- */
.footer { background: var(--bg); color: var(--ink); padding: 65px 5.5% 20px; border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.4fr .8fr .9fr 1.1fr; gap: 45px; padding-bottom: 55px; max-width: 1450px; margin: 0 auto; }
.footer-brand .wordmark-logo { height: 58px; }
.footer-brand .wordmark-text { font-size: 23px; }
.footer-brand > p { font-size: 11px; line-height: 1.9; color: var(--body); margin: 22px 0; }
.footer-made { font: italic 17px var(--serif); color: var(--gold); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-col > b { font-size: 10px; letter-spacing: 2px; color: var(--gold); margin-bottom: 8px; text-transform: uppercase; }
.footer-col a, .footer-col span { font-size: 11px; color: var(--body); }
.footer-col a:hover { color: var(--gold); }
.footer-order { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--gold); padding-bottom: 7px; margin-top: 7px; letter-spacing: 1px; font-weight: 600; color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 18px; max-width: 1450px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 15px; font-size: 9px; letter-spacing: 1.4px; color: var(--muted);
}
.floating-wa {
  position: fixed; right: 24px; bottom: 22px; z-index: 30; background: var(--accent); color: #fff;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; border-radius: 0; text-decoration: none;
}

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(30, 18, 10, .7); z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.product-modal {
  background: var(--card); width: min(880px, 100%); max-height: 90vh; overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; position: relative; border-radius: 0;
}
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2; background: var(--card); border: 1px solid var(--line);
  width: 38px; height: 38px; font-size: 22px; cursor: pointer; color: var(--ink); border-radius: 0;
}
.modal-image { height: 520px; background: var(--alt); }
.modal-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: 8px; padding: 12px; flex-wrap: wrap; background: var(--card); }
.gallery-thumb { width: 64px; height: 80px; padding: 0; border: 2px solid transparent; cursor: pointer; background: var(--alt); }
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-copy { padding: 40px 34px; }
.modal-copy h2 { font: 400 34px/1.1 var(--serif); color: var(--ink); margin: 0 0 10px; }
.modal-price { font-size: 18px; color: var(--ink); display: block; margin-bottom: 16px; }
.modal-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.9; color: var(--body); margin: 0 0 20px; }
.modal-meta { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.modal-meta b { color: var(--ink); }
.modal-copy .button { width: 100%; margin-top: 18px; }
.modal-copy small { display: block; margin-top: 14px; font-size: 11px; color: var(--muted); line-height: 1.7; }

@media (max-width: 900px) {
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card { height: 420px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 440px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .product-modal { grid-template-columns: 1fr; }
  .modal-image { height: 380px; }
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-photo img { height: 420px; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .theme-desc { display: none; }
}
@media (max-width: 640px) {
  .section { padding-top: 70px; padding-bottom: 70px; }
  .hero-card { left: 16px; bottom: 20px; padding: 26px 22px; }
  .wordmark-logo { height: 44px; }
  .wordmark-text { font-size: 16px; letter-spacing: 2px; }
  .nav {
    display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--bg);
    flex-direction: column; gap: 0; padding: 10px 5.5% 18px; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .menu-btn { display: block; }
  .header .button-small { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .theme-bar { gap: 8px; padding: 0 10px; }
  .theme-btn { padding: 7px 8px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
