/* ==========================================================================
   NEXUS MOTOS - DESIGN SYSTEM & REPLICA ESTILOS
   ========================================================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #f7f7f8;
  color: #111;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 500px;
  margin: 0 auto;
  padding-bottom: 74px;
}

a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: relative;
  transition: transform 0.15s ease;
}

.header-btn:active {
  transform: scale(0.92);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #FE2C55;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1.5px solid #fff;
}

/* ===== GALERIA (HERO) ===== */
.gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.gallery-slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.gallery-slider:active {
  cursor: grabbing;
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
}

.gallery-counter {
  position: absolute;
  bottom: 84px;
  right: 14px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  z-index: 10;
}

/* ===== BANNER OFERTA RELÂMPAGO ===== */
.flash-deal-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #FE2C55 0%, #ff5238 60%, #ff7a18 100%);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 15;
}

.flash-deal-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-deal-badge {
  background: rgba(255,255,255,0.25);
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.flash-deal-info {
  display: flex;
  flex-direction: column;
}

.flash-deal-price {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.flash-deal-original {
  font-size: 12px;
  opacity: 0.85;
  text-decoration: line-through;
  margin-top: 1px;
}

.flash-deal-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.flash-timer-title {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.flash-timer-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.flash-timer-label {
  font-size: 10px;
  opacity: 0.9;
  margin-right: 3px;
}

.flash-timer-box {
  background: #fff;
  color: #FE2C55;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 3px;
  min-width: 20px;
  text-align: center;
}

.flash-timer-sep {
  font-size: 11px;
  font-weight: 800;
  margin: 0 1px;
}

/* ===== BÔNUS BADGES ===== */
.bonus-badges {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  overflow-x: auto;
  scrollbar-width: none;
}
.bonus-badges::-webkit-scrollbar { display: none; }

.bonus-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
  white-space: nowrap;
}

.bonus-badge.gift {
  color: #d9381e;
  background: #fff2f0;
  border: 1px solid #ffd0ca;
}

.bonus-badge.percent {
  color: #d9381e;
  background: #fff2f0;
  border: 1px solid #ffd0ca;
}

/* ===== INFO DO PRODUTO ===== */
.product-info {
  background: #fff;
  padding: 12px 14px;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
  flex: 1;
}

.favorite-btn {
  padding: 4px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stars {
  display: flex;
  gap: 1px;
}

.stars svg.star {
  width: 14px;
  height: 14px;
  fill: #ffb800;
}

.stars.small svg.star {
  width: 12px;
  height: 12px;
  fill: #ffb800;
}

.rating-text {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.product-sold {
  font-size: 12px;
  color: #777;
}

/* ===== LOGÍSTICA ===== */
.logistics {
  background: #fff;
  padding: 12px 14px 16px;
}

.logistics-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.logistics-info {
  flex: 1;
}

.logistics-date {
  font-size: 13px;
  color: #222;
}

.logistics-shipping {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.shipping-original {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.shipping-free {
  font-size: 12px;
  color: #059669;
  font-weight: 700;
}

.logistics-policies {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f2f2f2;
  flex-wrap: wrap;
}

.policy-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #059669;
}

.section-divider {
  height: 8px;
  background: #f1f2f4;
}

/* ===== AVALIAÇÕES ===== */
.reviews-section {
  background: #fff;
  padding: 16px 14px;
}

.reviews-header {
  margin-bottom: 14px;
}

.reviews-title {
  font-size: 15px;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}

.reviews-summary {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.reviews-score {
  font-size: 26px;
  font-weight: 900;
  color: #111;
}

.reviews-out-of {
  font-size: 13px;
  color: #777;
  margin-right: 6px;
}

.review-card {
  padding: 14px 0;
  border-bottom: 1px solid #f2f2f2;
}
.review-card:last-child { border-bottom: none; }

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-avatar-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
  flex-shrink: 0;
}

.review-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-avatar-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #FE2C55;
  font-weight: 800;
  font-size: 14px;
}

.review-user-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-author {
  font-size: 13px;
  font-weight: 700;
  color: #222;
}

.review-time {
  font-size: 11px;
  color: #999;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 6px;
}

.review-stars svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.review-text {
  font-size: 13px;
  color: #333;
  line-height: 1.45;
}

.review-photo-box {
  margin-top: 10px;
  max-width: 160px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
}

.review-photo-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== CARD DO VENDEDOR ===== */
.store-card {
  background: #fff;
  padding: 16px 14px;
}

.store-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111 0%, #333 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.store-info {
  flex: 1;
}

.store-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.store-products {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

.store-follow-btn {
  padding: 6px 16px;
  border: 1.5px solid #FE2C55;
  border-radius: 20px;
  color: #FE2C55;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
}

.store-description {
  margin-top: 12px;
}

.store-description p {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: #fff;
  padding: 10px 14px 28px;
}

.accordion {
  border-bottom: 1px solid #f0f0f0;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.accordion-icon {
  transition: transform 0.25s ease;
  color: #999;
}

.accordion.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion.open .accordion-content {
  max-height: 220px;
}

.accordion-content a {
  display: block;
  padding: 6px 0;
  font-size: 12px;
  color: #666;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 22px;
}

.footer-badge {
  font-size: 12px;
  font-weight: 700;
  color: #444;
}

.footer-apps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.app-badge-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.app-badge-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-copyright {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  margin-top: 20px;
}

/* ===== BOTTOM BAR (LANDING PAGE) ===== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-top: 1px solid #eaeaea;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  gap: 8px;
  z-index: 95;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}

.bottom-bar-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  color: #555;
  flex-shrink: 0;
}

.bottom-bar-icon span {
  font-size: 10px;
  font-weight: 600;
}

.bottom-bar-btn {
  padding: 12px 8px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.bottom-bar-btn:active {
  opacity: 0.9;
}

.bottom-bar-btn.secondary {
  flex: 0.9;
  background: #f4f4f4;
  color: #222;
}

.bottom-bar-btn.primary {
  flex: 1.3;
  background: #FE2C55;
  color: #fff;
}

/* ===== DRAWER MODAL ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 205;
  padding: 12px 16px 20px;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-y: auto;
  box-shadow: 0 -4px 25px rgba(0,0,0,0.15);
}

.drawer.open {
  transform: translateX(-50%) translateY(0);
}

.drawer-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 0 auto 10px;
}

.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

/* Header do Drawer */
.drawer-product-header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f2f2f2;
}

.drawer-thumb-box {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f8f8;
  border: 1px solid #eee;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drawer-product-details {
  flex: 1;
}

.drawer-badge-row {
  margin-bottom: 4px;
}

.drawer-badge-discount {
  background: #FE2C55;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.drawer-price-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.drawer-price-currency {
  font-size: 15px;
  font-weight: 800;
  color: #111;
}

.drawer-price-value {
  font-size: 26px;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.5px;
}

.drawer-original-row {
  margin-top: 1px;
}

.drawer-price-orig {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.drawer-pix-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  padding: 3px 6px;
  border-radius: 4px;
  margin-top: 5px;
}

.drawer-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #444;
  margin: 14px 0 8px;
  letter-spacing: 0.3px;
}

/* Modelos Slider no Drawer */
.drawer-models {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}
.drawer-models::-webkit-scrollbar { display: none; }

.drawer-model-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  width: 66px;
}

.drawer-model-img {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  padding: 2px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.drawer-model-card.selected .drawer-model-img {
  border-color: #FE2C55;
  background: #fff;
  box-shadow: 0 0 0 1px #FE2C55;
}

.drawer-model-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drawer-model-label {
  font-size: 10px;
  color: #777;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.drawer-model-card.selected .drawer-model-label {
  color: #FE2C55;
  font-weight: 700;
}

/* Banners de Urgência no Drawer */
.drawer-flash-banner {
  background: #FE2C55;
  color: #fff;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.flash-tag-right {
  margin-left: auto;
  background: rgba(255,255,255,0.25);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.drawer-stock-alert {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  color: #c2410c;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  display: flex;
  align-items: center;
}

/* Tamanhos com Mini Ícones */
.drawer-sizes {
  margin-top: 14px;
}

.drawer-sizes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.drawer-sizes-label {
  font-size: 13px;
  font-weight: 800;
  color: #222;
}

.size-guide-link {
  font-size: 12px;
  color: #FE2C55;
  font-weight: 600;
}

.size-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.size-option-card {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  background: #fff;
  transition: all 0.15s ease;
}

.size-option-card.selected {
  border-color: #FE2C55;
  background: #fff5f7;
}

.size-mini-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.size-card-label {
  font-size: 12px;
  font-weight: 800;
  color: #222;
}

.size-option-card.selected .size-card-label {
  color: #FE2C55;
}

/* Botões Drawer */
.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.drawer-btn {
  width: 100%;
  padding: 13px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s;
}

.drawer-btn:active {
  transform: scale(0.98);
}

.drawer-btn.primary {
  background: #FE2C55;
  color: #fff;
}

.drawer-btn.secondary {
  background: #ffecf0;
  color: #FE2C55;
}

/* ==========================================================================
   CHECKOUT PAGE ESTILOS
   ========================================================================== */

.checkout-body {
  background: #f4f5f7;
  padding-bottom: 120px;
}

.checkout-navbar {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 80;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #eaeaea;
}

.checkout-back-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  margin-right: 8px;
}

.checkout-navbar-title h1 {
  font-size: 15px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.checkout-navbar-sub {
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.checkout-main-content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #ebebeb;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title-text {
  font-size: 14px;
  font-weight: 800;
  color: #222;
}

.card-header-action {
  font-size: 12px;
  font-weight: 700;
  color: #FE2C55;
}

/* Form Inputs */
.form-group-item {
  margin-bottom: 8px;
}

.nexus-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: #111;
  background: #fafafa;
  outline: none;
  transition: all 0.2s;
}

.nexus-input:focus {
  border-color: #FE2C55;
  background: #fff;
}

.form-row-2 {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.nexus-select {
  width: 100%;
  height: 44px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fafafa;
  color: #111;
  outline: none;
}

.form-checkbox-row {
  margin-bottom: 8px;
}

.nexus-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
}

.btn-confirm-address {
  width: 100%;
  padding: 12px;
  background: #FE2C55;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.cpf-card {
  padding: 12px 14px;
}

.cpf-input-wrap {
  margin-top: 4px;
}

/* Social proof star */
.checkout-star-proof {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #e11d48;
  padding: 2px 4px;
}

/* Produto Principal Card */
.product-order-card {
  padding: 12px;
}

.order-product-row {
  display: flex;
  gap: 12px;
}

.order-thumb-wrap {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f8f8;
  border: 1px solid #eee;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-info-wrap {
  flex: 1;
  min-width: 0;
}

.order-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.order-item-variant {
  display: block;
  font-size: 11px;
  color: #777;
  margin-top: 3px;
}

.order-item-tags {
  display: flex;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.tag-flash {
  font-size: 10px;
  font-weight: 700;
  color: #e11d48;
  background: #ffe4e6;
  padding: 2px 6px;
  border-radius: 4px;
}

.tag-return {
  font-size: 10px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 6px;
  border-radius: 4px;
}

.order-item-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.pricing-group {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.price-current {
  font-size: 15px;
  font-weight: 800;
  color: #FE2C55;
}

.price-original {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

.price-badge-pct {
  font-size: 10px;
  font-weight: 800;
  color: #FE2C55;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

.qty-btn {
  width: 26px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #444;
}

.qty-val {
  width: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #111;
}

/* Resumo Financeiro */
.summary-card {
  padding: 14px;
}

.summary-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  margin-bottom: 10px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.summary-line.discount-line {
  color: #e11d48;
}

.summary-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}

.summary-total-label {
  font-size: 15px;
  font-weight: 900;
  color: #111;
}

.summary-total-price {
  font-size: 18px;
  font-weight: 900;
  color: #111;
}

/* Acessórios com Desconto Exclusivo (Order bumps horizontal) */
.accessories-section {
  background: #fff;
  border-radius: 12px;
  padding: 14px 12px;
  border: 1px solid #ebebeb;
}

.accessories-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.accessories-section-header .gift-icon {
  font-size: 16px;
}

.accessories-title {
  font-size: 14px;
  font-weight: 800;
  color: #111;
}

.accessories-scroll-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.accessory-bump-card {
  width: 140px;
  flex-shrink: 0;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: all 0.2s;
}

.accessory-bump-card.added {
  border-color: #FE2C55;
  background: #fff9fa;
}

.bump-img-box {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.bump-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bump-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bump-name {
  font-size: 11px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bump-orig-price {
  font-size: 10px;
  color: #999;
  text-decoration: line-through;
  margin-top: 4px;
}

.bump-promo-price {
  font-size: 13px;
  font-weight: 800;
  color: #FE2C55;
}

.bump-size-select-wrap {
  margin: 4px 0;
}

.bump-size-select {
  width: 100%;
  height: 26px;
  font-size: 11px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 4px;
  background: #fff;
}

.btn-toggle-accessory {
  margin-top: auto;
  padding: 6px 4px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #FE2C55;
  color: #FE2C55;
  background: #fff;
  transition: all 0.2s;
}

.accessory-bump-card.added .btn-toggle-accessory {
  background: #FE2C55;
  color: #fff;
}

.checkout-legal-notice {
  font-size: 11px;
  color: #777;
  line-height: 1.4;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f2f2f2;
}

.savings-callout {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: 600;
}

/* ===== STICKY FOOTER DO CHECKOUT ===== */
.checkout-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 10px 14px 12px;
  z-index: 100;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.06);
}

.checkout-footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}

.footer-count-savings {
  display: flex;
  flex-direction: column;
}

.footer-item-count {
  font-size: 12px;
  color: #555;
  font-weight: 600;
}

.footer-savings-badge {
  font-size: 11px;
  color: #FE2C55;
  font-weight: 700;
}

.footer-final-price {
  font-size: 20px;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.5px;
}

.btn-checkout-submit {
  width: 100%;
  padding: 14px;
  background: #FE2C55;
  color: #fff;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: transform 0.1s, opacity 0.2s;
}

.btn-checkout-submit:active {
  transform: scale(0.98);
}

.checkout-coupon-timer {
  text-align: center;
  font-size: 11px;
  color: #888;
  margin-top: 6px;
}

.checkout-coupon-timer strong {
  color: #FE2C55;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ===== TOAST DE COMPRA EM TEMPO REAL ===== */
.purchase-toast {
  position: fixed;
  bottom: 82px;
  left: 12px;
  z-index: 90;
  max-width: 250px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.purchase-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-avatar span {
  color: #FE2C55;
  font-weight: 800;
  font-size: 13px;
}

.toast-content p {
  margin: 0;
  line-height: 1.25;
}

.toast-buyer {
  font-size: 11px;
  font-weight: 700;
  color: #222;
}

.toast-product {
  font-size: 11px;
  color: #FE2C55;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.toast-time {
  font-size: 10px;
  color: #999;
}

/* ==========================================================================
   PIX PAYMENT MODAL & SCREEN
   ========================================================================== */
.pix-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (min-width: 600px) {
  .pix-modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.pix-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.pix-modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  .pix-modal-card {
    border-radius: 20px;
    transform: translateY(20px);
  }
}

.pix-modal-overlay.open .pix-modal-card {
  transform: translateY(0);
}

.pix-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f2;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.pix-header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #111;
}

.pix-icon-svg {
  width: 22px;
  height: 22px;
  fill: #00B493;
}

.pix-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #666;
  transition: background 0.15s;
}

.pix-modal-close:hover {
  background: #e8e8ea;
}

.pix-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pix-amount-badge {
  background: #f0fdf9;
  border: 1px solid #ccfbf1;
  border-radius: 12px;
  padding: 10px 20px;
  margin-bottom: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pix-amount-label {
  font-size: 13px;
  color: #0f766e;
  font-weight: 600;
}

.pix-amount-value {
  font-size: 22px;
  font-weight: 900;
  color: #0d9488;
}

.pix-qr-wrap {
  width: 200px;
  height: 200px;
  background: #ffffff;
  padding: 10px;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pix-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.pix-timer-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  color: #e11d48;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  width: 100%;
}

.pix-code-box {
  width: 100%;
  text-align: left;
  margin-bottom: 16px;
}

.pix-code-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 6px;
}

.pix-code-input-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pix-code-input {
  width: 100%;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 12px;
  font-family: monospace;
  color: #374151;
  text-overflow: ellipsis;
  outline: none;
}

.btn-copy-pix {
  width: 100%;
  padding: 14px;
  background: #00B493;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 180, 147, 0.28);
  transition: all 0.2s ease;
}

.btn-copy-pix:active {
  transform: scale(0.98);
}

.btn-copy-pix.copied {
  background: #10b981;
}

.pix-status-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 18px;
  padding: 6px 12px;
  background: #f3f4f6;
  border-radius: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseAnimation 1.5s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pix-steps {
  width: 100%;
  background: #f9fafb;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
}

.pix-steps h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.pix-steps ol {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.6;
}

.pix-steps li {
  margin-bottom: 4px;
}

