/* Karishn — luxury minimal, flat, high whitespace */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root{
  --bg:#ffffff; --bg-soft:#f6f5f2; --ink:#111111; --muted:#777777;
  --line:#eceae5; --accent:#c9b895; --accent-ink:#7a6a45;
  --radius:20px; --max:1160px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:no-preference){
  html{scroll-snap-type:y proximity}
  .snap{scroll-snap-align:start; scroll-margin-top:64px}
  #collection{scroll-snap-align:none; scroll-margin-top:64px}
}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:'Vazirmatn',system-ui,sans-serif; font-weight:400;
  -webkit-font-smoothing:antialiased; line-height:2;
}
h1,h2{font-weight:600; line-height:1.7; margin:0}
h3{font-weight:500; line-height:1.7; margin:0}
.en{font-family:'Cormorant Garamond',serif; letter-spacing:.35em; font-weight:500}
.wrap{max-width:var(--max); margin:0 auto; padding:0 28px}
a{color:inherit; text-decoration:none}

/* reveal on scroll — micro animation */
.rv{opacity:0; transform:translateY(26px); transition:opacity .8s ease, transform .8s cubic-bezier(.2,.6,.2,1); transition-delay:var(--d,0s)}
.rv.in{opacity:1; transform:none}
@media (prefers-reduced-motion:reduce){.rv{opacity:1; transform:none; transition:none} html{scroll-snap-type:none} .snap{scroll-snap-align:none}}

/* header */
header.site{position:sticky; top:0; z-index:20; background:rgba(255,255,255,.92); backdrop-filter:blur(12px); border-bottom:1px solid var(--line)}
.bar{display:flex; align-items:center; justify-content:space-between; height:84px}
.brand{display:flex; align-items:center; gap:14px}
.brand img{height:52px; width:auto; display:block}
.brand .fa{font-weight:600; font-size:21px}
nav.links{display:flex; gap:30px; font-size:14.5px; font-weight:500; color:#333}
nav.links a{opacity:.75; transition:opacity .2s} nav.links a:hover{opacity:1}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--ink); background:var(--ink); color:#fff; border-radius:999px; padding:13px 34px; font-family:inherit; font-size:14.5px; font-weight:500; cursor:pointer; transition:transform .25s, background .25s, box-shadow .25s; min-height:52px}
.btn:hover{background:#000; transform:translateY(-1px)}
.btn:active{transform:scale(.97)}
.btn.ghost{background:transparent; color:var(--ink)}
.btn.gold{background:transparent; border-color:var(--accent); color:var(--accent-ink)}
.btn.big{padding:16px 44px; font-size:15.5px}
.btn:disabled{opacity:.45; cursor:not-allowed; transform:none}

/* hero */
.hero{padding:100px 0 90px; text-align:center; min-height:92svh; display:flex; flex-direction:column; justify-content:center}
.hero h1{font-size:clamp(36px,6vw,64px); font-weight:500}
.hero .wordmark{width:min(360px,68vw); height:auto; display:block; margin:20px auto 0}
.hero p.sub{color:#555; max-width:560px; margin:24px auto 0; font-size:16.5px}
.hero .cta{display:flex; gap:14px; justify-content:center; margin-top:44px; flex-wrap:wrap}
.hero .rule{width:56px; height:1px; background:var(--accent); margin:48px auto 0}

/* sections */
section.block{padding:80px 0}
section.soft{background:var(--bg-soft)}
.sec-head{text-align:center; margin-bottom:56px}
.sec-head h2{font-size:30px}
.sec-head p{color:var(--muted); font-size:14.5px; margin-top:10px}

/* filters */
.filters{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:50px}
.filters input,.filters select{font-family:inherit; border:1px solid var(--line); background:#fff; border-radius:999px; padding:12px 22px; font-size:14px; min-width:170px; outline:none; transition:border-color .2s, box-shadow .2s}
.filters input:focus,.filters select:focus{border-color:var(--accent); box-shadow:0 0 0 3px rgba(201,184,149,.18)}

/* grid */
.grid{display:grid; grid-template-columns:repeat(3,1fr); gap:44px 34px}
@media(max-width:900px){.grid{grid-template-columns:repeat(2,1fr); gap:34px 18px}}
.card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; transition:transform .35s, box-shadow .35s; display:flex; flex-direction:column}
.card:hover{transform:translateY(-4px); box-shadow:0 24px 60px -30px rgba(0,0,0,.18)}
.card .ph{aspect-ratio:4/5; background:var(--bg-soft); overflow:hidden; position:relative}
.card .ph img{width:100%; height:100%; object-fit:cover; display:block; transition:transform .8s cubic-bezier(.2,.6,.2,1)}
.card:hover .ph img{transform:scale(1.045)}
.badge{position:absolute; top:14px; right:14px; background:#fff; border:1px solid var(--line); font-size:11.5px; padding:5px 14px; border-radius:999px}
.badge.out{background:var(--ink); color:#fff; border-color:var(--ink)}
.card .body{padding:24px 24px 26px; display:flex; flex-direction:column; gap:8px; flex:1}
.card .cat{font-size:11.5px; letter-spacing:.2em; color:var(--muted)}
.card .name{font-size:17.5px; font-weight:600}
.card .price{font-size:15px; font-weight:500; margin-top:2px}
.card .price small{color:var(--muted); font-size:12px; font-weight:400}
.dots{display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; font-size:12px; color:#555}
.dots span{border:1px solid var(--line); border-radius:999px; padding:3px 12px; background:#fbfaf8}
.card .ask{margin-top:16px; font-size:13.5px; font-weight:500; border-top:1px solid var(--line); padding-top:16px; color:var(--accent-ink)}

/* about / footer */
.about{display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center}
@media(max-width:800px){.about{grid-template-columns:1fr; gap:30px}}
.about img{width:100%; border-radius:var(--radius); aspect-ratio:4/5; object-fit:cover}
.about p{color:#444; font-size:15.5px}
footer{border-top:1px solid var(--line); padding:60px 0 40px; text-align:center; color:var(--muted); font-size:14px}
footer .en{color:#bbb; font-size:13px}

/* panels (seller/admin) — ساده ولی هم‌خانواده */
.panel{max-width:860px; margin:0 auto; padding:60px 28px 100px}
.panel h1{font-size:28px; text-align:center}
.panel .sub{text-align:center; color:var(--muted); font-size:14.5px; margin:10px 0 40px}
.cardbox{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:34px; margin-bottom:22px}
.field{margin-bottom:20px}
.field label{display:block; font-size:13.5px; font-weight:500; margin-bottom:8px; color:#333}
.field input,.field select,.field textarea{width:100%; font-family:inherit; font-size:15px; border:1px solid var(--line); border-radius:14px; padding:14px 16px; outline:none; background:#fff; transition:border-color .2s, box-shadow .2s}
.field input:focus,.field select:focus{border-color:var(--accent); box-shadow:0 0 0 3px rgba(201,184,149,.18)}
.pick{display:flex; gap:10px; flex-wrap:wrap}
.pick button{border:1px solid var(--line); background:#fff; border-radius:999px; padding:11px 22px; font-family:inherit; font-size:14px; font-weight:500; cursor:pointer; min-height:46px; transition:background .2s, transform .15s}
.pick button:active{transform:scale(.95)}
.pick button.on{background:var(--ink); color:#fff; border-color:var(--ink)}
.pick button:disabled{opacity:.35; text-decoration:line-through}
.prodlist{display:grid; gap:12px; max-height:320px; overflow:auto}
.prodrow{display:flex; gap:14px; align-items:center; border:1px solid var(--line); border-radius:14px; padding:10px 14px; cursor:pointer; background:#fff; transition:border-color .2s, background .2s}
.prodrow.on{border-color:var(--ink); background:#fafafa}
.prodrow img{width:52px; height:64px; object-fit:cover; border-radius:10px}
.prodrow .n{font-size:14.5px; font-weight:600} .prodrow .m{font-size:12.5px; color:var(--muted)}
.stepper{display:flex; align-items:center; gap:16px}
.stepper button{width:52px; height:52px; border-radius:50%; border:1px solid var(--ink); background:#fff; font-size:22px; cursor:pointer; transition:transform .15s}
.stepper button:active{transform:scale(.9)}
.stepper b{font-size:20px; min-width:40px; text-align:center}
.kpi{display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; margin-bottom:22px}
.kpi .k{background:#fff; border:1px solid var(--line); border-radius:16px; padding:22px; text-align:center}
.kpi .k .v{font-size:24px; font-weight:600} .kpi .k .t{font-size:12.5px; color:var(--muted)}
.tblwrap{overflow-x:auto; -webkit-overflow-scrolling:touch}
table.tbl{width:100%; min-width:560px; border-collapse:collapse; font-size:13px}
table.tbl th,table.tbl td{border-bottom:1px solid var(--line); padding:10px 8px; text-align:right; white-space:nowrap}
table.tbl th{color:var(--muted); font-weight:500; font-size:12px}
.tabs{display:flex; gap:10px; justify-content:center; margin-bottom:30px; overflow-x:auto; padding-bottom:4px}
.tabs button{border:1px solid var(--line); background:#fff; padding:10px 26px; border-radius:999px; font-family:inherit; font-weight:500; cursor:pointer; font-size:14px; white-space:nowrap}
.tabs button.on{background:var(--ink); color:#fff; border-color:var(--ink)}
.vrow{display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:10px; margin-bottom:10px}
.toast{position:fixed; bottom:26px; left:50%; transform:translateX(-50%); background:var(--ink); color:#fff; padding:14px 30px; border-radius:999px; font-size:14px; font-weight:500; display:none; z-index:50; max-width:90vw; text-align:center}
.loginbox{max-width:420px; margin:0 auto}
canvas.chart{max-height:300px}
.hint{font-size:13px; color:var(--muted)}
.topnav{display:flex; justify-content:center; gap:22px; font-size:13.5px; padding:18px 0 0; color:var(--muted)}
.topnav a{border-bottom:1px solid transparent} .topnav a:hover{color:var(--ink)}

/* ---------- موبایل ---------- */
@media(max-width:640px){
  .wrap{padding:0 18px}
  .bar{height:70px}
  .brand img{height:42px}
  .brand .fa{font-size:18px}
  nav.links{gap:16px; font-size:13px}
  .hero{padding:64px 0 60px; min-height:88svh}
  .hero p.sub{font-size:15px}
  .hero .cta{padding:0 14px}
  .hero .cta .btn{flex:1 1 100%}
  .btnrow{padding:0 14px}
  .btnrow .btn{flex:1 1 100%}
  section.block{padding:60px 0}
  .sec-head{margin-bottom:38px}
  .sec-head h2{font-size:25px}
  .filters input,.filters select{flex:1 1 100%; min-width:0; font-size:16px}
  .grid{grid-template-columns:repeat(2,1fr); gap:22px 12px}
  .card .ph{aspect-ratio:1/1}
  .card .body{padding:14px 12px 16px; gap:5px}
  .card .name{font-size:15px}
  .card .price{font-size:13px}
  .card .price small{display:block; margin-top:2px}
  .card .cat{font-size:10px}
  .dots{font-size:11px; gap:6px}
  .dots span{padding:2px 9px}
  .card .ask{font-size:12px; margin-top:12px; padding-top:12px}
  .about img{aspect-ratio:1/1}
  .panel{padding:44px 16px 90px}
  .panel h1{font-size:23px}
  .cardbox{padding:22px 16px}
  .field input,.field select,.field textarea{font-size:16px; padding:13px 14px}
  .kpi{grid-template-columns:1fr}
  .vrow{grid-template-columns:1fr 1fr}
  .vrow input{font-size:16px}
  .stepper button{width:56px; height:56px}
  .pick button{padding:12px 24px; font-size:15px}
  .btn.big{width:100%}
  canvas.chart{max-height:240px}
  footer{padding:48px 0 34px}
}
@media(max-width:900px) and (min-width:641px){
  .grid{grid-template-columns:repeat(2,1fr); gap:30px 18px}
}
