
:root{
  --bg:#f5f0e6;--paper:#fffdf8;--ink:#1c221d;--muted:#6b716c;
  --line:#ded5c7;--accent:#74562b;--accent-dark:#513b1c;--dark:#202821;
  --shadow:0 18px 50px rgba(45,35,20,.11)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);line-height:1.55}
button,input,select{font:inherit}
a{color:inherit;text-decoration:none}
.wrap{width:min(1200px,calc(100% - 40px));margin:auto}
.site-header{position:sticky;top:0;z-index:30;background:rgba(245,240,230,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav{height:76px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.brand{display:flex;align-items:center;gap:10px;font-family:"Libre Baskerville",serif;font-size:1.06rem;font-weight:700}
.brand-mark{width:34px;height:34px;border-radius:50%;display:inline-grid;place-items:center;background:var(--dark);color:white;font-family:"Libre Baskerville",serif}
.nav-links{display:flex;gap:24px;align-items:center;font-size:.92rem;font-weight:700}
.nav-links a:hover,.text-link:hover{color:var(--accent)}
.ebay-nav{border:1px solid var(--line);background:var(--paper);padding:9px 14px;border-radius:999px}
.menu-btn{display:none;background:none;border:0;font-size:1.5rem;cursor:pointer}
.hero{padding:70px 0 82px}
.hero-grid{display:grid;grid-template-columns:1.06fr .94fr;gap:62px;align-items:center}
.eyebrow{margin:0 0 12px;text-transform:uppercase;letter-spacing:.145em;font-size:.72rem;font-weight:800;color:var(--accent)}
h1,h2,h3{font-family:"Libre Baskerville",serif}
h1{font-size:clamp(2.8rem,5.7vw,5.1rem);line-height:1.02;letter-spacing:-.052em;margin:0 0 23px}
h2{font-size:clamp(2rem,4vw,3.05rem);line-height:1.12;letter-spacing:-.035em;margin:0}
h3{font-size:1rem;line-height:1.36;margin:0}
.lead{font-size:1.12rem;color:var(--muted);max-width:700px;margin:0 0 29px}
.actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;padding:13px 20px;border-radius:999px;font-weight:800;cursor:pointer}
.primary{background:var(--accent);color:white}
.primary:hover{background:var(--accent-dark)}
.secondary{background:var(--paper);border-color:var(--line)}
.store-stats{display:flex;gap:30px;flex-wrap:wrap;margin-top:34px}
.store-stats div{display:flex;flex-direction:column}
.store-stats strong{font-size:1.12rem}
.store-stats span{font-size:.77rem;color:var(--muted)}
.hero-card{background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:13px;box-shadow:var(--shadow);transform:rotate(1deg)}
.hero-card img{display:block;width:100%;height:420px;object-fit:contain;background:#ece5d8;border-radius:15px}
.hero-card.image-failed:before{content:"Featured historical collectible";height:330px;display:grid;place-items:center;background:#ece5d8;border-radius:15px;color:var(--muted);font-weight:700}
.hero-card-copy{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:16px 7px 5px}
.hero-card-copy>div{display:flex;flex-direction:column;gap:6px}
.tag{font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);font-weight:800}
.section{padding:80px 0}
.section.compact{padding-top:55px}
.alt{background:#ebe2d4;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-heading{margin-bottom:31px}
.split{display:flex;align-items:end;justify-content:space-between;gap:25px}
.subcopy{color:var(--muted);font-size:.9rem;margin:10px 0 0}
.text-link{color:var(--accent);font-weight:800;white-space:nowrap}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}
.category-button{background:var(--paper);border:1px solid var(--line);border-radius:17px;padding:21px;text-align:left;cursor:pointer;transition:.2s}
.category-button:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.category-button strong{display:block;font-family:"Libre Baskerville",serif;font-size:.98rem;margin-bottom:6px}
.category-button span{font-size:.8rem;color:var(--muted)}
.toolbar{display:grid;grid-template-columns:1.5fr .75fr .75fr;gap:12px;margin:24px 0 13px}
.toolbar label{display:flex;flex-direction:column;gap:6px;font-size:.73rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
input,select{width:100%;border:1px solid var(--line);background:var(--paper);border-radius:12px;padding:12px 13px;color:var(--ink);outline:none}
input:focus,select:focus{border-color:var(--accent)}
.results-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 20px;color:var(--muted);font-size:.86rem}
.clear-btn{border:0;background:none;color:var(--accent);font-weight:800;cursor:pointer}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}
.product-card{display:flex;flex-direction:column;min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:hidden;transition:.2s}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.product-image{aspect-ratio:1/1;position:relative;background:#e8e0d3;overflow:hidden}
.product-image img{width:100%;height:100%;object-fit:contain;background:#f0e9dc;display:block}
.image-fallback{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:26px;color:#776d5e}
.image-fallback strong{font-family:"Libre Baskerville",serif}
.image-fallback span{display:block;font-size:.74rem;margin-top:8px}
.product-copy{display:flex;flex-direction:column;flex:1;padding:17px}
.category-line{display:flex;justify-content:space-between;gap:10px;align-items:center}
.item-no{font-size:.68rem;color:var(--muted)}
.product-copy h3{margin:9px 0 12px}
.meta-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px;font-size:.75rem;color:var(--muted)}
.price{font-size:1.08rem;font-weight:850;margin:auto 0 15px}
.card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mini-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:white;padding:9px 10px;border-radius:999px;font-size:.8rem;font-weight:800;cursor:pointer}
.mini-btn.buy{background:var(--dark);border-color:var(--dark);color:white}
.no-results{background:var(--paper);border:1px dashed var(--line);border-radius:16px;padding:32px;text-align:center;color:var(--muted)}
.pagination{display:flex;align-items:center;justify-content:center;gap:17px;margin-top:32px}
.pagination button{border:1px solid var(--line);background:var(--paper);padding:10px 15px;border-radius:999px;font-weight:800;cursor:pointer}
.pagination button:disabled{opacity:.4;cursor:not-allowed}
#pageLabel{font-size:.84rem;color:var(--muted);min-width:120px;text-align:center}
.about-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:68px}
.about-copy p{font-size:1.03rem;color:var(--muted);margin-top:0}
.trust-strip{background:var(--dark);color:white;padding:34px 0}
.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.trust-grid div{display:flex;flex-direction:column}
.trust-grid span{font-size:.84rem;opacity:.68;margin-top:4px}
footer{padding:46px 0 26px}
.footer-grid{display:flex;justify-content:space-between;align-items:flex-start;gap:30px;border-bottom:1px solid var(--line);padding-bottom:26px}
.footer-grid p{color:var(--muted);font-size:.88rem;margin:.4rem 0 0}
.footer-links{display:flex;gap:20px;font-weight:700}
.copyright{padding-top:19px;color:var(--muted);font-size:.8rem}
.modal-backdrop{position:fixed;inset:0;background:rgba(10,13,11,.67);z-index:60;display:grid;place-items:center;padding:20px}
.modal{position:relative;width:min(940px,100%);max-height:91vh;overflow:auto;background:var(--paper);border-radius:22px;padding:28px;box-shadow:var(--shadow)}
.close{position:absolute;right:14px;top:8px;border:0;background:none;font-size:2.1rem;cursor:pointer;z-index:3}
.modal-title{padding-right:38px;font-size:1.5rem;line-height:1.25}
.modal-top{display:grid;grid-template-columns:.9fr 1.1fr;gap:24px;margin-top:20px}
.main-modal-image{width:100%;height:350px;object-fit:contain;background:#ece5d8;border-radius:14px}
.modal-image-wrap{position:relative}
.modal-fallback{position:absolute;inset:0;display:grid;place-items:center;border:1px dashed var(--line);border-radius:14px;color:var(--muted);text-align:center;padding:20px}
.modal-price{font-size:1.45rem;font-weight:850;margin:6px 0 15px}
.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.detail{border:1px solid var(--line);border-radius:11px;padding:10px 12px;min-width:0;overflow-wrap:anywhere}
.detail b{display:block;margin-bottom:3px;font-size:.68rem;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.gallery-title,.description-title{font-family:"Libre Baskerville",serif;font-weight:700;margin:27px 0 12px}
.photo-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.photo-gallery img{width:100%;aspect-ratio:1/1;object-fit:contain;background:#ece5d8;border-radius:10px;border:1px solid var(--line)}
.photo-note{font-size:.78rem;color:var(--muted);margin-top:8px}
.description-frame{width:100%;height:420px;border:1px solid var(--line);border-radius:12px;background:white}
.description-fallback{font-size:.82rem;color:var(--muted);margin-top:8px}
.modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
@media(max-width:1000px){
  .hero-grid,.about-grid{grid-template-columns:1fr}.hero-grid{gap:42px}
  .hero-card img{height:360px}.category-grid{grid-template-columns:repeat(3,1fr)}
  .product-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:760px){
  .wrap{width:min(100% - 28px,1200px)}
  .nav{height:68px}.menu-btn{display:block}
  .nav-links{display:none;position:absolute;left:0;right:0;top:68px;background:var(--paper);border-bottom:1px solid var(--line);padding:20px;flex-direction:column;align-items:flex-start}
  .nav-links.open{display:flex}
  .hero{padding:50px 0 58px}h1{font-size:2.65rem}.hero-card img{height:300px}
  .section{padding:60px 0}.split,.footer-grid{flex-direction:column;align-items:flex-start}
  .category-grid,.product-grid{grid-template-columns:repeat(2,1fr)}
  .toolbar{grid-template-columns:1fr}.modal-top{grid-template-columns:1fr}
  .photo-gallery{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:500px){
  .category-grid,.product-grid,.trust-grid{grid-template-columns:1fr}
  .store-stats{gap:18px}.hero-card-copy{flex-direction:column;align-items:flex-start}
  .detail-grid{grid-template-columns:1fr}.photo-gallery{grid-template-columns:repeat(2,1fr)}
  .results-row{align-items:flex-start;flex-direction:column}.modal{padding:22px 16px}
}
