/* ============================================================================
   WOOCOMMERCE PRODUCT SLIDER STYLES
   ============================================================================ */

/* Product Slider Container */
.woocommerce-product-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 500px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 2rem;
}

/* Product Slide */
.product-slide {
    display: none;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.product-slide.active {
    display: block;
    opacity: 1;
}

/* Product Title */
.product-slide .product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    line-height: 1.3;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Product Image */
.product-slide .product-image {
    margin-bottom: 2rem;
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User-requested overrides for product image and price */
.product-slide .product-image img {
  max-width: 100% !important;
  max-height: 350px !important;
  border-radius: 0px !important;
  transition: transform 0.111s ease !important;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0.0) !important;
  object-fit: contain !important;
}

/* Product Image */
.product-slide .product-image {
  margin-bottom: 0rem !important;
  position: relative !important;
  height: 350px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
}

.product-slide .product-price {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: #2563eb !important;
  margin-bottom: 0.5rem !important;
  text-align: left !important; /* Price aligned to LEFT like screenshot */
  max-width: 300px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}
.product-slide .product-image img:hover {
    transform: scale(1.02);
}

/* Product Placeholder */
.product-slide .product-placeholder {
    width: 100%;
    max-width: 400px;
    height: 250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    border-radius: 12px;
    border: 2px dashed #9ca3af;
    color: #6b7280;
    font-size: 1.125rem;
    font-weight: 500;
}

/* Product Price */
.product-slide .product-price {
    text-align: center !important;
}

/* Product button container: no background/shadow */
.product-slide .product-button {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Keep Buy Now button with background color (no shadow) */
.product-slide .buy-now-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  color: #ffffff !important;
  box-shadow: none !important; /* remove shadow */
  border: none !important;
  text-decoration: none !important;
}
.product-slide .buy-now-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  color: #ffffff !important;
  box-shadow: none !important; /* no shadow on hover */
  transform: none !important; /* keep steady */
  text-decoration: none !important;
}
.product-slide .product-button {
    margin-bottom: 1rem;
}

.product-slide .buy-now-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
    min-width: 200px;
}

.product-slide .buy-now-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

.product-slide .buy-now-btn:active {
    transform: translateY(0);
}

/* Slider Navigation Dots */
.slider-dots {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.slider-dots .dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.slider-dots .dot.active {
    background: #1f2937;
    transform: scale(1.2);
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.125rem;
}

/* Mobile Responsiveness */
/* Mobile section placement tweaks */
/* Scoped mobile placement tweaks for the mobile-only section */
@media (max-width: 768px) {
  .mobile-recent-products .woocommerce-product-slider {
    background: #0b1220; /* slightly lighter than #111827 for contrast inside dark block */
  }
  .mobile-recent-products .woocommerce-product-slider .product-title {
    color: #e5e7eb;
  }
  .mobile-recent-products .woocommerce-product-slider .product-price {
    color: #60a5fa !important;
  }
  .mobile-recent-products .slider-dots { margin-top: 1.25rem; }
}

@media (max-width: 768px) {
    .woocommerce-product-slider {
        max-width: 100%;
        min-height: 450px;
        padding: 1.5rem;
    }
    
    .product-slide .product-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .product-slide .product-image {
        height: 200px;
        margin-bottom: 1.5rem;
    }
    
    .product-slide .product-image img {
        max-height: 200px;
    }
    
    .product-slide .product-placeholder {
        max-width: 300px;
        height: 200px;
    }
    
    .product-slide .product-price {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .product-slide .buy-now-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .woocommerce-product-slider {
        padding: 1rem;
        min-height: 400px;
    }
    
    .product-slide .product-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .product-slide .product-image {
        height: 180px;
        margin-bottom: 1rem;
    }
    
    .product-slide .product-image img {
        max-height: 180px;
    }
    
    .product-slide .product-placeholder {
        max-width: 250px;
        height: 180px;
    }
    
    .product-slide .product-price {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .product-slide .buy-now-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        min-width: 160px;
    }
}

/* Remove background, border, padding and shadows from slider container */
.woocommerce-product-slider {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Safety: if a different container class is present, neutralize it */
.product-image-container {
  display: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Ensure any main image has no shadow */
.product-main-image {
  box-shadow: none !important;
}

/* Also remove placeholder visuals if any fallback appears */
.product-slide .product-placeholder {
  display: none !important;
  background: transparent !important;
  border: none !important;
}
