.csk-wrap {
	--csk-accent: var(--csk-brand, #111827);
	--csk-accent-text: #ffffff;
	--csk-border: #d1d5db;
	--csk-bg: #f9fafb;
	--csk-error: #b91c1c;
	--csk-ok: #166534;
	margin: 20px 0;
	max-width: 520px;
}

.csk-form {
	background: var(--csk-bg);
	border: 1px solid var(--csk-border);
	border-radius: 12px;
	padding: 18px;
	box-sizing: border-box;
}

.csk-form * {
	box-sizing: border-box;
}

.csk-title {
	margin: 0 0 14px;
	font-size: 17px;
	line-height: 1.3;
	text-align: center;
}

.csk-row {
	margin-bottom: 12px;
}

.csk-row label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 600;
}

.csk-row input[type="text"],
.csk-row input[type="tel"],
.csk-row select,
.csk-row textarea {
	width: 100%;
	padding: 11px 12px;
	font-size: 16px; /* 16px évite le zoom automatique sur iPhone */
	border: 1px solid var(--csk-border);
	border-radius: 8px;
	background: #fff;
	color: inherit;
}

.csk-row textarea {
	resize: vertical;
}

.csk-row .csk-invalid {
	border-color: var(--csk-error);
}

.csk-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--csk-border);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.csk-qty button {
	width: 44px;
	border: 0;
	background: #f3f4f6;
	font-size: 20px;
	cursor: pointer;
	padding: 0;
}

.csk-qty input {
	width: 56px;
	border: 0;
	text-align: center;
	font-size: 16px;
	padding: 10px 0;
	-moz-appearance: textfield;
}

.csk-qty input::-webkit-outer-spin-button,
.csk-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.csk-summary {
	margin: 14px 0;
	padding: 12px;
	background: #fff;
	border: 1px dashed var(--csk-border);
	border-radius: 8px;
}

.csk-summary[hidden],
.csk-msg[hidden] {
	display: none;
}

.csk-summary > div {
	display: flex;
	justify-content: space-between;
	padding: 3px 0;
	font-size: 15px;
}

.csk-summary .csk-total {
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px solid var(--csk-border);
	font-size: 17px;
}

.csk-msg {
	margin: 10px 0;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	background: #fef2f2;
	color: var(--csk-error);
}

.csk-btn {
	display: block;
	width: 100%;
	padding: 14px 16px;
	border: 0;
	border-radius: 10px;
	background: var(--csk-cta, #ea580c);
	color: var(--csk-accent-text);
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.csk-btn:hover {
	opacity: 0.9;
}

.csk-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.csk-note {
	margin: 8px 0 0;
	text-align: center;
	font-size: 13px;
	opacity: 0.75;
}

.csk-success {
	padding: 22px 14px;
	text-align: center;
	color: var(--csk-ok);
	font-size: 16px;
	line-height: 1.5;
}

.csk-success strong {
	display: block;
	margin-top: 8px;
	font-size: 14px;
}

.csk-out {
	padding: 12px;
	background: #fef2f2;
	color: var(--csk-error);
	border-radius: 8px;
}

/* Champ piège anti-robots : invisible pour les humains */
.csk-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}


/* ------------------------------------------------------------------
 * Design de la page produit
 * ---------------------------------------------------------------- */
.single-product .product_title {
	font-size: 26px;
	line-height: 1.25;
	margin-bottom: 8px;
}

.single-product .summary .price {
	margin: 6px 0 4px;
	font-size: 26px;
	font-weight: 700;
}

.single-product .summary .price del {
	margin-right: 6px;
	font-size: 0.7em;
	opacity: 0.5;
}

.single-product .summary .price ins {
	text-decoration: none;
}

.single-product .product_meta {
	display: none;
}

.single-product .woocommerce-product-details__short-description {
	margin: 10px 0;
	color: #374151;
}

.single-product .woocommerce-product-gallery img {
	border-radius: 10px;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img {
	border-radius: 8px;
	opacity: 0.6;
	cursor: pointer;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover {
	opacity: 1;
}

.csk-badge-sale {
	display: inline-block;
	margin-bottom: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.csk-stock {
	margin: 4px 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: #b45309;
}

.csk-trust {
	display: grid;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	max-width: 520px;
}

.csk-trust li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}

.csk-trust svg {
	flex: 0 0 auto;
	color: var(--csk-brand, #111827);
}

.csk-steps {
	clear: both;
	margin: 30px 0;
	padding: 24px 16px;
	background: #f9fafb;
	border-radius: 12px;
}

.csk-steps h2 {
	margin: 0 0 16px;
	font-size: 20px;
	text-align: center;
}

.csk-steps ol {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: csk;
}

.csk-steps li {
	counter-increment: csk;
	text-align: center;
	font-size: 14px;
}

.csk-steps li::before {
	content: counter(csk);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0 auto 8px;
	border-radius: 50%;
	background: var(--csk-brand, #111827);
	color: #fff;
	font-weight: 700;
}

.csk-steps li strong,
.csk-steps li span {
	display: block;
}

.csk-steps li span {
	margin-top: 2px;
	opacity: 0.75;
}

/* Barre de commande collée en bas (mobile) */
.csk-sticky {
	display: none;
}

@media (max-width: 768px) {
	.csk-steps ol {
		grid-template-columns: 1fr;
	}

	.csk-sticky {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9999;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
	}

	.csk-sticky.csk-hide {
		display: none;
	}

	.csk-sticky button {
		display: block;
		width: 100%;
		padding: 14px 16px;
		border: 0;
		border-radius: 10px;
		background: var(--csk-cta, #ea580c);
		color: #fff;
		font-size: 17px;
		font-weight: 700;
		cursor: pointer;
	}

	body.csk-has-bar {
		padding-bottom: 76px;
	}
}


/* ------------------------------------------------------------------
 * Boutique style marketplace (actif avec la classe body.csk-shop)
 * ---------------------------------------------------------------- */
.csk-promo {
	padding: 8px 12px;
	background: var(--csk-brand, #1b1f8f);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

.csk-shop-top {
	margin: 0 0 18px;
}

.csk-search form {
	display: flex;
	max-width: 640px;
	margin: 0 auto 16px;
	border: 2px solid var(--csk-cta, #ea580c);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}

.csk-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 11px 16px;
	border: 0;
	outline: 0;
	font-size: 16px;
	background: transparent;
}

.csk-search button[type="submit"] {
	padding: 0 20px;
	border: 0;
	background: var(--csk-cta, #ea580c);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.csk-cats {
	display: flex;
	gap: 14px;
	padding: 4px 2px 10px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
}

@media (min-width: 900px) {
	.csk-cats {
		flex-wrap: wrap;
		justify-content: center;
		overflow: visible;
	}
}

.csk-cat {
	flex: 0 0 auto;
	width: 84px;
	color: inherit;
	text-align: center;
	text-decoration: none;
	scroll-snap-align: start;
}

.csk-cat-ic {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin: 0 auto 6px;
	border-radius: 50%;
	background: #eef0ff;
	color: var(--csk-brand, #1b1f8f);
	overflow: hidden;
	transition: transform 0.15s ease;
}

.csk-cat:hover .csk-cat-ic {
	transform: scale(1.07);
}

.csk-cat-ic svg {
	width: 32px;
	height: 32px;
}

.csk-cat-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.csk-cat-name {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.25;
}

body.csk-shop.woocommerce-shop .woocommerce-products-header__title,
body.csk-shop.woocommerce-shop h1.page-title {
	font-size: 26px;
}

body.csk-shop .woocommerce ul.products,
body.csk-shop ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 24px !important;
	padding: 0 !important;
}

@media (min-width: 769px) {
	body.csk-shop .woocommerce ul.products,
	body.csk-shop ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 16px;
	}
}

body.csk-shop ul.products::before,
body.csk-shop ul.products::after {
	display: none !important;
}

body.csk-shop ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 10px !important;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

body.csk-shop ul.products li.product:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

body.csk-shop ul.products li.product img {
	width: 100%;
	height: auto;
	margin: 0 0 8px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
}

body.csk-shop ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box;
	margin: 4px 0;
	overflow: hidden;
	font-size: 14px !important;
	line-height: 1.3;
	text-align: left;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

body.csk-shop ul.products li.product .price {
	margin: 2px 0 10px;
	color: #111827;
	font-size: 16px;
	font-weight: 800;
	text-align: left;
}

body.csk-shop ul.products li.product .price del {
	font-size: 0.8em;
	font-weight: 400;
	opacity: 0.5;
}

body.csk-shop ul.products li.product .price ins {
	color: #dc2626;
	text-decoration: none;
}

body.csk-shop ul.products li.product .button {
	width: 100%;
	margin-top: auto !important;
	padding: 10px 8px;
	border: 0;
	border-radius: 8px;
	background: var(--csk-cta, #ea580c) !important;
	color: #fff !important;
	font-weight: 700;
	text-align: center;
}

body.csk-shop ul.products li.product .ast-woo-shop-product-description,
body.csk-shop ul.products li.product .woocommerce-product-details__short-description {
	display: none;
}

body.csk-shop span.onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	right: auto;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 5px 9px;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

/* Page d'accueil [csk_home] */
.csk-hero {
	margin: 0 0 20px;
	padding: 34px 18px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--csk-brand, #1b1f8f), #3b82f6);
	color: #fff;
	text-align: center;
}

.csk-hero h2 {
	margin: 0 0 8px;
	color: #fff;
	font-size: 28px;
	line-height: 1.2;
}

.csk-hero p {
	margin: 0 0 16px;
	font-size: 16px;
	opacity: 0.95;
}

.csk-hero-btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 999px;
	background: var(--csk-cta, #ea580c);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.csk-h2 {
	margin: 26px 0 12px;
	font-size: 22px;
}

.csk-trust-row {
	grid-template-columns: repeat(3, 1fr);
	max-width: none;
	margin: 26px 0;
	padding: 16px;
	background: #f9fafb;
	border-radius: 12px;
}

@media (max-width: 768px) {
	.csk-hero h2 {
		font-size: 22px;
	}

	.csk-trust-row {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------
 * Application installable (PWA)
 * ---------------------------------------------------------------- */
/* Carte d'installation (bottom sheet, mobile uniquement) */
.csk-sheet-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(17, 24, 39, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.csk-sheet {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100001;
	max-width: 520px;
	margin: 0 auto;
	padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
	background: #fff;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
	transform: translateY(105%);
	transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.3, 1);
	color: #111827;
}

.csk-sheet.csk-sheet-open {
	transform: translateY(0);
}

.csk-sheet-backdrop.csk-sheet-open {
	opacity: 1;
}

.csk-sheet-x {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
}

.csk-sheet-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-right: 28px;
}

.csk-sheet-icon {
	flex: 0 0 auto;
	width: 60px;
	height: 60px;
	border-radius: 14px;
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.csk-sheet-name {
	display: block;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
}

.csk-sheet-tag {
	display: block;
	margin-top: 3px;
	font-size: 14px;
	color: #4b5563;
	line-height: 1.35;
}

.csk-sheet-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 14px 0 0;
	padding: 5px 11px;
	border-radius: 999px;
	background: #eef0ff;
	color: var(--csk-brand, #1b1f8f);
	font-size: 12.5px;
	font-weight: 700;
}

.csk-sheet-chip svg {
	width: 15px;
	height: 15px;
}

.csk-sheet-steps {
	display: grid;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.csk-sheet-steps li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	background: #f9fafb;
	border-radius: 12px;
	font-size: 14.5px;
	font-weight: 600;
}

.csk-sheet-steps .csk-step-ic {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #fff;
	color: var(--csk-brand, #1b1f8f);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.csk-sheet-steps svg {
	width: 20px;
	height: 20px;
}

.csk-sheet-cta {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 14px 16px;
	border: 0;
	border-radius: 12px;
	background: var(--csk-cta, #ea580c);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
}

.csk-sheet-later {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px;
	border: 0;
	background: transparent;
	color: #6b7280;
	font-size: 14px;
	cursor: pointer;
}

/* Jamais sur ordinateur */
@media (min-width: 769px) {
	.csk-sheet,
	.csk-sheet-backdrop {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.csk-sheet,
	.csk-sheet-backdrop {
		transition: none;
	}
}

/* Barre du bas : uniquement quand le site est ouvert comme application */
.csk-tabs {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9998;
	display: flex;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: #fff;
	border-top: 1px solid #e5e7eb;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.csk-tab {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 8px 4px;
	color: var(--csk-brand, #1b1f8f);
	font-size: 11.5px;
	font-weight: 600;
	text-decoration: none;
}

body.csk-has-tabs {
	padding-bottom: 64px;
}

/* Sur les pages produit, la barre "Commander" prend la place des onglets */
body.single-product .csk-tabs {
	display: none;
}

body.single-product.csk-has-tabs {
	padding-bottom: 76px;
}

/* Mode application : on masque l'annonce pour gagner de la place */
html.csk-app .csk-promo {
	display: none;
}


/* ------------------------------------------------------------------
 * Correctifs v1.4
 * ---------------------------------------------------------------- */
/* Page produit COD : on cache le formulaire "Ajouter au panier" du thème */
body.csk-cod-product div.product form.cart,
body.csk-cod-product div.product .woocommerce-variation-add-to-cart {
	display: none !important;
}

/* Boutique COD : pas de panier dans l'en-tête (thème Astra) */
body.csk-shop .ast-site-header-cart,
body.csk-shop .ast-header-woo-cart,
body.csk-shop .ast-woo-header-cart-info-wrap {
	display: none !important;
}

/* ------------------------------------------------------------------
 * v1.6.1 - Page produit : l'en-tete du theme (Astra "En-tete transparent")
 * ne doit plus flotter par-dessus la photo et le fil d'Ariane.
 * On le remet dans le flux normal de la page, uniquement sur les produits.
 * ---------------------------------------------------------------- */
body.single-product.ast-theme-transparent-header #masthead,
body.single-product .ast-theme-transparent-header #masthead {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
}
