/* General Navbar Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  overflow-x: hidden;
  height: 100%;
  -webkit-overflow-scrolling: touch; /* ✅ Add this */
}


html, body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: #0cc4e9 !important;
  overflow-x: hidden;
  min-height: 100vh !important; /* instead of height: 100% */
}


  main {
       background-color: #0cc4e9;
    display: flex;
    flex-direction: column;
    width: 100%;
  
  }
*:not(.navbar):not(.navbar *) {
    box-sizing: border-box;
}

.product-image {
  position: relative;
  overflow: hidden;
}

body.homepage footer,
body.homepage .site-footer,
body.homepage .footer-container,
body.homepage .footer-bottom {
  display: none !important;
}


 
.hero-section {
    background-image: url('../img/home-image.jpg');
    background-size: cover;
    background-position: center center; /* centers image perfectly */
    background-repeat: no-repeat;
    height: 55vh; /* Adjust this slightly if necessary */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 0;
    padding: 0;
    position: relative;
    width: 100%;
    overflow: hidden; /* prevent scrollbars if needed */
}
@media (max-width: 768px) {
.hero-section {
  background-size: cover;
  background-position: center top;
  height: 35vh;
}
}



/* Navbar */
.navbar {
  position: relative;
  z-index: 2; /* Ensure navbar stays above the hero section */
  box-shadow: none !important; /* Optional, remove any shadow */
}

/* Logo container */
.logo-container {
  opacity: 0;
  animation: slideUp 1s forwards;
}

/* Image and word logo styling */
.logo-image,
.word-logo {
  display: block;
  margin: 0 auto;
  
}

.logo-image {
  max-width: 500px; /* Increase size of the image logo */
  margin-bottom: 20px; /* Increase margin below image */
}

.word-logo {
  max-width: 600px; /* Increase size of the word logo */
  margin-top: 20px; /* Increase margin above word logo */
}

/* Slide-up animation */
@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile View */
@media (max-width: 768px) {
  .logo-image,
  .word-logo {
    max-width: 250px; /* Adjust size on mobile */
  }

  .word-logo {
    max-width: 300px;
  }
}


/* Hide Arabic categories by default */
.category.ar {
  display: none;
}
#products-section {
  padding: 40px 20px;
  background-color: #0cc4e9 !important;
  background-image: none !important;
  background-size: cover;
  margin-top: 0px;
  width: 100%; /* Change from max-content to full width */
  border-radius: 0;
  background-position: center center;


}

#products-section h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

.product-category {
  margin-bottom: 50px;
}

.product-category h3 {
  font-size: 24px;
  margin-bottom: 15px;
  text-align: center;
  color: #333;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.product-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 220px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  height: auto; /* ✅ This fixes the squished height issue */
}


.product-item:hover {
  transform: scale(1.05);
}

.product-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.product-item h4 {
  font-size: 18px;
  margin-top: 10px;
}

.product-item p {
  font-size: 14px;
  color: #555;
  margin: 10px 0;
}

.product-item .buy-btn {
  background-color: #28a745;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.product-item .buy-btn:hover {
  background-color: #218838;
}

.view-more-btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  text-align: center;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.view-more-btn:hover {
  background-color: #0056b3;
}
.price {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-inline {
  display: inline-flex;
  align-items: baseline;
}

.aed-icon {
  height: 0.75em !important;
  width: auto !important;
  vertical-align: -0.08em !important;
  display: inline-block !important;
  fill: #000 !important;
  margin-right: 0px;
  fill: #0cc4e9 !important;
  stroke: #0cc4e9 !important;       /* adds border */
  stroke-width: 8 !important;
}

.price-value {
  color: #0cc4e9;
  font-weight: 600;
  font-size: 1em;
  line-height: 1;
}



@media (max-width: 768px) {
  .product-list {
    flex-direction: column;
    align-items: center;
  }

  .product-item {
    width: 90%;
    margin-bottom: 20px;
  }
}

.search-result-link {
  text-decoration: none !important;
}
.search-result-title {
  text-decoration: none !important;
  color: #0cc4e9; /* or your preferred color */
  font-weight: 600;
}

mark {
  background-color: transparent;
  color: #0cc4e9;
  font-weight: bold;
}


.view-all-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.view-all-link:hover {
  text-decoration: underline;
}
.categories {
  margin: 40px 0;
  padding: 20px;
  text-align: center;
  background-color: #ffffff !important;
  background-image: none !important;
  width: 100%;
}


.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Always 3 per row */
  gap: 25px 15px;
  padding: 10px 20px;
  max-width: 1024px;   /* ✅ Optional, keeps the grid from going too wide on large screens */
  margin: 0 auto;       /* ✅ Center the grid */
}




/* Category Item */
.category-item {
  background-color: #0cc4e9;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 110px;         /* ✅ fixed height */
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  overflow: hidden;      /* ✅ clip overflow */
}

/* Category text */
.category-item p {
  font-size: 13.5px !important;
  font-weight: 550 !important;
  color: #ffffff;
  margin: 0;
  padding: 0 6px;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;         /* ✅ hide overflow */
  text-overflow: ellipsis;  /* ✅ add "..." if needed */
}

/* Image */
.category-item img {
width: 50px;
height: 50px;
object-fit: contain;
margin-bottom: 8px;
}


/* Hover */
.category-item:hover {
transform: scale(1.04);
transition: transform 0.2s ease;
}

/* Responsive Tweaks */
@media (max-width: 480px) {
  .category-grid {
    padding-left: 10px; /* Add left padding on phones */
    padding-right: 10px; /* Optional, adjust right padding too */
  }
}

.category-item img {
  width: 40px;
  height: 40px;
}

.category-item p {
  font-size: 13.5px;
  font-weight: 710;
}


@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);  /* ✅ Force 3 per row */
    gap: 15px 10px;
  }

.category-item img {
  width: 45px;
  height: 45px;
}

.category-item p {
  font-size: 11px;
}

}

.button-container {
  display: flex;
  justify-content: center; /* ✅ Changed from flex-start to center */
  gap: 20px;               /* ✅ Changed from 20px to 15px */
  margin-top: 350px;       /* ✅ Changed from 350px to 150px */
  flex-wrap: wrap;         /* ✅ Added to allow wrapping on small screens */
}

.btn {
  margin-top: 0;
  width: 150px;
  max-width: 250px;
  font-size: 16px;
  padding: 15px 0;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease;
}


.add-listing {
background-color: #0cc4e9; /* Default background color */
transition: background-color 0.3s ease, transform 0.2s ease;

}

.add-listing:hover {
background-color: #51d5f3; /* Hover color */
}

.shop-now {
background-color: #fa5391 !important; /* Default background color */
}

.shop-now:hover {
background-color: #e74e85 !important; /* Hover color */
}

/* Responsive: buttons remain side by side on mobile */
@media (max-width: 768px) {
.button-container {
  justify-content: center; /* Center the buttons */
  gap: 15px; /* Slightly reduce space between buttons */
  margin-top: 150px; /* Adjusted margin for mobile */
}

.btn {
  margin-top: 0; /* Remove margin */
  width: 120px; /* Don't stretch full width */
  max-width: 250px; /* Limit max width for smaller look */
  font-size: 12px; /* Smaller font size on mobile */
  padding: 10px 20px; /* Smaller padding on mobile */
  text-decoration: none; /* ✅ Prevent underline */
}
}

.grd {
  margin-top: 45px; /* Increase this value to move the search bar further down */
  background-color: #0cc4e9;
  padding: 20px;
  width: 100%;
}

.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  background-color: #0cc4e9; /* or white if needed */
  padding: 20px;
  border-radius: 0;
}

.search-bar {
  padding: 20px;
  width: 600px;
  border-radius: 30px;
  border: 1px solid #ccc;
  font-size: 16px;
  color: #0cc4e9 !important; /* Blue text */
  background-color: #ffffff !important; /* White background */
  outline: none;
  box-shadow: none;
}


.search-bar:focus {
  border-color: #0cc4e9 !important;
  outline: none !important;
  box-shadow: 0 0 10px 2px #0cc4e9 !important;
}


.filter-container {
display: flex;


}

.filter-dropdown {
padding: 12px;
border-radius: 5px;
border: 1px solid #ccc;
color: #ffffff;
font-size: 16px;
background: rgb(28,26,26);
background: linear-gradient(148deg, rgba(28,26,26,1) 0%, rgba(125,122,122,1) 87%);}

.filter-dropdown:focus {
border-color: #0cc4e9;
}

.profile-link {
font-family: Arial, sans-serif; /* Match login button font */
font-size: 16px; /* Match login button size */
color: #000; /* Match login button color */
text-decoration: none;
display: flex;
align-items: center;
}

.no-image {
font-weight: bold; /* Match the login button style */
}

.user-info-text {
text-decoration: none;
display: flex;
align-items: center;
font-weight: bolder;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
font-size: 17px; /* Increase font size for links */
font-family: 'Poppins', sans-serif;
background-color: transparent; /* Transparent background */
transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.user-icon {
width: 50px; /* Adjust icon size */
height: 30px;
border-radius: 50%;
}
.search-bar::placeholder {
color: #0cc4e9; /* Change to your desired color */
}

a.btn.add-listing {
text-decoration: none;
}

.grd{
background-color: #ffffff;
padding: 0px;          /* Add padding for spacing *//
/* Optionally add a box-shadow for depth */
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
width: 100%;
}




#products-section {
background-color: #0cc4e9;
background-image: url('../img/Visual\ identity\ \ Dealify33_page-0001.jpg');
  background-size:cover;
  width: 100%;
padding: 50px 20px;
text-align: center;
margin-bottom: 50px; /* Add space at the bottom of the section */
}

h2 {
font-family: 'Arial', sans-serif;
font-size: 2.5em;
margin-bottom: 30px;
color: #000000;
}

.product-category {
margin-bottom: 60px;
}

.product-category h3 {
font-size: 2em;
margin-bottom: 20px;
text-align: center;
color: #000000;
}

.product-category h3 span.category {
  font-size: 25px;         /* or any size like 28px */
  font-weight: bold;
  color: #ffffff;
}


.product-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 40px; /* Space between items */
margin-top: 20px; /* Space between title and product list */
}

.product-item {
background-color: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
width: 200px;
padding: 10px;
position: relative;
margin-bottom: 30px; /* Space between rows */
transition: transform 0.3s ease-in-out;
}

.product-item:hover {
transform: scale(1.05);
}

.product-image img {
width: 100%;
height: 120px;
object-fit: cover;
border-bottom: 1px solid #e0e0e0;
}

.product-details {
padding: 20px;
text-align: left;
}

.product-details h4 {
font-size: 15px;
font-weight: bold;
margin-bottom: 6px;
color: #7f7c7a;
text-transform: capitalize;
}

.product-details .price {
font-size: 16px;
font-weight: bold;
color: #000000;
margin-bottom: 13px;
}

.product-details .description {
font-size: 1em;
color: #777;
margin-bottom: 15px;
display: none;
}

.view-btn {
display: inline-block;
background-color: #0cc4e9;
color: #fff;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
font-weight: bold;
transition: background-color 0.3s ease, transform 0.2s ease;
}

.view-btn:hover {
background-color: #51d5f3;
}

.view-more-btn {
display: inline-block;
margin-top: 30px;
background-color: #979492; /* A fresh, grey color */
color: #fff;
padding: 12px 30px; /* Larger padding for a bigger button */
border-radius: 25px; /* Rounded corners for a smoother look */
text-decoration: none;
font-weight: bold;
font-size: 1.1em; /* Slightly larger text */
transition: background-color 0.3s ease, transform 0.2s ease;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow to make it pop */
}

.view-more-btn:hover {
background-color: #72706e; /* Darker green on hover */
transform: translateY(-5px); /* Slight lift effect when hovering */
}

.view-more-btn:active {
background-color: #1e787e; /* Even darker green on click */
transform: translateY(0); /* Button presses down on click */
}

.view-more-btn:focus {
outline: none; /* Removes the outline when focused */
box-shadow: 0 0 0 4px rgba(72, 206, 255, 0.5); /* Blue focus ring for accessibility */
}

/* Search container */
.search-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-top: 30px; /* Reduced margin for a more compact look */
width: 100%;
position: relative;
background-color: #ffffff;
padding: 0 15px;
border-radius: 0;
}

/* Search bar styling */
.search-bar {
width: 100%;
max-width: 400px; /* Reduced max width */
padding: 12px 20px; /* Adjusted padding for more compact design */
font-size: 16px; /* Slightly smaller font size */
border: 1px solid #ddd;
border-radius: 30px;
margin-bottom: 10px; /* Reduced space between search bar and results */
background-color: #444;
color: white;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}

.search-bar:focus {
border-color: #6c5ce7;
outline: none;
box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

/* Search results container */
.search-results {
width: 100%;
max-width: 400px; /* Reduced max width for compactness */
display: flex;
flex-direction: column;
gap: 10px; /* Reduced gap between results */
margin-top: 5px;
position: absolute;
top: 60px; /* Adjusted position */
left: 50%;
transform: translateX(-50%);
background-color: #fff;
border: 1px solid #ffffff;
border-radius: 10px;
z-index: 10;
display: none;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show search results with animation */
.search-results.show {
display: block;
opacity: 0;
transform: translate(-50%, 10px);
}

/* Individual search result items */
.search-result-item {
background-color: #ffffff;
border-radius: 8px;
padding: 10px; /* Reduced padding for smaller screens */
transition: background-color 0.3s ease, transform 0.3s ease;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
text-decoration: none;
}

.search-result-item:hover {
background-color: #ffffff;
transform: translateY(-2px);
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

/* Search result title styling */
.search-result-title {
font-weight: bold;
font-size: 16px;
color: #0cc4e9;
text-transform: capitalize;
}

/* Location styling */
.search-result-location {
font-size: 14px;
color: #777;
margin-top: 5px;
display: none;
}

/* Price styling */
.search-result-price {
font-size: 14px;
color: #333;
margin-top: 5px;
font-weight: bold;
display: none;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
.search-bar {
  padding: 12px 18px; /* Slightly smaller padding */
  font-size: 14px; /* Adjusted font size */
}

.search-results {
  width: 90%;
  max-width: 400px; /* Adjusted max width */
  top: 55px; /* Adjusted for smaller screens */
}

.search-result-title {
  font-size: 14px;
}

.search-result-location,
.search-result-price {
  font-size: 12px;
}
}

@media (max-width: 480px) {
.search-bar {
  width: 100%;
  max-width: 350px; /* Further reduce width */
  padding: 10px 14px; /* Adjusted padding for mobile */
  font-size: 12px; /* Adjusted font size */
}

.search-results {
  width: 100%;
  max-width: 350px; /* Adjusted width for mobile */
  top: 50px; /* Adjusted position for mobile */
}

.search-result-item {
  padding: 8px;
}

.search-result-title {
  font-size: 12px;
}

.search-result-location,
.search-result-price {
  font-size: 10px;
}
}




