/* FOOTER */
/* ============================================= */

.footer {
  background: linear-gradient(180deg, #111, #050505);
  color: #fff;
  padding: 70px 0 22px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr 1fr;
  gap: 50px;
}

.footer-logo strong {
  font-size: 42px;
}

.footer p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin-top: 18px;
  font-size: 14px;
}

.footer h4 {
  color: var(--gold-light);
  margin-bottom: 22px;
  font-size: 14px;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 12px;
}

.footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  margin-bottom: 10px;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.footer-contact a,
.footer-contact p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.footer-contact a:hover {
  color: var(--gold-light);
}

.footer-contact svg {
  width: 14px;
  height: 14px;
  color: var(--gold-light);
  flex-shrink: 0;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  margin: 0;
  transition: 0.35s ease;
}

.social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(201, 148, 34, 0.30);
}

.social svg {
  width: 16px;
  height: 16px;
}

.payments {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.payments .payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #fff;
  min-width: 56px;
  height: 38px;
  box-sizing: border-box;
}

.payments .payment-badge:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(201, 148, 34, 0.4);
}

.payments .payment-badge img.pay-logo,
.payments .payment-badge svg.pay-logo {
  display: block;
  max-width: 100%;
  max-height: 24px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.copy {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 50px;
  padding-top: 22px;
  font-size: 13px;
}

/* ============================================= */
/* WIDGET WHATSAPP INTERATIVO */
/* ============================================= */

.wa-widget-container {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wa-chat-window {
  position: absolute;
  bottom: 74px;
  left: 0;
  width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-chat-window.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.wa-chat-header {
  background: linear-gradient(135deg, #128c7e, #075e54);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #075e54;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 18px;
}

.wa-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  background: #25d366;
  border: 2.5px solid #fff;
  border-radius: 50%;
}

.wa-chat-meta h4 {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.wa-chat-meta span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.wa-chat-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.2s;
}

.wa-chat-close:hover {
  opacity: 1;
}

.wa-chat-body {
  padding: 20px;
  background: #efe7dd;
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-message-received {
  background: #fff;
  padding: 10px 14px;
  border-radius: 0 12px 12px 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  max-width: 85%;
  align-self: flex-start;
  position: relative;
}

.wa-message-received p {
  font-size: 12.5px;
  line-height: 1.45;
  color: #333;
  margin: 0;
}

.wa-message-time {
  display: block;
  font-size: 9px;
  color: #999;
  text-align: right;
  margin-top: 4px;
}

.wa-chat-options {
  background: #fbfbfb;
  padding: 14px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-option-btn {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 10px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.wa-option-btn:hover {
  border-color: #128c7e;
  background: rgba(18, 140, 126, 0.03);
  color: #128c7e;
  transform: translateY(-1px);
}

.wa-badge-notification {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background: #ff4d4d;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ============================================= */
/* MODAL DE PRODUTO PREMIUM */
/* ============================================= */

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(232, 189, 85, 0.22);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  overflow: hidden;
}

@media (min-width: 768px) {
  #productModal .modal-dialog {
    max-width: 760px;
  }
  .modal-product-layout {
    display: grid;
    grid-template-columns: 1.15fr 1.3fr;
    gap: 20px;
    align-items: start;
    text-align: left;
  }
  .modal-product-left {
    position: sticky;
    top: 0;
  }
  .modal-product-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

.product-modal.open .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 100%;
  width: 100%;
  flex: 1;
  padding: 0;
}

.modal-body {
  overflow-y: auto;
  padding: 20px;
  flex: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: #333;
  font-size: 22px;
  font-weight: 300;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 5;
}

.modal-close:hover {
  background: rgba(255, 77, 77, 0.1);
  color: #ff4d4d;
  transform: rotate(90deg);
}

/* ---------- Public Product Modal Photo Slider ---------- */
.modal-product-gallery-slider {
  position: relative;
  width: 100%;
  max-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201, 148, 34, 0.15);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  margin-bottom: 14px;
}
.modal-slides-container {
  display: flex;
  width: 100%;
  height: 220px;
  position: relative;
  background: #fafafa;
}
.modal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-slide.active {
  opacity: 1;
  visibility: visible;
}
.modal-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.modal-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.25s ease;
}
.modal-slider-btn:hover {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 10px rgba(201, 148, 34, 0.35);
}
.modal-slider-btn.prev-btn {
  left: 10px;
}
.modal-slider-btn.next-btn {
  right: 10px;
}
.modal-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.modal-slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}
.modal-slider-dots .dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

.modal-product-image {
  width: 100%;
  max-height: 170px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(201, 148, 34, 0.15);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.modal-product-image img {
  width: 100%;
  height: 100%;
  max-height: 170px;
  object-fit: contain;
  background: #fafafa;
  display: block;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.modal-product-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.modal-product-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--gold-dark);
  margin-top: 2px;
}

.modal-product-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 14px;
}

.modal-product-specs {
  background: var(--cream-2);
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 14px;
}

.modal-product-specs h6 {
  font-size: 10.5px;
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.modal-product-specs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal-product-specs li {
  font-size: 12px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
}

.modal-product-specs li i {
  color: #25d366;
  font-size: 12px;
}

.modal-qty-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 12px;
  margin-bottom: 14px;
}

.modal-qty-container > span {
  font-size: 13px;
  font-weight: 800;
  color: #111;
}

.qty-selector {
  display: flex;
  align-items: center;
  background: var(--cream-2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #555;
  transition: 0.2s;
}

.qty-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--gold);
}

.qty-value {
  width: 32px;
  font-weight: 800;
  text-align: center;
  font-size: 13px;
  color: #111;
}

.btn-modal-buy {
  width: 100%;
  min-height: 44px;
  font-size: 13px;
  letter-spacing: 0.4px;
  border-radius: 10px;
  box-shadow: 0 10px 25px var(--whatsapp-rgba-25);
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: #fff;
}

.btn-modal-buy:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  box-shadow: 0 14px 30px var(--whatsapp-rgba-35);
  transform: translateY(-2px);
}

/* ============================================= */
/* FLOAT BUTTONS */
/* ============================================= */

.top-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 20;
  box-shadow: 0 14px 30px rgba(201, 148, 34, 0.35);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  border: none;
  cursor: pointer;
}

.top-button.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.top-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(201, 148, 34, 0.50);
}

.top-button svg {
  width: 22px;
  height: 22px;
}

.whats-float {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 20;
  box-shadow: 0 14px 30px var(--whatsapp-rgba-35);
  animation: whatsappPulse 2.5s infinite;
  transition: transform 0.3s ease;
}

.whats-float:hover {
  transform: translateY(-3px);
}

.whats-float svg {
  width: 30px;
  height: 30px;
}

@keyframes whatsappPulse {
  0%, 100% {
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.3);
  }
  50% {
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35), 0 0 0 16px rgba(37, 211, 102, 0);
  }
}

/* ============================================= */
