/* Body background and font */
body {
  background-color: #f8f9fa;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #343a40;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html, body {
  height: 100%;
  min-height: 100%;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  background: #fff;
}
.navbar-brand {
  font-size: 2rem;
  letter-spacing: 1px;
}
.nav-link {
  font-weight: 500;
  color: #343a40 !important;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: #007bff !important;
}

.main-content {
  flex: 1 0 auto;
}

/* Cards */
.card {
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: none;
    transition: box-shadow 0.2s;
    background: #fff;
}

.card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.card-text {
    color: #555;
    font-size: 0.97rem;
    margin-bottom: 0.5rem;
}

.card-text strong {
    color: #198754;
    font-size: 1.1rem;
}


.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.75rem 0.75rem 0 0;
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: block;
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Product Detail Image Styling */
.product-detail-img {
    object-fit: cover;
    width: 100%;
    max-width: 420px;
    height: 340px;
    border-radius: 1rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    background: #f8f9fa;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Review Styling */
.review-list .card {
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: none;
    margin-bottom: 1.2rem;
}
.review-list .card-body {
    padding: 1.2rem;
    display: flex;
    align-items: flex-start;
}
.review-list .rounded-circle {
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.review-list .fw-bold {
    font-size: 1.1rem;
}
.review-list .text-warning {
    font-size: 1.1rem;
}
.review-list .text-secondary {
    font-size: 1.1rem;
}
.review-list .btn-sm {
    border-radius: 0.5rem;
    font-weight: 600;
    min-width: 70px;
}

/* checkout */
.checkout-card {
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  background: #fff;
  margin-bottom: 2rem;
  padding: 2rem;
}

/* Buttons */
.btn-success .btn-primary {
  border-radius: 2rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  font-size: 1.1rem;
}
.btn-success {
  background: linear-gradient(90deg, #28a745 0%, #00c851 100%);
  border: none;
}
.btn-success:hover {
  background: linear-gradient(90deg, #218838 0%, #009e43 100%);
}
.btn-primary {
  background: linear-gradient(90deg, #007bff 0%, #00c6ff 100%);
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #0056b3 0%, #007bff 100%);
}

/* Tables */
.table th, .table td {
  vertical-align: middle;
}
.table thead th {
  background: #f1f3f6;
  font-weight: 600;
}

/* Forms */
input, select, textarea {
  border-radius: 0.5rem !important;
  border: 1px solid #ced4da !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #007bff !important;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.15) !important;
}

/* Alerts */
.alert {
  border-radius: 0.5rem;
  font-size: 1.05rem;
}

/* Footer */
.footer {
  background: #23272b;
  color: #fff;
  border-top: 1px solid #343a40;
  font-size: 1rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.footer a {
  transition: color 0.2s;
}
.footer a:hover {
  color: #00c6ff !important;
  text-decoration: none;
}
@media (min-width: 992px) {
  .footer .row.align-items-center {
    min-height: 60px;
  }
}

/* Profile Avatar */
.rounded-circle {
  border: 3px solid #007bff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Form field spacing */
form .form-group {
  margin-bottom: 1rem;
}

/* Make images responsive */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Spinner alignment */
#loading-spinner {
  margin-left: 0.5rem;
}

/* Utility: center content vertically */
.v-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mt-4 { margin-top: 2rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.py-4 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

/* Custom scroll-to-top button (if you add one) */
#scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: none;
  background: #007bff;
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: none;
  transition: background 0.2s;
}
#scroll-to-top:hover {
  background: #0056b3;
}

/* Responsive tweaks */

@media (max-width: 576px) {
    .row > [class*='col-'] {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .card-img-top {
        height: 120px;
    }
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .card-title { font-size: 1.1rem; }
  .card-img-top {
        height: 140px;
    }
  .card-body {
        padding: 1.1rem;
    }
  .checkout-card {
    padding: 1rem;
  }
}
