/* ============================================
   PRODUCT LISTING PAGE STYLES
   ============================================ */

.sort-filter-bar {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
}

.sf-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 500;
}

.sort-dropdown {
  position: absolute;
  top: 100px;
  left: 20px;
  background: var(--color-bg-dark-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 6px;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.sort-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-white);
  border-radius: var(--radius-sm);
}

.sort-option:hover {
  background: rgba(201,162,75,0.12);
  color: var(--color-gold);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 20px 0;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-color: rgba(201,162,75,0.4);
  transform: translateY(-2px);
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.wishlist-btn svg {
  width: 15px;
  height: 15px;
}

.wishlist-btn.active svg {
  stroke: #d43b2b;
  fill: #d43b2b;
}

.product-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-img svg {
  width: 40px;
  height: 40px;
}

.product-card h3 {
  color: var(--color-text-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: 15px;
}

.product-price span {
  font-weight: 400;
  font-size: 11px;
  color: var(--color-text-gray);
}

.product-price .mrp {
  text-decoration: line-through;
  color: var(--color-text-gray);
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}

.discount-badge {
  display: inline-block;
  background: rgba(46,125,50,0.15);
  color: var(--color-success);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

.free-delivery-tag {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-success);
}

@media (min-width: 700px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}