/* Antikaria — vintage dark theme */
:root{
  --bg:#0c0f14;
  --bg2:#0f141d;
  --card:#141a24;
  --card2:#101620;
  --text:#efe9dd;
  --muted:#b9b0a3;
  --gold:#c8a96a;
  --gold2:#9b7a3e;
  --line:rgba(255,255,255,.08);
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1100px 700px at 15% 10%, #1b2433 0%, var(--bg) 60%),
    radial-gradient(900px 600px at 90% 0%, #1b1d17 0%, var(--bg) 55%),
    url("/static/img/pattern.svg");
  background-attachment: fixed;
}
a{color:inherit; text-decoration:none}
.wrap{max-width:1100px; margin:0 auto; padding:0 18px}
.muted{color:var(--muted)}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.25);
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold2) 100%);
  color:#1b1206;
  font-weight:700;
  box-shadow: 0 8px 22px rgba(200,169,106,.15);
}
.btn:hover{filter:brightness(1.03)}
.btn.ghost{
  background: transparent;
  color: var(--text);
  border:1px solid var(--line);
  box-shadow:none;
}
.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(10,14,20,.72);
  border-bottom:1px solid var(--line);
}
.topbar-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.brand{display:flex; align-items:center; gap:10px}
.brand-logo{width:34px; height:34px; border-radius:10px; object-fit:cover; box-shadow: var(--shadow)}
.brand-text{font-weight:800; letter-spacing:.3px}
.nav{display:flex; gap:16px; font-weight:700}
.nav a{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
.nav a:hover{border-color: var(--line); background: rgba(255,255,255,.03)}
.main{padding:22px 0 40px}

.footer{border-top:1px solid var(--line); padding:18px 0; background:rgba(10,14,20,.55)}

.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:stretch;
  margin-top:6px;
}
@media (max-width: 920px){ .hero{grid-template-columns:1fr} }

.hero-card{
  padding:22px;
  border-radius: var(--radius);
  background:
    radial-gradient(600px 250px at 20% 10%, rgba(200,169,106,.20) 0%, rgba(200,169,106,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}

/* hero title row (logo + text) */
.hero-title{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:10px;
}
.hero-logo{
  width:92px;
  height:92px;
  border-radius:18px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}
@media (max-width: 520px){
  .hero-title{gap:12px}
  .hero-logo{width:72px; height:72px; border-radius:16px}
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(200,169,106,.35);
  background: rgba(200,169,106,.10);
  color: var(--gold);
  font-weight:800;
  letter-spacing:.2px;
  margin-bottom:10px;
}
.hero h1{margin:6px 0 8px; font-size:34px; line-height:1.15}
@media (max-width: 520px){ .hero h1{font-size:28px} }

.search{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 240px 120px;
  gap:10px;
}
@media (max-width: 720px){ .search{grid-template-columns:1fr} }
.search input, .search select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(10,14,20,.6);
  color:var(--text);
  outline:none;
}
.search button{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.25);
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold2) 100%);
  color:#1b1206;
  font-weight:900;
  cursor:pointer;
  box-shadow: 0 8px 22px rgba(200,169,106,.15);
}
.search button:hover{filter:brightness(1.03)}

.hero-decor{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.decor-card{
  padding:18px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}
.decor-title{font-weight:900; color:var(--gold); margin-bottom:6px}

.cats{display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 10px}
.chip{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-weight:800;
}
.chip:hover{border-color: rgba(200,169,106,.35)}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:12px;
}
@media (max-width: 980px){ .grid{grid-template-columns: repeat(2, 1fr)} }
@media (max-width: 620px){ .grid{grid-template-columns: 1fr} }

.card{
  border-radius: var(--radius);
  border:1px solid var(--line);
  overflow:hidden;
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.card:hover{transform: translateY(-2px)}
.thumb{
  height:160px;
  background: linear-gradient(180deg, rgba(200,169,106,.10), rgba(0,0,0,0)),
              rgba(255,255,255,.03);
  background-size: cover;
  background-position:center;
  position:relative;
}
.thumb-overlay{
  position:absolute; inset:0;
  padding:14px;
  display:flex; flex-direction:column; justify-content:flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 90%);
}
.badge{
  align-self:flex-start;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  font-weight:800;
  font-size:12px;
  margin-bottom:8px;
}
.title{font-weight:900; font-size:16px}
.card-body{padding:12px 14px 14px}
.price{font-weight:900; font-size:18px; color:var(--gold)}
.price.big{font-size:28px}
.meta{margin-top:6px}

.breadcrumbs{margin:6px 0 12px}

.item{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 900px){ .item{grid-template-columns:1fr} }

.item-media{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding:10px;
  box-shadow: var(--shadow);
}
.photo{
  width:100%;
  border-radius: 14px;
  margin-bottom:10px;
  border:1px solid rgba(255,255,255,.08);
}
.photo.placeholder{
  height:320px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(0,0,0,.25);
}
.item-info{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding:18px;
  box-shadow: var(--shadow);
}
.kv{display:flex; gap:14px; flex-wrap:wrap; margin:10px 0 8px}
.desc{line-height:1.55; margin:10px 0 0}

.buybox{
  margin-top:16px;
  padding:14px;
  border-radius: 14px;
  border:1px solid rgba(200,169,106,.25);
  background: rgba(200,169,106,.06);
}
.buy-title{font-weight:900; color:var(--gold); margin-bottom:6px}
.buy-sub{margin-bottom:10px}
.buy-form input, .buy-form textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(10,14,20,.6);
  color:var(--text);
  outline:none;
}
.buy-form textarea{min-height:92px; resize:vertical}
.buy-form .row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-bottom:10px;
}
@media (max-width: 720px){ .buy-form .row{grid-template-columns:1fr} }
.buy-form button{margin-top:6px}
.buy-form .btn.ghost{margin-left:10px}
@media (max-width: 720px){ .buy-form .btn.ghost{margin-left:0; margin-top:10px} }

.panel{
  padding:20px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}
.form{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}
.form input, .form textarea{
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(10,14,20,.6);
  color:var(--text);
  outline:none;
}
.form textarea{min-height:120px; resize:vertical}
.ok{
  margin:10px 0 12px;
  padding:12px 14px;
  border-radius: 12px;
  border:1px solid rgba(46,204,113,.25);
  background: rgba(46,204,113,.10);
}
.actions{margin-top:14px; display:flex; gap:10px; flex-wrap:wrap}

/* Admin minimal, keep existing styles if present */



/* ===== Antiquariat-like header ===== */
.masthead{
  position:sticky;
  top:0;
  z-index:50;
  background: linear-gradient(180deg, rgba(20,18,14,.92), rgba(12,15,20,.78));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.masthead-row{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:14px;
  padding:10px 0;
}
.mast-logo{
  display:flex;
  align-items:center;
  justify-content:center;
}
.mast-logo img{
  width:180px;
  height:auto;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.55));
}
.mast-nav{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.mast-nav.left{justify-content:flex-start}
.mast-nav.right{justify-content:flex-end}
.mast-btn{
  font-size:14px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(20,26,36,.55);
  box-shadow: 0 10px 18px rgba(0,0,0,.22);
}
.mast-btn:hover{border-color: rgba(200,169,106,.45); transform: translateY(-1px)}
.mast-btn.gold{
  border-color: rgba(200,169,106,.55);
  background: linear-gradient(180deg, rgba(200,169,106,.22), rgba(20,26,36,.55));
}

/* burger + mobile menu */
.mast-burger{
  display:none;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(20,26,36,.55);
  color: var(--text);
  font-size:20px;
  box-shadow: 0 10px 18px rgba(0,0,0,.22);
  cursor:pointer;
}
.mast-burger:hover{border-color: rgba(200,169,106,.45)}

.mobile-menu{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  z-index:80;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
}
.mobile-menu.open{opacity:1; pointer-events:auto}
.mobile-menu-inner{
  padding-top:16px;
}
.mobile-menu-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-radius:18px;
  background: linear-gradient(180deg, rgba(20,18,14,.95), rgba(12,15,20,.88));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}
.mobile-title{font-weight:900; letter-spacing:.2px}
.mobile-close{
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(20,26,36,.55);
  color:var(--text);
  cursor:pointer;
}
.mobile-close:hover{border-color: rgba(200,169,106,.45)}
.mobile-links{
  margin-top:12px;
  padding:14px;
  border-radius:18px;
  background: rgba(20,26,36,.55);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mobile-link{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  font-weight:800;
}
.mobile-link:hover{border-color: rgba(200,169,106,.45)}
.mobile-link-gold{
  border-color: rgba(200,169,106,.55);
  background: linear-gradient(180deg, rgba(200,169,106,.18), rgba(0,0,0,.18));
}

html.no-scroll, html.no-scroll body{overflow:hidden}

/* Category ribbon */
.cat-ribbon{
  display:flex;
  gap:10px;
  overflow:auto;
  padding:10px 0 14px;
}
.cat-tile{
  min-width:150px;
  display:grid;
  grid-template-columns: 34px 1fr;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  background:
    linear-gradient(180deg, rgba(245,237,214,.10), rgba(20,26,36,.55));
  border:1px solid rgba(255,255,255,.10);
}
.cat-tile:hover{border-color: rgba(200,169,106,.45)}
.cat-ico{
  width:34px;height:34px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background: rgba(200,169,106,.16);
  border:1px solid rgba(200,169,106,.25);
  font-size:18px;
}
.cat-name{font-size:13px; line-height:1.2}

/* ===== Product page (gallery + parchment) ===== */
.crumbs{margin: 14px 0; display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.crumbs .sep{opacity:.6}

.product{
  display:grid;
  grid-template-columns: 420px 1fr 280px;
  gap:18px;
  align-items:start;
}
.gallery .mainshot{
  border-radius:18px;
  background: rgba(10,12,16,.55);
  border:1px solid rgba(255,255,255,.10);
  padding:12px;
  box-shadow: var(--shadow);
}
.gallery .mainshot img{
  width:100%;
  height:420px;
  object-fit:contain;
  background: #0b0e13;
  border-radius:14px;
  border: 2px solid rgba(200,169,106,.25);
  box-shadow: 0 16px 28px rgba(0,0,0,.35);
}
.thumbs{
  margin-top:10px;
  display:flex;
  gap:8px;
  overflow:auto;
  padding-bottom:4px;
}
.gthumb{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(20,26,36,.55);
  padding:6px;
  border-radius:12px;
  cursor:pointer;
}
.gthumb img{
  width:70px;height:70px; object-fit:cover;
  border-radius:10px;
  border:1px solid rgba(200,169,106,.20);
  background:#0b0e13;
}
.gthumb:hover{border-color: rgba(200,169,106,.45)}

.paper{
  border-radius:18px;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(245,237,214,.16), rgba(20,26,36,.55));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}
.paper.desc{padding:18px 18px 14px}
.paper-top{display:flex; gap:14px; align-items:flex-start; justify-content:space-between}
.paper-id{
  font-weight:700;
  color: rgba(233,215,138,.95);
  border:1px solid rgba(233,215,138,.35);
  padding:6px 10px;
  border-radius:999px;
  background: rgba(233,215,138,.10);
  white-space:nowrap;
}
.paper h1{margin:0 0 6px; font-size:26px}
.desc-text{white-space:pre-wrap; line-height:1.55}

.side{display:flex; flex-direction:column; gap:12px}
.pricebox{
  border-radius:18px;
  background: rgba(20,26,36,.55);
  border:1px solid rgba(255,255,255,.10);
  padding:14px;
  box-shadow: var(--shadow);
}
.pricebox .price{font-size:28px; font-weight:800; color:rgba(233,215,138,.95); margin-bottom:10px}
.full{width:100%; text-align:center}
.specs{
  border-radius:18px;
  background: rgba(20,26,36,.55);
  border:1px solid rgba(255,255,255,.10);
  padding:14px;
}
.specs-title{font-weight:800; margin-bottom:10px}
.spec-row{display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px dashed rgba(255,255,255,.10)}
.spec-row:last-child{border-bottom:none}

.buy{margin-top:18px; padding:16px}
.buyrevealed{}
.buy-title{font-size:18px; font-weight:800; margin-bottom:4px}
.buy-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.buy-grid label{display:flex; flex-direction:column; gap:6px}
.buy-grid .span2{grid-column:1/-1}

/* forms on paper pages */
.page{padding:16px}
.page-title{font-size:24px; font-weight:900}
.page-sub{margin-top:6px}
.form label{display:flex; flex-direction:column; gap:6px}
.form input, .form textarea, .form select{width:100%}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.grid2 .span2{grid-column:1/-1}
.small{font-size:12px; opacity:.9}
.okbox{
  border:1px solid rgba(200,169,106,.35);
  background: rgba(200,169,106,.12);
  padding:12px 14px;
  border-radius:14px;
  margin:10px 0 14px;
}
.cta-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}

/* make cards photos look more "framed" */
.card img{
  background:#0b0e13;
  border:2px solid rgba(200,169,106,.22);
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
  object-fit:contain;
}

/* ===== Floating contact ===== */
.contact-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:120;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(200,169,106,.45);
  background: linear-gradient(180deg, rgba(200,169,106,.26), rgba(20,26,36,.65));
  box-shadow: 0 16px 30px rgba(0,0,0,.35);
  -webkit-tap-highlight-color: transparent;
}
.contact-ico{
  width:32px;
  height:32px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(200,169,106,.18);
  border:1px solid rgba(200,169,106,.30);
  font-size:16px;
}
.contact-text{font-weight:900; letter-spacing:.2px}
.contact-fab:hover{filter:brightness(1.03)}

@media (max-width: 520px){
  .contact-fab{
    left:12px;
    right:12px;
    bottom:12px;
    justify-content:center;
  }
}

/* responsive */
@media (max-width: 980px){
  .product{grid-template-columns: 1fr}
  .wrap{padding:0 14px}
  .masthead-row{grid-template-columns: 1fr auto; justify-items:stretch}
  .mast-logo{order:1; justify-content:flex-start}
  .mast-burger{display:inline-flex; order:2; justify-self:end}
  .mast-nav{display:none}
  .mast-logo img{width:160px}
}

