:root {
  --navy: #16324F;
  --navy-light: #24507C;
  --amber: #D97706;
  --amber-dark: #B45309;
  --bg: #FAF8F4;
  --card-bg: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E5E0D8;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { font-family: var(--sans); margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }

.site-header { background: var(--navy); color: #fff; padding: 36px 20px 30px; text-align: center; }
.header-inner { max-width: 760px; margin: 0 auto; }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.brand-mark { font-family: var(--mono); font-weight: 700; font-size: 22px; color: var(--amber); }
.brand-name { font-family: var(--mono); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; }
.tagline { margin: 0; opacity: 0.82; font-size: 15px; }

.trust-strip { background: #fff; border-bottom: 1px solid var(--border); display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; padding: 12px 20px; font-size: 13px; color: var(--text-muted); }
.trust-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.trust-icon { color: var(--amber); font-weight: 700; }

main { max-width: 1000px; margin: 0 auto; padding: 28px 20px 60px; }

.filters { display: flex; gap: 8px; margin-bottom: 20px; }
.filter-btn { padding: 7px 18px; border: 1px solid var(--navy); background: #fff; color: var(--navy); border-radius: 20px; cursor: pointer; font-family: var(--sans); font-weight: 500; font-size: 14px; transition: all .15s; }
.filter-btn:hover { border-color: var(--amber); color: var(--amber-dark); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,50,79,0.10); }
.product-card img { width: 100%; height: 160px; object-fit: cover; background: #EFEBE4; display: block; }
.product-card .info { padding: 14px; }
.product-card h3 { font-size: 15px; margin: 0 0 8px; font-weight: 600; }
.product-card .price { font-family: var(--mono); font-weight: 700; color: var(--navy); font-size: 20px; }
.grade { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 4px; margin-top: 8px; background: #FDF3E7; color: var(--amber-dark); border: 1px solid #F2DCB8; }

.modal { position: fixed; inset: 0; background: rgba(22,50,79,0.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-content { background: #fff; max-width: 520px; width: 100%; padding: 26px; border-radius: 12px; position: relative; max-height: 88vh; overflow-y: auto; }
.close-btn { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); }
.modal-content h2 { font-family: var(--mono); font-size: 20px; margin-bottom: 4px; }
.modal-image { width: 100%; margin-bottom: 8px; border-radius: 8px; display: block; }
.modal-content ul { list-style: none; padding: 0; margin: 14px 0; font-size: 14px; }
.modal-content ul li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.modal-content .price { font-family: var(--mono); font-weight: 700; font-size: 26px; color: var(--navy); margin: 12px 0; }
#buyerForm input { width: 100%; margin: 6px 0; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--sans); }
#paypal-button-container { margin-top: 16px; }

.site-footer { text-align: center; padding: 24px 20px; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); }
