zbody {
  background-image: url("../uploads/para.jpeg");
}

/* Custom CSS for offcanvas */
.offcanvas {
  width: 280px; /* Adjust width as needed */
  background-color: #f8f9fa; /* Light background */
}

.nav-link {
  color: white;
  font-size: 20px;
  font-weight: 300;
  font-weight: bolder;
  padding: 10px 15px;
  margin: 5px 0;
}

.nav-link.active {
  font-weight: bold;
  background-color: #ff8c00;
  border-radius: 5px;
}
.navbar {
  background-color: #9e363a; /*#00c9a7, rgb(228, 65, 65) #9e363a*/
}
footer {
  background-color: #333333;
}
/*background-color:  #c1432e; /* #ff8c00, #00C9A7, #222831  rgb(146, 85, 62)*/
/*   
  height: 140px; */
/* z-index: 1000; */
/* display: flex; */
/* position: relative; */
/* padding: 15 30px; /* Adds some padding on the sides of the navbar */

/* .navbar {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  height: 150px !important;
  width: 100% !important;
} */

/* .payment-icon {
  transition: transform 0.3s ease;
  height: 20px;
}

.payment-icon:hover img {
  filter: grayscale(0) brightness(1) !important;
  transform: scale(1.1);
}

.payment-icon img {
  transition: all 0.3s ease;
}

a.text-warning:hover {
  color: blue !important;
  
}

.social-links a:hover img {
  transform: scale(1.1);
}

.social-links img {
  transition: transform 0.3s ease;
} */

/* this one is for searchbar margin bottom between card at page accueil*/
.col-12.mb-5 {
  margin-bottom: 140px !important; /* Adjust value as needed */
}

/* Style for the search input */
.ongletrecherche input[type="search"] {
  flex: 1;
  margin-right: 5px;
  height: 45px;
  width: 40px;
  border-radius: 40px;
  background-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 0, 0, 0.5);
  padding: 0 15px; /* Add padding for better visual */
}

/* Container for the search bar */
.ongletrecherche {
  position: absolute;
  top: 50px;
  left: 50%; /* Center it horizontally */
  transform: translateX(-50%); /*Adjust the transform for perfect centering */
  z-index: 1;
  color: rgba(255, 0, 0, 0.5);
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Media Query for smaller screens */
@media (max-width: 0px) {
  .ongletrecherche {
    top: 70%; /* Adjust vertical position for smaller screens */
    left: 50%;
    transform: translateX(-50%); /*Center horizontally */
    width: 80%; 
  }

  .ongletrecherche input[type="search"] {
    width: 50%; /* Make the input take the full width of its container */
    height: 40px; 
    font-size: 14px; 
    cursor: pointer;
  }
}

/* Further adjustments for very small screens (mobile view) */
/* @media (max-width: 480px) { */
.ongletrecherche {
  top: 300px; /* Adjust vertical position for very small screens */
  left: 50%;
  /* transform: translateX(-50%); */
  width: 30%; /* Increase width to fit small screens */
}

.ongletrecherche input[type="search"] {
  width: 50%; /* Ensure input takes full width */
  height: 38px; 
  font-size: 14px;
}

/* Background image for the catalogue page */
.background-container {
  /* background-image: url("/uploads/.jpg"); /* Ensure the path is correct */
  background-size: contain; 
  background-position: center; 
  background-repeat: no-repeat; /* Prevents the image from repeating */
  min-height: 100vh; 
  padding: 20px;
}

/* Ensure content is readable over the background */
.background-container .container {
  background-color: rgba(
    255,
    255,
    255,
    0.9
  ); /* Semi-transparent white background for content */
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

/* Primary Button - Deep Rusted Red */
.custom-primary-btn {
  background-color: #c1432e; /* Deep Rusted Red */
  color: #ce9e62; /* Rusted Gold */
  border: none;
  font-weight: bold;
  transition: background 0.3s ease-in-out, transform 0.2s;
}

.custom-primary-btn:hover {
  background-color: #a83723; /* Slightly lighter Deep Rusted Red */
  color: #ce9e62;
  transform: scale(1.05);
}

/* Secondary Button - Rusted Gold */
.custom-secondary-btn {
  background-color: #ce9e62; /* Rusted Gold */
  color: #2c2c2c; /* Black */
  border: none;
  font-weight: bold;
  transition: background 0.3s ease-in-out, transform 0.2s;
}

.custom-secondary-btn:hover {
  background-color: #b88b55; /* Slightly darker Rusted Gold */
  color: #2c2c2c;
  transform: scale(1.05);
}

/*this is for all form of input text field like contact,registration connexion*/

h1 {
  color: black;
  font-size: 32px;
  font-weight: bolder;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

/*pour page de commande*/
label,
legend {
  color: black;
  font-size: 25px;
  font-weight: 200;
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  /* font-weight: bolder; */
}

/* .card{
  background-color: #ce9e62;
} */

/*for liste des produits */
h2,
h1,
label,
input {
  font-family: Arial, Helvetica, sans-serif;
}
tr,
tbody {
  font-size: 16px;
}
th {
  font-family: 18px;
  font-size: 17px;
}
/* 
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 0px; /* Sets both horizontal and vertical gap between cards */

/*produit page*/
/* Add this to your CSS file or in a <style> block in your Twig template */
.products-page .row.g-0 {
  --bs-gutter-x: 1.5rem; /* Restores horizontal gutter */
  --bs-gutter-y: 1.5rem; /* Adds vertical gutter */
}

.card {
  margin: 0; /* Ensures no additional margin interferes */
  height: 100%; 
}

.custom-img-top {
  object-fit: contain; /* Better image handling */
  height: 200px;
  width: 100%;

  padding: 10px;
}

.card-body {
  padding: 1.25rem;
}

/* .card {
  transition: transform 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
} */

/* Medium screens (tablets) */
@media (max-width: 992px) {
  .custom-img-top {
    height: 180px;
  }
}

/* Small screens (phones) */
@media (max-width: 768px) {
  .custom-img-top {
    height: 150px;
  }
}


/*this is for page produits or lists de produits*/
.custom-img-top {
  height: 200px;
  width: 100%;
  /*border-radius: 8px; 
  object-fit: contain;
  /*box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Example of adding a shadow */
}

/*page accueil*/
.card {
  border-radius: 25px;
  height: 200px;
  border: 5px solid #9e363a; /* Border color and style */

  /* margin: 10px; */
  /* padding: 20px; */
}

.card-title {
  color: black;
  font-size: 23px;
  font-weight: bolder;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

.card-img-top {
  height: 230px;
}

/* pour image de accueil animation */
.card {
  transition: 0.3s ease;
}

.card:hover {
  transform: scale(1.05); /* Slightly increase size on hover */
  z-index: 1;
} /* Ensure the hovered card is on top */

.n-hover {
  transition: none;
  transform: none;
}

.n-hover:hover {
  transform: none;
}

.image-container {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 20px 20px 0 0;
}

.category-image {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .image-container {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .image-container {
    height: 120px;
  }
}

/* Option 1: Consistent card widths */
.category-card {
  width: calc(100% - 1rem); /* Adjust based on desired spacing */
  margin: 0.5rem; /* Creates equal spacing */
}

/* Option 2: Flexbox fallback */
@media (max-width: 576px) {
  .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .col {
    flex: 0 0 calc(100% - 1rem);
    margin: 0.5rem;
  }
}

/*for contact,registration and login form beckground colors*/
.login-container {
  form {
    background-color: rgba(
      255,
      255,
      255,
      0.5
    ); /* Semi-transparent white background */
    border: 2px; /* solid #000 Black border */
    padding: 20px;
    border-radius: 20px;
  }
}
