:root {
      --primary-color: #2E86AB;
      --secondary-color: #4CAF50;
      --dark-color: #343a40;
      --light-color: #f8f9fa;
  }
  
.nav-link {
    color: #fff !important;
}
.nav-link:hover {
    color: rgba(255,255,255,0.75) !important;
}
.btn-light {
    background-color: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.25) !important;
}
#globalSearch::placeholder {
    color: rgba(255,255,255,0.7) !important;
}

  .dark-mode {
      background-color: #121212;
      color: #f8f9fa;
  }

  .dark-mode .card,
  .dark-mode .modal-content,
  .dark-mode .dropdown-menu {
      background-color: #1e1e1e;
      color: #f8f9fa;
      border-color: #444;
  }

  .dark-mode .text-muted {
      color: #aaa !important;
  }

  .dark-mode .form-control,
  .dark-mode .form-select {
      background-color: #2d2d2d;
      color: #fff;
      border-color: #444;
  }

  .category-card {
      transition: transform 0.3s, box-shadow 0.3s;
      border: none;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .category-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  .product-card {
      transition: transform 0.3s;
      border: none;
      box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  }

  .product-card:hover {
      transform: translateY(-3px);
  }
  
 #products-pagination-container {
        transition: opacity 0.3s ease, height 0.3s ease;
        position: relative;
    }
    .loading-content {
        opacity: 0.5;
        pointer-events: none;
    }
    .loading-spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 100;
        transition: opacity 0.3s ease;
    }
  
  .hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-static-banner {
    position: relative;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 600px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.hero-content h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Scrollbar Styling */
.overflow-x-auto {
    scrollbar-color: #888 #f1f1f1;
    scrollbar-width: thin;
}

.overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Category Card Styling */
.category-image {
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.flex-shrink-0 {
    scroll-snap-align: start;
}

.d-flex {
    scroll-snap-type: x mandatory;
}

.cursor-zoom {
    cursor: zoom-in;
}
.modal-content {
    background-color: rgba(0,0,0,0.8) !important;
}

@media (max-width: 767px) {
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-content {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        text-align: center;
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .navbar-collapse {
        flex-direction: column;
    }
    
    .navbar-nav.me-auto {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .d-flex.justify-content-center {
        order: 2;
        margin: 1rem 0;
        width: 100%;
    }
    
    .d-flex.justify-content-center .input-group {
        max-width: 100%;
    }
    
    .d-flex:last-child { /* Right side buttons */
        order: 3;
        margin-top: 1rem;
        justify-content: center;
        width: 100%;
    }
    
       .navbar-collapse .flex-grow-1 {
        margin: 20px 0 !important;  /* Top and bottom margin */
        max-width: 100% !important;
    }
    
     .product-card {
        margin-bottom: 15px;
    }
    
    .product-card .card-img-top {
        height: 180px;
        object-fit: cover;
    }
    
    .product-card .card-title {
        font-size: 1rem;
    }
    
    .product-card .btn {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
    
}

/* Adjust search box for mobile */
/* Mobile view adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        flex-direction: column;
    }
    
    .navbar-nav.me-auto {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .d-flex.justify-content-center {
        order: 2;
        margin: 1rem 0;
        width: 100%;
    }
    
    .d-flex.justify-content-center .input-group {
        max-width: 100%;
    }
    
    .d-flex:last-child { /* Right side buttons */
        order: 3;
        margin-top: 1rem;
        justify-content: center;
        width: 100%;
    }
    
     .navbar-collapse .flex-grow-1 {
        margin: 20px 0 !important;  /* Top and bottom margin */
        max-width: 100% !important;
    }
    
 
}



