/*
Theme Name: BuddyMoose Solar Store
Theme URI: https://buddymoose.com
Author: BuddyMoose
Author URI: https://buddymoose.com
Description: Modern solar equipment e-commerce theme, architecture inspired by EcoFlow. Sections: announcement bar, hero carousel, category showcases, promo banners, trust badges, testimonials, certifications, membership, newsletter, footer.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: buddymoose
*/

/* ==========================================================================
   BuddyMoose Theme v2 — EcoFlow-style architecture
   ========================================================================== */

:root {
  --bm-green: #00b14f;
  --bm-green-dark: #008f40;
  --bm-green-light: #e6f7ee;
  --bm-ink: #1a1a1a;
  --bm-gray: #666;
  --bm-gray-light: #f5f6f7;
  --bm-border: #e8e8e8;
  --bm-white: #fff;
  --bm-shadow: 0 4px 24px rgba(0,0,0,.08);
  --bm-radius: 12px;
  --bm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--bm-font);
  color: var(--bm-ink);
  background: var(--bm-white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-gray { background: var(--bm-gray-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--bm-green); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.section-head p { color: var(--bm-gray); margin-top: 12px; font-size: 16px; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 8px;
  font-weight: 700; font-size: 15px; text-align: center; transition: all .2s;
}
.btn-green { background: var(--bm-green); color: #fff; }
.btn-green:hover { background: var(--bm-green-dark); }
.btn-dark { background: var(--bm-ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border: 2px solid var(--bm-ink); color: var(--bm-ink); background: transparent; }
.btn-outline:hover { background: var(--bm-ink); color: #fff; }
.btn-outline-light { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--bm-ink); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ==========================================================================
   1. Announcement bar
   ========================================================================== */
.announce-bar { background: var(--bm-ink); color: #fff; font-size: 13px; position: relative; overflow: hidden; }
.announce-track { display: flex; transition: transform .5s ease; }
.announce-slide { flex: 0 0 100%; text-align: center; padding: 9px 40px; }
.announce-slide a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.announce-slide .hl { color: var(--bm-green); font-weight: 700; }
.announce-arrows { position: absolute; top: 0; bottom: 0; width: 34px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); border: 0; color: #fff; font-size: 14px; z-index: 2; }
.announce-arrows.prev { left: 0; }
.announce-arrows.next { right: 0; }

/* ==========================================================================
   2. Header
   ========================================================================== */
.site-header { background: #fff; border-bottom: 1px solid var(--bm-border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo-mark { width: 40px; height: 40px; }
.brand .logo-text { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.brand .logo-text span { color: var(--bm-green); }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-size: 15px; font-weight: 500; color: #333; transition: color .2s; }
.main-nav a:hover { color: var(--bm-green); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.icon-btn:hover { background: var(--bm-gray-light); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: 2px; right: 2px; background: var(--bm-green); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.menu-toggle { display: none; }

/* ==========================================================================
   3. Hero carousel
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform .6s ease; }
.hero-slide { flex: 0 0 100%; min-height: 480px; display: flex; align-items: center; color: #fff; position: relative; }
.hero-slide .hero-bg { position: absolute; inset: 0; }
.hero-slide .hero-content { position: relative; z-index: 2; max-width: 560px; }
.hero-slide .hero-tag { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; backdrop-filter: blur(4px); }
.hero-slide h1 { font-size: 46px; font-weight: 800; line-height: 1.15; letter-spacing: -1px; margin-bottom: 16px; }
.hero-slide p { font-size: 17px; opacity: .92; margin-bottom: 28px; max-width: 460px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-nav { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); transition: all .3s; }
.hero-dot.active { background: #fff; width: 26px; border-radius: 6px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: background .2s; z-index: 5; }
.hero-arrow:hover { background: rgba(255,255,255,.3); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* ==========================================================================
   4. Category showcase
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card { background: #fff; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--bm-shadow); }
.cat-card .cat-media { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 72px; }
.cat-card .cat-body { padding: 20px 22px 24px; }
.cat-card .cat-title { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.cat-card .cat-desc { color: var(--bm-gray); font-size: 14px; margin-bottom: 16px; min-height: 42px; }
.cat-card .cat-link { color: var(--bm-green); font-weight: 700; font-size: 14px; }
.cat-card .cat-link:hover { text-decoration: underline; }

/* ==========================================================================
   5. Product strip (within category rows, EcoFlow style: 2 large + see more)
   ========================================================================== */
.showcase-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin-bottom: 40px; }
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.reverse .showcase-media { order: 2; }
.showcase-media { aspect-ratio: 16/10; border-radius: var(--bm-radius); display: flex; align-items: center; justify-content: center; font-size: 120px; overflow: hidden; }
.showcase-body h3 { font-size: 28px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 10px; }
.showcase-body .spec { color: var(--bm-gray); font-size: 15px; margin-bottom: 8px; }
.showcase-body .price-line { font-size: 22px; font-weight: 800; color: var(--bm-green); margin: 14px 0 20px; }
.showcase-body .price-line small { font-size: 13px; color: var(--bm-gray); font-weight: 500; }
.see-more { text-align: center; margin-top: 36px; }

/* ==========================================================================
   6. Promo banners
   ========================================================================== */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo-card { border-radius: var(--bm-radius); padding: 40px 36px; color: #fff; min-height: 240px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.promo-card h3 { font-size: 26px; font-weight: 800; margin-bottom: 10px; letter-spacing: -.3px; }
.promo-card p { opacity: .92; margin-bottom: 20px; max-width: 380px; font-size: 15px; }
.promo-card .promo-emoji { position: absolute; right: 24px; bottom: 16px; font-size: 90px; opacity: .35; }

/* ==========================================================================
   7. Trust badges (Why Shop)
   ========================================================================== */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { background: #fff; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); padding: 26px 22px; text-align: center; transition: transform .2s, box-shadow .2s; }
.trust-item:hover { transform: translateY(-3px); box-shadow: var(--bm-shadow); }
.trust-item .trust-icon { font-size: 34px; margin-bottom: 12px; }
.trust-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.trust-item p { font-size: 13px; color: var(--bm-gray); }

/* ==========================================================================
   8. Testimonials
   ========================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: #fff; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); padding: 28px; }
.testi-card .stars { color: #ffb400; font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.testi-card blockquote { font-size: 15px; color: #333; line-height: 1.7; margin-bottom: 18px; }
.testi-card .who { display: flex; align-items: center; gap: 12px; }
.testi-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bm-green-light); color: var(--bm-green); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.testi-card .who .name { font-weight: 700; font-size: 14px; }
.testi-card .who .role { font-size: 12px; color: var(--bm-gray); }

/* ==========================================================================
   9. Endorsed by / certifications
   ========================================================================== */
.cert-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 44px; align-items: center; }
.cert-item { font-size: 15px; font-weight: 700; color: #999; display: flex; align-items: center; gap: 8px; transition: color .2s; }
.cert-item:hover { color: var(--bm-ink); }
.cert-item svg { width: 26px; height: 26px; }

/* ==========================================================================
   10. Membership / partner CTA
   ========================================================================== */
.member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.member-card { border-radius: var(--bm-radius); padding: 40px 36px; }
.member-card.primary { background: linear-gradient(135deg, var(--bm-green) 0%, #008f40 100%); color: #fff; }
.member-card.secondary { background: var(--bm-ink); color: #fff; }
.member-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.member-card p { opacity: .9; margin-bottom: 22px; font-size: 15px; }
.member-card .member-note { font-size: 13px; opacity: .75; margin-top: 12px; }

/* ==========================================================================
   11. Newsletter
   ========================================================================== */
.newsletter { background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 100%); color: #fff; text-align: center; }
.newsletter h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.newsletter p { opacity: .85; margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 14px 18px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 15px; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { border-color: var(--bm-green); }
.newsletter .fine { font-size: 12px; opacity: .6; margin-top: 16px; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer { background: #0d1b2a; color: #fff; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: #9aa7b5; font-size: 14px; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; color: #fff; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #9aa7b5; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--bm-green); }
.footer-contact li { color: #9aa7b5; font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #7d8a99; }
.pay-icons { display: flex; gap: 10px; font-size: 12px; }
.pay-icons span { background: rgba(255,255,255,.1); padding: 5px 10px; border-radius: 5px; font-weight: 700; }

/* ==========================================================================
   13. Page templates (shop / product / generic)
   ========================================================================== */
.page-hero { background: var(--bm-gray-light); padding: 56px 0 40px; text-align: center; }
.page-hero h1 { font-size: 36px; font-weight: 800; }
.page-hero p { color: var(--bm-gray); margin-top: 8px; }
.content-area { max-width: 860px; margin: 0 auto; padding: 48px 24px; }
.content-area h2 { font-size: 26px; margin: 28px 0 14px; }
.content-area p { margin-bottom: 16px; color: #444; }
.products-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

/* ==========================================================================
   Search overlay
   ========================================================================== */
.search-overlay { position: fixed; inset: 0; background: rgba(13,27,42,.92); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(6px); }
.search-overlay.open { display: flex; }
.search-box { width: 100%; max-width: 640px; position: relative; }
.search-box form { display: flex; gap: 10px; }
.search-box input { flex: 1; padding: 16px 20px; border-radius: 10px; border: 2px solid transparent; font-size: 17px; outline: none; }
.search-box input:focus { border-color: var(--bm-green); }
.search-box button { padding: 14px 28px; background: var(--bm-green); color: #fff; border: 0; border-radius: 10px; font-weight: 700; font-size: 15px; }
.search-close { position: absolute; top: -46px; right: 0; background: transparent; border: 0; color: #fff; font-size: 26px; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fade-up { opacity: 0; }
.fade-up.in-view { animation: fadeUp .6s ease forwards; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .main-nav.open { display: block; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--bm-border); padding: 16px 24px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .main-nav.open ul { flex-direction: column; gap: 14px; }
  .hero-slide { min-height: 420px; }
  .hero-slide h1 { font-size: 32px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; }
  .showcase-row.reverse .showcase-media { order: 0; }
  .promo-grid, .member-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 26px; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}
