:root{
  /* Tokens sampled from the sister's live Shopify theme (sadeldeal.se) */
  --red:#dd1d1d; --red-dark:#b81616; --ink:#252525; --muted:#6b6b6b; --line:#e6e6e6; --grey:#bfbfbf;
  --bg:#ffffff; --bg2:#f7f7f7; --card:#fff; --radius:14px; --maxw:1180px;
  --shadow:0 1px 3px rgba(0,0,0,.06),0 6px 20px rgba(0,0,0,.04);
  --font:"Figtree",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --display:"Syne","Figtree",-apple-system,Segoe UI,Roboto,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:var(--font);color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;line-height:1.5}
[hidden]{display:none!important}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:15px}
h1,h2,h3,.brand-name,.hero h1,.price-big,.price-big+*{font-family:var(--display)}
h1,h2,h3{font-weight:800;letter-spacing:-.01em}

/* ---------- announcement strip (matches sadeldeal.se black bar) ---------- */
#announce{background:#000;color:#fff;text-align:center;font-size:12.5px;letter-spacing:.04em;padding:7px 12px;font-weight:500}
/* ---------- topbar ---------- */
#topbar{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}
.bar-inner{max-width:var(--maxw);margin:0 auto;display:flex;align-items:center;gap:16px;padding:12px 16px}
.brand{display:flex;align-items:center;gap:8px;flex-shrink:0}
.brand-logo{width:30px;height:30px}
.brand-name{font-family:var(--display);font-weight:800;font-size:19px;letter-spacing:.14em;color:#000;white-space:nowrap}
.topsearch{flex:1;max-width:520px}
.topsearch input{width:100%;padding:10px 16px;border:1.5px solid var(--line);border-radius:999px;background:var(--bg2);outline:none;transition:border .15s}
.topsearch input:focus{border-color:var(--red)}
.topnav{display:flex;align-items:center;gap:6px;flex-shrink:0}
.topnav a,.topnav button{padding:8px 14px;border-radius:999px;border:0;background:transparent;font-size:14.5px;font-weight:600;color:var(--ink);white-space:nowrap}
.topnav a:hover{background:var(--bg2)}
.topnav .cta{background:var(--red);color:#fff}
.topnav .cta:hover{background:var(--red-dark)}
.menu-btn{display:none;background:none;border:0;padding:6px 4px;flex-direction:column;gap:5px;width:34px}
.menu-btn span{display:block;height:2px;width:24px;background:var(--ink);border-radius:2px}
/* ---------- fullscreen mobile menu (sadeldeal.se style) ---------- */
.fs-menu{position:fixed;inset:0;z-index:100;background:#fff;display:flex;flex-direction:column;overflow-y:auto;animation:fsIn .18s ease}
@keyframes fsIn{from{opacity:0}to{opacity:1}}
.fs-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff}
.fs-head .fs-x{background:none;border:0;font-size:26px;line-height:1;color:var(--ink);width:40px;text-align:left}
.fs-brand{display:flex;align-items:center;gap:8px;font-family:var(--display);font-weight:800;letter-spacing:.1em;font-size:16px}
.fs-brand img{width:28px;height:28px}
.fs-head .fs-search{background:none;border:0;font-size:20px;width:40px;text-align:right}
.fs-items{flex:1;padding:6px 0}
.fs-items a{display:block;font-size:27px;font-weight:400;padding:22px 22px;border-bottom:1px solid #f0f0f0;color:var(--ink)}
.fs-items a:active,.fs-items a:hover{background:#f5f5f5}
.fs-foot{background:#f5f5f5;padding:22px;display:flex;flex-direction:column;gap:16px}
.fs-foot .fs-user{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:600}
.fs-foot .fs-user svg{width:22px;height:22px}
.fs-foot .fs-lang{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:15px}
.fs-foot .fs-lang select{border:0;background:none;font-size:15px;color:var(--ink);font-weight:600}
body.no-scroll{overflow:hidden}

/* ---------- layout ---------- */
#app{max-width:var(--maxw);margin:0 auto;padding:16px;min-height:60vh}
.loading{display:flex;justify-content:center;padding:80px}
.spinner{width:34px;height:34px;border:3px solid var(--line);border-top-color:var(--red);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.page-wide{max-width:var(--maxw)}
h1{font-size:26px;letter-spacing:-.02em;margin:.2em 0 .5em}
h2{font-size:20px;letter-spacing:-.01em}
.muted{color:var(--muted)}
.center{text-align:center}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;border-radius:11px;border:1.5px solid var(--line);background:#fff;font-weight:700;font-size:15px;color:var(--ink);transition:.12s}
.btn:hover{border-color:#d5d5d5}
.btn-primary{background:var(--red);border-color:var(--red);color:#fff}
.btn-primary:hover{background:var(--red-dark);border-color:var(--red-dark)}
.btn-block{width:100%}
.btn-lg{padding:15px 26px;font-size:16px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-ghost{background:transparent;border-color:transparent}

/* ---------- hero ---------- */
.hero{background:linear-gradient(160deg,#fff 0%,var(--bg2) 100%);border-radius:20px;padding:44px 32px;margin-bottom:24px;position:relative;overflow:hidden}
.hero h1{font-size:38px;line-height:1.1;max-width:16ch}
.hero p{font-size:17px;color:var(--muted);max-width:52ch;margin:14px 0 24px}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap}
.usps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0 8px}
.usp{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.usp .ic{width:40px;height:40px;border-radius:10px;background:rgba(216,16,40,.09);display:flex;align-items:center;justify-content:center;margin-bottom:12px;font-size:20px}
.usp h3{margin:0 0 6px;font-size:16px}
.usp p{margin:0;font-size:14px;color:var(--muted)}

/* ---------- browse ---------- */
.browse-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.browse-layout{display:grid;grid-template-columns:230px 1fr;gap:24px;align-items:start}
.filters{position:sticky;top:76px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px}
.filters h3{margin:0 0 10px;font-size:15px}
.fgroup{margin-bottom:14px}
.fgroup label{display:block;font-size:12.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:6px}
.fgroup select,.fgroup input{width:100%;padding:9px 11px;border:1.5px solid var(--line);border-radius:9px;background:#fff}
.price-row{display:flex;gap:8px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:.14s;position:relative}
.card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.card .ph{aspect-ratio:1;background:var(--bg2);overflow:hidden}
.card .ph img{width:100%;height:100%;object-fit:cover}
.card .body{padding:11px 12px 13px}
.card .ttl{font-weight:700;font-size:14.5px;line-height:1.3;margin:0 0 3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.card .meta{font-size:12.5px;color:var(--muted);margin-bottom:8px}
.card .price{font-weight:800;font-size:16px}
.card .fee{font-size:11.5px;color:var(--muted);font-weight:500}
.badge{display:inline-block;font-size:11px;font-weight:700;padding:3px 8px;border-radius:999px;background:rgba(216,16,40,.09);color:var(--red)}
.card .badge{position:absolute;top:10px;left:10px;background:#fff;box-shadow:var(--shadow)}
.chip{display:inline-block;font-size:12px;padding:4px 10px;border-radius:999px;background:var(--bg2);border:1px solid var(--line);margin:0 4px 4px 0}

/* ---------- listing detail ---------- */
.detail{display:grid;grid-template-columns:1.15fr 1fr;gap:32px;align-items:start}
.gallery .main{aspect-ratio:1;background:var(--bg2);border-radius:var(--radius);overflow:hidden}
.gallery .main img{width:100%;height:100%;object-fit:cover}
.thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.thumbs img{width:64px;height:64px;object-fit:cover;border-radius:9px;border:2px solid transparent;cursor:pointer}
.thumbs img.on{border-color:var(--red)}
.detail-info h1{margin-top:0}
.price-big{font-size:30px;font-weight:800}
.price-sub{color:var(--muted);font-size:14px;margin-bottom:16px}
.spec-table{width:100%;border-collapse:collapse;margin:8px 0 20px}
.spec-table td{padding:9px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.spec-table td:first-child{color:var(--muted);width:44%}
.spec-table td:last-child{font-weight:600;text-align:right}
.seller-box{display:flex;align-items:center;gap:12px;padding:14px;background:var(--bg2);border-radius:var(--radius);margin:16px 0}
.avatar{width:42px;height:42px;border-radius:50%;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}
.pb{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin:16px 0}
.pb-row{display:flex;justify-content:space-between;padding:5px 0;font-size:14.5px}
.pb-row.total{border-top:1px solid var(--line);margin-top:6px;padding-top:11px;font-weight:800;font-size:17px}
.desc{white-space:pre-wrap;line-height:1.65;font-size:15px}

/* ---------- forms / sell ---------- */
.form-card{max-width:640px;margin:0 auto;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.field{margin-bottom:16px}
.field label{display:block;font-weight:700;font-size:14px;margin-bottom:6px}
.field input,.field select,.field textarea{width:100%;padding:11px 13px;border:1.5px solid var(--line);border-radius:10px;background:#fff;outline:none}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--red)}
.field textarea{min-height:110px;resize:vertical}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.steps{display:flex;gap:8px;margin-bottom:22px;flex-wrap:wrap}
.step-dot{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);font-weight:600}
.step-dot .n{width:24px;height:24px;border-radius:50%;background:var(--bg2);border:1.5px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:12px}
.step-dot.on{color:var(--ink)}
.step-dot.on .n{background:var(--red);border-color:var(--red);color:#fff}
.step-dot.done .n{background:#1b9e4b;border-color:#1b9e4b;color:#fff}

.dropzone{border:2px dashed var(--line);border-radius:var(--radius);padding:32px;text-align:center;background:var(--bg2);cursor:pointer;transition:.15s}
.dropzone:hover{border-color:var(--red)}
.dropzone .big{font-size:34px;margin-bottom:8px}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;margin-top:14px}
.photo-grid .p{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--bg2)}
.photo-grid .p img{width:100%;height:100%;object-fit:cover}
.photo-grid .p .rm{position:absolute;top:4px;right:4px;background:rgba(0,0,0,.6);color:#fff;border:0;border-radius:50%;width:24px;height:24px;font-size:14px}
.photo-grid .p .cover{position:absolute;bottom:4px;left:4px;font-size:10px;background:var(--red);color:#fff;padding:2px 7px;border-radius:999px;font-weight:700}

.stamp-box{background:linear-gradient(160deg,#fff,var(--bg2));border:1.5px solid var(--line);border-radius:var(--radius);padding:22px;text-align:center}
.stamp-box .big{font-size:38px}
.stamp-preview{max-width:220px;margin:12px auto;border-radius:10px;border:1px solid var(--line)}
.decoded{background:#f2fbf4;border:1px solid #bfe6c9;border-radius:11px;padding:14px;text-align:left;margin-top:14px}
.decoded .row{display:flex;justify-content:space-between;padding:4px 0;font-size:14px;border-bottom:1px solid rgba(0,0,0,.05)}
.decoded .conf{font-size:12.5px;color:var(--muted);margin-top:8px}

/* ---------- account / orders ---------- */
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:20px;overflow-x:auto}
.tabs button{padding:12px 16px;border:0;background:none;font-weight:700;font-size:14.5px;color:var(--muted);border-bottom:2.5px solid transparent;white-space:nowrap}
.tabs button.on{color:var(--ink);border-bottom-color:var(--red)}
.order-card{border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:14px;display:flex;gap:14px}
.order-card img{width:74px;height:74px;object-fit:cover;border-radius:10px;flex-shrink:0;background:var(--bg2)}
.order-card .oc-body{flex:1;min-width:0}
.status-pill{display:inline-block;font-size:12px;font-weight:700;padding:4px 11px;border-radius:999px}
.status-pending{background:#fff3cd;color:#8a6d00}
.status-paid_held{background:#e0f0ff;color:#0a5cad}
.status-shipped{background:#e6e0ff;color:#4a2fad}
.status-completed{background:#e0f7e6;color:#1b7a3e}
.status-disputed{background:#ffe0e0;color:#b00c20}
.status-refunded,.status-cancelled{background:#eee;color:#666}

/* ---------- messages ---------- */
.msg-layout{display:grid;grid-template-columns:300px 1fr;gap:20px;align-items:start}
.thread-list .t{display:flex;gap:10px;padding:12px;border:1px solid var(--line);border-radius:11px;margin-bottom:8px;cursor:pointer}
.thread-list .t.on{border-color:var(--red);background:var(--bg2)}
.thread-list .t img{width:44px;height:44px;border-radius:9px;object-fit:cover;background:var(--bg2)}
.chat{border:1px solid var(--line);border-radius:var(--radius);display:flex;flex-direction:column;height:60vh}
.chat-head{padding:14px 16px;border-bottom:1px solid var(--line);font-weight:700}
.chat-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px}
.bubble{max-width:75%;padding:9px 13px;border-radius:14px;font-size:14.5px}
.bubble.me{align-self:flex-end;background:var(--red);color:#fff;border-bottom-right-radius:4px}
.bubble.them{align-self:flex-start;background:var(--bg2);border-bottom-left-radius:4px}
.chat-foot{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line)}
.chat-foot input{flex:1;padding:11px 14px;border:1.5px solid var(--line);border-radius:999px}
.safety-note{font-size:12.5px;color:var(--muted);background:#fff8e6;border:1px solid #ffe3a3;border-radius:9px;padding:9px 12px;margin-bottom:12px}

/* ---------- misc ---------- */
.notice{background:#fff8e6;border:1px solid #ffe3a3;border-radius:var(--radius);padding:18px;margin:16px 0}
.notice h3{margin:0 0 6px;color:#8a6d00}
.empty{text-align:center;padding:60px 20px;color:var(--muted)}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 22px;border-radius:999px;font-weight:600;font-size:14.5px;z-index:200;box-shadow:var(--shadow)}
.modal-scrim{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:150;display:flex;align-items:center;justify-content:center;padding:20px}
.modal{background:#fff;border-radius:16px;padding:26px;max-width:440px;width:100%;max-height:88vh;overflow-y:auto}
.modal h2{margin-top:0}
.legal{max-width:760px;margin:0 auto;line-height:1.7}
.legal h2{margin-top:28px}
.legal .draft{background:#fff8e6;border:1px solid #ffe3a3;border-radius:9px;padding:8px 12px;font-size:13px;color:#8a6d00;display:inline-block}

#footer{border-top:1px solid var(--line);margin-top:60px;background:var(--bg2)}
.foot-inner{max-width:var(--maxw);margin:0 auto;padding:32px 16px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px;font-size:14px;color:var(--muted)}
.foot-inner a{color:var(--muted);margin-right:16px}
.foot-inner a:hover{color:var(--ink)}
.lang-switch select{padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}

/* ---------- responsive ---------- */
@media(max-width:900px){
  .browse-layout{grid-template-columns:1fr}
  .filters{position:static}
  .detail{grid-template-columns:1fr}
  .msg-layout{grid-template-columns:1fr}
  .usps{grid-template-columns:1fr}
}
@media(max-width:680px){
  .topnav{display:none}
  .topsearch{display:none}
  .menu-btn{display:flex}
  .bar-inner{justify-content:space-between}
  .brand-name{font-size:17px}
  .hero{padding:30px 20px}
  .hero h1{font-size:28px}
  .field-row{grid-template-columns:1fr}
}
