/* General Styles */

.products-hero {
  position: relative;
  width: 100%;
  height: 400px;
  /* Adjust height as needed */
  background: url('../img/banner5.jpg') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  /* Dark overlay for contrast */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay h1 {
  color: #fff;
  font-size: 3rem;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px 40px;
  border-radius: 10px;
  text-align: center;
}

.hero-content p {
  color: #fff;
  font-size: 1.2rem;
}

/* Breadcrumb Styles */
.breadcrumb {
  padding: 10px 20px;
  background-color: #f8f9fa;
  border-radius: 5px;
  margin: 20px auto;
  width: 70%;
  /* Match the width of .category-page */
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.breadcrumb li {
  display: inline-block;
  margin: 0 5px;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  /* Add a separator between breadcrumb items */
  margin-left: 10px;
  color: #666;
}

.breadcrumb a {
  color: #0b175f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #0b175f;
}
.search-container {
  font-family: 'Cairo';
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 30px auto;
  direction: rtl;
}

#searchInput {
  font-family: 'Cairo';
  width: 100%;
  max-width: 400px;
  padding: 10px 40px 10px 15px; /* extra space on the left for the icon */
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  direction: rtl;
  text-align: right;
  transition: border-color 0.3s;
  background: url("data:image/svg+xml,%3Csvg fill='gray' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.71 20.29l-3.4-3.39a9 9 0 10-1.41 1.41l3.39 3.4a1 1 0 001.42-1.42zM5 11a6 6 0 1112 0 6 6 0 01-12 0z'/%3E%3C/svg%3E")
  no-repeat left 10px center;
background-size: 20px 20px;
}

#searchInput:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

#searchResults {
  font-family: 'Cairo';
  position: absolute;
  top: 100%;
  right: 0; /* aligns with RTL input */
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
  z-index: 999;
  direction: rtl;
  text-align: right;
}

#searchResults ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#searchResults li {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

#searchResults li:last-child {
  border-bottom: none;
}

#searchResults a {
  text-decoration: none;
  color: #333;
  display: block;
}

#searchResults li:hover {
  background-color: #f5f5f5;
}


.products-page {
  padding: 20px;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
}

.page-description {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
}

/* Product Categories Grid */
.product-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 columns */
  gap: 20px;
  padding: 0 20px;
}

.category-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  /* Use Flexbox */
  flex-direction: column;
  /* Stack content vertically */
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-title {
  font-size: 1.5rem;
  color: #222;
  margin: 15px 0;
  padding: 0 15px;
}

.category-description {
  font-size: 1rem;
  color: #555;
  padding: 0 15px;
  flex-grow: 1;
  /* Allow description to grow and push button to the bottom */
}


.category-button {
  display: inline-block;
  margin: 20px;
  padding: 10px 20px;
  background: #0b175f;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  text-align: center;
}

.category-button:hover {
  background: #0056b3;
}

@media (max-width: 900px) {
  .product-categories {
    grid-template-columns: repeat(1, 1fr);
    /* 2 columns on tablets */
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.category-card {
  animation: fadeIn 1s ease-in-out;
}