html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Installment modal styles */
#installment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#installment-modal.show {
  display: flex;
}

#installment-modal .modal-content {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#installment-modal.show .modal-content {
  transform: scale(1);
}

#installment-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

#installment-modal .modal-title {
  font-size: 18px;
  font-weight: 600;
}

#installment-modal .modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#installment-modal .modal-body {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

#installment-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

#installment-modal .modal-button {
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

#installment-modal .modal-button:hover {
  background-color: #2563eb;
}

/* Product gallery modal overrides */
.slider-modal {
  width: 90% !important;
  max-width: 800px;
  height: 80vh !important;
}

.slider-modal .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

