/* Navbar */
.navbar {
  padding: 1rem 0;
}
.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}
.nav-link {
  margin-left: 1rem;
  font-weight: 500;
  color: #444 !important;
}
.nav-link:hover {
  color: #0d6efd !important; /* Bootstrap primary color */
}

/* Hero Section */
.hero {
  min-height: 80vh;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
              url('/static/images/hero-bg.jpg') center/cover no-repeat;
}
.hero h1 {
  font-size: 2.5rem;
}
.hero p {
  font-size: 1.1rem;
}
.hero .btn {
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
}


/* Footer */
.site-footer {
  background-color: #f8f9fa; /* soft gray to match Bootstrap default */
  color: #6c757d;           /* muted text */
  border-top: 1px solid #dee2e6;
}

.site-footer small {
  font-size: 0.9rem;
}

.site-footer .footer-link {
  color: #6c757d;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.2s ease-in-out;
}

.site-footer .footer-link:hover {
  color: #007bff; /* Bootstrap primary blue */
}

/* Smooth amount animation */
#paymentSummaryStrong {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease, opacity 0.2s ease;
}

/* Highlight when value changes */
.amount-updated {
  transform: scale(1.2);
  color: #0d6efd;
  opacity: 0.9;
}

/* Fade-in for messages */
#discountInfo, #savingsInfo {
  transition: opacity 0.4s ease, color 0.3s ease;
}

.bg-gradient {
  background: linear-gradient(135deg, #0d6efd, #6610f2);
}

.fade-box {
  opacity: 1;
  max-height: 400px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.fade-box.hidden {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
}

/* 💰 Coupon Section Styling */
.coupon-section {
  background: #f9fafb;
}

.coupon-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.coupon-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.coupon-card label {
  color: #1f2937;
  font-size: 1rem;
}

#couponCode {
  font-size: 0.95rem;
  border-radius: 8px 0 0 8px;
}

#applyCouponBtn {
  border-radius: 0 8px 8px 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#applyCouponBtn:hover {
  background-color: #2563eb;
  color: #fff;
}

#couponMessage {
  font-size: 0.9rem;
  font-weight: 500;
}

#couponMessage.success {
  color: #16a34a; /* green-600 */
}

#couponMessage.error {
  color: #dc2626; /* red-600 */
}

.hidden {
  visibility: hidden;
  opacity: 0;
  height: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transition: all 0.3s ease-in-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.delivery-note {
    background: #e8f7ff;
    border: 1px solid #b3e0f9;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: #083d77;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.05);
}

.delivery-fade-in {
    animation: delivery-fade-in 0.7s ease-in-out;
}
@keyframes delivery-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   💰 Estimate Modal Styling
   =============================== */
#estimateModal .modal-content {
  background: linear-gradient(145deg, #f8fbff, #eaf4ff);
  border-left: 5px solid #0d6efd;
}

#estimateModal .modal-title {
  font-size: 1.1rem;
}

#estimateDisplay strong {
  color: #0d6efd;
  font-size: 1.1rem;
}

/* ===============================
   🌟 Responsive Bottom-Sheet Modal (Mobile)
   =============================== */

/* Default modal look (desktop/laptop) — stays centered */
#estimateModal .modal-dialog {
  transition: all 0.3s ease-in-out;
}

/* Mobile style — slides up from bottom */
@media (max-width: 768px) {
  #estimateModal .modal-dialog {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
  }

  #estimateModal .modal-content {
    border-radius: 15px 15px 0 0;
  }

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