/* آرشیو اصلی */
.armo-product-archive {
  padding: 20px;
  font-family: sans-serif;
}

/* هدر آرشیو */
.armo-archive-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.armo-archive-title {
  font-size: 1.5rem;
  color: #333;
}

.armo-sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.armo-sort-select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.armo-sort-button {
  padding: 6px 12px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* گرید محصولات */
.armo-products-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}


/* کارت محصول */
.armo-product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.armo-product-card-archive{
  width: 100%;
  min-width: 130px;
}


.armo-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* محتوا */
.armo-product-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.armo-product-link.item-horizontal{
  flex-direction: row;
}
.armo-product-link.item-horizontal .armo-product-image{
  width: 100px;
    border-radius: 8px;
}

@media (max-width: 620px) {
  .armo-product-link {
    flex-direction: row;
  }
  .armo-product-image{
    width: 100px;
    border-radius: 8px;
  }
  .armo-posts-grid{
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.armo-product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.armo-product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.armo-product-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.armo-product-price {
  font-size: 0.95rem;
  color: #555;
}

.armo-product-rating {
  margin-top: auto;
  color: #f5a623;
  font-size: 0.9rem;
}

/* صفحه‌بندی */



/* ---------------------------------------------------------------فیلتر محصولات  */
/* دکمه موبایل */
/* موبایل: دکمه شناور */
.armo-filter-toggle-mobile {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: #0073aa;
  color: #fff;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 30px;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  z-index: 1001;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  cursor: pointer;
}

/* پس‌زمینه تار */
.armo-filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 1000;
}
.armo-filter-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* سایدبار */
.armo-filter-sidebar {
  background: #fff0;
  width: 100%;
}
@media (max-width: 768px) {
  .armo-filter-toggle-mobile { display: flex; }
  .armo-filter-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    overflow-y: auto;
    transition: right 0.3s;
    box-shadow: -3px 0 12px rgba(0,0,0,0.2);
    z-index: 1002;
  }
  .armo-filter-sidebar.active { right: 0; }
  .armo-filter-sidebar {
    background: var(--bgcolor);
    width: 290px;
        padding: 5px;
  }
}

/* ساختار فیلتر */
.armo-filter-group {
  background-color: var(--bgcolor);
    border-radius: 10px;
    margin: 10px 0px;
    padding: 5px;

}
.armo-filter-title {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 0;
}
.armo-toggle-icon { transition: transform 0.3s;color: var(--second_color); }
.armo-filter-group.active .armo-toggle-icon { transform: rotate(180deg); }

.armo-filter-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.armo-filter-group.active .armo-filter-content {
  max-height: 1000px;
  padding: 0.5rem 0;
  background: var(--bgcolor1);
}

/* اسلایدر قیمت */
.armo-price-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 0.2rem;
}
.armo-price-range {
  width: 100%;
}
.armo-price-value {
  font-size: 13px;
  margin-bottom: 1rem;
  color: #444;
}

