/* ============================================================================
   ESTOFADOS LARISSA - STYLESHEET PARTE 2: COMPONENTES, NOTINHA, ADMIN & RESPONSIVIDADE
   ============================================================================ */

@import url('style.css');

/* MODAL PROMOCIONAL SAZONAL (BLACK NOVEMBER) */
.seasonal-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out forwards;
}

.seasonal-modal-content {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%; max-width: 450px;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  text-align: center;
  transform: scale(0.9);
  animation: scaleUp 0.3s ease-out forwards;
}

.seasonal-modal-close {
  position: absolute; top: 15px; right: 20px;
  background: transparent; border: none;
  color: var(--text-muted); font-size: 28px; cursor: pointer;
}

.badge-nov {
  background: linear-gradient(135deg, #ef4444, #3b82f6);
  color: #fff; padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 1px;
}

.seasonal-modal-header h2 { margin: 15px 0 10px 0; font-size: 1.6rem; }
.seasonal-modal-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; margin: 10px 0; }

.btn-modal-primary {
  width: 100%; padding: 14px; background: #2563eb; color: white;
  border: none; border-radius: 12px; font-weight: bold; font-size: 1rem;
  cursor: pointer; margin-top: 15px; transition: background 0.2s, transform 0.2s;
}
.btn-modal-primary:hover { background: #1d4ed8; transform: translateY(-2px); }

.seasonal-modal-overlay.fade-out { opacity: 0; transition: opacity 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { transform: scale(0.85); } to { transform: scale(1); } }

/* TALÃO / NOTINHA DIGITAL E TÉRMICA */
.notinha-container {
  max-width: 800px; margin: 0 auto; background: var(--bg-card);
  border: 2px solid var(--border-notinha); padding: 20px; border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); font-family: 'Courier New', Courier, monospace;
}
.header-notinha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 2px dashed var(--border-notinha); padding-bottom: 10px; margin-bottom: 15px; }
.logo-box { font-size: 26px; font-weight: bold; border: 2px solid var(--text-main); padding: 5px 15px; border-radius: 25px; }
.campo-linha { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; font-size: 14px; align-items: center; }
.campo-linha label { font-weight: bold; }
.campo-linha input { border: none; border-bottom: 1px solid var(--border-notinha); background: transparent; color: var(--text-main); font-family: inherit; font-size: 14px; flex: 1; min-width: 120px; }
table.notinha-tabela { width: 100%; border-collapse: collapse; margin: 15px 0; }
table.notinha-tabela th, table.notinha-tabela td { border: 1px solid var(--border-notinha); padding: 6px; text-align: left; font-size: 13px; }
table.notinha-tabela input { width: 100%; border: none; background: transparent; color: var(--text-main); font-family: inherit; }
.totais-box { width: 250px; margin-left: auto; text-align: right; margin-top: 10px; }
.btn-acao { background: var(--accent); color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-size: 15px; font-weight: bold; }

/* IMPRESSÃO TÉRMICA (80mm/58mm) */
@media print {
  body { background: white !important; color: black !important; padding: 0 !important; }
  .notinha-container { width: 100% !important; max-width: 80mm !important; border: none !important; padding: 0 !important; box-shadow: none !important; }
  .no-print, .theme-toggle, .glass-nav, footer { display: none !important; }
  input { border: none !important; }
}

/* PORTAL DO CLIENTE E HUB ADMIN */
.consult-box { max-width: 600px; margin: 40px auto; padding: 25px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.parcela-card { border: 1px solid var(--border); border-radius: 8px; padding: 15px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; background: var(--bg-body); }
.parcela-card.atrasado { border-color: #ef4444; background: rgba(239, 68, 68, 0.05); }

.grid-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 20px 0; }
.card-hub { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 25px; text-decoration: none; color: var(--text-main); transition: transform 0.2s; text-align: center; }
.card-hub:hover { transform: translateY(-5px); border-color: var(--accent); }
.card-hub h3 { margin: 10px 0 5px 0; font-size: 1.2rem; }
.card-hub p { color: var(--text-muted); font-size: 0.9rem; }

/* RESPONSIVIDADE / DISPOSITIVOS MÓVEIS */
@media (max-width: 768px) {
  .glass-nav { padding: 0.65rem 0.85rem; border-radius: 16px; }
  .promo-slider-wrapper { margin: 1rem 0 1.5rem 0; border-radius: var(--radius-md); }
  .slide-item { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .slide-title { font-size: 1.35rem !important; margin: 0.2rem 0 0.5rem 0; }
  .slide-price { font-size: 1.5rem !important; }
  .slide-img-box { min-height: 190px; max-height: 220px; }
  .slide-img { max-height: 200px; }
  .slider-controls { bottom: 0.75rem; right: 0.75rem; }
  .btn-control { width: 32px; height: 32px; font-size: 0.85rem; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.85rem; }
}

@media (max-width: 480px) {
  .grid-products { grid-template-columns: 1fr; }
  .slide-item { padding: 0.85rem; }
}
/* COMPONENTES DE MODAL & BOTOES */
.seasonal-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.seasonal-modal-content {
  background: var(--bg-card, #1e1e24);
  color: var(--text-main, #fff);
  border: 1px solid var(--border, #333);
  border-radius: 20px;
  width: 100%; max-width: 450px;
  padding: 30px; position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  text-align: center;
}

.seasonal-modal-close {
  position: absolute; top: 15px; right: 20px;
  background: transparent; border: none;
  color: var(--text-muted, #aaa); font-size: 28px; cursor: pointer;
}

.seasonal-modal-overlay.fade-out {
  opacity: 0; transition: opacity 0.25s ease;
}