/* Category product grid only. Header, gender tabs and category rail stay as they are. */
body.category-page .content {
  background: #fff;
}
body.category-page #products.products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px 16px !important;
  padding: 8px 4px 80px !important;
}
body.category-page #products .product {
  width: 100% !important;
  max-width: none !important;
  background: #fff !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  position: relative !important;
}
body.category-page #products .product-img {
  display: block;
  position: relative;
  background: #f5f5f6;
  border: none !important;
  border-radius: 0 !important;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
body.category-page #products .product-img img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center top;
  background: #fff;
  display: block;
  border-radius: 0 !important;
}
body.category-page #products .product_info {
  padding: 8px 8px 0 !important;
}
body.category-page #products .brand-text {
  display: block;
  margin: 0 0 1px !important;
  min-height: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #282c3f !important;
  letter-spacing: 0;
  line-height: 1.3 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1 !important;
}
body.category-page #products .product_info > p.product-title {
  display: block !important;
  margin: 0 !important;
  min-height: 0 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #7e818c !important;
  line-height: 1.3 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1 !important;
}
body.category-page #products .price-container {
  display: flex !important;
  align-items: baseline;
  flex-wrap: nowrap !important;
  gap: 4px;
  margin-top: 4px !important;
  overflow: hidden;
}
body.category-page #products .new-pricebpcs {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #282c3f !important;
  flex: 0 0 auto;
}
body.category-page #products .old-pricepcs {
  display: inline !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #7e818c !important;
  text-decoration: line-through !important;
  flex: 0 0 auto;
}
body.category-page #products .discount-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #6e1597 !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  flex: 0 0 auto;
}
body.category-page #products .product-rating-row {
  position: absolute;
  left: 8px;
  top: 0;
  margin: calc(133.33% - 30px) 0 0 !important;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,.92);
  border-radius: 2px;
  padding: 1px 4px 1px 5px;
  line-height: 1;
}
body.category-page #products .rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  color: #282c3f;
  background: transparent;
}
body.category-page #products .rating-pill i { color: #6e1597; font-size: 9px; }
body.category-page #products .rating-count {
  font-size: 11px;
  color: #7e818c;
}
body.category-page #products .sold-by,
body.category-page #products .limited-deal,
body.category-page #products .add-to-cart,
body.category-page #products .compare-toggle {
  display: none !important;
}
body.category-page #products .action-row {
  position: absolute !important;
  top: 8px;
  right: 8px;
  margin: 0 !important;
  width: auto !important;
  background: transparent !important;
}
body.category-page #products .wishlist-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: none !important;
  color: #282c3f !important;
  display: grid !important;
  place-items: center;
  box-shadow: 0 1px 6px rgba(40,44,63,.16);
  font-size: 14px !important;
}
body.category-page #products .wishlist-icon.active,
body.category-page #products .wishlist-icon.active i {
  color: #6e1597 !important;
}
body.category-page #shopaale-live-chat-fab {
  display: none !important;
}
@media (max-width: 820px) {
  body.category-page .category-floating-controls {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    transform: none !important;
    display: flex !important;
    background: #fff;
    border: none;
    border-top: 1px solid #e9e9ed;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 -2px 12px rgba(40,44,63,.08);
  }
  body.category-page .category-floating-controls button {
    flex: 1;
    background: #fff;
    border: none;
    border-right: 1px solid #e9e9ed;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    font-size: 13px;
    color: #282c3f;
    padding: 12px 0;
    min-width: 0;
  }
  body.category-page .category-floating-controls button:last-child { border-right: none; }
}

@media (max-width: 1100px) {
  body.category-page #products.products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 767px) {
  body.category-page .category-sidebar-rail,
  body.category-page aside.category-sidebar-rail {
    display: none !important;
  }
  body.category-page .category-page-shell {
    display: block !important;
  }
  body.category-page .main-container,
  body.category-page .content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  body.category-page .subcategory-chips-bar {
    display: none !important;
  }
  body.category-page #products.products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 4px !important;
    padding: 0 0 110px !important;
  }
  body.category-page #products .brand-text { font-size: 13px !important; }
  body.category-page #products .product_info > p.product-title { font-size: 12px !important; }
  body.category-page #products .product_info { padding: 6px 8px 0 !important; }
  body.category-page .category-floating-controls {
    bottom: 62px !important;
    z-index: 80 !important;
  }
}
