/* HaanHaute Products Widget Styles */
.haanhaute-products-showcase {
  padding: 60px 0;
  background: #ffffff;
}

.haanhaute-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.haanhaute-section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.haanhaute-section-subtitle {
  font-size: 1rem;
  color: #666;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.haanhaute-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.haanhaute-product-card {
  text-align: center;
  background: #ffffff;
  transition: all 0.6s ease;
}

.haanhaute-product-image {
  width: 100%;
  height: 600px;
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.6s ease;
}

.haanhaute-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s ease;
}

/* Hover Effects */
.haanhaute-hover-scale:hover {
  transform: scale(1.02);
}

.haanhaute-hover-scale:hover img {
  transform: scale(1.05);
}

.haanhaute-hover-opacity:hover img {
  opacity: 0.8;
}

.haanhaute-product-info {
  text-align: center;
  margin-top: 20px;
}

.haanhaute-product-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.haanhaute-product-price {
  font-size: 1.1rem;
  color: #c9a876;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.haanhaute-product-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #1a1a1a;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  background: transparent;
}

.haanhaute-product-btn:hover {
  background: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .haanhaute-products-grid {
    gap: 40px;
    padding: 0 20px;
  }

  .haanhaute-product-image {
    height: 500px;
  }

  .haanhaute-section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .haanhaute-products-showcase {
    padding: 40px 0;
  }

  .haanhaute-products-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }

  .haanhaute-product-image {
    height: 400px;
  }

  .haanhaute-section-title {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  .haanhaute-section-subtitle {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .haanhaute-section-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .haanhaute-product-image {
    height: 300px;
  }

  .haanhaute-product-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .haanhaute-product-btn {
    padding: 10px 25px;
    font-size: 0.75rem;
  }
}

/* Animation for scroll effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.haanhaute-product-card {
  animation: fadeInUp 0.6s ease forwards;
}

/* Custom styling for different column layouts */
.haanhaute-products-grid[style*="grid-template-columns: repeat(1, 1fr)"] .haanhaute-product-card {
  max-width: 600px;
  margin: 0 auto;
}

.haanhaute-products-grid[style*="grid-template-columns: repeat(3, 1fr)"] .haanhaute-product-image {
  height: 400px;
}

.haanhaute-products-grid[style*="grid-template-columns: repeat(4, 1fr)"] .haanhaute-product-image {
  height: 300px;
}

.haanhaute-products-grid[style*="grid-template-columns: repeat(4, 1fr)"] .haanhaute-product-title {
  font-size: 1.2rem;
}

/* Elementor Editor Specific Styles */
.elementor-editor-active .haanhaute-product-card {
  opacity: 1;
  transform: none;
}

/* Print Styles */
@media print {
  .haanhaute-products-showcase {
    padding: 20px 0;
  }

  .haanhaute-product-btn {
    display: none;
  }

  .haanhaute-product-image {
    height: 200px;
  }
}

/* Placeholder image styling */
.haanhaute-placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1rem;
  text-align: center;
  padding: 20px;
}

/* Products note styling */
.haanhaute-products-note {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 5px;
}

.haanhaute-products-note p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

/* WooCommerce price styling */
.haanhaute-product-price .woocommerce-Price-amount {
  font-weight: inherit;
}

.haanhaute-product-price del {
  opacity: 0.7;
  margin-right: 10px;
}

.haanhaute-product-price ins {
  text-decoration: none;
  font-weight: 600;
}

/* Enhanced responsive design for dynamic content */
@media (max-width: 768px) {
  .haanhaute-products-note {
    margin-top: 30px;
    padding: 15px;
  }

  .haanhaute-placeholder-image {
    font-size: 0.9rem;
    padding: 15px;
  }
}

/* Loading state for dynamic products */
.haanhaute-products-loading {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.haanhaute-products-loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-top: 2px solid #c9a876;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Product type indicators */
.haanhaute-product-card[class*="haanhaute-product-"] {
  position: relative;
}

.haanhaute-product-card::before {
  content: attr(data-product-type);
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  font-size: 0.7rem;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.haanhaute-product-card:hover::before {
  opacity: 1;
}
