/* Quick Shop v13 - Cache Busted at 2025-09-01 - Timestamp: 20250901019 - Fix: Renomeia classe para evitar conflitos com página produto */
/* Quick Shop - Variações com Compra Direta */
.product-variations-hover {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 15px 10px;
  border-radius: 32px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #ffffff9a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  opacity: 0;
  font-weight: bold;
  font-family: "Venti CF", "Inter", sans-serif !important;
  transition: all 0.3s ease;
  min-width: 90%;
  max-height: 180px;
  height: 180px;
}

.product-variations-hover .title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.product-variations-hover .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: bold;
  justify-content: center;
  margin-bottom: 15px;
}

.btn-variant-quickshop {
  background: transparent;
  border: 2px solid white;
  font-family: "Venti CF", "Inter", sans-serif !important;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 40px;
}

.btn-variant-quickshop:hover {
  color: black !important;
  font-family: "Venti CF", "Inter", sans-serif !important;
  border-color: #6fa189 !important;
}

.btn-variant-quickshop.selected {
  background-color: #6fa189 !important;
  border-color: #6fa189;
  font-family: "Venti CF", "Inter", sans-serif !important;
  color: white !important;
}

.btn-variant-quickshop-no-stock {
  background: rgba(108, 117, 125, 0.2);
  border: 2px solid #6c757d;
  color: #6c757d;
  font-family: "Venti CF", "Inter", sans-serif !important;
  padding: 8px 12px;
  font-weight: 600 !important;
  border-radius: 4px;
  font-size: 14px;
  cursor: not-allowed;
  min-width: 40px;
  text-decoration: line-through;
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.btn-variant-quickshop-no-stock:hover {
  background: #000 !important;
  border: 2px solid #6c757d !important;
  color: #fff !important;
  font-family: "Venti CF", "Inter", sans-serif !important;
}

.btn-variant-quickshop-no-stock:after {
  position: absolute;
  left: 0.1rem;
  top: 3px;
  z-index: 9;
  width: 91%;
  font-family: "Venti CF", "Inter", sans-serif !important;
  height: 83%;
  background: linear-gradient(
    to top left,
    transparent 49%,
    var(--main-foreground-opacity-50),
    transparent 52%
  );
  content: "";
}

.btn-buy-now {
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-buy-now::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-buy-now:hover::before {
  left: 100%;
}

.btn-buy-now:hover {
  background: #333;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-buy-now.success {
  background: #28a745;
}

.btn-buy-now.error {
  background: #dc3545;
}

.btn-buy-now:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Responsivo */
@media (max-width: 768px) {
  .product-variations-hover {
    padding: 15px;
  }

  .product-variations-hover .title {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .btn-variant,
  .btn-variant-no-stock {
    padding: 6px 10px;
    font-size: 11px;
    min-width: 35px;
  }

  .btn-buy-now {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Animação de hover no produto */
.js-item-product {
  transition: transform 0.3s ease;
}

.js-item-product:hover {
  transform: translateY(-2px);
}

/* Toast Notification - Design E-commerce */
.toast-notification {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 999999 !important;
  width: 350px !important;
  max-width: 90vw !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden !important;
  font-family: "Venti CF", "Inter", sans-serif !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  animation: slideInRight 0.4s ease !important;
}

.toast-notification.toast-success {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 249, 250, 0.9) 50%,
    rgba(240, 242, 245, 0.85) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

.toast-notification.toast-error {
  background: linear-gradient(
    135deg,
    rgba(248, 215, 218, 0.95) 0%,
    rgba(242, 222, 222, 0.9) 50%,
    rgba(248, 215, 218, 0.85) 100%
  ) !important;
  border: 1px solid rgba(220, 53, 69, 0.4) !important;
  box-shadow: 0 8px 32px rgba(220, 53, 69, 0.15) !important;
}

/* Barra de progresso do erro */
.toast-notification.toast-error .toast-progress-bar {
  background: linear-gradient(90deg, #dc3545, #c82333) !important;
  animation: toast-progress-error 4s linear forwards !important;
}

/* Estilo específico do conteúdo de erro */
.toast-notification.toast-error .toast-title {
  color: #dc3545 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.toast-notification.toast-error .toast-title::before {
  content: "⚠️" !important;
  font-size: 16px !important;
  filter: drop-shadow(0 1px 2px rgba(220, 53, 69, 0.3)) !important;
}

.toast-notification.toast-error .toast-product-name {
  color: #721c24 !important;
  font-weight: 700 !important;
}

/* Container do ícone de erro */
.toast-notification.toast-error .toast-image {
  background: linear-gradient(135deg, #dc3545, #c82333) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25) !important;
}

.toast-notification.toast-error .toast-image::before {
  content: "✕" !important;
  font-size: 28px !important;
  font-weight: bold !important;
  color: white !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Botão fechar no toast de erro */
.toast-notification.toast-error .toast-close {
  background: #dc3545 !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  transition: all 0.3s ease !important;
}

.toast-notification.toast-error .toast-close:hover {
  background: #c82333 !important;
  border-color: white !important;
  transform: scale(1.15) rotate(90deg) !important;
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4) !important;
}

/* Animação específica da barra de progresso do erro */
@keyframes toast-progress-error {
  0% {
    width: 100%;
    opacity: 1;
    filter: brightness(1);
  }
  80% {
    width: 20%;
    filter: brightness(1.1);
    opacity: 0.95;
  }
  100% {
    width: 0%;
    opacity: 0.6;
    filter: brightness(0.9);
  }
}

/* Animação de shake para erro (opcional) */
.toast-notification.toast-error {
  animation: slideInRight 0.4s ease, shake 0.6s ease 0.1s !important;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(2px);
  }
}

.toast-notification.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Barra de progresso */
.toast-progress-bar {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #28a745, #20c997) !important;
  width: 100% !important;
  transform-origin: left center !important;
  z-index: 1 !important;
  border-radius: 0 0 2px 2px !important;
  box-shadow: 0 1px 3px rgba(40, 167, 69, 0.3) !important;
}

/* Body do toast */
.toast-body {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 16px !important;
  position: relative !important;
}

/* Imagem do produto */
.toast-image {
  flex-shrink: 0 !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #f8f9fa !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.toast-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Conteúdo do texto */
.toast-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.toast-title {
  font-weight: 600 !important;
  font-size: 14px !important;
  margin: 0 0 4px 0 !important;
  color: #28a745 !important;
}

.toast-product-name {
  font-weight: 700 !important;
  font-size: 15px !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.3 !important;
  color: #333 !important;
}

.toast-product-details {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.toast-price {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #28a745 !important;
}

.toast-variant {
  font-size: 14px !important;
  color: #666 !important;
  font-weight: 500 !important;
}

/* Botão fechar */
.toast-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #000 !important;
  border: none !important;
  color: white !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  z-index: 2 !important;
}

.toast-close:hover {
  background: #333 !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* Animações do Toast */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes toast-progress {
  0% {
    width: 100%;
    opacity: 1;
  }
  90% {
    width: 10%;
    opacity: 0.9;
  }
  100% {
    width: 0%;
    opacity: 0.7;
  }
}

/* Toast responsivo */
@media (max-width: 768px) {
  .toast-notification {
    top: 10px !important;
    right: 10px !important;
    left: 10px !important;
    width: auto !important;
    max-width: none !important;
  }

  .toast-image {
    width: 50px !important;
    height: 50px !important;
  }

  .toast-body {
    padding: 12px !important;
    gap: 10px !important;
  }
}
