/* Modal de producto - Muebleria SK */
.msk-modal-open { overflow: hidden; }

.msk-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: mskFadeIn 0.3s ease;
}

@keyframes mskFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mskSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.msk-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 30px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  animation: mskSlideUp 0.35s ease;
}

.msk-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}

.msk-modal-close:hover { color: #e74c3c; }

.msk-modal-image {
  background: #f8f6f3;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msk-modal-image img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.msk-modal-body { padding: 10px 0 10px 20px; }

.msk-modal-badge {
  display: inline-block;
  background: #8b7355;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.msk-modal-body h2 {
  font-size: 28px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 15px;
  line-height: 1.3;
}

.msk-modal-price {
  font-size: 26px;
  font-weight: 700;
  color: #8b7355;
  margin-bottom: 18px;
}

.msk-modal-price .modal-price-old {
  font-size: 18px;
  color: #999;
  font-weight: 400;
  margin-left: 8px;
}

.msk-modal-desc {
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 15px;
}

.msk-modal-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}

.msk-modal-meta li {
  padding: 6px 0;
  color: #555;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.msk-modal-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.msk-qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.msk-qty-btn {
  background: #f5f5f5;
  border: none;
  width: 40px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.msk-qty-btn:hover { background: #e8e8e8; }

.msk-qty-input {
  width: 50px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  height: 42px;
  font-size: 16px;
}

.msk-btn-add { flex: 1; min-width: 200px; }

.msk-admin-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.msk-admin-link:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .msk-modal-body { padding: 20px 0 0; }
  .msk-modal { padding: 20px; }
}
