/*
Theme Name: Tema LaserMaq Formações
Theme URI: https://formacoes.lasermaq.pt
Description: Tema standalone para formacoes.lasermaq.pt — header, fontes e cores LaserMaq; formações e bilhetes. Sem dependência do tema pai.
Author: LaserMaq
Version: 1.0
Text Domain: tema-lasermaq-formacoes
Tags: custom-menu, featured-images, full-width-template, post-formats, theme-options, woocommerce
*/

/* Base reset */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ul, ol, li { border: 0; margin: 0; padding: 0; font-size: 100%; font-family: inherit; vertical-align: baseline; }
body { line-height: 1.4; }
ol, ul { list-style: none; }
a img { border: 0; }

/* Font: Josefin Sans via Google Fonts (loaded in functions.php) */
html,
body { color: #666; font-family: 'Josefin Sans', Arial, Helvetica, sans-serif; font-size: 14px; }
a { color: #ffba05; text-decoration: none; transition: color 0.3s; }
a:hover { color: #f90; }

/* Background + sticky footer (footer sempre no fundo do ecrã) */
html,
body { background: #fff; min-height: 100vh; min-width: 960px; width: 100%; }
#body-wrapper { display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; position: relative; width: 100%; }
.site-main-wrap { flex: 1; }

/* Pre-header (barra amarela) – fixed no topo */
#pre-header { background-color: #ffba05; display: block; height: 60px; line-height: 60px; overflow: hidden; position: fixed; left: 0; right: 0; top: 0; z-index: 1205; text-align: center; }
#pre-header > .w { display: block; height: 60px; line-height: 60px; margin: 0 auto; max-width: 1200px; min-width: 960px; position: relative; width: 90%; }
#pre-header > .w > .t { display: block; height: 60px; line-height: 60px; position: absolute; top: 0; white-space: nowrap; }
#pre-header > .w > .t.l { left: 0; }
#pre-header > .w > .t.r { right: 0; }
#pre-header > .w > .t > .s { color: #fff; display: inline-block; font-size: 14px; height: 60px; line-height: 60px; padding-left: 12px; padding-right: 24px; position: relative; vertical-align: top; transition: opacity 0.3s; text-decoration: none; }
#pre-header > .w > .t > .s:hover { opacity: 0.85; color: #fff; }
#pre-header .pre-header-note { font-size: 11px; }
#pre-header > .w > .t.l > .s { margin-right: 30px; }
#pre-header > .w > .t > .s > img { display: block; height: 22px; left: 0; margin-top: -11px; position: absolute; top: 50%; width: 22px; }
#pre-header > .w > .t.r > .s > img { left: 50%; margin-left: -11px; }
#pre-header > .w > .t.r > .s { padding: 0; width: 60px; }
#pre-header > .w > .t.r > .s > .t { display: none; }
#pre-header > .w > .t > .s { padding-left: 32px; position: relative; }
#pre-header .pre-header-at { vertical-align: baseline; width: 12px; height: auto; margin: 0 1px; position: relative; display: inline-block; }

/* Spacer abaixo do header fixo (60 + 110 = 170px) */
#but-not-header { display: block; height: 170px; }

/* Header (faixa branca + logo + menu) – fixo logo abaixo da barra amarela */
#header { background-color: #fff; display: block; height: 110px; line-height: 110px; position: fixed; left: 0; right: 0; top: 60px; z-index: 1200; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: box-shadow 0.3s; }
body.scrolled #header { box-shadow: 0 2px 14px rgba(0,0,0,0.12); }
#header > .w { display: block; height: 110px; line-height: 110px; margin: 0 auto; max-width: 1200px; min-width: 960px; position: relative; width: 90%; }
#header > .w > .l { display: block; height: 53px; left: 0; margin-top: -26.5px; overflow: hidden; position: absolute; top: 50%; width: 214px; }
#header > .w > .l > img { display: block; height: 53px; width: auto; max-width: 214px; }

/* Main menu (wrapped in #main-nav for mobile) */
#main-nav { position: absolute; left: 214px; right: -20px; top: 0; bottom: 0; text-align: right; }
#main-menu { bottom: 0; display: block; position: relative; text-align: right; white-space: nowrap; font-size: 0; text-transform: uppercase; }
#main-menu * { display: inline-block; vertical-align: top; }
#main-menu a { font-size: 14px; }
#main-menu > div > ul > li { background-color: transparent; height: 110px; position: relative; }
#main-menu > div > ul > li * { display: block; }
#main-menu > div > ul > li > a { color: #000; display: block; height: 110px; line-height: 110px; padding: 0 20px; position: relative; text-transform: uppercase; }
#main-menu > div > ul > li > a > span { display: inline-block; line-height: 26px; text-align: left; vertical-align: middle; position: relative; font-size: 16px; }
#main-menu > div > ul > li > a > span > span { font-weight: bold; color: #000; font-size: 16px; transition: color 0.3s; }
#main-menu > div > ul > li.current-menu-item > a > span > span,
#main-menu > div > ul > li:hover > a > span > span { color: #ffba05; }
#main-menu > div > ul > li > a > span.iconified { padding-left: 32px; position: relative; }
#main-menu > div > ul > li > a > span.iconified > img { height: 24px; width: 24px; position: absolute; left: 0; top: 50%; margin-top: -12px; object-fit: contain; display: block; }

/* Footer */
#footer { background-color: #fff; display: block; position: relative; text-align: center; }
#footer > .w { color: #888; display: block; font-size: 15px; line-height: 22px; margin: 0 auto; max-width: 1200px; min-width: 960px; padding: 25px 0; width: 90%; }
#footer > .w > .t { display: block; text-align: center; float: none; }
#footer > .w > .t > a { color: #ffba05; }
#footer > .w > .t > a:hover { color: #f90; }
.gc-clear { clear: both; }

/* Home: hero – desktop: texto à esquerda, imagem à direita; gradiente #000 → #333. Mobile: imagem por cima, tudo centrado. */
.formacoes-hero { min-height: 580px; background: linear-gradient(180deg, #000000 0%, #333333 100%); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.formacoes-hero .hero-inner { display: flex; align-items: center; gap: 3rem; max-width: 1200px; margin: 0 auto; width: 100%; box-sizing: border-box; min-height: 580px; padding: 0 5%; }
.formacoes-hero .hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 52%; }
.formacoes-hero .hero-title { color: #fff; font-size: 2.4em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.5em; }
.formacoes-hero .hero-desc { color: rgba(255,255,255,0.88); font-size: 1.06em; line-height: 1.6; margin: 0 0 1.75em; max-width: 28em; }
.formacoes-hero .hero-cta { display: inline-block; align-self: flex-start; background-color: #ffba05; color: #1a1a1a; padding: 14px 32px; border-radius: 6px; text-decoration: none; text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; transition: transform 0.2s, color 0.2s; }
.formacoes-hero .hero-cta:hover { color: #1a1a1a; transform: translateY(-2px); }
.formacoes-hero .hero-fallback-text { color: rgba(255,255,255,0.8); margin: 0; }
.formacoes-hero .hero-media { flex: 0 0 48%; max-width: 48%; height: 580px; display: flex; align-items: center; justify-content: flex-end; box-sizing: border-box; }
.formacoes-hero .hero-image-wrap { width: 100%; max-width: 100%; max-height: 580px; aspect-ratio: 1; background-size: contain; background-position: center; background-repeat: no-repeat; border-radius: 12px; position: relative; overflow: hidden; }
.formacoes-hero .hero-image-wrap .hero-overlay { position: absolute; inset: 0; background: linear-gradient(145deg, rgba(0,0,0,0.05) 0%, transparent 50%); pointer-events: none; }
.formacoes-hero .hero-image-wrap.hero-bg-fallback { background-color: #404040; }

.formacoes-list { max-width: 1200px; margin: 0 auto; padding: 40px 5% 80px; width: 100%; box-sizing: border-box; text-align: left; }
.formacoes-list h2 { color: #333; font-size: 1.75em; margin-bottom: 1.5em; text-align: left; }
.formacoes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; width: 100%; justify-content: start; }
.formacoes-grid li { background: #f5f5f5; border-radius: 4px; overflow: hidden; border: 1px solid #eee; }
.formacoes-grid a { display: block; color: inherit; text-decoration: none; }
.formacoes-grid a:hover { color: #ffba05; }
.formacoes-grid .formacao-image { width: 100%; height: 180px; object-fit: cover; display: block; }
.formacoes-grid .formacao-content { padding: 16px; }
.formacoes-grid .formacao-title { color: #333; font-size: 1.1em; margin: 0 0 0.5em; }
.formacoes-grid .formacao-price { color: #ffba05; font-weight: bold; }
.formacoes-no-events { color: #666; text-align: center; padding: 60px 20px; }

/* Shop page (/formacoes) – same visual language as front-page list; full-width content, no sidebar; left-aligned; no padding */
.formacoes-shop-page { max-width: 1200px; margin: 0 auto; padding: 0; box-sizing: border-box; width: 100%; text-align: left; }
.formacoes-shop-page .woocommerce { margin: 0; padding: 0; width: 100%; text-align: left; }
.formacoes-shop-page #primary,
.formacoes-shop-page .content-area,
.formacoes-shop-page .site-main,
.formacoes-shop-page #main { width: 100% !important; max-width: none !important; padding: 0; }
/* WooCommerce clearfix ::before/::after become grid items – remove them so they don’t take the first spot */
.formacoes-shop-page ul.products::before,
.formacoes-shop-page ul.products::after,
.formacoes-shop-page .woocommerce::before,
.formacoes-shop-page .woocommerce::after,
.formacoes-shop-page #primary::before,
.formacoes-shop-page #primary::after,
.formacoes-shop-page .content-area::before,
.formacoes-shop-page .content-area::after,
.formacoes-shop-page .site-main::before,
.formacoes-shop-page .site-main::after { display: none !important; content: none !important; }
/* Override WooCommerce columns-4 (and any columns-N): use our grid, not WC floats/widths */
.formacoes-shop-page ul.products.columns-2,
.formacoes-shop-page ul.products.columns-3,
.formacoes-shop-page ul.products.columns-4,
.formacoes-shop-page ul.products.columns-5,
.formacoes-shop-page ul.products.columns-6 { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; gap: 24px !important; width: 100% !important; min-width: 0; box-sizing: border-box; }
.formacoes-shop-page ul.products li.product { float: none !important; width: auto !important; min-width: 260px; margin: 0 !important; }
.formacoes-shop-page .woocommerce-breadcrumb { display: none; }
.formacoes-shop-page .page-title { color: #333; font-size: 1.75em; text-align: left; margin: 0 0 0.75em; font-weight: 700; }
.formacoes-shop-page .woocommerce-result-count,
.formacoes-shop-page .woocommerce-ordering { color: #666; font-size: 14px; margin-bottom: 1.5rem; }
.formacoes-shop-page .woocommerce-ordering { margin-top: 0.25rem; }
.formacoes-shop-page .woocommerce-notices-wrapper { margin-bottom: 1.5rem; }
.formacoes-shop-page ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; list-style: none; margin: 0 0 2rem; padding: 0; border: 0; justify-content: start; }
.formacoes-shop-page ul.products li.product { background: #f5f5f5; border-radius: 4px; overflow: hidden; border: 1px solid #eee; margin: 0; padding: 0; transition: border-color 0.25s; }
.formacoes-shop-page ul.products li.product:hover { border-color: #ffba05; }
.formacoes-shop-page ul.products li.product a { text-decoration: none; color: inherit; display: block; }
.formacoes-shop-page ul.products li.product .woocommerce-loop-product__link { display: block; }
.formacoes-shop-page ul.products li.product img { width: 100%; height: 180px; object-fit: cover; display: block; }
.formacoes-shop-page ul.products li.product .woocommerce-loop-category__title,
.formacoes-shop-page ul.products li.product .woocommerce-loop-product__title { color: #333; font-size: 1.1em; margin: 0; padding: 16px 16px 0.35em; font-weight: bold; line-height: 1.3; }
.formacoes-shop-page ul.products li.product .price { color: #ffba05; font-weight: bold; padding: 0 16px 16px; margin: 0; font-size: 1em; }
.formacoes-shop-page ul.products li.product .price del { color: #999; font-weight: 400; }
.formacoes-shop-page ul.products li.product .button { display: inline-block; margin: 0 16px 16px; background: #ffba05; color: #1a1a1a; padding: 10px 20px; border-radius: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; transition: transform 0.2s; }
.formacoes-shop-page ul.products li.product .button:hover { background: #ffba05; color: #1a1a1a; transform: translateY(-1px); }
.formacoes-shop-page .woocommerce-pagination { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
.formacoes-shop-page .woocommerce-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-start; }
.formacoes-shop-page .woocommerce-pagination ul li { margin: 0; }
.formacoes-shop-page .woocommerce-pagination a,
.formacoes-shop-page .woocommerce-pagination span { display: inline-block; padding: 8px 14px; border-radius: 6px; color: #333; text-decoration: none; border: 1px solid #eee; transition: border-color 0.2s, background 0.2s; }
.formacoes-shop-page .woocommerce-pagination a:hover { border-color: #ffba05; background: rgba(255,186,5,0.08); }
.formacoes-shop-page .woocommerce-pagination .current { border-color: #ffba05; background: rgba(255,186,5,0.15); font-weight: 700; }
.formacoes-shop-page .woocommerce-info,
.formacoes-shop-page .woocommerce-no-products-found { color: #666; text-align: center; padding: 2rem; }
.formacoes-shop-page .widget { margin-bottom: 2rem; }
.formacoes-shop-page .woocommerce-sidebar { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #eee; }

/* Single product page – consistent with theme; no sidebar, no breadcrumb */
.single-product-page { max-width: 1200px; margin: 0 auto; padding: 32px 0 0; box-sizing: border-box; width: 100%; }
.single-product-page .woocommerce { margin: 0; padding: 0; width: 100%; }
.single-product-page #primary,
.single-product-page .content-area,
.single-product-page .site-main,
.single-product-page #main { width: 100% !important; max-width: none !important; padding: 0; }
.single-product-page .woocommerce-breadcrumb { display: none; }
.single-product-page .woocommerce::before,
.single-product-page .woocommerce::after,
.single-product-page #primary::before,
.single-product-page #primary::after,
.single-product-page .content-area::before,
.single-product-page .content-area::after,
.single-product-page .site-main::before,
.single-product-page .site-main::after { display: none !important; content: none !important; }

.single-product-page .product { margin-bottom: 2rem; }
.single-product-page .product .product_title { color: #333; font-size: 1.75em; font-weight: 700; margin: 0 0 0.35em; line-height: 1.2; }
.single-product-page .product .price { color: #ffba05; font-weight: 700; font-size: 1.25em; margin: 0 0 1rem; }
.single-product-page .product .price .woocommerce-Price-amount,
.single-product-page .product .price .woocommerce-Price-amount .woocommerce-Price-currencySymbol { color: #ffba05 !important; }
.single-product-page .product .price del { color: #999; font-weight: 400; }
.single-product-page .product .woocommerce-product-details__short-description,
.single-product-page .product .summary .woocommerce-product-details__short-description { color: #555; line-height: 1.6; margin: 0 0 1.25rem; }
.single-product-page .product .single_add_to_cart_button,
.single-product-page .product .button.alt { background: #ffba05; color: #1a1a1a; padding: 14px 32px; border-radius: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border: 0; transition: transform 0.2s, color 0.2s; }
.single-product-page .product .single_add_to_cart_button:hover,
.single-product-page .product .button.alt:hover { background: #ffba05; color: #1a1a1a; transform: translateY(-2px); }

.single-product-page .woocommerce-product-gallery { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.single-product-page .woocommerce-product-gallery__image img { border-radius: 12px; }

.single-product-page .woocommerce-tabs { margin-top: 2rem; padding-top: 1.5rem; border-top: 0; }
.single-product-page .woocommerce-tabs .tabs { list-style: none; margin: 0 0 1rem; padding: 0; border: 0; }
.single-product-page .woocommerce-tabs .tabs li { display: inline-block; margin: 0 1rem 0 0; }
.single-product-page .woocommerce-tabs .tabs li a { color: #666; font-weight: 700; }
.single-product-page .woocommerce-tabs .tabs li.active a { color: #ffba05; }
.single-product-page .woocommerce-tabs .panel { color: #555; line-height: 1.6; }
.single-product-page .woocommerce-Tabs-panel--description h2 { display: none; }

/* Event Tickets Manager: keep ticket type boxes 100% within theme */
.single-product-page .wps_etmfw_product_wrapper { max-width: 100%; width: 100%; box-sizing: border-box; }
.single-product-page .wps_etmfw_user_type_list { max-width: 100%; width: 100%; box-sizing: border-box; }
.single-product-page .wps_etmfw_user_type_row { max-width: 100%; box-sizing: border-box; }
.single-product-page .product-type-event_ticket_manager form.cart { max-width: 100%; box-sizing: border-box; }
.single-product-page .wps_etmfw_event_info_section { max-width: 100%; }
.single-product-page .wps_etmfw_addition_info_section { max-width: 100%; }

/* Event Tickets Manager: ticket type list styling (theme match) */
.single-product-page .wps_user_type_label { margin-top: 20px; margin-bottom: 12px; }
.single-product-page .wps_etmfw_user_type_list { display: grid; gap: 12px; margin: 0 0 1rem; }
.single-product-page .wps_etmfw_user_type_row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 16px;
	background: #f5f5f5;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 14px 18px;
	transition: border-color 0.25s;
}
.single-product-page .wps_etmfw_user_type_row:hover { border-color: #ffba05; }
.single-product-page .wps_etmfw_user_type_name { color: #333; font-size: 1.05em; font-weight: 700; margin: 0; }
.single-product-page .wps_etmfw_user_type_price { color: #ffba05; font-weight: 700; font-size: 1.1em; white-space: nowrap; }
.single-product-page .wps_etmfw_user_type_price .woocommerce-Price-amount { color: inherit; }
.single-product-page .wps-etmfw-user-type-qty {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.single-product-page .wps-etmfw-user-type-qty .qty {
	width: 52px;
	min-height: 36px;
	padding: 6px 8px;
	text-align: center;
	border: 1px solid #eee;
	border-radius: 6px;
	font-size: 1em;
	background: #fff;
	box-sizing: border-box;
}
.single-product-page .wps-etmfw-user-type-qty .minus,
.single-product-page .wps-etmfw-user-type-qty .plus {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: #ffba05;
	color: #1a1a1a;
	font-size: 1.1em;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s, opacity 0.2s;
}
.single-product-page .wps-etmfw-user-type-qty .minus:hover,
.single-product-page .wps-etmfw-user-type-qty .plus:hover { opacity: 0.9; transform: translateY(-1px); }
@media screen and (max-width: 580px) {
	.single-product-page .wps_etmfw_user_type_row { grid-template-columns: 1fr; justify-items: start; gap: 10px; }
}

.single-product-page .related.products h2,
.single-product-page .upsells.products h2 { color: #333; font-size: 1.5em; margin: 0 0 1rem; font-weight: 700; }
.single-product-page ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; gap: 24px; list-style: none; margin: 0 0 2rem; padding: 0; border: 0; }
.single-product-page ul.products::before,
.single-product-page ul.products::after { display: none !important; content: none !important; }
.single-product-page ul.products li.product { float: none !important; width: auto !important; background: #f5f5f5; border-radius: 4px; overflow: hidden; border: 1px solid #eee; margin: 0; padding: 0; transition: border-color 0.25s; }
.single-product-page ul.products li.product:hover { border-color: #ffba05; }
.single-product-page ul.products li.product .woocommerce-loop-product__title { color: #333; font-size: 1.1em; margin: 0; padding: 16px 16px 0.35em; font-weight: 700; }
.single-product-page ul.products li.product .price { color: #ffba05; font-weight: 700; padding: 0 16px 16px; margin: 0; }
.single-product-page ul.products li.product .button { background: #ffba05; color: #1a1a1a; padding: 10px 20px; border-radius: 6px; font-weight: 700; text-transform: uppercase; margin: 0 16px 16px; transition: transform 0.2s; }
.single-product-page ul.products li.product .button:hover { background: #ffba05; color: #1a1a1a; transform: translateY(-1px); }
.single-product-page ul.products.columns-2,
.single-product-page ul.products.columns-3,
.single-product-page ul.products.columns-4 { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; }

/* 404 page – inspirado no tema-lasermaq; mesma linguagem visual (hero escuro, CTAs) */
.page-404 { max-width: 1200px; margin: 0 auto; padding: 0; box-sizing: border-box; width: 100%; }
.error-404-inner { min-height: 420px; background: linear-gradient(165deg, #454545 0%, #3d3d3d 100%); box-shadow: 0 4px 20px rgba(0,0,0,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 3rem 5%; margin: 2rem 5% 4rem; }
.error-404-content { text-align: center; max-width: 32em; }
.error-404-title { color: #fff; font-size: 1.75em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.5em; }
.error-404-text { color: rgba(255,255,255,0.88); font-size: 1.06em; line-height: 1.6; margin: 0 0 1.75em; }
.error-404-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.error-404-btn { display: inline-block; background-color: #ffba05; color: #1a1a1a; padding: 14px 32px; border-radius: 6px; text-decoration: none; text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; transition: transform 0.2s, color 0.2s; }
.error-404-btn:hover { color: #1a1a1a; transform: translateY(-2px); }
@media screen and (max-width: 768px) {
	.error-404-inner { min-height: 320px; padding: 2rem 5%; margin: 1.5rem 5% 3rem; }
	.error-404-title { font-size: 1.5em; }
	.error-404-actions { flex-direction: column; align-items: center; }
	.error-404-btn { width: 100%; max-width: 280px; text-align: center; box-sizing: border-box; }
}

/* Page template (e.g. cart) – full content, spacing from header */
.page-content { max-width: 1200px; margin: 0 auto; padding: 0; box-sizing: border-box; width: 100%; color: #333; }
.page-content .page-title { color: #333; font-size: 1.75em; font-weight: 700; margin: 0 0 0.5em; line-height: 1.2; }
.page-content .entry-content { line-height: 1.6; }

/* Cart page (/carrinho) – theme-matched styling */
.carrinho-page .woocommerce { margin: 0; padding: 0; width: 100%; }
.carrinho-page .woocommerce-breadcrumb { display: none; }
.carrinho-page .woocommerce-cart-form .button,
.carrinho-page .woocommerce a.button:not(.checkout-button),
.carrinho-page .woocommerce button.button { background: #ffba05; color: #1a1a1a; border: 0; padding: 12px 24px; border-radius: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; transition: transform 0.2s; }
.carrinho-page .woocommerce-cart-form .button:hover,
.carrinho-page .woocommerce a.button:not(.checkout-button):hover,
.carrinho-page .woocommerce button.button:hover { background: #ffba05; color: #1a1a1a; transform: translateY(-2px); }
.carrinho-page .cart_totals .checkout-button,
.carrinho-page .cart_totals a.checkout-button { display: block; width: 100%; padding: 18px 32px; font-size: 1.15em; text-align: center; background: #ffba05 !important; color: #1a1a1a !important; border: 0; border-radius: 8px; font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.05em; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 14px rgba(255, 186, 5, 0.4); }
.carrinho-page .cart_totals .checkout-button:hover,
.carrinho-page .cart_totals a.checkout-button:hover { background: #ffba05 !important; color: #1a1a1a !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 186, 5, 0.5); }
.carrinho-page .cart_totals .order-total .amount { color: #ffba05; font-weight: 700; }
.carrinho-page .woocommerce-info,
.carrinho-page .woocommerce-message,
.carrinho-page .woocommerce-error { margin-bottom: 1.5rem; border-radius: 4px; padding: 1em 1.5em; }
.carrinho-page .cart_totals { margin-top: 2rem; }
.carrinho-page table.shop_table { border: 1px solid #eee; border-radius: 8px; }
.carrinho-page table.shop_table th { color: #333; font-weight: 700; }
.carrinho-page table.shop_table .product-name a { color: #333; }
.carrinho-page table.shop_table .product-price .amount { color: #ffba05; font-weight: 700; }

/* Cart block: "Finalizar compras" button – theme yellow + black text */
.wc-block-cart__submit-button,
a.wc-block-cart__submit-button.wc-block-components-button {
	background: #ffba05 !important;
	color: #1a1a1a !important;
	border: 0 !important;
	border-radius: 8px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: transform 0.2s, box-shadow 0.2s;
}
.wc-block-cart__submit-button:hover,
a.wc-block-cart__submit-button.wc-block-components-button:hover {
	background: #ffba05 !important;
	color: #1a1a1a !important;
	transform: translateY(-2px);
}
.wc-block-cart__submit-button .wc-block-components-button__text { color: #1a1a1a !important; }

/* Checkout block: "Finalizar encomenda" button – theme yellow + black text */
.wc-block-components-checkout-place-order-button,
button.wc-block-components-checkout-place-order-button.wc-block-components-button {
	background: #ffba05 !important;
	color: #1a1a1a !important;
	border: 0 !important;
	border-radius: 8px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: transform 0.2s, box-shadow 0.2s;
}
.wc-block-components-checkout-place-order-button:hover,
button.wc-block-components-checkout-place-order-button.wc-block-components-button:hover {
	background: #ffba05 !important;
	color: #1a1a1a !important;
	transform: translateY(-2px);
}
.wc-block-components-checkout-place-order-button .wc-block-components-button__text,
.wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text { color: #1a1a1a !important; }

/* Cart/checkout: hide image in product metadata block (event details) */
.wc-block-components-product-metadata__description img { display: none !important; }

/* Responsive: fix header + hero stack on small screens */
@media screen and (max-width: 1000px) {
	#pre-header > .w, #header > .w { min-width: auto; width: 95%; }
	#but-not-header { height: 140px; }
	#main-menu { left: 180px; font-size: 12px; }
	#main-menu > div > ul > li > a { padding: 0 12px; }
	.formacoes-hero { min-height: auto; }
	.formacoes-hero .hero-inner { flex-direction: column; min-height: auto; gap: 2rem; align-items: center; text-align: center; }
	.formacoes-hero .hero-content { max-width: none; align-items: center; }
	.formacoes-hero .hero-media { flex: none; max-width: none; width: 100%; height: auto; justify-content: center; order: -1; }
	.formacoes-hero .hero-cta { align-self: center; }
	.formacoes-hero .hero-desc { margin-left: auto; margin-right: auto; }
	.formacoes-hero .hero-image-wrap { max-width: 100%; max-height: 360px; margin: 0 auto; }
	.formacoes-shop-page { padding: 32px 5% 60px; }
	.formacoes-shop-page ul.products { grid-template-columns: 1fr; gap: 20px; }
	.single-product-page { padding: 0; }
	.single-product-page ul.products { grid-template-columns: 1fr !important; }
	.page-content { padding: 0; }
}

/* Mobile: remove desktop min-width so viewport is fluid */
@media screen and (max-width: 959px) {
	html, body { min-width: 0; }
	#pre-header > .w,
	#header > .w,
	#footer > .w { min-width: 0; width: 95%; max-width: none; }
}

/* Mobile header + hamburger menu (tablet and phone) */
@media screen and (max-width: 768px) {
	/* Pre-header: hide yellow bar on small screens */
	#pre-header { display: none; }

	/* Spacer: only header height (56px) */
	#but-not-header { height: 56px; }

	/* Header: full width from top, logo strictly inside and vertically centered + hamburger */
	#header { height: 56px; line-height: 56px; top: 0; overflow: hidden; }
	#header > .w { height: 56px; min-height: 56px; line-height: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; box-sizing: border-box; position: relative; }
	#header > .w > .l { position: relative; left: 0; margin: -55px 0 0; padding: 0; flex-shrink: 1; min-width: 0; height: 44px; max-height: 44px; width: auto; max-width: calc(100% - 60px); display: flex; align-items: center; overflow: hidden; line-height: 0; }
	#header > .w > .l > img { max-height: 44px !important; height: auto !important; width: auto !important; object-fit: contain; object-position: left center; display: block; vertical-align: middle; }

	/* Hamburger button: visible on mobile */
	.menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; z-index: 1210; }
	.menu-toggle .line { display: block; width: 24px; height: 2px; background: #000; border-radius: 1px; transition: transform 0.25s, opacity 0.25s; }
	.menu-toggle .line + .line { margin-top: 6px; }
	body.menu-open .menu-toggle .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	body.menu-open .menu-toggle .line:nth-child(2) { opacity: 0; }
	body.menu-open .menu-toggle .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

	/* Nav panel: when open, fixed below header so it’s always visible and full width */
	#main-nav { position: absolute; top: 100%; left: 0; right: 0; bottom: auto; width: 100%; min-height: 0; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.12); display: none; z-index: 1201; max-height: calc(100vh - 56px); overflow-y: auto; }
	body.menu-open #main-nav { display: block !important; visibility: visible !important; position: fixed !important; top: 56px !important; left: 0 !important; right: 0 !important; width: 100% !important; max-height: calc(100vh - 56px) !important; }
	body.menu-open { overflow: hidden; }

	/* Menu as vertical list with touch targets – override all desktop inline/height rules */
	#main-nav #main-menu { position: static; left: auto; right: auto; bottom: auto; top: auto; text-align: left; white-space: normal; padding: 0; font-size: 16px; }
	#main-nav #main-menu * { display: block !important; }
	#main-nav #main-menu > div { display: block !important; }
	#main-nav #main-menu > div > ul { display: block !important; padding: 0; margin: 0; list-style: none; }
	#main-nav #main-menu > div > ul > li { height: auto !important; min-height: 48px; display: block !important; border-bottom: 1px solid #eee; }
	#main-nav #main-menu > div > ul > li > a { height: auto !important; min-height: 48px; line-height: 1.3; padding: 14px 20px; display: flex !important; align-items: center; font-size: 16px; color: #000; text-decoration: none; }
	#main-nav #main-menu > div > ul > li > a > span { display: flex !important; align-items: center; }
	#main-nav #main-menu > div > ul > li > a > span.iconified { padding-left: 52px; position: relative; gap: 0; }
	#main-nav #main-menu > div > ul > li > a > span.iconified > img { position: absolute; left: 20px; top: 50%; margin-top: -12px; width: 24px; height: 24px; }

	/* Hero + content padding */
	.formacoes-hero .hero-inner { padding: 2rem 5% 2.5rem; }
	.formacoes-hero .hero-title { font-size: 1.75em; }
	.formacoes-list { padding: 24px 5% 60px; }
	.formacoes-shop-page { padding: 24px 5% 48px; }
	.single-product-page { padding: 24px 5% 48px; }
	.page-content { padding: 16px 5% 32px; }
	.carrinho-page { padding: 16px 5% 32px; }
	#footer > .w { padding: 20px 5% 24px; }

	/* Shop toolbar: stack result count and ordering */
	.formacoes-shop-page .woocommerce-result-count,
	.formacoes-shop-page .woocommerce-ordering { margin-bottom: 0.75rem; }
	.formacoes-shop-page .woocommerce-ordering { margin-top: 0; width: 100%; }
	.formacoes-shop-page .woocommerce-ordering select { width: 100%; max-width: 100%; }
}

/* Desktop: hide hamburger, ensure menu is inline */
@media screen and (min-width: 769px) {
	.menu-toggle { display: none !important; }
}

/* Small phone: extra compact pre-header, smaller hero title */
@media screen and (max-width: 480px) {
	#pre-header > .w > .t.l .s .t { font-size: 11px; }
	.formacoes-hero .hero-title { font-size: 1.5em; }
	.formacoes-hero .hero-inner { padding: 1.5rem 16px 2rem; }
	.formacoes-list { padding: 20px 16px 48px; }
	.formacoes-shop-page { padding: 20px 16px 40px; }
	.single-product-page { padding: 20px 16px 40px; }
	.page-content { padding: 12px 16px 24px; }
	.carrinho-page { padding: 12px 16px 24px; }
	#footer > .w { padding: 16px 16px 20px; font-size: 14px; }
}
