/* magia.css - Identidade Moderna, Pop-up e Barra Flutuante */
body.storefront {
  --roxo: #4a154b;
  --amarelo: #9b0068;
  --bg: #fdfbfd;
  --text-color: #2e0854;
  --muted: #6a5370;
  background: var(--bg);
  color: var(--text-color);
}

/* --- BLOCO PÓS-BANNER --- */
.pos-banner-intro {
  text-align: center;
  padding: 42px 0 20px;
}

.pos-banner-intro .eyebrow {
  color: #d80082;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 750;
  text-transform: uppercase;
}

.pos-banner-intro h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  color: #2e0854;
  margin: 10px 0;
}

.pos-banner-intro h2 span {
  color: #d80082;
}

.pos-banner-intro p {
  color: #6a5370;
  font-size: 15px;
}

.quick-actions-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin: 10px 0 45px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 20px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #ebd9ea;
  box-shadow: 0 8px 24px rgba(74, 21, 75, 0.05);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.quick-card:hover {
  transform: translateY(-4px);
}

.quick-card.whatsapp-pulse:hover {
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.25);
  border-color: rgba(37, 211, 102, 0.6);
}

.quick-card.waze-pulse:hover {
  box-shadow: 0 12px 30px rgba(51, 204, 255, 0.25);
  border-color: rgba(51, 204, 255, 0.6);
}

.quick-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
  flex-shrink: 0;
}

.whatsapp-pulse .quick-icon {
  background: #d9f7e4;
  color: #128c7e;
}

.waze-pulse .quick-icon {
  background: #def5fc;
  color: #127993;
}

.quick-text strong {
  display: block;
  font-size: 16px;
  color: #2e0854;
}

.quick-text small {
  color: #6a5370;
  font-size: 13px;
  display: block;
  margin-top: 4px;
}

/* --- CARDS DE PRODUTOS --- */
.card-produto {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #ebd9ea;
  box-shadow: 0 6px 20px rgba(46, 8, 84, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
}

.card-produto:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 0, 130, 0.45);
  box-shadow: 0 14px 34px rgba(155, 0, 104, 0.15);
}

.card-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 270px;
  background: #fbf7fb;
  cursor: pointer;
  overflow: hidden;
}

.card-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.card-thumb-wrapper:hover img {
  transform: scale(1.05);
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46, 8, 84, 0.45);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.card-hover-overlay span {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(216, 0, 130, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
}

.card-thumb-wrapper:hover .card-hover-overlay {
  opacity: 1;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 15px !important;
  color: #2e0854;
  margin: 6px 0 10px;
  line-height: 1.35;
  min-height: 42px;
  cursor: pointer;
}

.card-body h3:hover {
  color: #d80082;
}

.card-category {
  color: #8b738f;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-status {
  color: #766c7e;
  font-size: 12px;
  margin-bottom: 14px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  margin-top: auto;
}

.btn-card-quickview {
  background: #f7e8f5;
  color: #750b65;
  border: 1px solid #dec2da;
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-card-quickview:hover {
  background: #eed0ea;
}

.card-body .btn-whatsapp {
  background: linear-gradient(115deg, #d80082, #9b0068);
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: block;
}

.size-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: #9b0068;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 10px;
}

/* --- MODAL POP-UP (RECOMENDADO MOCKUP FADA) --- */
.quick-view-modal {
  border: none;
  border-radius: 28px;
  padding: 0;
  background: transparent;
  max-width: 960px;
  width: 92%;
  box-shadow: 0 25px 60px rgba(46, 8, 84, 0.45);
  margin: auto;
}

.quick-view-modal::backdrop {
  background: rgba(24, 4, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(216, 0, 130, 0.25);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  background: #9b0068;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  transition: transform 0.2s, background 0.2s;
}

.modal-close-btn:hover {
  transform: rotate(90deg) scale(1.08);
  background: #d80082;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.modal-main-img-box {
  width: 100%;
  height: 420px;
  background: #faf5fa;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #ebd9ea;
}

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

.modal-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.modal-thumb {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  border: 2px solid #ecdfea;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  padding: 2px;
  transition: border-color 0.2s, transform 0.2s;
}

.modal-thumb.active, .modal-thumb:hover {
  border-color: #d80082;
  transform: translateY(-2px);
}

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

.modal-eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 750;
  color: #9b0068;
  letter-spacing: 1.5px;
}

.modal-title {
  font-size: clamp(24px, 2.6vw, 34px);
  color: #2e0854;
  margin: 6px 0 14px;
  line-height: 1.15;
}

.modal-description-box {
  color: #604d66;
  font-size: 14px;
  line-height: 1.7;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 16px;
}

.modal-description-box p {
  margin-bottom: 8px;
}

.modal-sizes-box {
  margin: 16px 0;
}

.modal-sizes-box label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #2e0854;
  margin-bottom: 6px;
}

.size-chips {
  display: flex;
  gap: 8px;
}

.size-chip {
  min-width: 44px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid #d4bad2;
  font-size: 13px;
  font-weight: 700;
  color: #2e0854;
  background: #faf6fa;
}

.size-chip.active {
  background: #9b0068;
  color: #ffffff;
  border-color: #9b0068;
}

.modal-price-box {
  margin: 18px 0;
}

.modal-price-box .price-val {
  font-size: 26px;
  font-weight: 800;
  color: #2e0854;
  display: block;
}

.modal-price-box small {
  color: #79687e;
  font-size: 12px;
}

.modal-actions-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.btn-action-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(115deg, #d80082, #9b0068);
  color: #ffffff;
  padding: 15px;
  border-radius: 14px;
  font-weight: 750;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(216, 0, 130, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(216, 0, 130, 0.55);
}

.btn-action-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #e1fbf5;
  color: #0d5f4f;
  padding: 13px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #b6eee1;
  transition: background 0.2s;
}

.btn-action-secondary:hover {
  background: #ccf8ee;
}

/* --- BARRA FLUTUANTE (DOCK MODERNO) --- */
.floating-dock {
  position: fixed;
  right: 20px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9999;
}

.dock-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 22px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.dock-btn:hover {
  transform: scale(1.15) translateY(-3px);
}

.dock-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.dock-whatsapp:hover {
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.7);
}

.dock-waze {
  background: linear-gradient(135deg, #33ccff, #0099cc);
  box-shadow: 0 8px 24px rgba(51, 204, 255, 0.45);
}

.dock-waze:hover {
  box-shadow: 0 12px 32px rgba(51, 204, 255, 0.7);
}

.dock-maps {
  background: linear-gradient(135deg, #ea4335, #b31412);
  box-shadow: 0 8px 24px rgba(234, 67, 53, 0.45);
}

.dock-maps:hover {
  box-shadow: 0 12px 32px rgba(234, 67, 53, 0.7);
}

/* --- FOOTER REFINADO --- */
.storefront .site-footer {
  background: #240538;
  color: #eae1ed;
  border-top: 3px solid #d80082;
  padding: 45px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 0.8fr;
  gap: 32px;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-bottom {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .modal-main-img-box {
    height: 280px;
  }
  .modal-card {
    padding: 24px 18px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .quick-actions-bar {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}