/*
Theme Name: Polidoro's
Theme URI: https://polidoroscamisetas.com.br
Author: Polidoro's Camisetas
Description: Tema da loja Polidoro's — home 3D e estúdio de personalização (via plugin Polidoro's Studio), com WooCommerce no padrão da marca.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: polidoros
*/

:root {
	--pol-navy: #1c1475;
	--pol-deep: #0d093a;
	--pol-coral: #eb594f;
	--pol-green: #5aba87;
	--pol-paper: #f6f3ec;
	--pol-ink: #15123f;
	--pol-muted: #6b688a;
	--pol-line: rgba(21, 18, 63, 0.12);
}
body.pol {
	margin: 0;
	background: var(--pol-paper);
	color: var(--pol-ink);
	font: 400 16px/1.6 'Barlow', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}
body.pol *,
body.pol *::before,
body.pol *::after {
	box-sizing: border-box;
}
/* scoped to theme-rendered pages so the 3D home and the studio keep their own styles */
.pol-main a {
	color: var(--pol-navy);
}
.pol-main img {
	max-width: 100%;
	height: auto;
}
.pol-skip {
	position: absolute;
	left: -9999px;
}
.pol-skip:focus {
	left: 12px;
	top: 12px;
	z-index: 100;
	padding: 8px 14px;
	background: #fff;
}
.pol-wrap {
	width: min(1240px, calc(100vw - 48px));
	margin: 0 auto;
}

/* announce + header (same layout as the storefront home) */
.pol-announce {
	padding: 9px 16px;
	background: var(--pol-navy);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	letter-spacing: 0.03em;
}
.pol-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: #fff;
	box-shadow: 0 1px 0 var(--pol-line);
}
.admin-bar .pol-header {
	top: 32px;
}
.pol-header-main {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 78px;
}
.pol-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
	color: var(--pol-navy) !important;
	text-decoration: none;
}
.pol-logo-word {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.pol-logo-word .pol-tricolor {
	width: 78px;
	height: 3px;
	margin: 0;
}
.pol-search {
	flex: 1;
	max-width: 560px;
	display: flex;
	align-items: center;
	height: 46px;
	margin: 0 auto;
	border-radius: 8px;
	background: #f5f4f9;
	box-shadow: inset 0 0 0 1px var(--pol-line);
}
.pol-search:focus-within {
	background: #fff;
	box-shadow: inset 0 0 0 1.5px var(--pol-navy);
}
.pol-search input[type='search'] {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 16px;
	border: 0;
	background: none;
	font: inherit;
	color: var(--pol-ink);
	outline: none;
}
.pol-search button {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border: 0;
	background: none;
	color: var(--pol-navy);
	cursor: pointer;
}
.pol-tools {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: none;
}
.pol-tool {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-right: 12px;
	margin-right: 4px;
	border-right: 1px solid var(--pol-line);
	color: var(--pol-navy) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.pol-tool span {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.pol-tool small {
	font-size: 11px;
	font-weight: 400;
	color: var(--pol-muted);
}
.pol-icon {
	position: relative;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--pol-navy) !important;
}
.pol-icon:hover {
	background: #f5f4f9;
}
.pol-cart-count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--pol-coral);
	color: #fff;
	font: 600 10px/18px 'Barlow', sans-serif;
	text-align: center;
}
.pol-nav {
	border-top: 1px solid var(--pol-line);
}
.pol-nav ul {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 34px;
	height: 48px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pol-nav a {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pol-ink) !important;
	text-decoration: none;
	white-space: nowrap;
}
.pol-nav a:hover,
.pol-nav .current-menu-item > a {
	color: var(--pol-coral) !important;
}
.pol-nav .pol-hl > a {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--pol-coral);
	color: #fff !important;
}
.pol-btn,
body.pol .button,
body.pol button.button,
body.pol input.button,
body.pol .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 8px;
	background: var(--pol-coral);
	color: #fff !important;
	font: 600 15px/1 'Barlow', sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s;
}
.pol-btn:hover,
body.pol .button:hover {
	background: #d9473d;
}
.pol-nav-toggle,
.pol-burger {
	display: none;
}


/* pages */
.pol-page {
	padding: 56px 0 90px;
	min-height: 60vh;
}
.pol-page-title,
body.pol .woocommerce-products-header__title,
body.pol .product_title {
	margin: 0 0 24px;
	font-size: clamp(32px, 4vw, 56px);
	line-height: 1;
	letter-spacing: -0.035em;
	color: var(--pol-navy);
}
.pol-content {
	max-width: 760px;
	font-size: 17px;
	color: var(--pol-muted);
}
.woocommerce-cart .pol-content,
.woocommerce-checkout .pol-content,
.woocommerce-account .pol-content {
	max-width: none;
	font-size: 15px;
	color: var(--pol-ink);
}

/* woocommerce */
body.pol .woocommerce-breadcrumb {
	font-size: 13px;
	color: var(--pol-muted);
	margin-bottom: 18px;
}
body.pol ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px 22px;
	margin: 0;
	padding: 0;
}
body.pol ul.products::before,
body.pol ul.products::after {
	display: none !important;
}
body.pol ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	text-align: left;
}
body.pol ul.products li.product img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 22px;
	margin: 0 0 14px !important;
	transition: transform 0.6s;
}
body.pol ul.products li.product a:hover img {
	transform: scale(1.03);
}
body.pol ul.products li.product .woocommerce-loop-product__title {
	font-size: 19px !important;
	letter-spacing: -0.01em;
	color: var(--pol-ink);
	padding: 0 !important;
}
body.pol .price {
	color: var(--pol-navy) !important;
	font-weight: 600;
}
body.pol.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}
body.pol div.product .woocommerce-product-gallery,
body.pol div.product .summary {
	width: auto !important;
	float: none !important;
}
body.pol div.product .woocommerce-product-gallery img {
	border-radius: 24px;
}
body.pol .woocommerce a.button.alt,
body.pol .woocommerce button.button.alt,
body.pol a.button.alt.pol-customize {
	background: var(--pol-coral);
	color: #fff;
}
body.pol .pol-customize {
	min-height: 56px !important;
	padding: 0 30px !important;
	font-size: 16px !important;
	margin: 10px 0 6px;
}
body.pol .pol-customize-hint {
	color: var(--pol-muted);
	font-size: 14px;
}
body.pol div.product .woocommerce-tabs,
body.pol div.product .related {
	grid-column: 1 / -1;
}
body.pol table.shop_table {
	border-radius: 18px;
	border-color: var(--pol-line);
	background: #fff;
	overflow: hidden;
}
body.pol table.shop_table th,
body.pol table.shop_table td {
	border-color: var(--pol-line) !important;
	padding: 14px 16px !important;
}
body.pol .pol-cart-mockup {
	width: 110px !important;
	border-radius: 12px;
	background: #f1ede4;
}
body.pol .woocommerce-cart-form .product-thumbnail {
	width: 130px;
}
body.pol dl.variation {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 8px;
	font-size: 13px;
	color: var(--pol-muted);
	margin: 6px 0 0;
}
body.pol dl.variation dt,
body.pol dl.variation dd {
	margin: 0 !important;
	float: none !important;
}
body.pol dl.variation dd p {
	margin: 0;
}
body.pol .cart_totals,
body.pol .woocommerce-checkout-review-order,
body.pol #customer_details {
	background: #fff;
	border-radius: 22px;
	padding: 24px;
	box-shadow: 0 1px 0 var(--pol-line);
}
body.pol .woocommerce form .form-row input.input-text,
body.pol .woocommerce form .form-row textarea,
body.pol .woocommerce form .form-row select,
body.pol .select2-container .select2-selection--single {
	min-height: 46px;
	border: 1px solid var(--pol-line);
	border-radius: 12px;
	padding: 10px 14px;
	font: inherit;
	background: #fbfaf7;
}
body.pol .woocommerce-message,
body.pol .woocommerce-info {
	border-top-color: var(--pol-coral);
	border-radius: 14px;
	background: #fff;
}
body.pol .woocommerce-message::before,
body.pol .woocommerce-info::before {
	color: var(--pol-coral);
}
body.pol #payment {
	background: var(--pol-paper);
	border-radius: 16px;
}

/* footer */
.pol-footer {
	padding: 80px 0 28px;
	background: #080526;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
}
.pol-footer a {
	color: rgba(255, 255, 255, 0.75) !important;
	text-decoration: none;
	display: block;
	margin-bottom: 8px;
}
.pol-footer a:hover {
	color: #fff !important;
}
.pol-footer h4 {
	margin: 0 0 14px;
	font: 700 16px 'Barlow Condensed', sans-serif;
	letter-spacing: 0.14em;
	color: #fff;
}
.pol-footer-top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.3fr;
	gap: 40px;
}
.pol-footer-logo {
	display: inline-flex;
	gap: 14px;
	align-items: center;
	color: #fff;
}
.pol-tricolor {
	display: flex;
	width: 150px;
	height: 4px;
	margin-top: 14px;
}
.pol-tricolor i {
	flex: 1;
}
.pol-tricolor i:nth-child(1) {
	background: #009445;
}
.pol-tricolor i:nth-child(2) {
	background: #fff;
}
.pol-tricolor i:nth-child(3) {
	background: #e52619;
}
.pol-footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 60px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 12px;
}
.pol-whats {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 40;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #25d366;
	color: #fff !important;
	box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.7);
}

@media (max-width: 1100px) {
	.pol-tool {
		display: none;
	}
	.pol-nav ul {
		justify-content: flex-start;
		gap: 20px;
		overflow-x: auto;
	}
}
@media (max-width: 860px) {
	.pol-wrap {
		width: calc(100vw - 32px);
	}
	.pol-header-main {
		height: 64px;
		gap: 10px;
	}
	.pol-burger {
		display: flex;
		flex-direction: column;
		gap: 5px;
		width: 40px;
		height: 40px;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		flex: none;
	}
	.pol-burger span {
		width: 20px;
		height: 2px;
		background: var(--pol-navy);
	}
	.pol-logo-word {
		display: none;
	}
	.pol-nav {
		display: none;
	}
	.pol-nav-toggle:checked ~ .pol-nav {
		display: block;
	}
	.pol-nav ul {
		flex-direction: column;
		align-items: flex-start;
		height: auto;
		padding: 14px 0;
		gap: 14px;
	}
	body.pol ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
	body.pol.single-product div.product {
		grid-template-columns: minmax(0, 1fr);
	}
	.pol-footer-top {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	body.pol ul.products {
		grid-template-columns: 1fr;
	}
}

/* display type: condensed caps, echoing the Polidoro's wordmark */
.pol-page-title,
body.pol .woocommerce-products-header__title,
body.pol .product_title,
body.pol .cart_totals h2,
body.pol #order_review_heading,
body.pol .woocommerce-billing-fields h3,
body.pol .related > h2 {
	font-family: 'Barlow Condensed', 'Barlow', sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}
