/* ECOALGA V7.3 — homepage recovery and native WooCommerce cart polish. */

/* Also covers an already imported homepage before the render filter adds its class. */
body.home .hero-photo .hero-copy{max-width:1000px;margin-inline:auto;text-align:center}
body.home .hero-photo .hero-photo-overlay{background:linear-gradient(180deg,#0822179e 0%,#082217ad 55%,#08221785 100%)}
body.home .hero-photo h1{text-wrap:balance}
body.home .hero-photo .lead{max-width:720px;margin-inline:auto}
body.home .hero-photo .button-row,
body.home .hero-photo .trust-row{justify-content:center}

/* Keep the navigation readable even if Automatic CSS is regenerated. */
body.ecoalga-site .site-header .header-inner>nav>a,
body.ecoalga-site .site-header .uses-menu>summary,
body.ecoalga-site .site-header .header-actions>a:not(.shop-pill){color:#fff}
body.ecoalga-site .site-header .header-inner>nav>a:hover,
body.ecoalga-site .site-header .uses-menu>summary:hover,
body.ecoalga-site .site-header .header-actions>a:not(.shop-pill):hover{color:#d8e7b5}

/* Cart structure. WooCommerce remains responsible for all form behaviour. */
body.woocommerce-cart .ecoalga-standard-page,
body.woocommerce-cart .ecoalga-standard-page:has(.woocommerce){padding-top:72px;padding-bottom:110px}
body.woocommerce-cart .ecoalga-standard-page>h1{margin-bottom:32px}
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart_totals{
  background:#fff;
  border:1px solid #d8e2da;
  border-radius:20px;
  box-shadow:0 18px 50px #173c2b0d;
  overflow:hidden;
}
body.woocommerce-cart .woocommerce table.shop_table{border:0;border-radius:0;margin:0}
body.woocommerce-cart .woocommerce table.shop_table th,
body.woocommerce-cart .woocommerce table.shop_table td{padding:18px 20px}
body.woocommerce-cart .woocommerce-cart-form td.actions{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  background:#f5f3e9;
  padding:22px;
}
body.woocommerce-cart .woocommerce-cart-form .coupon{
  display:grid;
  grid-template-columns:minmax(240px,1fr) auto;
  align-items:end;
  gap:10px;
  width:min(100%,650px);
}
body.woocommerce-cart .woocommerce-cart-form .coupon label.screen-reader-text{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
body.woocommerce-cart .woocommerce-cart-form .coupon:before{
  content:"Ai un cod de reducere?";
  grid-column:1/-1;
  color:#173c2b;
  font-size:1rem;
  font-weight:800;
  line-height:1.3;
}
body.woocommerce-cart .woocommerce-cart-form .coupon input.input-text{
  width:100%!important;
  min-height:52px;
  margin:0!important;
  padding:13px 16px!important;
  border:1px solid #aebfb2!important;
  border-radius:12px!important;
  background:#fff;
  font-size:1rem;
}
body.woocommerce-cart .woocommerce-cart-form .coupon button.button{
  min-height:52px;
  margin:0;
  white-space:nowrap;
}
body.woocommerce-cart .woocommerce-cart-form td.actions>button[name="update_cart"]{min-height:52px;margin:0}
body.woocommerce-cart .cart-collaterals{margin-top:42px}
body.woocommerce-cart .cart-collaterals .cart_totals{
  float:none;
  width:min(100%,620px);
  margin-left:auto;
  padding:30px;
}
body.woocommerce-cart .cart_totals h2{margin:0 0 20px;font-size:clamp(2rem,4vw,3rem)}
body.woocommerce-cart .cart_totals .shop_table{border:1px solid #e0e7e1;border-radius:14px;overflow:hidden}
body.woocommerce-cart .wc-proceed-to-checkout{padding:20px 0 0}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  margin:0;
  font-size:1.05rem;
}

@media(max-width:680px){
  body.woocommerce-cart .ecoalga-standard-page,
  body.woocommerce-cart .ecoalga-standard-page:has(.woocommerce){padding-top:50px;padding-bottom:80px}
  body.woocommerce-cart .woocommerce-cart-form td.actions{display:flex;flex-direction:column;align-items:stretch;gap:12px}
  body.woocommerce-cart .woocommerce-cart-form .coupon{grid-template-columns:1fr;width:100%}
  body.woocommerce-cart .woocommerce-cart-form .coupon:before{grid-column:1}
  body.woocommerce-cart .woocommerce-cart-form .coupon button.button{width:100%}
  body.woocommerce-cart .woocommerce-cart-form td.actions>button[name="update_cart"]{width:100%;margin-top:12px}
  body.woocommerce-cart .cart-collaterals .cart_totals{padding:22px}
}
