/* Lx Shop - estilos do tamanho e do pedido (carrinho) */
.cart-controls { display: flex; flex-direction: column; gap: 0.5rem; }
.size-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.3px; }
.size-select {
  -webkit-appearance: none; appearance: none; width: 100%; min-height: 44px;
  padding: 0.6rem 2rem 0.6rem 0.8rem; border-radius: 8px; font-size: 0.95rem;
  background: #1a1a1a url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23a0a0a0' stroke-width='2'/></svg>") no-repeat right 0.8rem center;
  color: var(--text-main); border: 1.5px solid var(--card-border); outline: none;
}
.size-select:focus { border-color: var(--primary); }
.size-select.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }
.size-select.shake { animation: lxShake 0.32s ease; }
@keyframes lxShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.btn-add-cart {
  width: 100%; min-height: 46px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--text-main); color: var(--bg-color); font-weight: 800; font-size: 0.9rem;
  text-transform: uppercase; transition: background 0.2s ease, transform 0.1s ease;
}
.btn-add-cart:active { transform: scale(0.98); }
.cart-controls.ready .btn-add-cart { background: var(--primary); }
.btn-add-cart.added { background: #16a34a !important; color: #fff; }
.cart-note { text-align: center; font-size: 0.72rem; color: var(--text-muted); opacity: 0.8; line-height: 1.35; }

.cart-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 900; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.2rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--primary); color: #0d0d0d; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.cart-fab.hidden { display: none; }
.cart-fab-count { background: #0d0d0d; color: var(--primary); border-radius: 999px; min-width: 24px; padding: 0 7px; text-align: center; font-size: 0.85rem; line-height: 24px; }

.cart-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-panel {
  position: fixed; z-index: 1001; right: 0; bottom: 0; top: 0; width: min(420px, 100%);
  background: #121212; border-left: 1px solid var(--card-border); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.25s ease;
}
.cart-panel.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--card-border); }
.cart-head h3 { font-size: 1.15rem; }
.cart-close, .cart-remove { background: none; border: 0; color: var(--text-muted); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.5rem; }
.cart-list { flex: 1; overflow-y: auto; padding: 0.5rem 1.2rem; }
.cart-empty { color: var(--text-muted); padding: 2rem 0; text-align: center; }
.cart-row { display: flex; gap: 0.8rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--card-border); }
.cart-row-img { width: 62px; height: 62px; border-radius: 8px; object-fit: cover; background: #1f1f1f; flex-shrink: 0; }
.cart-row-info { flex: 1; min-width: 0; }
.cart-row-name { font-size: 0.9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-row-meta { font-size: 0.8rem; color: var(--text-muted); margin: 0.15rem 0 0.4rem; }
.cart-qty { display: inline-flex; align-items: center; gap: 0.6rem; }
.cart-qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--card-border); background: #1a1a1a; color: var(--text-main); cursor: pointer; font-size: 1rem; }
.cart-foot { padding: 1rem 1.2rem 1.2rem; border-top: 1px solid var(--card-border); display: flex; flex-direction: column; gap: 0.7rem; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.cart-send {
  display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 8px;
  background: #16a34a; color: #fff; font-weight: 800; text-decoration: none; text-transform: uppercase; font-size: 0.9rem;
  border: 0; width: 100%; cursor: pointer; font-family: inherit;
}
.cart-clear { background: none; border: 0; color: var(--text-muted); font-size: 0.8rem; text-decoration: underline; cursor: pointer; }

.cart-toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 1100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #1f1f1f; color: var(--text-main); border: 1px solid var(--card-border); border-radius: 999px;
  padding: 0.6rem 0.6rem 0.6rem 1.1rem; font-size: 0.9rem; display: flex; align-items: center; gap: 0.8rem;
  transition: opacity 0.2s, transform 0.2s; white-space: nowrap;
}
.cart-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cart-toast-btn { border: 0; border-radius: 999px; padding: 0.4rem 0.9rem; background: var(--primary); color: #0d0d0d; font-weight: 800; cursor: pointer; }

/* Rodapé informativo */
.footer-info { max-width: 1000px; margin: 1.8rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--card-border);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.footer-info-col h4 { font-size: 0.95rem; margin-bottom: 0.6rem; color: var(--text-main); }
.footer-info-col ul, .footer-info-col ol { margin: 0; padding-left: 1.1rem; }
.footer-info-col li { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.35rem; }
.footer-info-col a { color: var(--primary); text-decoration: none; }
.footer-info-link { display: inline-block; margin-top: 0.4rem; font-size: 0.85rem; }

/* Loja sem barra lateral: menu do telemóvel, marca e título */
.shop-tools { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.shop-clear { color: var(--primary); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.shop-clear.hidden { display: none; }
.brand-select {
  -webkit-appearance: none; appearance: none; min-height: 40px; padding: 0.45rem 2rem 0.45rem 0.9rem; border-radius: 8px;
  font-size: 0.9rem; color: var(--text-main); border: 1.5px solid var(--card-border); outline: none; cursor: pointer;
  background: #1a1a1a url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23a0a0a0' stroke-width='2'/></svg>") no-repeat right 0.7rem center;
}
.brand-select:focus { border-color: var(--primary); }
.mobile-menu {
  position: fixed; left: 0; right: 0; top: 64px; z-index: 950; display: none; flex-direction: column;
  background: rgba(13, 13, 13, 0.98); border-bottom: 1px solid var(--card-border); padding: 0.5rem 1.2rem 1rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text-main); text-decoration: none; padding: 0.85rem 0.2rem; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--card-border); }
.mobile-menu a.mobile-menu-wa { margin-top: 0.8rem; border: 0; text-align: center; border-radius: 8px; background: var(--primary); color: #0d0d0d; font-weight: 800; }
@media (min-width: 901px) { .mobile-menu, .mobile-menu.open { display: none; } }
/* o menu de cima desaparece abaixo de 900px, por isso o botão ☰ tem de aparecer também aí */
@media (max-width: 900px) { .header-hamburger-btn { display: flex; } }

/* Cartões: ligação para a página do produto */
.product-title-link { color: inherit; text-decoration: none; }
.product-title-link:hover { color: var(--primary); }
.card-more { display: inline-block; margin: 0 0 0.9rem; font-size: 0.85rem; color: var(--primary); text-decoration: none; font-weight: 600; }

/* Página de produto */
.pp-wrap { max-width: 1100px; margin: 0 auto; padding: 1.2rem 1.2rem 3rem; }
.pp-back { display: inline-block; margin-bottom: 1rem; color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.pp-back:hover { color: var(--primary); }
.pp-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 900px) { .pp-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; } .pp-gallery { position: sticky; top: 90px; } }
.pp-main { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #111; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); }
.pp-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.pp-track::-webkit-scrollbar { display: none; }
.pp-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; cursor: zoom-in; }
.pp-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; backdrop-filter: blur(4px); }
.pp-arrow:hover { background: var(--primary); color: #000; }
.pp-prev { left: 10px; } .pp-next { right: 10px; }
.pp-counter { position: absolute; right: 10px; bottom: 10px; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.8rem; }
.pp-thumbs { display: flex; gap: 0.5rem; margin-top: 0.7rem; overflow-x: auto; padding-bottom: 0.3rem; }
.pp-thumb { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #111; cursor: pointer; opacity: 0.65; }
.pp-thumb.active { border-color: var(--primary); opacity: 1; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-title { font-size: 1.6rem; line-height: 1.25; margin: 0.4rem 0 0.5rem; }
.pp-price { font-size: 1.7rem; font-weight: 800; margin: 0; }
.pp-ref { font-size: 0.78rem; color: var(--text-muted); opacity: 0.8; margin: 0.2rem 0 1.2rem; }
.pp-info .cart-controls { max-width: 420px; }
.pp-trust { list-style: none; margin: 1.3rem 0; padding: 1rem 1.1rem; border: 1px solid var(--card-border); border-radius: 10px; background: var(--card-bg); }
.pp-trust li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; line-height: 1.45; }
.pp-trust li:last-child { margin-bottom: 0; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.6rem 1.1rem; border-radius: 8px; border: 1.5px solid var(--card-border); background: transparent; color: var(--text-main); font-weight: 700; font-size: 0.9rem; text-decoration: none; cursor: pointer; }
.pp-btn:hover { border-color: var(--primary); color: var(--primary); }
.pp-btn-primary { background: var(--primary); color: #0d0d0d; border-color: var(--primary); }
.pp-btn-primary:hover { color: #0d0d0d; background: var(--primary-hover); }
.pp-related-title { font-size: 1.3rem; margin: 3rem 0 1rem; }
.pp-missing { text-align: center; padding: 4rem 1rem; }
.pp-missing p { color: var(--text-muted); margin: 0.8rem 0 1.5rem; }

/* Tamanhos em quadrados (página do produto) */
.size-select-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.size-picked { color: var(--primary); font-weight: 700; }
.size-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; border-radius: 10px; }
.size-chip {
  min-height: 46px; padding: 0.3rem; border-radius: 8px; cursor: pointer; font-size: 0.95rem; font-weight: 700;
  background: #1a1a1a; color: var(--text-main); border: 1.5px solid var(--card-border);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.size-chip:hover { border-color: rgba(255, 255, 255, 0.4); }
.size-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.size-chip.selected { background: var(--primary); color: #0d0d0d; border-color: var(--primary); }
.size-chips.error { outline: 2px solid #ef4444; outline-offset: 4px; }
.size-chips.shake { animation: lxShake 0.32s ease; }
@media (min-width: 900px) { .size-chips { max-width: 420px; } }

/* ---- Pedido guiado (v8) ---- */
.cart-head { gap: 0.4rem; }
.cart-head h3 { flex: 1; }
.cart-back { background: none; border: 0; color: var(--text-main); font-size: 1.4rem; cursor: pointer; padding: 0.2rem 0.5rem; margin-left: -0.5rem; }
.cart-ship { color: #4ade80; font-size: 0.85rem; font-weight: 600; text-align: right; }
.cart-send:disabled { opacity: 0.5; cursor: not-allowed; }
.cart-send.ck-open { margin-top: 0.4rem; }
.ck-form, .ck-done { display: flex; flex-direction: column; gap: 0.9rem; }
.ck-summary { font-size: 0.9rem; color: var(--text-muted); padding-bottom: 0.7rem; border-bottom: 1px solid var(--card-border); }
.ck-summary strong { color: var(--text-main); }
.ck-label { font-size: 0.85rem; font-weight: 700; }
.ck-methods { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.ck-method { text-align: left; background: #1a1a1a; color: var(--text-main); border: 1.5px solid var(--card-border); border-radius: 8px; padding: 0.7rem 0.8rem; cursor: pointer; display: flex; flex-direction: column; gap: 0.2rem; font-family: inherit; }
.ck-method strong { font-size: 0.95rem; }
.ck-method span { font-size: 0.78rem; color: var(--text-muted); line-height: 1.35; }
.ck-method.selected { border-color: var(--primary); background: rgba(255,255,255,0.04); }
.ck-field { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; min-width: 0; }
.ck-field label { font-size: 0.82rem; font-weight: 600; }
.ck-opt { font-weight: 400; color: var(--text-muted); }
.ck-field input, .ck-field textarea {
  width: 100%; box-sizing: border-box; padding: 0.7rem 0.75rem; background: #1a1a1a; color: var(--text-main);
  border: 1.5px solid var(--card-border); border-radius: 8px; font-size: 16px; font-family: inherit; outline: none;
}
.ck-field textarea { resize: vertical; }
.ck-field input:focus, .ck-field textarea:focus { border-color: var(--primary); }
.ck-field.has-error input { border-color: #f87171; }
.ck-err { color: #f87171; font-size: 0.78rem; }
.ck-row { display: flex; gap: 0.6rem; }
.ck-info { font-size: 0.8rem; color: var(--text-muted); background: #1a1a1a; border-radius: 8px; padding: 0.7rem 0.8rem; line-height: 1.45; }
.ck-check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; cursor: pointer; }
.ck-check input { margin-top: 0.15rem; accent-color: var(--primary); }
.ck-done { text-align: center; align-items: center; padding-top: 1.5rem; }
.ck-done-icon { width: 56px; height: 56px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; }
