/* General Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.breadcrumb {
  background-color: #f8f9fa;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.breadcrumb li {
  display: inline;
  font-size: 14px;
  color: #6c757d;
}

.breadcrumb li a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb li a:hover {
  text-decoration: underline;
}

/* Category Header */
#product-category h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #343a40;
}

#product-category .row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;

}

#product-category .col-sm-2 img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

#product-category .col-sm-10 {
  font-size: 16px;
  color: #495057;
}

/* Refine Categories */
#product-category h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #343a40;
}

#product-category .col-sm-3 ul {
  list-style: none;
  padding: 0;
}

#product-category .col-sm-3 ul li {
  margin-bottom: 10px;
}

#product-category .col-sm-3 ul li a {
  color: #007bff;
  text-decoration: none;
}

#product-category .col-sm-3 ul li a:hover {
  text-decoration: underline;
}

/* Product Grid */
.product-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.product-thumb {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  background-color: #fff;
  transition: transform 0.3s ease;
  flex: 1 1 calc(33.333% - 40px); /* 3 columns with gap */
  box-sizing: border-box;
}

.product-thumb:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-thumb .image img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.product-thumb .caption h4 a {
  font-size: 18px;
  color: #343a40;
  text-decoration: none;
}

.product-thumb .caption h4 a:hover {
  color: #007bff;
}

.product-thumb .caption p {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 10px;
}

.product-thumb .price {
  font-size: 16px;
  color: #28a745;
  margin-bottom: 10px;
}

.product-thumb .price-old {
  text-decoration: line-through;
  color: #6c757d;
}

.product-thumb .rating {
  color: #ffc107;
  margin-bottom: 10px;
}

.product-thumb .button-group {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.product-thumb .button-group button {
  background-color: #007bff;
  border: none;
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  flex: 1;
}

.product-thumb .button-group button:hover {
  background-color: #0056b3;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination a {
  color: #007bff;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #ddd;
  margin: 0 4px;
  border-radius: 4px;
}

.pagination a:hover {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.pagination .active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.pagination span {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
  padding: 8px 16px;
  border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-thumb {
      flex: 1 1 calc(50% - 20px); /* 2 columns on smaller screens */
  }

  #product-category .col-sm-3 {
      flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .product-thumb {
      flex: 1 1 100%; /* 1 column on mobile */
  }
}
#content {
  max-width: 50vw;
}

@media (max-width: 768px) {
  #content {
    max-width: 100vw;
  }
  #product-category .row {
    justify-content: center;
    text-align: center;
  }
  
}

#product-category{
  display: flex;
  justify-content: center;
}

