:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-alt: #f3efe6;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-soft: #64748b;
  --border: #e5dec9;
  --border-strong: #d4c8aa;
  --navy: #111b2e;
  --navy-light: #1e2d4a;
  --gold: #b68a35;
  --gold-bright: #d4af37;
  --gold-bg: #fbf5e6;
  --green: #15803d;
  --green-bg: #dcfce7;
  --blue: #0284c7;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);
  --max-width: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Bar */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.topbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.topbar-links a:hover { color: var(--gold-bright); }

/* Header & Navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-text strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  color: var(--navy);
  line-height: 1;
}
.brand-text span {
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s, color 0.18s;
}
.nav-link:hover, .nav-link.active {
  background: var(--gold-bg);
  color: #825d18;
}
.nav-link.inactive {
  color: var(--ink-soft);
}
.badge-soon {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-alt);
  color: var(--ink-soft);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 999px;
}
.badge-count {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--ink-muted);
  padding: 1px 7px;
  border-radius: 999px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--navy);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1c2c4a 65%, #2a3b5c 100%);
  color: #f8fafc;
  padding: 46px 0 42px;
  border-bottom: 3px solid var(--gold);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin-bottom: 10px;
  font-weight: 600;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
}
.hero p {
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 1.03rem;
  max-width: 640px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s, background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold);
  color: #ffffff;
}
.btn-gold:hover { background: #9c7429; }
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); }
.btn-outline {
  border-color: var(--border-strong);
  color: var(--navy);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--gold); background: var(--gold-bg); }
.btn-telegram { background: #229ED9; color: #fff; }
.btn-telegram:hover { background: #1a88bd; }
.btn-viber { background: #7360F2; color: #fff; }
.btn-viber:hover { background: #5e4bd8; }
.btn-newauction { background: #1e293b; color: #fff; }
.btn-newauction:hover { background: #0f172a; }
.btn-olx { background: #002f34; color: #23e5db; border-color: #002f34; }
.btn-olx:hover { background: #014249; }
.btn-youtube { background: #dc2626; color: #fff; }
.btn-youtube:hover { background: #b91c1c; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
  padding: 16px;
}
.stat-card strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem;
  color: var(--gold-bright);
  line-height: 1.1;
}
.stat-card span {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Category Cards Strip */
.section-block { padding: 36px 0; }
.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 22px;
}
.section-header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  color: var(--navy);
}
.section-header p { margin: 4px 0 0; color: var(--ink-muted); font-size: 0.96rem; }

.cat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.cat-card.is-inactive {
  background: #f6f4ee;
  border-style: dashed;
  opacity: 0.88;
}
.cat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cat-icon {
  font-size: 1.65rem;
  line-height: 1;
}
.cat-card h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: var(--navy);
}
.cat-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.cat-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: #825d18;
  padding-top: 8px;
  border-top: 1px solid var(--surface-alt);
}

/* Subcategory / Tree Pills */
.tree-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.tree-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tree-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-right: 6px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  transition: all 0.15s;
}
.pill:hover:not(.is-disabled) {
  border-color: var(--gold);
  background: var(--gold-bg);
}
.pill.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.pill.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f1efe9;
  border-style: dashed;
}
.pill small {
  font-size: 0.74rem;
  opacity: 0.8;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.country-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.country-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.country-box-head a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}
.country-box-head a:hover { color: var(--gold); }
.country-sublinks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  background: var(--bg);
  border: 1px solid var(--border);
}
.sublink:hover:not(.disabled) {
  border-color: var(--gold);
  background: var(--gold-bg);
}
.sublink.disabled {
  color: var(--ink-soft);
  border-style: dashed;
  opacity: 0.65;
  cursor: default;
}

/* Catalog Layout with Filters */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
.filters-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 86px;
  box-shadow: var(--shadow-sm);
}
.filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.filters-head h3 { margin: 0; font-size: 1.3rem; color: var(--navy); }
.btn-reset {
  background: none;
  border: none;
  color: #825d18;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}
.btn-reset:hover { text-decoration: underline; }

.filter-group { margin-bottom: 14px; }
.filter-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 5px;
}
.filter-input, .filter-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9rem;
}
.filter-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
}
.price-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Catalog Toolbar & Grid */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius);
}
.results-count { font-size: 0.92rem; color: var(--ink-muted); }
.results-count strong { color: var(--navy); }
.sort-wrap { display: flex; align-items: center; gap: 8px; }
.sort-wrap label { font-size: 0.86rem; color: var(--ink-muted); }

.lot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.lot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.lot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.lot-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f4f1ea;
  overflow: hidden;
  display: block;
}
.lot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.lot-card:hover .lot-thumb img { transform: scale(1.03); }
.lot-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  gap: 6px;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.badge-grade { background: rgba(17, 27, 46, 0.84); color: #f8fafc; }
.badge-video { background: rgba(220, 38, 38, 0.9); color: #fff; }
.badge-photos {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 0.73rem;
  padding: 2px 7px;
  border-radius: 6px;
}

.lot-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.lot-meta-top {
  font-size: 0.78rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.lot-title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}
.lot-title a:hover { color: #825d18; }
.lot-specs-mini {
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.lot-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--surface-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.lot-price {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
}
.lot-stock {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-bg);
  padding: 2px 8px;
  border-radius: 999px;
}
.lot-stock.out {
  color: #991b1b;
  background: #fee2e2;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 26px;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
}
.page-btn:hover:not(:disabled) { border-color: var(--gold); background: var(--gold-bg); }
.page-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 16px 0 8px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs span.sep { opacity: 0.5; }

/* Item Detail Page */
.item-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  margin: 16px 0 42px;
  align-items: start;
}
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #141923;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 11px;
  border-radius: 999px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.2);
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.thumb-btn {
  width: 78px;
  height: 62px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: #f4f1ea;
}
.thumb-btn.active { border-color: var(--gold); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.video-box {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.video-embed {
  margin-top: 12px;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}
.video-embed.is-short {
  padding-bottom: 0;
  height: 480px;
  max-width: 320px;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.item-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.item-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.item-cat-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-bg);
  color: #825d18;
  border: 1px solid #e6d3a5;
}
.item-cat-pill:hover { background: #f5e6c4; }
.item-info-card h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  color: var(--navy);
}
.item-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.item-price-big {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
  font-size: 0.94rem;
}
.specs-table th, .specs-table td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--surface-alt);
  text-align: left;
}
.specs-table th {
  color: var(--ink-soft);
  font-weight: 500;
  width: 42%;
}
.specs-table td { font-weight: 600; color: var(--ink); }

.order-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.order-box h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--navy);
}
.order-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.order-actions .full-span { grid-column: 1 / -1; }
.order-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Lightbox Zoom Modal */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.94);
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  color: #f8fafc;
  background: rgba(0, 0, 0, 0.45);
  gap: 12px;
}
.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.9rem;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-stage {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
}
.lightbox-stage img {
  max-width: 92vw;
  max-height: 82vh;
  transition: transform 0.12s ease-out;
  cursor: zoom-in;
}
.lightbox-stage img.zoomed { cursor: grab; }
.lightbox-stage img.zoomed:active { cursor: grabbing; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Blog Cards & Articles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s, transform 0.16s;
}
.blog-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.blog-meta { font-size: 0.8rem; color: var(--ink-soft); display: flex; gap: 10px; }
.blog-card h3 { margin: 0; font-size: 1.45rem; color: var(--navy); }
.blog-card p { margin: 0; font-size: 0.92rem; color: var(--ink-muted); }
.blog-readmore { margin-top: auto; font-weight: 600; font-size: 0.88rem; color: #825d18; }

.article-container {
  max-width: 820px;
  margin: 16px auto 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.article-container h1 {
  margin: 8px 0 16px;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  color: var(--navy);
}
.article-prose { font-size: 1.03rem; line-height: 1.75; color: #1e293b; }
.article-prose h2 { margin-top: 28px; margin-bottom: 10px; font-size: 1.65rem; color: var(--navy); }
.article-prose h3 { margin-top: 20px; font-size: 1.3rem; color: var(--navy); }
.article-prose a { color: #825d18; text-decoration: underline; font-weight: 500; }
.article-prose ul, .article-prose ol { padding-left: 22px; }
.article-prose li { margin-bottom: 6px; }
.article-prose code {
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Philately Preview Box */
.notice-banner {
  background: var(--gold-bg);
  border: 1px solid #e3cf9d;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.notice-banner h2 { margin: 0 0 8px; color: var(--navy); font-size: 1.5rem; }
.notice-banner p { margin: 0; color: var(--ink-muted); }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 42px 0 26px;
  margin-top: 52px;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-grid h4 {
  color: #ffffff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  margin: 0 0 12px;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.footer-list a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  font-size: 0.84rem;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .cat-cards { grid-template-columns: repeat(2, 1fr); }
  .lot-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-card { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
  .item-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .mobile-menu-btn { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-container { padding: 22px; }
}
@media (max-width: 560px) {
  .cat-cards, .lot-grid, .blog-grid, .order-actions { grid-template-columns: 1fr; }
}

/* Preorder Controls & Info Modal */
.preorder-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lot-stock.preorder-pill {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.lot-stock.preorder-pill:hover {
  background: #fde68a;
}
.info-i-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--gold-bg);
  color: #825d18;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.info-i-btn:hover {
  background: var(--gold);
  color: #fff;
}
.preorder-subprice {
  font-size: 0.78rem;
  color: #92400e;
  font-weight: 500;
  margin-top: 2px;
}
.btn-preorder {
  background: #b45309;
  color: #ffffff;
}
.btn-preorder:hover {
  background: #92400e;
}
.preorder-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.preorder-btn-row .btn { flex: 1; }

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(2px);
  padding: 20px;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.modal-head h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--navy);
}
.modal-close {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
}
.modal-body p { margin: 0 0 12px; font-size: 0.95rem; color: var(--ink-muted); }
.modal-list {
  margin: 0 0 16px;
  padding: 12px 14px 12px 28px;
  background: var(--gold-bg);
  border: 1px solid #e6d3a5;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  color: var(--ink);
}
.modal-list li { margin-bottom: 6px; }
.modal-list li:last-child { margin-bottom: 0; }
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
