.custom-recent-product-block {
  margin: auto;
}

.custom-recent-product-block .block-title {
  margin-bottom: 0;
  padding-bottom: 10px;
  font-size: 35px;
  position: relative;
  display: inline-block;
  padding-left: 0;
  padding-right: 0;
  font-weight: bold;
}

.custom-recent-product-block .block-subtitle {
  color: black;
  font-size: 16px;
  margin-top: 5px;
  margin-bottom: 0;
}

.custom-recent-product-block .block-header .block-title::after {
  content: "";
  display: block;
  height: 2px;
  background-color: #007cba;
  position: absolute;
  bottom: 0;

  left: 0;
  right: 0;
}

.custom-recent-product-block .block-header.align-left .block-title::after,
.custom-recent-product-block .block-header.align-right .block-title::after {
  width: 100%;
}

.custom-recent-product-block .block-header.align-left .block-title::after {
  left: 0;
  right: auto;
}

.custom-recent-product-block .block-header.align-right .block-title::after {
  right: 0;
  left: auto;
}

.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns:repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}

.product-list-item a {
  border-bottom: 1px solid #ececec;
  background: #f4f4f4;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-list-item:last-child {
  border-bottom: none;
}

.product-list-item .product-title {
  margin: 0;
  font-size: 16px;
  color: black;
}

.product-list-item .product-title a {
  text-decoration: none;
  color: #333;
}

.product-list-item .product-title a:hover {
  color: #007cba;
}

.product-meta {
  font-size: 13px;
  color: #666;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.product-price {
  font-weight: bold;
}

.product-grid {
  display: grid;
  gap: 20px;
  margin: 20px 0;
  grid-template-columns: repeat(auto-fit,minmax(260px, 1fr));
}

.product-grid-item {
  display: flex;
  border: 1px solid transparent;
  transition: 0.3s;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #ececec;
}

.product-meta-box {
    padding: 18px;
}

.product-grid-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: #eee;
}

.product-grid-item .product-thumbnail {
  overflow: hidden;
}

.product-grid-item .product-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-content ins {
  text-decoration: none;
  color: #c44833;
}

.product-grid-item .product-title {
  margin: 0 0 0 0;
  font-size: 14px;
}

.product-grid-item .product-title a {
  color: black;
}

.product-grid-item .product-price {
  font-size: 24px;
  margin-bottom: 5px;
  color: #b19470;
}

.product-grid-item .product-price del {
  display: none;
}

.product-cards {
  display: grid;
  gap: 25px;
  padding: 0;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-cards .product-button {
    text-align: left;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  position: relative;
  height: 460px;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-card .card-image {
  height: auto;
  overflow: hidden;
}

.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .card-content {
  padding: 15px;
  position: absolute;
  z-index: 1;
  bottom: 0;
  background: white;
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card .card-title {
  margin: 0px;
  font-size: 16px;
  text-align: left;
  font-weight: 600;
}

.card-title a {
  text-decoration: none;
}

.product-card .card-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin: 0px;
  text-align: left;
}

.product-card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #888;
}

.card-price {
  color: #e74c3c;
  font-weight: bold;
}
.product-grid .product-button {
  text-align: left;
  padding: 0 18px 18px;
}

.product-button .btn-add-to-cart {
  display: inline-block;
  background: #1a1a1a;
  color: white;
  padding: 5px 25px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  transition: 0.3s;
}

.widget-pagination {
  margin: 40px 0;

  text-align: center;
}

.widget-pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.widget-pagination ul li {
  margin: 0;
}

.widget-pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  line-height: 1;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  font-weight: 500;
}

.widget-pagination a.page-numbers:hover {
  color: #388e3c;
}

.widget-pagination .page-numbers.current {
  background-color: #388e3c;
  border-radius: 50px;
  color: #fff;
  font-weight: bold;
  cursor: default;
}

.widget-pagination .next,
.widget-pagination .prev {
  font-size: 20px;
  font-family: monospace, sans-serif;
}

.product-title2,
.product-title2 h3{
  font-size: 16px !important;
  text-align: left;
  color: #333333;
}

.product-empty-state {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed #000000;

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

.empty-icon {
  color: #bdbdbd;

  margin-bottom: 20px;
  display: inline-block;
}

.empty-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

.empty-text {
  font-size: 14px;
  color: #888;
  margin-bottom: 30px;
}

.category-count {
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.product-card:hover .category-count {
  color: #007cba;
  opacity: 1;
}

.category-item {
  position: relative;
}

.pagination-wrapper {
    margin: 4rem 0 0;
    text-align: center;
}

.pagination-wrapper .page-numbers {
    padding: 6px 12px;
    border: 1px solid #ddd;
    margin: 0 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-wrapper .current {
    background: #000;
    color: #fff;
}

.pagination-wrapper a.page-numbers:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

@media (min-width: 576px) {
  .custom-recent-product-block {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .custom-recent-product-block {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .custom-recent-product-block {
    max-width: 960px;
  }

  .product-grid-item .product-price {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {
  .custom-recent-product-block,
  .nav-container {
    max-width: 1140px;
  }
}

@media (min-width: 1200px) {
  .custom-recent-product-block,
  .nav-container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .custom-recent-product-block,
  .nav-container {
    max-width: 1320px;
  }
}

@media (max-width: 768px) {
  .product-grid,
  .product-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .columns-1 .product-grid,
  .columns-1 .product-cards {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .product-grid,
  .product-cards {
    padding: 0 20px;
  }
  .product-meta {
    flex-direction: column;
    gap: 5px;
  }
}
