:root {
  --ivory: #faf7f2;
  --paper: #ffffff;
  --cream: #f2ebe1;
  --plum: #4e1630;
  --plum-deep: #340d1f;
  --bordeaux: #822638;
  --champagne: #b8935a;
  --ink: #1f171b;
  --muted: #5d4f55;
  --line: #e4dad0;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: Georgia, "Times New Roman", Cambria, serif; letter-spacing: -.01em; margin: 0; font-weight: 500; }
p { margin: 0 0 12px; }
a { color: var(--plum); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--bordeaux); }
img { display: block; max-width: 100%; height: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 999; }
.skip-link:focus { left: 12px; }

.scroll-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--plum), var(--bordeaux), var(--champagne));
  transform-origin: left; transform: scaleX(var(--scroll, 0)); pointer-events: none;
}

.page-surround { max-width: 1240px; margin: 0 auto; padding: 18px 20px 44px; }

/* Header matching 2008 #topHeader spirit */
.top-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 28px;
  background: linear-gradient(125deg, var(--plum-deep) 0%, var(--plum) 55%, var(--bordeaux) 100%);
  color: #fff;
  border-radius: 14px 14px 0 0;
  position: relative; overflow: hidden;
}
.top-header::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px circle at 85% 20%, rgb(184 147 90 / .22), transparent 65%);
}
.brand-lockup { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; color: #fff; }
.brand-lockup:hover { color: #fff; }
.brand-emblem { width: 46px; height: 46px; flex-shrink: 0; }
.brand-title { font-family: Georgia, serif; font-size: clamp(1.4rem, 2.5vw, 1.95rem); letter-spacing: .02em; line-height: 1.1; display: block; }
.brand-sub { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #e8d9cb; display: block; margin-top: 3px; }
.header-meta { text-align: right; position: relative; z-index: 1; font-size: 12px; color: #eadfd5; }
.header-badge { display: inline-block; padding: 4px 10px; border: 1px solid rgb(234 223 213 / .35); border-radius: 999px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; color: #f6ead9; }

/* Main horizontal menu matching .mainMenu */
.main-menu {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 14px 14px;
  padding: 10px 22px;
  margin-bottom: 22px;
  position: sticky; top: 8px; z-index: 100;
  box-shadow: 0 10px 30px -24px rgb(52 13 31 / .35);
}
.menu-links { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu-links a {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 550; color: var(--ink); letter-spacing: .01em;
}
.menu-links a:hover, .menu-links a[aria-current="page"] { background: var(--cream); color: var(--plum); }
.menu-links a[aria-current="page"] { font-weight: 650; }
.menu-pill { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--champagne); }

/* 3-column classic layout upgraded */
.layout-3col { display: grid; grid-template-columns: 230px minmax(0, 1fr) 245px; gap: 22px; align-items: start; }
.layout-2col { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }

.side-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 18px;
}
.box-title {
  background: var(--plum); color: #fff; padding: 9px 14px;
  font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: space-between;
}
.box-title.is-bordeaux { background: var(--bordeaux); }
.box-body { padding: 12px 14px; font-size: 13px; color: var(--muted); }

.studio-menu { list-style: none; margin: 0; padding: 6px; display: grid; gap: 4px; }
.studio-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 11px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink);
  border-left: 2px solid transparent; transition: all .25s var(--ease);
}
.studio-link:hover, .studio-link[aria-current="page"], .studio-link.is-active {
  background: var(--cream); color: var(--plum); border-left-color: var(--plum); padding-left: 14px;
}
.studio-count { font-size: 11px; color: var(--muted); background: var(--ivory); padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); }

/* Center Hero & Content */
.hero-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 20px;
}
.hero-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-panel:hover .hero-media img { transform: scale(1.025); }
.hero-copy { padding: 24px 26px; }
.hero-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bordeaux); font-weight: 650; margin-bottom: 8px; display: block; }
.hero-copy h1 { font-size: clamp(1.55rem, 2.7vw, 2.25rem); color: var(--plum-deep); line-height: 1.22; margin-bottom: 10px; }
.hero-copy p { color: var(--muted); font-size: 15px; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid var(--plum);
  background: var(--plum); color: #fff; transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn:hover { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--plum); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream); color: var(--plum-deep); border-color: var(--champagne); }

.content-title {
  background: linear-gradient(90deg, var(--bordeaux), var(--plum));
  color: #fff; padding: 9px 16px; border-radius: 10px;
  font-size: 12px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase;
  margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between;
}

/* Catalog Grid */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.product-card::after {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgb(184 147 90 / .45); border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.product-card:hover { transform: translateY(-4px); border-color: var(--champagne); box-shadow: 0 18px 34px -26px rgb(52 13 31 / .45); }
.product-card:hover::after { opacity: 1; }
.product-thumb { aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-info { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1; }
.product-sku { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--bordeaux); font-weight: 600; }
.product-title { font-family: Georgia, serif; font-size: 15px; line-height: 1.35; color: var(--ink); margin: 4px 0 6px; font-weight: 500; }
.product-meta { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--ivory); display: flex; justify-content: space-between; gap: 6px; }
.product-card.is-hidden { display: none; }

/* Search & Right Rail */
.search-input {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; background: var(--ivory); color: var(--ink); margin-bottom: 8px;
}
.search-input:focus { outline: 2px solid var(--champagne); border-color: var(--plum); background: #fff; }
.search-btn { width: 100%; justify-content: center; }
.pairing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pairing-list li { padding-bottom: 10px; border-bottom: 1px solid var(--ivory); font-size: 13px; }
.pairing-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.pairing-list strong { display: block; color: var(--plum); font-size: 13px; }

/* Tables & Detail Pages */
.spec-table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; margin-bottom: 24px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th, .spec-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--ivory); }
.spec-table th { background: var(--cream); color: var(--plum-deep); font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.spec-table tr:last-child td { border-bottom: 0; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.detail-photo { border-radius: 10px; overflow: hidden; background: var(--cream); aspect-ratio: 1 / 1; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-notes { margin: 16px 0; padding-left: 18px; color: var(--ink); }
.detail-notes li { margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--cream); color: var(--plum); font-size: 12px; font-weight: 550; }

.prose-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; margin-bottom: 22px; }
.prose-panel h1 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--plum-deep); margin-bottom: 12px; }
.prose-panel h2 { font-size: 1.35rem; color: var(--plum); margin: 22px 0 8px; }

/* Footer */
.bottom-menu {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 18px; margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; font-size: 13px;
}
.copyright-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.empty-msg { padding: 20px; background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; text-align: center; color: var(--muted); display: none; }
.empty-msg.is-visible { display: block; }

@media (max-width: 1040px) {
  .layout-3col { grid-template-columns: 220px minmax(0, 1fr); }
  .col-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 780px) {
  .top-header { flex-direction: column; align-items: flex-start; padding: 18px 20px; }
  .header-meta { text-align: left; }
  .layout-3col, .layout-2col, .detail-grid { grid-template-columns: 1fr; }
  .col-right { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.prose-panel a:not(.btn),.empty-msg a,.copyright-note a,.spec-table a,.breadcrumbs a{text-decoration:underline;text-underline-offset:3px}
h2.content-title{font-family:inherit;margin:0 0 16px}
