/* ===========================================================
   Bini Veda — Global Design System
   Astra Free + Elementor Free + WooCommerce
   =========================================================== */

:root {
  --bv-primary: #355E3B;
  --bv-primary-hover: #2B4D30;
  --bv-secondary: #6B8E5A;
  --bv-sage: #A8B89A;
  --bv-bg: #F7F3EA;
  --bv-white: #FFFFFF;
  --bv-beige: #E8DDCC;
  --bv-text: #2F332D;
  --bv-muted: #6B7068;
  --bv-accent: #B86B3D;
  --bv-border: #DED8CC;
  --bv-success: #4F7D4A;
  --bv-error: #B54A45;

  --bv-font-heading: 'Poppins', sans-serif;
  --bv-font-body: 'Inter', sans-serif;

  --bv-radius-sm: 8px;
  --bv-radius-md: 14px;
  --bv-content-width: 1200px;
}

/* ---------- Base ---------- */
body {
  background-color: var(--bv-bg);
  color: var(--bv-text);
  font-family: var(--bv-font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.site-title, .ast-woocommerce-container .products .product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.elementor-heading-title {
  font-family: var(--bv-font-heading);
  font-weight: 600;
  color: var(--bv-text);
}

h1 { font-size: 48px; line-height: 1.15; font-weight: 700; }
h2 { font-size: 36px; }
h3 { font-size: 26px; }
h4 { font-size: 22px; }
small, .bv-small { font-size: 14px; }

a { color: var(--bv-primary); }
a:hover { color: var(--bv-primary-hover); }

.site-header, .ast-primary-header-bar, .main-header-bar {
  background-color: var(--bv-white) !important;
  border-bottom: 1px solid var(--bv-border);
}

/* nav menu uses heading font */
.main-navigation, .ast-builder-menu, .site-navigation,
.main-header-menu, .main-header-menu a {
  font-family: var(--bv-font-heading);
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.button, button, input[type="submit"], input[type="button"],
.wp-block-button__link, .elementor-button,
.woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit,
.single_add_to_cart_button {
  background-color: var(--bv-primary) !important;
  color: var(--bv-white) !important;
  border-radius: var(--bv-radius-sm) !important;
  border: none !important;
  padding: 14px 24px !important;
  font-family: var(--bv-font-heading);
  font-weight: 600 !important;
  transition: background-color 200ms ease;
}
.button:hover, button:hover, .elementor-button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.single_add_to_cart_button:hover {
  background-color: var(--bv-primary-hover) !important;
  color: var(--bv-white) !important;
}

.bv-btn-secondary, .woocommerce a.button.bv-btn-secondary {
  background-color: transparent !important;
  color: var(--bv-primary) !important;
  border: 1px solid var(--bv-primary) !important;
}
.bv-btn-secondary:hover {
  background-color: var(--bv-primary) !important;
  color: var(--bv-white) !important;
}

/* ---------- Sections ---------- */
.bv-section-beige { background-color: var(--bv-beige); }
.bv-section-sage { background-color: var(--bv-sage); }
.bv-section-white { background-color: var(--bv-white); }

/* ---------- WooCommerce product cards ---------- */
ul.products li.product,
.woocommerce ul.products li.product {
  background-color: var(--bv-white);
  border: 1px solid var(--bv-border);
  border-radius: var(--bv-radius-md);
  box-shadow: 0 4px 18px rgba(47,51,45,0.06);
  padding: 16px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47,51,45,0.10);
}
.woocommerce ul.products li.product .price ins {
  color: var(--bv-primary);
  text-decoration: none;
}
.woocommerce ul.products li.product .price del {
  color: var(--bv-muted);
}
.onsale {
  background-color: var(--bv-accent) !important;
  color: var(--bv-white) !important;
  border-radius: var(--bv-radius-sm) !important;
  font-family: var(--bv-font-heading);
}

/* ---------- Status colors ---------- */
.woocommerce-message, .bv-success { border-top-color: var(--bv-success) !important; }
.woocommerce-message::before { color: var(--bv-success) !important; }
.woocommerce-error, .bv-error { border-top-color: var(--bv-error) !important; }
.woocommerce-error::before { color: var(--bv-error) !important; }

/* ===========================================================
   Announcement Bar
   =========================================================== */
.bv-announcement-bar {
  background-color: var(--bv-primary);
  color: var(--bv-white);
  text-align: center;
  padding: 8px 16px;
}
.bv-announcement-bar p {
  margin: 0;
  font-size: 14px;
  font-family: var(--bv-font-body);
  letter-spacing: 0.2px;
}

/* ===========================================================
   Mobile bottom navigation (custom — Astra Free has no native one)
   =========================================================== */
.bv-mobile-nav {
  display: none;
}

@media (max-width: 767px) {
  .bv-mobile-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: var(--bv-white);
    border-top: 1px solid var(--bv-border);
    box-shadow: 0 -2px 12px rgba(47,51,45,0.06);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bv-mobile-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    padding: 6px 0;
    color: var(--bv-text);
    text-decoration: none;
    font-family: var(--bv-font-body);
  }
  .bv-mobile-nav__icon {
    position: relative;
    font-size: 20px;
    line-height: 1;
    color: var(--bv-primary);
  }
  .bv-mobile-nav__label {
    font-size: 11px;
    color: var(--bv-muted);
  }
  .bv-mobile-nav__badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--bv-accent);
    color: var(--bv-white);
    font-size: 10px;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 999px;
    font-family: var(--bv-font-body);
  }

  /* keep page content clear of the fixed bottom nav */
  body {
    padding-bottom: 64px;
  }

  .bv-mobile-search-panel {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 64px;
    z-index: 998;
    background: var(--bv-white);
    border-top: 1px solid var(--bv-border);
    padding: 12px 16px;
  }
  .bv-mobile-search-panel.is-open {
    display: block;
  }
  .bv-mobile-search-panel input[type="search"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--bv-border);
    border-radius: var(--bv-radius-sm);
    font-family: var(--bv-font-body);
  }

  /* hide Astra's default mobile menu trigger duplication where the bottom nav covers it */
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  h3 { font-size: 23px; }
  body, p { font-size: 16px; }
}

@media (min-width: 768px) {
  .bv-mobile-search-panel { display: none !important; }
}

/* ===========================================================
   Footer
   =========================================================== */
.bv-site-footer {
  background-color: #2F332D;
  color: #FFFFFF;
  padding: 60px 24px 0;
  font-family: var(--bv-font-body);
}
.bv-footer-inner {
  max-width: var(--bv-content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}
.bv-footer-col h3, .bv-footer-col h4 {
  font-family: var(--bv-font-heading);
  color: #FFFFFF;
  font-size: 16px;
  margin: 0 0 14px;
}
.bv-footer-col p { color: #D8DDD3; font-size: 14px; margin: 0 0 10px; }
.bv-footer-muted { color: #A8B89A; }
.bv-footer-menu { list-style: none; margin: 0; padding: 0; }
.bv-footer-menu li { margin-bottom: 8px; }
.bv-footer-menu a { color: #D8DDD3; text-decoration: none; font-size: 14px; }
.bv-footer-menu a:hover { color: #A8B89A; }
.bv-newsletter__form { display: flex; gap: 8px; margin-top: 8px; }
.bv-newsletter__form input[type="email"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--bv-radius-sm);
  border: 1px solid #4a4f45;
  background: #3a3f37;
  color: #fff;
  font-family: var(--bv-font-body);
}
.bv-newsletter__form button { padding: 10px 16px !important; }
.bv-newsletter__success { color: #A8B89A; }
.bv-footer-bottom {
  max-width: var(--bv-content-width);
  margin: 0 auto;
  border-top: 1px solid #454a41;
  padding: 20px 0;
  text-align: center;
}
.bv-footer-bottom p { color: #A8B89A; font-size: 13px; margin: 0; }

@media (max-width: 991px) {
  .bv-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .bv-footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Buy Now + Share (Phase 10) ---------- */
.bv-buy-now { margin-left: 10px; }
.bv-share { margin-top: 20px; display: flex; align-items: center; gap: 10px; font-family: var(--bv-font-body); }
.bv-share__label { color: var(--bv-muted); font-size: 14px; }
.bv-share__icon {
  font-size: 13px;
  color: var(--bv-primary);
  border: 1px solid var(--bv-border);
  border-radius: var(--bv-radius-sm);
  padding: 6px 10px;
  background: var(--bv-white);
  text-decoration: none;
  cursor: pointer;
}
.bv-share__icon:hover { border-color: var(--bv-primary); }

/* Sticky desktop header (Astra Free supports sticky via customizer, this reinforces it) */
@media (min-width: 768px) {
  .ast-header-break-point .site-header,
  .site-header {
    position: sticky;
    top: 0;
    z-index: 99;
  }
}
