/* ═══════════════════════════════════════════════════
   STAND MOTOS — moto-showcase.css
   Modal + lightbox (home + estoque)
═══════════════════════════════════════════════════ */

#modalMoto {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#modalMoto.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#modalMoto.closing {
  opacity: 0;
  visibility: hidden;
}

.mm-card {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  width: 100%;
  max-width: 1080px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(28px) scale(0.97);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

#modalMoto.open .mm-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#modalMoto.closing .mm-card {
  transform: translateY(16px) scale(0.98);
  opacity: 0;
}

.mm-gallery {
  position: relative;
  flex-shrink: 0;
  background: #0f0f10;
}

.mm-main-img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s;
  background: #0f0f10;
}

.mm-main-img.fade {
  opacity: 0;
}

.mm-main-placeholder {
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18181b;
}

.mm-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 15, 16, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}

.mm-nav-btn:hover {
  background: var(--red, #e1062e);
  border-color: var(--red, #e1062e);
}

.mm-nav-prev { left: 1rem; }
.mm-nav-next { right: 1rem; }

.mm-counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  font-family: Oswald, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
}

.mm-badge-gallery {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--red, #e1062e);
  color: #fff;
  font-family: Oswald, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 3px;
  z-index: 2;
}

.mm-zoom-hint {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-family: Oswald, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.mm-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  background: #111113;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(225, 6, 46, 0.4) transparent;
}

.mm-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: all 0.2s;
}

.mm-thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.mm-thumb.active {
  border-color: var(--red, #e1062e);
  opacity: 1;
}

.mm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mm-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  overflow-y: auto;
  flex: 1;
}

.mm-main {
  padding: 1.75rem 2rem;
}

.mm-eyebrow {
  font-family: Oswald, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red, #e1062e);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.mm-eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--red, #e1062e);
  border-radius: 2px;
  display: block;
}

.mm-title {
  font-family: Oswald, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.mm-version {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

.mm-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mm-spec-item {
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

.mm-spec-lbl {
  font-family: Oswald, sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.3rem;
}

.mm-spec-val {
  font-family: Oswald, sans-serif;
  font-size: 1rem;
  color: #fff;
  text-transform: uppercase;
}

.mm-desc-title {
  font-family: Oswald, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mm-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

.mm-sidebar {
  padding: 1.75rem 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mm-price-box {
  background: linear-gradient(135deg, rgba(225, 6, 46, 0.1) 0%, rgba(225, 6, 46, 0.04) 100%);
  border: 1px solid rgba(225, 6, 46, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
}

.mm-price-lbl {
  font-family: Oswald, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.4rem;
}

.mm-price {
  font-family: Oswald, sans-serif;
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}

.mm-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  font-family: Oswald, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  width: 100%;
}

.mm-btn-wa:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.25);
}

.mm-btn-fin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(225, 6, 46, 0.1);
  color: var(--red, #e1062e);
  border: 1px solid rgba(225, 6, 46, 0.25);
  font-family: Oswald, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.mm-btn-fin:hover {
  background: rgba(225, 6, 46, 0.2);
}

.mm-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: Oswald, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.4rem;
  transition: color 0.2s;
  width: 100%;
}

.mm-share:hover {
  color: rgba(255, 255, 255, 0.6);
}

.mm-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mm-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mm-info-row:last-child {
  border-bottom: none;
}

.mm-info-key {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

.mm-info-val {
  color: #fff;
  font-family: Oswald, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.mm-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 15, 16, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.mm-close:hover {
  background: var(--red, #e1062e);
  border-color: var(--red, #e1062e);
  color: #fff;
}

.mm-thumbs::-webkit-scrollbar { height: 3px; }
.mm-thumbs::-webkit-scrollbar-thumb {
  background: rgba(225, 6, 46, 0.4);
  border-radius: 3px;
}

.mm-body::-webkit-scrollbar { width: 4px; }
.mm-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

@media (max-width: 700px) {
  .mm-body {
    grid-template-columns: 1fr;
  }
  .mm-sidebar {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-left: none !important;
  }
}

@media (max-width: 600px) {
  .mm-main-img,
  .mm-main-placeholder {
    height: 260px;
  }
  .mm-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mm-main {
    padding: 1.25rem;
  }
  #modalMoto {
    padding: 0;
  }
  .mm-card {
    max-height: 100vh;
    border-radius: 0;
    max-width: 100%;
  }
}

/* ── Lightbox ── */

#lbOverlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.96);
  display: none;
  flex-direction: column;
  animation: lbIn 0.25s ease both;
}

#lbOverlay.closing {
  animation: lbOut 0.2s ease both;
}

@keyframes lbIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lbOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

#lbBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#lbTitle {
  font-family: Oswald, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.05em;
}

#lbBarRight {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#lbCount {
  font-family: Oswald, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
}

#lbClose {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

#lbClose:hover {
  background: var(--red, #e1062e);
  border-color: var(--red, #e1062e);
}

#lbMain {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: default;
  min-height: 0;
}

#lbImg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s;
  user-select: none;
}

#lbImg.fade {
  opacity: 0;
}

#lbPrev,
#lbNext {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 15, 16, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}

#lbPrev:hover,
#lbNext:hover {
  background: var(--red, #e1062e);
  border-color: var(--red, #e1062e);
  transform: translateY(-50%) scale(1.05);
}

#lbPrev { left: 1.25rem; }
#lbNext { right: 1.25rem; }

#lbThumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  overflow-x: auto;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(225, 6, 46, 0.4) transparent;
}

#lbThumbs::-webkit-scrollbar { height: 3px; }
#lbThumbs::-webkit-scrollbar-thumb {
  background: rgba(225, 6, 46, 0.4);
  border-radius: 3px;
}

.lb-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.45;
  transition: all 0.2s;
}

.lb-thumb:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.lb-thumb.active {
  border-color: var(--red, #e1062e);
  opacity: 1;
}

.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  #lbPrev { left: 0.5rem; }
  #lbNext { right: 0.5rem; }
  #lbPrev,
  #lbNext {
    width: 40px;
    height: 40px;
  }
}
