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

/* ─── DESIGN TOKENS ─── */
:root {
  --bg: #f2f0ec;
  --ink: #111;
  --muted: #77746d;
  --line: rgba(17, 17, 17, .12);
  --white: #faf9f6;
  --accent: #111;
  --radius: 0;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: Inter, Arial, sans-serif; font-weight: 300; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }

/* ─── ANNOUNCEMENT BAR ─── */
.announcement {
  height: 30px;
  background: #111;
  color: #ddd;
  text-align: center;
  font: 400 9px 'DM Mono', monospace;
  letter-spacing: .22em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── HEADER ─── */
.site-header {
  height: 82px;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 240, 236, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.wordmark {
  font: 500 14px Inter;
  letter-spacing: .42em;
}
.site-header nav {
  display: flex;
  gap: 32px;
  font: 400 9px 'DM Mono';
  letter-spacing: .18em;
}
.site-header nav a { transition: opacity .2s; }
.site-header nav a:hover { opacity: .5; }
.bag-button {
  justify-self: end;
  font: 400 9px 'DM Mono';
  letter-spacing: .18em;
  transition: opacity .2s;
}
.bag-button:hover { opacity: .5; }
.bag-button span {
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 9px;
}

/* ─── ORBIT HERO SECTION ─── */
.gallery-home { background: var(--bg); }

.orbit-hero {
  min-height: calc(100vh - 112px);
  padding: 28px 4vw 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Topline bar */
.orbit-topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font: 400 8px 'DM Mono', monospace;
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.orbit-location { text-align: right; }
.orbit-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.orbit-category label {
  font: 400 8px 'DM Mono';
  letter-spacing: .18em;
  color: var(--muted);
}
.orbit-category select {
  appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(17,17,17,.45);
  background: transparent;
  color: var(--ink);
  padding: 5px 28px 6px 4px;
  font: 400 9px 'DM Mono';
  letter-spacing: .2em;
  outline: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
  background-position: calc(100% - 10px) 9px, calc(100% - 6px) 9px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

/* ─── 3D ORBIT CAROUSEL ─── */
.orbit-stage-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 560px;
}

.orbit-viewport {
  position: relative;
  width: 100%;
  height: min(72vh, 660px);
  min-height: 480px;
  perspective: 1400px;
  perspective-origin: 50% 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* The rotating ring container */
.orbit-ring {
  position: relative;
  width: 380px;
  height: 460px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Each item in the orbit */
.orbit-item {
  position: absolute;
  width: 380px;
  height: 460px;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.orbit-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.orbit-item img {
  max-width: 95%;
  max-height: 95%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.12));
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), filter .6s;
}

.orbit-item.active img {
  transform: scale(1.12);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.18));
}

.orbit-item.active a:hover img {
  transform: translateY(-8px) scale(1.18);
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.22));
}

/* Reflection under the carousel */
.orbit-reflection {
  position: absolute;
  bottom: 8%;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17,17,17,.1), transparent);
}

/* Navigation arrows */
.orbit-arrow {
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
  z-index: 5;
}
.orbit-arrow:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: scale(1.08);
}

/* ─── PRODUCT INFO BAR ─── */
.orbit-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  font: 400 9px 'DM Mono', monospace;
  letter-spacing: .16em;
  min-height: 48px;
}
.orbit-info-index { color: var(--muted); }
.orbit-info-name { color: var(--ink); font-weight: 500; }
.orbit-info-price { color: var(--muted); }
.orbit-info-link {
  margin-left: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--ink);
  font: 400 8px 'DM Mono';
  letter-spacing: .2em;
  transition: opacity .2s;
}
.orbit-info-link:hover { opacity: .5; }
.orbit-info-add {
  padding: 8px 16px;
  border: 1px solid var(--ink);
  font: 400 8px 'DM Mono';
  letter-spacing: .18em;
  transition: all .25s;
}
.orbit-info-add:hover {
  background: var(--ink);
  color: var(--white);
}

/* ─── STORY SECTION ─── */
.story {
  padding: 150px 8vw;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8vw;
}
.eyebrow {
  font: 400 9px 'DM Mono';
  letter-spacing: .22em;
  color: var(--muted);
}
.story blockquote {
  font: 400 clamp(36px, 5vw, 72px)/1.05 'Playfair Display', serif;
  margin: 0;
}
.story blockquote small {
  display: block;
  margin-top: 28px;
  font: 400 9px 'DM Mono';
  letter-spacing: .18em;
}
.story p {
  max-width: 420px;
  align-self: end;
  line-height: 1.85;
  font-size: 13px;
  color: var(--muted);
}
.story-minimal { padding-top: 130px; }
.story-minimal > div:last-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8vw;
}
.story-minimal blockquote { max-width: 620px; }
.story-minimal p { margin: 0; max-width: 300px; }

/* ─── SERVICE STRIP ─── */
.service-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.service-strip div {
  padding: 38px 4vw;
  border-right: 1px solid var(--line);
}
.service-strip div:last-child { border: 0; }
.service-strip span {
  font: 400 9px 'DM Mono';
  color: var(--muted);
  display: block;
  margin-bottom: 35px;
}
.service-strip strong {
  font: 500 10px 'DM Mono';
  letter-spacing: .16em;
}
.service-strip p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── FOOTER ─── */
footer {
  padding: 80px 4vw;
}
.footer-brand {
  font-size: clamp(48px, 9vw, 120px);
  letter-spacing: -.06em;
  font-weight: 300;
}
.footer-links {
  display: flex;
  gap: 28px;
  margin-top: 50px;
  font: 400 9px 'DM Mono';
  letter-spacing: .16em;
}
.footer-links a { transition: opacity .2s; }
.footer-links a:hover { opacity: .5; }
.footer-links + p {
  margin-top: 50px;
  font-family: 'Playfair Display';
  font-style: italic;
}
.footer-links ~ small {
  display: block;
  margin-top: 45px;
  font: 400 9px 'DM Mono';
  color: var(--muted);
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #111;
  color: #eee;
  padding: 14px 22px;
  font: 400 9px 'DM Mono';
  letter-spacing: .12em;
  opacity: 0;
  pointer-events: none;
  transition: .3s cubic-bezier(.16, 1, .3, 1);
  z-index: 60;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ─── HERO (grid layout fallback for shop.html etc.) ─── */
.hero { min-height: 650px; padding: 30px 5vw 95px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.collection-control { display: grid; grid-template-columns: 42px 180px 42px; align-items: center; justify-content: center; gap: 12px; margin: 0 0 34px; }
.category-select-wrap { text-align: center; }
.category-select-wrap label { display: block; margin-bottom: 7px; color: var(--muted); font: 8px 'DM Mono'; letter-spacing: .18em; }
.category-select-wrap select { appearance: none; width: 150px; text-align: center; text-align-last: center; border: 0; border-bottom: 1px solid var(--ink); padding: 5px 24px 8px 6px; background: transparent; font: 10px 'DM Mono'; letter-spacing: .18em; cursor: pointer; outline: 0; background-image: linear-gradient(45deg, transparent 50%, #151515 50%), linear-gradient(135deg, #151515 50%, transparent 50%); background-position: calc(100% - 9px) 10px, calc(100% - 5px) 10px; background-size: 4px 4px, 4px 4px; background-repeat: no-repeat; }
.hero-arrow { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 300; transition: .2s; }
.hero-arrow:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: min(1120px, 100%); }
.product-card { position: relative; min-width: 0; }
.product-image { background: #e4e2dc; aspect-ratio: 4/5; display: block; overflow: hidden; }
.product-image img { width: 100%; height: 100%; display: block; object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1); padding: 7%; }
.product-card:hover img { transform: scale(1.025); }
.product-info { display: flex; justify-content: space-between; gap: 12px; padding: 15px 2px 0; font-size: 10px; align-items: baseline; }
.product-name { letter-spacing: .08em; }
.product-meta { display: none; }
.product-price { font: 10px 'DM Mono'; letter-spacing: .08em; white-space: nowrap; }
.add-button { position: absolute; right: 10px; bottom: 55px; background: var(--bg); border: 1px solid var(--ink); padding: 10px 12px; font: 9px 'DM Mono'; letter-spacing: .1em; opacity: 0; transform: translateY(5px); transition: .25s; }
.product-card:hover .add-button { opacity: 1; transform: none; }

/* ─── BAG DRAWER ─── */
.bag-drawer{position:fixed;top:0;right:0;width:380px;height:100%;background:var(--white);z-index:100;transform:translateX(100%);transition:transform .35s cubic-bezier(.16,1,.3,1);display:flex;flex-direction:column;padding:30px}
.bag-drawer.open{transform:none}
.drawer-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.3);z-index:99;opacity:0;pointer-events:none;transition:.3s}
.drawer-backdrop.show{opacity:1;pointer-events:all}
.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;font:500 10px 'DM Mono';letter-spacing:.2em}
.drawer-head button{font-size:22px}
.drawer-items{flex:1;overflow-y:auto}
.drawer-item{display:grid;grid-template-columns:70px 1fr auto;gap:14px;padding:15px 0;border-bottom:1px solid var(--line);align-items:start}
.drawer-item img{width:70px;height:85px;object-fit:contain;background:#eee}
.drawer-item p{font-size:11px;letter-spacing:.06em;margin-bottom:5px}
.drawer-item small{font-size:10px;color:var(--muted)}
.drawer-item button{font-size:18px;opacity:.5}
.drawer-total{padding-top:20px;border-top:1px solid var(--line)}
.total-line{display:flex;justify-content:space-between;padding:8px 0;font:400 10px 'DM Mono';letter-spacing:.12em}
.total-line.grand{border-top:1px solid var(--ink);margin-top:8px;padding-top:14px;font-weight:500}
.primary-button{display:block;text-align:center;background:#111;color:#eee;padding:16px;margin-top:18px;font:400 10px 'DM Mono';letter-spacing:.2em;transition:opacity .2s}
.primary-button:hover{opacity:.85}
.text-link{font:400 9px 'DM Mono';letter-spacing:.15em;border-bottom:1px solid var(--ink);padding-bottom:2px}

/* ─── CART / CHECKOUT PAGES ─── */
.page,.checkout-page{padding:60px 8vw 100px}
.page h1,.checkout-page h1{font:500 12px 'DM Mono';letter-spacing:.22em;margin-bottom:50px}
.cart-empty{text-align:center;padding:80px 0}
.cart-empty p{margin-bottom:20px;font-size:13px}
.cart-table{border-top:1px solid var(--line)}
.cart-row{display:grid;grid-template-columns:100px 1fr auto auto auto;gap:20px;align-items:center;padding:22px 0;border-bottom:1px solid var(--line)}
.cart-thumb{width:100px;height:120px;object-fit:contain;background:#eee}
.cart-row h3{font:400 11px Inter;letter-spacing:.06em}
.cart-row p{font:400 10px 'DM Mono';color:var(--muted);margin-top:6px}
.qty{display:flex;align-items:center;gap:14px}
.qty button{width:30px;height:30px;border:1px solid var(--line);font-size:16px;display:grid;place-items:center}
.qty span{font:400 11px 'DM Mono'}
.cart-price{font:400 11px 'DM Mono';letter-spacing:.08em}
.remove{font-size:18px;opacity:.4;transition:.2s}
.remove:hover{opacity:1}
.cart-bottom{display:grid;grid-template-columns:1fr 1fr;gap:60px;margin-top:50px;padding-top:40px;border-top:1px solid var(--line)}
.cart-bottom .muted{color:var(--muted);font-size:11px;margin-top:10px}
.cart-total{display:flex;flex-direction:column;gap:0}
.checkout-layout{display:grid;grid-template-columns:1fr 1fr;gap:80px}
.order-summary h2{font:500 10px 'DM Mono';letter-spacing:.2em;margin-bottom:25px}
.summary-item{display:grid;grid-template-columns:70px 1fr auto;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);align-items:center}
.summary-item img{width:70px;height:85px;object-fit:contain;background:#eee}
.summary-item p{font-size:11px;letter-spacing:.04em}
.summary-item small{font-size:10px;color:var(--muted)}
.summary-item strong{font:400 11px 'DM Mono'}
.summary-total{margin-top:20px}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.field{display:flex;flex-direction:column;gap:6px}
.field.full{grid-column:1/-1}
.field label{font:400 8px 'DM Mono';letter-spacing:.16em;color:var(--muted)}
.field input,.field select,.field textarea{border:1px solid var(--line);padding:12px;font-size:13px;outline:none;background:transparent;transition:border-color .2s}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--ink)}
.field textarea{resize:vertical;min-height:80px}
.form-message{font:400 10px 'DM Mono';color:var(--muted);margin-top:14px;min-height:20px}

/* ─── RESPONSIVE ─── */
@media (max-width: 800px) {
  .site-header { grid-template-columns: 1fr auto; height: 70px; }
  .site-header nav { display: none; }
  .orbit-hero { min-height: calc(100svh - 100px); padding: 20px 4vw 28px; }
  .orbit-topline { grid-template-columns: 1fr auto; }
  .orbit-location { display: none; }
  .orbit-stage-wrap { grid-template-columns: 38px 1fr 38px; gap: 4px; min-height: 460px; }
  .orbit-viewport { height: 60svh; min-height: 420px; }
  .orbit-ring { width: 280px; height: 360px; }
  .orbit-item { width: 280px; height: 360px; }
  .orbit-arrow { width: 38px; height: 38px; }
  .orbit-arrow svg { width: 18px; height: 18px; }
  .orbit-info { gap: 16px; font-size: 8px; flex-wrap: wrap; justify-content: center; }
  .story { grid-template-columns: 1fr; padding: 90px 7vw; }
  .story p { margin-top: 20px; }
  .story-minimal > div:last-child { display: block; }
  .story-minimal blockquote { font-size: 36px; }
  .service-strip { grid-template-columns: 1fr; }
  .service-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero { min-height: 560px; padding: 25px 5vw 70px; }
  .collection-control { grid-template-columns: 38px 165px 38px; gap: 6px; margin-bottom: 28px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .product-card:nth-child(3) { display: none; }
  .cart-row { grid-template-columns: 80px 1fr auto; gap: 12px; }
  .cart-row .cart-price, .cart-row .remove { display: none; }
  .cart-bottom { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { order: -1; }
  .field-grid { grid-template-columns: 1fr; }
  .page, .checkout-page { padding-left: 6vw; padding-right: 6vw; }
  .footer-links { flex-wrap: wrap; }
  .bag-drawer { width: 100%; }
}

@media (max-width: 480px) {
  .orbit-hero { padding-left: 3vw; padding-right: 3vw; }
  .orbit-topline { font-size: 7px; }
  .orbit-category label { display: none; }
  .orbit-category select { font-size: 8px; }
  .orbit-stage-wrap { grid-template-columns: 30px 1fr 30px; }
  .orbit-viewport { height: 58svh; min-height: 380px; }
  .orbit-ring { width: 230px; height: 300px; }
  .orbit-item { width: 230px; height: 300px; }
  .orbit-arrow { width: 30px; height: 30px; }
  .orbit-arrow svg { width: 15px; height: 15px; }
  .orbit-info { font-size: 7px; gap: 10px; }
  .orbit-info-add { padding: 6px 12px; font-size: 7px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card:nth-child(2), .product-card:nth-child(3) { display: none; }
  .hero-arrow { width: 30px; height: 30px; }
  .site-header .wordmark { font-size: 11px; letter-spacing: .35em; }
  .announcement { font-size: 7.5px; }
}
