body {
  direction: rtl;
  /* To support right-to-left languages */
  background-image: repeating-radial-gradient(#e2d4c6d7 80%, hsl(25, 11%, 61%) 90%, #a79c92 90%);
  background-size: 65px 65px;
}

.title-container {
  background-color: #a18d81;
  padding: 30px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  max-width: 1300px;
  margin: 50px auto 20px auto;
}

.title-container h1 {
  font-size: 30px;
  color: rgb(0, 0, 0);
}

.breadcrumb {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 20px;
}

.breadcrumb a {
  color: #2e527e;
  margin: 10px;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: white;
}

.filter-section,
.sort-section {
  background-color: #f1eeec;
  margin: 30px;
  padding: 20px;
  border-radius: 5px;
}

.filter-section h5,
.sort-section h5 {
  font-size: 17px;
  margin-bottom: 15px;
}

.filter-section h5 img,
.sort-section h5 img {
  margin-left: 5px;
}

.filter-btn-group button {
  border: 1px solid black;
  border-radius: 5px;
  padding: 5px 8px;
  background-color: #dfdad7;
  font-size: 15px;
}

.filter-btn-group button.active {
  background-color: #f48f31;
  font-weight: bold;
}

.sort-btn button {
  width: 100%;
  border: 1px solid black;
  border-radius: 5px;
  padding: 5px 8px;
  text-align: right;
  margin-bottom: 5px;
  background-color: #dfdad7;
  font-size: 15px;
}

.sort-btn button:hover {
  box-shadow: inset 0px 0px 10px rgba(255, 102, 0, 0.5), inset 0px 0px 10px rgba(255, 212, 59, 0.5), 0px 0px 20px rgba(255, 212, 59, 0.5), 0px 0px 40px rgba(255, 102, 0, 0.5);
  font-weight: bold;
}

.main-pro-container {
  background-color: #e8e4e1;
  display: flex;
  justify-content: center;
  max-width: 1300px;
  margin: 20px auto 50px auto;
  border-radius: 5px;
}

.product-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pro-container {
  width: 950px;
  background-color: #f1eeec;
  margin: 30px 0px 30px 30px;
  border-radius: 5px;
}

.product-area {
  display: flex;
  justify-content: center;
  padding: 0;
}

.product {
  box-sizing: border-box;
  background-color: #d5cdc9;
  max-width: 300px;
  margin: 30px 0;
  border-radius: 5px;
  /* border: 1px solid black; */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.product img {
  width: 270px;
  height: 120px;
  object-fit: contain;
  background-color: white;
}

.product-title {
  text-align: center;
  padding: 15px;
  border-bottom: 1px dashed #8e7d72;
  color: black;
  font-size: 15px;
}

.product-text {
  font-size: 15px;
  font-weight: bold;
  color: black;
  margin: 0;
}

.product-inf {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.btn-see-product {
  background-color: #d5cdc9;
  font-size: 12px;
  border: 1px solid black;
  border-radius: 3px;
  width: 120px;
  height: 40px;
  color: black;
  padding: 5px;
}

.btn-see-product:hover {
  color: black;
  font-weight: bold;
  box-shadow: inset 0px 0px 10px rgba(255, 102, 0, 0.5), inset 0px 0px 10px rgba(255, 212, 59, 0.5), 0px 0px 100px rgba(255, 212, 59, 0.5), 0px 0px 40px rgba(255, 102, 0, 0.5);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
  width: 100%;

}

.pagination button {
  background-color: #f0f0f0;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.page-number {
  margin: 0 8px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid black;
}

.page-number.active {
  background-color: #f48f31;
  border-radius: 3px;
  font-weight: bold;
  box-shadow: inset 0px 0px 10px rgba(255, 102, 0, 0.5), inset 0px 0px 10px rgba(255, 212, 59, 0.5), 0px 0px 20px rgba(255, 212, 59, 0.5), 0px 0px 40px rgba(255, 102, 0, 0.5);

}

button#prev,
button#next {
  border-radius: 5px;
  border: 1px solid #8e7d72;
}
@media (max-width:1320px){
  .pro-container {
    width: 900px;
  }
  .product {
    width: 270px;
    margin-right: 20px;
    margin-left: 20px;
  }
}
@media (max-width:1200px){
  .pro-container {
    width: 850px;
  }
  .product {
    width: 250px;
    margin-right: 20px;
    margin-left: 20px;
  }
  .product img {
    width: 250px;
  }
}
@media (max-width:1200px){
  .title-container {
    max-width: 1100px;
  }

  .main-pro-container {
    flex-direction: column;
    max-width: 1100px;
  }

  .sidebar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    order: 1;
  }

  .product-container {
    width: 100%;
    order: 2;
  }

  .pro-container {
    display: flex;
    justify-content: center;
    margin: 10px 30px;
    max-width: 950px;
  }

  .product-area {
    flex: 0 0 40%;
    max-width: 50%;
  }

  .filter-section,
  .sort-section {
    width: 445px;
  }

  .filter-btn-group{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .filter-btn-group button {
    padding: 8px;
    margin-bottom: 5px;
    width: 150px;
  }
  .sort-btn{
    display: flex;
    justify-content: center;
  }
  .sort-btn button{
    width: 150px;
  }

  .filter-section h5,
  .sort-section h5 {
    text-align: center;
  }
  
}
@media (max-width: 860px){
  .sort-btn button{
    width: 150px;
  }
  .pro-container {
    width: 760px;
  }
  .filter-btn-group button {
    width: 150px;
  }
}
@media (max-width: 800px){
  .pro-container {
    width: 660px;
  }
}
@media (max-width: 710px){
  .pro-container {
    width: 610px;
  }
}
@media (max-width: 680px) {
  .product-area {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width:630px) {
  .pro-container {
    width: 450px;
  }
  .title-container h1{
    font-size: 22px;
  }
  .breadcrumb{
    font-size: 12px;
  }
  .breadcrumb a{
    margin: 8px;
  }
  .title-container,
  .main-pro-container {
    max-width: 500px;
  }
  .sidebar{
    flex-direction: column;
    align-items: center;
  }
  .filter-section,
  .sort-section {
    width: 416px;
  }
}
@media (max-width:530px){
  .title-container,
  .main-pro-container {
    max-width: 400px;
  }
  .filter-section,
  .sort-section {
    width: 316px;
  }
  .pro-container {
    width: 380px;
  }
}
@media (max-width:430px){
  .title-container,
  .main-pro-container {
    max-width: 350px;
  }
  .product-area{
    width: 300px;
  }
  .filter-section,
  .sort-section {
    width: 300px;
  }
  .title-container h1{
    font-size: 20px;
  }
  .breadcrumb{
    font-size: 10px;
  }
  .breadcrumb a{
    margin: 5px;
  }
  .pro-container {
    width: 320px;
  }
}
@media (max-width:350px){
  .title-container h1{
    font-size: 18px;
  }
  .breadcrumb{
    font-size: 9px;
  }
  .breadcrumb a{
    margin: 4px;
  }
  .pro-container {
    width: 300px;
  }
}