/*
Theme Name: POUR ENFANTS Bricksy
Theme URI: https://www.pour-enfants.shop
Author: POUR ENFANTS
Description: Theme enfant Bricksy pour une boutique POUR ENFANTS administrable avec Gutenberg.
Template: bricksy
Version: 0.1.17
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pour-enfants-bricksy
*/

:root {
	--pe-black: #0b0b0b;
	--pe-white: #ffffff;
	--pe-soft: #f3f3f3;
	--pe-line: rgba(0, 0, 0, 0.08);
	--pe-muted: #525252;
	--pe-radius: 0.45rem;
	--pe-font-sans: "Outfit", "Outfit Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
	-webkit-font-smoothing: antialiased;
	background: var(--pe-white);
	color: var(--pe-black);
	font-family: var(--pe-font-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-rendering: optimizeLegibility;
}

body.pe-coming-soon-body {
	background: var(--pe-white);
}

.pe-coming-soon {
	align-items: center;
	background: var(--pe-white);
	box-sizing: border-box;
	display: flex;
	min-height: 100vh;
	padding: clamp(28px, 5vw, 64px) 18px;
}

body.admin-bar .pe-coming-soon {
	min-height: calc(100vh - 32px);
}

.pe-coming-soon__inner {
	margin: 0 auto;
	max-width: 520px;
	text-align: center;
	width: 100%;
}

.pe-coming-soon .wp-block-site-logo {
	margin-bottom: clamp(36px, 6vw, 58px);
}

.pe-coming-soon .wp-block-site-logo img,
.pe-coming-soon .custom-logo {
	height: auto;
	max-width: 132px;
	width: 132px;
}

.pe-coming-soon h1 {
	font-size: clamp(2rem, 1.65rem + 1.25vw, 2.65rem) !important;
	margin: 0;
}

.pe-coming-soon__copy {
	color: var(--pe-muted);
	font-size: 1rem;
	line-height: 1.7;
	margin: 18px auto 0;
	max-width: 420px;
}

.pe-newsletter-card {
	background: var(--pe-white);
	border: 1px solid var(--pe-line);
	border-radius: var(--pe-radius);
	box-shadow: 0 18px 50px rgba(11, 11, 11, 0.06);
	box-sizing: border-box;
	margin-top: clamp(30px, 5vw, 44px);
	padding: clamp(20px, 4vw, 30px);
	text-align: left;
}

.pe-newsletter-kicker {
	color: var(--pe-muted);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.pe-newsletter-card h2 {
	font-size: 1.22rem !important;
	letter-spacing: 0 !important;
	line-height: 1.25 !important;
	margin: 0 0 18px;
}

.pe-newsletter-form {
	display: grid;
	gap: 12px;
}

.pe-newsletter-field {
	display: grid;
	gap: 8px;
}

.pe-newsletter-field label {
	color: var(--pe-muted);
	font-size: 0.82rem;
	font-weight: 500;
}

.pe-newsletter-form input[type="email"] {
	background-color: #fafafa;
	min-height: 46px;
}

.pe-newsletter-form button {
	background: var(--pe-black);
	border: 1px solid var(--pe-black);
	border-radius: var(--pe-radius);
	color: var(--pe-white);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	min-height: 46px;
	padding: 0.75rem 1rem;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.pe-newsletter-form button:hover {
	transform: translateY(-1px);
}

.pe-newsletter-form button:disabled {
	cursor: wait;
	opacity: 0.62;
	transform: none;
}

.pe-newsletter-hp {
	display: none !important;
}

.pe-newsletter-status {
	font-size: 0.9rem;
	line-height: 1.45;
	margin: 0;
	min-height: 1.4em;
}

.pe-newsletter-status.is-success {
	color: #176b3a;
}

.pe-newsletter-status.is-error {
	color: #a22522;
}

.pe-newsletter-note {
	color: #737373;
	font-size: 0.82rem;
	line-height: 1.55;
	margin: 12px 0 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading {
	font-family: var(--pe-font-sans) !important;
	font-weight: 500 !important;
	letter-spacing: -0.04em !important;
	line-height: 1.05 !important;
}

h1,
.wp-block-post-title,
.woocommerce-products-header__title,
.woocommerce div.product .product_title {
	font-size: clamp(2rem, 1.45rem + 2.4vw, 3rem) !important;
}

h2,
.wp-block-post-content h2,
.woocommerce div.product .related > h2,
.woocommerce div.product .woocommerce-tabs h2 {
	font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem) !important;
}

h3,
.wp-block-post-content h3,
.woocommerce-loop-product__title {
	font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.25rem) !important;
}

a {
	text-underline-offset: 0.18em;
}

.wp-block-separator,
hr {
	border-color: var(--pe-line) !important;
	opacity: 1;
}

.wp-site-blocks > header,
header.wp-block-template-part {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--pe-line);
	position: sticky;
	top: 0;
	z-index: 100;
}

body.admin-bar .wp-site-blocks > header,
body.admin-bar header.wp-block-template-part {
	top: 32px;
}

.pe-header {
	min-height: 76px;
}

.pe-header .wp-block-site-logo img,
header .custom-logo {
	height: auto;
	max-width: 114px;
	width: 114px;
}

.pe-header .wp-block-navigation,
.pe-header .wp-block-navigation-item__content {
	font-size: 14px !important;
	font-weight: 500;
	line-height: 1.2;
}

.pe-header-actions {
	gap: 12px;
}

.wc-block-mini-cart__button,
.wp-block-woocommerce-customer-account a {
	align-items: center;
	border-radius: var(--pe-radius);
	display: inline-flex;
	justify-content: center;
	min-height: 40px;
	min-width: 40px;
	padding: 0;
}

.wc-block-mini-cart__button svg,
.wp-block-woocommerce-customer-account a svg {
	height: 22px;
	width: 22px;
}

.wc-block-mini-cart__button .wc-block-mini-cart__badge {
	font-size: 11px;
}

.wc-block-mini-cart__button:hover,
.wp-block-woocommerce-customer-account a:hover {
	background: var(--pe-soft);
}

.wp-element-button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
button.single_add_to_cart_button {
	background: var(--pe-black) !important;
	border: 1px solid var(--pe-black) !important;
	border-radius: var(--pe-radius) !important;
	box-sizing: border-box !important;
	color: var(--pe-white) !important;
	align-items: center !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	justify-content: center !important;
	line-height: 1.2 !important;
	min-height: 36px;
	padding: 0.62rem 0.9rem !important;
	text-decoration: none !important;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wc-block-components-button:hover,
button.single_add_to_cart_button:hover {
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.is-style-outline > .wp-element-button,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--pe-black) !important;
}

.is-style-outline > .wp-element-button:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--pe-black) !important;
	color: var(--pe-white) !important;
}

textarea,
select,
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]) {
	background-color: #f8f8f8;
	border: 1px solid #d9d9d9;
	border-radius: var(--pe-radius);
	box-shadow: none;
	box-sizing: border-box;
	color: currentColor;
	font-family: inherit;
	font-size: 0.95rem;
	line-height: 1.4;
	min-height: 38px;
	padding: 0.68rem 0.85rem;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
	width: 100%;
}

textarea:focus,
select:focus,
input:not([type="submit"]):focus {
	background-color: var(--pe-white);
	border-color: var(--pe-black);
	box-shadow: 0 0 0 3px rgba(11, 11, 11, 0.08);
	outline: none;
}

.is-style-section-1 {
	background: var(--pe-white);
}

.is-style-section-2 {
	background: var(--pe-soft);
}

.pe-ui-card {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--pe-line);
	border-radius: var(--pe-radius);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
	padding: clamp(18px, 2.4vw, 26px);
}

.pe-ui-soft-card {
	background: rgba(255, 255, 255, 0.68);
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: var(--pe-radius);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.pe-kicker {
	color: var(--pe-muted);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.pe-ui-title-tight {
	letter-spacing: -0.05em !important;
	line-height: 1.02 !important;
}

.pe-ui-copy {
	color: var(--pe-muted);
	font-size: clamp(0.92rem, 0.88rem + 0.15vw, 1rem);
	line-height: 1.7;
}

.pe-ui-metric {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.pe-ui-metric-value {
	font-size: clamp(1.4rem, 1.1rem + 0.9vw, 2rem);
	font-weight: 500;
	letter-spacing: -0.06em;
	line-height: 1;
}

.pe-ui-metric-detail {
	color: #737373;
	font-size: 0.78rem;
	line-height: 1.55;
}

.pe-product-card img,
.pe-editorial-image img {
	display: block;
	width: 100%;
}

.pe-product-card .wp-block-image {
	margin-bottom: var(--wp--preset--spacing--20, 1rem);
}

.pe-product-card {
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--pe-line);
	border-radius: var(--pe-radius);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
	padding: 14px;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pe-product-card:hover {
	border-color: rgba(0, 0, 0, 0.12);
	box-shadow: 0 14px 32px rgba(15, 15, 15, 0.08);
	transform: translateY(-3px);
}

.is-style-section-2 .pe-product-card {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	padding: 0;
}

.is-style-section-2 .pe-product-card:hover {
	border-color: transparent;
	box-shadow: none;
	transform: translateY(-2px);
}

.pe-swap-image,
.pe-editorial-image {
	overflow: hidden;
}

.pe-swap-image a {
	aspect-ratio: 1 / 1;
	display: block;
	position: relative;
}

.pe-swap-image img {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	transition: opacity 0.32s ease, transform 0.32s ease;
}

.pe-swap-image .pe-secondary-image {
	opacity: 0;
	transform: scale(1.04);
}

.pe-swap-image:hover .pe-primary-image {
	opacity: 0;
	transform: scale(1.04);
}

.pe-swap-image:hover .pe-secondary-image {
	opacity: 1;
	transform: scale(1);
}

.pe-editorial-image img {
	transition: transform 0.3s ease;
}

.pe-editorial-image:hover img {
	transform: scale(1.025);
}

.wc-block-product-template,
.wc-block-grid__products,
.woocommerce ul.products {
	display: grid !important;
	gap: 24px !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none !important;
	display: none !important;
}

.wc-block-product,
.wc-block-grid__product,
.woocommerce ul.products li.product {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--pe-line) !important;
	border-radius: var(--pe-radius);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
	display: flex !important;
	flex-direction: column;
	list-style: none;
	margin: 0 !important;
	overflow: hidden;
	padding: 12px !important;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
	width: auto !important;
}

.woocommerce ul.products li.product {
	float: none !important;
}

.wc-block-product:hover,
.wc-block-grid__product:hover,
.woocommerce ul.products li.product:hover {
	border-color: rgba(0, 0, 0, 0.12) !important;
	box-shadow: 0 14px 32px rgba(15, 15, 15, 0.08);
	transform: translateY(-3px);
}

.wc-block-components-product-image a,
.wc-block-grid__product-image a {
	aspect-ratio: 1 / 1;
	border-radius: 6px;
	display: block;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.wc-block-components-product-image img,
.wc-block-grid__product-image img {
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease, transform 0.3s ease;
	width: 100%;
}

.woocommerce ul.products li.product a img {
	border-radius: 6px;
	display: block;
	height: auto !important;
	margin: 0 0 1rem !important;
	object-fit: cover;
	transition: transform 0.3s ease;
	width: 100% !important;
}

.woocommerce ul.products li.product:hover a img {
	transform: scale(1.02);
}

.wc-block-components-product-image .pe-wc-hover-image {
	inset: 0;
	opacity: 0;
	position: absolute;
	transform: scale(1.04);
}

.wc-block-product:has(.pe-wc-hover-image):hover .wc-block-components-product-image img:not(.pe-wc-hover-image) {
	opacity: 0;
	transform: scale(1.04);
}

.wc-block-product:has(.pe-wc-hover-image):hover .wc-block-components-product-image .pe-wc-hover-image {
	opacity: 1;
	transform: scale(1);
}

.wc-block-product .wp-block-post-title,
.woocommerce-loop-product__title {
	font-size: 0.98rem !important;
	font-weight: 500;
	line-height: 1.28;
	margin-bottom: 0;
	text-align: left;
}

.wc-block-product .wp-block-post-title a,
.woocommerce-loop-product__title,
.woocommerce ul.products li.product a {
	color: var(--pe-black);
	text-decoration: none;
}

.wc-block-components-product-price,
.wc-block-grid__product-price,
.woocommerce ul.products li.product .price {
	color: var(--pe-muted);
	font-size: 0.88rem !important;
	line-height: 1.45;
	margin: 0.55rem 0 0.9rem;
	text-align: left;
}

.woocommerce ul.products li.product .button {
	display: inline-flex !important;
	justify-content: center;
	margin-top: auto !important;
	width: 100%;
}

.woocommerce-result-count {
	color: var(--pe-muted);
	font-size: 0.9rem;
}

.woocommerce-ordering select {
	font-size: 0.9rem;
	min-height: 36px;
}

.woocommerce .woocommerce-breadcrumb {
	color: var(--pe-muted);
	font-size: 0.8rem;
	margin-bottom: 1.35rem;
}

.woocommerce div.product div.images img,
.single-product .woocommerce-product-gallery img {
	border-radius: var(--pe-radius);
}

.woocommerce div.product div.summary {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--pe-line);
	border-radius: var(--pe-radius);
	padding: clamp(20px, 2.8vw, 32px);
}

body.single-product div.product {
	align-items: start;
	display: grid;
	gap: clamp(32px, 4.5vw, 64px);
	grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
}

body.single-product div.product div.images,
body.single-product div.product div.summary {
	clear: none !important;
	float: none !important;
	margin: 0 !important;
	width: auto !important;
}

body.single-product div.product div.images {
	grid-column: 1;
	grid-row: 1;
}

body.single-product div.product div.summary {
	grid-column: 2;
	grid-row: 1;
}

body.single-product .woocommerce div.product .product_title {
	font-size: clamp(2rem, 1.55rem + 1.6vw, 2.5rem) !important;
}

body.single-product .woocommerce-tabs,
body.single-product .related.products {
	clear: none !important;
	grid-column: 1 / -1;
}

body.single-product .woocommerce-tabs {
	margin-top: clamp(18px, 3vw, 36px);
}

body.single-product .woocommerce-tabs ul.tabs {
	border-bottom: 1px solid var(--pe-line) !important;
	margin-bottom: 24px !important;
	padding-left: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after {
	border-color: var(--pe-line) !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
	background: var(--pe-white) !important;
	border-color: var(--pe-line) !important;
	border-radius: var(--pe-radius) var(--pe-radius) 0 0 !important;
	box-sizing: border-box;
}

body.single-product .woocommerce-tabs ul.tabs li.active {
	background: var(--pe-black) !important;
	border-color: var(--pe-black) !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
	color: inherit !important;
	font-size: 0.82rem;
	font-weight: 500;
	padding: 0.7rem 0.95rem !important;
}

body.single-product .related.products {
	margin-top: clamp(36px, 5vw, 64px);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--pe-black);
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: -0.04em;
}

.woocommerce div.product form.cart {
	border-top: 1px solid var(--pe-line);
	margin-top: 1.35rem;
	padding-top: 1.35rem;
}

.woocommerce .quantity .qty {
	min-height: 38px;
	width: 5rem;
}

.wc-block-cart,
.wc-block-checkout,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	margin-left: auto;
	margin-right: auto;
	max-width: 980px;
}

.wc-block-cart__main,
.wc-block-cart__sidebar,
.wc-block-components-sidebar,
.wc-block-components-main,
.wc-block-components-totals-wrapper,
.wc-block-cart-items,
.wc-block-components-panel,
.wc-block-components-order-summary,
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-color: var(--pe-line) !important;
	border-radius: var(--pe-radius) !important;
}

.wc-block-cart__sidebar,
.wc-block-components-sidebar,
.wc-block-components-order-summary,
.wc-block-cart-items,
.wc-block-components-panel {
	background: rgba(255, 255, 255, 0.96);
}

.wp-block-post-content {
	color: #404040;
	font-size: 0.98rem;
	line-height: 1.72;
}

.wp-block-post-content > * {
	max-width: 760px;
}

body.home .wp-block-post-content,
body.home .wp-block-post-content > *,
body.page-id-84 .wp-block-post-content,
body.page-id-84 .wp-block-post-content > * {
	max-width: none;
}

.wp-block-post-content h2,
.wp-block-post-content h3 {
	color: var(--pe-black);
	font-weight: 500;
	line-height: 1.15;
	margin-top: 1.8rem;
}

.wp-block-post-content ul,
.wp-block-post-content ol {
	padding-left: 1.2rem;
}

.wp-block-post-content li + li {
	margin-top: 0.45rem;
}

.wp-block-details {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--pe-line);
	border-radius: var(--pe-radius);
	padding: 16px 18px;
}

.wp-block-details + .wp-block-details {
	margin-top: 12px;
}

.wp-block-details summary {
	color: var(--pe-black);
	cursor: pointer;
	font-weight: 500;
}

.wp-block-details > *:last-child {
	margin-bottom: 0;
}

.wp-block-jetpack-contact-form {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--pe-line);
	border-radius: var(--pe-radius);
	box-sizing: border-box;
	display: grid;
	gap: 16px;
	padding: clamp(20px, 3vw, 30px);
}

.wp-block-jetpack-contact-form label,
.wp-block-jetpack-contact-form .grunion-field-label {
	color: var(--pe-black);
	font-size: 0.88rem;
	font-weight: 500;
}

.pe-page-shell {
	padding-bottom: clamp(52px, 7vw, 88px);
	padding-top: clamp(40px, 6vw, 72px);
}

.pe-page-card {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--pe-line);
	border-radius: var(--pe-radius);
	margin-left: auto;
	margin-right: auto;
	max-width: var(--wp--style--global--wide-size, 1148px);
	padding: clamp(28px, 5vw, 72px);
}

.pe-footer-shell {
	padding-bottom: clamp(52px, 7vw, 80px);
	padding-top: clamp(40px, 6vw, 72px);
}

.pe-footer-card {
	background: var(--pe-black);
	border-radius: var(--pe-radius);
	color: var(--pe-white);
	padding: clamp(28px, 4vw, 44px);
}

.pe-footer-card a {
	color: var(--pe-white);
	text-decoration: none;
}

.pe-footer-logo img {
	filter: invert(1);
	max-width: 118px;
}

@media (max-width: 980px) {
	.wc-block-product-template,
	.wc-block-grid__products,
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 720px) {
	.pe-header {
		gap: 12px !important;
		min-height: 78px;
		padding-bottom: 14px !important;
		padding-top: 14px !important;
	}

	.pe-header .wp-block-site-logo img,
	header .custom-logo {
		max-width: 124px;
		width: 124px;
	}

	.wc-block-product-template,
	.wc-block-grid__products,
	.woocommerce ul.products {
		grid-template-columns: 1fr !important;
	}

	.pe-product-card {
		padding: 0;
	}

	.pe-page-card {
		padding: 26px;
	}

	body.single-product div.product {
		display: block;
	}

	body.single-product div.product div.summary {
		margin-top: 24px !important;
	}
}

@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header,
	body.admin-bar header.wp-block-template-part {
		top: 46px;
	}
}
