/* Vitrine Magasin – SteinGDev */
.vtm {
	--vtm-gold: #e9c46a;
	--vtm-gold-soft: #f7e6b0;
	--vtm-cols-d: 4; --vtm-cols-t: 3; --vtm-cols-m: 2;
	--vtm-ratio: 1 / 1;
	--vtm-gap: 18px;
	position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box;
	container-type: inline-size;
	padding: 34px clamp(14px, 3vw, 34px) 30px; border-radius: 22px;
}
.vtm *, .vtm *::before, .vtm *::after { box-sizing: border-box; }

/* Ambiances */
.vtm--nuit, .vtm-modal--nuit {
	--vtm-bg: radial-gradient(130% 100% at 50% 0%, #1a2350 0%, #0c1431 62%);
	--vtm-text: #eef0fb; --vtm-muted: #b7bfdf;
	--vtm-card: rgba(255, 255, 255, .05); --vtm-line: rgba(233, 196, 106, .26);
	--vtm-field: rgba(255, 255, 255, .07); --vtm-media-bg: #121a3d;
	--vtm-modal: #0f1738; --vtm-price: #f7e6b0;
	--vtm-shadow: 0 20px 50px -28px rgba(5, 10, 30, .75);
}
.vtm--creme, .vtm-modal--creme {
	--vtm-bg: linear-gradient(180deg, #fdf9ef 0%, #f6eedb 100%);
	--vtm-text: #1d2448; --vtm-muted: #6b6f86;
	--vtm-card: #ffffff; --vtm-line: rgba(201, 162, 74, .35);
	--vtm-field: #ffffff; --vtm-media-bg: #f3ecdc;
	--vtm-modal: #fffdf7; --vtm-price: #8a6510;
	--vtm-shadow: 0 18px 40px -30px rgba(80, 60, 20, .5);
}
.vtm { background: var(--vtm-bg); color: var(--vtm-text); box-shadow: var(--vtm-shadow); }
.vtm-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; }
.vtm--nuit .vtm-sky {
	opacity: .7;
	background-image:
		radial-gradient(1px 1px at 7% 14%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 21% 66%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 36% 24%, #f7e6b0 50%, transparent 51%),
		radial-gradient(1px 1px at 52% 86%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 63% 9%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 77% 58%, #f7e6b0 50%, transparent 51%),
		radial-gradient(1px 1px at 88% 22%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 95% 78%, #fff 50%, transparent 51%);
	background-size: 640px 480px;
}

/* En-tête */
.vtm-head { text-align: center; max-width: 760px; margin: 0 auto 22px; }
.vtm .vtm-title { color: var(--vtm-text); margin: 0; padding: 0; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; }
.vtm-star { color: var(--vtm-gold); text-shadow: 0 0 12px rgba(233, 196, 106, .7); }
.vtm .vtm-sub { color: var(--vtm-muted); margin: 6px 0 0; padding: 0; font-size: 15px; }
.vtm-empty { text-align: center; color: var(--vtm-muted); font-size: 16px; padding: 30px 0; margin: 0; }

/* Outils */
.vtm-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.vtm-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.vtm .vtm-chip {
	display: inline-flex; align-items: center; gap: 6px; margin: 0;
	padding: 7px 14px; border-radius: 999px; font-size: 14px; line-height: 1.2; cursor: pointer;
	background: var(--vtm-field); color: var(--vtm-text); border: 1px solid var(--vtm-line);
	transition: background .25s, color .25s, box-shadow .25s;
}
.vtm .vtm-chip span { font-size: 12px; opacity: .65; }
.vtm .vtm-chip:hover { border-color: var(--vtm-gold); }
.vtm .vtm-chip.is-active { background: linear-gradient(135deg, var(--vtm-gold-soft), var(--vtm-gold)); color: #0c1431; border-color: transparent; box-shadow: 0 6px 16px -8px rgba(233, 196, 106, .9); }
.vtm .vtm-chip.is-active span { opacity: .8; }
.vtm-tools-right { display: flex; gap: 10px; margin-left: auto; }
.vtm .vtm-search input, .vtm .vtm-sort select {
	height: 38px; margin: 0; padding: 0 14px; border-radius: 999px; font-size: 14px; line-height: 1;
	background: var(--vtm-field); color: var(--vtm-text); border: 1px solid var(--vtm-line); box-shadow: none;
}
.vtm .vtm-search input { width: 190px; }
.vtm .vtm-search input::placeholder { color: var(--vtm-muted); }
.vtm .vtm-sort select { padding-right: 30px; cursor: pointer; }
.vtm--nuit .vtm-sort option { background: #0f1738; color: #eef0fb; }
.vtm .vtm-search input:focus, .vtm .vtm-sort select:focus { outline: 2px solid var(--vtm-gold); outline-offset: 1px; }

/* Grille */
.vtm-stage { position: relative; }
.vtm--grid .vtm-list { display: grid; grid-template-columns: repeat(var(--vtm-cols-m), minmax(0, 1fr)); gap: var(--vtm-gap); }
@container (min-width: 600px) { .vtm--grid .vtm-list { grid-template-columns: repeat(var(--vtm-cols-t), minmax(0, 1fr)); } }
@container (min-width: 960px) { .vtm--grid .vtm-list { grid-template-columns: repeat(var(--vtm-cols-d), minmax(0, 1fr)); } }

/* Carrousel */
.vtm--carousel .vtm-stage { display: flex; align-items: center; gap: 10px; }
.vtm--carousel .vtm-list {
	--vtm-c: var(--vtm-cols-m);
	flex: 1; min-width: 0; display: flex; gap: var(--vtm-gap); overflow-x: auto; scroll-snap-type: x mandatory;
	scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px;
}
.vtm--carousel .vtm-list::-webkit-scrollbar { display: none; }
.vtm--carousel .vtm-card { flex: 0 0 calc((100% - (var(--vtm-c) - 1) * var(--vtm-gap)) / var(--vtm-c)); scroll-snap-align: start; }
@container (min-width: 600px) { .vtm--carousel .vtm-list { --vtm-c: var(--vtm-cols-t); } }
@container (min-width: 960px) { .vtm--carousel .vtm-list { --vtm-c: var(--vtm-cols-d); } }
.vtm .vtm-arrow {
	flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
	background: var(--vtm-field); border: 1px solid var(--vtm-line); color: var(--vtm-gold); font-size: 24px; line-height: 1;
	transition: transform .25s, background .25s;
}
.vtm .vtm-arrow:hover { transform: scale(1.07); background: rgba(233, 196, 106, .16); }
.vtm .vtm-arrow[disabled] { opacity: .3; cursor: default; transform: none; }

/* Cartes */
.vtm-card { min-width: 0; }
.vtm-card[hidden] { display: none !important; }
.vtm .vtm-card-btn {
	display: flex; flex-direction: column; width: 100%; height: 100%; margin: 0; padding: 0; text-align: left; cursor: pointer;
	background: var(--vtm-card); color: inherit; border: 1px solid var(--vtm-line); border-radius: 16px; overflow: hidden;
	font: inherit; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.vtm .vtm-card-btn:hover, .vtm .vtm-card-btn:focus-visible { transform: translateY(-4px); border-color: rgba(233, 196, 106, .7); box-shadow: 0 16px 30px -18px rgba(233, 196, 106, .55); }
.vtm .vtm-card-btn:focus-visible { outline: 2px solid var(--vtm-gold); outline-offset: 2px; }
.vtm-media { position: relative; display: block; aspect-ratio: var(--vtm-ratio); background: var(--vtm-media-bg); overflow: hidden; }
.vtm .vtm-img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; max-width: none; transition: transform .6s ease; }
.vtm .vtm-card-btn:hover .vtm-img { transform: scale(1.05); }
.vtm-noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: var(--vtm-gold); opacity: .5; }
.vtm-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.vtm-badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.vtm-badge--new { color: #0c1431; background: linear-gradient(135deg, #f7e6b0, #e9c46a); box-shadow: 0 4px 12px -4px rgba(233, 196, 106, .9); }
.vtm-badge--out { color: #fff; background: rgba(40, 30, 50, .82); }
.vtm-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; font-size: 12px; color: #fff; background: rgba(12, 20, 49, .65); }
.vtm-card.is-soldout .vtm-img { filter: grayscale(.65); opacity: .75; }
.vtm-info { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.vtm-cat { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--vtm-gold); }
.vtm--creme .vtm-cat { color: #a07a12; }
.vtm-name { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--vtm-text); }
.vtm-price { font-size: 13.5px; font-weight: 600; color: var(--vtm-price); margin-top: 2px; }

.vtm-none { text-align: center; color: var(--vtm-muted); margin: 18px 0 0; }
.vtm-more-wrap { text-align: center; margin-top: 24px; }
.vtm .vtm-more {
	padding: 11px 26px; border-radius: 999px; border: 1px solid var(--vtm-gold); cursor: pointer; font-weight: 600; font-size: 14px;
	color: var(--vtm-text); background: transparent; transition: background .25s, color .25s;
}
.vtm .vtm-more:hover { background: linear-gradient(135deg, var(--vtm-gold-soft), var(--vtm-gold)); color: #0c1431; }

/* -------- Pop-up produit -------- */
html.vtm-noscroll, html.vtm-noscroll body { overflow: hidden; }
.vtm-modal {
	position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px;
	background: rgba(6, 10, 28, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	opacity: 0; transition: opacity .3s ease;
}
.vtm-modal[hidden] { display: none; }
.vtm-modal.is-open { opacity: 1; }
.vtm-dialog {
	position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	width: 100%; max-width: 1040px; height: min(760px, calc(100vh - 48px)); grid-template-rows: minmax(0, 1fr); overflow: hidden;
	border-radius: 20px; background: var(--vtm-modal); color: var(--vtm-text);
	border: 1px solid var(--vtm-line); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7);
	transform: translateY(16px) scale(.98); transition: transform .35s cubic-bezier(.2, .8, .3, 1.1);
}
.vtm-modal.is-open .vtm-dialog { transform: none; }
.vtm-modal .vtm-x {
	position: absolute; top: 12px; right: 12px; z-index: 5; width: 38px; height: 38px; padding: 0; border-radius: 50%; cursor: pointer;
	display: grid; place-items: center; font-size: 22px; line-height: 1;
	background: rgba(12, 20, 49, .7); color: #f7e6b0; border: 1px solid rgba(233, 196, 106, .5);
}
.vtm-modal .vtm-x:hover { background: #1a2350; }

.vtm-gal { position: relative; display: flex; flex-direction: column; background: var(--vtm-media-bg); min-height: 0; height: 100%; overflow: hidden; }
.vtm-slides { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; min-height: 0; }
.vtm-slides::-webkit-scrollbar { display: none; }
.vtm-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
.vtm-slide img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; display: block; margin: 0; }
.vtm-modal .vtm-gnav {
	position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
	display: grid; place-items: center; font-size: 24px; line-height: 1;
	background: rgba(12, 20, 49, .55); color: #fff; border: 0;
}
.vtm-modal .vtm-gprev { left: 12px; }
.vtm-modal .vtm-gnext { right: 12px; }
.vtm-modal .vtm-gnav:hover { background: rgba(12, 20, 49, .85); }
.vtm-thumbs { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; scrollbar-width: thin; justify-content: center; }
.vtm-modal .vtm-thumb { flex: 0 0 58px; height: 58px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: .6; background: none; transition: opacity .2s, border-color .2s; }
.vtm-modal .vtm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.vtm-modal .vtm-thumb.is-active { border-color: #e9c46a; opacity: 1; }

.vtm-detail { display: flex; flex-direction: column; gap: 12px; padding: 34px 30px 26px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.vtm-d-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #e9c46a; }
.vtm-modal--creme .vtm-d-cat { color: #a07a12; }
.vtm-modal .vtm-d-name { margin: 0; padding: 0; font-size: 20px; line-height: 1.25; color: var(--vtm-text); }
.vtm-d-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.vtm-d-price { font-size: 18px; font-weight: 700; color: var(--vtm-price); }
.vtm-d-stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.vtm-d-stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3ccf7d; box-shadow: 0 0 8px #3ccf7d; }
.vtm-d-stock.is-out::before { background: #d06a6a; box-shadow: none; }
.vtm-d-desc { position: relative; font-size: 13.5px; line-height: 1.6; color: var(--vtm-text); opacity: .92; }
.vtm-d-desc p { margin: 0 0 .6em; font-size: inherit; line-height: inherit; }
.vtm-d-desc.is-clamped { max-height: 11.5em; overflow: hidden; }
.vtm-d-desc.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.5em; background: linear-gradient(transparent, var(--vtm-modal)); }
.vtm-modal .vtm-d-more { align-self: flex-start; margin: -4px 0 0; padding: 0; border: 0; background: none; color: #e9c46a; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vtm-d-store { display: flex; gap: 10px; align-items: flex-start; margin-top: auto; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; background: rgba(233, 196, 106, .1); border: 1px dashed var(--vtm-line); }
.vtm-d-store::before { content: "✦"; color: #e9c46a; }
.vtm-modal .vtm-call {
	align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; padding: 11px 22px; border-radius: 999px;
	font-weight: 700; font-size: 14px; text-decoration: none !important; color: #0c1431 !important;
	background: linear-gradient(135deg, #f7e6b0, #e9c46a); box-shadow: 0 8px 20px -10px rgba(233, 196, 106, .9);
}
.vtm-pnav { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--vtm-line); }
.vtm-modal .vtm-pnav button { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--vtm-muted); font-size: 12.5px; }
.vtm-modal .vtm-pnav button:hover { color: #e9c46a; }
.vtm-modal button:focus-visible, .vtm-modal a:focus-visible { outline: 2px solid #e9c46a; outline-offset: 2px; }

@media (max-width: 780px) {
	.vtm-modal { padding: 0; align-items: flex-end; }
	.vtm-dialog { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; max-height: 94vh; border-radius: 20px 20px 0 0; overflow-y: auto; }
	.vtm-gal { height: auto; }
	.vtm-slides { flex: none; height: min(56vh, 100vw); }
	.vtm-slide { height: 100%; }
	.vtm-slide img { max-height: none; }
	.vtm-detail { padding: 20px 18px 24px; overflow: visible; }
	.vtm-modal .vtm-d-name { font-size: 18px; }
	.vtm-thumbs { justify-content: flex-start; }
}
@media (max-width: 600px) {
	.vtm { padding: 24px 12px 22px; border-radius: 16px; --vtm-gap: 12px; }
	.vtm-tools { flex-direction: column; align-items: stretch; }
	.vtm-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
	.vtm-filters::-webkit-scrollbar { display: none; }
	.vtm .vtm-chip { flex: 0 0 auto; }
	.vtm-tools-right { margin-left: 0; }
	.vtm .vtm-search { flex: 1; }
	.vtm .vtm-search input { width: 100%; }
	.vtm-info { padding: 10px 11px 12px; }
	.vtm-name { font-size: 13px; }
	.vtm .vtm-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.vtm *, .vtm-modal, .vtm-modal * { transition: none !important; scroll-behavior: auto !important; }
}

/* 1.1.4 – largeurs bornées (filtres nombreux sur mobile) et champs protégés du style du thème */
.vtm-tools > * { min-width: 0; max-width: 100%; }
#top .vtm .vtm-search input, #top .vtm .vtm-sort select {
	height: 38px; margin: 0; padding: 0 14px; border-radius: 999px; font-size: 14px; line-height: 1; box-shadow: none;
	background: var(--vtm-field); color: var(--vtm-text); border: 1px solid var(--vtm-line); box-sizing: border-box;
}
#top .vtm .vtm-search input { width: 190px; max-width: 100%; }
#top .vtm .vtm-sort select { width: auto; padding-right: 30px; }
#top .vtm .vtm-search input::placeholder { color: var(--vtm-muted); opacity: 1; }
#top .vtm .vtm-search input:focus, #top .vtm .vtm-sort select:focus { outline: 2px solid var(--vtm-gold); outline-offset: 1px; border-color: transparent; }
@media (max-width: 600px) {
	.vtm-tools { width: 100%; }
	.vtm-filters, .vtm-tools-right { width: 100%; }
	.vtm-filters { width: calc(100% + 24px); }
	.vtm .vtm-search { flex: 1 1 0; min-width: 0; }
	#top .vtm .vtm-search input { width: 100%; }
	#top .vtm .vtm-sort select { max-width: 46vw; }
}

/* 1.2.0 – un ou deux boutons « Appeler » */
.vtm-calls { display: flex; flex-wrap: wrap; gap: 10px; }
.vtm-modal .vtm-call small { font-weight: 600; font-size: 12px; opacity: .7; margin-left: 4px; }
.vtm-modal .vtm-gnav[hidden], .vtm-thumbs[hidden] { display: none; }

/* 1.3.0 – liens vers l'univers et toute la boutique */
.vtm-golinks { display: flex; flex-wrap: wrap; gap: 8px; }
.vtm-modal .vtm-golink {
	display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
	text-decoration: none !important; color: var(--vtm-text) !important; border: 1px solid var(--vtm-line); background: rgba(233, 196, 106, .08);
	transition: background .2s, border-color .2s;
}
.vtm-modal .vtm-golink:hover { background: rgba(233, 196, 106, .18); border-color: #e9c46a; }
.vtm-modal .vtm-golink--all { color: #e9c46a !important; }
