/* Theme Colors */
:root {
  --primary: #fc4b41;          /* red/coral */
  --primary-light: #e03d33;    /* darker red for hover */
  --secondary: #f6bf5a;        /* yellow/gold */
  --secondary-light: #e4a847;  /* darker gold for hover */
  --accent: #408e9a;           /* teal */
  --accent-blue: #226cac;      /* blue */
  --dark: rgb(34, 34, 34);
  --light: rgb(250, 250, 250);
  --white: rgb(255, 255, 255);
  --gray: #bbbbbb;
  --primary-color: #fc4b41;
  --secondary-color: #f6bf5a;
}

/* Global Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--primary-color);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #e03d33;
  border-color: #e03d33;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #e4a847;
  border-color: #e4a847;
  color: var(--white);
}

.btn-success {
  background-color: var(--success);
  border-color: var(--success);
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-color) !important;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 400px;
  margin-bottom: 1rem;
}

.carousel-item {
  height: 70vh;
  min-height: 400px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 2rem;
  bottom: 20%;
}

.carousel-caption h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff !important;
}

.carousel-caption p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Featured Products Section */
.featured-products {
  position: relative;
}

.featured-products::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary-color),
    transparent
  );
}

/* Testimonials Section */
.testimonials {
  position: relative;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

/* Contact CTA Section */
.contact-cta {
  position: relative;
}

.contact-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary-color),
    transparent
  );
}

/* Product Cards */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card img {
  height: 250px;
  object-fit: cover;
}

.product-card .card-body {
  padding: 1.5rem;
}

.product-card .card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-card .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Clickable Product Cards */
.clickable-card {
  cursor: pointer;
  position: relative;
}

.clickable-card .card-clickable-area {
  cursor: pointer;
}

.clickable-card .card-actions {
  position: relative;
  z-index: 10;
}

.clickable-card .card-actions .btn {
  position: relative;
  z-index: 11;
}

.clickable-card .card-actions .btn:hover {
  z-index: 12;
}

/* Prevent click on buttons from triggering card click */
.clickable-card .card-actions .btn {
  pointer-events: auto;
}

.clickable-card .card-clickable-area {
  pointer-events: auto;
}

/* Special Packs Section */
.special-packs {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

.special-packs::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary-color),
    transparent
  );
}

.pack-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.pack-card-clickable {
  cursor: pointer;
}

.pack-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.pack-card-clickable:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.pack-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.pack-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pack-card:hover .pack-image-wrapper img {
  transform: scale(1.05);
}

.pack-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.pack-badge .badge {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pack-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.pack-card .card-body {
  padding: 1.5rem;
}

.pack-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.pack-card .card-text {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Pack Modal Styles */
.pack-item-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pack-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#packModal .modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#packModal .modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 15px 15px 0 0;
  border-bottom: none;
}

#packModal .modal-header .btn-close {
  filter: brightness(0) invert(1);
}

#packModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

#packModalItems .pack-item-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Testimonial Cards */
.testimonial-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.testimonial-card .card-body {
  padding: 2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.testimonial-card .text-primary {
  color: var(--secondary-color) !important;
}

.testimonial-card .badge {
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.8);
}

.testimonial-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

.testimonial-avatar-icon {
  width: 60px;
  height: 60px;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar-icon svg {
  width: 100%;
  height: 100%;
}

.testimonial-message {
  position: relative;
  overflow: hidden;
  max-height: 140px;
  transition: max-height 0.3s ease;
}

.testimonial-message.collapsed::after {
  display: none;
}

.testimonial-message.expanded {
  max-height: none;
}

.testimonial-message.expanded::after {
  display: none;
}

.testimonial-toggle {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.testimonial-toggle:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Testimonials Page Enhancements */
.testimonials-hero {
  background: linear-gradient(
      120deg,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.4)
    ),
    linear-gradient(120deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  position: relative;
}

.testimonials-hero .hero-subtitle {
  max-width: 650px;
  margin: 0 auto;
}

.testimonials-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 55%);
  pointer-events: none;
}

.testimonials-stats {
  background: #fff;
}

.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
}

.testimonials-page-section {
  position: relative;
  background: linear-gradient(180deg, #fdf9f5 0%, #fff7ec 35%, #f8fbff 65%, #ffffff 100%);
  z-index: 0;
}

.soft-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(246, 191, 90, 0.25), transparent 65%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.soft-glow::before,
.soft-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}

.soft-glow::before {
  width: 220px;
  height: 220px;
  top: -60px;
  left: -180px;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.45), transparent 70%);
}

.soft-glow::after {
  width: 260px;
  height: 260px;
  bottom: -40px;
  right: -160px;
  background: radial-gradient(circle, rgba(173, 216, 230, 0.4), transparent 70%);
}

.testimonials-page-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 215, 0, 0.15), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(64, 224, 208, 0.18), transparent 45%),
    radial-gradient(circle at 30% 80%, rgba(255, 182, 193, 0.18), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.testimonials-page-section .card {
  z-index: 1;
}

.quote-icon i {
  font-size: 1.8rem;
  color: var(--secondary-color);
}

.testimonials-cta {
  background: #fff;
}

.testimonials-cta .cta-card {
  border-radius: 24px;
  padding: 2.5rem;
  background: linear-gradient(135deg, #ffffff, #fff4e3);
}

/* Contact CTA */
.contact-cta {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
}

.contact-cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

/* Cart Badge */
/* Ensure the red circle sits on top-right of the cart icon */
.cart-icon-wrapper {
  position: relative;
  line-height: 1;
  display: inline-block;
}

.cart-icon-wrapper .fa-shopping-cart {
  font-size: 1.1rem;
  vertical-align: middle;
}

.cart-icon-wrapper .cart-count {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  transform: translate(50%, -50%) !important;
  font-size: 0.65rem !important;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}

/* Forms */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(252, 75, 65, 0.25);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(252, 75, 65, 0.25);
}

/* Search and Filter */
.search-filter {
  background-color: var(--light-bg);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

/* Pagination */
.page-link {
  color: var(--primary-color);
  border-color: rgba(252, 75, 65, 0.2);
  transition: all 0.3s ease;
}

.page-link:hover {
  color: var(--secondary-color);
  background-color: rgba(246, 191, 90, 0.1);
  border-color: rgba(246, 191, 90, 0.3);
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.page-item.disabled .page-link {
  color: rgba(252, 75, 65, 0.4);
  background-color: rgba(252, 75, 65, 0.05);
  border-color: rgba(252, 75, 65, 0.1);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Testimonials page pagination specific styling */
.testimonials-page-section .pagination {
  margin-top: 3rem;
}

.testimonials-page-section .page-link {
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  border-radius: 8px;
  margin: 0 0.25rem;
}

.testimonials-page-section .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  box-shadow: 0 4px 12px rgba(252, 75, 65, 0.3);
}

.testimonials-page-section .page-link:not(.disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(246, 191, 90, 0.2);
}

/* Admin Panel */
.admin-sidebar {
  background-color: var(--primary-color);
  min-height: 100vh;
  color: var(--white);
}

.admin-sidebar .nav-link {
  color: var(--white);
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.admin-sidebar .nav-link:hover {
  background-color: #f6bf5a;
  color: #ffffff;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

.admin-sidebar .nav-link.active {
  background: linear-gradient(135deg, #f6bf5a, #e4a847, #f6bf5a) !important;
  color: #2c1810 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(246, 191, 90, 0.4) !important;
  border-left: 4px solid #f6bf5a !important;
  transform: translateX(3px) !important;
}

.admin-sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--white);
  border-radius: 0 2px 2px 0;
}

/* Additional admin sidebar enhancements */
.admin-sidebar .nav-link i {
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
  transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover i {
  transform: scale(1.1);
  color: #ffffff;
}

.admin-sidebar .nav-link.active i {
  color: #2c1810 !important;
  transform: scale(1.2) !important;
  text-shadow: 0 1px 2px rgba(246, 191, 90, 0.3) !important;
}

/* Sidebar header styling */
.admin-sidebar .text-center {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.admin-sidebar h5 {
  margin: 0;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.admin-content {
  padding: 2rem;
}

/* Tables */
.table th {
  background-color: var(--light-bg);
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

/* Alerts */
.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffeaa7;
  color: #856404;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

/* Loading Spinner */
.spinner-border {
  color: var(--primary-color);
}

/* Modal */
.modal-header {
  background-color: var(--primary-color);
  color: var(--white);
}

.modal-header .btn-close {
  filter: invert(1);
}

/* Footer */
footer {
  margin-top: auto;
}

footer a {
  text-decoration: none;
  transition: color 0.3s ease;
  color: var(--secondary-color) !important;
}

footer a:hover {
  color: var(--white) !important;
}

footer .text-muted {
  color: var(--secondary-color) !important;
}

footer h5 {
  color: var(--secondary-color) !important;
}

.social-links a {
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .hero-slider {
    height: 50vh;
    min-height: 300px;
    margin-bottom: 2rem;
  }

  .carousel-item {
    height: 50vh;
    min-height: 300px;
  }

  /* Enhanced mobile spacing for better visual separation */
  .featured-products {
    margin-top: 17rem;
    padding-top: 1rem;
  }

  .featured-products h2 {
    margin-bottom: 2rem;
  }

  .product-card {
    margin-bottom: 1.5rem;
  }

  .product-card img {
    height: 200px;
  }

  /* Additional mobile spacing for testimonials and contact sections */
  .testimonials {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .contact-cta {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  /* Admin Panel Mobile Styles */
  .admin-sidebar {
    position: fixed !important;
    top: 0;
    left: -100%;
    width: 280px !important;
    height: 100vh !important;
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .admin-sidebar.show {
    left: 0;
  }

  .admin-content {
    margin-left: 0 !important;
    padding: 1rem !important;
    width: 100% !important;
  }

  /* Mobile sidebar toggle button */
  .sidebar-toggle {
    display: block !important;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1060;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  /* Overlay for mobile sidebar */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
  }

  .sidebar-overlay.show {
    display: block;
  }

  /* Adjust table responsiveness */
  .table-responsive {
    font-size: 0.85rem;
    border-radius: 8px;
    overflow: hidden;
  }

  .table-responsive th,
  .table-responsive td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
  }

  .table-responsive th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }

  .table-responsive td {
    border-bottom: 1px solid #f0f0f0;
  }

  .table-responsive tbody tr:hover {
    background-color: rgba(252, 75, 65, 0.05);
  }

  /* Mobile table improvements */
  .table-responsive .btn-group {
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    z-index: 10;
  }

  /* Ensure desktop dropdown menus appear above table */
  .table-responsive .dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
  }

  .table-responsive .btn-group .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin: 0;
  }

  .table-responsive .img-thumbnail {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover;
    border-radius: 4px;
  }

  .table-responsive .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .table-responsive .text-muted {
    font-size: 0.75rem;
  }

  /* Adjust card layouts */
  .card {
    margin-bottom: 1rem;
  }

  /* Ensure proper spacing for reservation cards container */
  .card .d-md-none {
    padding-bottom: 20px;
  }

  .card-body {
    padding: 1rem;
  }

  /* Adjust button groups */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    margin-bottom: 0.25rem;
    border-radius: 5px !important;
  }

  /* Adjust form layouts */
  .row .col-md-6 {
    margin-bottom: 1rem;
  }

  /* Adjust header spacing */
  .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start;
  }

  .d-flex.justify-content-between .btn-toolbar {
    margin-top: 1rem;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .carousel-caption {
    padding: 1rem;
    bottom: 10%;
  }

  .carousel-caption h1 {
    font-size: 1.5rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  /* Extra small screen admin adjustments */
  .admin-sidebar {
    width: 100% !important;
  }

  .admin-content {
    padding: 0.5rem !important;
  }

  .sidebar-toggle {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.5rem;
    font-size: 1.3rem;
    width: 45px;
    height: 45px;
  }

  .table-responsive {
    font-size: 0.8rem;
    margin: 0 -0.5rem;
  }

  .table-responsive.d-none.d-md-block {
    padding-bottom: 100px;
  }

  #reservations-table-wrapper {
    padding-bottom: 100px !important;
  }

  /* Force padding for reservations table wrapper */
  div#reservations-table-wrapper.table-responsive.d-none.d-md-block {
    padding-bottom: 100px !important;
  }

  .table-responsive table {
    margin-bottom: 0;
  }

  .table-responsive .card-body {
    padding: 0.5rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .d-flex.justify-content-between h1 {
    font-size: 1.5rem;
  }

  /* Dashboard statistics cards mobile improvements */
  .border-left-primary,
  .border-left-success,
  .border-left-warning,
  .border-left-info,
  .border-left-secondary {
    border-left: 4px solid !important;
  }

  .card .fa-2x {
    font-size: 1.5rem !important;
  }

  .text-xs {
    font-size: 0.7rem !important;
  }

  .h5.mb-0 {
    font-size: 1.1rem !important;
  }

  /* Mobile product cards */
  .product-card-mobile {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
  }

  .product-card-mobile:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .product-card-mobile .card-body {
    padding: 1rem;
  }

  .product-card-mobile .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }

  .product-card-mobile .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .product-card-mobile .btn-sm {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }

  .product-card-mobile .text-muted {
    font-size: 0.75rem;
  }

  .product-card-mobile .gap-1 {
    gap: 0.25rem !important;
  }

  .product-card-mobile .gap-2 {
    gap: 0.5rem !important;
  }

  /* Mobile dashboard cards */
  .dashboard-card-mobile {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
  }

  .dashboard-card-mobile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }

  .dashboard-card-mobile .card-body {
    padding: 1.5rem 1rem;
  }

  .dashboard-card-mobile .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }

  .dashboard-card-mobile .fa-2x {
    font-size: 2rem !important;
    margin-bottom: 0.5rem;
  }

  .dashboard-card-mobile .text-muted {
    font-size: 0.8rem;
    font-weight: 500;
  }

  .dashboard-card-mobile .btn-sm {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
  }

  .dashboard-card-mobile .w-100 {
    width: 100% !important;
  }

  /* Border colors for mobile cards */
  .dashboard-card-mobile.border-left-primary {
    border-left: 4px solid var(--primary-color) !important;
  }

  .dashboard-card-mobile.border-left-success {
    border-left: 4px solid var(--success-color) !important;
  }

  .dashboard-card-mobile.border-left-warning {
    border-left: 4px solid var(--warning-color) !important;
  }

  .dashboard-card-mobile.border-left-info {
    border-left: 4px solid var(--info-color) !important;
  }

  .dashboard-card-mobile.border-left-secondary {
    border-left: 4px solid var(--secondary-color) !important;
  }

  /* Mobile dashboard table cards */
  .dashboard-table-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
  }

  .dashboard-table-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
  }

  .dashboard-table-card .card-body {
    padding: 0.75rem !important;
  }

  .dashboard-table-card .text-primary {
    font-size: 0.9rem;
    font-weight: 600;
  }

  .dashboard-table-card .text-muted {
    font-size: 0.8rem;
  }

  .dashboard-table-card .text-success {
    font-size: 0.9rem;
    font-weight: 600;
  }

  .dashboard-table-card .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  /* Mobile category cards */
  .category-card-mobile {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .category-card-mobile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }

  .category-card-mobile .card-body {
    padding: 1rem;
  }

  .category-card-mobile .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }

  .category-card-mobile .text-muted {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .category-card-mobile .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .category-card-mobile .btn-sm {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
  }

  .category-card-mobile .gap-2 {
    gap: 0.5rem !important;
  }

  /* Mobile reservation cards */
  .reservation-card-mobile {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding-bottom: 120px; /* Increased space for dropdown content */
    margin-bottom: 20px; /* Add extra margin for better spacing */
  }

  .reservation-card-mobile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }

  .reservation-card-mobile .card-body {
    padding: 1rem;
    overflow: visible !important;
  }

  .reservation-card-mobile .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }

  .reservation-card-mobile .text-muted {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .reservation-card-mobile .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .reservation-card-mobile .btn-sm {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
  }

  .reservation-card-mobile .text-primary {
    font-size: 1rem;
    font-weight: 600;
  }

  .reservation-card-mobile .dropdown-menu {
    font-size: 0.8rem;
    z-index: 9999 !important;
    position: absolute !important;
    transform: none !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px; /* Add margin to prevent cutoff */
  }

  .reservation-card-mobile .dropdown-item {
    padding: 0.5rem 1rem;
  }

  .reservation-card-mobile .dropdown-item:hover {
    background-color: #f8f9fa;
  }

  .reservation-card-mobile .dropdown-item.text-danger:hover {
    background-color: #f8d7da;
  }

  /* Ensure dropdown appears above other cards */
  .reservation-card-mobile {
    position: relative;
    z-index: 1;
  }

  .reservation-card-mobile:hover {
    z-index: 2;
  }

  .reservation-card-mobile .dropdown.show {
    z-index: 9999 !important;
  }

  /* Ensure dropdown container has proper positioning */
  .reservation-card-mobile .btn-group {
    position: relative;
    z-index: 10;
  }

  /* Force dropdown to appear above everything */
  .reservation-card-mobile .dropdown-menu.show {
    z-index: 9999 !important;
    position: fixed !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    margin-bottom: 15px; /* Ensure dropdown doesn't get cut off */
  }

  /* Position dropdown relative to the button */
  .reservation-card-mobile .dropdown {
    position: static;
  }

  /* Ensure dropdown appears outside card boundaries */
  .reservation-card-mobile .btn-group {
    position: relative;
    z-index: 9999;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: #f6bf5a !important;
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.border-secondary {
  border-color: var(--secondary-color) !important;
}

/* Mobile reservation tracking cards */
.reservation-track-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.reservation-track-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.reservation-track-card .card-body {
  padding: 1rem;
}

.reservation-track-card .card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.reservation-track-card .text-muted {
  font-size: 0.75rem;
  line-height: 1.3;
}

.reservation-track-card .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
}

.reservation-track-card .text-primary {
  font-size: 1rem;
  font-weight: 600;
}

/* Product Details Page Styles */
.product-details {
  background-color: var(--white);
}

.product-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.product-image-container:hover img {
  transform: scale(1.05);
}

/* Product Image Carousel Styles */
.product-image-container .carousel {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image-container .carousel-item img {
  transition: none;
}

.product-image-container .carousel-item img:hover {
  transform: none;
}

.product-image-container .carousel-indicators {
  bottom: 10px;
}

.product-image-container .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.product-image-container .carousel-indicators button.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.product-image-container .carousel-control-prev,
.product-image-container .carousel-control-next {
  width: 10%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 10px;
}

.product-image-container .carousel-control-prev {
  left: 10px;
}

.product-image-container .carousel-control-next {
  right: 10px;
}

.product-image-container .img-thumbnail {
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.product-image-container .img-thumbnail:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.product-image-container .img-thumbnail.active {
  border-color: var(--primary-color);
}

.product-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 2.5rem;
}

.price-section h2 {
  font-weight: 700;
  color: var(--primary-color);
}

.description-section {
  border-top: 1px solid #e0e0e0;
  padding-top: 1.5rem;
}

.product-details-grid .detail-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.total-price-display {
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-card {
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  color: var(--primary-color);
}

.breadcrumb-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--secondary-color);
}

.breadcrumb-item.active {
  color: var(--gray);
}

/* Cart Styles */
.cart-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item .quantity-input {
  max-width: 60px;
}

.cart-item .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Mobile responsive styles for product details */
@media (max-width: 768px) {
  .product-title {
    font-size: 2rem;
  }

  .product-image-container {
    margin-bottom: 1rem;
  }

  .total-price-display {
    text-align: center;
  }

  .total-price-display .row {
    flex-direction: column;
  }

  .total-price-display .col-8,
  .total-price-display .col-4 {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  .feature-card {
    margin-bottom: 1rem;
  }

  /* Mobile cart adjustments */
  .cart-item .row {
    flex-direction: column;
  }

  .cart-item .col-md-2,
  .cart-item .col-md-4 {
    margin-bottom: 0.5rem;
    text-align: center;
  }
}

/* Critical: Force padding for reservations table wrapper - highest priority */
#reservations-table-wrapper {
  padding-bottom: 100px !important;
}

/* Product image and carousel: 550px height on all screens */
.product-image-container,
.carousel,
.carousel-inner,
.carousel-item {
  height: 550px !important;
  min-height: 550px !important;
  max-height: 550px !important;
  overflow: hidden;
  position: relative;
}

.carousel-item img,
.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.product-image-container {
  overflow: hidden;
  position: relative;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: 2;
  justify-content: center;
}

.carousel-indicators [data-bs-target] {
  background-color: #12306b;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 4px;
}
/* Make all product cards the same height and align actions at the bottom */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 450px; /* Adjust as needed */
}
.product-card .card-clickable-area {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.product-card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.product-card .card-actions {
  margin-top: auto;
}