/* Starmagine Horeca – páginas WooCommerce (carrinho, finalização, conta, avisos). */

/* Avisos */
.woocommerce-notices-wrapper:empty{display:none}
.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner{list-style:none;margin:0 0 2rem;padding:1.5rem 2rem;border:.1rem solid rgba(var(--color-foreground),.2);background:rgba(var(--color-foreground),.04);color:rgb(var(--color-foreground));font-size:1.4rem;display:flex;flex-wrap:wrap;align-items:center;gap:1rem;justify-content:space-between}
.woocommerce-error{border-color:rgba(220,80,80,.6)}
.woocommerce-error li{list-style:none}
.woocommerce-message .button,.woocommerce-info .button{order:2;min-height:3.8rem;font-size:1.3rem;padding:0 2rem}
.wc-block-components-notice-banner>svg{fill:currentColor;background:transparent!important}

/* Botões nativos do WooCommerce com o aspeto do tema */
.sm-wc-content a.button,.sm-wc-content button.button,.sm-wc-content input.button,.sm-wc-content .wp-element-button,.sm-wc-add-to-cart a.button,.sm-wc-add-to-cart button.button,.sm-wc-add-to-cart input.button,.sm-wc-add-to-cart .wp-element-button,.woocommerce-notices-wrapper a.button,.woocommerce-notices-wrapper button.button,.woocommerce-notices-wrapper input.button,.woocommerce-notices-wrapper .wp-element-button,.wc-block-components-button:not(.is-link),.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;border:0;border-radius:0;padding:0 3rem;font-family:var(--font-body-family);font-size:1.5rem;font-weight:400;letter-spacing:.1rem;line-height:1.2;text-decoration:none;color:rgb(var(--color-button-text));background-color:rgb(var(--color-button));min-height:4.7rem;box-shadow:0 0 0 .1rem rgb(var(--color-button));transition:box-shadow var(--duration-short) ease}
.sm-wc-content a.button:hover,.sm-wc-content button.button:hover,.sm-wc-content input.button:hover,.sm-wc-content .wp-element-button:hover,.sm-wc-add-to-cart a.button:hover,.sm-wc-add-to-cart button.button:hover,.sm-wc-add-to-cart input.button:hover,.sm-wc-add-to-cart .wp-element-button:hover,.woocommerce-notices-wrapper a.button:hover,.woocommerce-notices-wrapper button.button:hover,.woocommerce-notices-wrapper input.button:hover,.woocommerce-notices-wrapper .wp-element-button:hover,.wc-block-components-button:not(.is-link):hover{box-shadow:0 0 0 .2rem rgb(var(--color-button));color:rgb(var(--color-button-text));background-color:rgb(var(--color-button))}
.sm-wc-content button.button:disabled,.sm-wc-add-to-cart button.button:disabled,.sm-wc-add-to-cart button.button.disabled{opacity:.5;cursor:not-allowed}
.sm-wc-content a.button.alt,.sm-wc-content button.button.alt,.sm-wc-add-to-cart button.button.alt{background-color:rgb(var(--color-button));color:rgb(var(--color-button-text))}

/* Campos nativos */
.woocommerce form .form-row{margin:0 0 1.5rem;padding:0}
.woocommerce form .form-row label{display:block;font-size:1.3rem;margin-bottom:.6rem;color:rgba(var(--color-foreground),.75)}
.woocommerce form .form-row .required{color:rgba(var(--color-foreground),.75);text-decoration:none}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.woocommerce-cart-form input.input-text,.woocommerce .coupon input.input-text,.select2-container .select2-selection--single,.woocommerce-MyAccount-content input[type=email],.woocommerce-MyAccount-content input[type=password],.woocommerce-MyAccount-content input[type=text],.woocommerce-MyAccount-content input[type=tel]{width:100%;min-height:4.5rem;padding:1rem 1.5rem;background:rgb(var(--color-background));color:rgb(var(--color-foreground));border:0;border-radius:0;box-shadow:0 0 0 .1rem rgba(var(--color-foreground),.55);font-family:var(--font-body-family);font-size:1.5rem;letter-spacing:.04rem}
.woocommerce form .form-row input.input-text:focus,.woocommerce form .form-row textarea:focus,.woocommerce form .form-row select:focus{outline:0;box-shadow:0 0 0 .2rem rgba(var(--color-foreground),.75)}
.select2-container .select2-selection--single{height:4.5rem;display:flex;align-items:center}
.select2-container--default .select2-selection--single .select2-selection__rendered{color:rgb(var(--color-foreground));line-height:4.5rem;padding-left:0}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:4.3rem}
.select2-dropdown{background:rgb(var(--color-background));color:rgb(var(--color-foreground));border-color:rgba(var(--color-foreground),.3)}
.select2-container--default .select2-search--dropdown .select2-search__field{background:rgb(var(--color-background));color:rgb(var(--color-foreground));border-color:rgba(var(--color-foreground),.3)}
.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option--highlighted[data-selected]{background:rgb(var(--color-button));color:rgb(var(--color-button-text))}

/* Tabelas */
.woocommerce table.shop_table{width:100%;border-collapse:collapse;font-size:1.4rem;margin:0 0 3rem}
.woocommerce table.shop_table th{font-weight:400;font-size:1rem;letter-spacing:.13rem;text-transform:uppercase;color:rgba(var(--color-foreground),.75);text-align:left;padding:1.5rem 0;border-bottom:.1rem solid rgba(var(--color-foreground),.08)}
.woocommerce table.shop_table td{padding:2rem 1rem 2rem 0;border-bottom:.1rem solid rgba(var(--color-foreground),.08);vertical-align:top}
.woocommerce table.shop_table td a{color:rgb(var(--color-foreground));text-decoration:none}
.woocommerce table.shop_table td a:hover{text-decoration:underline;text-underline-offset:.3rem}
.woocommerce table.shop_table img{width:10rem;height:auto;border-radius:var(--media-radius)}
.woocommerce a.remove{color:rgb(var(--color-foreground))!important;font-size:2rem;text-decoration:none;display:inline-flex;width:3rem;height:3rem;align-items:center;justify-content:center}
.woocommerce a.remove:hover{background:transparent;color:rgba(var(--color-foreground),.75)!important}
.woocommerce-cart-form .quantity .qty{width:14rem;min-height:4.5rem;text-align:center;background:transparent;color:rgb(var(--color-foreground));border:0;box-shadow:0 0 0 .1rem rgba(var(--color-foreground),.55);font-size:1.4rem}
.woocommerce .cart-collaterals,.woocommerce-page .cart-collaterals{display:flex;justify-content:flex-end}
.woocommerce .cart_totals{width:100%;max-width:38rem;text-align:right}
.woocommerce .cart_totals h2{font-size:1.8rem;margin:0 0 1rem}
.woocommerce .cart_totals table.shop_table th,.woocommerce .cart_totals table.shop_table td{border:0;padding:.5rem 0;text-align:right}
.woocommerce .cart_totals .order-total td{font-size:1.8rem;color:rgb(var(--color-foreground))}
.woocommerce .wc-proceed-to-checkout a.checkout-button{width:100%;margin-top:1.5rem}
.woocommerce .coupon{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.woocommerce .coupon .input-text{max-width:22rem}
.woocommerce .actions{text-align:right}

/* Página do carrinho (título igual ao da loja) */
.sm-wc-page--cart .main-page-title{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.sm-cart-title-wrapper{display:flex;justify-content:space-between;align-items:center;margin:0 0 3rem;flex-wrap:wrap;gap:1rem}
.sm-cart-title-wrapper .main-page-title{margin:0}
.sm-cart-title-wrapper .link{font-size:1.5rem}
.cart-empty.woocommerce-info,.wc-block-cart__empty-cart__title{text-align:center;font-size:3rem;background:none;border:0;justify-content:center;font-family:var(--font-heading-family);color:rgb(var(--color-foreground))}
.return-to-shop{text-align:center;margin-top:2rem}

/* Blocos de Carrinho / Finalização (WooCommerce Blocks) */
.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout{color:rgba(var(--color-foreground),.75);font-family:var(--font-body-family)}
.wc-block-components-sidebar-layout{gap:0}
.wc-block-cart-items__header,.wc-block-cart-items th{font-size:1rem!important;letter-spacing:.13rem;text-transform:uppercase;color:rgba(var(--color-foreground),.75)}
.wc-block-cart-items td,.wc-block-cart-items th,.wc-block-cart-items{border-color:rgba(var(--color-foreground),.08)!important}
.wc-block-components-product-name{color:rgb(var(--color-foreground))!important;font-family:var(--font-heading-family);font-size:1.6rem!important;text-decoration:none}
.wc-block-cart-item__image img{border-radius:var(--media-radius)}
.wc-block-components-quantity-selector{border-radius:0!important;border-color:rgba(var(--color-foreground),.55)!important;background:transparent}
.wc-block-components-quantity-selector input,.wc-block-components-quantity-selector button{color:rgb(var(--color-foreground))!important;background:transparent!important}
.wc-block-components-totals-wrapper,.wc-block-components-totals-item,.wc-block-components-panel{border-color:rgba(var(--color-foreground),.08)!important}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,.wc-block-components-totals-footer-item .wc-block-components-totals-item__label{color:rgb(var(--color-foreground));font-size:1.8rem}
.wc-block-components-title.wc-block-components-title,.wc-block-cart__totals-title{font-family:var(--font-heading-family)!important;font-weight:400!important;color:rgb(var(--color-foreground))!important;text-transform:none!important;letter-spacing:.06rem!important}
.wc-block-components-text-input input,.wc-block-components-text-input textarea,.wc-blocks-components-select .wc-blocks-components-select__select,.wc-block-components-combobox .wc-block-components-combobox-control input,.wc-block-components-textarea{background:rgb(var(--color-background))!important;color:rgb(var(--color-foreground))!important;border:.1rem solid rgba(var(--color-foreground),.55)!important;border-radius:0!important;font-family:var(--font-body-family)!important}
.wc-block-components-text-input label,.wc-blocks-components-select__label,.wc-block-components-combobox label{color:rgba(var(--color-foreground),.75)!important}
.wc-block-components-radio-control__option,.wc-block-components-radio-control-accordion-option,.wc-block-checkout__shipping-method-option{border-color:rgba(var(--color-foreground),.2)!important;border-radius:0!important;box-shadow:none!important}
.wc-block-components-radio-control__input,.wc-block-components-checkbox__input{border-color:rgba(var(--color-foreground),.55)!important;background:transparent!important}
.wc-block-components-radio-control__input:checked::before{background:rgb(var(--color-foreground))!important}
.wc-block-components-checkbox .wc-block-components-checkbox__mark{fill:rgb(var(--color-foreground))}
.wc-block-components-order-summary-item__quantity{background:rgb(var(--color-background))!important;color:rgb(var(--color-foreground))!important;border-color:rgb(var(--color-foreground))!important;box-shadow:none!important}
.wc-block-components-checkout-return-to-cart-button,.wc-block-components-panel__button,.wc-block-components-totals-coupon-link,.wc-block-components-product-details,.wc-block-components-checkout-step__description{color:rgba(var(--color-foreground),.75)!important}
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button{width:100%}
.wc-block-components-sidebar{border-color:rgba(var(--color-foreground),.08)}
.wc-block-components-checkout-step__title{font-size:1.8rem!important}
.wc-block-components-address-card{border-color:rgba(var(--color-foreground),.2)!important;border-radius:0!important}
.wc-block-components-formatted-money-amount{white-space:nowrap}
.wc-block-components-skeleton__element{background:rgba(var(--color-foreground),.08)!important}
.wc-block-components-express-payment__title-container::before,.wc-block-components-express-payment__title-container::after{border-color:rgba(var(--color-foreground),.2)!important}
.wc-block-components-express-payment--checkout .wc-block-components-express-payment__content{border-color:rgba(var(--color-foreground),.2)!important}
.wc-block-components-order-summary .wc-block-components-order-summary-item__image img{border-radius:var(--media-radius)}

/* Finalização clássica */
.woocommerce-checkout .col2-set{display:grid;grid-template-columns:1fr;gap:3rem}
@media screen and (min-width:990px){.woocommerce-checkout .col2-set{grid-template-columns:1fr 1fr}.woocommerce-checkout form.checkout{display:grid;grid-template-columns:3fr 2fr;gap:0 5rem}.woocommerce-checkout form.checkout #customer_details{grid-column:1}.woocommerce-checkout form.checkout #order_review_heading,.woocommerce-checkout form.checkout #order_review{grid-column:2}}
.woocommerce-checkout .col2-set .col-1,.woocommerce-checkout .col2-set .col-2{width:100%;float:none}
.woocommerce-checkout .sm-wc-content h3{font-size:1.8rem}
.woocommerce-checkout #payment{background:rgba(var(--color-foreground),.04);border-radius:0}
.woocommerce-checkout #payment ul.payment_methods{border-color:rgba(var(--color-foreground),.08);padding:2rem;list-style:none;margin:0}
.woocommerce-checkout #payment div.payment_box{background:rgba(var(--color-foreground),.06);color:rgba(var(--color-foreground),.75);font-size:1.4rem;padding:1.5rem;margin:1rem 0}
.woocommerce-checkout #payment div.payment_box::before{display:none}
.woocommerce-checkout #payment .place-order{padding:2rem}
.woocommerce-checkout #place_order{width:100%}
.woocommerce-terms-and-conditions-wrapper{font-size:1.3rem}

/* A minha conta */
.woocommerce-account .woocommerce{display:grid;gap:3rem}
@media screen and (min-width:990px){.woocommerce-account.logged-in .woocommerce{grid-template-columns:24rem 1fr;gap:5rem}}
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;border-top:.1rem solid rgba(var(--color-foreground),.08)}
.woocommerce-MyAccount-navigation li{border-bottom:.1rem solid rgba(var(--color-foreground),.08)}
.woocommerce-MyAccount-navigation li a{display:block;padding:1.2rem 0;text-decoration:none;color:rgba(var(--color-foreground),.75);font-size:1.5rem}
.woocommerce-MyAccount-navigation li.is-active a,.woocommerce-MyAccount-navigation li a:hover{color:rgb(var(--color-foreground));text-decoration:underline;text-underline-offset:.3rem}
.woocommerce-MyAccount-content a{color:rgb(var(--color-link))}
.woocommerce-account .u-columns{display:grid;gap:4rem}
@media screen and (min-width:750px){.woocommerce-account .u-columns.col2-set{grid-template-columns:1fr 1fr}}
.woocommerce-account .u-column1,.woocommerce-account .u-column2{width:100%;float:none}
.woocommerce form.login,.woocommerce form.register,.woocommerce form.lost_reset_password{border:0;padding:0;margin:0;max-width:44rem}
.woocommerce-account .sm-wc-content h2{font-size:2.4rem}
.woocommerce form .woocommerce-form-login__rememberme{display:flex;align-items:center;gap:.5rem;font-size:1.4rem;margin:1rem 0}
.woocommerce-LostPassword a,.lost_password a{color:rgba(var(--color-link),.75);font-size:1.4rem}
.woocommerce-Addresses{display:grid;gap:3rem}
@media screen and (min-width:750px){.woocommerce-Addresses{grid-template-columns:1fr 1fr}}
.woocommerce-Address-title{display:flex;justify-content:space-between;align-items:baseline}
.woocommerce-Address-title h2{font-size:1.8rem}
.woocommerce-orders-table__cell .button{min-height:3.6rem;font-size:1.3rem;padding:0 1.5rem;margin:.2rem}
.woocommerce-pagination .button{min-height:3.6rem}
mark.order-number,mark.order-date,mark.order-status{background:none;color:rgb(var(--color-foreground))}
.woocommerce-order-overview{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:2rem}
.woocommerce-order-overview li{border-right:.1rem dashed rgba(var(--color-foreground),.2);padding-right:2rem;font-size:1.2rem;text-transform:uppercase;letter-spacing:.1rem}
.woocommerce-order-overview li strong{display:block;font-size:1.5rem;text-transform:none;letter-spacing:.06rem;color:rgb(var(--color-foreground));font-weight:400}

/* Produtos variáveis / agrupados (formulário nativo dentro do tema) */
.sm-wc-add-to-cart table.variations{width:100%;max-width:44rem;border:0;margin-bottom:1.5rem}
.sm-wc-add-to-cart table.variations th,.sm-wc-add-to-cart table.variations td{display:block;text-align:left;padding:0 0 .6rem;border:0}
.sm-wc-add-to-cart table.variations label{font-size:1.3rem;color:rgba(var(--color-foreground),.75);font-weight:400}
.sm-wc-add-to-cart table.variations select{width:100%;min-height:4.5rem;padding:0 3rem 0 1.5rem;background:rgb(var(--color-background));color:rgb(var(--color-foreground));border:0;box-shadow:0 0 0 .1rem rgba(var(--color-foreground),.55);font-family:var(--font-body-family);font-size:1.5rem}
.sm-wc-add-to-cart .reset_variations{font-size:1.3rem;color:rgba(var(--color-foreground),.75);display:inline-block;margin-top:.5rem}
.sm-wc-add-to-cart .single_variation_wrap .woocommerce-variation-price{margin:1rem 0;font-size:1.8rem;color:rgb(var(--color-foreground))}
.sm-wc-add-to-cart .woocommerce-variation-add-to-cart,.sm-wc-add-to-cart form.cart:not(.variations_form){display:flex;flex-direction:column;gap:1.5rem;max-width:44rem}
.sm-wc-add-to-cart .single_add_to_cart_button{width:100%}
.sm-wc-add-to-cart .stock{font-size:1.3rem}
.sm-wc-add-to-cart .group_table td{padding:.5rem 1rem .5rem 0}

/* Estrelas e avaliações (se ativas) */
.woocommerce .star-rating{color:rgb(var(--color-foreground))}
#reviews #comments ol.commentlist{padding:0}
.woocommerce-Reviews-title{font-size:2rem}
.wc-block-components-notice-banner,.wc-block-components-notice-banner.is-error,.wc-block-components-notice-banner.is-info,.wc-block-components-notice-banner.is-success,.wc-block-components-notice-banner.is-warning{background:rgba(var(--color-foreground),.04)!important;color:rgb(var(--color-foreground))!important;border:.1rem solid rgba(var(--color-foreground),.2)!important;border-radius:0!important}
.wc-block-components-notice-banner.is-error{border-color:rgba(220,80,80,.7)!important}
.wc-block-components-notice-banner>svg{fill:rgb(var(--color-foreground))!important;background:transparent!important}
.wc-block-components-sidebar-layout .wc-block-components-main{padding-right:4rem}
.wp-block-woocommerce-checkout-order-summary-block{border-color:rgba(var(--color-foreground),.12)!important;border-radius:0!important}
.woocommerce form .password-input{display:block;position:relative}.woocommerce form .show-password-input{display:none}
/* v1.2: variações — o preço é mostrado no bloco principal (formato da loja); opção única «Default Title» escondida */
.sm-wc-add-to-cart table.variations.sm-single-option,.sm-wc-add-to-cart table.variations.sm-single-option+.reset_variations,.sm-wc-add-to-cart .woocommerce-variation-price{display:none!important}
.sm-wc-add-to-cart .woocommerce-variation-add-to-cart{display:flex;flex-direction:column;align-items:flex-start;gap:1.5rem;max-width:44rem}
.sm-wc-add-to-cart .quantity input.qty{width:14rem;min-height:4.5rem;padding:0 1rem;background:transparent;color:rgb(var(--color-foreground));border:0;box-shadow:0 0 0 .1rem rgba(var(--color-foreground),.55);border-radius:0;text-align:center;font:inherit;font-size:1.6rem}
.sm-wc-add-to-cart .quantity input.qty:focus-visible{outline:0;box-shadow:0 0 0 .2rem rgba(var(--color-foreground),.75)}
.sm-wc-add-to-cart .woocommerce-variation-add-to-cart .single_add_to_cart_button{width:100%}
