/* ==========================================================================
   Energy Garden — Theme Stylesheet
   Adapted from original static design into a multi-page WordPress site
   ========================================================================== */

*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Jost',sans-serif;background:#1C2C1E;color:#F5EFE0;overflow-x:hidden}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
ul{list-style:none}

:root{
  --cream:#F5EFE0;--cream-dim:#E8DECA;--gold:#C8A85A;--gold-light:#E2C47A;
  --forest:#1C2C1E;--forest-mid:#243228;--forest-light:#2c3d2f;
  --sage:#6B8C6E;--sage-light:#8FAF92;--teal-deep:#1A3535;
}

/* ---- Nav ---- */
nav{position:fixed;top:0;left:0;right:0;z-index:200;display:flex;align-items:center;justify-content:space-between;padding:1.5rem 3rem;background:rgba(28,44,30,.95);backdrop-filter:blur(10px);border-bottom:1px solid rgba(200,168,90,.1)}
.nav-logo{font-family:'Cormorant Garamond',serif;font-size:1.5rem;font-weight:300;letter-spacing:.2em;color:var(--gold-light);cursor:pointer}
.nav-links{display:flex;gap:2.5rem;list-style:none}
.nav-links a,.nav-links span{color:var(--cream-dim);font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;cursor:pointer;transition:color .3s}
.nav-links a:hover,.nav-links span:hover{color:var(--gold-light)}
.nav-right{display:flex;align-items:center;gap:2rem}
.nav-cart-btn{background:none;border:none;color:var(--cream-dim);font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;cursor:pointer;font-family:'Jost',sans-serif;transition:color .3s;position:relative}
.nav-cart-btn:hover{color:var(--gold-light)}
.cart-badge{position:absolute;top:-8px;right:-12px;background:var(--gold);color:var(--forest);width:18px;height:18px;border-radius:50%;font-size:.55rem;font-weight:600;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s}
.cart-badge.show{opacity:1}
.nav-toggle{display:none;background:none;border:none;color:var(--cream);font-size:1.4rem;cursor:pointer}

/* ---- Buttons ---- */
.btn-primary{background:var(--gold);color:var(--forest);padding:1rem 2.5rem;font-family:'Jost',sans-serif;font-size:.7rem;font-weight:500;letter-spacing:.2em;text-transform:uppercase;border:none;cursor:pointer;transition:background .3s;display:inline-block}
.btn-primary:hover{background:var(--gold-light);color:var(--forest)}
.btn-outline{background:none;color:var(--cream);border:1px solid rgba(245,239,224,.3);padding:1rem 2.5rem;font-family:'Jost',sans-serif;font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;cursor:pointer;transition:all .3s;display:inline-block}
.btn-outline:hover{border-color:var(--gold);color:var(--gold)}

/* ---- Cart Drawer (mini-cart, WooCommerce fragments) ---- */
.cart-drawer{position:fixed;right:-420px;top:0;bottom:0;width:420px;max-width:92vw;background:var(--forest-mid);z-index:300;transition:right .4s ease;border-left:1px solid rgba(200,168,90,.1);display:flex;flex-direction:column}
.cart-drawer.open{right:0}
.cart-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:299;opacity:0;pointer-events:none;transition:opacity .3s}
.cart-backdrop.open{opacity:1;pointer-events:all}
.cart-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 2rem;border-bottom:1px solid rgba(200,168,90,.1)}
.cart-header h3{font-family:'Cormorant Garamond',serif;font-size:1.4rem;font-weight:300}
.cart-close{background:none;border:none;color:var(--sage-light);font-size:1.6rem;cursor:pointer}
.cart-items{flex:1;overflow-y:auto;padding:1.5rem 2rem}
.cart-item{display:grid;grid-template-columns:70px 1fr;gap:1rem;border-bottom:1px solid rgba(200,168,90,.08);padding:1rem 0;align-items:start}
.cart-item img{width:70px;height:70px;object-fit:cover}
.cart-item-name{font-family:'Cormorant Garamond',serif;font-size:1rem;color:var(--cream);margin-bottom:.3rem}
.cart-item-variant{font-size:.72rem;color:var(--sage-light);margin-bottom:.5rem}
.cart-item-price{color:var(--gold-light);font-size:.85rem}
.cart-footer{padding:1.5rem 2rem;border-top:1px solid rgba(200,168,90,.1)}
.cart-subtotal{display:flex;justify-content:space-between;margin-bottom:1rem;font-size:.9rem}
.cart-checkout-btn{width:100%;padding:1rem;background:var(--gold);color:var(--forest);border:none;font-family:'Jost',sans-serif;font-size:.7rem;font-weight:500;letter-spacing:.15em;text-transform:uppercase;cursor:pointer;transition:background .3s;text-align:center;display:block}
.cart-checkout-btn:hover{background:var(--gold-light)}
.cart-empty{text-align:center;color:var(--sage);padding:3rem 0;font-size:.85rem}

/* ---- Hero ---- */
.hero{position:relative;height:100vh;min-height:600px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.hero-bg{position:absolute;inset:0;background-image:url('../images/hero-forest.jpg');background-size:cover;background-position:center}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(28,44,30,.4) 0%,rgba(28,44,30,.7) 100%)}
.hero-content{position:relative;z-index:2;text-align:center;max-width:700px;padding:2rem}
.hero-eyebrow{font-size:.65rem;letter-spacing:.3em;text-transform:uppercase;color:var(--gold);margin-bottom:1.5rem}
.hero-title{font-family:'Cormorant Garamond',serif;font-size:4.5rem;font-weight:300;line-height:1.1;color:var(--cream);margin-bottom:1.5rem}
.hero-title em{font-style:italic;color:var(--gold-light)}
.hero-subtitle{font-size:.95rem;font-weight:300;line-height:1.8;color:rgba(245,239,224,.85);margin-bottom:2.5rem;max-width:500px;margin-left:auto;margin-right:auto}

/* ---- Generic layout ---- */
.container{max-width:1200px;margin:0 auto;padding:0 3rem}
.section-label{font-size:.65rem;letter-spacing:.3em;text-transform:uppercase;color:var(--gold);margin-bottom:1rem}
.section-title{font-family:'Cormorant Garamond',serif;font-size:2.8rem;font-weight:300;line-height:1.1;color:var(--cream);margin-bottom:1.5rem}
.section-title em{font-style:italic;color:var(--gold-light)}
.section-body{font-size:.88rem;font-weight:300;line-height:1.9;color:var(--cream-dim);margin-bottom:1.5rem}
.section-header{text-align:center;margin-bottom:3rem}

/* ---- Welcome ---- */
.welcome{padding:7rem 3rem;display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:center;max-width:1200px;margin:0 auto}
.welcome-img{aspect-ratio:3/4;max-height:500px;border:1px solid rgba(200,168,90,.2);position:relative;overflow:hidden}
.welcome-img img{width:100%;height:100%;object-fit:cover;opacity:.8}

/* ---- Categories ---- */
.categories{background:var(--forest-mid);padding:6rem 3rem}
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:rgba(200,168,90,.1);max-width:1200px;margin:0 auto}
.cat-card{background:var(--forest);padding:0;cursor:pointer;transition:background .3s;text-decoration:none;color:inherit;display:block;overflow:hidden;position:relative}
.cat-card:hover{background:var(--forest-light)}
.cat-img{aspect-ratio:1;overflow:hidden;position:relative}
.cat-img img{width:100%;height:100%;object-fit:cover;opacity:.75;transition:transform .5s}
.cat-card:hover .cat-img img{transform:scale(1.08);opacity:.9}
.cat-text{padding:1.5rem 1.2rem}
.cat-name{font-family:'Cormorant Garamond',serif;font-size:1.1rem;font-weight:400;color:var(--cream);margin-bottom:.4rem}
.cat-desc{font-size:.75rem;color:var(--sage-light);line-height:1.6}

/* ---- Featured / Shop grid (maps onto WooCommerce loop) ---- */
.featured{padding:7rem 3rem;max-width:1200px;margin:0 auto}
.featured-grid,ul.products{display:grid !important;grid-template-columns:repeat(3,1fr);gap:2rem;margin-top:3rem;list-style:none}
.prod-card,ul.products li.product{cursor:pointer;text-decoration:none;color:inherit;display:block;transition:transform .3s;width:100% !important;float:none !important;margin:0 !important;clear:none !important}
.prod-img{aspect-ratio:3/4;background:var(--forest-mid);border:1px solid rgba(200,168,90,.1);overflow:hidden;position:relative;margin-bottom:1rem}
.prod-img img,ul.products li.product img{width:100%;height:100%;object-fit:cover;transition:transform .5s;aspect-ratio:3/4}
.prod-card:hover .prod-img img{transform:scale(1.05)}
.prod-name{font-family:'Cormorant Garamond',serif;font-size:1.1rem;font-weight:400;color:var(--cream);margin-bottom:.3rem}
.prod-price{font-size:.8rem;color:var(--sage-light)}
ul.products li.product .woocommerce-loop-product__title{font-family:'Cormorant Garamond',serif;font-size:1.1rem;font-weight:400;color:var(--cream);margin:0 0 .3rem}
ul.products li.product .price{font-size:.8rem;color:var(--sage-light)}
ul.products li.product .button{display:none} /* clicking the card goes to the product page, matching original UX */

/* ---- Pyramid feature section ---- */
.pyramid-section{background:linear-gradient(to bottom,rgba(28,44,30,.5) 0%,rgba(28,44,30,.8) 100%),url('../images/pyramid-2.png');background-size:cover;background-position:center;padding:7rem 3rem;min-height:600px;display:flex;align-items:center}
.pyramid-inner{max-width:1200px;margin:0 auto;width:100%}
.stat-row{display:flex;gap:3rem;margin-bottom:2rem}
.stat-number{font-family:'Cormorant Garamond',serif;font-size:2rem;font-weight:300;color:var(--gold-light)}
.stat-label{font-size:.68rem;color:var(--sage-light);letter-spacing:.1em;text-transform:uppercase;margin-top:.3rem}

/* ---- Values ---- */
.values{padding:6rem 3rem;max-width:1200px;margin:0 auto}
.values-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:rgba(200,168,90,.1);margin-top:3rem}
.value-item{background:var(--forest);padding:2.5rem}
.value-icon{width:50px;height:50px;border-radius:50%;overflow:hidden;margin-bottom:1.5rem;border:1px solid rgba(200,168,90,.2)}
.value-icon img{width:100%;height:100%;object-fit:cover}
.value-title{font-family:'Cormorant Garamond',serif;font-size:1.2rem;font-weight:400;color:var(--cream);margin-bottom:1rem}
.value-text{font-size:.8rem;line-height:1.8;color:var(--sage-light)}

/* ---- Events ---- */
.events{background:var(--forest-mid);padding:5rem 3rem;text-align:center}
.events-inner{max-width:700px;margin:0 auto}
.events-eyebrow{font-size:.65rem;letter-spacing:.3em;text-transform:uppercase;color:var(--gold);margin-bottom:1rem}
.events-title{font-family:'Cormorant Garamond',serif;font-size:2.2rem;font-weight:300;color:var(--cream);margin-bottom:1rem}
.events-text{font-size:.88rem;color:var(--cream-dim);line-height:1.8;margin-bottom:2rem}

/* ---- Subscribe (newsletter) ---- */
.subscribe{padding:6rem 3rem;max-width:700px;margin:0 auto;text-align:center}
.sub-title{font-family:'Cormorant Garamond',serif;font-size:2rem;font-weight:300;color:var(--cream);margin-bottom:1rem}
.sub-title em{font-style:italic;color:var(--gold-light)}
.sub-text{font-size:.88rem;color:var(--cream-dim);line-height:1.7;margin-bottom:2rem}
.sub-form{display:flex;max-width:450px;margin:0 auto}
.sub-input{flex:1;background:var(--forest-mid);border:1px solid rgba(200,168,90,.25);color:var(--cream);padding:1rem;font-family:'Jost',sans-serif;font-size:.85rem;outline:none}
.sub-input::placeholder{color:var(--sage)}
.sub-btn{background:var(--gold);color:var(--forest);border:none;padding:1rem 1.8rem;font-family:'Jost',sans-serif;font-size:.7rem;font-weight:500;letter-spacing:.15em;text-transform:uppercase;cursor:pointer;white-space:nowrap;transition:background .3s}
.sub-btn:hover{background:var(--gold-light)}
.sub-msg{font-size:.8rem;margin-top:1rem;min-height:1.2em;color:var(--sage-light)}

/* ---- Single product page (maps onto WooCommerce single-product.php) ---- */
.product-detail{padding:8rem 3rem 6rem;max-width:1200px;margin:0 auto}
.product-back{margin-bottom:2rem;font-size:.7rem;color:var(--sage);cursor:pointer;display:inline-block}
.product-grid{display:grid;grid-template-columns:1fr 1fr;gap:5rem}
.product-grid .prod-img-main{aspect-ratio:3/4;background:var(--forest-mid);border:1px solid rgba(200,168,90,.1);margin-bottom:1rem;overflow:hidden}
.product-grid .prod-img-main img{width:100%;height:100%;object-fit:cover}
.product-price-lg{font-family:'Cormorant Garamond',serif;font-size:1.5rem;color:var(--gold-light);margin-bottom:1.5rem}
.variation-swatches{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:2rem}
.details-toggle{margin-top:2.5rem;border-top:1px solid rgba(200,168,90,.1);padding-top:2rem}
.details-toggle summary{font-family:'Cormorant Garamond',serif;font-size:1.1rem;color:var(--cream);cursor:pointer;list-style:none}
.details-toggle summary::-webkit-details-marker{display:none}
.details-body{font-size:.8rem;color:var(--sage-light);line-height:1.8;margin-top:1rem;white-space:pre-wrap}

/* WooCommerce single product form overrides */
.single-product form.cart .quantity{display:none} /* keep it minimal like the original */
.single-product .variations{margin-bottom:2rem}
.single-product .variations td{padding:.3rem 0}
.single-product .variations select{background:var(--forest-mid);border:1px solid rgba(200,168,90,.25);color:var(--cream);padding:.6rem 1rem;font-family:'Jost',sans-serif}
.single-product .single_add_to_cart_button{width:100%;padding:1rem;margin-bottom:1rem}
.single-product .woocommerce-product-details__short-description{font-size:.88rem;font-weight:300;line-height:1.9;color:var(--cream-dim)}

/* ---- WooCommerce cart & checkout (styled to match) ---- */
.woocommerce-cart .container,.woocommerce-checkout .container{padding:9rem 3rem 6rem;max-width:1100px;margin:0 auto}
.woocommerce table.shop_table{border:1px solid rgba(200,168,90,.1);border-collapse:collapse}
.woocommerce table.shop_table th{background:var(--forest-mid);color:var(--gold-light);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;padding:1rem;text-align:left}
.woocommerce table.shop_table td{padding:1rem;border-top:1px solid rgba(200,168,90,.08);color:var(--cream-dim)}
.woocommerce #order_review,.woocommerce-checkout-review-order{background:var(--forest-mid);border:1px solid rgba(200,168,90,.1);padding:2rem}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row select{background:var(--forest-mid);border:1px solid rgba(200,168,90,.2);color:var(--cream);padding:.85rem 1rem;font-family:'Jost',sans-serif}
.woocommerce #payment div.form-row{background:transparent}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #place_order{background:var(--gold);color:var(--forest);padding:1rem 2rem;font-family:'Jost',sans-serif;font-size:.7rem;font-weight:500;letter-spacing:.15em;text-transform:uppercase;border:none;cursor:pointer}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce #place_order:hover{background:var(--gold-light);color:var(--forest)}
.woocommerce-checkout h3{font-family:'Cormorant Garamond',serif;font-size:1.3rem;color:var(--cream);margin-bottom:1.5rem}
.woocommerce .woocommerce-order{padding:10rem 3rem 6rem;max-width:700px;margin:0 auto;text-align:center}

/* ---- Footer ---- */
footer.site-footer{background:rgba(0,0,0,.3);border-top:1px solid rgba(200,168,90,.1);padding:3rem 3rem 2rem;text-align:center}
.footer-copy{font-size:.7rem;color:var(--sage)}

/* ---- Page content fallback (About / Visit Us) ---- */
.page-content-wrap{padding:9rem 3rem 6rem;max-width:800px;margin:0 auto}
.page-content-wrap h1{font-family:'Cormorant Garamond',serif;font-weight:300;font-size:2.8rem;margin-bottom:1.5rem;color:var(--cream)}
.page-content-wrap p{font-size:.9rem;line-height:1.9;color:var(--cream-dim);margin-bottom:1.2rem}

/* ---- Responsive ---- */
@media (max-width:900px){
  nav{padding:1.2rem 1.5rem}
  .nav-links{display:none}
  .nav-toggle{display:block}
  .container,.welcome,.checkout-grid,.product-grid{padding-left:1.5rem;padding-right:1.5rem}
  .welcome,.product-grid{grid-template-columns:1fr;gap:2.5rem}
  .cat-grid{grid-template-columns:repeat(2,1fr)}
  .featured-grid,ul.products{grid-template-columns:repeat(2,1fr) !important;gap:1.2rem}
  .values-grid{grid-template-columns:1fr}
  .hero-title{font-size:3rem}
  .section-title{font-size:2.1rem}
}
