:root {
  --a47-primary: #3D2B3F;
  --a47-secondary: #C9A86C;
  --a47-accent: #7B8FA1;
  --a47-cream: #FAF7F4;
  --a47-ink: #1E1520;
  --a47-nav: #5C4A5E;
  --a47-promo: #E8D5D5;
  --a47-blush: #F4E8EC;
  --a47-white: #FFFFFF;
  --a47-muted: #7A6E7D;
  --a47-border: #E5DDE8;
  --a47-radius: 4px;
  --a47-radius-pill: 999px;
  --a47-shadow: 0 12px 40px rgba(30, 21, 32, 0.08);
  --a47-font-serif: 'Playfair Display', Georgia, serif;
  --a47-font-sans: 'Jost', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.a47-store {
  margin: 0;
  font-family: var(--a47-font-sans);
  color: var(--a47-ink);
  background: var(--a47-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--a47-font-serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: min(1240px, 92vw); margin-inline: auto; }
.page-main { min-height: 50vh; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.a47-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.75rem; border-radius: var(--a47-radius-pill);
  font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
}
.a47-btn-dark { background: var(--a47-primary); color: var(--a47-white); }
.a47-btn-dark:hover { background: var(--a47-nav); }
.a47-btn-light { background: var(--a47-white); color: var(--a47-ink); }
.a47-btn-light:hover { background: var(--a47-cream); }
.a47-btn-gold { background: var(--a47-secondary); color: var(--a47-ink); }
.a47-btn-gold:hover { filter: brightness(1.05); }

.a47-section-head { margin-bottom: 2rem; }
.a47-section-head--center { text-align: center; }
.a47-section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); color: var(--a47-ink); font-weight: 600; letter-spacing: .02em; }
.a47-section-sub { color: var(--a47-muted); font-size: .92rem; max-width: 42ch; margin: .5rem auto 0; }
.a47-gold-line { display: block; width: 56px; height: 2px; background: var(--a47-secondary); margin: .75rem auto 0; }
.a47-product-cat { font-size: .7rem; font-weight: 600; color: var(--a47-accent); text-transform: uppercase; letter-spacing: .1em; }
.a47-price-row { display: flex; align-items: center; gap: .55rem; margin-top: .35rem; }
.a47-price-row strong { color: var(--a47-secondary); font-size: 1rem; font-weight: 700; }
.a47-price-row s { color: var(--a47-muted); font-size: .85rem; }
.a47-sale-tag {
  position: absolute; top: 0; right: 0; z-index: 2;
  background: #C0392B; color: #fff;
  font-size: .65rem; font-weight: 700; letter-spacing: .06em;
  padding: .35rem 1.25rem; transform: rotate(45deg) translate(28%, -50%);
  transform-origin: top right;
}

.page-hero { padding: 2.5rem 0 1.5rem; background: var(--a47-cream); }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--a47-primary); }
.page-hero .hero-lede { color: var(--a47-muted); max-width: 52ch; }
.catalog-page { padding: 2rem 0 3rem; }
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.filter-panel h2 { font-size: 1rem; margin-bottom: .75rem; }
.filter-panel a { display: block; padding: .35rem 0; color: var(--a47-muted); font-size: .9rem; }
.filter-panel a:hover, .filter-panel a.active { color: var(--a47-primary); font-weight: 600; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--a47-muted); }
.a47-reveal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
}
