/* Carousel Card styles */
.item-card-carousel {
  width: 155px;
  flex-shrink: 0;
  background-color: var(--surface);
  border-radius: 24px;
  padding: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 12px rgba(92, 110, 88, 0.03);
  margin-right: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card-carousel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 110, 88, 0.08);
}

.carousel-rating-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 750;
  color: var(--text-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

.star-icon-filled {
  color: var(--star);
  fill: var(--star);
}

.carousel-image-container {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.carousel-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.1));
}

.carousel-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.carousel-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.carousel-item-name {
  font-size: 13px;
  font-weight: 750;
  color: var(--text-dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.carousel-vendor {
  font-size: 10px;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.carousel-meta-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.meta-separator {
  color: var(--border);
}

.carousel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.carousel-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
}

.carousel-action-container {
  display: flex;
  align-items: center;
}

.carousel-plus-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #000000;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.carousel-plus-btn:hover {
  transform: scale(1.1);
}

.carousel-qty-controls {
  display: flex;
  align-items: center;
  background-color: #f1f3f1;
  border-radius: 20px;
  padding: 2px;
  gap: 6px;
}

.carousel-qty-controls button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.carousel-qty {
  font-size: 11px;
  font-weight: 750;
  min-width: 12px;
  text-align: center;
}

/* List Card styles */
.item-card-list {
  display: flex;
  gap: 14px;
  padding: 12px;
  background-color: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card-list:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(92, 110, 88, 0.04);
}

.list-image-container {
  width: 90px;
  height: 90px;
  position: relative;
  flex-shrink: 0;
}

.list-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.list-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.bestseller-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: #5c6e58;
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.soldout-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: #ff4d4f;
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.list-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.list-item-name {
  font-size: 14px;
  font-weight: 750;
  color: var(--text-dark);
  line-height: 1.2;
}

.list-rating-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dark);
  background-color: #fcfcfc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 5px;
  flex-shrink: 0;
}

.list-vendor {
  font-size: 11px;
  color: var(--text-mid);
  margin-top: 1px;
}

.list-address {
  font-size: 9px;
  color: var(--text-light);
  margin-top: 1px;
}

.list-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.list-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}

.list-action-container {
  display: flex;
  align-items: center;
}

.list-add-btn {
  background-color: #000000;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease;
}

.list-add-btn:hover {
  transform: scale(1.05);
}

.list-qty-controls {
  display: flex;
  align-items: center;
  background-color: #f1f3f1;
  border-radius: 20px;
  padding: 2px;
  gap: 8px;
}

.list-qty-controls button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.list-qty {
  font-size: 12px;
  font-weight: 750;
  min-width: 14px;
  text-align: center;
}

/* Out of Stock and Limit Styles */
.out-of-stock {
  opacity: 0.6;
}

.item-card-list.limit-reached {
  border-left: 3px solid #ff4d4f;
}
