@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root{
  --bg:#f5efe5;
  --bg-soft:#fbf8f2;
  --card:#fffdf8;
  --line:#ddd1bc;
  --ink:#241c14;
  --muted:#73675a;
  --accent:#9b7543;
  --accent-soft:#cdb07d;
  --dark:#221b15;
  --shadow:0 18px 40px rgba(39,28,18,.08);
  --radius:22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at top right, rgba(205,176,125,.12), transparent 22%),
    linear-gradient(180deg,#f8f4ed 0%,#f5efe5 100%);
  color:var(--ink);
  font-family:Vazirmatn,Tahoma,sans-serif;
}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
.container{width:min(1180px,calc(100% - 32px));margin:0 auto}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(248,244,237,.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(160,139,106,.16);
}
.topbar-inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-mark{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#d8be90,#8e6838);
  color:#fff8eb;
  font-size:23px;
  font-weight:800;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3), var(--shadow);
}
.brand-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand-text strong{
  font-size:20px;
  line-height:1;
}
.brand-text small{
  color:var(--muted);
  font-size:12px;
}
.main-nav{
  display:flex;
  align-items:center;
  gap:28px;
}
.main-nav a{
  color:var(--muted);
  font-size:14px;
}
.main-nav a:hover{color:var(--ink)}
.header-btn,
.btn{
  border:0;
  border-radius:999px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:.2s ease;
}
.header-btn{
  padding:12px 18px;
  background:var(--dark);
  color:#fff;
  font-size:14px;
}
.header-btn:hover,
.btn:hover{transform:translateY(-1px)}

.hero-section{
  padding:54px 0 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
}
.section-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--accent);
  font-weight:700;
  font-size:12px;
  letter-spacing:.02em;
  margin-bottom:14px;
}
.section-kicker.light{color:#ead6af}
.hero-copy h1{
  margin:0 0 16px;
  font-size:clamp(34px,5vw,62px);
  line-height:1.15;
  letter-spacing:-1.8px;
}
.hero-copy h1 span{color:var(--accent)}
.hero-copy p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:2;
  max-width:640px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}
.btn{
  min-height:48px;
  padding:0 20px;
  font-size:14px;
}
.btn-dark{
  background:var(--dark);
  color:#fff;
}
.btn-light{
  background:transparent;
  color:var(--ink);
  border:1px solid var(--line);
}
.btn-gold{
  background:#dfc08a;
  color:#2f2316;
}
.hero-features{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}
.hero-features span{
  padding:9px 14px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(160,139,106,.18);
  border-radius:999px;
  color:var(--muted);
  font-size:13px;
}

.hero-panel{
  display:flex;
  justify-content:flex-end;
}
.panel-card{
  width:min(440px,100%);
  background:linear-gradient(180deg,#fbf7ef 0%,#f3ead9 100%);
  border:1px solid rgba(159,134,93,.26);
  border-radius:28px;
  padding:24px;
  box-shadow:var(--shadow);
}
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
  color:var(--muted);
  font-size:13px;
}
.panel-head b{
  color:var(--ink);
  font-size:15px;
}
.hero-art{
  position:relative;
  min-height:270px;
  margin-bottom:16px;
}
.coin-large,.coin-small,.note-card-art{
  position:absolute;
  display:grid;
  place-items:center;
  box-shadow:0 16px 35px rgba(50,36,20,.12);
}
.coin-large,.coin-small{
  border-radius:50%;
  border:7px double rgba(80,58,25,.32);
}
.coin-large{
  width:180px;
  height:180px;
  right:16px;
  top:8px;
  background:radial-gradient(circle at 35% 30%,#efd89e,#aa7a33 68%,#7f5922);
  color:#5e431d;
  font-size:28px;
  font-weight:700;
}
.coin-small{
  width:102px;
  height:102px;
  left:30px;
  top:20px;
  background:radial-gradient(circle at 35% 30%,#d9bf89,#8d6632 76%);
  color:#f9eed3;
  font-size:20px;
  font-weight:700;
}
.note-card-art{
  width:220px;
  height:118px;
  left:70px;
  bottom:18px;
  border-radius:18px;
  background:linear-gradient(145deg,#dedbc9,#b8b49c);
  border:4px double rgba(81,92,66,.3);
  color:#50604f;
  font-size:24px;
  font-weight:700;
}
.panel-list{
  display:grid;
  gap:10px;
}
.panel-list div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(160,139,106,.16);
  border-radius:14px;
  padding:12px 14px;
}
.panel-list span{
  color:var(--muted);
  font-size:13px;
}
.panel-list b{
  font-size:13px;
  font-weight:700;
}

.quick-strip{
  padding:12px 0 0;
}
.quick-strip-inner{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.quick-item{
  min-height:74px;
  background:var(--card);
  border:1px solid rgba(160,139,106,.16);
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  box-shadow:0 8px 20px rgba(39,28,18,.04);
}
.quick-item b{
  font-size:22px;
  color:var(--accent);
}
.quick-item span{
  font-weight:600;
}

.category-section,
.catalog-section,
.guide-section{
  padding:74px 0 0;
}
.section-title{
  margin-bottom:22px;
}
.section-title.center{
  text-align:center;
}
.section-title h2,
.catalog-head h2,
.submit-inner h2{
  margin:0;
  font-size:clamp(28px,4vw,42px);
  line-height:1.2;
  letter-spacing:-1px;
}
.category-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.category{
  background:var(--card);
  border:1px solid rgba(160,139,106,.16);
  border-radius:20px;
  padding:18px 16px;
  text-align:right;
  display:flex;
  align-items:center;
  gap:14px;
  cursor:pointer;
  transition:.2s ease;
}
.category:hover,
.category.active{
  transform:translateY(-2px);
  border-color:rgba(155,117,67,.35);
  box-shadow:var(--shadow);
}
.category-icon{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:#f3ead9;
  color:var(--accent);
  font-size:21px;
  flex:0 0 auto;
}
.category-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.category-copy b{
  font-size:15px;
}
.category-copy small{
  color:var(--muted);
  font-size:12px;
}

.catalog-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:24px;
}
.catalog-head p{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.9;
  max-width:660px;
}
.count{
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
}
.filter-shell{
  display:grid;
  grid-template-columns:1fr 220px 150px;
  gap:12px;
  padding:16px;
  background:var(--bg-soft);
  border:1px solid rgba(160,139,106,.16);
  border-radius:24px;
  margin-bottom:24px;
}
.searchbox,
.selectbox{
  min-height:54px;
  background:#fff;
  border:1px solid rgba(160,139,106,.18);
  border-radius:16px;
  display:flex;
  align-items:center;
  padding:0 14px;
}
.searchbox span{
  color:var(--muted);
  font-size:18px;
}
.searchbox input,
.selectbox select{
  width:100%;
  height:52px;
  background:transparent;
  border:0;
  outline:0;
  color:var(--ink);
}
.filter-btn{
  width:100%;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.item-card{
  background:var(--card);
  border:1px solid rgba(160,139,106,.16);
  border-radius:22px;
  overflow:hidden;
  cursor:pointer;
  transition:.2s ease;
}
.item-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}
.item-image{
  aspect-ratio:1.28;
  background:linear-gradient(145deg,#eee4d2,#d8ccb5);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.item-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.item-glyph{
  font-size:64px;
  color:#8a6a39;
  text-shadow:0 6px 16px rgba(89,62,24,.12);
}
.item-body{
  padding:16px;
}
.chips{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.chip{
  font-size:11px;
  padding:5px 9px;
  border-radius:999px;
  background:#f7f1e7;
  border:1px solid rgba(160,139,106,.16);
  color:var(--muted);
}
.item-title{
  margin:12px 0 8px;
  font-size:19px;
  line-height:1.5;
}
.meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:var(--muted);
  font-size:12px;
}
.price{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(160,139,106,.16);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:700;
}
.price small{
  color:var(--muted);
  font-weight:500;
  font-size:12px;
}
.empty{
  text-align:center;
  padding:50px 16px;
  color:var(--muted);
  background:var(--bg-soft);
  border:1px dashed rgba(160,139,106,.24);
  border-radius:18px;
}

.guide-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.guide-card{
  background:var(--card);
  border:1px solid rgba(160,139,106,.16);
  border-radius:22px;
  padding:24px;
  box-shadow:0 8px 20px rgba(39,28,18,.03);
}
.guide-card span{
  color:var(--accent);
  font-weight:800;
}
.guide-card h3{
  margin:10px 0 8px;
  font-size:20px;
}
.guide-card p{
  margin:0;
  color:var(--muted);
  line-height:2;
}

.submit-banner{
  padding:74px 0 84px;
}
.submit-inner{
  background:linear-gradient(135deg,#211912,#3a2c20);
  color:#f6eddd;
  border-radius:28px;
  padding:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.submit-inner p{
  margin:10px 0 0;
  color:#d8ccb4;
  line-height:2;
  max-width:760px;
}

.site-footer{
  border-top:1px solid rgba(160,139,106,.16);
  padding:28px 0 34px;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.footer-brand{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.footer-brand strong{
  font-size:18px;
}
.footer-brand span,
.site-footer p{
  color:var(--muted);
  font-size:13px;
}
.footer-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}
.footer-links a{
  color:var(--muted);
  font-size:14px;
}

dialog{
  width:min(760px,92vw);
  border:0;
  border-radius:24px;
  background:var(--card);
  padding:0;
  box-shadow:0 28px 90px rgba(0,0,0,.28);
}
dialog::backdrop{
  background:rgba(26,20,14,.58);
  backdrop-filter:blur(4px);
}
.dialog-close{
  position:absolute;
  left:14px;
  top:14px;
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid rgba(160,139,106,.18);
  background:#fff;
  cursor:pointer;
  font-size:24px;
}
.detail-wrap{
  padding:46px 24px 24px;
}
.detail-image{
  width:100%;
  max-height:420px;
  object-fit:contain;
  border-radius:20px;
  margin-bottom:18px;
  background:#f5efe5;
}
.detail-wrap h2{
  margin:10px 0;
  font-size:32px;
}
.detail-wrap p{
  color:var(--muted);
  line-height:2;
}
.detail-table{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin:18px 0;
}
.detail-cell{
  border:1px solid rgba(160,139,106,.16);
  border-radius:14px;
  padding:12px;
  background:var(--bg-soft);
}
.detail-cell small{
  display:block;
  color:var(--muted);
  margin-bottom:5px;
}

@media (max-width: 980px){
  .main-nav{display:none}
  .hero-grid,
  .guide-grid{
    grid-template-columns:1fr;
  }
  .hero-panel{
    justify-content:stretch;
  }
  .category-grid,
  .grid{
    grid-template-columns:repeat(2,1fr);
  }
  .filter-shell{
    grid-template-columns:1fr 1fr;
  }
  .filter-btn{
    grid-column:1/-1;
  }
  .submit-inner{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 640px){
  .container{width:min(100% - 24px,1180px)}
  .topbar-inner{
    min-height:70px;
  }
  .header-btn{
    display:none;
  }
  .hero-section{
    padding-top:32px;
  }
  .hero-copy h1{
    font-size:40px;
  }
  .quick-strip-inner,
  .category-grid,
  .grid{
    grid-template-columns:1fr;
  }
  .filter-shell{
    grid-template-columns:1fr;
    padding:12px;
  }
  .catalog-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .hero-art{
    min-height:220px;
  }
  .coin-large{
    width:142px;
    height:142px;
    font-size:24px;
    right:10px;
  }
  .coin-small{
    width:86px;
    height:86px;
    left:16px;
    top:10px;
    font-size:17px;
  }
  .note-card-art{
    width:174px;
    height:96px;
    left:42px;
    bottom:10px;
    font-size:20px;
  }
  .panel-card,
  .submit-inner{
    padding:22px;
  }
  .detail-table{
    grid-template-columns:1fr;
  }
}
