/* Modern 3D Product Card Styling for ProMetal */

/* Product Card Container */
.dish-box-wp {
  width: 33.333%;
  padding: 0 15px;
  margin-bottom: 80px;
  float: left;
  transition: transform 0.5s ease;
}

@media (max-width: 1199px) {
  .dish-box-wp {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .dish-box-wp {
    width: 100%;
  }
}

/* Product Card Box */
.dish-box {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
  box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.1), 
             -15px -15px 30px rgba(255, 255, 255, 0.8);
  transition: all 0.5s cubic-bezier(0.22, 0.78, 0.45, 1.02);
  overflow: hidden;
  padding-bottom: 20px;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.dish-box:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.15), 
             -20px -20px 40px rgba(255, 255, 255, 0.9);
}

/* Product Image Container - 3D Effect */
.dist-img {
  position: relative;
  margin: -30px auto 20px;
  text-align: center;
  z-index: 2;
  transform: translateZ(30px);
  transition: transform 0.5s ease;
}

.dist-img:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  filter: blur(10px);
  z-index: -1;
  transition: all 0.5s ease;
}

.dish-box:hover .dist-img {
  transform: translateZ(50px) scale(1.05);
}

.dish-box:hover .dist-img:after {
  width: 80%;
  opacity: 0.15;
}

/* Circular Product Image */
.dist-img img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 5px solid #fff;
  transition: all 0.5s ease;
  transform: translateZ(0);
  background-color: #fff;
}

.dish-box:hover .dist-img img {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Product Title */
.dish-title {
  padding: 0 25px;
  flex: 1;
  position: relative;
  z-index: 1;
  transform: translateZ(20px);
}

.dish-title .h3-title {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  color: #202086;
  margin-bottom: 10px;
  min-height: 56px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dish-box:hover .dish-title .h3-title {
  color: #ff0000;
}

.dish-title p {
  color: #777;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 50px;
  max-height: 67px;
}

/* Product Info */
.dish-info {
  padding: 15px 25px;
  margin: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
  transform: translateZ(15px);
}

.dish-info ul {
  display: flex;
  justify-content: space-between;
}

.dish-info ul li {
  display: inline-block;
  flex: 1;
}

.dish-info ul li:last-child {
  text-align: right;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  padding-left: 15px;
}

.dish-info ul li p {
  font-size: 14px;
  color: #777;
  margin-bottom: 5px;
}

.dish-info ul li b {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

/* Product Bottom Row */
.dist-bottom-row {
  padding: 0 25px;
  position: relative;
  z-index: 1;
  transform: translateZ(10px);
}

.dist-bottom-row ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dist-bottom-row ul li b {
  font-size: 18px;
  font-weight: 700;
  color: #ff0000;
}

/* Availability Indicator */
.availability-container {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.available-text {
  font-size: 14px;
  font-weight: 600;
  color: #4CAF50;
  position: relative;
  padding-left: 20px;
}

.available-text:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: #4CAF50;
  border-radius: 50%;
}

.not-available .available-text {
  color: #F44336;
}

.not-available .available-text:before {
  background-color: #F44336;
}

/* Loading animation */
.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  width: 100%;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #ff0000;
  margin: 0 auto 20px;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error message styling */
#no-products-message {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 30px !important;
  text-align: center;
}

#no-products-message h3 {
  color: #ff0000;
  margin-bottom: 15px;
}

#no-products-message p {
  color: #555;
  max-width: 500px;
  margin: 0 auto 10px;
}