/* Base styles */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* Navbar styles */
.navbar-brand img {
  width: 140px;
  height: auto;
}

.nav-bar {
  background-color: rgba(255, 255, 255, 0.98) !important;
}

/* Cart container styles */
#shopping-cart {
  margin-top: 40px;
  padding: 20px;
  /* background-color: #fff; */
  border-radius: 10px;
  /*   */
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

/* Table styles */
.tbl-cart {
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.table-header th {
  background-color: #f8f9fa;
  font-weight: 600;
  padding: 15px;
  border-bottom: 2px solid #dee2e6;
}

.tbl-cart td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid #dee2e6;
}

/* Product info styles */
.product-info {
  display: flex;
  align-items: center;
}

/* Base card layout styles */
.cart-item-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.cart-item-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.cart-item-details {
  padding: 20px;
}

.detail-group {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.detail-group:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: #666;
  width: 40%;
}

.detail-value {
  text-align: right;
  color: #333;
  width: 60%;
}

.detail-value.price {
  color: #007bff;
  font-weight: 600;
}

.remove-item {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.cart-item-header {
  position: relative;
}

/* Booking form adjustments */
.booking-form {
  margin-top: 15px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
}

.product-name {
  font-weight: 500;
  color: #333;
}

/* Booking form styles */

.card-title {
  color: #333;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-label {
  font-weight: 500;
  color: #555;
}

.form-label i {
  margin-right: 8px;
  color: #007bff;
}

.form-control {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 10px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Variations section styles */
.variations-section {
  margin-top: 20px;
}

.variations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.variation-item {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Updated Variation Styles */
.variation-item input[type="radio"]:checked + label {
  background-color: #d8a540;
  color: white;
  padding: 10px;
  border-radius: 6px;
}

.variation-item input[type="radio"]:checked + label .variation-name,
.variation-item input[type="radio"]:checked + label .variation-price {
  color: white;
}

.variation-item {
  transition: all 0.3s ease;
}

.variation-item:hover {
  border-color: #d8a540;
}

.variation-item label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  cursor: pointer;
}

.variation-name {
  font-weight: 500;
  color: #333;
}

.variation-price {
  color: #666;
  font-size: 0.9em;
}

/* Button styles */
#btnEmpty {
  background-color: transparent;
  border: 1px solid #dc3545;
  padding: 8px 15px;
  color: #dc3545;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

#btnEmpty:hover {
  background-color: #dc3545;
  color: #fff;
}

.btnRemoveAction {
  color: #dc3545;
  text-decoration: none;
  transition: color 0.3s ease;
}

.btnRemoveAction:hover {
  color: #c82333;
}

/* Empty cart styles */
.no-records {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

/* Login prompt styles */
.login-prompt {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
}

/* Cart footer styles */
.cart-footer {
  margin-top: 30px;
  text-align: right;
}

/* Responsive styles */
@media (max-width: 768px) {
  #shopping-cart {
    margin: 20px 10px;
    padding: 15px;
  }

  .cart-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .tbl-cart {
    font-size: 0.9em;
  }

  .product-info {
    flex-direction: column;
    text-align: center;
  }

  .cart-item-image {
    margin: 0 auto 10px;
  }

  .variations-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .cart-footer {
    text-align: center;
  }

  /* Hide less important columns on mobile */
  .tbl-cart th:nth-child(2),
  .tbl-cart th:nth-child(3),
  .tbl-cart td:nth-child(2),
  .tbl-cart td:nth-child(3) {
    display: none;
  }

  /* Adjust remaining columns */
  .tbl-cart td:first-child {
    width: 60%;
  }

  .tbl-cart td:nth-child(4),
  .tbl-cart td:nth-child(5) {
    width: 20%;
    font-size: 0.85em;
  }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
  .booking-form {
    padding: 15px;
  }

  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .variation-item {
    padding: 10px;
  }

  .btn {
    width: 100%;
    margin: 5px 0;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-item {
  animation: fadeIn 0.3s ease-out;
}

/* Print styles */
@media print {
  .navbar,
  .btnRemoveAction,
  #btnEmpty,
  .cart-footer {
    display: none;
  }

  #shopping-cart {
    box-shadow: none;
    margin: 0;
    padding: 0;
  }

  .tbl-cart {
    border: 1px solid #ddd;
  }
}

/* Accessibility improvements */
:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.form-control:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* High contrast mode support */
@media (forced-colors: active) {
  .variation-item:hover,
  .btn:hover {
    border: 2px solid CanvasText;
  }
}
