/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-accent: #c8a96e;
  --color-accent-dark: #a8864e;
  --color-border: #e5e5e0;
  --color-danger: #d94040;
  --font-body: 'Georgia', serif;
  --font-ui: system-ui, sans-serif;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }

/* ── Header ────────────────────────────────────────── */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-size: 1.5rem; font-weight: bold; letter-spacing: .05em; }
nav { display: flex; gap: 32px; font-family: var(--font-ui); font-size: .9rem; }
nav a { color: var(--color-muted); transition: color .2s; }
nav a:hover { color: var(--color-text); }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #2a2a2a 0%, #4a3728 100%);
  color: #fff;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero-content h1 { font-size: clamp(2rem, 6vw, 4rem); margin-bottom: 16px; }
.hero-content p { font-size: 1.2rem; color: #ccc; margin-bottom: 32px; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}
.btn:hover { background: var(--color-accent-dark); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { background: var(--color-border); }
.btn-danger { background: var(--color-danger); }
.btn-danger:hover { background: #b83232; }
.btn-full { width: 100%; text-align: center; }

/* ── Product Grid & Cards ──────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.card-body { padding: 16px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.price { color: var(--color-accent-dark); font-size: 1.1rem; font-weight: bold; font-family: var(--font-ui); }

/* ── Filters ───────────────────────────────────────── */
.filters { display: flex; gap: 16px; flex-wrap: wrap; }
.filters select, .filters input {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: var(--font-ui);
  background: var(--color-surface);
}

/* ── Product Detail ────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 700px) { .product-detail { grid-template-columns: 1fr; } }

.gallery-main img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 4px; cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.gallery-thumbs img.active { border-color: var(--color-accent); }

.product-info h1 { font-size: 2rem; margin-bottom: 12px; }
.product-price { font-size: 1.8rem; color: var(--color-accent-dark); margin: 12px 0 24px; font-family: var(--font-ui); }
.dimensions { color: var(--color-muted); font-family: var(--font-ui); font-size: .9rem; margin-bottom: 24px; }

/* ── About ─────────────────────────────────────────── */
.about { background: var(--color-surface); }
.about-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.about h2 { margin-bottom: 16px; font-size: 2rem; }

/* ── Footer ────────────────────────────────────────── */
.site-footer { background: #1a1a1a; color: #aaa; padding: 40px 0; font-family: var(--font-ui); }
.footer-inner { display: flex; gap: 48px; flex-wrap: wrap; }
.site-footer h3 { color: #fff; margin-bottom: 8px; }

/* ── Auth / Login ──────────────────────────────────── */
.auth-card {
  max-width: 400px; margin: 80px auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin-bottom: 24px; font-size: 1.6rem; }

/* ── Forms ─────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-family: var(--font-ui); font-size: .9rem; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-ui);
  background: var(--color-surface);
}
.form-group textarea { resize: vertical; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.checkbox-group label { display: flex; align-items: center; gap: 8px; font-weight: normal; }

.error { color: var(--color-danger); font-family: var(--font-ui); font-size: .9rem; margin-top: 12px; }
.loading { color: var(--color-muted); font-family: var(--font-ui); }

/* ── Section headings ──────────────────────────────── */
h2 { font-size: 1.8rem; margin-bottom: 8px; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 600px) {
  nav { gap: 16px; }
  .section { padding: 40px 0; }
}
