/*
Theme Name: Paraná Materiais de Construção
Theme URI: https://paranamateriais.com.br
Author: Equipe Paraná
Description: Tema WooCommerce 100% customizado para a Paraná Materiais de Construção — loja de materiais de construção com foco em entrega local (Itu/SP) e retirada em loja.
Version: 1.6.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parana-materiais
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =============================================================
   0. RESET & VARIÁVEIS
   ============================================================= */
:root {
	--navy: #041f40;
	--navy-2: #0b2c54;
	--navy-3: #14335e;
	--orange: #f2431d;
	--orange-dark: #d63413;
	--orange-tint: #fdece6;
	--gray-bg: #f5f6f7;
	--gray-border: #e3e6ea;
	--text: #1c2430;
	--text-muted: #667085;
	--white: #ffffff;
	--radius: 8px;
	--container: 1240px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	color: var(--text);
	background: var(--white);
	font-size: 16px;
	line-height: 1.5;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-weight: 800;
	line-height: 1.2;
	color: var(--navy);
}

p {
	margin: 0 0 1em;
}

button, input, select, textarea {
	font-family: inherit;
	font-size: inherit;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--orange);
	color: #fff;
	padding: 10px 16px;
	z-index: 10000;
}
.skip-link:focus {
	left: 10px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary {
	background: var(--orange);
	color: #fff;
}
.btn-primary:hover {
	background: var(--orange-dark);
	color: #fff;
	transform: translateY(-1px);
}
.btn-outline {
	background: transparent;
	border-color: rgba(255,255,255,0.7);
	color: #fff;
}
.btn-outline:hover {
	background: rgba(255,255,255,0.12);
	color: #fff;
}
.btn-whatsapp {
	background: var(--orange);
	color: #fff;
}
.btn-whatsapp:hover {
	background: var(--orange-dark);
	color: #fff;
}
.btn-block { width: 100%; }

/* =============================================================
   1. TOPO / HEADER
   ============================================================= */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--gray-border);
	position: sticky;
	top: 0;
	z-index: 500;
}

.header-top {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 16px 0;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}
.site-logo img { max-height: 46px; width: auto; }
.site-logo .logo-mark {
	width: 42px;
	height: 42px;
	border-radius: 6px;
	background: var(--navy);
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
}
.site-logo .logo-mark::before,
.site-logo .logo-mark::after {
	content: "";
	position: absolute;
}
.site-logo .logo-mark::before {
	width: 20px; height: 20px;
	background: var(--orange);
	top: 0; right: 0;
}
.site-logo .logo-mark::after {
	width: 20px; height: 20px;
	background: #fff;
	bottom: 0; left: 0;
	border-radius: 0 6px 0 0;
}
.site-logo .logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}
.site-logo .logo-text strong {
	font-size: 20px;
	font-weight: 900;
	color: var(--navy);
	letter-spacing: 0.01em;
}
.site-logo .logo-text span {
	font-size: 10px;
	font-weight: 700;
	color: var(--text-muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.header-search {
	flex: 1 1 auto;
	max-width: 620px;
}
.header-search form {
	display: flex;
	border: 1.5px solid var(--gray-border);
	border-radius: 6px;
	overflow: hidden;
}
.header-search input[type="search"] {
	flex: 1;
	border: 0;
	padding: 12px 16px;
	font-size: 14px;
	outline: none;
}
.header-search button {
	background: var(--orange);
	border: 0;
	color: #fff;
	width: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.header-search button:hover { background: var(--orange-dark); }

.header-actions {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-shrink: 0;
	margin-left: auto;
}
.header-actions .action-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
	white-space: nowrap;
}
.header-actions .action-item .icon {
	color: var(--navy);
	flex-shrink: 0;
}
.header-actions .action-item small {
	display: block;
	font-weight: 400;
	color: var(--text-muted);
	font-size: 11px;
}
.cart-count {
	background: var(--orange);
	color: #fff;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	min-width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	margin-left: 2px;
}

/* Nav bar */
.main-nav {
	background: var(--navy);
}
.main-nav .nav-inner {
	display: flex;
	align-items: stretch;
}

.menu-home-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 48px;
	flex: 0 0 50px;
	color: #fff;
	border-radius: 0;
	transition: background .15s ease, color .15s ease;
}
.menu-home-link:hover {
	background: var(--navy-3);
	color: var(--orange);
}
.menu-home-link.is-active {
	color: var(--orange);
	box-shadow: inset 0 -3px 0 var(--orange);
}

/* No desktop, o item textual "Início" do menu é substituído pelo botão de casa. */
@media (min-width: 881px) {
	.primary-menu > li.menu-item-home {
		display: none !important;
	}
}
.primary-menu {
	display: flex;
	flex: 1;
	align-items: stretch;
	flex-wrap: wrap;
}
.primary-menu li a {
	display: flex;
	align-items: center;
	height: 48px;
	padding: 0 18px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	transition: background .15s ease;
}
.primary-menu li a:hover,
.primary-menu li.current-menu-item a {
	background: var(--navy-3);
	color: var(--orange);
}

.mobile-menu-toggle,
.mobile-search-toggle {
	display: none;
}

/* =============================================================
   2. HERO
   ============================================================= */
.hero {
	position: relative;
	background: var(--navy);
	overflow: hidden;
}
.hero .container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 40px;
	position: relative;
	z-index: 2;
	isolation: isolate;
	padding-top: 56px;
	padding-bottom: 56px;
}
.hero-shapes {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 220px;
	z-index: 1;
	pointer-events: none;
	opacity: 0.9;
}
.hero-shapes span {
	position: absolute;
	display: block;
}
.hero-shapes .s1 { width: 90px; height: 90px; background: var(--orange); top: 8%; left: -30px; }
.hero-shapes .s2 { width: 60px; height: 60px; background: #fff; top: 38%; left: 30px; }
.hero-shapes .s3 { width: 70px; height: 70px; background: var(--navy-3); top: 60%; left: -10px; }
.hero-shapes .s4 { width: 40px; height: 40px; background: var(--orange); bottom: 6%; left: 60px; }

.hero-copy { position: relative; z-index: 20; pointer-events: auto; }
.hero-copy h1 {
	color: #fff;
	font-size: 40px;
	line-height: 1.15;
	margin-bottom: 18px;
}
.hero-copy p {
	color: rgba(255,255,255,0.82);
	font-size: 16px;
	max-width: 440px;
	margin-bottom: 26px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 30; pointer-events: auto !important; }

.hero-media {
	position: relative;
	z-index: 1;
	pointer-events: none !important;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 16/10.5;
}
.hero-media svg { width: 100%; height: 100%; display: block; }
.hero-media,
.hero-media *,
.hero-media::before,
.hero-media::after {
	pointer-events: none !important;
}

.hero-actions .btn,
.hero-actions a,
.hero-budget-button {
	position: relative !important;
	z-index: 100 !important;
	pointer-events: auto !important;
	cursor: pointer !important;
}

.hero-budget-button {
	touch-action: manipulation;
}


/* =============================================================
   3. BARRA DE BENEFÍCIOS
   ============================================================= */
.benefits-bar {
	background: #fff;
	border-bottom: 1px solid var(--gray-border);
}
.benefits-bar .container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	padding-top: 26px;
	padding-bottom: 26px;
}
.benefit-item {
	display: flex;
	align-items: center;
	gap: 12px;
}
.benefit-item .icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--orange-tint);
	color: var(--orange);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.benefit-item strong {
	display: block;
	font-size: 14px;
	color: var(--navy);
}
.benefit-item span {
	display: block;
	font-size: 12.5px;
	color: var(--text-muted);
}

/* =============================================================
   4. SEÇÕES GERAIS
   ============================================================= */
.section { padding: 48px 0; }
.section-alt { background: var(--gray-bg); }
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 24px;
	gap: 16px;
}
.section-head h2 {
	font-size: 24px;
	text-transform: uppercase;
	margin-bottom: 0;
}
.section-head a,
.section-head .category-toggle {
	font-size: 13px;
	font-weight: 700;
	color: var(--orange);
	white-space: nowrap;
}
.section-head .category-toggle {
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
}
.section-head .category-toggle:hover,
.section-head .category-toggle:focus-visible {
	text-decoration: underline;
}
.category-card[hidden] {
	display: none !important;
}

/* Categorias */
.category-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px;
}
.category-card {
	background: #fff;
	border: 1px solid var(--gray-border);
	border-radius: 16px;
	padding: 0;
	min-height: 250px;
	text-align: center;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.category-card:hover {
	box-shadow: 0 14px 32px rgba(4,31,64,0.12);
	transform: translateY(-5px);
	border-color: var(--orange);
}
.category-card .cat-icon {
	width: 100%;
	height: 155px;
	margin: 0;
	border-radius: 0;
	background: var(--gray-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--navy);
	overflow: hidden;
}
.category-card .cat-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	display: block;
	transition: transform .35s ease;
}
.category-card:hover .cat-icon img {
	transform: scale(1.06);
}
.category-card span {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--navy);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	width: 100%;
	padding: 18px 15px;
	margin: 0;
	text-align: center;
}

/* Produtos */
.product-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
}
.product-card {
	background: #fff;
	border: 1px solid var(--gray-border);
	border-radius: var(--radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover {
	box-shadow: 0 10px 24px rgba(4,31,64,0.09);
	transform: translateY(-2px);
}
.product-card .product-thumb {
	aspect-ratio: 1/1;
	background: var(--gray-bg);
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.product-card .product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .product-cat {
	font-size: 10.5px;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--orange);
	letter-spacing: .04em;
	margin-bottom: 4px;
}
.product-card .product-title {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--navy);
	margin-bottom: 6px;
	min-height: 34px;
}
.product-card .stars {
	color: #f5a623;
	font-size: 12px;
	margin-bottom: 8px;
	letter-spacing: 1px;
}
.product-card .price {
	font-size: 16px;
	font-weight: 800;
	color: var(--navy);
	margin-bottom: 12px;
}
.product-card .price .unit {
	font-size: 11px;
	font-weight: 500;
	color: var(--text-muted);
	display: block;
}
.product-card .btn { margin-top: auto; padding: 10px 12px; font-size: 12px; }
.product-card form.cart { margin: auto 0 0; }
.product-card form.cart button { width: 100%; }

/* WhatsApp CTA */
.whatsapp-cta {
	background: var(--navy);
	color: #fff;
}
.whatsapp-cta .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 30px;
	padding-bottom: 30px;
	flex-wrap: wrap;
}
.whatsapp-cta .cta-text {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.whatsapp-cta h3 {
	color: #fff;
	font-size: 18px;
	margin-bottom: 4px;
	text-transform: uppercase;
}
.whatsapp-cta p {
	color: rgba(255,255,255,0.75);
	margin-bottom: 0;
	font-size: 14px;
}

/* =============================================================
   5. FOOTER
   ============================================================= */
.site-footer {
	background: #011021;
	color: rgba(255,255,255,0.75);
	font-size: 13px;
}
.footer-main {
	padding: 40px 0;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 30px;
}
.footer-col h4 {
	color: #fff;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo strong { color: #fff; font-size: 17px; font-weight: 900; }
.footer-social {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}
.footer-social a {
	width: 34px; height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	display: flex;
	align-items: center;
	justify-content: center;
}
.footer-social a:hover { background: var(--orange); }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding: 18px 0;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 12px;
	color: rgba(255,255,255,0.55);
}

/* =============================================================
   6. WOOCOMMERCE — ajustes gerais
   ============================================================= */
.woocommerce-page .site-main,
.page-content-wrap {
	padding: 40px 0 60px;
}
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 20px;
	margin: 0 !important;
	padding: 0 !important;
}
.woocommerce ul.products li.product {
	background: #fff;
	border: 1px solid var(--gray-border);
	border-radius: var(--radius);
	padding: 16px !important;
	list-style: none;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	clear: none !important;
}
.woocommerce ul.products li.product a {
	display: block;
}
.woocommerce ul.products li.product img {
	border-radius: 6px;
	margin-bottom: 10px !important;
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 14px;
	color: var(--navy);
}
.woocommerce ul.products li.product .price { color: var(--navy); font-weight: 800; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce .single_add_to_cart_button {
	background: var(--orange) !important;
	color: #fff !important;
	border-radius: 6px;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 12.5px;
	padding: 11px 18px;
	border: 0;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
	background: var(--orange-dark) !important;
	color: #fff !important;
}
.woocommerce span.onsale {
	background: var(--orange);
	top: 10px; left: 10px;
	min-height: auto;
	padding: 4px 9px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 800;
}
.woocommerce nav.woocommerce-breadcrumb {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 24px;
}
.woocommerce nav.woocommerce-breadcrumb a { color: var(--navy); }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: 100%; }
.woocommerce div.product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}
.woocommerce #respond input#submit, .woocommerce a.button.alt {
	background: var(--orange);
}
.page-title-bar {
	background: var(--gray-bg);
	border-bottom: 1px solid var(--gray-border);
	padding: 22px 0;
	margin-bottom: 0;
}
.page-title-bar h1 {
	font-size: 24px;
	margin: 0;
	text-transform: uppercase;
}

/* =============================================================
   7. RESPONSIVO
   ============================================================= */
@media (max-width: 1024px) {
	.category-grid { grid-template-columns: repeat(3, 1fr); }
	.category-card { min-height: 225px; }
	.category-card .cat-icon { height: 140px; }
	.product-grid { grid-template-columns: repeat(3, 1fr); }
	.woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
	.footer-main { grid-template-columns: 1fr 1fr; }
	.hero-copy h1 { font-size: 32px; }
}

@media (max-width: 880px) {
	.menu-home-link { display: none; }
	.header-top { flex-wrap: wrap; padding: 12px 0; }
	.site-logo { order: 1; }
	.mobile-menu-toggle {
		order: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 36px; height: 36px;
		border: 0; background: transparent; color: var(--navy); cursor: pointer;
	}
	.header-actions { order: 2; margin-left: auto; gap: 14px; }
	.header-actions .action-item span.label,
	.header-actions .action-item small { display: none; }
	.header-search { order: 3; max-width: 100%; flex-basis: 100%; margin-top: 10px; }
	.main-nav .nav-inner { flex-wrap: wrap; }
	.primary-menu {
		display: none;
		flex-direction: column;
		width: 100%;
		background: var(--navy-2);
	}
	.primary-menu.is-open { display: flex; }
	.primary-menu li a { height: auto; padding: 12px 20px; border-top: 1px solid rgba(255,255,255,0.08); }

	.hero .container { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; }
	.hero-media { order: -1; }
	.hero-copy h1 { font-size: 26px; }
	.hero-shapes { display: none; }

	.benefits-bar .container { grid-template-columns: 1fr 1fr; }
	.category-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
	.category-card { min-height: 220px; }
	.category-card .cat-icon { height: 135px; }
	.product-grid { grid-template-columns: repeat(2, 1fr); }
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
	.footer-main { grid-template-columns: 1fr; padding: 30px 0; }
	.whatsapp-cta .container { flex-direction: column; align-items: flex-start; }
	.woocommerce div.product { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.category-card { min-height: 200px; border-radius: 12px; }
	.category-card .cat-icon { height: 125px; }
	.category-card span { padding: 14px 10px; font-size: 13px; }
	.benefits-bar .container { grid-template-columns: 1fr; gap: 16px; }
	.category-grid { grid-template-columns: repeat(2, 1fr); }
	.product-grid { grid-template-columns: repeat(2, 1fr); }
	.hero-actions .btn { flex: 1; }
}

/* WhatsApp float button */
.whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0,0,0,0.22);
	z-index: 400;
	transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); color: #fff; }

/* Página 404 / conteúdo simples */
.page-content-wrap .entry-content { max-width: 820px; }
.not-found-box { text-align: center; padding: 60px 0; }

/* =============================================================
   8. MINHA CONTA — estrutura limpa
   ============================================================= */
.page-main-container {
	padding-top: 40px;
	padding-bottom: 40px;
}

.entry-content {
	max-width: 820px;
}

.entry-content--wide,
.woocommerce-account .entry-content {
	max-width: none;
	width: 100%;
}

.woocommerce-account .site-main {
	padding-top: 0;
}

.woocommerce-account .page-main-container {
	padding-top: 36px;
	padding-bottom: 64px;
}

/* Base WooCommerce account layout. Endpoints use sidebar + content. */
.woocommerce-account .entry-content > .woocommerce {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
}

.woocommerce-account .entry-content > .woocommerce::before,
.woocommerce-account .entry-content > .woocommerce::after {
	content: none !important;
	display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	grid-column: 1;
	position: sticky;
	top: 112px;
}

.woocommerce-account .woocommerce-MyAccount-content {
	grid-column: 2;
}

/* Dashboard inicial: uma única coluna. Não reserva espaço para a sidebar oculta. */
.parana-account-dashboard-home .entry-content > .woocommerce {
	display: block;
	max-width: 1180px;
}

.parana-account-dashboard-home .woocommerce-MyAccount-navigation {
	display: none !important;
}

.parana-account-dashboard-home .woocommerce-MyAccount-content {
	display: block;
	width: 100% !important;
	max-width: none !important;
}

/* Navegação dos endpoints */
.parana-account-nav {
	border: 1px solid var(--gray-border);
	border-radius: 12px;
	background: #fff;
	padding: 10px;
	box-shadow: 0 8px 24px rgba(3, 34, 73, 0.05);
}

.parana-account-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.parana-account-nav li + li {
	margin-top: 3px;
}

.parana-account-nav li:last-child {
	border-top: 1px solid var(--gray-border);
	margin-top: 10px;
	padding-top: 10px;
}

.parana-account-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 9px 11px;
	border-radius: 8px;
	color: var(--navy);
	font-size: 14px;
	font-weight: 650;
	transition: background .18s ease, color .18s ease;
}

.parana-account-nav a:hover,
.parana-account-nav .is-active a {
	background: #fff0e8;
	color: var(--orange);
}

.parana-account-nav .is-active a {
	font-weight: 800;
}

.parana-account-nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	flex: 0 0 22px;
}

.parana-account-nav-label {
	flex: 1;
	min-width: 0;
}

.parana-account-nav-arrow {
	font-size: 20px;
	line-height: 1;
	opacity: .7;
}

/* Dashboard */
.parana-account-dashboard {
	width: 100%;
	min-width: 0;
}

.parana-account-welcome {
	margin-bottom: 18px;
	padding: 24px 26px;
	border: 1px solid #e8ebef;
	border-radius: 14px;
	background: linear-gradient(135deg, #f8fafc 0%, #ffffff 62%, #fff8f4 100%);
}

.parana-account-welcome h2 {
	margin: 0 0 7px;
	font-size: clamp(28px, 2.4vw, 36px);
	line-height: 1.12;
	color: var(--navy);
	font-weight: 900;
}

.parana-account-welcome p {
	max-width: 820px;
	margin: 0;
	color: var(--text-muted);
	font-size: 15px;
	line-height: 1.65;
}

/* Atalhos rápidos: compactos e horizontais no desktop. */
.parana-account-quick-panel {
	margin-bottom: 20px;
	padding: 12px;
	border: 1px solid var(--gray-border);
	border-radius: 12px;
	background: #fff;
}

.parana-account-quick-panel-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}

.parana-account-quick-link {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 44px;
	padding: 9px 10px;
	border: 1px solid var(--gray-border);
	border-radius: 9px;
	background: #fff;
	color: var(--navy);
	font-size: 13px;
	font-weight: 700;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.parana-account-quick-link:hover {
	background: #fffaf7;
	border-color: #ffd6c3;
	color: var(--orange);
}

.parana-account-quick-link.is-active {
	background: #fff0e8;
	border-color: #ffd1ba;
	color: var(--orange);
}

.parana-account-quick-link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	flex: 0 0 19px;
}

.parana-account-quick-link-label {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.parana-account-quick-link-arrow {
	font-size: 14px;
	line-height: 1;
	opacity: .6;
}

/* Cards principais */
.parana-account-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

.parana-account-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 270px;
	padding: 22px;
	border: 1px solid var(--gray-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(3, 34, 73, 0.04);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.parana-account-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(3, 34, 73, 0.08);
	border-color: #d8dde3;
}

.parana-account-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	margin-bottom: 16px;
	flex: 0 0 58px;
}

.parana-account-card--orders .parana-account-card-icon {
	background: #fff0e8;
	color: var(--orange);
}

.parana-account-card--addresses .parana-account-card-icon {
	background: #e9f5ff;
	color: #278de0;
}

.parana-account-card--account .parana-account-card-icon {
	background: #e8f8eb;
	color: #16a34a;
}

.parana-account-card h3 {
	margin: 0 0 9px;
	font-size: 20px;
	line-height: 1.2;
	color: var(--navy);
	font-weight: 900;
}

.parana-account-card p {
	margin: 0 0 20px;
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.55;
}

.parana-account-card-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 44px;
	margin-top: auto;
	padding: 9px 14px;
	border: 2px solid var(--orange);
	border-radius: 8px;
	color: var(--orange);
	font-size: 14px;
	font-weight: 800;
	text-align: center;
}

.parana-account-card--orders .parana-account-card-link,
.parana-account-card-link:hover {
	background: var(--orange);
	color: #fff;
}

.parana-account-card--orders .parana-account-card-link:hover {
	background: var(--orange-dark);
	border-color: var(--orange-dark);
}

.parana-account-help {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 18px;
	padding: 14px 16px;
	border: 1px solid var(--gray-border);
	border-radius: 12px;
	background: #fff;
}

.parana-account-help-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #f2f5f8;
	color: var(--navy);
	flex: 0 0 42px;
}

.parana-account-help-copy {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.parana-account-help-copy strong {
	color: var(--navy);
	font-size: 14px;
}

.parana-account-help-copy small {
	color: var(--text-muted);
}

.parana-account-help > a {
	margin-left: auto;
	color: var(--orange);
	font-weight: 800;
	white-space: nowrap;
}

/* Endpoints internos */
.woocommerce-account .woocommerce-MyAccount-content > h2,
.woocommerce-account .woocommerce-MyAccount-content > h3 {
	color: var(--navy);
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
	border: 1px solid var(--gray-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
	border: 1px solid var(--gray-border);
	border-radius: 12px;
	padding: 22px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(3, 34, 73, 0.035);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
	font-size: 18px;
}

@media (max-width: 1100px) {
	.woocommerce-account .entry-content > .woocommerce {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 24px;
	}

	.parana-account-quick-panel-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.parana-account-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.woocommerce-account .entry-content > .woocommerce {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content {
		grid-column: 1;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		position: static;
	}

	.parana-account-nav ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
	}

	.parana-account-nav li + li,
	.parana-account-nav li:last-child {
		margin-top: 0;
	}

	.parana-account-nav li:last-child {
		border-top: 0;
		padding-top: 0;
	}

	.parana-account-quick-panel-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.woocommerce-account .page-main-container {
		padding-top: 26px;
		padding-bottom: 44px;
	}

	.parana-account-nav {
		margin-bottom: 20px;
	}

	.parana-account-nav ul,
	.parana-account-quick-panel-grid,
	.parana-account-cards {
		grid-template-columns: 1fr;
	}

	.parana-account-welcome {
		padding: 20px;
	}

	.parana-account-welcome h2 {
		font-size: 27px;
	}

	.parana-account-card {
		min-height: 0;
		padding: 20px;
	}

	.parana-account-help {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.parana-account-help > a {
		width: 100%;
		margin-left: 56px;
	}
}

@media (max-width: 420px) {
	.parana-account-help > a {
		margin-left: 0;
	}
}

