/* Tactical Hybrid 2.0 — pele do carrinho/checkout (WooCommerce Blocks), Minha Conta e páginas institucionais.
   Somente CSS sobre o markup NATIVO: a lógica de carrinho, frete, cupom, pagamento e validação continua do WooCommerce. */
.t-page { padding-block: 1rem 5rem; }
.t-page__title { margin: 1rem 0 1.5rem; }
.t-page__body { min-width: 0; }
.t-crumbs-wrap, .t-page nav[aria-label] { padding-top: .5rem; }

/* ---- Botões do Woo (blocos e clássicos) ---- */
.t-root .wc-block-components-button:not(.is-link), .t-root .wp-element-button, .t-root .wp-block-button__link, .t-root a.button, .t-root button.button, .t-root input.button, .t-root .woocommerce-Button {
  --bg: var(--ac-graphite-900); --fg: var(--ac-bone-100); display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: 0 1.5rem; border: 1.5px solid var(--bg); border-radius: var(--ac-r-pill); background: var(--bg); color: var(--fg);
  font: 600 var(--ac-fs-sm)/1.1 var(--ac-font); letter-spacing: var(--ac-ls-label); text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background var(--ac-t2) var(--ac-ease), color var(--ac-t2), border-color var(--ac-t2), transform var(--ac-t1); }
.t-root .wc-block-components-button:not(.is-link):hover, .t-root .wp-element-button:hover, .t-root a.button:hover, .t-root button.button:hover, .t-root input.button:hover { background: var(--ac-olive-800); border-color: var(--ac-olive-800); color: var(--ac-bone-100); }
.t-root .wc-block-components-button:not(.is-link):active { transform: scale(.985); }
.t-root .wc-block-components-button:not(.is-link):focus-visible, .t-root a.button:focus-visible, .t-root button.button:focus-visible { box-shadow: var(--ac-focus-light); outline: none; }
.t-root .wc-block-components-button.outlined:not(.is-link), .t-root .wc-block-components-totals-coupon__button { --bg: transparent; --fg: var(--ac-graphite-900); border-color: var(--ac-graphite-900); }
.t-root .wc-block-components-button.outlined:not(.is-link):hover { background: var(--ac-graphite-900); color: var(--ac-bone-100); }
.t-root .wc-block-components-button:disabled, .t-root button.button:disabled, .t-root .wc-block-components-button[aria-disabled="true"] { --bg: var(--ac-disabled-bg); --fg: var(--ac-disabled-text); border-color: var(--ac-disabled-border); cursor: not-allowed; }
.t-root .wc-block-components-checkout-place-order-button, .t-root .wc-block-cart__submit-button { min-height: 60px; font-size: var(--ac-fs-md); width: 100%; }
.t-root .wc-block-components-button.is-link, .t-root .wc-block-cart-item__remove-link { color: var(--ac-text); text-decoration: underline; text-decoration-color: var(--ac-sand-600); background: none; border: 0; min-height: 44px; font-weight: 500; }

/* ---- Campos ---- */
.t-root .wc-block-components-text-input input, .t-root .wc-block-components-text-input textarea, .t-root .wc-block-components-select .wc-blocks-components-select__select, .t-root .wc-block-components-combobox .components-combobox-control input,
.t-root input.input-text, .t-root .woocommerce-Input, .t-root .woocommerce form .form-row input.input-text, .t-root .woocommerce form .form-row select, .t-root textarea {
  min-height: 52px; border: 1.5px solid var(--ac-border-strong); border-radius: var(--ac-r-2); background-color: var(--ac-surface); color: var(--ac-text); font: inherit; font-size: var(--ac-fs-md); }
.t-root .wc-block-components-text-input input:focus, .t-root .wc-block-components-select .wc-blocks-components-select__select:focus, .t-root input.input-text:focus, .t-root textarea:focus { border-color: var(--ac-graphite-900); box-shadow: 0 0 0 4px rgb(192 164 107 / .45); outline: none; }
.t-root .wc-block-components-text-input.has-error input, .t-root .wc-block-components-text-input.has-error label { border-color: var(--ac-error); color: var(--ac-error); }
.t-root .wc-block-components-text-input label, .t-root .wc-block-components-select label { color: var(--ac-text-muted); }
.t-root .wc-block-components-validation-error, .t-root .wc-block-components-validation-error p { color: var(--ac-error); font-weight: 500; }
.t-root .wc-block-components-checkbox .wc-block-components-checkbox__input { border: 1.5px solid var(--ac-border-strong); border-radius: 4px; }
.t-root .wc-block-components-checkbox .wc-block-components-checkbox__input:checked { background: var(--ac-graphite-900); border-color: var(--ac-graphite-900); }
.t-root .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--ac-bone-100); }
.t-root .wc-block-components-radio-control__input { border: 1.5px solid var(--ac-border-strong); } .t-root .wc-block-components-radio-control__input:checked { border-color: var(--ac-graphite-900); } .t-root .wc-block-components-radio-control__input:checked::before { background: var(--ac-graphite-900); }
.t-root .wc-block-components-radio-control-accordion-option, .t-root .wc-block-components-radio-control__option { border-radius: var(--ac-r-2); }
.t-root .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option-checked, .t-root .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--ac-graphite-900); }
.t-root .wc-block-components-radio-control .wc-block-components-radio-control__option, .t-root .wc-block-components-radio-control-accordion-option { border-color: var(--ac-border); }

/* ---- Estrutura (títulos, painéis, totais) ---- */
.t-root .wc-block-cart, .t-root .wc-block-checkout { font-family: var(--ac-font); color: var(--ac-text); }
.t-root .wc-block-components-title, .t-root .wc-block-cart__totals-title, .t-root .wc-block-components-checkout-step__title { font-family: var(--ac-font); color: var(--ac-text); font-weight: 600; letter-spacing: -.015em; }
.t-root .wc-block-cart__totals-title { font: 600 var(--ac-fs-mono) var(--ac-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ac-text-muted); }
.t-root .wc-block-components-checkout-step__title { font-size: var(--ac-fs-xl); }
.t-root .wc-block-cart-items th { font: 600 var(--ac-fs-mono) var(--ac-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ac-text-muted); border-color: var(--ac-border); }
.t-root .wc-block-cart-items td, .t-root .wc-block-components-totals-wrapper { border-color: var(--ac-border); }
.t-root .wc-block-cart-item__image img, .t-root .wc-block-components-order-summary-item__image img { border-radius: var(--ac-r-2); background: var(--ac-stage); }
.t-root .wc-block-components-product-name { color: var(--ac-text); font-weight: 600; text-decoration: none; }
.t-root .wc-block-components-product-metadata, .t-root .wc-block-components-product-details { color: var(--ac-text-muted); font-size: var(--ac-fs-sm); }
.t-root .wc-block-components-sidebar-layout .wc-block-components-sidebar { box-sizing: border-box; }
.t-root .wc-block-checkout__sidebar, .t-root .wp-block-woocommerce-cart-totals-block { background: var(--ac-surface); border: 1px solid var(--ac-border); border-radius: var(--ac-r-3); padding: var(--ac-sp-5); }
.t-root .wc-block-components-totals-item__value, .t-root .wc-block-components-formatted-money-amount { font-variant-numeric: tabular-nums; }
.t-root .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-weight: 700; font-size: var(--ac-fs-xl); }
.t-root .wc-block-components-sale-badge { background: var(--ac-graphite-900); color: var(--ac-sand-300); border: 0; border-radius: var(--ac-r-pill); font: 600 var(--ac-fs-mono) var(--ac-font-mono); letter-spacing: .1em; text-transform: uppercase; }
.t-root .wc-block-components-quantity-selector { border-radius: var(--ac-r-pill); border: 1.5px solid var(--ac-border-strong); background: var(--ac-surface); }
.t-root .wc-block-components-quantity-selector::after { display: none; } .t-root .wc-block-components-quantity-selector__input { font-weight: 600; } .t-root .wc-block-components-quantity-selector__button { min-width: 44px; }
.t-root .wc-block-components-notice-banner { border-radius: var(--ac-r-2); font-size: var(--ac-fs-sm); }
.t-root .wc-block-components-notice-banner.is-error { background: var(--ac-error-bg); border-color: var(--ac-error); color: var(--ac-text); }
.t-root .wc-block-components-notice-banner.is-success { background: var(--ac-success-bg); border-color: var(--ac-success); }
.t-root .wc-block-components-notice-banner.is-info { background: var(--ac-info-bg); border-color: var(--ac-info); }
.t-root .wc-block-components-skeleton__element, .t-root .wc-block-components-skeleton .wc-block-components-skeleton__element { border-radius: var(--ac-r-2); }
.t-root .wp-block-woocommerce-empty-cart-block, .t-root .wp-block-woocommerce-cart.is-empty { text-align: center; }
.t-root .wc-block-cart__empty-cart__title { font-size: var(--ac-fs-2xl); font-weight: 700; }
.t-root .wc-block-components-checkout-return-to-cart-button { color: var(--ac-text); }
.t-root .wc-block-checkout__terms { font-size: var(--ac-fs-sm); color: var(--ac-text-muted); }

/* ---- Minha conta ---- */
.t-root .woocommerce-account .woocommerce { display: grid; gap: var(--ac-sp-5); }
@media (min-width: 900px) { .t-root .woocommerce-account.logged-in .woocommerce { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--ac-sp-6); align-items: start; } }
.t-root .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; } @media (min-width: 900px) { .t-root .woocommerce-MyAccount-navigation ul { display: grid; gap: .35rem; } }
.t-root .woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-height: 44px; padding: .4rem 1rem; text-decoration: none; color: var(--ac-text); font-weight: 500; border: 1.5px solid var(--ac-border-strong); border-radius: var(--ac-r-pill); background: var(--ac-surface); }
.t-root .woocommerce-MyAccount-navigation .is-active a { background: var(--ac-graphite-900); color: var(--ac-bone-100); border-color: var(--ac-graphite-900); }
.t-root .woocommerce-form-login, .t-root .woocommerce-form-register, .t-root .woocommerce-ResetPassword, .t-root .woocommerce-EditAccountForm, .t-root .woocommerce-address-fields, .t-root .u-column1, .t-root .u-column2 { background: var(--ac-surface); border: 1px solid var(--ac-border); border-radius: var(--ac-r-3); padding: var(--ac-sp-5); }
.t-root .woocommerce-account .woocommerce h2 { font-size: var(--ac-fs-xl); margin-bottom: 1rem; }
.t-root .woocommerce form .form-row { margin: 0 0 1rem; } .t-root .woocommerce form .form-row label { display: block; font-size: var(--ac-fs-sm); font-weight: 500; margin-bottom: .35rem; }
.t-root .woocommerce-orders-table, .t-root table.shop_table { width: 100%; border-collapse: collapse; font-size: var(--ac-fs-sm); background: var(--ac-surface); border-radius: var(--ac-r-2); overflow: hidden; }
.t-root .woocommerce-orders-table th, .t-root .woocommerce-orders-table td, .t-root table.shop_table th, .t-root table.shop_table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--ac-border); }
.t-root .woocommerce-orders-table th, .t-root table.shop_table th { font: 600 var(--ac-fs-mono) var(--ac-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ac-text-muted); background: var(--ac-bone-50); }
.t-root .woocommerce-orders-table__cell-order-actions a.button { min-height: 40px; padding: 0 1rem; font-size: var(--ac-fs-xs); }
.t-root .woocommerce-order-details, .t-root .woocommerce-customer-details { margin-top: var(--ac-sp-5); }
.t-root .woocommerce-password-strength { border-radius: var(--ac-r-1); }

/* ---- Páginas institucionais ---- */
.t-instHero .ac-wrap { min-height: 220px; }
.t-inst { padding-block: 3rem 5rem; }
.t-prose { max-width: 68ch; display: grid; gap: 1rem; line-height: 1.65; }
.t-prose h2 { font-size: var(--ac-fs-2xl); margin-top: 1.5rem; } .t-prose h3 { font-size: var(--ac-fs-xl); margin-top: 1rem; }
.t-prose a { text-decoration-color: var(--ac-sand-600); text-decoration-thickness: 2px; } .t-prose ul, .t-prose ol { padding-left: 1.25rem; display: grid; gap: .4rem; }
.t-prose table { width: 100%; border-collapse: collapse; } .t-prose th, .t-prose td { padding: .6rem .8rem; border-bottom: 1px solid var(--ac-border); text-align: left; }

/* ---- 404 e busca ---- */
.t-404 { padding-block: 4rem 6rem; display: grid; gap: 1.25rem; justify-items: start; } .t-404__code { color: transparent; -webkit-text-stroke: 2px var(--ac-border-strong); line-height: 1; }
.t-searchform { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 36rem; } .t-searchform .ac-input { flex: 1; min-width: 12rem; }
.t-root .wp-block-woocommerce-checkout-order-summary-block { background: none; border: 0; padding: 0; }

.t-root .wp-block-button__link:hover { background: var(--ac-olive-800); border-color: var(--ac-olive-800); color: var(--ac-bone-100); }
.t-root .wc-block-grid__products { list-style: none; padding: 0; display: grid; gap: 1.5rem 1rem; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.t-root .wc-block-grid__product { display: grid; gap: .5rem; align-content: start; text-align: left; } .t-root .wc-block-grid__product-title { font-weight: 500; text-decoration: none; }
.t-root .wc-block-grid__product-image img { border-radius: var(--ac-r-3); background: var(--ac-stage); }
