/* ساختار اصلی */
.wc-custom-archive {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 5px;
}

/* ستون فیلتر */
.wc-custom-sidebar {
    flex: 0 0 30%;
    max-width: 200px;
    overflow-y: auto;
    border-left: 1px solid #eee;
    padding: 1px;
    margin-right: -1px;
    padding-left: 5px;
}
h3 {
    font-size: 14px !important;
    text-align: center;
    border: 1px solid #79B4AD;
    border-radius: 8px;
    padding: 6px;
    background: #DE0112;
}
.wc-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wc-cat-list li {
  margin-bottom: 10px;
}
.h3-menu-title {
    color: #F8F9FA;
}

.wc-cat-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
}

.wc-subcats {
  list-style: none;
  margin: 0;
  padding: 0;
}

button.wc-cat-btn {
    border: 1px solid;
    border-radius: 8px;
    margin: 1px 1px 15px 1px;
}

button.wc-cat-btn:hover {
  background-color: #f5f5f5; 
  color: #0073aa;       
}
button.wc-cat-btn.active {
  background-color: #FB7C16; 
}

.wc-cat-img img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin: 0 auto 5px auto;
}

.wc-cat-name {
  font-size: 10px;
  line-height: 1;
  color: #333;
}

/* ستون محصولات */
.wc-custom-products {
  flex: 1;
  padding: 5px;
}



li.product.type-product {
    font-size: 12px;
    border: 1px solid #DE0112;
    margin: 1px;
    padding: 5px;
    border-radius: 8px;
    width: 100%;
    display: grid;
    justify-content: center !important;
    align-items: center;
    justify-items: stretch;
    align-content: center;
}

h2.woocommerce-loop-product__title {
    font-size: 14px;
    color: #212529;
}
a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart{
    background: #DE0112;
    font-size: 12px;
    color: #F8F9FA;
    border-radius: 8px;
    padding: 8px 15px;
}
span.price {
    font-size: 14px;
    padding: 8px;
    color: #212529;
}



.products-grid {
  list-style: none;
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  grid-template-columns: 1fr; /* موبایل پیشفرض */
}

.onsale{
    position: relative;
}

/* تبلت */
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* دسکتاپ */
@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


