@charset "UTF-8";

/* ══════════════════════════════════════════════
   VITRINE – Design system mobile-first
   Inspired by GOAT · StockX · Grailed
   ══════════════════════════════════════════════ */

:root {
  --banner-radius: 14px;
  --avatar-size: 88px;
  --avatar-offset: 50%;
  --tab-h: 48px;
  --card-radius: 10px;
  --card-gap: 10px;
  --accent: #1a1a1a;
  --accent-light: #f5f5f5;
  --muted: #767676;
  --border: #e5e5e5;
  --sold-overlay: rgba(17,17,17,.55);
  --col-badge-bg: #9926f0;
  --offer-border: #e5e5e5;
  --primary: #9926f0;
  --primary-end: #d122e3;
}

/* ── Font inheritance ── */
#vitrine-wrapper {
  font-family: 'Poppins', sans-serif;
}

/* ── HERO ── */
#vitrineHero {
  position: relative;
  border-radius: var(--banner-radius);
  overflow: visible;
  background: #f5f5f7;
}

#vitrineBanner {
  display: block;
  width: 100%;
  height: clamp(140px, 30vw, 360px);
  object-fit: cover;
  object-position: center;
  border-radius: var(--banner-radius);
}

#vitrineAvatar {
  position: absolute;
  left: 16px;
  bottom: 0;
  transform: translateY(var(--avatar-offset));
  z-index: 2;
}

#vitrineAvatar .personal-figure { margin: 0; }

.personal-avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  background: #fff;
  outline: 3px solid #fff;
  outline-offset: -1px;
}

/* ── PERFIL ── */
.v-profile {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: calc(var(--avatar-size) * .6 + 20px);
  padding: 0 4px 16px;
  border-bottom: 1px solid var(--border);
}

.v-profile__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.v-profile__since {
  font-size: .78rem;
  color: var(--muted);
}

.badge-pro { flex-shrink: 0; }

.v-profile__stats {
  display: flex;
  gap: 20px;
}

.v-stat { text-align: center; }
.v-stat__num {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary); /* fallback */
  background: linear-gradient(135deg, var(--primary), var(--primary-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.v-stat__label { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

/* ── TABS ── */
.vitrine-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: none;
  margin: 0 -4px;
  padding: 0 4px;
}

.vitrine-tabs::-webkit-scrollbar { display: none; }

.vtab {
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 14px 16px 12px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--tab-h);
}

.vtab:hover  { color: var(--primary); }
.vtab.active { color: var(--primary); font-weight: 700; }

.vtab-badge {
  background: var(--primary);
  color: #fff;
  border-radius: 99px;
  font-size: .62rem;
  font-weight: 700;
  padding: 1px 5px;
  line-height: 1.4;
}

.vtab-badge--alert { background: #e02020; }

.vtab-underline {
  height: 2px;
  background: var(--border);
  position: relative;
  margin: 0 -4px;
}

.vtab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-end));
  transition: left .22s ease, width .22s ease;
  border-radius: 2px;
}

/* ── TAB PANELS ── */
.vtab-panel { display: none; padding-top: 16px; }
.vtab-panel.active { display: block; }

/* ── PRODUCT GRID ── */
.vitrine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── PRODUCT CARD ── */
.v-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: box-shadow .18s;
}

.v-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.v-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.v-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--accent-light);
}

.v-card__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .3s ease;
}

.v-card:hover .v-card__img { transform: scale(1.04); }

/* sold overlay */
.v-card__sold-overlay {
  position: absolute;
  inset: 0;
  background: var(--sold-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v-card__sold-overlay span {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #fff;
  border: 2px solid #fff;
  padding: 3px 10px;
  border-radius: 4px;
}

/* fav badge on image */
.v-card__fav-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #e02020;
  font-size: .9rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}

/* collection badge */
.v-card__colecao-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--col-badge-bg);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

/* card body */
.v-card__body {
  padding: 8px 10px 6px;
}

.v-card__brand {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  margin-bottom: 2px;
}

.v-card__name {
  font-size: .8rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.v-card__size {
  font-size: .68rem;
  background: rgba(153, 38, 240, 0.08);
  color: var(--primary);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
}

.v-card__price {
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.v-card__price--sold {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 500;
}

/* card action buttons — floating over image top-right, one border per button */
.v-card__actions {
  display: flex;
  gap: 5px;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  /* hidden by default, show on card hover */
  opacity: 0;
  transition: opacity .18s;
}

/* always show on edit mode */
.v-card--edit .v-card__actions { opacity: 1; }

/* fav/share actions always visible */
.v-card__actions--fav { opacity: 1; }

.v-card:hover .v-card__actions { opacity: 1; }

.v-card__act-btn {
  border: 1.5px solid var(--primary);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--primary);
  cursor: pointer;
  font-size: .78rem;
  padding: 5px 7px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  line-height: 1;
}

.v-card__act-btn:hover { background: var(--primary); color: #fff; }
.excluirTenis { border-color: #e02020; color: #e02020; }
.excluirTenis:hover { background: #e02020 !important; color: #fff !important; }

/* ── EMPTY STATE ── */
.v-empty {
  text-align: center;
  padding: 48px 20px;
  color: #767676;
}

.v-empty svg { margin: 0 auto 12px; opacity: .4; color: #767676; }
.v-empty p { font-size: .9rem; margin: 0 0 16px; color: #767676; }

.v-btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-end));
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: .85rem;
  font-weight: 600;
  transition: opacity .15s;
}

.v-btn-cta:hover { opacity: .85; color: #fff; }

/* ── OFERTAS LIST ── */
.oferta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oferta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--offer-border);
  border-radius: var(--card-radius);
  padding: 12px;
  transition: box-shadow .15s;
}

.oferta-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }

.oferta-item__img-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--accent-light);
}

.oferta-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oferta-item__info { flex: 1; min-width: 0; }

.oferta-item__name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oferta-item__size {
  font-size: .7rem;
  color: var(--muted);
}

.oferta-item__prices {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.oferta-item__original {
  font-size: .75rem;
  color: var(--muted);
  text-decoration: line-through;
}

.oferta-item__offer {
  font-size: .88rem;
  font-weight: 700;
  color: #1a7f37;
}

.oferta-item__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.v-btn-accept,
.v-btn-reject {
  border: none;
  border-radius: 7px;
  padding: 7px 12px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity .15s;
  white-space: nowrap;
}

.v-btn-accept { background: linear-gradient(135deg, var(--primary), var(--primary-end)); color: #fff; }
.v-btn-accept:hover { opacity: .85; }

.v-btn-reject { background: var(--accent-light); color: var(--accent); border: 1px solid var(--border); }
.v-btn-reject:hover { background: #ffe5e5; color: #e02020; border-color: #f5b8b8; }

.oferta-badge {
  font-size: .75rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 5px 10px;
}

.oferta-badge--aceita { background: #d4edda; color: #1a7f37; }

/* ── RESPONSIVE ── */
@media (min-width: 480px) {
  :root { --avatar-size: 100px; --card-gap: 12px; }
}

@media (min-width: 640px) {
  .vitrine-grid { grid-template-columns: repeat(3, 1fr); }
  :root { --avatar-size: 110px; }
  .v-card__name { font-size: .85rem; }
}

@media (min-width: 992px) {
  :root { --avatar-size: 124px; }
  .vitrine-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  #vitrineBanner { height: clamp(200px, 22vw, 400px); }
  .v-card__name { font-size: .9rem; }
  .oferta-item__img-wrap { width: 80px; height: 80px; }
  .oferta-item__actions { flex-direction: row; align-items: center; }
}

@media (min-width: 1280px) {
  .vitrine-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Same white circular favorite/share controls as the approved home cards. */
.v-card__actions .v-card__act-btn { width:32px; height:32px; padding:0; display:inline-flex; align-items:center; justify-content:center; border:0; border-radius:50%; background:#fff; color:#9926f0; font-size:17px; box-shadow:0 2px 8px #31203b0d; }
.v-card__actions .v-card__act-btn:hover { background:#f3eaff; color:#7b1ac2; }
.v-card__actions .excluirTenis { color:#c82946; }
.v-card__pending-note { color:#79511b; background:#fff3cd; border:1px solid #ffe5a0; border-radius:12px; padding:10px; font-size:14px; line-height:1.5; white-space:pre-line; overflow-wrap:anywhere; }

/* 4E: nomes longos de loja quebram linha em vez de alargar a página no celular. */
.v-profile__info { min-width: 0; max-width: 100%; }
.v-profile__name { flex-wrap: wrap; overflow-wrap: anywhere; }

/* Keep the profile text left and its counters right, even with a longer slogan. */
.v-profile { flex-wrap: nowrap; }
.v-profile__info { flex: 1 1 0; min-width: 0; }
.v-profile__stats { flex: 0 0 auto; margin-left: auto; gap: clamp(8px, 2.5vw, 20px); }
