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

/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
  --white:   #ffffff;
  --black:   #1a1a1a;
  --gray-50: #fafafa;
  --gray-100:#f5f5f5;
  --gray-200:#e5e5e5;
  --gray-400:#999999;
  --accent:  #9b7b50;
  --pad:     2rem;
  --max-w:   1400px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  line-height: 1.25;
}
h1 { font-size: 3rem; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p  { max-width: 65ch; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section { padding: 5rem 0; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.desktop-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  transition: color 0.2s;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: var(--black); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 0.5rem;
  line-height: 1;
  font-size: 1.4rem;
}

/* ── Mobile menu overlay ───────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  flex-direction: column;
  padding: 0 var(--pad);
}
.mobile-menu.open { display: flex; }
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.mobile-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--black);
  padding: 0.5rem;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 3rem;
}
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.2s;
  padding: 0.5rem 0;
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--black); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--gray-200);
  margin-top: 6rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 3rem 0;
  text-align: center;
}
.footer-social a {
  color: var(--gray-400);
  transition: color 0.2s;
  display: inline-block;
}
.footer-social a:hover { color: var(--black); }
.footer-social svg { width: 20px; height: 20px; }
.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.82rem;
  color: var(--gray-400);
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--gray-400);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.22);
}
.hero-body {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 0 1.5rem;
}
.hero-body h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-body p {
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.9;
  max-width: none;
}

/* ── Page header ───────────────────────────────────────────────────────── */
.page-head { margin-bottom: 4rem; }
.page-head h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 0.75rem; }
.page-head p  { font-size: 1.05rem; color: var(--gray-400); max-width: 42rem; }

/* ── Product grid ──────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem 2.5rem;
}

/* ── Product card ──────────────────────────────────────────────────────── */
.product-card { display: block; cursor: pointer; }
.card-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: 1.25rem;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .card-image img { transform: scale(1.03); }
.card-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.card-info .card-edition {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 0.4rem;
}
.card-info .card-price {
  font-size: 0.95rem;
  font-weight: 700;
}

/* ── Product detail ────────────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 3rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--black); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.detail-main-image {
  aspect-ratio: 3/4;
  background: var(--gray-100);
  overflow: hidden;
}
.detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 2.5rem;
}
.detail-description {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  max-width: 100%;
}
.detail-description p { max-width: 100%; }

.variant-group { margin-bottom: 1.75rem; }
.variant-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.9rem;
  display: block;
}
.variant-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.variant-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-family: 'Lato', sans-serif;
  background: transparent;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.18s;
  color: var(--black);
}
.variant-btn:hover { border-color: var(--black); }
.variant-btn.selected {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.price-bar {
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.75rem 0;
  margin: 2rem 0;
}
.detail-price {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.buy-btn {
  display: block;
  width: 100%;
  padding: 1.15rem;
  background: var(--black);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}
.buy-btn:hover { background: #333; }

/* ── About ─────────────────────────────────────────────────────────────── */
.about-inner { max-width: 44rem; margin: 0 auto; }
.about-inner h1 { margin-bottom: 1.5rem; }
.about-inner p {
  font-size: 1.05rem;
  line-height: 1.95;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact-inner { max-width: 36rem; }
.contact-inner h1 { margin-bottom: 0.75rem; }
.contact-sub {
  font-size: 1.05rem;
  color: var(--gray-400);
  margin-bottom: 3rem;
}
.form-row { margin-bottom: 1.4rem; }
.form-row label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--black); }
.form-row textarea { min-height: 140px; resize: vertical; }

.form-msg {
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}
.form-msg.success { color: #2e7d32; display: block; }
.form-msg.error   { color: #c62828; display: block; }

/* ── States ────────────────────────────────────────────────────────────── */
.loading-wrap,
.error-wrap {
  text-align: center;
  padding: 5rem 0;
  color: var(--gray-400);
}
.spinner {
  width: 30px; height: 30px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .detail-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  :root { --pad: 2rem; }
  .section { padding: 3rem 0; }
  .desktop-nav { display: none; }
  .nav-toggle { display: block; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
  h1 { font-size: 2.2rem; }
}
@media (max-width: 480px) {
  :root { --pad: 1.25rem; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}
