/* =========================================================
   Sohorta — WooCommerce markup styled with the template tokens.
   WooCommerce's own CSS is disabled (inc/woocommerce.php), so everything
   here targets WooCommerce's standard class names — no template copies.
   ========================================================= */

/* ---------- theme extras ---------- */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.themebtn .ic-sun{display:none}

[data-theme="dark"] .themebtn .ic-sun{display:inline-flex}

[data-theme="dark"] .themebtn .ic-moon{display:none}

.themebtn span{display:inline-flex}

.entry-content{max-width:80ch}

/* Pages use the full width (maps, columns, forms); posts keep a reading width */
.page .entry-content,.woocommerce-cart .entry-content,.woocommerce-checkout .entry-content,.woocommerce-account .entry-content{max-width:none}

.page .entry-content>:is(p,ul,ol,h2,h3,h4,blockquote){max-width:90ch}

/* Leftovers from the editor: empty paragraphs and columns with only empty text */
.entry-content p:empty,.entry-content .wp-block-column:not(:has(>:not(p:empty,:is(h2,h3,h4):empty))){display:none}

/* Page with [ContactForm]: info blocks (columns) on the left, form section on the right.
   Floats let each side stack on its own, whatever the order of blocks in the editor. */
@media (min-width:960px){

  .page .entry-content:has(>:is(.contact-form,.cf-msg)){display:flow-root}

  .page .entry-content:has(>:is(.contact-form,.cf-msg))>.wp-block-columns{float:left;clear:left;width:calc(50% - 24px)}

  .page .entry-content:has(>:is(.contact-form,.cf-msg))>:not(.wp-block-columns){margin-left:calc(50% + 24px)}
}

/* [ContactForm] (sohorta plugin) */
.contact-form{max-width:640px;margin-top:8px}

.contact-form p{margin:0 0 16px}

.contact-form label{display:block;font-weight:700;margin-bottom:6px}

.contact-form .req{font-weight:400;color:var(--muted);font-size:.9rem}

.contact-form input:not([type="hidden"]),.contact-form textarea{display:block;width:100%;min-height:46px;padding:10px 12px;border:2px solid var(--field);border-radius:var(--radius-sm);background:var(--bg);color:var(--text)}

.contact-form textarea{min-height:180px;resize:vertical}

.contact-form button{min-height:46px;padding:10px 28px}

.contact-form .cf-legal{color:var(--muted)}

.cf-msg{max-width:640px;padding:14px 16px;border-radius:var(--radius-sm);border-left:4px solid var(--ok);background:var(--surface);margin:0 0 16px}

.cf-msg p{margin:0}

.cf-msg.cf-err{border-left-color:var(--sale)}

.grecaptcha-badge{visibility:hidden} /* the form shows Google's required notice instead */
.post-list{list-style:none;margin:0;padding:0;display:grid;gap:22px}

.meta{color:var(--muted);font-size:.9rem}

.navigation.pagination .nav-links{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:28px}

.navigation.pagination .page-numbers{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0 10px;border:1px solid var(--border);border-radius:var(--radius-sm);text-decoration:none;color:var(--text);font-weight:600}

.navigation.pagination .page-numbers.current{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}

/* ---------- buttons (WooCommerce .button → template .btn) ---------- */
.woocommerce .button,.woocommerce-page .button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 20px;
  border-radius:var(--radius-sm);border:2px solid var(--primary);background:var(--primary);color:var(--on-primary);
  font-weight:700;text-decoration:none;cursor:pointer;line-height:1.2;font-size:1rem}

.woocommerce .button:hover,.woocommerce-page .button:hover{background:var(--primary-hover);border-color:var(--primary-hover)}

.woocommerce .button.ghost,.woocommerce .button.wc-forward:not(.checkout){background:transparent;color:var(--link)}

.woocommerce .button.ghost:hover,.woocommerce .button.wc-forward:not(.checkout):hover{background:var(--surface)}

.woocommerce .button.alt,.woocommerce .button.checkout{background:var(--primary);color:var(--on-primary)}

.woocommerce .button:disabled,.woocommerce .button.disabled{opacity:.55;cursor:not-allowed}

.woocommerce .button.loading{opacity:.7}

.woocommerce .button.added::after{content:" ✓"}

.woocommerce a.added_to_cart{display:none} /* the toast offers "Ver carrinho" instead */

/* ---------- product grid ---------- */

/* Columns follow the WooCommerce setting (ul.products.columns-N): N on desktop, max 3 on tablets, 2 on phones */
.woocommerce ul.products{--cols:4;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:12px}

.woocommerce ul.products.columns-2{--cols:2}

.woocommerce ul.products.columns-3{--cols:3}

.woocommerce ul.products.columns-4{--cols:4}

.woocommerce ul.products.columns-5{--cols:5}

.woocommerce ul.products.columns-6{--cols:6}

@media (max-width:1099px){

.woocommerce ul.products.columns-4,.woocommerce ul.products.columns-5,.woocommerce ul.products.columns-6{--cols:3}}

.woocommerce ul.products::before,.woocommerce ul.products::after{content:none}

/* Home grids: 6 · 3 · 2 per row */
.home-grid .woocommerce ul.products{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}

@media (max-width:1099px){

.home-grid .woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}

@media (max-width:599px){

.home-grid .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}

/* ---------- product card (li.product = template .card) ---------- */
.woocommerce ul.products li.product{position:relative;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:12px;display:flex;flex-direction:column;gap:8px;margin:0;width:auto;float:none}

.woocommerce ul.products li.product .thumb{aspect-ratio:1;background:#fff;border-radius:var(--radius-sm);display:grid;place-items:center;overflow:hidden}

.woocommerce ul.products li.product .thumb img{width:100%;height:100%;object-fit:contain}

.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.98rem;font-family:var(--font);font-weight:600;margin:0;line-height:1.3}

.woocommerce ul.products li.product .woocommerce-loop-product__title a{color:var(--text);text-decoration:none}

.woocommerce ul.products li.product .woocommerce-loop-product__title a::after{content:"";position:absolute;inset:0;border-radius:inherit} /* whole card clickable, single tab stop */
.woocommerce ul.products li.product .woocommerce-loop-product__title a:focus-visible{outline:none;box-shadow:none}

.woocommerce ul.products li.product:has(.woocommerce-loop-product__title a:focus-visible){outline:3px solid var(--focus);outline-offset:2px}

.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover{text-decoration:underline}

.woocommerce ul.products li.product .meta{font-size:.85rem}

.woocommerce ul.products li.product .button{position:relative;z-index:1;margin-top:auto;padding:8px 10px}

.woocommerce ul.products li.product .tag{top:12px;left:12px}

.ship.backorder{color:var(--text)}

@media (max-width:599px){

  .woocommerce ul.products li.product{padding:10px;gap:6px}

  .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.9rem}

  .woocommerce ul.products li.product .price{font-size:1rem}

  .woocommerce ul.products li.product .ship{font-size:.78rem}

  .woocommerce ul.products li.product .tag{top:8px;left:8px}
}

/* ---------- price ---------- */
.woocommerce .price{font-weight:800;font-size:1.1rem;color:var(--text)}

.woocommerce .price del{color:var(--muted);font-weight:400;font-size:.92rem;margin-right:6px}

.woocommerce .price ins{text-decoration:none}

/* ---------- star rating (no icon font) ---------- */
.woocommerce .star-rating{position:relative;display:inline-block;line-height:1;font-size:.95rem;letter-spacing:2px;white-space:nowrap;color:var(--border)}

.woocommerce .star-rating::before{content:"★★★★★"}

.woocommerce .star-rating span{position:absolute;top:0;left:0;height:100%;overflow:hidden;font-size:0}

.woocommerce .star-rating span::before{content:"★★★★★";font-size:.95rem;color:var(--link)}

.woocommerce p.stars a{display:inline-block;min-width:24px;min-height:24px;text-decoration:none;color:var(--link)}

/* ---------- notices ---------- */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-notices-wrapper>div{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;list-style:none;padding:12px 16px;margin:0 0 16px;border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text);border-left:4px solid var(--ok)}

.woocommerce-info{border-left-color:var(--primary)}

.woocommerce-error{border-left-color:var(--err);flex-direction:column;align-items:flex-start}

.woocommerce-error li{margin:0}

.woocommerce-message .button,.woocommerce-info .button{order:2}

/* ---------- forms ---------- */
.woocommerce form .form-row{margin:0 0 14px;padding:0}

.woocommerce form .form-row label{display:block;font-weight:600;margin:0 0 4px}

.woocommerce form .form-row .required{color:var(--err);text-decoration:none}

.woocommerce form .form-row .optional{color:var(--muted);font-weight:400}

.woocommerce .input-text,.woocommerce select,.woocommerce textarea,.woocommerce-page .input-text,
.select2-container .select2-selection--single{width:100%;min-height:46px;padding:8px 12px;border:2px solid var(--field);border-radius:var(--radius-sm);background:var(--bg);color:var(--text)}

.select2-container .select2-selection--single .select2-selection__rendered{line-height:28px;padding:0;color:var(--text)}

.select2-container .select2-selection--single .select2-selection__arrow{height:44px}

.woocommerce form .form-row.woocommerce-invalid .input-text,.woocommerce form .form-row.woocommerce-invalid select{border-color:var(--err)}

.woocommerce form .form-row-first,.woocommerce form .form-row-last{width:calc(50% - 7px);float:left}

.woocommerce form .form-row-last{float:right}

.woocommerce form .form-row-wide,.woocommerce form .clear{clear:both}

.woocommerce input[type="checkbox"],.woocommerce input[type="radio"]{width:20px;height:20px;accent-color:var(--primary);vertical-align:-4px}

.woocommerce .woocommerce-form__label-for-checkbox{display:flex;gap:10px;align-items:flex-start;font-weight:400}

.woocommerce .password-input{display:flex;position:relative}

.woocommerce .show-password-input{position:absolute;right:6px;top:50%;transform:translateY(-50%);min-width:36px;min-height:36px;background:var(--surface);border:0;border-radius:var(--radius-sm);cursor:pointer}

.woocommerce .show-password-input::before{content:"👁"}

@media (max-width:560px){

.woocommerce form .form-row-first,.woocommerce form .form-row-last{width:100%;float:none}}

/* ---------- quantity ---------- */
.woocommerce .quantity{display:inline-flex}

.woocommerce .quantity .qty{min-height:44px;text-align:center;background:var(--bg);color:var(--text);border:0;border-radius:0;width:56px;-moz-appearance:textfield}

/* ---------- catalogue toolbar ---------- */
.woocommerce-products-header__title{margin-bottom:8px}

.woocommerce .woocommerce-result-count{margin:4px 0 18px;color:var(--muted);float:left}

.woocommerce .woocommerce-ordering{float:right;margin:0 0 18px}

.woocommerce .woocommerce-ordering select{width:auto}

.woocommerce .woocommerce-ordering+*,.woocommerce ul.products{clear:both}

/* Pagination — WooCommerce puts class "page-numbers" on the <ul> too, so target only its items */
.woocommerce nav.woocommerce-pagination{margin:32px 0 0;text-align:center}

.woocommerce nav.woocommerce-pagination ul.page-numbers{list-style:none;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center;padding:0;margin:0;border:0;min-width:0;min-height:0;background:none}

.woocommerce nav.woocommerce-pagination ul.page-numbers li{border:0;margin:0;padding:0;display:block}

.woocommerce nav.woocommerce-pagination li>.page-numbers{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius-sm);text-decoration:none;color:var(--text);font-weight:600;line-height:1;background:var(--card)}

.woocommerce nav.woocommerce-pagination li>a.page-numbers:hover{border-color:var(--primary)}

.woocommerce nav.woocommerce-pagination li>.page-numbers.current{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}

.woocommerce nav.woocommerce-pagination li>.page-numbers.dots{border:0;background:none;min-width:24px}

.term-description,.woocommerce-products-header .page-description{color:var(--muted);max-width:80ch}

/* ---------- single product ---------- */
.woocommerce div.product{display:grid;grid-template-columns:1.05fr 1fr;gap:36px;position:relative}

.woocommerce div.product>.onsale{position:absolute;z-index:2;top:12px;left:12px}

.woocommerce div.product .woocommerce-product-gallery{position:relative;margin:0;max-width:100%;min-width:0}

.woocommerce div.product .woocommerce-product-gallery__wrapper{margin:0}

.woocommerce div.product .woocommerce-product-gallery__image{background:#fff;border-radius:var(--radius);border:1px solid var(--border);overflow:hidden}

.woocommerce div.product .woocommerce-product-gallery__image img{width:100%;height:auto;object-fit:contain}

.woocommerce div.product .woocommerce-product-gallery__trigger{position:absolute;top:10px;right:10px;z-index:3;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--card);border:1px solid var(--border);text-decoration:none;font-size:0}

.woocommerce div.product .woocommerce-product-gallery__trigger::before{content:"⤢";font-size:1.2rem;color:var(--text)}

.woocommerce div.product .flex-control-thumbs{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:10px 0 0;padding:0}

.woocommerce div.product .flex-control-thumbs li{width:76px;height:76px}

.woocommerce div.product .flex-control-thumbs img{width:100%;height:100%;object-fit:contain;padding:4px;background:#fff;border:2px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;opacity:1}

.woocommerce div.product .flex-control-thumbs img.flex-active{border-color:var(--primary)}

.woocommerce div.product .summary .product_title{margin-bottom:8px}

.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:16px 0}

.woocommerce div.product form.cart .single_add_to_cart_button{flex:1;min-width:200px;min-height:48px}

.woocommerce div.product form.variations_form{display:block}

.woocommerce div.product table.variations{margin-bottom:12px}

.woocommerce div.product table.variations th,.woocommerce div.product table.variations td{border:0;padding:6px 0;display:block}

.woocommerce div.product .woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;gap:12px;align-items:end}

.woocommerce div.product .reset_variations{display:inline-block;margin-top:6px}

.woocommerce div.product .product_meta{font-size:.9rem;color:var(--muted);display:grid;gap:4px;margin-top:14px}

.woocommerce div.product .woocommerce-tabs,.woocommerce div.product .related,.woocommerce div.product .upsells{grid-column:1/-1}

.woocommerce div.product .woocommerce-tabs ul.tabs{list-style:none;display:flex;gap:4px;margin:0;padding:0;border-bottom:2px solid var(--border);flex-wrap:wrap}

.woocommerce div.product .woocommerce-tabs ul.tabs li{margin:0}

.woocommerce div.product .woocommerce-tabs ul.tabs li a{display:block;min-height:46px;padding:12px 18px;border-bottom:3px solid transparent;margin-bottom:-2px;font-weight:700;color:var(--muted);text-decoration:none}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--text);border-bottom-color:var(--primary)}

.woocommerce div.product .woocommerce-tabs .panel>h2:first-child{font-size:1.2rem}

.woocommerce #reviews .commentlist{list-style:none;padding:0}

.woocommerce #reviews .comment_container{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}

.woocommerce #reviews .avatar{width:48px;height:48px;border-radius:50%}

.woocommerce table.shop_attributes th{width:30%}

@media (max-width:900px){

.woocommerce div.product{grid-template-columns:1fr}}

/* ---------- tables (cart, orders) ---------- */
.woocommerce table.shop_table{width:100%;border-collapse:collapse;border:0}

.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:12px 10px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}

.woocommerce table.shop_table thead th{background:var(--surface);font-size:.9rem}

.woocommerce table.shop_table .product-thumbnail img{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:6px;border:1px solid var(--border)}

.woocommerce table.shop_table a.remove{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:var(--err);text-decoration:none;font-size:1.4rem;border:1px solid var(--border)}

.woocommerce table.shop_table a.remove:hover{background:var(--err);color:var(--on-sale)}

.woocommerce table.shop_table td.actions .coupon{display:flex;gap:10px;align-items:center;flex-wrap:wrap;float:left}

.woocommerce table.shop_table td.actions .coupon .input-text{width:200px}

.woocommerce table.shop_table td.actions>.button{float:right}

@media (max-width:768px){

  .woocommerce table.shop_table_responsive thead{display:none}

  .woocommerce table.shop_table_responsive tr{display:block;border-bottom:1px solid var(--border);padding:8px 0}

  .woocommerce table.shop_table_responsive td{display:flex;justify-content:space-between;gap:12px;border:0;padding:6px 4px;text-align:right}

  .woocommerce table.shop_table_responsive td[data-title]::before{content:attr(data-title) ": ";font-weight:700;color:var(--muted);text-align:left}

  .woocommerce table.shop_table_responsive td.product-remove,.woocommerce table.shop_table_responsive td.product-thumbnail,.woocommerce table.shop_table_responsive td.actions{display:block;text-align:left}

  .woocommerce table.shop_table td.actions .coupon,.woocommerce table.shop_table td.actions>.button{float:none;width:100%;margin-top:8px}
}

/* ---------- cart / checkout (classic shortcodes) ---------- */
.woocommerce-cart .woocommerce{display:grid;grid-template-columns:1fr 380px;gap:28px;align-items:start}

.woocommerce-cart .woocommerce>.woocommerce-notices-wrapper{grid-column:1/-1}

.woocommerce .cart-collaterals .cart_totals{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px}

.woocommerce .cart-collaterals .cart_totals h2{font-size:1.3rem}

.woocommerce .cart_totals .order-total{font-size:1.2rem}

.woocommerce .wc-proceed-to-checkout .button{width:100%;margin-top:14px}

.woocommerce ul#shipping_method{list-style:none;margin:0;padding:0}

.woocommerce ul#shipping_method li{display:flex;gap:8px;align-items:flex-start;margin:0 0 6px;text-align:left}

.woocommerce ul#shipping_method li input{flex:none;margin:2px 0 0}

.woocommerce ul#shipping_method li label{display:inline;font-weight:400;margin:0}

/* Checkout grid: row 1 = AJAX error notices (empty otherwise), form on the left spanning rows 2-3,
   "A sua encomenda" heading + review box on the right. Every piece is placed explicitly so stray
   children (e.g. WooCommerce's <wc-order-attribution-inputs>) can't push the review below the form. */

/* After them (inc/woocommerce.php moves the payment block there): "Pagamento" heading and the
   payment methods under the details on the left, then the place-order footer across the full width. */
.woocommerce-checkout form.checkout{display:grid;grid-template-columns:minmax(0,1fr) 400px;column-gap:28px;row-gap:0;align-items:start}

.woocommerce-checkout form.checkout>*{grid-column:1;min-width:0}

.woocommerce-checkout form.checkout>wc-order-attribution-inputs{display:none}

.woocommerce-checkout form.checkout>.woocommerce-NoticeGroup{grid-column:1/-1;grid-row:1;margin-bottom:16px}

.woocommerce-checkout form.checkout #customer_details{grid-column:1;grid-row:2/span 2}

.woocommerce-checkout form.checkout #order_review_heading{grid-column:2;grid-row:2;margin:0 0 12px;font-size:1.2rem}

.woocommerce-checkout form.checkout #order_review{grid-column:2;grid-row:3/span 3;align-self:start;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px}

.woocommerce-checkout form.checkout #payment_heading{grid-column:1;grid-row:4;margin:24px 0 12px;font-size:1.2rem}

/* #payment's two parts become grid items of the form: methods in the left column (row 5),
   place-order as the full-width footer (row 6), so the summary never overlaps it.
   (WooCommerce re-renders #payment by AJAX with the same id/class, so this keeps applying.) */
.woocommerce-checkout form.checkout #payment{display:contents}

.woocommerce-checkout form.checkout #payment>.blockUI{display:none!important} /* its loading overlay has no box to cover here */
.woocommerce-checkout form.checkout #payment>ul.payment_methods{grid-column:1;grid-row:5}

/* Footer of the whole order: privacy + terms on the left, button on the right */
.woocommerce-checkout form.checkout #payment>.place-order{grid-row:6}

.woocommerce-checkout #payment>.place-order{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,400px);column-gap:28px;align-items:center;margin:20px 0 0;padding:20px;background:var(--card);border:1px solid var(--border);border-top:3px solid var(--primary);border-radius:var(--radius)}

.woocommerce-checkout #payment>.place-order>*{grid-column:1}

.woocommerce-checkout #payment>.place-order>#place_order{grid-column:2;grid-row:1/span 3;min-height:54px;font-size:1.1rem}

.woocommerce-checkout .woocommerce-privacy-policy-text p{margin:0 0 10px;font-size:.88rem;color:var(--muted)}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row{margin:0}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox{display:flex;gap:0;align-items:center;font-weight:600;margin:0;cursor:pointer}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"]{flex:none;margin:0 10px 0 0}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper abbr.required{margin-left:2px;text-decoration:none}

/* seQura hides its own radio/label and loads its options into the box by AJAX;
   when none apply (e.g. order below its minimum) the item would be an empty frame. */
.woocommerce-checkout #payment ul.payment_methods>li.payment_method_sequra:not(:has(.sequra-payment-method)){display:none}

/* Half-width fields float (form-row-first/last): close them so the next block always starts on a new line
   (e.g. logged in: NIF is the last billing field and "Enviar para outra morada" rose up beside it). */
.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper,.woocommerce-additional-fields__field-wrapper,.col-1,.col-2)::after{content:"";display:table;clear:both}

.woocommerce-checkout #customer_details .col-2{clear:both}

/* "Enviar para uma morada diferente?" and "Informação adicional": each its own section, with a divider */
.woocommerce-checkout .woocommerce-shipping-fields,.woocommerce-checkout .woocommerce-additional-fields{clear:both;margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}

.woocommerce-checkout .woocommerce-additional-fields>h3{font-size:1rem;margin:0 0 10px}

.woocommerce-checkout .shipping_address{margin-top:4px;padding:16px 16px 2px;background:var(--surface);border-radius:var(--radius-sm)}

/* Checkboxes: same size/weight for "Criar uma conta?" and "Enviar para uma morada diferente?" */
.woocommerce-checkout #ship-to-different-address{font-size:1rem;font-weight:400;margin:0 0 12px}

.woocommerce-checkout #ship-to-different-address label,.woocommerce-checkout .create-account label{display:flex;gap:10px;align-items:center;font-weight:600;margin:0;cursor:pointer}

.woocommerce-checkout #ship-to-different-address input,.woocommerce-checkout .create-account input[type="checkbox"]{flex:none;margin:0}

/* Order summary table: [thumb · name / "2 × 3.50 €"] ........ line total (right) */

/* Rows as 2-column grids (not table layout), so a row can also stack full-width (shipping) */
.woocommerce-checkout #order_review .shop_table{display:block;font-variant-numeric:tabular-nums}

.woocommerce-checkout #order_review .shop_table :is(thead,tbody,tfoot){display:block}

.woocommerce-checkout #order_review .shop_table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border-bottom:1px solid var(--border)}

.woocommerce-checkout #order_review .shop_table tr>*{display:block;border:0}

.woocommerce-checkout #order_review .shop_table thead tr{border-bottom:2px solid var(--border)}

.woocommerce-checkout #order_review .shop_table tfoot tr.order-total{border-bottom:0}

.woocommerce-checkout #order_review .shop_table th,.woocommerce-checkout #order_review .shop_table td{vertical-align:middle;padding:12px 4px}

.woocommerce-checkout #order_review .shop_table thead th{background:none;padding-top:0;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);border-bottom:2px solid var(--border)}

.woocommerce-checkout #order_review .shop_table :is(th,td):last-child{text-align:right;white-space:nowrap;padding-left:12px}

/* font-size:0 swallows the "&nbsp;" WooCommerce prints between name and quantity (an empty line otherwise) */
.woocommerce-checkout #order_review td.product-name{padding-left:64px;position:relative;min-height:72px;display:flex!important;flex-direction:column;justify-content:center;font-size:0}

.woocommerce-checkout #order_review .co-thumb{position:absolute;left:4px;top:50%;transform:translateY(-50%);width:48px;height:48px;background:#fff;border:1px solid var(--border);border-radius:var(--radius-sm);display:grid;place-items:center;overflow:hidden}

.woocommerce-checkout #order_review .co-thumb img{width:100%;height:100%;object-fit:contain;padding:3px}

.woocommerce-checkout #order_review .co-name{display:block;font-weight:600;line-height:1.3;font-size:.92rem}

.woocommerce-checkout #order_review .co-qty{display:block;font-size:.8rem;color:var(--muted);margin-top:3px}

.woocommerce-checkout #order_review .co-qty .amount{font-weight:400}

.woocommerce-checkout #order_review td.product-name .variation{font-size:.78rem;color:var(--muted);margin:2px 0 0}

.woocommerce-checkout #order_review td.product-name .variation :is(dt,dd,p){display:inline;margin:0}

.woocommerce-checkout #order_review td.product-total{font-weight:700}

.woocommerce-checkout #order_review tfoot th{font-weight:600;color:var(--muted)}

.woocommerce-checkout #order_review tfoot tr.order-total :is(th,td){border-bottom:0;padding-top:16px;color:var(--text)}

.woocommerce-checkout #order_review tfoot tr.order-total td strong .amount{font-size:1.35rem;font-weight:800}

.woocommerce-checkout #order_review tfoot tr.order-total td small{display:block;font-size:.75rem;color:var(--muted);font-weight:400}

/* Shipping row stacked: "Envio" on top, each option on one full-width line below */
.woocommerce-checkout #order_review .shop_table tr.woocommerce-shipping-totals{grid-template-columns:1fr}

.woocommerce-checkout #order_review .shop_table tr.woocommerce-shipping-totals>*{text-align:left}

.woocommerce-checkout #order_review .shop_table tr.woocommerce-shipping-totals>th{padding-bottom:6px}

.woocommerce-checkout #order_review .shop_table tr.woocommerce-shipping-totals>td:last-child{white-space:normal;text-align:left;padding:0 4px 12px}

.woocommerce-checkout #order_review ul#shipping_method{display:grid;gap:6px}

.woocommerce-checkout #order_review ul#shipping_method li{margin:0;align-items:center;font-size:.9rem}

.woocommerce-checkout #order_review ul#shipping_method li input{margin:0}

.woocommerce-checkout #order_review ul#shipping_method li label{flex:1;cursor:pointer}

.woocommerce-checkout #order_review ul#shipping_method .amount{font-weight:700}

.woocommerce-checkout #customer_details{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px}

.woocommerce-checkout .col2-set .col-1,.woocommerce-checkout .col2-set .col-2{width:100%;float:none}

.woocommerce-checkout #payment ul.payment_methods{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}

.woocommerce-checkout #payment ul.payment_methods>li{padding:12px 14px;border:2px solid var(--border);border-radius:var(--radius-sm)}

.woocommerce-checkout #payment ul.payment_methods>li:has(input:checked){border-color:var(--primary);background:var(--surface)}

.woocommerce-checkout #payment ul.payment_methods li label{font-weight:600;cursor:pointer}

.woocommerce-checkout #payment ul.payment_methods li img{max-height:28px;display:inline-block;vertical-align:middle;margin-left:6px}

.woocommerce-checkout #payment .payment_box{font-size:.9rem;color:var(--muted);margin-top:8px}

.woocommerce-checkout #payment #place_order{width:100%}

.woocommerce-terms-and-conditions{max-height:180px;overflow:auto;border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px;background:var(--surface)}

@media (max-width:900px){

  .woocommerce-cart .woocommerce,.woocommerce-checkout form.checkout{grid-template-columns:1fr}

  .woocommerce-checkout form.checkout #customer_details,.woocommerce-checkout form.checkout #order_review_heading,.woocommerce-checkout form.checkout #order_review,.woocommerce-checkout form.checkout #payment_heading,.woocommerce-checkout form.checkout #payment{grid-column:1;grid-row:auto}

  .woocommerce-checkout form.checkout #order_review_heading{margin-top:24px}

  /* Phones: details → summary → payment → place order */
  .woocommerce-checkout form.checkout>*{order:3}

  .woocommerce-checkout form.checkout>.woocommerce-NoticeGroup{order:0}

  .woocommerce-checkout form.checkout #customer_details{order:1}

  .woocommerce-checkout form.checkout #order_review_heading,.woocommerce-checkout form.checkout #order_review{order:2}

  .woocommerce-checkout form.checkout #payment>ul.payment_methods{grid-column:1;grid-row:auto;order:4}

  .woocommerce-checkout form.checkout #payment>.place-order{grid-column:1;grid-row:auto;order:5;grid-template-columns:1fr}

  .woocommerce-checkout #payment>.place-order>#place_order{grid-column:1;grid-row:auto;margin-top:14px}
}

/* ---------- my account ---------- */
.woocommerce-account .woocommerce{display:grid;grid-template-columns:240px 1fr;gap:28px}

.woocommerce-account .woocommerce>.woocommerce-notices-wrapper{grid-column:1/-1}

.woocommerce-account:not(.logged-in) .woocommerce{display:block}

.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}

.woocommerce-MyAccount-navigation a{display:flex;align-items:center;padding:12px 16px;color:var(--text);text-decoration:none;border-bottom:1px solid var(--border);min-height:46px}

.woocommerce-MyAccount-navigation li:last-child a{border-bottom:0}

.woocommerce-MyAccount-navigation li.is-active a{background:var(--primary);color:var(--on-primary);font-weight:700}

.woocommerce-MyAccount-navigation li:not(.is-active) a:hover{background:var(--surface)}

.woocommerce-account .u-columns.col2-set{display:grid;grid-template-columns:1fr 1fr;gap:24px}

.woocommerce-account .u-columns .u-column1,.woocommerce-account .u-columns .u-column2{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px}

.woocommerce-account .woocommerce-Addresses{display:grid;grid-template-columns:1fr 1fr;gap:24px}

.woocommerce-account .woocommerce-Address{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px}

.woocommerce-account mark{background:none;color:inherit;font-weight:700}

@media (max-width:900px){

.woocommerce-account .woocommerce,.woocommerce-account .u-columns.col2-set,.woocommerce-account .woocommerce-Addresses{grid-template-columns:1fr}}

/* ---------- mini cart (WooCommerce widget markup + hooks in inc/mini-cart.php) ----------
   Targets .widget_shopping_cart_content, not .mc-body: WooCommerce's fragment
   replaces that div after AJAX and drops any extra class. */
.minicart{background:var(--surface)}

.minicart .mc-head{background:var(--card);padding:14px 16px 14px 20px}

.minicart .mc-head h2{display:flex;align-items:center;gap:10px;font-size:1.15rem}

.minicart .mc-head h2 svg{width:22px;height:22px;color:var(--link);flex:none}

.minicart .mc-count:not(:empty){font-family:var(--font);font-size:.8rem;font-weight:700;color:var(--on-primary);background:var(--primary);border-radius:999px;padding:2px 9px;line-height:1.5}

.minicart .mc-head .closebtn{border-radius:999px;padding:4px 14px}

.minicart .mc-ship{background:var(--card);padding:12px 20px 14px;border-bottom:1px solid var(--border)}

.minicart .mc-ship .progress{height:8px;border:0;background:var(--surface-2)}

.minicart .mc-ship .progress span{background:linear-gradient(90deg,var(--primary),var(--lime))}

.minicart .widget_shopping_cart_content{flex:1;display:flex;flex-direction:column;min-height:0}

.minicart .woocommerce-mini-cart{list-style:none;margin:0;padding:12px;overflow:auto;flex:1;display:grid;grid-auto-rows:max-content;gap:10px;align-content:start;overscroll-behavior:contain}

/* Never squeeze a card to fit the drawer height: the list scrolls instead (otherwise the stepper/total spill under the next card). */
.minicart .woocommerce-mini-cart::before,.minicart .woocommerce-mini-cart::after{content:none;display:none}

/* Item card: [img] [name / unit / stepper + line total], trash top-right */

.minicart .woocommerce-mini-cart-item.is-updating{opacity:.55;pointer-events:none}

.minicart .woocommerce-mini-cart-item>a:not(.remove){display:block;color:var(--text);text-decoration:none;font-weight:700;line-height:1.3}

.minicart .woocommerce-mini-cart-item>a:not(.remove):hover{color:var(--link);text-decoration:underline}

.minicart .woocommerce-mini-cart-item img{position:absolute;left:12px;top:12px;width:76px;height:76px;object-fit:contain;background:#fff;border:1px solid var(--border);border-radius:var(--radius-sm);padding:4px}

.minicart .woocommerce-mini-cart-item .variation{font-size:.82rem;color:var(--muted);margin:2px 0 0}

.minicart .woocommerce-mini-cart-item .variation dt,.minicart .woocommerce-mini-cart-item .variation dd{display:inline;margin:0}

.minicart .woocommerce-mini-cart-item .variation dd p{display:inline;margin:0}

.minicart .mc-unit{display:block;font-size:.82rem;color:var(--muted);margin-top:2px}

.minicart .mc-unit .woocommerce-Price-amount{font-weight:400}

.minicart .mc-item-foot{position:static;clear:both;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;flex-wrap:wrap}

.minicart .mc-qty{display:inline-flex;align-items:center;border:1px solid var(--field);border-radius:999px;background:var(--bg)}

.minicart .mc-qty button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:none;color:var(--text);cursor:pointer}

.minicart .mc-qty button:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}

.minicart .mc-qty button:hover:not(:disabled){background:var(--surface-2);color:var(--link)}

.minicart .mc-qty button:disabled{opacity:.35;cursor:not-allowed}

.minicart .mc-qty button svg{width:16px;height:16px}

.minicart .mc-qty output{min-width:28px;text-align:center;font-weight:800;font-variant-numeric:tabular-nums}

.minicart .mc-qty-fixed{font-size:.85rem;color:var(--muted)}

.minicart .mc-line{font-weight:800;font-size:1.05rem;white-space:nowrap}

.minicart .mc-ship-est{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:.8rem;font-weight:600;color:var(--ok)}

.minicart .mc-ship-est svg{width:15px;height:15px;flex:none}

.minicart .mc-ship-est.backorder{color:var(--muted)}

.minicart .woocommerce-mini-cart-item .quantity{border:0;background:none} /* old cached markup, just in case */

/* Remove: quiet icon; on hover/focus it turns sale-red on a soft tint */
.minicart .woocommerce-mini-cart-item a.remove{position:absolute;right:8px;top:8px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:0;background:transparent;color:var(--muted);text-decoration:none;opacity:.7;transition:color .18s ease,background-color .18s ease,opacity .18s ease,transform .18s ease}

.minicart .woocommerce-mini-cart-item a.remove svg{width:18px;height:18px;transition:transform .18s ease}

.minicart .woocommerce-mini-cart-item:hover a.remove{opacity:1}

.minicart .woocommerce-mini-cart-item a.remove:hover,.minicart .woocommerce-mini-cart-item a.remove:focus-visible{opacity:1;color:var(--sale);background:color-mix(in srgb,var(--sale) 10%,transparent)}

.minicart .woocommerce-mini-cart-item a.remove:hover svg{transform:rotate(-8deg) scale(1.08)}

.minicart .woocommerce-mini-cart-item a.remove:active{transform:scale(.92)}

/* Smooth: cards lift a little on hover, stepper and buttons ease */
.minicart .woocommerce-mini-cart-item{position:relative;display:block;flex:none;height:auto;max-height:none;overflow:visible;min-height:102px;margin:0;padding:12px 44px 12px 102px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);transition:opacity .15s,border-color .18s ease,box-shadow .18s ease}

.minicart .woocommerce-mini-cart-item:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--border));box-shadow:0 4px 14px rgba(0,0,0,.06)}

.minicart .mc-qty button,.minicart .woocommerce-mini-cart__buttons .button{transition:background-color .15s ease,color .15s ease,border-color .15s ease,transform .1s ease}

.minicart .mc-qty button:active:not(:disabled),.minicart .woocommerce-mini-cart__buttons .button:active{transform:scale(.96)}

/* WooCommerce's removal overlay (jQuery blockUI): fade instead of a white box */
.minicart .blockUI.blockOverlay{background:var(--card)!important;opacity:.6!important;border-radius:var(--radius)}

/* Footer: subtotal, note, buttons, secure line */
.minicart .woocommerce-mini-cart__total{display:flex;justify-content:space-between;align-items:baseline;margin:0;padding:16px 20px 0;border-top:1px solid var(--border);background:var(--card);box-shadow:0 -8px 20px rgba(0,0,0,.06);font-size:1rem;font-weight:700}

.minicart .woocommerce-mini-cart__total .amount{font-size:1.35rem;font-weight:800}

.minicart .mc-note{margin:0;padding:2px 20px 12px;background:var(--card);font-size:.82rem;color:var(--muted)}

.minicart .woocommerce-mini-cart__buttons{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin:0;padding:0 20px 10px;background:var(--card)}

.minicart .woocommerce-mini-cart__buttons .button{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:0;border-radius:var(--radius);font-weight:800;text-align:center;text-decoration:none}

.minicart .woocommerce-mini-cart__buttons .button:not(.checkout){background:transparent;color:var(--text);border:2px solid var(--field)}

.minicart .woocommerce-mini-cart__buttons .button:not(.checkout):hover{border-color:var(--primary)}

.minicart .woocommerce-mini-cart__buttons .checkout{background:var(--lime);color:var(--on-lime);border:2px solid var(--lime)}

.minicart .mc-secure{display:flex;align-items:center;justify-content:center;gap:6px;margin:0;padding:0 20px 16px;background:var(--card);font-size:.78rem;color:var(--muted)}

.minicart .mc-secure svg{width:14px;height:14px}

/* Empty */
.minicart .woocommerce-mini-cart__empty-message{margin:auto 0 0;padding:40px 20px 8px;text-align:center;font-weight:700;font-size:1.05rem}

.minicart .woocommerce-mini-cart__empty-message::before{content:"";display:block;width:72px;height:72px;margin:0 auto 14px;border-radius:50%;background:var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378a088' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.7 12.4a2 2 0 0 0 2 1.6h8.6a2 2 0 0 0 2-1.6L22 7H6'/%3E%3C/svg%3E") center/36px no-repeat;border:1px solid var(--border)}

.minicart .mc-empty-cta{margin:0 0 auto;padding:8px 20px 30px;text-align:center}

@media (prefers-reduced-motion:reduce){

  .minicart .woocommerce-mini-cart-item,.minicart .woocommerce-mini-cart-item a.remove,.minicart .woocommerce-mini-cart-item a.remove svg,.minicart .mc-qty button,.minicart .woocommerce-mini-cart__buttons .button{transition:none}

  .minicart .woocommerce-mini-cart-item a.remove:hover svg{transform:none}
}

/* ---------- WooCommerce blocks (cart/checkout blocks keep their own CSS; align tokens) ---------- */
.wc-block-components-button.contained{background:var(--primary);color:var(--on-primary)}

.wc-block-components-text-input input,.wc-block-components-combobox .wc-block-components-combobox-control input{border:2px solid var(--field)!important;border-radius:var(--radius-sm)!important}

@media (forced-colors:active){

  .woocommerce .button{border:2px solid ButtonText}

  .woocommerce ul.products li.product{border:1px solid CanvasText}
}

/* =========================================================
   Main menu rail (Menu Main Top)
   ========================================================= */
.rail-col{width:270px;flex:none;display:flex;flex-direction:column;border-right:1px solid var(--border);background:var(--surface);overflow:auto}

.rail-col .rail{width:auto;border-right:0;overflow:visible;flex:none}

.rail-links{list-style:none;margin:0;padding:6px 0;border-top:1px solid var(--border)}

.rail-links a{display:flex;align-items:center;gap:10px;min-height:42px;padding:8px 16px;color:var(--text);font-weight:600;text-decoration:none}

.rail-links a:hover{text-decoration:underline}

.rail-links svg.ic{width:20px;height:20px;color:var(--link);flex:none}

.drawer-link{margin:0;border-bottom:1px solid var(--border)}

.drawer-link a{display:flex;align-items:center;min-height:48px;padding:0 4px;font-weight:700;color:var(--text)}

/* =========================================================
   Category / shop page
   ========================================================= */
.woocommerce-products-header{margin-bottom:6px}

.woocommerce-products-header .term-description p{margin:0 0 .6em}

.chips a[aria-current="page"]{border-color:var(--primary);background:var(--surface)}

.shop{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;align-items:start}

.shop-main{min-width:0}

.filters h2{margin-bottom:12px}

.filters .filter-box{border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;margin:0 0 12px;background:var(--card)}

.filters .filter-title{font-size:1rem;margin:0 0 6px}

.filter-cats{list-style:none;margin:0;padding:0}

.filter-cats a{display:flex;gap:8px;align-items:center;min-height:32px;color:var(--text);text-decoration:none}

.filter-cats a:hover{text-decoration:underline;color:var(--link)}

.filter-cats a[aria-current="page"]{font-weight:700;color:var(--link)}

.filter-cats .ct{margin-left:auto}

.filters summary{min-height:32px;display:flex;align-items:center}

.toolbar .woocommerce-result-count{float:none;margin:0;color:var(--muted)}

.toolbar .woocommerce-ordering{float:none;margin:0}

.toolbar .woocommerce-ordering select{min-height:42px;width:auto;padding:6px 10px;border:2px solid var(--field);border-radius:var(--radius-sm);background:var(--bg);color:var(--text)}

.seg button{color:var(--text)}

.shop-main ul.products{clear:none}

/* list view */
.woocommerce ul.products.list{grid-template-columns:1fr}

.woocommerce ul.products.list li.product{display:grid;grid-template-columns:120px minmax(0,1fr) auto;grid-auto-rows:min-content;column-gap:18px;row-gap:4px;align-items:center}

.woocommerce ul.products.list li.product .thumb{grid-row:1/span 6;width:120px}

.woocommerce ul.products.list li.product>*:not(.thumb):not(.button):not(.tag){grid-column:2}

.woocommerce ul.products.list li.product .button{grid-column:3;grid-row:1/span 6;margin:0;align-self:center}

@media (max-width:600px){

  .woocommerce ul.products.list li.product{grid-template-columns:90px minmax(0,1fr)}

  .woocommerce ul.products.list li.product .thumb{width:90px}

  .woocommerce ul.products.list li.product .button{grid-column:1/-1;grid-row:auto;margin-top:8px}
}

.woocommerce-no-products-found .woocommerce-info{margin-top:12px}

/* Desktop: filter column sticks under the header and scrolls on its own */
@media (min-width:901px){

  .shop>.filters{position:sticky;top:calc(var(--header-h) + 12px);max-height:calc(100vh - var(--header-h) - 24px);overflow-y:auto;overscroll-behavior:contain;padding-right:6px;scrollbar-width:thin;scrollbar-color:var(--field) transparent}

  .shop>.filters::-webkit-scrollbar{width:6px}

  .shop>.filters::-webkit-scrollbar-thumb{background:var(--field);border-radius:3px}
}

@media (max-width:900px){

  .shop{grid-template-columns:1fr}

  .filters{display:none}

  .filters.open{display:block}

  .filters-toggle{display:inline-flex}
}

/* =========================================================
   Product page
   ========================================================= */
.woocommerce div.product .summary{display:flex;flex-direction:column;align-items:flex-start;gap:4px}

.woocommerce div.product .summary>*{max-width:100%}

.woocommerce div.product .summary form.cart,.woocommerce div.product .summary .infolist,.woocommerce div.product .summary .woocommerce-product-details__short-description{align-self:stretch}

.tag.tag-static{position:static;display:inline-block;margin-bottom:8px}

.woocommerce div.product .summary .woocommerce-product-rating{display:flex;gap:8px;align-items:center;margin:0 0 6px}

.woocommerce div.product .summary .price{font-size:1.7rem;margin:4px 0 0}

.vat-note{color:var(--muted);font-size:.9rem;margin:0 0 8px}

.woocommerce-product-details__short-description{color:var(--text)}

.woocommerce div.product .stock{font-weight:700;color:var(--ok);margin:0}

.woocommerce div.product .stock.out-of-stock{color:var(--err)}

.woocommerce div.product form.cart .quantity{align-self:stretch}

.quantity{border:2px solid var(--field);border-radius:var(--radius-sm);overflow:hidden;background:var(--bg)}

.woocommerce .quantity .qty::-webkit-inner-spin-button,.woocommerce .quantity .qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

.qty-btn{width:44px;min-height:44px;border:0;background:var(--surface);color:var(--text);cursor:pointer;font-size:1.2rem;font-weight:700}

.qty-btn:hover{background:var(--surface-2)}

.infolist .muted{color:var(--muted)}

.paysafe-title{font-size:1rem;margin:10px 0 0}

.woocommerce div.product .product_meta a{color:var(--link)}

.woocommerce div.product .woocommerce-tabs{margin-top:40px}

.woocommerce div.product .woocommerce-tabs .panel{padding:18px 0;max-width:90ch}

.woocommerce div.product .related>h2,.woocommerce div.product .upsells>h2{font-size:1.45rem;margin:40px 0 16px}

.woocommerce div.product .woocommerce-product-gallery .flex-viewport{background:#fff;border-radius:var(--radius);border:1px solid var(--border)}

.woocommerce div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image{border:0;border-radius:0}

.woocommerce div.product table.variations select{min-width:220px}

.woocommerce div.product table.variations label{font-weight:700}

.woocommerce div.product .woocommerce-variation-price .price{font-size:1.4rem}

/* ---------- sohorta plugin output ---------- */

/* Safety net: anything printed after the summary spans the full width */
.woocommerce div.product>*:not(.woocommerce-product-gallery):not(.summary):not(.onsale){grid-column:1/-1}

/* Custom product labels (plugin) as template badges */
.woocommerce ul.products li.product .onsale.sale-perc{position:absolute;top:12px;left:12px;z-index:1;background:var(--primary);color:var(--on-primary);font-weight:800;font-size:.78rem;padding:3px 8px;border-radius:4px}

.woocommerce ul.products li.product h5{font-size:.85rem;margin:0;color:var(--ok)}

.woocommerce div.product .summary h4{font-size:.95rem;margin:4px 0}

.woocommerce div.product .summary .woocommerce-error{display:block;border-left-color:var(--sale);font-weight:700}

.ficha-tecnica h4 a{color:var(--link)}

.free-qty{display:flex;gap:8px;align-items:center;align-self:stretch;margin:10px 0 0}

.free-qty svg{width:20px;height:20px;flex:none;color:var(--link)}

i.fas,i.fa{display:none} /* Font Awesome isn't loaded by this theme */

/* ---------- catalogue on phones: 2 per row, chips in one swipeable row ---------- */
@media (max-width:599px){

  .woocommerce ul.products:not(.list){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}

  .woocommerce ul.products:not(.list) li.product .button{padding:8px 6px;font-size:.9rem}

  .chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin}

  .chips li{flex:none}

  .toolbar .right{width:100%}

  .toolbar .woocommerce-ordering{flex:1}

  .toolbar .woocommerce-ordering select{width:100%}
}

/* =========================================================
   WooCommerce filter widgets (Filtros da loja)
   ========================================================= */
.filters .widget ul{list-style:none;margin:0;padding:0}

.filters .woocommerce-widget-layered-nav-list a,.filters .widget_rating_filter a{display:flex;align-items:center;gap:10px;min-height:32px;color:var(--text);text-decoration:none}

.filters .woocommerce-widget-layered-nav-list a::before,.filters .widget_rating_filter a::before{content:"";width:18px;height:18px;flex:none;border:2px solid var(--field);border-radius:4px;background:var(--bg)}

.filters .woocommerce-widget-layered-nav-list li.chosen a::before,.filters .widget_rating_filter li.chosen a::before{background:var(--primary);border-color:var(--primary);box-shadow:inset 0 0 0 3px var(--bg)}

.filters .woocommerce-widget-layered-nav-list a:hover,.filters .widget_rating_filter a:hover{text-decoration:underline;color:var(--link)}

.filters .woocommerce-widget-layered-nav-list .count,.filters .widget_rating_filter .count{margin-left:auto;color:var(--muted);font-size:.85rem}

.filters .widget_rating_filter .star-rating{font-size:.9rem}

/* Active filters: removable pills */
.filters .widget_layered_nav_filters ul{display:flex;flex-wrap:wrap;gap:6px}

.filters .widget_layered_nav_filters li a{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 12px;border:1px solid var(--primary);border-radius:999px;color:var(--text);text-decoration:none;font-size:.9rem;background:var(--surface)}

.filters .widget_layered_nav_filters li a::before{content:"×";font-weight:700;color:var(--err)}

/* Price slider (jQuery UI markup from WooCommerce) */
.filters .price_slider_wrapper{padding:6px 4px 0}

.filters .price_slider{position:relative;height:6px;margin:14px 10px 22px;background:var(--surface-2);border-radius:3px;border:1px solid var(--field)}

.filters .price_slider .ui-slider-range{position:absolute;top:0;height:100%;background:var(--primary);border-radius:3px}

.filters .price_slider .ui-slider-handle{position:absolute;top:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;background:var(--card);border:3px solid var(--primary);cursor:grab;z-index:2;touch-action:none}

.filters .price_slider .ui-slider-handle:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

.filters .price_slider_amount{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}

.filters .price_slider_amount input{width:calc(50% - 5px);min-height:42px;padding:6px 10px;border:2px solid var(--field);border-radius:var(--radius-sm);background:var(--bg);color:var(--text)}

.filters .price_slider_amount .price_label{order:1;flex:1;font-size:.9rem;color:var(--muted)}

.filters .price_slider_amount .button{order:2;min-height:40px;padding:8px 16px}

.filters .price_slider_amount .clear{display:none}

.filters .woocommerce-widget-layered-nav-dropdown select,.filters .select2-container{width:100%!important}

/* Layered nav: WooCommerce prints the count outside the link → flex the <li> */
.filters .woocommerce-widget-layered-nav-list li,.filters .widget_rating_filter li{margin:0;display:flex;align-items:center;gap:8px}

.filters .woocommerce-widget-layered-nav-list li a,.filters .widget_rating_filter li a{flex:1;min-width:0}

/* Long lists: first 4 options + "Ver mais" (site.js) */
.filters li.is-collapsed{display:none!important}

.filter-more{display:inline-flex;align-items:center;min-height:32px;margin-top:4px;padding:2px 0;background:none;border:0;color:var(--link);font-weight:700;font-size:.9rem;text-decoration:underline;cursor:pointer}

.filter-more:hover{text-decoration-thickness:2px}

.filter-more::after{content:"";width:7px;height:7px;margin-left:8px;border-right:2px solid currentcolor;border-bottom:2px solid currentcolor;transform:translateY(-2px) rotate(45deg)}

.filter-more[aria-expanded="true"]::after{transform:translateY(2px) rotate(-135deg)}

/* Search with no products: "Quis dizer …?" (inc/search-suggest.php) */
.search-didyoumean{font-size:1.05rem;margin:0 0 16px}

.search-didyoumean a{font-weight:800}

/* ===== Checkout: "A processar a sua encomenda…" overlay (inc/woocommerce.php + site.js) ===== */
.co-processing{position:fixed;inset:0;z-index:900;display:grid;place-items:center;padding:16px;background:color-mix(in srgb,var(--bg) 78%,transparent);backdrop-filter:blur(3px);animation:co-fade .2s ease-out}

.co-processing[hidden]{display:none}

.co-proc-card{width:min(420px,100%);padding:32px 24px;text-align:center;background:var(--card);border:1px solid var(--border);border-top:4px solid var(--primary);border-radius:var(--radius);box-shadow:var(--shadow)}

.co-spinner{display:block;width:52px;height:52px;margin:0 auto 18px;border-radius:50%;border:5px solid var(--surface);border-top-color:var(--primary);border-right-color:var(--lime);animation:co-spin .8s linear infinite}

.co-proc-t{margin:0 0 6px;font:800 1.2rem/1.3 var(--font-head);color:var(--text)}

.co-proc-s{margin:0;color:var(--muted);font-size:.92rem}

html.co-busy{overflow:hidden}

/* WooCommerce's own spinner over the form is redundant under the overlay. */
html.co-busy form.checkout .blockUI{display:none!important}

@keyframes co-spin{

to{transform:rotate(360deg)}}

@keyframes co-fade{

from{opacity:0}}

/* A slow spin is still needed as feedback (base.css turns animations off for reduced motion). */
@media (prefers-reduced-motion:reduce){

.co-spinner{animation:co-spin 2.4s linear infinite!important}}

/* ===== Order received (thank-you page) ===== */
.woocommerce-order{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px 28px;align-items:start}

.woocommerce-order>*{grid-column:1/-1;margin:0;min-width:0}

/* Hero */
.woocommerce-order .woocommerce-thankyou-order-received{display:flex;gap:18px;align-items:center;padding:24px;border:1px solid var(--border);border-left:6px solid var(--ok);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow)}

.ty-icon{flex:none;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--ok);color:#fff;animation:ty-pop .45s cubic-bezier(.2,1.4,.4,1) both}

.ty-icon svg{width:30px;height:30px;stroke-width:3}

.ty-txt{display:flex;flex-direction:column;gap:4px}

.ty-title{font:800 clamp(1.3rem,1.1rem + .8vw,1.7rem)/1.2 var(--font-head);color:var(--text)}

.ty-sub{color:var(--muted);overflow-wrap:anywhere}

@keyframes ty-pop{

from{transform:scale(.4);opacity:0}}

/* Summary cards: nº, data, email, total, pagamento */
.woocommerce-order ul.woocommerce-order-overview{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}

.woocommerce-order-overview li{display:flex;flex-direction:column;gap:2px;padding:14px 16px;background:var(--surface);border-radius:var(--radius-sm);font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:600;min-width:0}

.woocommerce-order-overview li strong{font-size:1rem;text-transform:none;letter-spacing:0;color:var(--text);font-weight:700;overflow-wrap:anywhere}

.woocommerce-order-overview li.total strong{font-size:1.25rem;font-weight:800}

/* Como pagar */
.ty-pay{padding:20px 24px;background:var(--card);border:1px solid var(--border);border-top:4px solid var(--lime);border-radius:var(--radius)}

.ty-pay>h2{font-size:1.2rem;margin:0 0 10px}

.ty-pay p{margin:0 0 12px}

.ty-pay .wc-bacs-bank-details-heading{font-size:1rem;margin:16px 0 8px}

.ty-pay .wc-bacs-bank-details-account-name{font-size:.95rem;margin:0 0 8px;color:var(--muted)}

.ty-pay ul.bacs_details{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}

.ty-pay ul.bacs_details li{display:flex;flex-direction:column;gap:2px;padding:12px 14px;background:var(--surface);border-radius:var(--radius-sm);font-size:.8rem;color:var(--muted)}

.ty-pay ul.bacs_details li strong{font-size:.98rem;color:var(--text);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}

/* Details (left) + customer (right) */
.woocommerce-order>.woocommerce-order-details{grid-column:1}

.woocommerce-order>.woocommerce-customer-details{grid-column:2}

.woocommerce-order :is(.woocommerce-order-details,.woocommerce-customer-details){padding:20px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius)}

.woocommerce-order :is(.woocommerce-order-details__title,.woocommerce-column__title){font-size:1.15rem;margin:0 0 12px}

.woocommerce-order .woocommerce-table--order-details{width:100%;border-collapse:collapse;border:0;margin:0;font-variant-numeric:tabular-nums}

.woocommerce-order table.woocommerce-table--order-details :is(th,td){padding:12px 4px;border:0;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle;background:none}

.woocommerce-order table.woocommerce-table--order-details :is(th,td):last-child{text-align:right;white-space:nowrap;padding-left:12px}

.woocommerce-order table.woocommerce-table--order-details thead th{background:none;padding-top:0;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);border-bottom-width:2px}

.woocommerce-order table.woocommerce-table--order-details td.product-name{position:relative;padding-left:64px;height:72px;white-space:normal}

.woocommerce-order table.woocommerce-table--order-details .co-thumb{position:absolute;left:4px;top:50%;transform:translateY(-50%);width:48px;height:48px;background:#fff;border:1px solid var(--border);border-radius:var(--radius-sm);display:grid;place-items:center;overflow:hidden}

.woocommerce-order table.woocommerce-table--order-details .co-thumb img{width:100%;height:100%;object-fit:contain;padding:3px}

.woocommerce-order table.woocommerce-table--order-details td.product-name a{color:var(--text);font-weight:600;text-decoration:none}

.woocommerce-order table.woocommerce-table--order-details td.product-name a:hover{text-decoration:underline}

.woocommerce-order table.woocommerce-table--order-details .product-quantity{font-weight:600;color:var(--muted);margin-left:4px}

.woocommerce-order table.woocommerce-table--order-details .wc-item-meta{list-style:none;margin:4px 0 0;padding:0;font-size:.8rem;color:var(--muted)}

.woocommerce-order table.woocommerce-table--order-details .wc-item-meta p{display:inline;margin:0}

.woocommerce-order table.woocommerce-table--order-details tfoot th{font-weight:600;color:var(--muted)}

.woocommerce-order table.woocommerce-table--order-details tfoot td{color:var(--text)}

/* Long values (shipping method, payment) may wrap; only the amounts stay on one line. */
.woocommerce-order table.woocommerce-table--order-details tfoot td:last-child{white-space:normal;overflow-wrap:anywhere}

.woocommerce-order table.woocommerce-table--order-details .amount{white-space:nowrap}

.woocommerce-order table.woocommerce-table--order-details tfoot tr:last-child :is(th,td){border-bottom:0}

.woocommerce-order table.woocommerce-table--order-details tfoot td small{display:block;font-size:.75rem;color:var(--muted);font-weight:400}

/* The "Total:" row (the one with the VAT note) stands out. */
.woocommerce-order table.woocommerce-table--order-details tfoot tr:has(.includes_tax) :is(th,td){color:var(--text);font-weight:800}

.woocommerce-order table.woocommerce-table--order-details tfoot tr:has(.includes_tax) td>.amount{font-size:1.3rem}

.woocommerce-customer-details address{font-style:normal;line-height:1.6;padding:0;border:0;margin:0 0 12px}

.woocommerce-customer-details address p{margin:6px 0 0;color:var(--muted)}

.woocommerce-customer-details .woocommerce-columns{display:grid;gap:16px}

.woocommerce-customer-details--nif{margin:0 0 4px}

.woocommerce-customer-details--nif span{color:var(--muted)}

/* sohorta plugin's "Cancelar Encomenda" (inline margins of 50px). */
.woocommerce-customer-details .order-again{margin:16px 0 0!important;padding-top:16px;border-top:1px solid var(--border);font-size:.85rem;color:var(--muted)}

.woocommerce-customer-details .order-again br{display:none}

.woocommerce-customer-details .order-again i{display:block;margin-top:6px}

.woocommerce-customer-details .order-again .button{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border:2px solid var(--sale);border-radius:var(--radius-sm);background:transparent;color:var(--sale);font-weight:700;text-decoration:none}

.woocommerce-customer-details .order-again .button:hover{background:var(--sale);color:var(--on-sale)}

.woocommerce-customer-details p.order-again .button::after{content:none!important}

/* Next steps */
.ty-actions{display:flex;flex-wrap:wrap;gap:12px}

@media (max-width:900px){

  .woocommerce-order{grid-template-columns:1fr}

  .woocommerce-order>.woocommerce-customer-details{grid-column:1}

  .woocommerce-order .woocommerce-thankyou-order-received{padding:18px;gap:14px}

  .ty-icon{width:46px;height:46px}

  .ty-actions .btn{flex:1 1 220px}
}

@media (max-width:560px){

  .woocommerce-order ul.woocommerce-order-overview{grid-template-columns:1fr 1fr;gap:8px}

  .woocommerce-order-overview li{padding:12px}

  .woocommerce-order-overview li:is(.email,.method){grid-column:1/-1}

  .woocommerce-order :is(.woocommerce-order-details,.woocommerce-customer-details,.ty-pay){padding:16px}
}

/* ===== Product page: favourites + back-in-stock (sohorta plugin / WooCommerce features) ===== */
.sh-wish-wrap{margin:12px 0 0}

.sh-wish{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 16px;border:2px solid var(--border);border-radius:999px;background:var(--card);color:var(--text);font:inherit;font-weight:700;text-decoration:none;cursor:pointer;transition:border-color .15s,color .15s,background .15s}

.sh-wish svg{width:20px;height:20px;flex:none;transition:transform .2s}

.sh-wish:hover:not(:disabled){border-color:var(--sale);color:var(--sale)}

.sh-wish[aria-pressed="true"]{border-color:var(--sale);color:var(--sale)}

.sh-wish[aria-pressed="true"] svg path{fill:currentcolor}

.sh-wish[aria-pressed="true"] svg{animation:sh-heart .35s ease-out}

.sh-wish:disabled{opacity:.6;cursor:not-allowed}

.sh-wish.is-busy{cursor:progress}

@keyframes sh-heart{

50%{transform:scale(1.3)}}

.wc_bis_form{margin:12px 0 16px;padding:16px;background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:var(--radius-sm)}

.wc_bis_form__title{margin:0 0 10px;font-weight:700}

.wc_bis_form__form-row{display:flex;flex-wrap:wrap;gap:10px}

.wc_bis_form__input{flex:1 1 220px;min-width:0;min-height:46px;padding:10px 12px;border:2px solid var(--field);border-radius:var(--radius-sm);background:var(--bg);color:var(--text)}

.wc_bis_form__input::placeholder{color:var(--muted)}

.woocommerce .wc_bis_form .wc_bis_form__button{min-height:46px;padding:10px 20px;flex:0 0 auto}
