/* ==========================================================================
   Erba Buona CBD – adattamento delle pagine WooCommerce e WordPress
   (shop, scheda prodotto, carrello, checkout, account, pagine) al tema scuro.
   ========================================================================== */

/* -------------------------------------------------------- card prodotto */
.prod__img{color:inherit}
.prod__photo{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s cubic-bezier(.3,1.6,.5,1)}
.prod:hover .prod__photo{transform:scale(1.05)}
.prod__art{display:grid;place-items:center;width:100%;height:100%}
.prod__name a{color:inherit}
.prod__foot .price{color:var(--eb-text)}
.prod__foot .price del{opacity:.5;font-size:14px;margin-right:6px}
.prod__foot .price ins{text-decoration:none}
.prod__foot .price .woocommerce-Price-amount{white-space:nowrap}
.add{text-decoration:none;color:var(--eb-bg)}
.add:hover{color:var(--eb-bg)}
.add.loading{opacity:.6}
.add.added::after{content:none}
a.added_to_cart{display:none!important}
.grid.products{margin:0;padding:0}
.footer__legal li,.footer__col li{list-style:none}
.footer__col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;font-size:15px}
.custom-logo-link img{max-height:56px;width:auto;display:block}

/* --------------------------------------------------- contenitori pagine */
.eb-woo,.eb-page{padding-top:56px}
.eb-page__title,.woocommerce-products-header__title.page-title{font-family:var(--eb-display);font-weight:900;font-size:clamp(30px,4.4vw,56px);line-height:1.05;letter-spacing:-.02em;margin:0 0 28px}
.eb-content{max-width:860px}
.eb-content > * + *{margin-top:1em}
.eb-content a{color:var(--eb-lime);text-decoration:underline}
.eb-content h2,.eb-content h3{font-family:var(--eb-display);font-weight:700;margin-top:1.6em}
body.woocommerce-cart .eb-content,body.woocommerce-checkout .eb-content,body.woocommerce-account .eb-content{max-width:none}
.eb-entry{padding:24px 0;border-bottom:1px solid var(--eb-line)}
.eb-entry__title{font-family:var(--eb-display);font-size:22px;margin-bottom:8px}

.woocommerce-breadcrumb{font-size:13px;color:var(--eb-dim);margin:0 0 20px}
.woocommerce-breadcrumb a{color:var(--eb-mute)}
.term-description,.woocommerce-products-header .term-description{color:var(--eb-mute);max-width:640px;margin-bottom:24px}
.woocommerce-result-count{color:var(--eb-mute);font-size:14px;margin:0 0 24px!important}
.woocommerce .woocommerce-ordering{margin:0 0 24px!important}
.woocommerce-pagination{margin-top:40px;text-align:center}
.woocommerce nav.woocommerce-pagination ul{border:0!important}
.woocommerce nav.woocommerce-pagination ul li{border:0!important;margin:0 4px!important}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{border-radius:999px;min-width:40px;padding:10px 14px!important;border:1px solid var(--eb-line2)!important;color:var(--eb-mute)}
.woocommerce nav.woocommerce-pagination ul li span.current,.woocommerce nav.woocommerce-pagination ul li a:hover{background:var(--eb-lime)!important;color:var(--eb-bg)!important}
.woocommerce-info.woocommerce-no-products-found{margin-top:12px}

/* ------------------------------------------------------- moduli e campi */
.woocommerce input[type=text],.woocommerce input[type=email],.woocommerce input[type=tel],.woocommerce input[type=password],.woocommerce input[type=number],.woocommerce input[type=search],.woocommerce textarea,.woocommerce select,
.eb-content input[type=text],.eb-content input[type=email],.eb-content input[type=password],.eb-content textarea,.eb-content select,
.woocommerce .select2-container .select2-selection{background:var(--eb-bg3)!important;color:var(--eb-text)!important;border:1px solid var(--eb-line3)!important;border-radius:14px!important;padding:12px 16px;font:inherit;font-size:16px;min-height:48px}
.woocommerce .select2-container .select2-selection__rendered{color:var(--eb-text)!important;line-height:46px!important}
.select2-dropdown{background:var(--eb-bg2)!important;border-color:var(--eb-line3)!important;color:var(--eb-text)}
.select2-results__option--highlighted{background:var(--eb-deep)!important}
.woocommerce form .form-row label{color:var(--eb-mute);font-size:14px}
.woocommerce form .form-row .required{color:var(--eb-lime)}
.woocommerce input:focus,.woocommerce select:focus,.woocommerce textarea:focus{outline:2px solid var(--eb-leaf);outline-offset:1px}
::placeholder{color:var(--eb-dim)}

/* ------------------------------------------------------------- pulsanti */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,
.wp-element-button,.wp-block-button__link,.wc-block-components-button:not(.is-link),.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button{
  display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 28px!important;border-radius:999px!important;
  background:var(--eb-lime)!important;color:var(--eb-bg)!important;border:0!important;font-family:var(--eb-display)!important;font-size:14px!important;font-weight:700!important;
  text-decoration:none!important;transition:transform .25s cubic-bezier(.3,1.6,.5,1),box-shadow .25s}
.woocommerce a.button:hover,.woocommerce button.button:hover,.wp-element-button:hover,.wc-block-components-button:not(.is-link):hover{transform:translateY(-3px) rotate(-1deg);box-shadow:0 0 0 2px var(--eb-bg),0 0 0 4px var(--eb-leaf),0 12px 40px rgba(95,211,141,.4)}
.woocommerce button.button:disabled,.woocommerce button.button.disabled{opacity:.5!important}

/* -------------------------------------------------------------- avvisi */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-notice,.wc-block-components-notice-banner{
  background:var(--eb-bg2)!important;color:var(--eb-text)!important;border:1px solid var(--eb-line3)!important;border-left:4px solid var(--eb-lime)!important;border-radius:16px!important;padding:16px 20px 16px 52px!important;list-style:none}
.woocommerce-error{border-left-color:var(--eb-red)!important}
.woocommerce-message::before,.woocommerce-info::before{color:var(--eb-lime)!important;top:16px!important;left:20px!important}
.woocommerce-error::before{color:var(--eb-red)!important;top:16px!important;left:20px!important}
.woocommerce-message .button,.woocommerce-info .button{min-height:40px!important;padding:0 18px!important;float:right}
.wc-block-components-notice-banner{padding:16px 20px!important}
.wc-block-components-notice-banner > svg{fill:var(--eb-lime)!important;background:transparent!important}

/* ------------------------------------------------------- scheda prodotto */
.woocommerce div.product{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none!important;width:auto!important;margin:0!important}
.woocommerce div.product .woocommerce-tabs,.woocommerce div.product .related,.woocommerce div.product .upsells{grid-column:1/-1}
.woocommerce div.product div.images{border-radius:24px;overflow:hidden;border:1px solid var(--eb-line2);background:radial-gradient(90% 80% at 50% 35%,#1F4A2A,#0C120E 70%)}
.woocommerce div.product div.images .flex-control-thumbs{padding:12px!important;display:flex;gap:10px}
.woocommerce div.product div.images .flex-control-thumbs li{width:72px!important;border-radius:12px;overflow:hidden}
.woocommerce-product-gallery__image--placeholder{aspect-ratio:1;display:grid;place-items:center}
.woocommerce div.product .product_title{font-family:var(--eb-display);font-weight:900;font-size:clamp(28px,3.6vw,46px);line-height:1.05;letter-spacing:-.02em;margin-bottom:14px}
.woocommerce div.product p.price,.woocommerce div.product span.price{font-family:var(--eb-display);font-weight:900;font-size:28px;color:var(--eb-lime)!important}
.woocommerce div.product p.price del{opacity:.5;font-size:18px}
.woocommerce div.product p.price ins{text-decoration:none}
.eb-single-specs{margin:6px 0 18px}
.eb-single-specs span{font-size:13px!important;padding:4px 12px!important}
.eb-spec-cbd{background:var(--eb-lime);color:var(--eb-bg)!important;border-color:var(--eb-lime)!important;font-weight:600}
.woocommerce-product-details__short-description{color:#B3C2B2;margin-bottom:22px}
.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:24px 0!important}
.woocommerce div.product form.cart.variations_form{display:block}
.woocommerce div.product form.cart .variations{margin-bottom:16px;border:0}
.woocommerce div.product form.cart .variations th,.woocommerce div.product form.cart .variations td{display:block;padding:0 0 8px;text-align:left;border:0;background:transparent}
.woocommerce div.product form.cart .variations label{font-family:var(--eb-display);font-size:12px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--eb-mute)}
.woocommerce div.product form.cart .variations select{min-width:220px;border-radius:999px!important}
.woocommerce div.product form.cart .reset_variations{color:var(--eb-mute);font-size:13px;margin-left:10px}
.woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.woocommerce-variation-price .price{font-size:24px!important}
.woocommerce .quantity .qty{width:84px!important;border-radius:999px!important;text-align:center;min-height:52px}
.woocommerce div.product .product_meta{margin-top:24px;padding-top:18px;border-top:1px solid var(--eb-line);font-size:14px;color:var(--eb-mute);display:flex;flex-direction:column;gap:4px}
.woocommerce div.product .product_meta a{color:var(--eb-text)}
.woocommerce div.product .stock{color:var(--eb-leaf)!important}
.woocommerce div.product .out-of-stock{color:var(--eb-red)!important}
.woocommerce span.onsale{min-height:0;min-width:0;line-height:1;padding:7px 14px;border-radius:999px;background:var(--eb-lime);color:var(--eb-bg);font-weight:600;font-size:12px;letter-spacing:.1em;text-transform:uppercase;top:16px!important;left:16px!important;margin:0!important}

.woocommerce div.product .woocommerce-tabs{margin-top:24px}
.woocommerce div.product .woocommerce-tabs ul.tabs{display:flex;flex-wrap:wrap;gap:8px;padding:0!important;margin:0 0 24px!important}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:transparent!important;border:1px solid var(--eb-line2)!important;border-radius:999px!important;margin:0!important;padding:0!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{padding:10px 18px!important;font-family:var(--eb-display);font-size:12px;font-weight:700;color:var(--eb-mute)!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:var(--eb-lime)!important;border-color:var(--eb-lime)!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--eb-bg)!important}
.woocommerce div.product .woocommerce-tabs .panel{color:#C3D0C1;max-width:860px}
.woocommerce div.product .woocommerce-tabs .panel h2{font-family:var(--eb-display);font-size:22px;margin-bottom:12px}
.woocommerce table.shop_attributes{border-color:var(--eb-line)!important}
.woocommerce table.shop_attributes th,.woocommerce table.shop_attributes td{border-color:var(--eb-line)!important;background:transparent!important;color:var(--eb-text);padding:12px!important;font-style:normal}
.related.products > h2,.upsells.products > h2{font-family:var(--eb-display);font-weight:900;font-size:clamp(24px,3vw,36px);margin:48px 0 24px}
#reviews #comments ol.commentlist li .comment-text{border-color:var(--eb-line2)!important;border-radius:16px!important}
.woocommerce .star-rating span::before,.woocommerce p.stars a{color:var(--eb-lime)}

/* ------------------------------------- carrello / checkout classici e tabelle */
.woocommerce table.shop_table{border:1px solid var(--eb-line2)!important;border-radius:20px!important;overflow:hidden;background:var(--eb-bg2);border-collapse:separate}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{border-color:var(--eb-line)!important;color:var(--eb-text);padding:14px 16px!important}
.woocommerce table.shop_table th{font-family:var(--eb-display);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--eb-mute)}
.woocommerce a.remove{color:var(--eb-red)!important}
.woocommerce a.remove:hover{background:var(--eb-red)!important;color:var(--eb-bg)!important}
.woocommerce .cart-collaterals .cart_totals h2,.woocommerce-checkout h3,.woocommerce-account h2{font-family:var(--eb-display);font-weight:700}
#add_payment_method #payment,.woocommerce-cart #payment,.woocommerce-checkout #payment{background:var(--eb-bg2)!important;border:1px solid var(--eb-line2);border-radius:20px}
.woocommerce-checkout #payment div.payment_box{background:var(--eb-bg3)!important;color:var(--eb-text)!important}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:var(--eb-bg3)!important}
.woocommerce-checkout #payment ul.payment_methods{border-color:var(--eb-line)!important}

/* --------------------------------------------- carrello / checkout a blocchi */
.wc-block-cart,.wc-block-checkout,.wc-block-components-sidebar-layout{color:var(--eb-text)}
.wc-block-components-text-input input,.wc-block-components-text-input textarea,.wc-block-components-combobox .wc-block-components-combobox-control input,.wc-blocks-components-select .wc-blocks-components-select__select,.wc-block-components-textarea,.wc-block-components-form .wc-block-components-text-input input{
  background:var(--eb-bg3)!important;color:var(--eb-text)!important;border:1px solid var(--eb-line3)!important;border-radius:14px!important}
.wc-block-components-text-input label,.wc-block-components-combobox label,.wc-blocks-components-select__label{color:var(--eb-mute)!important}
.wc-blocks-components-select .wc-blocks-components-select__container{background:var(--eb-bg3)!important;border-radius:14px!important}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox],.wc-block-components-radio-control__input{background:var(--eb-bg3)!important;border-color:var(--eb-line3)!important}
.wc-block-components-checkbox .wc-block-components-checkbox__mark{fill:var(--eb-lime)!important}
.wc-block-components-radio-control__input:checked::before{background:var(--eb-lime)!important}
.wc-block-components-radio-control-accordion-option,.wc-block-components-radio-control__option{border-color:var(--eb-line2)!important}
.wc-block-components-totals-wrapper,.wc-block-components-order-summary,.wc-block-cart-items,.wc-block-cart-items td,.wc-block-cart-items th,.wc-block-components-panel{border-color:var(--eb-line2)!important}
.wc-block-components-sidebar .wc-block-components-panel,.wc-block-components-sidebar .wp-block-woocommerce-cart-order-summary-block,.wc-block-checkout__sidebar{background:var(--eb-bg2);border-radius:20px}
.wc-block-components-product-name{color:var(--eb-text)!important;font-weight:600}
.wc-block-components-product-metadata,.wc-block-components-formatted-money-amount{color:inherit}
.wc-block-components-totals-item__label,.wc-block-components-totals-footer-item{color:var(--eb-text)}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value{color:var(--eb-lime);font-family:var(--eb-display);font-weight:900}
.wc-block-components-quantity-selector{border-color:var(--eb-line3)!important;border-radius:999px!important;background:var(--eb-bg3)}
.wc-block-components-quantity-selector input,.wc-block-components-quantity-selector button{color:var(--eb-text)!important;background:transparent!important}
.wc-block-cart-item__remove-link,.wc-block-components-button.is-link{color:var(--eb-mute)!important}
.wc-block-components-title,.wc-block-components-checkout-step__title{font-family:var(--eb-display)!important;color:var(--eb-text)!important}
.wc-block-components-checkout-step__description,.wc-block-components-checkout-step__heading-content{color:var(--eb-mute)!important}
.wc-block-cart__empty-cart__title{font-family:var(--eb-display)}
.wp-block-woocommerce-empty-cart-block .wp-block-separator{border-color:var(--eb-line2)}
.wc-block-grid__product-title,.wc-block-components-product-title{color:var(--eb-text)}
.wc-block-components-drawer,.wc-block-components-modal{background:var(--eb-bg2)!important;color:var(--eb-text)}

/* -------------------------------------------------------- il mio account */
.woocommerce-account .woocommerce{display:grid;grid-template-columns:240px 1fr;gap:40px;align-items:start}
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper{grid-column:1/-1}
.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content{float:none!important;width:auto!important}
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.woocommerce-MyAccount-navigation a{display:block;padding:12px 18px;border-radius:999px;border:1px solid var(--eb-line2);color:var(--eb-mute);font-family:var(--eb-display);font-size:12px;font-weight:700}
.woocommerce-MyAccount-navigation .is-active a,.woocommerce-MyAccount-navigation a:hover{background:var(--eb-lime);color:var(--eb-bg);border-color:var(--eb-lime)}
.woocommerce-account:not(.logged-in) .woocommerce{display:block}
.woocommerce form.login,.woocommerce form.register,.woocommerce form.checkout_coupon,.woocommerce form.lost_reset_password{border:1px solid var(--eb-line2)!important;border-radius:22px!important;background:var(--eb-bg2);padding:28px!important}

/* ---------------------------------------------------------- responsive */
@media (max-width:900px){
  .woocommerce div.product{grid-template-columns:1fr;gap:28px}
  .woocommerce-account .woocommerce{grid-template-columns:1fr}
}
