/* Biloba — site stylesheet. Plain CSS, no build step, no framework. */

@font-face {
  font-family: 'Garet';
  src: url('/static/fonts/garet-book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: oklch(100% 0 0);
  --bg-alt: oklch(96% 0.012 75);
  --ink: oklch(24% 0.02 50);
  --ink-soft: oklch(48% 0.02 55);
  --line: oklch(88% 0.015 70);
  --accent: #dbb066;
  --accent-deep: #a4844c;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: 'Montserrat', sans-serif; font-weight: 500; margin: 0; overflow-wrap: break-word; }
.about-copy { font-family: 'Montserrat', sans-serif; font-weight: 400; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
button { font-family: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 48px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 48px; max-width: 1320px; margin: 0 auto; position: relative; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 25px; letter-spacing: 0.03em; }
.logo img { width: 53px; height: auto; display: block; }
.wordmark { font-family: 'Garet', 'Montserrat', sans-serif; font-weight: 400; font-size: 13px; letter-spacing: 0.05em; color: var(--accent-deep); }
.logo:hover .wordmark { color: var(--accent); }
.nav-menu { display: contents; }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { color: var(--ink); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 5px; border-bottom: 1px solid transparent; }
.nav-links a.active, .nav-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 30px; }
.lang { display: flex; gap: 10px; font-size: 13px; letter-spacing: 0.02em; color: var(--ink-soft); }
.lang-btn { background: none; border: none; padding: 0; font: inherit; color: var(--ink-soft); cursor: pointer; }
.lang-btn.sel { color: var(--ink); font-weight: 600; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); position: relative; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; margin: -8px; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; background: transparent; color: var(--accent); font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 600; border: 1.5px solid var(--accent); cursor: pointer; }
.btn:hover { background: var(--accent); color: oklch(100% 0 0); }
.btn-fill { background: var(--accent); color: oklch(100% 0 0); }
.btn-fill:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-on-photo { background: oklch(100% 0 0); color: var(--ink); border-color: oklch(100% 0 0); }
.btn-on-photo:hover { background: var(--accent); color: oklch(100% 0 0); border-color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }

/* Photo placeholder blocks */
.ph { position: relative; overflow: hidden; background: var(--ph, var(--bg-alt)); }
.ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.10) 100%); pointer-events: none; }
.ph-tag { position: absolute; bottom: 12px; right: 14px; font-size: 11px; letter-spacing: 0.05em; font-style: italic; color: oklch(98% 0.01 80 / 0.75); z-index: 1; }
.badge-sold-out { position: absolute; top: 12px; left: 12px; z-index: 1; background: oklch(20% 0 0 / 0.85); color: oklch(98% 0 0); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

.kicker { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.kicker-on-photo { color: oklch(100% 0 0); }

/* Homepage */
.hero { position: relative; width: 100%; overflow: hidden; aspect-ratio: 21 / 9; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(20,16,12,0.55) 0%, rgba(20,16,12,0.28) 32%, rgba(20,16,12,0) 58%); }
.hero-copy { position: absolute; top: 64px; left: 64px; max-width: 460px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.slides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; margin-top: 110px; }
.slide { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.slide h3 { font-size: 19px; }
.slide-stripe { width: 40px; height: 2px; background: var(--accent); opacity: 0.35; }

.about { margin-top: 140px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 72px; align-items: center; scroll-margin-top: 90px; }
.about-photo { position: relative; height: 520px; width: 100%; }

/* Video play overlay: big centered triangle over the poster; clicking it
   starts playback and hands off to native browser controls. */
.video-wrap { position: relative; width: 100%; height: 100%; }
.play-overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  border: none; padding: 0; cursor: pointer;
}
.play-overlay .circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: oklch(98% 0.005 80 / 0.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: transform 0.15s ease;
}
.play-overlay:hover .circle { transform: scale(1.06); }
.play-overlay svg { margin-left: 4px; }

/* Catalog */
.page-head { padding-top: 56px; padding-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 40px 32px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.card .ph { height: 300px; width: 100%; }
.card .ph::after { display: none; }
.card h3 { font-size: 19px; margin: 0; }
.card .price { color: var(--accent); font-size: 14px; letter-spacing: 0.02em; }
.card-link { color: inherit; }
.card-link:hover .price { color: var(--accent-deep); }

/* Product page */
.crumb { font-size: 13px; color: var(--ink-soft); }
.crumb b { color: var(--ink); font-weight: 500; }
.product-layout { margin-top: 24px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: flex-start; }
.thumbs { display: flex; gap: 14px; margin-top: 14px; }
.thumbs .ph { width: 88px; height: 88px; }

.gallery-main img { cursor: zoom-in; }

.thumb {
  width: 88px; height: 88px; padding: 0; background: none; border: none; cursor: pointer;
  overflow: hidden; position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-dim { position: absolute; inset: 0; background: oklch(100% 0 0 / 0.55); pointer-events: none; }
.thumb.sel .thumb-dim { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20, 16, 12, 0.92); display: flex; align-items: center; justify-content: center; padding: 48px; overflow: hidden; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; cursor: zoom-in; transition: transform 0.2s ease; }
.lightbox.zoomed img { cursor: zoom-out; }
.lightbox-close { position: fixed; top: 24px; right: 24px; background: none; border: none; color: oklch(98% 0.005 80); cursor: pointer; padding: 8px; z-index: 1; }
.product-info { display: flex; flex-direction: column; gap: 30px; }
.price { color: var(--accent); font-size: 20px; }
.opt-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; display: block; }
.opt-row { display: flex; gap: 12px; flex-wrap: wrap; }

.swatch { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; padding: 0; position: relative; }
.swatch.sel::after { content: ''; position: absolute; inset: -5px; border: 2px solid var(--accent); border-radius: 50%; }

.pill { padding: 10px 18px; border: 1px solid oklch(91% 0 0); background: transparent; color: var(--ink-soft); font-size: 13px; cursor: pointer; }
.pill.sel { border-color: var(--accent); color: var(--accent); }

.stepper { display: flex; align-items: center; border: 1px solid var(--line); }
.stepper button { background: none; border: none; width: 40px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); font-size: 16px; }
.stepper span { width: 36px; text-align: center; font-size: 14px; }

.note { font-size: 13px; color: var(--ink-soft); }

.upsell { display: flex; gap: 20px; margin-top: 18px; }
.upsell-card { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); padding: 14px; flex: 1; color: inherit; }
.upsell-card:hover .price { color: var(--accent-deep); }
.upsell-card .ph { width: 56px; height: 56px; flex-shrink: 0; }
.upsell-card .name { font-size: 14px; }
.upsell-card .price { font-size: 13px; }

/* Order / Contact forms */
.cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: flex-start; }

.line { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line .ph { width: 64px; height: 64px; flex-shrink: 0; }
.line .name { font-size: 15px; }
.line .variant { font-size: 13px; color: var(--ink-soft); }
.line .qty { font-size: 13px; color: var(--ink-soft); margin-left: auto; }
.line .close { color: var(--ink-soft); cursor: pointer; background: none; border: none; padding: 0; }
.line .unavailable { color: var(--ink-soft); font-style: italic; }

/* Cart */
.cart-badge { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: oklch(100% 0 0); font-size: 10px; line-height: 16px; text-align: center; }
.cart-badge[hidden] { display: none; }

.cart-drawer { position: fixed; inset: 0; z-index: 60; }
.cart-drawer[hidden] { display: none; }
.cart-drawer-backdrop { position: absolute; inset: 0; background: rgba(20, 16, 12, 0.45); }
.cart-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; background: var(--bg); padding: 28px; overflow-y: auto; display: flex; flex-direction: column; }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cart-drawer-checkout { margin-top: 20px; text-align: center; justify-content: center; }

.form-success { display: flex; flex-direction: column; align-items: flex-start; }
.form-success[hidden] { display: none; }
.form-success-icon { width: 48px; height: 48px; border-radius: 50%; background: oklch(93% 0.06 145); color: oklch(45% 0.13 145); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.form-success .btn { margin-top: 22px; }

.field-label, label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 8px; }
input, textarea { width: 100%; border: 1px solid var(--line); background: transparent; padding: 13px 14px; font-size: 14px; color: var(--ink); }
input, textarea, button { font-family: inherit; }
.field { margin-bottom: 22px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.contact-line { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-line .icon { color: var(--ink); flex-shrink: 0; }
.contact-line .label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.contact-line .value { font-size: 16px; color: var(--ink); }
.contact-line a.value:hover { color: var(--accent); }

.social-row { display: flex; gap: 22px; margin-top: 28px; }
.social-row a, .social a { color: var(--ink); display: flex; align-items: center; gap: 8px; }
.social-row a:hover, .social a:hover { color: var(--accent); }

/* Footer */
footer.site { border-top: 1px solid var(--line); margin-top: 130px; }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 56px 48px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-inner .logo img { width: 40px; }
.footer-inner .wordmark { font-size: 10px; }
.social { display: flex; gap: 22px; }
.footer-lang { display: flex; gap: 16px; font-size: 13px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .wrap, .nav-inner, .footer-inner { padding-left: 24px; padding-right: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-layout, .about, .cols { grid-template-columns: 1fr; }
  .nav-links { gap: 20px; }

  .hero { aspect-ratio: auto; height: 560px; }
  .hero-copy { top: 32px; left: 24px; right: 24px; max-width: none; gap: 16px; }
  .hero-copy .display { font-size: 32px !important; line-height: 1.2 !important; }

  .slides { grid-template-columns: 1fr; gap: 32px; margin-top: 56px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    display: none;
    flex-direction: column; align-items: flex-start; gap: 22px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 22px 24px 28px;
  }
  .nav-menu.open { display: flex; }
  .nav-links, .nav-right { flex-direction: column; align-items: flex-start; gap: 16px; }
}
