/* World Layers 3D — integração WooCommerce (carrinho, checkout, conta, avisos). Usa os tokens de styles.css/theme.css. */

/* Cards e catálogo */
.card-actions .added_to_cart{display:none!important}
.card-actions a.loading{opacity:.6;pointer-events:none}
.card-actions a.added:after{content:' ✓'}
.card-price del,.price del{color:var(--muted);font-weight:400;font-size:.85em;margin-right:6px}
.card-price ins,.price ins{text-decoration:none}
.pagination a,.pagination span{display:grid;place-items:center;min-width:42px;height:42px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--purple);font-weight:600}
.pagination .active,.pagination .current{color:#fff;background:var(--purple);border-color:var(--purple)}
.pagination .dots{border:0;color:var(--muted)}
.filters a#clear-filters{text-align:center}
[hidden]{display:none!important}

/* Produto */
.product-info .description p{margin:0 0 .8rem}
.product-info .product-sku{display:block;margin:-4px 0 14px;letter-spacing:.02em}
.product-info form.cart .quantity input{-moz-appearance:textfield}
.product-info form.cart .quantity input::-webkit-inner-spin-button,.product-info form.cart .quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.shipping>label{display:block;font-weight:600;margin-bottom:6px}
.shipping .shipping-result{margin:8px 0 0}
.product-info>.notice{margin-top:4px}

/* Avisos */
.woocommerce-notices-wrapper:empty{display:none}
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-noreviews,p.no-comments{list-style:none;margin:0 0 24px;padding:16px 18px!important;border:1px solid var(--line);border-left:4px solid var(--purple);border-radius:8px;background:var(--soft);color:var(--ink);font-size:.9375rem;line-height:1.5;display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between}
.woocommerce-message:before,.woocommerce-info:before,.woocommerce-error:before{display:none!important}
.woocommerce-error{border-left-color:#a22d53;flex-direction:column;align-items:flex-start}
.woocommerce-message .button,.woocommerce-info .button{order:2}
.woocommerce-store-notice,p.demo_store{background:var(--navy)!important}

/* Botões nativos do WooCommerce no visual do tema */
.wc-page .button,.wc-page button.button,.wc-page input.button,.wc-page a.button,.woocommerce-message .button,.wc-page #place_order,.wc-page .checkout-button{display:inline-flex;justify-content:center;align-items:center;gap:9px;background:var(--purple)!important;color:#fff!important;border:1px solid var(--purple)!important;border-radius:999px!important;padding:12px 22px!important;min-height:46px;font-size:.875rem!important;font-weight:600!important;line-height:1.3!important;text-decoration:none;cursor:pointer;transition:background .15s}
.wc-page .button:hover,.woocommerce-message .button:hover,.wc-page #place_order:hover{background:var(--purple-dark)!important;border-color:var(--purple-dark)!important}
.wc-page .button:disabled,.wc-page .button.disabled{opacity:.5}
.wc-page button[name="update_cart"],.wc-page .woocommerce-Button--previous,.wc-page .woocommerce-shipping-calculator .button{background:#fff!important;color:var(--purple)!important;border-color:#bba8cf!important}

/* Campos */
.wc-page .form-row{margin:0 0 16px;padding:0}
.wc-page .form-row label{display:block;font-size:.875rem;font-weight:600;margin-bottom:6px}
.wc-page .form-row .required{color:#a22d53;text-decoration:none}
.wc-page input.input-text,.wc-page textarea,.wc-page select,.wc-page .select2-container .select2-selection--single{width:100%;padding:12px 14px;min-height:47px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit}
.wc-page .select2-container .select2-selection--single{display:flex;align-items:center;padding:0 10px}
.wc-page .select2-container .select2-selection--single .select2-selection__arrow{height:45px}
.wc-page input.input-text:focus,.wc-page textarea:focus,.wc-page select:focus{outline:2px solid #b788fa;outline-offset:1px;border-color:transparent}
.wc-page .woocommerce-input-wrapper{display:block}
.wc-page fieldset{border:0;padding:0;margin:0}
.wc-page .woocommerce-form-row--first,.wc-page .form-row-first{width:calc(50% - 8px);float:left}
.wc-page .woocommerce-form-row--last,.wc-page .form-row-last{width:calc(50% - 8px);float:right}
.wc-page .form-row-wide,.wc-page .clear{clear:both}

/* Carrinho */
.wc-page .woocommerce{display:block}
.wc-page table.shop_table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;margin:0 0 28px;font-size:.9375rem}
.wc-page table.shop_table th,.wc-page table.shop_table td{padding:16px;border-top:1px solid var(--line);text-align:left;vertical-align:middle}
.wc-page table.shop_table thead th{border-top:0;background:var(--soft);font-size:.8125rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600}
.wc-page table.cart img{width:84px;height:84px;object-fit:cover;border-radius:8px;background:var(--lavender)}
.wc-page table.cart .product-name a{font-weight:650;color:var(--ink)}
.wc-page table.cart .product-remove a.remove{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;color:#a22d53!important;font-size:1.3rem;text-decoration:none}
.wc-page table.cart .product-remove a.remove:hover{background:#fbe9ef}
.wc-page table.cart .quantity input{width:72px;text-align:center;padding:10px;border:1px solid var(--line);border-radius:8px;min-height:42px}
.wc-page table.cart td.actions{background:var(--soft)}
.wc-page table.cart td.actions .coupon{display:flex;gap:10px;flex-wrap:wrap;float:left}
.wc-page table.cart td.actions .coupon input{width:200px;min-height:46px;padding:10px 14px;border:1px solid var(--line);border-radius:999px}
.wc-page table.cart td.actions>.button{float:right}
.wc-page dl.variation{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;margin:6px 0 0;font-size:.8125rem;color:var(--muted)}
.wc-page dl.variation dt{font-weight:600}
.wc-page dl.variation dd{margin:0}
.wc-page dl.variation dd p{margin:0}
.wc-page .cart-collaterals{display:flex;justify-content:flex-end}
.wc-page .cart_totals{width:100%;max-width:440px;background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:26px}
.wc-page .cart_totals h2{font-size:1.4rem;margin-bottom:16px}
.wc-page .cart_totals table.shop_table{border:0;background:transparent;margin-bottom:10px}
.wc-page .cart_totals table.shop_table th,.wc-page .cart_totals table.shop_table td{padding:12px 0;background:transparent}
.wc-page .cart_totals .order-total{font-size:1.1rem}
.wc-page .cart_totals .checkout-button{width:100%}
.wc-page ul#shipping_method{list-style:none;margin:0;padding:0}
.wc-page ul#shipping_method li{margin:0 0 6px}
.wc-page .woocommerce-shipping-calculator .shipping-calculator-button{color:var(--purple);font-weight:600;font-size:.875rem}
.wc-page .cart-empty{text-align:center;font-size:1.1rem;justify-content:center}
.wc-page .return-to-shop{text-align:center}

/* Checkout */
.wc-page form.checkout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.9fr);gap:28px 44px;align-items:start}
.wc-page form.checkout>.woocommerce-NoticeGroup,.wc-page form.checkout>.wc_coupon_message_container{grid-column:1/-1}
.wc-page form.checkout #customer_details{grid-column:1;display:grid;gap:12px}
.wc-page form.checkout #customer_details .col-1,.wc-page form.checkout #customer_details .col-2{width:100%;float:none}
.wc-page form.checkout #order_review_heading{grid-column:2;grid-row:1;margin:0;font-size:1.4rem}
.wc-page form.checkout #order_review{grid-column:2;grid-row:1/span 3;margin-top:44px;background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:24px;position:sticky;top:24px}
.wc-page form.checkout h3{font-size:1.25rem;margin:8px 0 18px}
.wc-page #order_review table.shop_table{border:0;background:transparent}
.wc-page #order_review table.shop_table th,.wc-page #order_review table.shop_table td{padding:12px 0;background:transparent}
.wc-page #payment{background:transparent!important;border-radius:0}
.wc-page #payment ul.payment_methods{list-style:none;padding:0!important;margin:0 0 16px;border:0!important}
.wc-page #payment ul.payment_methods li{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin-bottom:10px}
.wc-page #payment div.payment_box{background:var(--lavender)!important;border-radius:8px;font-size:.875rem}
.wc-page #payment div.payment_box:before{display:none}
.wc-page #payment .place-order{padding:0!important}
.wc-page #place_order{width:100%;float:none!important}
.wc-page .woocommerce-privacy-policy-text p,.wc-page .woocommerce-terms-and-conditions-wrapper{font-size:.8125rem;color:var(--muted)}
.wc-page .woocommerce-form-coupon-toggle .woocommerce-info,.wc-page .woocommerce-form-login-toggle .woocommerce-info{background:#fff}
.wc-page form.checkout_coupon,.wc-page form.woocommerce-form-login{border:1px solid var(--line);border-radius:12px;padding:20px;margin:0 0 24px}

/* Pedido recebido */
.wc-page .woocommerce-order-overview{list-style:none;display:flex;flex-wrap:wrap;gap:12px;padding:0;margin:0 0 28px}
.wc-page .woocommerce-order-overview li{background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:14px 18px;font-size:.8125rem;color:var(--muted)}
.wc-page .woocommerce-order-overview li strong{display:block;color:var(--ink);font-size:1rem;margin-top:4px}
.wc-page .woocommerce-thankyou-order-received{font-size:1.2rem;font-weight:650;border-left-color:#3a9a6a}

/* Minha conta */
.wc-page .woocommerce:has(.woocommerce-MyAccount-navigation){display:grid;grid-template-columns:260px minmax(0,1fr);gap:40px;align-items:start}
.wc-page .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.wc-page .woocommerce-MyAccount-navigation a{display:block;padding:12px 14px;border-radius:8px;font-weight:550}
.wc-page .woocommerce-MyAccount-navigation .is-active a,.wc-page .woocommerce-MyAccount-navigation a:hover{background:#fff;color:var(--purple)}
.wc-page .u-columns{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.wc-page .u-columns .col-1,.wc-page .u-columns .col-2{width:auto;float:none;border:1px solid var(--line);border-radius:12px;padding:26px}
.wc-page .u-columns h2{font-size:1.4rem;margin-bottom:18px}
.wc-page .woocommerce-form-login__rememberme{display:flex;gap:8px;align-items:center;margin-bottom:12px;font-size:.875rem}
.wc-page .lost_password a{color:var(--purple);font-size:.875rem}
.wc-page address{font-style:normal;line-height:1.6}

.entry-content>*:first-child{margin-top:0}
.legal .entry-content h2{font-size:1.3rem;margin:30px 0 12px}
.legal .entry-content ul{color:var(--muted);line-height:1.7;padding-left:20px}
.legal .entry-content a{color:var(--purple);text-decoration:underline}

@media(max-width:900px){
	.wc-page form.checkout{grid-template-columns:1fr}
	.wc-page form.checkout #order_review_heading,.wc-page form.checkout #order_review{grid-column:1;grid-row:auto;margin-top:0;position:static}
	.wc-page .woocommerce:has(.woocommerce-MyAccount-navigation){grid-template-columns:1fr;gap:24px}
	.wc-page .u-columns{grid-template-columns:1fr;gap:24px}
}
@media(max-width:760px){
	.wc-page table.shop_table_responsive thead{display:none}
	.wc-page table.shop_table_responsive tr{display:block;border-top:1px solid var(--line)}
	.wc-page table.shop_table_responsive tr:first-child{border-top:0}
	.wc-page table.shop_table_responsive td{display:flex;justify-content:space-between;gap:12px;border-top:0;padding:10px 16px;text-align:right}
	.wc-page table.shop_table_responsive td:before{content:attr(data-title);font-weight:600;color:var(--muted);text-align:left}
	.wc-page table.shop_table_responsive td.product-remove,.wc-page table.shop_table_responsive td.product-thumbnail,.wc-page table.shop_table_responsive td.actions{justify-content:flex-start;text-align:left}
	.wc-page table.shop_table_responsive td.product-remove:before,.wc-page table.shop_table_responsive td.product-thumbnail:before,.wc-page table.shop_table_responsive td.actions:before{display:none}
	.wc-page table.cart td.actions{display:block}
	.wc-page table.cart td.actions .coupon{float:none;margin-bottom:12px}
	.wc-page table.cart td.actions .coupon input{flex:1;width:auto}
	.wc-page table.cart td.actions>.button{float:none;width:100%}
	.wc-page .cart_totals{max-width:none;padding:20px}
	.wc-page .woocommerce-form-row--first,.wc-page .form-row-first,.wc-page .woocommerce-form-row--last,.wc-page .form-row-last{width:100%;float:none}
	.pagination{flex-wrap:wrap}
}
