
/* SKINCARDS patches: badge + select */
#openCart { position: relative; }
#cartBadge{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1;
  padding: 0 6px;
  background: #20e07c;
  color: #0a1c1d;
  font-weight: 800;
  font-size: 12px;
  border: 2px solid #0a1c1d;
}
.account-panel select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #0e2425;
  color: var(--text);
  font-size: 15px;
  appearance: none;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.account-panel select:focus { border-color: var(--primary); background:#123133; }


.providers-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* evita cortes */
  background-color: #0f2a2b; /* fundo neutro */
  border-radius: 10px;
  padding: 12px;             /* respiro interno */
  transition: transform 0.2s ease, filter 0.2s ease;
}

.providers-grid .thumb {
  aspect-ratio: 1.4 / 1;     /* mantém formato retangular horizontal */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.providers-grid .thumb img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* ============================
   MODAL – ANIMAÇÕES AVANÇADAS
   ============================ */

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(15px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modalFadeOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(15px) scale(0.95); }
}

.modal-show .modal-content {
  animation: modalFadeIn 0.22s ease-out forwards;
}

.modal-hide .modal-content {
  animation: modalFadeOut 0.18s ease-in forwards;
}

/* ============================
   BOTÕES – ANIMAÇÃO PRESS
   ============================ */

.login-btn {
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
}

.login-btn.press {
  transform: scale(0.96) !important;
  box-shadow: 0 0 4px rgba(0,0,0,.4) !important;
}

/* Google hover “flutuante” */
.login-btn--google:hover {
  box-shadow: 0 0 16px rgba(0,255,132,0.9);
}

/* Apple hover */
.login-btn--apple:hover {
  background: #162f2f;
  color: #fff;
}

/* ============================
   INPUT – animação de foco neon
   ============================ */

@keyframes inputGlow {
  from { box-shadow: 0 0 0px rgba(0,255,132,0); }
  to   { box-shadow: 0 0 8px rgba(0,255,132,0.45); }
}

#emailLoginForm input:focus {
  animation: inputGlow 0.25s ease-out forwards;
}

/* ============================
   SHAKE – erro no login
   ============================ */

@keyframes shakeAnim {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shakeAnim 0.35s ease;
}

/* ============================
   MOBILE – modal estilo app
   ============================ */

@media (max-width: 500px) {
  #loginModal .modal-content {
    width: 96vw;
    height: auto;
    padding: 22px 20px;
    border-radius: 20px;
    margin-top: 10vh;
  }

  .login-btn {
    padding: 12px;
    border-radius: 100px;
  }

  #emailLoginForm input {
    padding: 12px;
    font-size: 16px;
  }
}


/* ====== LOADER GLOBAL DA PÁGINA ====== */

#pageLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at top, #132a2b 0, #050c0d 55%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.35s ease-out, visibility 0.35s ease-out;
}

#pageLoader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

#pageLoader .pl-inner {
  max-width: 320px;
  width: 100%;
  text-align: center;
  background: rgba(5, 14, 15, 0.9);
  border-radius: 16px;
  padding: 24px 20px 20px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.9);
}

#pageLoader .pl-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

#pageLoader .pl-dot {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #07f28d;
  box-shadow: 0 0 18px rgba(7, 242, 141, 0.8);
}

#pageLoader .pl-text {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 18px;
  text-transform: uppercase;
  color: #e8fffb;
}

#pageLoader .pl-text span {
  color: #2ce4a7;
}

#pageLoader .pl-caption {
  margin: 0 0 16px;
  font-size: 13px;
  color: #9fb7b8;
}

#pageLoader .pl-progress {
  width: 100%;
  max-width: 220px;
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

#pageLoader .pl-bar {
  position: absolute;
  inset: 0;
}

#pageLoader .pl-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, #07f28d, #52ffd0, #07f28d);
  box-shadow: 0 0 20px rgba(7, 242, 141, 0.8);
  animation: sk-page-loader-bar 1.1s infinite;
}

/* animação da barra "andando" */
@keyframes sk-page-loader-bar {
  0% {
    transform: translateX(-100%);
  }
  55% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(110%);
  }
}

/* Em telas bem pequenas, estreita levemente o card */
@media (max-width: 480px) {
  #pageLoader .pl-inner {
    max-width: 280px;
    padding-inline: 16px;
  }
}



/* =========================
   PEDIDOS — MELHORIA DE LAYOUT
   ========================= */

/* Card geral */
.order-card {
  padding: 18px 18px 16px;
}

/* ---------- Cabeçalho ---------- */
.order-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.order-date strong {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.75;
}

/* Status + contador */
.order-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Forma de pagamento ---------- */
.order-pay-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-pay-row .label {
  font-size: 12px;
  opacity: 0.6;
}

.order-method {
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ---------- Quantidade + Valor ---------- */
.order-qty-row {
  margin-top: 12px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.order-qty {
  font-size: 13px;
  opacity: 0.75;
}

.order-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent, #2cff9a);
}

/* ---------- Ações ---------- */
.order-actions {
  margin-top: 16px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.order-actions .btn-link {
  font-size: 13px;
  opacity: 0.75;
}

.order-actions .btn-primary {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Detalhes ---------- */
.order-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}

.order-details-item {
  padding: 12px 0 !important;
}

.order-details-item + .order-details-item {
  margin-top: 6px;
}

.order-details-item .muted {
  font-size: 11px;
  letter-spacing: 0.4px;
  opacity: 0.6;
}

.order-details-item strong,
.order-details-item div[style*="font-weight:700"] {
  font-size: 14px;
}

/* ---------- Countdown ---------- */
.order-countdown {
  font-size: 12px;
  opacity: 0.8;
}

.order-countdown.is-expired {
  color: #ff6b6b;
  opacity: 1;
}

/* ---------- Badge ---------- */
.badge {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
}

/* ---------- Mobile ajuste ---------- */
@media (max-width: 520px) {
  .order-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .order-actions .btn-primary {
    width: 100%;
  }

  .order-qty-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .order-total {
    font-size: 20px;
  }
}


/* Linha do status do pedido: não pode quebrar / não pode “pular” */
.order-status-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}

/* Badge: nunca quebra texto */
.order-status-row .badge{
  white-space:nowrap;
  flex:0 0 auto;
}

/* Countdown: reserva espaço e evita empurrões */
.order-countdown{
  white-space:nowrap;
  flex:0 0 auto;
  min-width: 112px; /* ajuste fino: 104~130 conforme seu texto */
  text-align:right;
}

/* Se você quiser impedir QUALQUER variação de altura do header */
.order-head{
  min-height: 56px; /* ajuste fino se necessário */
}
