.woocommerce .woocommerce-products-header,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 18px;
}

.woocommerce .rt-shop {
  margin-left: -9px;
  margin-right: -9px;
}

.woocommerce .rt-shop .rt-shop-box {
  padding-left: 9px;
  padding-right: 9px;
  margin-bottom: 18px;
}

.woocommerce .rt-shop .rt-shop-box > .holder {
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  height: 100%;
}

.woocommerce .rt-shop .rt-shop-box .product-image img,
.woocommerce .rt-shop .rt-shop-box .attachment-woocommerce_thumbnail {
  border-radius: 10px;
}

.woocommerce .rt-shop .rt-shop-box .woocommerce-loop-product__title {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
  min-height: 46px;
}

.woocommerce .rt-shop .rt-shop-box .price {
  color: #0f3f6f !important;
  font-size: 20px;
  font-weight: 800;
}

.woocommerce .rt-shop .rt-shop-box .price del {
  opacity: 0.55;
  font-size: 14px;
  margin-right: 6px;
}

.woocommerce .rt-shop .rt-shop-box .price ins {
  text-decoration: none;
}

.woocommerce .rt-shop .rt-shop-box .button,
.woocommerce .rt-shop .rt-shop-box .added_to_cart,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #0b63e5, #0949a3) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  line-height: 1.2 !important;
  padding: 11px 18px !important;
}

.woocommerce .rt-shop .rt-shop-box .button:hover,
.woocommerce .rt-shop .rt-shop-box .added_to_cart:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  filter: brightness(1.04);
}

.woocommerce nav.woocommerce-pagination ul {
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
  border-right: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border: 1px solid #d7dbe3;
  border-radius: 10px;
  margin: 0 4px;
  min-width: 38px;
  line-height: 36px;
}

/* WooCommerce Blocks fallback */
.wp-block-woocommerce-product-template,
ul.wc-block-grid__products,
.wc-block-product-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wp-block-woocommerce-product-template li,
ul.wc-block-grid__products li,
.wc-block-product-template li {
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.wc-block-grid__product-image img,
.wc-block-components-product-image img {
  border-radius: 10px;
}

.wc-block-grid__product-title,
.wc-block-components-product-name {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
}

.wc-block-grid__product-price,
.wc-block-components-product-price {
  color: #0f3f6f !important;
  font-weight: 800;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link,
.wc-block-components-product-button .wp-element-button {
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #0b63e5, #0949a3) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

@media (max-width: 1024px) {
  .wp-block-woocommerce-product-template,
  ul.wc-block-grid__products,
  .wc-block-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .wp-block-woocommerce-product-template,
  ul.wc-block-grid__products,
  .wc-block-product-template {
    grid-template-columns: 1fr;
  }
}
