/* Category Page - aptekamiodowa */
#category {
  padding: 20px 0;
}
#category h1 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
}
/* Category header */
.cat-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}
.cat-image {
  margin-bottom: 20px;
}
.cat-image img {
  max-width: 100%;
  border-radius: 4px;
}
/* Subcategories */
.subcategories {
  margin-bottom: 25px;
}
.subcategories h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.subcategories ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.subcategories ul li a {
  display: inline-block;
  padding: 6px 14px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 12px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
}
.subcategories ul li a:hover {
  background: #e8a000;
  border-color: #e8a000;
  color: #fff;
}
/* Sorting and filters */
#productsSortForm {
  margin-bottom: 15px;
}
#productsSortForm label {
  font-size: 13px;
  color: #555;
  margin-right: 8px;
}
#productsSortForm select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
  color: #333;
}
.product-count {
  font-size: 12px;
  color: #888;
  margin-bottom: 15px;
}
/* Product list layout toggles */
.display-icons {
  float: right;
}
.display-icons a {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border: 1px solid #ddd;
  color: #999;
  text-decoration: none;
  border-radius: 3px;
  margin-left: 4px;
  transition: all 0.2s;
}
.display-icons a:hover,
.display-icons a.selected {
  background: #e8a000;
  border-color: #e8a000;
  color: #fff;
}
/* Product grid */
.product_list.grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}
.product_list.grid .ajax_block_product {
  width: 25%;
  padding: 0 10px;
  margin-bottom: 20px;
  box-sizing: border-box;
}
/* Product list view */
.product_list.list .ajax_block_product {
  width: 100%;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 20px;
}
.product_list.list .ajax_block_product .product-image-container {
  flex: 0 0 120px;
}
.product_list.list .ajax_block_product .product-desc {
  flex: 1;
}
/* Individual product block */
.ajax_block_product {
  position: relative;
}
.ajax_block_product .product-container {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.ajax_block_product .product-container:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.ajax_block_product .product-image-container {
  position: relative;
  overflow: hidden;
}
.ajax_block_product .product-image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}
.ajax_block_product .product-container:hover .product-image-container img {
  transform: scale(1.03);
}
.ajax_block_product .product-desc {
  padding: 12px;
}
.ajax_block_product h5 a {
  font-size: 13px;
  color: #333;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  line-height: 1.4;
}
.ajax_block_product h5 a:hover {
  color: #e8a000;
}
.ajax_block_product .content_price {
  margin-bottom: 8px;
}
.ajax_block_product .price {
  font-size: 16px;
  font-weight: bold;
  color: #e8a000;
}
.ajax_block_product .old-price {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
  margin-left: 5px;
}
.ajax_block_product .availability {
  font-size: 11px;
  margin-bottom: 8px;
}
.ajax_block_product .availability .label-success {
  color: #5cb85c;
}
.ajax_block_product .availability .label-warning {
  color: #f0ad4e;
}
.ajax_block_product .button-container {
  display: flex;
  gap: 6px;
}
.ajax_block_product .ajax_add_to_cart_button {
  flex: 1;
  background: #e8a000;
  color: #fff;
  border: none;
  padding: 7px 10px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}
.ajax_block_product .ajax_add_to_cart_button:hover {
  background: #cc8c00;
}
.ajax_block_product .wishlist {
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #999;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.ajax_block_product .wishlist:hover {
  color: #e8a000;
  border-color: #e8a000;
}
/* Sale badge */
.ajax_block_product .on-sale,
.ajax_block_product .discount-percentage {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 7px;
  border-radius: 3px;
  z-index: 2;
}
/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.pagination a,
.pagination span {
  display: inline-block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}
.pagination a:hover,
.pagination .current {
  background: #e8a000;
  border-color: #e8a000;
  color: #fff;
}
/* Filters sidebar */
.block-categories {
  margin-bottom: 20px;
}
#layered_block_left {
  margin-bottom: 20px;
}
#layered_block_left h4 {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
#layered_block_left .layered_filter {
  margin-bottom: 15px;
}
#layered_block_left .layered_filter_ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#layered_block_left .layered_filter_ul li {
  padding: 4px 0;
  font-size: 12px;
}
#layered_block_left .layered_filter_ul li a {
  color: #555;
  text-decoration: none;
}
#layered_block_left .layered_filter_ul li a:hover {
  color: #e8a000;
}
#layered_block_left .layered_filter_ul .layered_count {
  color: #999;
  font-size: 11px;
}

@media (max-width: 992px) {
  .product_list.grid .ajax_block_product {
    width: 33.33%;
  }
}
@media (max-width: 768px) {
  .product_list.grid .ajax_block_product {
    width: 50%;
  }
}
@media (max-width: 480px) {
  .product_list.grid .ajax_block_product {
    width: 100%;
  }
}
