/*
Theme Name: Baam e Hayat Hair Oil One Page
Theme URI: https://baamehayat.com
Author: Baam e Hayat
Author URI: https://baamehayat.com
Description: Minimal one-page WooCommerce theme for a hair oil product with a clean layout and green accents.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: baamehayat-onepage
*/

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #ebf7ef;
  --card: #ffffff;
  --text: #123524;
  --muted: #5c7768;
  --accent: #2f8f56;
  --accent-strong: #1f6c3f;
  --border: #d1e8d8;
}

* { box-sizing: border-box; }

html,
body,
.wp-site-blocks,
#page,
#content,
.woocommerce,
.woocommerce-page {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--text) !important;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.site-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px;
}

/* ── Navbar ── */
.bh-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(29, 86, 52, 0.07);
}

.bh-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text) !important;
  text-decoration: none;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}

.bh-brand small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.bh-navbar .navbar-nav .nav-item a,
.bh-navbar .navbar-nav .nav-item > a {
  color: var(--text);
  text-decoration: none;
}

.bh-navbar .navbar-nav .nav-item a:hover,
.bh-navbar .navbar-nav .nav-item > a:hover {
  color: var(--accent);
}

.bh-navbar .navbar-toggler {
  border-color: var(--border);
}

.bh-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232f8f56' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(29, 86, 52, 0.08);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }

h1 { font-size: clamp(30px, 5vw, 54px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 18px; }

.lead {
  color: var(--muted);
  max-width: 60ch;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: #275740;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.section { margin-top: 24px; }

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 18px;
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

.product-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-img {
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 260px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eff9f2, #e2f3e7);
  overflow: hidden;
}

.product-img img {
  max-width: 100%;
  height: auto;
  display: block;
}

.price {
  font-size: 28px;
  font-weight: 800;
}

footer {
  margin-top: 30px;
  padding: 22px 0 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.woocommerce-notice,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  margin: 12px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 12px 14px;
}

.btn-success {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-success:hover,
.btn-success:focus {
  background-color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-outline-success {
  color: var(--accent-strong);
  border-color: var(--accent);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  color: #fff;
  background-color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .site-wrap { padding: 16px; }
  .panel { padding: 20px; }
}

/* ══════════════════════════════════════════════
   PAGE SECTIONS
══════════════════════════════════════════════ */
.bh-section {
  margin-top: 56px;
}

/* ══════════════════════════════════════════════
   SHARED BADGE
══════════════════════════════════════════════ */
.bh-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════
   LEAD TEXT
══════════════════════════════════════════════ */
.bh-lead {
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.05rem;
}

/* ══════════════════════════════════════════════
   PILLS (hero top)
══════════════════════════════════════════════ */
.bh-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   TRUST PILLS (below add-to-cart)
══════════════════════════════════════════════ */
.bh-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

/* ══════════════════════════════════════════════
   HERO PRICE
══════════════════════════════════════════════ */
.bh-price-hero {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}
.bh-price-hero .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.bh-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s;
}
.bh-btn-primary:hover { background: var(--accent-strong); color: #fff; }

.bh-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent-strong);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.bh-btn-outline:hover { background: var(--surface-soft); color: var(--accent-strong); }

.bh-btn-lg { padding: 13px 32px; font-size: 15px; }

/* ══════════════════════════════════════════════
   PRODUCT IMAGE WRAP (hero)
══════════════════════════════════════════════ */
.bh-product-img-wrap {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, #eff9f2, #e2f3e7);
  min-height: 320px;
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}
.bh-product-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.bh-product-img-placeholder {
  text-align: center;
  padding: 40px;
}

/* ══════════════════════════════════════════════
   BENEFIT CARDS
══════════════════════════════════════════════ */
.bh-benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  transition: box-shadow 0.2s;
}
.bh-benefit-card:hover {
  box-shadow: 0 8px 28px rgba(29, 86, 52, 0.12);
}
.bh-benefit-icon {
  width: 44px;
  height: 44px;
  background: var(--surface-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

/* ══════════════════════════════════════════════
   PANEL (shared for details / usage)
══════════════════════════════════════════════ */
.bh-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 6px 20px rgba(29, 86, 52, 0.07);
}

/* ══════════════════════════════════════════════
   PRODUCT DETAIL CELLS
══════════════════════════════════════════════ */
.bh-detail-cell {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bh-detail-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.bh-detail-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* ══════════════════════════════════════════════
   INGREDIENT BADGES
══════════════════════════════════════════════ */
.bh-ingredient-badge {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   USAGE STEPS
══════════════════════════════════════════════ */
.bh-step { align-items: flex-start; }
.bh-step-num {
  min-width: 36px;
  height: 36px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-strong);
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════ */
.bh-testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}
.bh-stars { display: flex; gap: 3px; }
.bh-avatar {
  width: 34px;
  height: 34px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-strong);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   PRICING BOX
══════════════════════════════════════════════ */
.bh-pricing-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 32px;
}
.bh-pricing-price {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.bh-pricing-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }

/* ══════════════════════════════════════════════
   FAQ ACCORDION
══════════════════════════════════════════════ */
.bh-accordion { max-width: 720px; margin: 0 auto; }

.bh-accordion-item {
  background: var(--card);
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  margin-bottom: 10px;
  overflow: hidden;
}

.bh-accordion-btn {
  background: transparent !important;
  color: var(--text) !important;
  font-weight: 600;
  font-size: 15px;
  box-shadow: none !important;
  padding: 18px 22px;
}

.bh-accordion-btn::after {
  filter: invert(28%) sepia(48%) saturate(560%) hue-rotate(103deg) brightness(94%) contrast(91%);
}

.bh-accordion-body {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  padding: 0 22px 18px;
}

/* ══════════════════════════════════════════════
   PAGE FOOTER
══════════════════════════════════════════════ */
.bh-footer {
  margin-top: 64px;
  padding: 32px 0 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}
.bh-footer-inner { max-width: 600px; margin: 0 auto; }
.bh-footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.bh-footer-link:hover { color: var(--accent); }

/* ══════════════════════════════════════════════
   RESPONSIVE TWEAKS
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .bh-product-img-wrap { max-width: 100%; min-height: 240px; }
  .bh-pricing-box { padding: 32px 20px; }
  .bh-section { margin-top: 40px; }
}
