/* =========================================================
   VIKING RIDERS — CATALOGUE WOOCOMMERCE
   ========================================================= */

.vr-commerce-catalog {
	--vr-commerce-primary: var(--vr-primary, #298bfd);
	--vr-commerce-navy: var(--vr-navy, #04203d);
	--vr-commerce-white: var(--vr-white, #ffffff);
	--vr-commerce-bg: var(--vr-bg, #f3f8fc);
	--vr-commerce-muted: var(--vr-muted, #5b6f82);
	--vr-commerce-border: var(--vr-border, #d7e3ec);

	box-sizing: border-box;
	width: 100%;
	background: var(--vr-commerce-bg);
}

.vr-commerce-section {
	box-sizing: border-box;
	width: 100%;
	padding:
		clamp(54px, 6vw, 82px)
		clamp(18px, 4vw, 56px);
	background: var(--vr-commerce-bg);
}

.vr-commerce-section + .vr-commerce-section {
	padding-top: clamp(34px, 4vw, 56px);
}

.vr-commerce-section__inner {
	box-sizing: border-box;
	width: min(100%, 1180px);
	margin: 0 auto;
}

.vr-commerce-section__header {
	width: min(100%, 720px);
	margin: 0 0 clamp(28px, 3vw, 40px);
}

.vr-commerce-section__kicker {
	margin: 0 0 9px;
	color: var(--vr-commerce-primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.13em;
	line-height: 1.2;
	text-transform: uppercase;
}

.vr-commerce-section__title {
	margin: 0;
	color: var(--vr-commerce-navy);
	font-family:
		Impact,
		Haettenschweiler,
		"Arial Narrow Bold",
		"Arial Narrow",
		sans-serif;
	font-size: clamp(38px, 4vw, 58px);
	font-weight: 400;
	letter-spacing: -0.018em;
	line-height: 0.95;
	text-transform: uppercase;
}

.vr-commerce-section__intro {
	margin: 13px 0 0;
	color: var(--vr-commerce-muted);
	font-size: 15px;
	line-height: 1.5;
}

.vr-commerce-grid {
	display: grid;
	width: 100%;
	gap: clamp(18px, 2vw, 26px);
}

.vr-commerce-grid--gift {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vr-commerce-grid--products {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vr-commerce-card {
	position: relative;
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--vr-commerce-border);
	border-radius: 16px;
	background: var(--vr-commerce-white);
	box-shadow: 0 9px 24px rgba(4, 32, 61, 0.06);
}

.vr-commerce-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: #dce8ef;
	text-decoration: none;
}

.vr-commerce-card--gift .vr-commerce-card__media {
	aspect-ratio: 16 / 8.1;
}

.vr-commerce-card--product .vr-commerce-card__media {
	aspect-ratio: 1 / 0.82;
}

.vr-commerce-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 260ms ease;
}

.vr-commerce-card:hover .vr-commerce-card__media img {
	transform: scale(1.025);
}

.vr-commerce-card__badge {
	position: absolute;
	z-index: 2;
	top: 14px;
	left: 14px;
	padding: 6px 11px;
	border-radius: 999px;
	background: var(--vr-commerce-primary);
	color: var(--vr-commerce-white);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1;
	text-transform: uppercase;
}

.vr-commerce-card__gift-overlay {
	position: absolute;
	z-index: 2;
	left: 0;
	bottom: 0;
	display: flex;
	min-width: 42%;
	min-height: 47%;
	flex-direction: column;
	justify-content: center;
	padding: 16px 20px;
	border-radius: 0 22px 0 0;
	background: rgba(41, 139, 253, 0.92);
	color: var(--vr-commerce-white);
	backdrop-filter: blur(3px);
}

.vr-commerce-card__gift-overlay small {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.1;
	text-transform: uppercase;
}

.vr-commerce-card__gift-overlay strong,
.vr-commerce-card__gift-overlay .amount {
	margin-top: 4px;
	color: var(--vr-commerce-white);
	font-family:
		Impact,
		Haettenschweiler,
		"Arial Narrow Bold",
		"Arial Narrow",
		sans-serif;
	font-size: clamp(28px, 2.8vw, 42px);
	font-weight: 400;
	line-height: 0.95;
}

.vr-commerce-card__gift-overlay del,
.vr-commerce-card__gift-overlay ins {
	color: inherit;
	text-decoration-color: currentColor;
}

.vr-commerce-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 18px 20px 19px;
}

.vr-commerce-card__heading-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 12px;
}

.vr-commerce-card__title {
	min-width: 0;
	margin: 0;
	color: var(--vr-commerce-navy);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
}

.vr-commerce-card__title a {
	color: inherit;
	text-decoration: none;
}

.vr-commerce-card__price {
	color: var(--vr-commerce-primary);
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.vr-commerce-card__price del {
	margin-right: 3px;
	color: var(--vr-commerce-muted);
	font-size: 11px;
}

.vr-commerce-card__price ins {
	color: inherit;
	text-decoration: none;
}

.vr-commerce-card__summary {
	margin: 9px 0 0;
	color: var(--vr-commerce-muted);
	font-size: 12px;
	line-height: 1.45;
}

.vr-commerce-card__validity {
	position: relative;
	margin: 15px 0 0;
	padding-left: 20px;
	color: var(--vr-commerce-muted);
	font-size: 11px;
	line-height: 1.3;
}

.vr-commerce-card__validity::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 12px;
	height: 12px;
	transform: translateY(-50%);
	border: 1.5px solid var(--vr-commerce-muted);
	border-radius: 3px;
}

.vr-commerce-card__swatches {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 16px 0 0;
}

.vr-commerce-swatch {
	display: block;
	width: 15px;
	height: 15px;
	border: 1px solid rgba(4, 32, 61, 0.12);
	border-radius: 50%;
	background: var(--vr-swatch-color, #78909c);
	box-shadow: 0 0 0 2px #fff;
}

.vr-commerce-swatch--noir,
.vr-commerce-swatch--black {
	background: #071d31;
}

.vr-commerce-swatch--bleu,
.vr-commerce-swatch--blue,
.vr-commerce-swatch--marine,
.vr-commerce-swatch--navy {
	background: #174b73;
}

.vr-commerce-swatch--gris,
.vr-commerce-swatch--gray,
.vr-commerce-swatch--grey {
	background: #8998a4;
}

.vr-commerce-swatch--blanc,
.vr-commerce-swatch--white {
	background: #f7f7f7;
}

.vr-commerce-swatch--vert,
.vr-commerce-swatch--green {
	background: #2f7d6d;
}

.vr-commerce-card__actions {
	margin-top: auto;
	padding-top: 17px;
}

.vr-commerce-button {
	box-sizing: border-box;
	display: inline-flex;
	width: 100%;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	transition:
		transform 180ms ease,
		filter 180ms ease;
}

.vr-commerce-button::after {
	content: "\203A";
	margin-left: 10px;
	font-size: 16px;
	font-weight: 400;
}

.vr-commerce-button--gift {
	border: 1px solid var(--vr-commerce-navy);
	background: var(--vr-commerce-navy);
	color: var(--vr-commerce-white);
}

.vr-commerce-button--product {
	border: 1px solid #9fb3c2;
	background: var(--vr-commerce-white);
	color: var(--vr-commerce-navy);
}


.vr-commerce-button--disabled {
	border: 1px solid #cfd7dd;
	background: #d8dde1;
	color: #ffffff;
	cursor: not-allowed;
}

.vr-commerce-button:hover,
.vr-commerce-button:focus-visible {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.vr-commerce-empty {
	box-sizing: border-box;
	margin: 0;
	padding: 22px;
	border: 1px dashed var(--vr-commerce-border);
	border-radius: 12px;
	color: var(--vr-commerce-muted);
	background: rgba(255, 255, 255, 0.58);
	font-size: 14px;
}

@media (max-width: 980px) {
	.vr-commerce-grid--gift,
	.vr-commerce-grid--products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.vr-commerce-section {
		padding: 44px 16px;
	}

	.vr-commerce-grid--gift,
	.vr-commerce-grid--products {
		grid-template-columns: 1fr;
	}

	.vr-commerce-section__title {
		font-size: clamp(36px, 11vw, 50px);
	}

	.vr-commerce-card__body {
		padding: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vr-commerce-card__media img,
	.vr-commerce-button {
		transition: none;
	}

	.vr-commerce-card:hover .vr-commerce-card__media img,
	.vr-commerce-button:hover,
	.vr-commerce-button:focus-visible {
		transform: none;
	}
}

/* =========================================================
   v1.3.0 — ACHAT DIRECT + VARIATIONS DANS LES CARTES
   ========================================================= */

.vr-commerce-catalog .vr-commerce-button,
.vr-commerce-catalog button.vr-commerce-button {
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	cursor: pointer;
}

/* Couleurs verrouillées au hover/focus : aucun texte ne disparaît. */
.vr-commerce-catalog .vr-commerce-button--gift,
.vr-commerce-catalog .vr-commerce-button--gift:hover,
.vr-commerce-catalog .vr-commerce-button--gift:focus-visible {
	border-color: var(--vr-commerce-navy) !important;
	background: var(--vr-commerce-navy) !important;
	color: var(--vr-commerce-white) !important;
}

.vr-commerce-catalog .vr-commerce-button--product,
.vr-commerce-catalog .vr-commerce-button--product:hover,
.vr-commerce-catalog .vr-commerce-button--product:focus-visible {
	border-color: #9fb3c2 !important;
	background: var(--vr-commerce-white) !important;
	color: var(--vr-commerce-navy) !important;
}

.vr-commerce-catalog .vr-commerce-button--gift:hover,
.vr-commerce-catalog .vr-commerce-button--gift:focus-visible,
.vr-commerce-catalog .vr-commerce-button--product:hover,
.vr-commerce-catalog .vr-commerce-button--product:focus-visible {
	transform: translateY(-2px) !important;
	filter: brightness(1.02) !important;
	box-shadow: 0 9px 20px rgba(4, 32, 61, 0.14) !important;
}

.vr-commerce-catalog .vr-commerce-button--disabled,
.vr-commerce-catalog .vr-commerce-button--disabled:hover,
.vr-commerce-catalog .vr-commerce-button--disabled:focus,
.vr-commerce-catalog .vr-commerce-button--disabled:focus-visible,
.vr-commerce-catalog .vr-commerce-button:disabled {
	border-color: #cfd7dd !important;
	background: #d8dde1 !important;
	color: #ffffff !important;
	transform: none !important;
	filter: none !important;
	box-shadow: none !important;
	cursor: not-allowed !important;
	opacity: 1 !important;
}

.vr-commerce-catalog .vr-commerce-button.is-loading {
	cursor: progress !important;
}

.vr-commerce-catalog .vr-commerce-button.is-added {
	border-color: var(--vr-commerce-primary) !important;
	background: var(--vr-commerce-primary) !important;
	color: #ffffff !important;
}

.vr-commerce-variation-form {
	width: 100%;
	margin: 15px 0 0 !important;
	padding: 0 !important;
}

.vr-commerce-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
	width: 100%;
}

.vr-commerce-option {
	min-width: 0;
}

.vr-commerce-option label {
	display: block;
	margin: 0 0 5px;
	color: var(--vr-commerce-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.vr-commerce-option select {
	box-sizing: border-box;
	display: block;
	width: 100% !important;
	min-width: 0 !important;
	height: 38px;
	margin: 0 !important;
	padding: 0 30px 0 10px !important;
	border: 1px solid #b8c9d6 !important;
	border-radius: 10px !important;
	background-color: #ffffff !important;
	color: var(--vr-commerce-navy) !important;
	box-shadow: none !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

.vr-commerce-option select:focus {
	border-color: var(--vr-commerce-primary) !important;
	outline: 2px solid rgba(41, 139, 253, .16) !important;
	outline-offset: 1px;
}

.vr-commerce-variation-form .reset_variations,
.vr-commerce-variation-form .single_variation_wrap,
.vr-commerce-variation-form .woocommerce-variation,
.vr-commerce-variation-form .woocommerce-variation-add-to-cart {
	display: none !important;
}

@media (max-width: 360px) {
	.vr-commerce-options {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   v1.3.1 — CARTES CADEAUX FIXES + VARIATIONS FIABLES
   ========================================================= */

/* Une carte cadeau affichée dans le catalogue a déjà son montant :
   aucun sélecteur de montant n'est affiché. */
.vr-commerce-card--gift .vr-commerce-variation-form,
.vr-commerce-card--gift .vr-commerce-options {
	display: none !important;
}

/* Les cartes cadeaux disponibles gardent immédiatement leur CTA bleu marine. */
.vr-commerce-card--gift .vr-commerce-card__actions {
	padding-top: 22px;
}

/* Produit variable : grisé uniquement tant qu'une combinaison valide
   n'est pas encore choisie. Dès qu'elle l'est, le style normal revient. */
.vr-commerce-catalog .vr-commerce-add-to-cart--variable:not(:disabled) {
	border-color: #9fb3c2 !important;
	background: var(--vr-commerce-white) !important;
	color: var(--vr-commerce-navy) !important;
	cursor: pointer !important;
}

.vr-commerce-catalog .vr-commerce-add-to-cart--variable:not(:disabled):hover,
.vr-commerce-catalog .vr-commerce-add-to-cart--variable:not(:disabled):focus-visible {
	border-color: var(--vr-commerce-navy) !important;
	background: var(--vr-commerce-navy) !important;
	color: #ffffff !important;
}

/* =========================================================
   v1.3.2 — PAS DE LIEN "VIEW CART" DANS LES CARTES
   Le panier/mini-panier continue à se mettre à jour normalement.
   ========================================================= */
.vr-commerce-catalog .added_to_cart.wc-forward,
.vr-commerce-card .added_to_cart.wc-forward {
	display: none !important;
}


/* =========================================================
   v1.4.0 — INTÉGRATION PW WOOCOMMERCE GIFT CARDS
   Recipient email / From / Message directement dans la carte.
   ========================================================= */

.vr-commerce-card__actions--pwgc {
	padding-top: 18px;
}

.vr-commerce-pwgc {
	box-sizing: border-box;
	width: 100%;
}

.vr-commerce-pwgc__panel[hidden] {
	display: none !important;
}

.vr-commerce-pwgc__panel {
	box-sizing: border-box;
	width: 100%;
	margin-top: 12px;
	padding: 14px;
	border: 1px solid var(--vr-commerce-border);
	border-radius: 13px;
	background: #f7fbff;
}

.vr-commerce-pwgc__field + .vr-commerce-pwgc__field {
	margin-top: 10px;
}

.vr-commerce-pwgc__field label {
	display: block;
	margin: 0 0 5px;
	color: var(--vr-commerce-navy);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .045em;
	line-height: 1.25;
	text-transform: uppercase;
}

.vr-commerce-pwgc__field label small {
	color: var(--vr-commerce-muted);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.vr-commerce-pwgc__input,
.vr-commerce-pwgc__textarea {
	box-sizing: border-box !important;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border: 1px solid #b9cad6 !important;
	border-radius: 9px !important;
	background: #ffffff !important;
	color: var(--vr-commerce-navy) !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
}

.vr-commerce-pwgc__input {
	height: 40px !important;
	padding: 0 11px !important;
}

.vr-commerce-pwgc__textarea {
	min-height: 72px !important;
	padding: 10px 11px !important;
	resize: vertical;
}

.vr-commerce-pwgc__input:focus,
.vr-commerce-pwgc__textarea:focus {
	border-color: var(--vr-commerce-primary) !important;
	outline: 2px solid rgba(41, 139, 253, .16) !important;
	outline-offset: 1px;
}

.vr-commerce-pwgc__help {
	margin: 10px 0 0;
	color: var(--vr-commerce-muted);
	font-size: 10px;
	line-height: 1.4;
}

.vr-commerce-pwgc__error {
	min-height: 0;
	margin: 8px 0 0;
	color: #b42318;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.35;
}

.vr-commerce-pwgc__error:empty {
	display: none;
}

.vr-commerce-pwgc__panel .vr-commerce-pwgc-add {
	margin-top: 12px;
}

.vr-commerce-gift-personalize[aria-expanded="true"] {
	border-color: var(--vr-commerce-navy) !important;
	background: #ffffff !important;
	color: var(--vr-commerce-navy) !important;
}

@media (max-width: 620px) {
	.vr-commerce-pwgc__panel {
		padding: 13px;
	}

	.vr-commerce-pwgc__input {
		height: 44px !important;
		font-size: 14px !important;
	}

	.vr-commerce-pwgc__textarea {
		min-height: 82px !important;
		font-size: 14px !important;
	}
}
