/*
Theme Name: LaviMD Research Child
Template: astra
Version: 1.0.0
Description: LaviMD Research Peptides - AlayPay Compliant Child Theme
Author: LaviMD
*/

/* ===================================
   GLOBAL / RESET
=================================== */
:root {
  --primary:     #111111;
  --accent:      #111111;
  --accent-dark: #000000;
  --light-bg:    #f8f9fb;
  --border:      #e2e6ea;
  --text:        #333333;
  --muted:       #6c757d;
  --white:       #ffffff;
  --font:        'Inter', 'Helvetica Neue', Arial, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }

/* ===================================
   COMPLIANCE DISCLAIMER BANNER
=================================== */
.site-wide-disclaimer {
  background: #fff3cd;
  border-bottom: 2px solid #ffc107;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #856404;
  letter-spacing: 0.01em;
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* ===================================
   HEADER
=================================== */
.ast-header-wrap {
  border-bottom: 1px solid var(--border);
}

/* ===================================
   HERO SECTION
=================================== */
.lavi-hero {
  background: linear-gradient(135deg, #f8f9fb 0%, #eef2ff 100%);
  padding: 80px 20px;
  text-align: center;
}
.lavi-hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.15;
}
.lavi-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.lavi-hero .btn-primary {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
  border: 2px solid #111;
}
.lavi-hero .btn-primary:hover {
  background: transparent;
  color: #111;
}

/* ===================================
   TRUST BAR
=================================== */
.lavi-trust-bar {
  background: #111;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.lavi-trust-bar span { display: flex; align-items: center; gap: 8px; }

/* ===================================
   SECTION HEADERS
=================================== */
.lavi-section { padding: 60px 20px; }
.lavi-section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 8px;
}
.lavi-section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 16px;
}

/* ===================================
   PRODUCT CARDS (Shop Page)
=================================== */
.woocommerce ul.products li.product {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--white);
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  margin-bottom: 24px !important;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

/* 1:1 square image */
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #f8f9fb;
}
.woocommerce ul.products li.product a.woocommerce-loop-product__link img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0 !important;
  border-radius: 0;
  display: block;
}

/* Category label */
.woocommerce ul.products li.product .ast-woo-product-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 16px 0;
  margin: 0;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  padding: 8px 16px 4px;
  margin: 0 !important;
  line-height: 1.4;
}

/* ── PRICE: show only base price + strikethrough compare-at ── */
.woocommerce ul.products li.product .price {
  padding: 4px 16px 12px;
  margin: 0 !important;
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #111;
}
/* Strikethrough compare-at price */
.woocommerce ul.products li.product .price del {
  display: inline !important;
  opacity: 1;
  font-size: 13px;
  font-weight: 500;
  color: #999;
  text-decoration: line-through;
  margin-right: 5px;
}
.woocommerce ul.products li.product .price del .woocommerce-Price-amount {
  color: #999;
}
/* Actual sale price */
.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
  font-weight: 800;
  color: #111;
}
/* Hide the range second price (the "– $xxx.xx" part for variable products) */
.woocommerce ul.products li.product .price > .woocommerce-Price-amount ~ *,
.woocommerce ul.products li.product .price > .woocommerce-Price-amount:last-child:not(:only-child) {
  display: none !important;
}
/* Keep only the FIRST price amount shown */
.woocommerce ul.products li.product .price > .woocommerce-Price-amount:first-child {
  display: inline !important;
}

/* Button — black with white text */
.woocommerce ul.products li.product .button {
  margin: auto 16px 16px !important;
  display: block !important;
  width: calc(100% - 32px) !important;
  text-align: center;
  border-radius: 6px;
  background: #111 !important;
  color: #fff !important;
  border: 2px solid #111 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 11px 20px !important;
  transition: background 0.18s, color 0.18s !important;
  box-sizing: border-box;
}
.woocommerce ul.products li.product .button:hover {
  background: transparent !important;
  color: #111 !important;
  border: 2px solid #111 !important;
}

/* Remove disclaimer pseudo-elements */
.woocommerce ul.products li.product::after,
.woocommerce ul.products li.product::before {
  display: none !important;
  content: none !important;
}
.woocommerce ul.products li.product span[style*="fff3cd"] {
  display: none !important;
}

/* ===================================
   SINGLE PRODUCT PAGE
=================================== */
.lavi-research-badge {
  display: inline-block;
  background: #f0f4ff;
  border: 1px solid #c7d7fa;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #2a4a9c;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.lavi-product-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.lavi-product-specs th,
.lavi-product-specs td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.lavi-product-specs th {
  background: var(--light-bg);
  font-weight: 700;
  color: #111;
  width: 40%;
}

/* ===================================
   WOOCOMMERCE BUTTONS (global)
=================================== */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: #111 !important;
  color: #fff !important;
  border: 2px solid #111 !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  transition: background 0.18s, color 0.18s;
  box-sizing: border-box;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: transparent !important;
  color: #111 !important;
  border: 2px solid #111 !important;
}

/* ===================================
   FOOTER DISCLAIMER
=================================== */
.lavi-footer-disclaimer {
  background: #111;
  color: #aab0bc;
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  line-height: 1.7;
  border-top: 3px solid #333;
}
.lavi-footer-disclaimer strong {
  color: #fff;
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

/* ===================================
   FLOATING CART BUTTON
=================================== */
.lavimd-floating-cart {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  width: 56px;
  height: 56px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: background 0.18s, transform 0.18s;
  border: 2px solid #111;
}
.lavimd-floating-cart:hover {
  background: #fff;
  color: #111;
  transform: scale(1.08);
  border: 2px solid #111;
}
.lavimd-floating-cart svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Cart item count badge */
.lavimd-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e53e3e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
}
.lavimd-cart-count.hidden { display: none; }

/* ===================================
   CART / CHECKOUT
=================================== */
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout .checkout {
  font-size: 15px;
}

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 768px) {
  .lavi-trust-bar { gap: 18px; font-size: 12px; }
  .lavi-hero { padding: 50px 16px; }
  .lavi-section { padding: 40px 16px; }
  .lavimd-floating-cart { bottom: 18px; right: 18px; width: 50px; height: 50px; }
}
