*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f4ef;
  --surface: #ede9e1;
  --card: #ffffff;
  --border: #d6d0c6;
  --text: #1a1814;
  --muted: #6e6860;
  --accent: #2d5c1e;
  --accent-light: #3a7227;
  --brown: #7a5230;
  --moss: #5c7840;
  --stone: #9a9288;
  --radius: 10px;
  --max-w: 1100px;
  --header-h: 64px;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.6; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* SCROLL PROGRESS */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform-origin: left; transform: scaleX(0); z-index: 200;
  transition: transform 0.1s linear;
}

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(247,244,239,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.brand__icon { width: 28px; height: 28px; color: var(--accent); flex-shrink: 0; }
.brand__name span { color: var(--accent); }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 0.8rem; font-weight: 600; color: var(--muted); transition: color 0.2s; letter-spacing: 0.07em; text-transform: uppercase; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--text); }

/* HERO */
.hero {
  max-width: var(--max-w); margin: 0 auto; padding: 100px 24px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero__label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.hero__title { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.1; margin-bottom: 22px; color: var(--text); }
.hero__title em { color: var(--accent); font-style: italic; }
.hero__sub { color: var(--muted); font-size: 1.05rem; line-height: 1.75; margin-bottom: 36px; max-width: 420px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual { display: flex; align-items: center; justify-content: center; }
.hero__visual svg { width: 100%; max-width: 360px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 6px;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em;
  transition: all 0.2s; cursor: pointer; border: none; font-family: inherit;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(45,92,30,0.25); }
.btn--outline { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 9px 18px; font-size: 0.82rem; }

/* SECTIONS */
.section { padding: 80px 24px; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section__label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.section__title { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; color: var(--text); }
.section__sub { color: var(--muted); max-width: 500px; font-size: 0.95rem; }
.section__header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; flex-wrap: wrap; gap: 16px; }
.section__header .left { flex: 1; min-width: 200px; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 28px 24px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: box-shadow 0.2s, border-color 0.2s;
}
.feature:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); border-color: var(--accent); }
.feature__icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature__title { font-family: 'Playfair Display', serif; font-size: 1.05rem; margin-bottom: 8px; }
.feature__text { color: var(--muted); font-size: 0.87rem; line-height: 1.7; }

/* CARDS */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); border-color: rgba(45,92,30,0.4); transform: translateY(-2px); }
.card__img { width: 100%; height: 210px; object-fit: cover; }
.card__placeholder {
  width: 100%; height: 210px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}
.card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card__tag { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.card__title { font-family: 'Playfair Display', serif; font-size: 1.05rem; margin-bottom: 8px; line-height: 1.4; color: var(--text); }
.card__excerpt { color: var(--muted); font-size: 0.86rem; line-height: 1.65; margin-bottom: 16px; flex: 1; }
.card__footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-top: auto; border-top: 1px solid var(--border); padding-top: 14px; }
.card__link { color: var(--accent); font-weight: 600; font-size: 0.83rem; transition: opacity 0.2s; }
.card__link:hover { opacity: 0.75; }
.card__price { font-size: 1.1rem; font-weight: 700; color: var(--text); }

/* BADGES */
.badge { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; margin-bottom: 10px; }
.badge--new { background: #e6f2e0; color: var(--accent); border: 1px solid #b8d9ae; }
.badge--sale { background: #f5ede6; color: var(--brown); border: 1px solid #e0c4b0; }
.badge--rare { background: #eee8f5; color: #5a3a80; border: 1px solid #cbbde0; }
.stock { font-size: 0.75rem; color: var(--moss); font-weight: 600; }
.stock--out { color: var(--stone); font-weight: 400; }

/* GALLERY PREVIEW */
.gallery-preview { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 200px 200px; gap: 10px; }
.gp-item { border-radius: 8px; overflow: hidden; background: var(--surface); cursor: pointer; position: relative; border: 1px solid var(--border); }
.gp-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.gp-item:hover img { transform: scale(1.05); }
.gp-item--tall { grid-row: span 2; }
.gp-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--stone); }

/* CTA NEWSLETTER */
.cta-band { background: var(--text); color: #f7f4ef; padding: 64px 24px; }
.cta-band .inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 6px; color: #fff; }
.cta-band p { color: rgba(247,244,239,0.65); font-size: 0.95rem; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 11px 16px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 0.9rem; min-width: 240px; font-family: inherit;
}
.newsletter-form input::placeholder { color: rgba(247,244,239,0.45); }
.newsletter-form input:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.cta-band .btn--primary { background: #fff; color: var(--text); }
.cta-band .btn--primary:hover { background: var(--surface); }

/* FOOTER */
.site-footer { background: var(--text); color: #f7f4ef; padding: 64px 24px 32px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__about .brand { color: #fff; }
.footer__about .brand__icon { color: var(--moss); }
.footer__about .brand__name span { color: var(--moss); }
.footer__about p { color: rgba(247,244,239,0.55); font-size: 0.87rem; line-height: 1.7; margin-top: 14px; max-width: 260px; }
.footer__col h4 { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--moss); font-weight: 700; margin-bottom: 16px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: rgba(247,244,239,0.55); font-size: 0.87rem; transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: rgba(247,244,239,0.4); font-size: 0.8rem; }

/* PAGE HERO */
.page-hero { padding: 80px 24px 56px; max-width: var(--max-w); margin: 0 auto; }
.page-hero__label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.page-hero__title { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.page-hero__sub { color: var(--muted); font-size: 1rem; max-width: 520px; }

/* FILTER PILLS */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 7px 18px; border-radius: 50px; border: 1.5px solid var(--border);
  background: transparent; color: var(--muted); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { border-color: var(--accent); color: var(--accent); background: #e6f2e0; }

/* BLOG GRID */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* SHOP GRID */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.shop-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 12px; }
.shop-meta p { color: var(--muted); font-size: 0.85rem; }

/* GALLERY FULL */
.gallery-masonry { columns: 3; column-gap: 14px; }
.gallery-masonry-item { break-inside: avoid; margin-bottom: 14px; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--surface); border: 1px solid var(--border); }
.gallery-masonry-item img { width: 100%; display: block; transition: transform 0.3s; }
.gallery-masonry-item:hover img { transform: scale(1.04); }
.gallery-masonry-placeholder { width: 100%; padding-bottom: 75%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 2rem; position: relative; }
.gallery-masonry-placeholder span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(10,10,8,0.94); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; opacity: 0.7; }
.lightbox__close:hover { opacity: 1; }

/* CONTACT */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.contact-aside { display: flex; flex-direction: column; gap: 12px; }
.contact-aside h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 8px; }
.contact-item { padding: 18px 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.contact-item h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.contact-item p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.contact-item a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); transition: color 0.2s; }
.contact-item a:hover { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.75rem; font-weight: 700; color: var(--muted); letter-spacing: 0.07em; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select {
  padding: 11px 14px; border-radius: 6px; border: 1.5px solid var(--border);
  background: var(--card); color: var(--text); font-size: 0.92rem; font-family: inherit;
  transition: border-color 0.2s;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--stone); }

/* TOAST */
.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--text);
  color: #f7f4ef; border-radius: 8px; padding: 14px 20px;
  font-size: 0.88rem; z-index: 500; transform: translateY(80px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1); max-width: 300px; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: all; }
.toast--ok { border-left: 4px solid var(--accent); }
.toast--err { border-left: 4px solid var(--brown); }

/* DIVIDER */
.divider-line { border: none; border-top: 1px solid var(--border); margin: 0; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 60px 24px 50px; }
  .hero__visual { display: none; }
  .features-grid, .grid-3, .blog-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 2; }
}
@media (max-width: 600px) {
  .nav { display: none; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 18px; z-index: 99; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .features-grid, .grid-3, .blog-grid, .shop-grid { grid-template-columns: 1fr; }
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
  .gallery-masonry { columns: 2; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band .inner { flex-direction: column; align-items: flex-start; }
  .section__header { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-form input { min-width: unset; width: 100%; }
  .newsletter-form { flex-direction: column; width: 100%; }
}
