/*
 Theme Name:   Aarogya
 Theme URI:    https://aarogyajeevanam.in/
 Description:  Aarogya Jeevanam Custom Theme
 Author:       Antigravity
 Author URI:   https://example.com
 Template:     aarogya
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  aarogya-child
*/

/* ==========================================================================
   Conversion Optimization Styles
   ========================================================================== */

/* Trust Badges */
.trust-badges-container {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
  color: #555;
  background: #f9f9f9;
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #eee;
}

/* Sticky Add to Cart (Mobile) */
@media (max-width: 768px) {
  .single-product .summary form.cart {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 15px;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    left: 0;
    margin-bottom: 0;
  }
}

/* Call to Action Buttons */
.single_add_to_cart_button {
  background-color: #2e4f28 !important;
  /* Kapiva Green */
  /* Green for go/buy */
  color: white !important;
  font-weight: bold !important;
  padding: 12px 24px !important;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease !important;
  border-radius: 50px !important;
  /* Pill shape */
}

/* ==========================================================================
   CRO (Conversion Rate Optimization) Styles
   ========================================================================== */

/* 1. Signals (Urgency & Viewing) */
.cro-live-viewing,
.cro-order-urgency {
  margin-bottom: 10px;
  font-size: 0.95em;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cro-live-viewing strong,
.cro-order-urgency strong {
  color: #e74c3c;
  /* Red for urgency */
}

/* Pulse Animation for "Live" dot */
.pulse-icon {
  width: 10px;
  height: 10px;
  background-color: #e74c3c;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

/* 2. Sticky Product Bar */
.cro-sticky-bar {
  position: fixed;
  bottom: -100px;
  /* Hidden by default */
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 10px 20px;
  transition: bottom 0.3s ease-in-out;
}

.cro-sticky-bar.visible {
  bottom: 0;
}

.cro-sticky-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cro-sticky-product {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cro-sticky-product img {
  height: 50px;
  width: auto;
  border-radius: 4px;
}

.cro-sticky-info {
  display: flex;
  flex-direction: column;
}

.cro-sticky-title {
  font-weight: bold;
  font-size: 1.1em;
}

.cro-sticky-price {
  font-size: 0.9em;
  color: #2e4f28;
  /* Kapiva Green */
  font-weight: bold;
}

.cro-sticky-btn {
  background-color: #2e4f28 !important;
  /* Kapiva Green */
  color: white !important;
  padding: 12px 30px !important;
  border-radius: 30px !important;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s;
}

.cro-sticky-btn:hover {
  background-color: #1a3016 !important;
  /* Darker Green */
}

/* Mobile Adjustments for Sticky Bar */
@media (max-width: 600px) {
  .cro-sticky-product img {
    display: none;
    /* Hide image on small screens */
  }

  .cro-sticky-title {
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }
}

/* ==========================================================================
   Product Sticky Navigation
   ========================================================================== */
#product-sticky-nav {
  position: sticky;
  top: 56px; /* Mobile header height */
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  #product-sticky-nav {
    top: 80px; /* Desktop header height */
  }
}

#product-sticky-nav a.active {
  color: #2563eb; /* Modern Blue */
  border-bottom-color: #2563eb;
}

/* UTILITIES */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* ==========================================================================
   WooCommerce Cart & Checkout Styling
   ========================================================================== */

/* Cart Table Styling */
.woocommerce-cart-form__contents thead th {
  background-color: #f9f9f9;
  padding: 15px !important;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 2px solid #eee;
}

.woocommerce-cart-form__contents .cart_item td {
  padding: 20px 15px !important;
  vertical-align: middle;
}

.woocommerce-cart .product-name a {
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.woocommerce-cart .product-name a:hover {
  color: #2563eb;
}

/* Coupon & Update Cart */
.woocommerce-cart .coupon .input-text {
  border-radius: 4px;
  padding: 10px 15px !important;
  border: 1px solid #ddd;
}

.woocommerce-cart .actions .button {
  background-color: #f5f5f5 !important;
  color: #333 !important;
  border-radius: 50px !important;
  padding: 12px 25px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 11px !important;
  border: 1px solid #ddd !important;
}

.woocommerce-cart .actions .button:hover {
  background-color: #eee !important;
}

/* Cart Totals */
.cart-collaterals {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
}

.cart-collaterals h2 {
  font-family: "Fraunces", serif;
  font-size: 24px !important;
  margin-bottom: 20px !important;
}

.shop_table_responsive tr td::before {
  font-weight: 700;
  color: #1a1a1a;
}

/* Main Checkout Button (Classic & Blocks) */
.wc-proceed-to-checkout .checkout-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-step__container .wc-block-components-button,
.wp-block-woocommerce-cart .wc-block-cart__submit-button {
  background-color: #2e4f28 !important;
  /* Brand Green */
  color: white !important;
  padding: 18px 30px !important;
  border-radius: 50px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  font-size: 14px !important;
  letter-spacing: 0.05em;
  transition: all 0.3s ease !important;
  width: 100% !important;
  text-align: center;
  box-shadow: 0 4px 15px rgba(46, 79, 40, 0.2);
}

.wc-proceed-to-checkout .checkout-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-step__container
  .wc-block-components-button:hover {
  background-color: #1a3016 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 79, 40, 0.3);
}

/* Quantity Input */
.woocommerce-cart .quantity .qty {
  width: 60px !important;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #ddd;
  text-align: center;
}
/* ==========================================================================
   Typography & Readability Enhancements
   ========================================================================== */
/* ==========================================================================
   Typography & Readability Enhancements
   ========================================================================== */
.prose {
  font-size: 18px;
  line-height: 1.8;
  color: #333; /* Darker text for better contrast */
  max-width: 800px; /* Optimal reading width */
  margin-left: auto;
  margin-right: auto;
}

.prose p {
  margin-bottom: 32px !important;
}

.prose strong,
.prose b {
  color: #111;
  font-weight: 800;
}

.prose em,
.prose i {
  font-style: italic;
}

.prose a {
  color: #2563eb; /* Modern Blue Link Color */
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #1d4ed8; /* Darker Blue on Hover */
  text-decoration-thickness: 2px;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  font-family: "Fraunces", serif;
  color: #141712;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 60px !important;
  margin-bottom: 24px !important;
}

.prose h1 {
  font-size: 2.75rem;
}
.prose h2 {
  font-size: 2.25rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}
.prose h3 {
  font-size: 1.75rem;
}
.prose h4 {
  font-size: 1.4rem;
}

.prose ul,
.prose ol {
  margin-bottom: 32px !important;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 16px !important;
}

/** Detect bold text that acts as headings (Clutter Fix) **/
.prose p strong:only-child {
  display: block;
  font-size: 1.25rem;
  margin-top: 40px;
  color: #1a1a1a;
}

.prose blockquote {
  border-left: 4px solid #2e4f28;
  padding: 20px 30px;
  font-style: italic;
  color: #555;
  margin: 48px 0;
  background: #f9f9f9;
  border-radius: 0 8px 8px 0;
}

.prose img {
  border-radius: 12px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.text-readability {
  color: #1f2937; /* Gray 800 for high contrast */
  line-height: 1.7;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .prose {
    font-size: 16px;
  }
  .prose h1 {
    font-size: 2rem;
  }
  .prose h2 {
    font-size: 1.75rem;
  }
  .prose h3 {
    font-size: 1.35rem;
  }
  .prose p {
    margin-bottom: 24px !important;
  }
}

/* ==========================================================================
   Mobile Typography Optimizations (Conversion Rate Optimized)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Body Text - Minimum 16px spacing to prevent eye strain */
  body,
  p,
  .text-readability p,
  .woocommerce-product-details__short-description p {
    font-size: 16px;
    line-height: 1.5; /* Approx 24px-26px breathing room */
  }

  /* 2. Main Headlines (H1) */
  h1,
  .product_title,
  .entry-title {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }

  /* 3. Sub-headings (H2, H3) */
  h2,
  h3 {
    font-size: 20px !important;
    line-height: 1.4 !important;
  }

  /* 4. Buttons (CTAs) - Highly clickable */
  .button,
  button,
  .single_add_to_cart_button,
  .checkout-button,
  .add_to_cart_button {
    font-size: 16px !important;
    font-weight: 700 !important;
  }

  /* 5. Inputs - Prevent iOS Auto-Zoom */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important; /* Absolute minimum for mobile inputs */
  }

  /* 6. Legal / Captions */
  .legal-text,
  .privacy-policy,
  .disclaimer-text {
    font-size: 12px;
    line-height: 1.4;
  }
}
