:root {
  --cream: #f6efe4;
  --paper: #fffaf3;
  --ink: #2b241c;
  --muted: #6e6458;
  --jade: #3d5c4a;
  --jade-deep: #2b4336;
  --terra: #c46a3a;
  --terra-deep: #9d4e28;
  --gold: #c4a574;
  --line: rgba(43, 36, 28, 0.12);
  --shadow: 0 18px 40px rgba(43, 36, 28, 0.08);
  --radius: 22px;
  --nav-bg: rgba(246, 239, 228, 0.88);
  --field: #fff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --cream: #161310;
  --paper: #211c18;
  --ink: #f3ece3;
  --muted: #b7ada2;
  --jade: #8fbfa4;
  --jade-deep: #6f9a82;
  --terra: #e08a5a;
  --terra-deep: #c46a3a;
  --gold: #d4b484;
  --line: rgba(243, 236, 227, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(22, 19, 16, 0.9);
  --field: #2a241f;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 13px; font-weight: 600;
}
.brand img {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
  border: 0;
  padding: 0;
}
.page-crest-row {
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0 10px;
}
.page-crest-row img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.page-crest-row .name {
  font-family: var(--serif);
  font-size: 18px;
}
.mini-crest-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.mini-crest {
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  padding: 0;
}
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-links a, .nav-links .ghost {
  padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--paper); }
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}
.nav-cta {
  background: var(--jade) !important; color: #fff !important;
  padding: 8px 14px !important;
}
.burger {
  display: none; background: none; border: 1px solid var(--line);
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
}

/* HERO */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 40px; align-items: center; padding: 56px 0 28px;
}
.kicker {
  color: var(--terra); letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 12px; font-weight: 600; margin-bottom: 12px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.05; margin-bottom: 16px; }
h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
h3 { font-size: 22px; }
.lede { font-size: 18px; color: var(--muted); max-width: 46ch; }
.brand-intro { font-size: 15.5px; color: var(--muted); max-width: 46ch; line-height: 1.5; }
.grid-continue { display: contents; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-mosaic {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.hero-mosaic img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 18px;
}
.hero-mosaic img:first-child { grid-column: 1 / -1; height: 280px; }
.brand-card { position: relative; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 12px 18px; font-size: 15px; font-weight: 500;
}
.btn-primary { background: var(--jade); color: #fff; }
.btn-primary:hover { background: var(--jade-deep); }
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: var(--terra-deep); }
.btn-ghost { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-wa { background: #128c7e; color: #fff; }

/* SECTIONS */
section { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 28px; }
.muted { color: var(--muted); }
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.brand-card, .product-card, .panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.brand-card > img { width: 100%; height: 260px; object-fit: cover; }
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center 42%;
}
.product-card img.img-landscape {
  aspect-ratio: 16 / 10;
  object-position: center;
}
.product-card img.img-full,
.slides img.img-full {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
  background: #efe8dc;
}
.slider { position: relative; background: #efe8dc; }
.slides img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 42%;
  display: none;
}
.slides img.on { display: block; }
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.slide-btn.prev { left: 8px; }
.slide-btn.next { right: 8px; }
.dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 5px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.55); cursor: pointer; padding: 0;
}
.dot.on { background: #fff; }
.brand-card .mini-crest { width: 44px; height: 44px; }
.brand-card .body, .product-card .body, .panel { padding: 18px; }
.price { font-weight: 600; }
.badge {
  display: inline-block; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 999px;
  background: #efe4d4; color: var(--ink);
}
.badge.soon { background: #ead7c2; }
.badge.sold { background: #e8d4d0; }
.badge.mto { background: #dce6df; }

.product-card { display: flex; flex-direction: column; }
.product-card .body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.product-card .actions .btn { flex: 1; padding: 10px 12px; font-size: 13px; }

/* MISSION */
.mission {
  background: var(--jade); color: #f6efe4; border-radius: 32px; padding: 40px;
}
.mission h2 { color: #fff; }
.mission p { color: #d7e4db; max-width: 62ch; font-size: 18px; }

/* FORMS */
form { display: grid; gap: 12px; }
label { font-size: 13px; font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--field); color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 13px; color: var(--muted); }
.success, .error {
  padding: 12px 14px; border-radius: 14px; display: none;
}
.success { background: #dce6df; }
.error { background: #ead7d2; }
.menu-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 20px; }
.menu-table th, .menu-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.menu-table th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.menu-table .pop { color: var(--terra); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.qty-grid { display: grid; gap: 10px; }
.qty-row {
  display: grid; grid-template-columns: 1fr 110px; gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
}
.qty-row strong { display: block; font-size: 14px; }
.bulk-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-pills label {
  font-weight: 500; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 8px 12px; cursor: pointer;
}
.bulk-pills input { width: auto; margin-right: 6px; }
.preview-row { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin: 6px 0 14px;
}
.swatch {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  font-weight: 500;
}
.swatch img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 6px;
}
.swatch span { display: block; font-size: 11px; line-height: 1.3; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch:has(input:checked) { border-color: var(--terra); box-shadow: 0 0 0 2px rgba(176,106,70,.25); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* JUEL BUILDER */
.builder { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.frame-options { display: flex; gap: 8px; flex-wrap: wrap; }
.frame-opt {
  border: 1px solid var(--line); background: #fff; padding: 10px 14px;
  border-radius: 999px; cursor: pointer;
}
.frame-opt.active { background: var(--jade); color: #fff; border-color: var(--jade); }
.preview-stage {
  min-height: 320px; background: #efe4d4; border-radius: 24px;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.charm {
  width: 180px; height: 180px; background: #c4a574; display: grid; place-items: center;
  box-shadow: var(--shadow); overflow: hidden;
}
.charm.heart { border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; width: 170px; height: 160px; }
.charm.circle { border-radius: 50%; }
.charm.rect { border-radius: 16px; width: 150px; height: 190px; }
.charm img { width: 86%; height: 86%; object-fit: cover; border-radius: inherit; }
.lock { opacity: 0.55; pointer-events: none; }
.lock-note {
  position: absolute; inset: auto 16px 16px; background: rgba(43,36,28,0.88);
  color: #fff; padding: 10px 14px; border-radius: 12px; font-size: 13px;
}

/* FOOTER + WA */
footer {
  border-top: 1px solid var(--line); padding: 32px 0 90px; color: var(--muted);
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  background: #25d366; color: #08351c; font-weight: 700;
  padding: 12px 16px; border-radius: 999px; box-shadow: var(--shadow);
}
.social-dock {
  position: fixed; left: 16px; top: 50%; transform: translateY(-50%);
  z-index: 45;
  display: flex; flex-direction: column; gap: 8px;
}
.social-dock a {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.social-dock a:hover { background: #efe4d4; }
.social-dock a.wa { background: #25d366; border-color: #25d366; color: #08351c; }
@media (max-width: 880px) {
  .social-dock {
    left: 0; right: 0; top: auto; bottom: 0; transform: none;
    flex-direction: row; justify-content: space-between;
    padding: 8px 10px 10px;
    background: rgba(246,239,228,0.94);
    border-top: 1px solid var(--line);
    gap: 6px;
  }
  .social-dock a { flex: 1; text-align: center; padding: 10px 6px; font-size: 12px; }
  .wa-float { display: none; }
}

.modal {
  position: fixed; inset: 0; background: rgba(43,36,28,0.45);
  display: none; place-items: center; z-index: 60; padding: 16px;
}
.modal.open { display: grid; }
.modal .sheet {
  background: var(--paper); border-radius: 24px; padding: 22px;
  width: min(520px, 100%); max-height: 90vh; overflow: auto;
}

@media (max-width: 880px) {
  .hero, .card-grid, .split, .builder, .foot-grid, .form-row { grid-template-columns: 1fr; }
  .burger { display: block; }
  .nav-links {
    display: none; position: absolute; left: 16px; right: 16px; top: 68px;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 16px; padding: 10px; flex-direction: column; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .hero-mosaic img, .hero-mosaic img:first-child { height: 180px; }
}

.product-card { scroll-margin-top: 5.5rem; }

.pay-layout { display: grid; gap: 18px; }
.pay-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.pay-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px 20px;
  position: relative;
}
.pay-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
}
.pay-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.pay-card .amt {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.15;
  margin: 0 0 10px;
}
.pay-card p { margin: 0; }
.deliver-bar {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 14px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(226,193,154,0.12);
}
.deliver-bar h4 { margin: 0 0 6px; font-size: 0.95rem; }
@media (max-width: 800px) {
  .pay-options, .deliver-bar { grid-template-columns: 1fr; }
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.works-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 16px;
}
.works-step .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--terra);
  margin: 0 0 6px;
}
.works-step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.help-desk { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 8px 0 0; }
.help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 800px) {
  .works-grid, .help-desk { grid-template-columns: 1fr; }
}


/* juel-tap-fix */
.product-card .actions { position: relative; z-index: 3; }
.modal { z-index: 80; }
@media (max-width: 880px) {
  main.wrap { padding-bottom: 88px; }
  .product-card .actions { padding-bottom: 6px; }
}

