/* Vendor Card Image Fixes */
.vendor-card .vendor-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 8px 8px 0 0;
}

.vendor-card .vendor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.vendor-online-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(76, 175, 80, 0.95);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.vendor-online-badge i {
  font-size: 14px;
}

/* Vendor Category Badges */
.vendor-category-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-transform: capitalize;
}

.badge-restaurant {
  background: rgba(231, 76, 60, 0.95);
  /* Red */
}

.badge-grocery {
  background: rgba(243, 156, 18, 0.95);
  /* Orange */
}

.badge-supermarket {
  background: rgba(52, 152, 219, 0.95);
  /* Blue */
}

.badge-farm {
  background: rgba(39, 174, 96, 0.95);
  /* Green */
}

.badge-shop {
  background: rgba(155, 89, 182, 0.95);
  /* Purple */
}

.badge-pharmacy {
  background: rgba(26, 188, 156, 0.95);
  /* Teal */
}

.badge-market {
  background: rgba(52, 73, 94, 0.95);
  /* Dark Gray */
}

.badge-other {
  background: rgba(149, 165, 166, 0.95);
  /* Light Gray */
}

.vendor-description {
  font-size: 14px;
  color: #666;
  margin: 8px 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Skeleton Loader Styles */
.skeleton-loader {
  animation: skeleton-loading 1.5s infinite ease-in-out;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-vendor-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skeleton-vendor-image {
  width: 100%;
  height: 250px;
}

.skeleton-vendor-content {
  padding: 20px;
}

.skeleton-title {
  height: 24px;
  width: 70%;
  margin-bottom: 12px;
}

.skeleton-text {
  height: 16px;
  width: 100%;
  margin-bottom: 8px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-button {
  height: 40px;
  width: 100%;
  margin-top: 16px;
}

/* Product Card Image Fixes */
.mad-product .mad-product-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 16px;
}

.mad-product .mad-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.mad-product:hover .mad-product-image img {
  transform: scale(1.05);
}

.skeleton-product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skeleton-product-image {
  width: 100%;
  height: 280px;
  margin-bottom: 16px;
}

.skeleton-product-title {
  height: 20px;
  width: 80%;
  margin-bottom: 10px;
}

.skeleton-product-category {
  height: 14px;
  width: 40%;
  margin-bottom: 12px;
}

.skeleton-product-price {
  height: 24px;
  width: 50%;
  margin-bottom: 16px;
}

/* Vendor Filter Icon Styles */
.mad-tabs .mad-menu-box .mad-menu-icon svg {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.mad-tabs .mad-menu-box .mad-menu-item:hover .mad-menu-icon svg {
  transform: scale(1.1);
}

.mad-tabs .mad-menu-box .mad-active .mad-menu-icon svg path,
.mad-tabs .mad-menu-box .mad-active .mad-menu-icon svg rect,
.mad-tabs .mad-menu-box .mad-active .mad-menu-icon svg circle {
  fill: currentColor;
}