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

:root {
  --bg: #f5eee0;
  --bg-alt: #ece1c9;
  --bg-card: #fdfaf3;
  --text: #2b2116;
  --muted: #7d6e58;
  --gold: #a9663f;
  --gold-light: #c98a4f;
  --on-gold: #fdfaf3;
  --border: rgba(43, 33, 22, 0.10);
  --border-strong: rgba(43, 33, 22, 0.24);
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
button { font-family: inherit; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 238, 224, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 30px; height: 30px; }
.brand .name {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.accent-letter { color: var(--gold); }
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.main-nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--gold); }

.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.lang-switch {
  display: flex;
  gap: 4px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 3px;
}
.lang-btn {
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 16px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
}
.lang-btn.active { background: var(--gold); color: var(--on-gold); font-weight: 500; }

.cart-link {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-link:hover { color: var(--gold); }
.cart-count {
  position: absolute;
  top: -9px;
  right: -14px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 10px;
  font-weight: 600;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  --hero-img: url('/assets/gallery/piece-01.jpg');
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245,238,224,0.35) 0%, rgba(245,238,224,0.55) 35%, rgba(245,238,224,0.94) 75%, rgba(245,238,224,0.98) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px 72px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero-tag {
  display: inline-block;
  color: var(--text);
  background: rgba(245,238,224,0.82);
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-content h1 {
  font-size: clamp(36px, 5.6vw, 72px);
  max-width: 820px;
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero-content p {
  color: var(--muted);
  max-width: 520px;
  font-size: 16px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  border: 1px solid transparent;
  background: none;
  color: var(--text);
  margin: 0;
}
.btn-gold { background: var(--gold); color: var(--on-gold); font-weight: 500; }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 46px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.section-head .btn { flex-shrink: 0; }

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

/* ---------- Gallery grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
}
.card .thumb { aspect-ratio: 4/5; overflow: hidden; position: relative; }
.protected { position: relative; }
.protected::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/icons/watermark.svg');
  background-repeat: repeat;
  pointer-events: none;
}
.card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
  -webkit-user-drag: none;
  user-select: none;
}
.card:hover img { transform: scale(1.06); }
.card-info {
  padding: 16px 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.card-info h3 { font-size: 15px; font-weight: 500; }
.card-info .price { color: var(--gold); font-size: 14px; }
.expand-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,238,224,0.9);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.expand-btn:hover { background: var(--gold); color: var(--on-gold); transform: scale(1.08); }
.expand-btn svg { width: 16px; height: 16px; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(20,15,8,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox-img-wrap {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-img-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  -webkit-user-drag: none;
  user-select: none;
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,238,224,0.92);
  border-radius: 50%;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--gold-light); color: var(--on-gold); }

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(245,238,224,0.88);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  z-index: 2;
}

/* ---------- Filters ---------- */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  border: 1px solid var(--border-strong);
  background: none;
  color: var(--muted);
  padding: 9px 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- About / How it works ---------- */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
@media (max-width: 860px) { .about-block { grid-template-columns: 1fr; gap: 40px; } }
.about-block img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.about-block h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 22px; }
.about-block p { color: var(--muted); font-size: 15.5px; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }
.how-step { border-top: 1px solid var(--border-strong); padding-top: 22px; }
.how-step .num {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 30px;
  margin-bottom: 14px;
  display: block;
}
.how-step h3 { font-size: 18px; margin-bottom: 10px; }
.how-step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 56px 0 34px;
  color: var(--muted);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}
.footer-brand .name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.footer-brand .tagline { font-size: 13px; color: var(--gold); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); margin-bottom: 14px; font-family: 'Inter'; font-weight: 500;
}
.footer-col a { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 9px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page header (non-hero pages) ---------- */
.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.page-header p { color: var(--muted); font-size: 15.5px; }

/* ---------- Product page ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
}
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; gap: 36px; } }
.product-image { aspect-ratio: 4/5; overflow: hidden; border: 1px solid var(--border); position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.product-info .back-link { color: var(--muted); font-size: 13px; margin-bottom: 24px; display: inline-block; }
.product-info .back-link:hover { color: var(--gold); }
.product-info h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.product-info .price { font-size: 24px; color: var(--gold); margin-bottom: 22px; font-family: 'Playfair Display', serif; }
.product-info .desc { color: var(--muted); font-size: 15.5px; margin-bottom: 28px; }
.product-actions { display: flex; gap: 14px; margin-bottom: 34px; flex-wrap: wrap; }
.product-meta {
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.product-meta h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.product-meta p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* ---------- Cart ---------- */
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img { width: 90px; height: 110px; object-fit: cover; }
.cart-item h3 { font-size: 16px; margin-bottom: 6px; }
.cart-item .sub { color: var(--muted); font-size: 13px; }
.cart-item .price { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 17px; }
.remove-btn {
  background: none; border: none; color: var(--muted);
  font-size: 12px; text-decoration: underline; cursor: pointer; font-family: 'Inter';
}
.remove-btn:hover { color: #d8776b; }

.cart-summary {
  border: 1px solid var(--border-strong);
  padding: 28px;
  background: var(--bg-card);
}
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 14.5px; color: var(--muted); }
.cart-summary .row.total { color: var(--text); font-size: 18px; font-family: 'Playfair Display', serif; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 13px 15px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-note {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  padding: 12px 15px;
  margin-bottom: 24px;
}

/* ---------- Success state ---------- */
.success-box {
  text-align: center;
  padding: 70px 40px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
}
.success-box .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--on-gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 26px; font-size: 26px;
}
.success-box h2 { font-size: 28px; margin-bottom: 12px; }
.success-box p { color: var(--muted); margin-bottom: 30px; }

/* ---------- Upload page ---------- */
.dropzone {
  border: 1.5px dashed var(--border-strong);
  padding: 60px 30px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 30px;
  transition: border-color 0.2s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--gold); color: var(--gold); }
.dropzone svg { margin-bottom: 14px; opacity: 0.7; }
.upload-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 860px) { .upload-layout { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.tab-btn {
  background: none; border: none; color: var(--muted); padding: 10px 16px;
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  border-bottom: 2px solid transparent; font-family: 'Inter';
}
.tab-btn.active { color: var(--gold); border-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.empty-state { text-align: center; padding: 90px 30px; color: var(--muted); }
.empty-state h2 { color: var(--text); margin-bottom: 14px; }
