/* Scrolling marquee line in hero section */
.hero-scrolling-line {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  overflow: hidden;
  padding: 12px 0;
  position: relative;
  text-transform: uppercase;
  white-space: nowrap;
  width: 100%;
  z-index: 10;
}

.hero-scrolling-line-wrapper {
  display: flex;
  width: 200%;
  animation: scroll-marquee 30s linear infinite;
}

.hero-scrolling-line-content {
  flex: 0 0 50%;
  padding: 0 20px;
  text-align: center;
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* WhatsApp button for products - positioned inside the card at bottom */
.product-whatsapp-btn {
  align-items: center;
  background: #25d366 !important;
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
  color: #fff !important;
  cursor: pointer;
  display: flex !important;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 12px 20px !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  z-index: 999 !important;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}

/* Ensure product cards maintain their styling and can contain buttons */
.category-filter-btn:not(.category-filters):not(.product-categories):not(.category-filters-section),
.product-category:not(.product-categories):not(.products-grid),
.product-card:not(.products-grid):not(.product-categories),
[class*="card"]:not(.products-grid):not(.product-categories):not(.category-filters) {
  position: relative !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Button inside card should be at the bottom */
.category-filter-btn .product-whatsapp-btn,
.product-category .product-whatsapp-btn,
.product-card .product-whatsapp-btn {
  margin-top: auto !important;
}

/* Ensure parent containers don't hide buttons */
.category-filters,
.product-categories,
.products-grid,
.category-filters-section {
  overflow: visible !important;
}

/* Ensure buttons are in a visible container */
.product-whatsapp-btn {
  clear: both;
  float: none;
}

/* Button is now outside the card, so no need for flex adjustments */

/* If a WhatsApp button is ever accidentally added directly under a container (not inside a card),
   hide only that direct-child case. Do NOT hide buttons inside cards. */
.category-filters > .product-whatsapp-btn,
.product-categories > .product-whatsapp-btn,
.products-grid > .product-whatsapp-btn,
.category-filters-section > .product-whatsapp-btn {
  display: none !important;
  visibility: hidden !important;
}

.product-whatsapp-btn:hover {
  background: #20ba5a;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.product-whatsapp-btn:active {
  transform: translateY(0);
}

.product-whatsapp-btn svg {
  fill: #fff;
  height: 18px;
  width: 18px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .hero-scrolling-line {
    font-size: 0.85rem;
    padding: 10px 0;
  }
  
  .product-whatsapp-btn {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
}

@media (max-width: 480px) {
  .hero-scrolling-line {
    font-size: 0.75rem;
    padding: 8px 0;
  }
  
  .product-whatsapp-btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

