/* ═══════════════════════════════════════════════════════════════
   landing_page.css — Showcase, produtos, carrinho e modal
   Depende de: style.css (tokens)
   ═══════════════════════════════════════════════════════════════ */

/* ── Animação base ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Showcase ────────────────────────────────────────────────── */
.showcase {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 24px 32px;
}

.showcase-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-soft);
  border: 0.5px solid var(--gold-border);
  border-radius: 20px;
  padding: 4px 14px;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  animation: fadeUp 0.5s var(--ease-out) both;
}
.showcase-eyebrow-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.8;
}

.showcase-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.15;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.025em;
  animation: fadeUp 0.5s 0.08s var(--ease-out) both;
}

.showcase-sub-orange {
  font-size: 0.95rem;
  color: #f58f1b;
  font-weight: 400;
  margin-bottom: 5px;
  text-align: center;
  animation: fadeUp 0.5s 0.14s var(--ease-out) both;
}


.showcase-sub {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 22px;
  text-align: center;
  animation: fadeUp 0.5s 0.14s var(--ease-out) both;
}

/* ── Carrossel ───────────────────────────────────────────────── */
.carousel-scene {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 300px;
  perspective: 1600px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.6s 0.22s var(--ease-out) both;
}

.carousel-track {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.carousel-card {
  position: absolute;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  border: 1px solid var(--border);
  will-change: transform, opacity;
  transition:
    transform   0.52s var(--ease-out),
    opacity     0.52s var(--ease-out),
    width       0.52s var(--ease-out),
    height      0.52s var(--ease-out),
    box-shadow  0.52s var(--ease-out);
}
.carousel-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 52px 18px 18px;
  background: linear-gradient(to top, rgba(0,24,50,0.82) 0%, transparent 100%);
  border-radius: 0 0 22px 22px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s;
}
.card-name {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.card-cta svg { transition: transform 0.2s; }
.carousel-card:hover .card-cta svg { transform: translateX(3px); }

/* Posições do carrossel */
.carousel-card[data-pos="-2"] {
  width: 140px; height: 190px;
  transform: translateX(-490px) translateZ(-60px) rotateY(14deg);
  opacity: 0.22; z-index: 1;
}
.carousel-card[data-pos="-1"] {
  width: 240px; height: 270px;
  transform: translateX(-258px) translateZ(0) rotateY(0);
  opacity: 1; z-index: 4;
  box-shadow: 0 8px 32px rgba(0,40,80,0.14), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,77,128,0.10);
}
.carousel-card[data-pos="0"] {
  width: 256px; height: 288px;
  transform: translateX(0) translateZ(20px) rotateY(0);
  opacity: 1; z-index: 5;
  box-shadow: 0 20px 56px rgba(0,40,80,0.22), 0 4px 14px rgba(0,0,0,0.10);
  border: 1.5px solid rgba(0,77,128,0.18);
}
.carousel-card[data-pos="1"] {
  width: 240px; height: 270px;
  transform: translateX(258px) translateZ(0) rotateY(0);
  opacity: 1; z-index: 4;
  box-shadow: 0 8px 32px rgba(0,40,80,0.14), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,77,128,0.10);
}
.carousel-card[data-pos="2"] {
  width: 140px; height: 190px;
  transform: translateX(490px) translateZ(-60px) rotateY(-14deg);
  opacity: 0.22; z-index: 1;
}
.carousel-card[data-pos="-1"] .card-overlay,
.carousel-card[data-pos="0"]  .card-overlay,
.carousel-card[data-pos="1"]  .card-overlay { opacity: 1; transform: translateY(0); }

.carousel-card[data-pos="-1"]:hover,
.carousel-card[data-pos="1"]:hover  { opacity: 0.88; cursor: pointer; }
.carousel-card[data-pos="-2"]:hover,
.carousel-card[data-pos="2"]:hover  { opacity: 0.36; cursor: pointer; }
.carousel-card:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid rgba(0,77,128,0.14);
  color: var(--navy);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09);
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.carousel-arrow:hover {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 6px 22px var(--navy-glow);
  transform: translateY(-50%) scale(1.06);
}
.carousel-arrow:active { transform: translateY(-50%) scale(0.95); }
.carousel-arrow.left  { left:  -24px; }
.carousel-arrow.right { right: -24px; }

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 38px;
  animation: fadeUp 0.5s 0.30s var(--ease-out) both;
}
.dot {
  height: 6px; width: 6px;
  border-radius: 3px;
  background: rgba(0,77,128,0.22);
  cursor: pointer;
  border: none; padding: 0;
  transition: width 0.38s var(--ease-out), background 0.28s;
}
.dot.active { width: 32px; background: var(--navy); }

/* ── Toolbar (busca + filtro) ────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 600px;
  width: 100%;
  margin-bottom: 2rem;
  flex-wrap: nowrap;
}

#search-container { flex: 1; display: flex; }

#search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: border-color 0.25s, box-shadow 0.25s;
  color: var(--text);
  font-family: inherit;
}
#search-input::placeholder { color: var(--muted); }
#search-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,77,128,0.12);
}

.filter-wrapper { position: relative; flex-shrink: 0; }

.filter-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 0.8rem 1rem 0.8rem 1.1rem;
  border-radius: 30px;
  border: 1.5px solid var(--navy);
  background: var(--surface);
  color: var(--navy);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  min-width: 120px;
  justify-content: space-between;
  transition: background 0.2s, box-shadow 0.2s;
}
.filter-btn:hover { background: rgba(0,77,128,0.06); }
.filter-btn.open  { box-shadow: 0 0 0 3px rgba(0,77,128,0.12); }
.filter-btn.active { background: var(--navy); color: #fff; }

.filter-arrow {
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  border-color: var(--navy) transparent transparent transparent;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.filter-btn.open   .filter-arrow { transform: rotate(180deg); }
.filter-btn.active .filter-arrow { border-color: #fff transparent transparent transparent; }

.filter-menu {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  min-width: 100%;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  opacity: 0; transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 100;
}
.filter-menu.open { opacity: 1; transform: translateY(0); pointer-events: all; }

.filter-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.875rem; cursor: pointer;
  color: var(--text);
  transition: background 0.12s;
  white-space: nowrap;
  font-family: inherit;
}
.filter-opt:hover { background: rgba(0,0,0,0.04); }
.filter-opt.selected { color: var(--navy); font-weight: 600; }
.filter-check { width: 16px; height: 16px; flex-shrink: 0; opacity: 0; }
.filter-opt.selected .filter-check { opacity: 1; }
.filter-check svg { width: 16px; height: 16px; }

.no-results-message {
  font-size: 1.1rem;
  color: var(--muted);
  text-align: center;
  padding: 4rem 2rem;
  width: 100%;
}

/* ── Seção de produtos + carrinho ───────────────────────────── */
#shopping-section {
  display: flex;
  flex-wrap: nowrap;
  padding: 3rem 2rem;
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  align-items: flex-start;
}

#products-column { flex: 3; min-width: 320px; }
#products-section { width: 100%; }

.category-container { margin-bottom: 3rem; }

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-dark);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  text-transform: capitalize;
  letter-spacing: -0.01em;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── Product Card ────────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0,53,96,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
  border: 0.5px solid var(--border);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,53,96,0.13);
}
.product-card.selected-in-modal {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 12px 32px rgba(0,0,0,0.1);
}

.product-img-wrapper { position: relative; overflow: hidden; }

.product-card img,
.product-img-wrapper img {
  width: 100%; height: 320px;
  object-fit: cover;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer; display: block;
  transition: transform 0.4s var(--ease-out);
}
.product-card:hover img,
.product-card:hover .product-img-wrapper img { transform: scale(1.03); }

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px;
}

.product-info {
  padding: 1rem 1.25rem 1.25rem;
  flex-grow: 1;
  display: flex; flex-direction: column; gap: 0;
}
.product-info h3 {
  font-size: 1.2rem; margin-bottom: 0.5rem;
  color: var(--navy-dark); letter-spacing: -0.01em;
}
.product-attrs {
  font-size: 0.78rem; color: var(--muted);
  margin-bottom: 0.75rem; line-height: 1.4;
}
.product-info p {
  font-size: 0.88rem; color: #666;
  flex-grow: 1; line-height: 1.5; margin-bottom: 0.75rem;
}

.size-selector {
  display: flex; gap: 0.4rem;
  margin-bottom: 0.75rem; flex-wrap: wrap;
}
.size-selector button {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  background: #fff; border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 600; font-size: 0.8rem;
  color: var(--text); transition: border-color 0.18s, color 0.18s;
  min-width: 40px; text-align: center;
}
.size-selector button:hover { border-color: var(--navy); color: var(--navy); }
.size-selector button.selected {
  background: var(--navy-dark); color: #fff; border-color: var(--navy-dark);
}

.color-selector {
  display: flex; gap: 0.4rem;
  margin-bottom: 0.75rem; align-items: center; flex-wrap: wrap;
}
.color-btn {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 600; font-size: 0.8rem;
  border: 1.5px solid var(--border);
  transition: border 0.18s, box-shadow 0.18s, transform 0.15s;
}
.color-btn:hover { transform: translateY(-1px); }
.color-btn.selected {
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 2px rgba(254,174,0,0.7);
}

.medidas-btn {
  padding: 0.45rem 1rem; margin-left: 0.2rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gold-border);
  background: var(--gold-soft); color: var(--navy);
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border 0.2s, color 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.medidas-btn:hover, .medidas-btn:focus {
  background: var(--gold); color: var(--navy-dark);
  border-color: var(--gold); transform: translateY(-1px);
}

.product-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: auto; padding-top: 0.75rem;
  border-top: 0.5px solid var(--border); gap: 0.5rem;
  flex-wrap: wrap;
}

.product-price {
  font-size: 1.4rem; font-weight: 700;
  color: var(--navy-dark); white-space: nowrap; margin: 5px 0 10px;
}
.product-price .original-price {
  text-decoration: line-through; color: #bbb;
  font-size: 0.85rem; font-weight: 400;
  display: block; line-height: 1; margin-bottom: 2px;
}

.add-to-cart-btn {
  background: var(--navy); color: var(--surface);
  border: none; padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 600; font-size: 0.88rem;
  transition: background 0.22s, transform 0.15s;
  flex-shrink: 0; font-family: inherit;
  width: 100%;
}
.add-to-cart-btn:hover:not(:disabled) {
  background: var(--navy-dark); transform: translateY(-1px);
}
.add-to-cart-btn:active:not(:disabled) { transform: translateY(0); }
.add-to-cart-btn:disabled {
  background: #dde1e8; cursor: not-allowed; color: var(--muted);
}

/* ── Loading spinner (produtos) ──────────────────────────────── */
.products-loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px; gap: 16px;
  color: var(--muted); font-size: 0.9rem;
}
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Carrinho ────────────────────────────────────────────────── */
#cart-section {
  flex: 1; min-width: 300px;
  background: var(--surface);
  padding: 1.5rem; margin-top: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,53,96,0.09);
  border: 0.5px solid var(--border);
  align-self: flex-start;
  position: sticky; top: 90px;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 110px);
}

#cart-section h2 {
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: 1.2rem; font-weight: 700;
  color: var(--navy-dark); margin-bottom: 1rem;
  border-bottom: 0.5px solid var(--border);
  padding-bottom: 1rem; flex-shrink: 0;
}
.cart-header-left { display: flex; align-items: center; gap: 0.6rem; }
#cart-section h2 svg { width: 22px; height: 22px; fill: var(--navy); flex-shrink: 0; }

.cart-count-badge {
  background: var(--gold); color: var(--navy-dark);
  font-size: 0.7rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  min-width: 20px; text-align: center; display: none;
}
.cart-count-badge.visible { display: inline-block; }

#cart-items {
  max-height: 380px; overflow-y: auto;
  min-height: 50px; flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
#cart-items::-webkit-scrollbar { width: 4px; }
#cart-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.cart-empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem 1rem; text-align: center; gap: 0.5rem;
}
.cart-empty-icon {
  width: 48px; height: 48px;
  background: var(--bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.25rem;
}
.cart-empty-icon svg { width: 22px; height: 22px; fill: var(--muted); opacity: 0.6; }
.cart-empty-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.cart-empty-sub   { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

.cart-item {
  display: flex; justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 0.5px solid var(--border);
  gap: 0.5rem;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex-grow: 1; margin-right: 0.5rem; }
.cart-item-info span { display: block; }
.cart-item-name { font-size: 0.88rem; font-weight: 600; color: var(--navy-dark); margin-bottom: 2px; }
.cart-item-info .item-price { font-size: 0.8rem; color: var(--muted); }
.cart-item-controls { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.cart-item-actions  { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }

.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  line-height: 1; padding: 0;
}
.qty-btn:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.qty-value { min-width: 18px; text-align: center; font-size: 0.88rem; font-weight: 600; color: var(--text); }

#cart-summary {
  margin-top: auto; padding-top: 1rem;
  border-top: 0.5px solid var(--border); flex-shrink: 0;
}
#cart-summary p {
  display: flex; justify-content: space-between;
  font-size: 1rem; font-weight: 700;
  color: var(--navy-dark); margin-bottom: 1rem;
}

#checkout-button {
  width: 100%; padding: 0.9rem;
  background: var(--navy); color: white;
  border: none; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  font-family: inherit;
  transition: background 0.22s, transform 0.15s;
}
#checkout-button:hover:not(:disabled) { background: var(--navy-dark); transform: translateY(-1px); }
#checkout-button:active:not(:disabled) { transform: translateY(0); }
#checkout-button:disabled { background: #dde1e8; cursor: not-allowed; color: var(--muted); }

/* ── Modal de checkout (landing) ─────────────────────────────── */
.checkout-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,20,50,0.55);
  backdrop-filter: blur(3px);
  z-index: 900;
}
.checkout-modal-overlay.open { display: block; }

#checkout-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: calc(100% - 2rem);
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,30,70,0.22);
  border: 0.5px solid var(--border);
}
#checkout-modal.open { display: flex; flex-direction: column; }

.checkout-modal-inner {
  position: relative;
  padding: 2rem 2rem 2.5rem;
}

.modal-close-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}
.modal-close-btn:hover { background: var(--bg); border-color: var(--navy); }

/* Steps */
.modal-steps {
  display: flex; justify-content: center;
  gap: 8px; margin-bottom: 1.5rem; margin-top: 0.5rem;
}
.modal-step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0,77,128,0.15);
  transition: background 0.25s, width 0.3s;
}
.modal-step-dot.active { background: var(--navy); width: 24px; border-radius: 4px; }
.modal-step-dot.done   { background: var(--gold); }
.modal-step-line { width: 40px; height: 2px; background: var(--border); margin: 0 4px; }

/* Conteúdo dos steps */
.modal-step-title {
  font-size: 1.3rem; font-weight: 700;
  color: var(--navy-dark); margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.modal-step-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.25rem; }
.modal-step-sub strong { color: var(--navy-dark); }
#aviso { color: #ee850c; font-size: 0.88rem; margin-bottom: 8px; }

/* Campos */
.modal-fields { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.modal-field label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--navy-dark); margin-bottom: 0.35rem;
}
.modal-field input {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 0.93rem; background: var(--surface); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.modal-field input:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,77,128,0.1);
}

/* Resumo do pedido */
.modal-order-summary {
  background: var(--bg); border-radius: 12px;
  padding: 1rem 1.1rem; margin-bottom: 1.5rem;
  border: 0.5px solid var(--border);
}
.modal-summary-title {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 0.75rem;
}
.modal-summary-item {
  display: flex; justify-content: space-between;
  font-size: 0.88rem; color: var(--text);
  padding: 0.3rem 0;
  border-bottom: 0.5px solid var(--border);
  gap: 1rem;
}
.modal-summary-item:last-of-type { border-bottom: none; }
.modal-summary-total {
  display: flex; justify-content: space-between;
  font-size: 1rem; font-weight: 700; color: var(--navy-dark);
  padding-top: 0.6rem;
  border-top: 1px solid var(--border); margin-top: 0.4rem;
}

#aviso { color: #ee850c; font-size: 0.88rem; margin-bottom: 8px; }

/* Botão primário do modal */
.modal-btn-primary {
  width: 100%; padding: 0.9rem;
  background: var(--navy); color: #fff;
  border: none; border-radius: 10px;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}
.modal-btn-primary:hover:not(:disabled) { background: var(--navy-dark); transform: translateY(-1px); }
.modal-btn-primary:disabled { background: #dde1e8; color: var(--muted); cursor: not-allowed; }

/* Erro */
.modal-error {
  background: #fff0f0; border: 1px solid #fca5a5;
  border-radius: 8px; padding: 0.65rem 1rem;
  font-size: 0.85rem; color: #b91c1c;
  margin-bottom: 1rem;
  opacity: 0; transition: opacity 0.2s;
}
.modal-error.visible { opacity: 1; }

/* Pix */
#selper { text-align: center; font-weight: 500; margin-bottom: 2px; }

.modal-qr-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.modal-qr-img { width: 180px; height: 180px; border-radius: 12px; border: 1px solid var(--border); }

.modal-pix-copy { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.modal-pix-copy input {
  flex: 1; padding: 0.65rem 0.9rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.8rem; background: var(--bg); color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; font-family: monospace;
}
.modal-copy-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 0.65rem 1rem;
  background: var(--navy); color: #fff;
  border: none; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s; font-family: inherit;
}
.modal-copy-btn:hover { background: var(--navy-dark); }

.modal-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem; color: var(--muted); font-size: 0.8rem;
}
.modal-divider::before, .modal-divider::after {
  content: ''; flex: 1; height: 0.5px; background: var(--border);
}

/* Upload */
.modal-upload-area {
  border: 1.5px dashed var(--border);
  border-radius: 12px; padding: 1.5rem 1rem;
  text-align: center; cursor: pointer;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s, background 0.2s;
}
.modal-upload-area:hover,
.modal-upload-area.drag-over { border-color: var(--navy); background: rgba(0,77,128,0.03); }

.upload-placeholder {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.4rem;
  color: var(--muted); font-size: 0.88rem;
}
.upload-placeholder svg   { opacity: 0.5; }
.upload-placeholder small { font-size: 0.75rem; opacity: 0.7; }

.upload-preview {
  display: flex; align-items: center;
  gap: 0.6rem; justify-content: center;
  font-size: 0.88rem; color: var(--text);
}
.upload-preview.hidden, .upload-placeholder.hidden { display: none; }

.upload-remove {
  background: none; border: none; color: var(--muted);
  font-size: 1.1rem; cursor: pointer; padding: 0 4px;
  transition: color 0.15s;
}
.upload-remove:hover { color: #e53e3e; }

/* Sucesso */
.modal-step-success { text-align: center; padding-top: 1rem; }
.modal-success-icon { display: flex; justify-content: center; margin-bottom: 1rem; }
.modal-order-ref {
  font-size: 1.4rem; font-weight: 700; color: var(--navy);
  letter-spacing: 0.1em; background: var(--bg); border-radius: 10px;
  padding: 0.75rem 1.5rem; display: inline-block;
  margin: 1rem 0 1.5rem; border: 1px solid var(--border);
}
.modal-notice { font-size: 0.82rem; color: var(--navy-dark); font-style: italic; }

/* Links */
.links { color: var(--navy); text-decoration: underline; }
.links:hover { color: var(--navy-dark); }

/* Checkbox */
input[type="checkbox"] {
  width: 15px; height: 15px;
  border: 1.5px solid var(--border);
  border-radius: 5px; cursor: pointer;
}

/* ── Responsivo ──────────────────────────────────────────────── */
/* ── Responsivo ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #shopping-section {
    flex-wrap: wrap;
    flex-direction: column;
    padding: 2rem 1.5rem;
  }
  #cart-section {
    position: relative;
    top: 0;
    width: 100%;
    min-width: unset;
    margin-top: 0;
    max-height: none;
  }
}

@media (max-width: 960px) {
  .carousel-card[data-pos="-1"] {
    width: 200px; height: 230px;
    transform: translateX(-210px) translateZ(0);
  }
  .carousel-card[data-pos="0"] {
    width: 220px; height: 250px;
  }
  .carousel-card[data-pos="1"] {
    width: 200px; height: 230px;
    transform: translateX(210px) translateZ(0);
  }
  .carousel-card[data-pos="-2"] {
    transform: translateX(-390px) translateZ(-60px) rotateY(14deg);
  }
  .carousel-card[data-pos="2"] {
    transform: translateX(390px) translateZ(-60px) rotateY(-14deg);
  }
}

@media (max-width: 768px) {
  .toolbar { flex-wrap: wrap; }
  .carousel-card[data-pos="-2"],
  .carousel-card[data-pos="2"] { display: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .carousel-scene { height: 260px; }
}

@media (max-width: 520px) {
  #shopping-section { padding: 1.5rem 1rem; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .product-card img, .product-img-wrapper img { height: 200px; }
  .product-info h3 { font-size: 1rem; }
  .product-price { font-size: 1.1rem; }

  /* Carrossel menor — só card central + 1 lado */
  .carousel-scene { height: 200px; }
  .carousel-card[data-pos="-1"] {
    width: 140px; height: 175px;
    transform: translateX(-100px) translateZ(0);
    opacity: 0.6;
  }
  .carousel-card[data-pos="0"] {
    width: 160px; height: 190px;
  }
  .carousel-card[data-pos="1"] {
    width: 140px; height: 175px;
    transform: translateX(100px) translateZ(0);
    opacity: 0.6;
  }
  .carousel-arrow.left  { left:  4px; }
  .carousel-arrow.right { right: 4px; }

  #checkout-modal {
    top: auto; bottom: 0; left: 0;
    transform: none;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    width: 100%;
    max-width: 100%;
  }
  .checkout-modal-inner { padding: 1.5rem 1.25rem 2rem; }
}

@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 320x) {
  #shopping-section {
    padding: 1rem 0.75rem;
    gap: 1rem;
  }

  .carousel-scene { height: 160px; }
  .carousel-card[data-pos="-1"] {
    width: 100px; height: 140px;
    transform: translateX(-75px) translateZ(0);
    opacity: 0.6;
  }
  .carousel-card[data-pos="0"] {
    width: 130px; height: 155px;
  }
  .carousel-card[data-pos="1"] {
    width: 100px; height: 140px;
    transform: translateX(75px) translateZ(0);
    opacity: 0.6;
  }
  .carousel-arrow.left  { left:  2px; }
  .carousel-arrow.right { right: 2px; }
  .products-grid { grid-template-columns: 1fr; }
}