/* ===== Global Styles ===== */
* {
  transition: all 0.3s ease-in-out;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", sans-serif;
  padding-top: 80px; /* Adjust if navbar height changes */
  background-color: #f4f6f9;
  color: #121212;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Fade-in Animation ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Navbar ===== */
.navbar-brand {
  font-size: 1.6rem;
  color: #007bff !important;
}

.navbar .btn {
  margin-left: 10px;
}

/* ===== Cards ===== */
.card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  transform: translateZ(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeInUp 0.5s ease both;
  will-change: transform, box-shadow;
}

.card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 123, 255, 0.25);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #007bff;
}

.card-text {
  font-size: 0.95rem;
  color: #333;
}

/* ===== Buttons ===== */
.btn-outline-success,
.btn-outline-light {
  border-color: #007bff;
  color: #007bff;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.btn-outline-success:hover,
.btn-outline-light:hover {
  background-color: #007bff;
  color: #ffffff;
  box-shadow: 0 0 12px #007bff, 0 0 20px #007bff;
  transform: scale(1.05);
}

.btn-order {
  background-color: #007bff;
  color: #fff;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-order:hover {
  background-color: #0056b3;
  transform: scale(1.03);
}

/* ===== Inputs & Forms ===== */
.form-control,
.form-select {
  background-color: #ffffff;
  color: #212529;
  border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
}

::placeholder {
  color: #6c757d;
}

/* ===== Accordion (FAQ) ===== */
.accordion-button {
  background-color: #f8f9fa;
  color: #212529;
}

.accordion-button:not(.collapsed) {
  background-color: #007bff;
  color: #ffffff;
}

.accordion-body {
  background-color: #ffffff;
  color: #333;
}

/* ===== Cart Page Styling ===== */
.card[data-price] {
  background: #ffffff;
  border: 1px solid #007bff;
  border-radius: 12px;
  padding: 1rem;
  transition: 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.1);
}

.card[data-price]:hover {
  transform: scale(1.01);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

.qty-input {
  width: 60px;
  background: linear-gradient(460deg, #8a4242, #df8282, #e0e0e0, aqua);
  color: #007bff;
  border: 1px solid #ced4da;
  padding: 4px 8px;
  border-radius: 5px;
  text-align: center;
}

.qty-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
  transition: box-shadow 0.3s ease;
}

.item-total {
  font-size: 1.3rem;
  color: #007bff;
}

/* ===== Billing Summary Box ===== */
.list-group-item {
  background-color: #ffffff;
  color: #212529;
  border-radius: 5px;
  margin-bottom: 6px;
  border: 1px solid #ced4da;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.list-group-item:hover {
  background-color: #f1f9ff;
  transform: scale(1.01);
}

.list-group-item strong {
  color: #007bff;
}

/* ===== Profile Image ===== */
.rounded-circle {
  border: 2px solid #007bff;
}

/* ===== Footer ===== */
footer {
  padding: 20px;
  background-color: #e9ecef;
  text-align: center;
  color: #6c757d;
  transition: background-color 0.4s ease;
}

footer a {
  color: #007bff;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #0056b3;
  text-decoration: underline;
}
