/*
 * Bela Palha Modern Stylesheet
 */

:root {
  --bp-bg-light: #fcfdfb; /* Extremely soft green-tinted white */
  --bp-bg-sand: #f4ebd9;
  --bp-text-dark: #23262f;
  --bp-text-medium: #777e90;
  --bp-primary: #76D73E; /* Logo Lime Green */
  --bp-primary-hover: #5eb62d; /* Darker Lime Green for hover */
  --bp-accent: #c69b6d; /* Golden Straw */
  --bp-white: #ffffff;
  --bp-radius-sm: 8px;
  --bp-radius-md: 16px;
  --bp-radius-lg: 24px;
  --bp-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  --bp-shadow-hover: 0 16px 40px rgba(118, 215, 62, 0.15);
  --bp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography & Core Styling */
body {
  font-family: 'Poppins', sans-serif !important;
  color: var(--bp-text-dark) !important;
  background-color: var(--bp-bg-light) !important;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title,
.woocommerce-loop-product__title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  color: var(--bp-text-dark) !important;
}

/* Custom modern header/navbar */
.ast-primary-header-bar {
  background: rgba(252, 253, 251, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(118, 215, 62, 0.12) !important;
  position: sticky !important;
  top: 0;
  z-index: 999;
}

/* Modernized Buttons - Dark text for contrast against bright logo green */
.wp-block-button__link,
.elementor-button,
.button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-radius: var(--bp-radius-md) !important;
  padding: 14px 32px !important;
  background-color: var(--bp-primary) !important;
  color: var(--bp-text-dark) !important;
  border: none !important;
  transition: var(--bp-transition) !important;
  box-shadow: 0 4px 14px rgba(118, 215, 62, 0.2) !important;
  text-decoration: none !important;
  display: inline-block;
}

.wp-block-button__link:hover,
.elementor-button:hover,
.button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: var(--bp-primary-hover) !important;
  box-shadow: 0 6px 20px rgba(118, 215, 62, 0.3) !important;
  transform: translateY(-2px) !important;
  color: var(--bp-text-dark) !important;
}

/* WooCommerce Product Card Modernization */
ul.products li.product,
.woocommerce ul.products li.product {
  background: var(--bp-white) !important;
  border-radius: var(--bp-radius-md) !important;
  padding: 16px !important;
  box-shadow: var(--bp-shadow) !important;
  transition: var(--bp-transition) !important;
  border: 1px solid rgba(118, 215, 62, 0.04) !important;
  overflow: hidden;
}

ul.products li.product:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--bp-shadow-hover) !important;
}

ul.products li.product img,
.woocommerce ul.products li.product img {
  border-radius: var(--bp-radius-sm) !important;
  transition: var(--bp-transition) !important;
}

ul.products li.product:hover img {
  transform: scale(1.03) !important;
}

.woocommerce-loop-product__title {
  font-size: 1.1rem !important;
  margin-top: 12px !important;
  margin-bottom: 8px !important;
  line-height: 1.35 !important;
  min-height: 58px !important;
  height: auto !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

@media (max-width: 576px) {
  .woocommerce-loop-product__title {
    font-size: 0.95rem !important;
    min-height: 50px !important;
    margin-top: 8px !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
  }
}

.price {
  color: var(--bp-text-dark) !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  font-family: 'Poppins', sans-serif !important;
}

/* Modern Badge - Hidden to avoid overlay errors */
.onsale, .woocommerce-span-onsale, .ast-onsale-card {
  display: none !important;
}

/* WhatsApp Floating CTA */
.bp-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
  z-index: 9999;
  transition: var(--bp-transition);
  text-decoration: none !important;
}

.bp-whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #20ba5a;
  color: white !important;
}

.bp-whatsapp-btn svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Pulsing effect for WhatsApp */
.bp-whatsapp-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #25d366;
  border-radius: 50px;
  z-index: -1;
  opacity: 0.4;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Modernized Checkout / Cart */
.woocommerce-checkout,
.woocommerce-cart {
  background: var(--bp-bg-light) !important;
  padding-top: 40px;
  padding-bottom: 80px;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .woocommerce-cart-form {
  background: var(--bp-white) !important;
  border-radius: var(--bp-radius-md) !important;
  padding: 32px !important;
  box-shadow: var(--bp-shadow) !important;
  border: 1px solid rgba(118, 215, 62, 0.08) !important;
}

/* Custom Hero Layout Utilities */
.bp-hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 4% !important;
  background: linear-gradient(135deg, #fcfdfb 0%, #f4ebd9 100%) !important;
  border-radius: var(--bp-radius-lg);
  margin: 20px 4% !important;
  box-shadow: var(--bp-shadow);
  border: 1px solid rgba(118, 215, 62, 0.06);
}

.bp-hero-content {
  flex: 1;
  max-width: 550px;
  padding-right: 40px;
}

.bp-hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bp-hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--bp-radius-md);
  box-shadow: 0 20px 50px rgba(118, 215, 62, 0.15);
}

@media (max-width: 768px) {
  .bp-hero-section {
    flex-direction: column-reverse;
    text-align: center;
    padding: 40px 24px !important;
    margin: 16px !important;
  }
  .bp-hero-content {
    padding-right: 0;
    margin-top: 32px;
  }
  .woocommerce ul.products li.product,
  ul.products li.product {
    padding: 12px !important;
  }
}

/* Hide Page Header/Title on Homepage */
.home .entry-header {
  display: none !important;
}
