/* ============================================================
   VINTAGE.CSS — v0.14.1
   Matches deployed v0.14 live site.
   Fixes: modal padding reset (override main.css), body flex fix.
   ============================================================ */

:root{
  --bg:#060606;
  --s1:#0c0c0c;
  --s2:#101010;
  --border:#1c1c1c;
  --border2:#282828;
  --red:#ff3a2d;
  --orange:#f5a520;
  --purple:#8b31ff;
  --magenta:#cc3ae0;
  --text:#f0f0f0;
  --muted:#999;
  --muted2:#555;
  --green:#25d366;
}
body{font-family:'IBM Plex Mono','Consolas','Courier New',monospace;background:var(--bg);color:var(--text);overflow-x:hidden}
::-webkit-scrollbar{width:4px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--muted2);border-radius:2px}
::-webkit-scrollbar-thumb:hover{background:var(--muted)}

/* ============================================================
   TOPBAR (vintage.css overrides — main.css handles most)
   ============================================================ */
.tb-btn{padding:7px 14px;font-size:.7rem;font-weight:600;text-decoration:none;transition:all var(--t-fast);white-space:nowrap;border:2px solid transparent;cursor:pointer;font-family:inherit;display:inline-flex;align-items:center}
.tb-btn-pri{border-color:var(--purple);color:var(--purple);background:transparent}
.tb-btn-pri:hover{background:rgba(139,49,255,.08)}

/* ============================================================
   MAIN
   ============================================================ */
#vintage{padding:70px 20px 20px;max-width:1200px;margin:0 auto}

/* Sell button (below description) */
.v-sell-btn{
  display:inline-block;padding:8px 20px;font-size:.75rem;font-weight:700;
  text-decoration:none;border:2px solid var(--purple);color:var(--purple);
  background:transparent;transition:all var(--t-med);font-family:inherit;margin-bottom:16px;
}
.v-sell-btn:hover{background:rgba(139,49,255,.1);color:var(--text-bright)}

/* Filters */
.vk-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:20px;
}
@media(max-width:520px){
  .vk-filters{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .vk-filters::-webkit-scrollbar{display:none}
  .v-filter-btn{white-space:nowrap;flex-shrink:0}
}
.v-filter-btn{
  padding:7px 14px;
  font-size:.72rem;
  font-weight:600;
  border:2px solid var(--border);
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  transition:all var(--t-fast);
  font-family:inherit;
}
.v-filter-btn:hover{border-color:var(--purple);color:var(--text)}
.v-filter-btn.active{
  background:transparent;
  border-color:var(--purple);
  color:var(--purple);
}

/* Grid */
.v-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  align-items:stretch;
  padding-bottom:60px;
}
@media(min-width:640px){.v-grid{grid-template-columns:repeat(3,1fr);gap:16px}}
@media(min-width:1024px){.v-grid{grid-template-columns:repeat(4,1fr);gap:20px}}

/* ============================================================
   CARD
   ============================================================ */
.v-card-wrap{
  position:relative;
  min-width:0;
}

.v-card{
  background:var(--s2);
  border:2px solid var(--border);
  border-radius:2px;
  overflow:hidden;
  cursor:pointer;
  transition:box-shadow .22s ease,border-color var(--t-med);
  position:relative;
  width:100%;
  height:auto;
  display:flex;
  flex-direction:column;
  flex:1;
}

.v-card:hover{
  border-color:var(--purple);
}

/* Desktop hover expansion */
@media (hover: hover) and (min-width: 641px) {
  .v-card-wrap{
    z-index:1;
    overflow:visible;
    display:flex;
    align-items:flex-start;
    min-height:420px;
  }
  .v-card-wrap:hover{
    z-index:150;
  }
  .v-card-wrap:hover .v-card{
    position:absolute;
    top:-6px;
    left:-6px;
    width:calc(100% + 12px);
    box-shadow:0 24px 60px rgba(0,0,0,.75);
    border-color:var(--purple);
    z-index:150;
    height:auto;
    overflow:visible;
  }
  .v-card-wrap:hover .v-card .v-card-desc{
    -webkit-line-clamp:unset;
    display:block;
  }
  .v-card-wrap:hover .v-card .v-card-actions:not(.v-card-actions-sold){
    display:grid;
  }
  .v-card-wrap:hover .v-card .v-card-actions.v-card-actions-sold{
    display:none;
  }
}

.v-card-imgwrap{
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  background:var(--s1);
  overflow:hidden;
  touch-action:pan-y;
  flex-shrink:0;
}
.v-card-imgwrap img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .4s ease;
  pointer-events:none;
  user-select:none;
}
.v-card-imgwrap img.active{opacity:1}

.v-card-body{padding:12px;display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}

.v-card-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  margin-bottom:8px;
}
@media(min-width:641px){
  .v-card-meta{
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    gap:8px;
  }
}

.v-card-cat{
  font-size:.65rem;
  font-weight:700;
  color:var(--purple);
  text-transform:uppercase;
  letter-spacing:.04em;
  line-height:1.2;
}
.v-card-price-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.v-card-price{
  font-size:.85rem;
  font-weight:800;
  color:var(--orange);
}
.v-card-sold{
  font-size:.6rem;
  font-weight:800;
  color:var(--red);
  border:2px solid var(--red);
  padding:2px 7px;
}

.v-card-name{
  font-size:.82rem;
  font-weight:700;
  color:var(--text);
  line-height:1.3;
  margin-bottom:4px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.6em;
}
.v-card-cond{
  font-size:.7rem;
  color:var(--muted);
  margin-bottom:6px;
  min-height:1.4em;
}
.v-card-desc{
  font-size:.7rem;
  color:var(--muted2);
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  transition:-webkit-line-clamp .25s ease;
}

.v-card-expand{
  width:100%;
  margin-top:auto;
  padding:7px;
  background:transparent;
  border:2px solid var(--border);
  border-radius:2px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:600;
  cursor:pointer;
  transition:all var(--t-med);
  font-family:inherit;
}
.v-card-expand:hover{border-color:var(--purple);color:var(--text)}
@media (hover: hover) and (min-width: 641px) {
  .v-card-expand{display:none}
}

/* Desktop hover actions */
.v-card-actions{
  display:none;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:12px;
}
.v-card-btn{
  padding:7px;
  font-size:.72rem;
  font-weight:600;
  text-decoration:none;
  text-align:center;
  transition:all var(--t-fast);
  cursor:pointer;
  font-family:inherit;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid var(--border2);
  background:transparent;
  color:var(--text);
}
.v-card-btn:hover{background:var(--s3)}
.v-card-wa{border-color:var(--green);color:var(--green)}
.v-card-ig{border-color:var(--purple);color:var(--purple)}

/* ============================================================
   SKELETON
   ============================================================ */
.v-skeleton{
  background:var(--s2);
  border:2px solid var(--border);
  border-radius:2px;
  overflow:hidden;
}
.v-skeleton-img{
  width:100%;
  aspect-ratio:1 / 1;
  background:var(--s1);
  animation:sk-pulse 1.5s infinite;
}
.v-skeleton-body{padding:12px}
.v-skeleton-line{
  height:10px;
  background:var(--s1);
  border-radius:4px;
  margin-bottom:8px;
  animation:sk-pulse 1.5s infinite;
}
.v-skeleton-line.short{width:60%}
@keyframes sk-pulse{0%,100%{opacity:.4}50%{opacity:.7}}

/* ============================================================
   EMPTY / ERROR
   ============================================================ */
.v-empty,.v-error{
  text-align:center;
  padding:60px 20px;
  font-size:.85rem;
  grid-column:1 / -1;
}
.v-empty{color:var(--muted)}
.v-error{color:var(--red)}
.v-retry-btn{
  margin-top:12px;
  padding:8px 18px;
  background:var(--s2);
  border:2px solid var(--border);
  border-radius:2px;
  color:var(--text);
  font-size:.78rem;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
  transition:border-color var(--t-med);
}
.v-retry-btn:hover{border-color:var(--purple)}

/* ============================================================
   MODAL (mobile + desktop fallback)
   ============================================================ */
.v-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.8);
  z-index:200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}
.v-modal-backdrop.show{opacity:1;pointer-events:auto}

/* CRITICAL: padding:0 resets main.css .v-modal{padding:28px 24px} */
.v-modal{
  background:var(--s2);
  border:2px solid var(--border);
  border-radius:2px;
  width:100%;
  max-width:420px;
  max-height:90vh;
  overflow:hidden;
  padding:0;
  display:flex;
  flex-direction:column;
  position:relative;
  transform:scale(.96);
  transition:transform .25s cubic-bezier(.2,.9,.3,1.1);
}

.v-modal-backdrop.show .v-modal{transform:scale(1)}

.v-modal-close{
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(0,0,0,.65);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
  cursor:pointer;
  z-index:5;
  line-height:1;
  transition:background var(--t-med);
}
.v-modal-close:hover{background:rgba(0,0,0,.9)}

.v-modal-imgwrap{
  position:relative;
  width:100%;
  flex-shrink:0;
  background:var(--s1);
  overflow:hidden;
  touch-action:pan-y;
}
.v-modal-imgwrap::before{
  content:'';
  display:block;
  padding-top:100%;
}
.v-modal-imgwrap img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .3s ease;
  user-select:none;
}
.v-modal-imgwrap img.active{opacity:1}

.v-modal-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border-radius:50%;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.2rem;
  cursor:pointer;
  z-index:3;
  user-select:none;
  transition:background var(--t-med);
}
.v-modal-arrow:hover{background:rgba(0,0,0,.85)}
.v-modal-arrow.prev{left:10px}
.v-modal-arrow.next{right:10px}
.v-modal-dots{
  position:absolute;
  bottom:14px;
  left:0;
  right:0;
  display:flex;
  justify-content:center;
  gap:6px;
  z-index:3;
}
.v-modal-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:rgba(255,255,255,.3);
  cursor:pointer;
  transition:background var(--t-med);
}
.v-modal-dot.active{background:#fff}

/* Modal body: flex column — scroll area above, fixed buttons below */
.v-modal-body{
  display:flex;
  flex-direction:column;
  padding:0;
  overflow:hidden;
  flex:1;
}
.v-modal-body::-webkit-scrollbar{width:3px}
.v-modal-body::-webkit-scrollbar-track{background:transparent}
.v-modal-body::-webkit-scrollbar-thumb{background:rgba(102,102,102,.3);border-radius:2px}

/* Scrollable content area inside modal body */
.v-modal-scroll{
  flex:1;
  overflow-y:auto;
  padding:18px 18px 0 18px;
  min-height:0;
}

/* Buttons always pinned at bottom */
.v-modal-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:12px 18px 18px 18px;
  flex-shrink:0;
}

.v-modal-name{font-size:1.15rem;font-weight:800;margin-bottom:6px;color:var(--text);line-height:1.25}
.v-modal-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.v-modal-tag{
  font-size:.68rem;
  font-weight:600;
  color:var(--purple);
  background:rgba(139,49,255,.08);
  padding:3px 10px;
  border-radius:4px;
}
.v-modal-tag.sold{color:var(--red);background:rgba(255,58,45,.08)}
.v-modal-price{font-size:1.3rem;font-weight:800;color:var(--orange);margin-bottom:14px}
.v-modal-desc{font-size:.8rem;color:var(--muted);line-height:1.6;margin-bottom:18px;white-space:pre-line}
.v-modal-btn{
  padding:10px;
  font-size:.8rem;
  font-weight:600;
  text-decoration:none;
  text-align:center;
  transition:all var(--t-fast);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
  font-family:inherit;
  border:2px solid var(--border2);
  background:transparent;
  color:var(--text);
}
.v-modal-btn:hover{background:var(--s3)}
.v-modal-wa{border-color:var(--green);color:var(--green)}
.v-modal-ig{border-color:var(--purple);color:var(--purple)}

/* Topbar hide on scroll */
.topbar{
  transition:transform .3s ease;
}
.topbar.hidden{
  transform:translateY(-100%);
}

/* Mobile: equal card heights */
@media(max-width:639px){
  .v-grid{
    align-items:stretch;
  }
  .v-card-wrap{
    display:flex;
  }
  .v-card-wrap .v-card{
    flex:1 1 auto;
    height:auto;
    min-height:100%;
  }
}


/* ============================================================
   v0.15.1 overrides
   - Bigger listing description font (cards + modal)
   - Thinner modal border (like the previous version)
   - Button borders match the page purple
   ============================================================ */
.v-card-desc{font-size:.82rem;line-height:1.45;color:var(--muted)}
.v-modal-desc{font-size:.88rem}
.v-modal{border:1px solid var(--border)}
.v-filter-btn{border-color:rgba(139,49,255,.45)}
.v-filter-btn:hover{border-color:var(--purple)}
.v-card-expand{border-color:rgba(139,49,255,.45)}
.v-card-expand:hover{border-color:var(--purple)}
.v-retry-btn{border-color:rgba(139,49,255,.45)}
.v-retry-btn:hover{border-color:var(--purple)}
.v-card-btn{border-color:rgba(139,49,255,.45)}
.v-card-btn:hover{border-color:var(--purple)}
.v-card-wa{border-color:var(--green)}
.v-card-ig{border-color:var(--purple)}
.v-modal-btn{border-color:rgba(139,49,255,.45)}
.v-modal-btn:hover{border-color:var(--purple)}
.v-modal-wa{border-color:var(--green)}
.v-modal-ig{border-color:var(--purple)}
