/*
Theme Name:   Stickmoi
Theme URI:    https://stickmoi.com
Description:  Thème enfant de Storefront aux couleurs de Stickmoi. Grille produits, page produit et page d'accueil retravaillées pour un imprimeur de stickers.
Author:       Stickmoi
Template:     storefront
Version:      1.1.1
Requires PHP: 7.4
License:      GNU General Public License v2 or later
Text Domain:  stickmoi-theme
*/

/* =====================================================================
   1. Design tokens
   ===================================================================== */

:root {
	--sm-ink: #14121c;
	--sm-muted: #4a4658;
	--sm-line: #e7e1d8;
	--sm-bg: #fdfaf5;
	--sm-card: #ffffff;

	--sm-pink: #ff3f6c;
	--sm-blue: #3d6bff;
	--sm-yellow: #ffc93c;
	--sm-mint: #12b8a0;
	--sm-violet: #7b5cff;

	--sm-radius: 18px;
	--sm-radius-sm: 12px;
	--sm-shadow: 0 1px 2px rgba( 20, 18, 28, 0.05 ), 0 12px 32px -12px rgba( 20, 18, 28, 0.18 );
	--sm-shadow-lg: 0 2px 4px rgba( 20, 18, 28, 0.06 ), 0 28px 60px -20px rgba( 20, 18, 28, 0.28 );
	--sm-font: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =====================================================================
   2. Base
   ===================================================================== */

body,
button,
input,
select,
textarea {
	font-family: var( --sm-font );
	color: var( --sm-ink );
}

body {
	background: var( --sm-bg );
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.page-title,
.entry-title {
	font-family: var( --sm-font );
	letter-spacing: -0.028em;
	font-weight: 800;
	line-height: 1.12;
	color: var( --sm-ink );
}

a {
	color: var( --sm-ink );
	text-decoration: none;
}

a:hover {
	color: var( --sm-pink );
}

.site-content {
	padding-top: 2.5em;
}

/* =====================================================================
   3. Header
   ===================================================================== */

.site-header {
	background: rgba( 253, 250, 245, 0.9 );
	backdrop-filter: blur( 14px );
	border-bottom: 1px solid var( --sm-line );
	padding-top: 1.2em;
	padding-bottom: 1.2em;
	position: sticky;
	top: 0;
	z-index: 90;
}

.site-header .site-branding .site-title a {
	font-weight: 800;
	font-size: 1.35em;
	letter-spacing: -0.03em;
}

.site-header .site-description {
	color: var( --sm-muted );
	font-size: 0.85em;
}

.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
	font-weight: 600;
	font-size: 0.95em;
	color: var( --sm-muted );
	border-radius: 10px;
	padding: 0.55em 0.85em;
	transition: background 0.15s, color 0.15s;
}

.main-navigation ul.menu > li > a:hover,
.main-navigation ul.nav-menu > li > a:hover {
	background: #fff;
	color: var( --sm-ink );
	box-shadow: var( --sm-shadow );
}

.site-header-cart .cart-contents {
	font-weight: 700;
	border-radius: 10px;
}

/* Announcement bar — output by functions.php */

.stickmoi-topbar {
	background: var( --sm-ink );
	color: #fff;
	font-size: 0.82em;
	letter-spacing: 0.02em;
	text-align: center;
	padding: 0.7em 1em;
}

.stickmoi-topbar strong {
	color: var( --sm-yellow );
}

.stickmoi-topbar span + span::before {
	content: "·";
	margin: 0 0.9em;
	opacity: 0.4;
}

/* =====================================================================
   4. Buttons
   ===================================================================== */

button,
input[type="button"],
input[type="submit"],
.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var( --sm-ink );
	color: #fff;
	border-radius: var( --sm-radius-sm );
	font-weight: 700;
	font-size: 0.95em;
	padding: 0.85em 1.5em;
	border: 1px solid transparent;
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
	text-shadow: none;
}

button:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background: var( --sm-ink );
	color: #fff;
	transform: translateY( -1px );
	box-shadow: var( --sm-shadow-lg );
}

.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.single_add_to_cart_button {
	background: var( --sm-pink );
	color: #fff;
	box-shadow: 0 10px 24px -12px var( --sm-pink );
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.single_add_to_cart_button:hover {
	background: #ec2f5b;
	color: #fff;
}

.woocommerce button.button:disabled,
.woocommerce button.button.disabled {
	opacity: 0.45;
	transform: none;
	box-shadow: none;
	cursor: not-allowed;
}

/* =====================================================================
   5. Product grid
   ===================================================================== */

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

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 20px;
	margin: 0 0 3em;
}

.woocommerce ul.products li.product {
	/* Storefront sizes loop items with a percentage width and a float. Inside a
	   CSS grid that percentage resolves against the track, collapsing the card
	   to a fraction of its column — hence the !important. */
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	background: var( --sm-card );
	border: 1px solid var( --sm-line );
	border-radius: var( --sm-radius );
	overflow: hidden;
	padding: 0;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.woocommerce ul.products li.product:hover {
	transform: translateY( -4px );
	box-shadow: var( --sm-shadow-lg );
	border-color: transparent;
}

.woocommerce ul.products li.product a img {
	margin: 0;
	border-radius: 0;
	aspect-ratio: 1 / 0.86;
	object-fit: cover;
	background: #f3f1ee;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.02em;
	font-weight: 750;
	letter-spacing: -0.015em;
	padding: 1em 1.1em 0.2em;
	margin: 0;
}

.woocommerce ul.products li.product .price {
	color: var( --sm-ink );
	font-weight: 800;
	font-size: 1.05em;
	padding: 0 1.1em;
	margin-top: auto;
}

.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
	font-weight: 700;
}

.woocommerce ul.products li.product .button {
	margin: 0.9em 1.1em 1.2em;
	text-align: center;
}

.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
	background: var( --sm-pink );
	color: #fff;
	border-radius: 7px;
	font-size: 0.72em;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	min-height: auto;
	min-width: auto;
	line-height: 1;
	padding: 0.5em 0.7em;
	top: 12px;
	left: 12px;
	right: auto;
	margin: 0;
}

/* =====================================================================
   6. Single product
   ===================================================================== */

.single-product div.product {
	display: flex;
	flex-wrap: wrap;
	gap: 3rem;
	align-items: flex-start;
}

/* Every direct child spans the full width by default (tabs, related, upsells);
   only the gallery and the summary share the top row. */

/* Storefront adds clearfix pseudo-elements to div.product. In a flex
   container those become anonymous flex items, which offset the gallery by
   one gap and push the summary onto its own row. Neutralise them. */

.single-product div.product::before,
.single-product div.product::after {
	content: none !important;
	display: none !important;
}

.single-product div.product > * {
	flex: 1 1 100%;
	min-width: 0;
}

.single-product div.product > .woocommerce-product-gallery,
.single-product div.product > .summary {
	flex: 1 1 calc( 50% - 1.5rem );
	max-width: calc( 50% - 1.5rem );
	/* Storefront floats these and adds a percentage margin; in a flex row that
	   margin overflows the line and pushes the summary onto its own row. */
	margin: 0 !important;
	float: none !important;
	width: auto !important;
}

.single-product div.product .woocommerce-product-gallery {
	width: 100%;
	float: none;
	margin: 0;
	position: sticky;
	top: 6rem;
}

.single-product div.product .woocommerce-product-gallery img {
	border-radius: 20px;
	border: 1px solid var( --sm-line );
	background: #fff;
}

.single-product div.product .summary {
	width: 100%;
	float: none;
	margin: 0;
}

.single-product div.product .product_title {
	font-size: clamp( 1.8rem, 3.4vw, 2.6rem );
	margin-bottom: 0.35em;
}

.single-product div.product .woocommerce-product-details__short-description {
	color: var( --sm-muted );
	font-size: 1.02em;
}

/* The configurator supplies the price, so hide the static one. */
.single-product div.product.stickmoi-configurable > .summary > p.price {
	display: none;
}

.single-product div.product .quantity {
	display: none;
}

.single-product div.product form.cart {
	margin-bottom: 1.5em;
}

.single-product div.product form.cart .single_add_to_cart_button {
	width: 100%;
	padding: 1.05em;
	font-size: 1.02em;
}

.woocommerce-tabs ul.tabs li {
	border-radius: 10px 10px 0 0;
}

.single-product div.product > .woocommerce-tabs {
	margin-top: 1.5rem;
}


/* Reassurance strip under the add-to-cart button */

.stickmoi-assurances {
	display: flex;
	flex-wrap: wrap;
	gap: 1.1em;
	margin: 1em 0 0;
	font-size: 0.86em;
	color: var( --sm-muted );
	list-style: none;
	padding: 0;
}

.stickmoi-assurances li::before {
	content: "✓";
	color: var( --sm-mint );
	font-weight: 900;
	margin-right: 0.45em;
}

/* =====================================================================
   7. Home hero
   ===================================================================== */

.stickmoi-hero {
	background: var( --sm-bg );
	padding: 3.5rem 0 3rem;
}

.stickmoi-hero .col-full {
	display: flex !important;
	flex-wrap: wrap;
	gap: 3rem;
	align-items: center;
}

.stickmoi-hero .col-full::before,
.stickmoi-hero .col-full::after {
	content: none !important;
	display: none !important;
}

.stickmoi-hero .col-full > * {
	flex: 1 1 calc( 50% - 1.5rem );
	max-width: calc( 50% - 1.5rem );
	min-width: 0;
}

.stickmoi-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	background: #fff;
	border: 1px solid var( --sm-line );
	padding: 0.45em 0.9em;
	border-radius: 999px;
	font-size: 0.82em;
	font-weight: 600;
	color: var( --sm-muted );
	box-shadow: var( --sm-shadow );
}

.stickmoi-hero__eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var( --sm-mint );
}

.stickmoi-hero h1 {
	/* The headline shares a 50% column with the sticker artwork and keeps
	   "imprimés comme il faut." on one line for the highlight bar, so the
	   maximum size is capped to what that column can hold. */
	font-size: clamp( 1.7rem, 3vw, 2.6rem );
	line-height: 1.03;
	margin: 0.5em 0 0.35em;
	font-weight: 850;
}

.stickmoi-hero h1 .hl {
	position: relative;
	white-space: nowrap;
}

.stickmoi-hero h1 .hl::after {
	content: "";
	position: absolute;
	left: -2px;
	right: -2px;
	bottom: 4px;
	height: 14px;
	background: var( --sm-yellow );
	z-index: -1;
	transform: rotate( -1.2deg );
	border-radius: 3px;
}

.stickmoi-hero p {
	font-size: 1.08em;
	color: var( --sm-muted );
	max-width: 34em;
}

.stickmoi-hero__cta {
	display: flex;
	gap: 0.7em;
	flex-wrap: wrap;
	margin-top: 1.6em;
}

.stickmoi-hero__facts {
	display: flex;
	gap: 1.8em;
	margin-top: 2em;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
}

.stickmoi-hero__facts b {
	display: block;
	font-size: 1.35em;
	letter-spacing: -0.02em;
}

.stickmoi-hero__facts span {
	font-size: 0.82em;
	color: var( --sm-muted );
}

.stickmoi-hero__art {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 1rem;
}

.stickmoi-hero__art i {
	display: block;
	aspect-ratio: 1;
	border-radius: 26% 74% 62% 38% / 45% 34% 66% 55%;
	box-shadow: 0 18px 26px -14px rgba( 20, 18, 28, 0.35 );
	border: 6px solid #fff;
}

.stickmoi-hero__art i:nth-child( 1 ) { background: linear-gradient( 135deg, var( --sm-blue ), var( --sm-violet ) ); }
.stickmoi-hero__art i:nth-child( 2 ) { background: linear-gradient( 135deg, var( --sm-pink ), var( --sm-yellow ) ); border-radius: 50%; }
.stickmoi-hero__art i:nth-child( 3 ) { background: linear-gradient( 135deg, var( --sm-mint ), #b8f5e6 ); border-radius: 30%; }
.stickmoi-hero__art i:nth-child( 4 ) { background: linear-gradient( 135deg, #8e9aa8, #dfe6ee ); border-radius: 34%; }
.stickmoi-hero__art i:nth-child( 5 ) { background: linear-gradient( 135deg, var( --sm-violet ), var( --sm-pink ) ); }
.stickmoi-hero__art i:nth-child( 6 ) { background: linear-gradient( 135deg, var( --sm-yellow ), #ffe9a8 ); border-radius: 42%; }


/* =====================================================================
   8. Cart, checkout, notices
   ===================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: var( --sm-radius-sm );
	border-top-color: var( --sm-pink );
	background: #fff;
	box-shadow: var( --sm-shadow );
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var( --sm-mint );
}

.woocommerce table.shop_table,
.woocommerce-checkout #payment {
	border-radius: var( --sm-radius );
	border-color: var( --sm-line );
	background: #fff;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection {
	border: 1.5px solid var( --sm-line );
	border-radius: var( --sm-radius-sm );
	padding: 0.75em 0.9em;
	background: #fff;
	box-shadow: none;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
	border-color: var( --sm-ink );
	outline: none;
}

#stickmoi_vat_field .description {
	font-size: 0.85em;
	color: var( --sm-muted );
}

/* =====================================================================
   9. Footer
   ===================================================================== */

.site-footer {
	background: var( --sm-ink );
	color: rgba( 255, 255, 255, 0.62 );
	padding: 3.5em 0 2em;
}

.site-footer a {
	color: rgba( 255, 255, 255, 0.62 );
}

.site-footer a:hover {
	color: #fff;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer .widget-title {
	color: #fff;
	font-size: 0.92em;
	font-weight: 750;
	letter-spacing: 0.01em;
}

.stickmoi-tagline {
	color: var( --sm-yellow );
	font-weight: 700;
	margin-top: 0.5em;
}

.stickmoi-legal {
	margin: 1.4em 0 0;
	font-size: 0.85em;
	line-height: 2;
}

.stickmoi-legal a {
	color: rgba( 255, 255, 255, 0.72 );
	text-decoration: underline;
	text-underline-offset: 3px;
}

.stickmoi-legal a:hover {
	color: #fff;
}

.stickmoi-legal span {
	color: rgba( 255, 255, 255, 0.35 );
}

/* =====================================================================
   10. Responsive
   ===================================================================== */

@media ( max-width: 1024px ) {
	.woocommerce ul.products {
		grid-template-columns: repeat( 3, 1fr );
	}
}

@media ( max-width: 768px ) {
	.woocommerce ul.products {
		grid-template-columns: repeat( 2, 1fr );
		gap: 14px;
	}

	.single-product div.product {
		gap: 1.8rem;
	}

	.single-product div.product > .woocommerce-product-gallery,
	.single-product div.product > .summary {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.single-product div.product .woocommerce-product-gallery {
		position: static;
	}

	.stickmoi-hero .col-full {
		gap: 2rem;
	}

	.stickmoi-hero .col-full > * {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.stickmoi-hero h1 {
		font-size: 1.9rem;
	}

	.stickmoi-hero h1 .hl::after {
		height: 9px;
		bottom: 1px;
	}

	.stickmoi-hero__facts {
		gap: 1.2em;
	}

	.site-header {
		position: static;
	}
}
