/* ═══ WELCOME MODAL ════════════════════════════════════════ */
.welcome-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.3s;
  padding: 20px;
}

.welcome-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.welcome-box {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--soft);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.welcome-close:hover {
  color: var(--black);
}

.welcome-content {
  text-align: center;
}

.welcome-logo {
  font-family: var(--font-disp);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.welcome-title {
  font-family: var(--font-disp);
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.welcome-subtitle {
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.welcome-body {
  margin: 24px 0;
  text-align: left;
  background: var(--bg);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.welcome-item {
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.6;
}

.welcome-item:last-child {
  margin-bottom: 0;
}

.welcome-btn {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 24px;
}

.welcome-btn:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(184, 150, 46, 0.3);
}

/* ═══ PRODUCT MODAL ════════════════════════════════════════ */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1999;
  padding: 20px;
  overflow-y: auto;
}

.product-modal.open {
  display: flex;
}

.product-modal-content {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--black);
  color: white;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
}

.modal-images {
  position: relative;
  aspect-ratio: 1;
  background: #f8f6f3;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-images img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.modal-img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}

.modal-img-nav button {
  pointer-events: all;
}

.modal-img-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.modal-info {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.modal-brand {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--soft);
  margin-bottom: 8px;
}

.modal-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.3;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--mid);
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-pricing {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.modal-installment {
  font-size: 0.9rem;
  color: var(--soft);
  margin-bottom: 12px;
}

.modal-payment {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.modal-payment span {
  color: var(--mid);
}

.modal-payment span:last-child {
  color: var(--gold);
  font-weight: 600;
}

.modal-stock {
  font-size: 0.9rem;
  color: #00c853;
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-quantity {
  margin-bottom: 20px;
}

.modal-quantity label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  width: fit-content;
}

.qty-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--black);
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.qty-btn:hover {
  color: var(--gold);
}

#qtyValue {
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.modal-buy-btn {
  display: block;
  background: var(--wa-green);
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 10px;
  transition: all 0.2s;
  text-decoration: none;
}

.modal-buy-btn:hover {
  background: #1f9b4f;
  transform: translateY(-2px);
}

.modal-close-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--border);
}
