
/* === Global Styles === */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    /* overflow-x: hidden; */
  }
  
  html {
    scroll-behavior: smooth;
  }
  #allProducts {
    scroll-margin-top: 100px;
  }
  
  .overlay {
    background-color: rgba(255, 255, 255, 0.9);
    min-height: 100vh;
  }
  
  /* === Main Content Spacing === */
  .main-content {
    margin-top: 80px;
    padding: 20px;
  }
  
  /* === Gallery Section === */
  .gallery-section {
    padding: 20px 0 20px 0;
    background: linear-gradient(135deg, #00d9ff 0%, #0066ff 100%);
  }
  .gallery-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
  }
  #homeGallery .carousel-inner {
    max-height: 650px;
    border-radius: 15px;
  }
  #homeGallery .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #000;
    border-radius: 15px;
  }
  .carousel-caption h5,
  .carousel-caption p {
    color: #fff;
    margin: 0;
  }
  .caption-bg {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
  }
  
  /* === Product Card === */
  .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
  }
  
  .product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    transition: transform 0.2s ease-in-out;
  
    /* Ensure consistent sizing */
    box-sizing: border-box;
  
    /* Vendor prefixes for older browsers */
    -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    -webkit-transition: transform 0.2s ease-in-out;
    -moz-transition: transform 0.2s ease-in-out;
  }
  
  /* Optional: Add hover effect */
  .product-card:hover {
    transform: translateY(-5px);
  }
  
  /* Responsive image inside product card */
  .product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
  }
  
  
  .product-card:hover {
    transform: scale(1.02);
  }
  
  .product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .product-card h5 {
    font-size: 18px;
    margin: 10px 0 5px;
    color: #333;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em;
    line-height: 1.4em;
  }
  
  .product-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #444;
  }
  
  .product-card .price {
    font-weight: bold;
    color: green;
    margin-bottom: 10px;
  }
  
  .product-card .btn {
    background-color: #ff6f00;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
  }
  
  .product-card .btn:hover {
    background-color: #e65c00;
  }
  
  /* Responsive tweaks */
  @media (max-width: 576px) {
    .product-card {
      padding: 10px;
      height: auto;
    }
  
    .product-card h5 {
      font-size: 16px;
    }
  
    .product-card p,
    .product-card .price {
      font-size: 14px;
    }
  
    .product-card .btn {
      font-size: 14px;
      padding: 8px 12px;
    }
  }
  
  
  /* === Buttons === */
  .buy-btn {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
  }
  .buy-btn:hover {
    background-color: #0056b3;
  }
  
  /* === Category Cards === */
  .category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  .category-heading {
    font-weight: 700;
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    animation: pop-in 1s ease-out;
  }
  .category-card {
    display: inline-block;
    width: 200px;
    margin: 0 10px;
    vertical-align: top;
  }
  .category-card .card {
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
  }
  .category-card .card:hover {
    transform: scale(1.05);
  }
  
  /* === Text & Animation === */
  .gradient-text {
    background: linear-gradient(to right, #ff6a00, #ee0979);
    /* -webkit-background-clip: text; */
    -webkit-text-fill-color: transparent;
    font-weight: bold;
  }
  @keyframes pop-in {
    0% {
      opacity: 0;
      transform: scale(0.8) translateY(-10px);
    }
    100% {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
  
  /* === Scrolling Wrapper === */
  .scrolling-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
  }
  .scrolling-wrapper::-webkit-scrollbar {
    height: 8px;
  }
  .scrolling-wrapper::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
  }
  
  /* === Admin Button === */
  .btn-admin {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    border: none;
    text-decoration: none;
  }
  .btn-admin:hover {
    background: linear-gradient(135deg, #1abc9c, #2980b9);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    color: white;
  }
  
 
  
  /* === Scrolling Wrapper === */
  .scrolling-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
  }
  .scrolling-wrapper::-webkit-scrollbar {
    height: 8px;
  }
  .scrolling-wrapper::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
  }
  

  
  .product-name-limit {
    display: -webkit-box; /* Required for line-clamp to work */
    -webkit-line-clamp: 2; /* Limit text to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em; /* Control spacing between lines */
    min-height: 2.8em; 
}

  

      
  .product-card:hover {
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    transform: translateY(-5px);
  }
      

  



      





  
  
  
  