@import url("colors.css");

:root {
  --mobile-breakpoint: 768px;
}

html {
  scroll-behavior: smooth;
}

/* Main spacing */
.main-content {
  padding-top: 1.5rem;
}

/* Product card styling */
.product-card {
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* Product image container */
.product-image-container {
  height: 160px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

@media (max-width: 767px) {
  .product-image-container {
    height: 140px;
  }
}

/* Product image */
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Mobile touch optimizations */
@media (hover: none) {
  .product-card:hover .product-image {
    transform: none;
  }
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }
  .product-card:hover .btn-group {
    opacity: 0 !important;
  }
}

/* Desktop hover effects */
@media (hover: hover) {
  .product-card:hover .product-image {
    transform: scale(1.05);
  }
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  .product-card:hover .btn-group {
    opacity: 1 !important;
  }
}

/* Sidebar adjustments for mobile */
.sidebar-container {
  position: relative;
  height: 100%;
}

.sidebar {
  position: sticky;
  top: 80px; /* Lower on mobile */
  margin-bottom: 15px;
}

@media (max-width: 991px) {
  .sidebar {
    top: 70px;
  }
}

/* Modal fixes for mobile */
.modal {
  z-index: 1060;
}

.modal-backdrop {
  z-index: 1050;
}

@media (max-width: 767px) {
  .modal-dialog {
    margin: 0;
    max-width: 100%;
    min-height: 100vh;
  }

  .modal-content {
    border-radius: 0;
    min-height: 100vh;
  }

  .modal-body {
    padding-bottom: 80px; /* Space for footer */
  }

  .modal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
  }
}

/* Text colors */
.text-primary {
  color: var(--dark) !important;
}

.text {
  color: var(--dark) !important;
  font-size: 25x !important;
}

.fas {
  color: var(--gray) !important;
}

/* Button styles */
.btn.btn-primary {
  background-color: var(--white) !important;
  border: 1.5px solid var(--dark) !important;
}

.btn-primary:hover {
  background-color: var(--dark) !important;
  color: var(--light) !important;
}

.btn.btn-outline-primary {
  background-color: var(--white) !important;
  border: 1.5px solid var(--dark) !important;
  color: var(--dark) !important;
}

.btn.btn-outline-primary:hover {
  background-color: var(--dark) !important;
  color: var(--light) !important;
}

/* Filter sections */
section[id^="category-"] {
  display: none;
}

#all-packages {
  display: block;
}

/* Active filter button */
.category-card.active {
  background-color: rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

/* Text and color styles (unchanged) */
.text-primary {
  color: var(--dark) !important;
}

.fas {
  color: var(--gray) !important;
}

/* Button styles */
.btn.btn-primary {
  background-color: var(--white) !important;
  border: 1.5px solid var(--dark) !important;
}

.btn-primary:hover {
  background-color: var(--dark) !important;
  color: var(--light) !important;
}

/* Features styling */
.feature-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  padding: 6px 8px;
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
  .main-content {
    padding-top: 1rem;
  }

  .product-title {
    font-size: 16px;
  }

  .btn-group {
    gap: 8px;
    padding: 2px;
  }

  .category-card {
    padding: 0.75rem;
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Smooth transitions */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Z-index management */
.product-card:hover {
  z-index: 5;
}

.btn-group {
  z-index: 2;
}
