/* ==========================================================================
   components.css — carte produit, boutons, étiquettes, pagination, formulaires
   Indépendant de WooCommerce : ces classes fonctionnent sur n'importe quelle page.
   ========================================================================== */

/* --- Carte produit (utilisée dans toute la boutique) ---------------------- */

.lune-item { display: flex; flex-direction: column; }

.lune-item__art {
	position: relative;
	aspect-ratio: 1;
	margin: 0 0 16px;
	background: var(--lune-panel);
	overflow: hidden;
}

.lune-item__art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.lune-item:hover .lune-item__art img { transform: scale(1.02); }

.lune-item__tag {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	font-size: 9.5px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--lune-bronze);
	background: var(--lune-white);
	padding: 4px 8px;
}

.lune-item__brand {
	font-size: 10.5px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--lune-muted);
	margin-bottom: 6px;
}

.lune-item__title {
	font-size: 19px;
	line-height: 1.35;
	margin: 0 0 8px;
	max-width: 30ch;
}

.lune-item__spec {
	font-size: 13px;
	color: var(--lune-muted);
	margin: 0 0 14px;
	line-height: 1.55;
}

.lune-item__buy {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
}

.lune-item__price {
	font-family: var(--lune-serif);
	font-size: 20px;
	color: var(--lune-ink);
}

.lune-item__price del,
.lune-item__price .lune-item__old {
	font-family: var(--lune-sans);
	font-size: 12.5px;
	color: var(--lune-muted);
	margin-left: 8px;
}

.lune-item__price ins { text-decoration: none; }

.lune-item__vat {
	font-size: 11px;
	color: var(--lune-muted);
	margin-top: 3px;
}

.lune-item__add {
	font-size: 10.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--lune-ink-2);
	border-bottom: 1px solid var(--lune-line);
	padding-bottom: 3px;
	white-space: nowrap;
}

.lune-item__add:hover { color: var(--lune-bronze); border-color: var(--lune-bronze); }

/* Image absente : aplat neutre, jamais d'icône bricolée */
.lune-media__empty {
	display: block;
	width: 100%;
	height: 100%;
}

/* --- Boutons -------------------------------------------------------------
   Les boutons pleins portent l'accent de la marque (#E2541B), comme l'en-tête
   et le pied de page. Le survol bascule sur l'encre pour marquer le clic.
   ------------------------------------------------------------------------ */

.lune-site .lune-btn,
.lune-site .button,
.lune-site button.button,
.lune-site input[type="submit"] {
	display: inline-block;
	border: 0;
	border-radius: var(--lune-radius);
	background: var(--lune-accent);
	color: var(--lune-white);
	font-family: var(--lune-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	padding: 15px 26px;
	cursor: pointer;
	transition: background .15s, color .15s;
}

.lune-site .lune-btn:hover,
.lune-site .button:hover,
.lune-site button.button:hover { background: var(--lune-ink); color: var(--lune-white); }

.lune-site .lune-btn--quiet {
	background: transparent;
	color: var(--lune-ink);
	border: 1px solid var(--lune-line);
}

.lune-site .lune-btn--quiet:hover { background: var(--lune-panel); color: var(--lune-ink); }

/* --- Fil d'Ariane -------------------------------------------------------- */

.lune-site .woocommerce-breadcrumb {
	font-size: 11.5px;
	letter-spacing: .04em;
	color: var(--lune-muted);
	margin: 0 0 26px;
	padding: 0;
	background: none;
}

.lune-site .woocommerce-breadcrumb a { color: var(--lune-muted); }
.lune-site .woocommerce-breadcrumb a:hover { color: var(--lune-ink); }

/* --- Pagination ---------------------------------------------------------- */

.lune-site .woocommerce-pagination { margin: 54px 0 0; text-align: left; }

.lune-site .woocommerce-pagination ul {
	display: flex;
	gap: 18px;
	border: 0;
	margin: 0;
}

.lune-site .woocommerce-pagination ul li { border: 0; margin: 0; }

.lune-site .woocommerce-pagination ul li a,
.lune-site .woocommerce-pagination ul li span {
	min-width: 0;
	padding: 0 0 3px;
	border: 0;
	border-bottom: 1px solid transparent;
	font-size: 12px;
	letter-spacing: .08em;
	color: var(--lune-muted);
	background: none;
}

.lune-site .woocommerce-pagination ul li a:hover { color: var(--lune-ink); border-bottom-color: var(--lune-ink); }
.lune-site .woocommerce-pagination ul li span.current {
	color: var(--lune-ink);
	border-bottom-color: var(--lune-ink);
	font-weight: 600;
	background: none;
}

/* --- Formulaires --------------------------------------------------------- */

.lune-site input[type="text"],
.lune-site input[type="email"],
.lune-site input[type="tel"],
.lune-site input[type="number"],
.lune-site input[type="password"],
.lune-site textarea,
.lune-site select {
	border: 0;
	border-bottom: 1px solid var(--lune-line);
	background: none;
	font-family: var(--lune-sans);
	font-size: 14px;
	color: var(--lune-ink);
	padding: 10px 0;
	border-radius: 0;
}

.lune-site input[type="text"]:focus,
.lune-site input[type="email"]:focus,
.lune-site input[type="number"]:focus,
.lune-site textarea:focus,
.lune-site select:focus { outline: 0; border-bottom-color: var(--lune-ink); }

.lune-site label { font-size: 12px; letter-spacing: .06em; color: var(--lune-ink-2); }

/* --- Messages WooCommerce ------------------------------------------------ */

.lune-site .woocommerce-message,
.lune-site .woocommerce-info,
.lune-site .woocommerce-error {
	border: 0;
	border-left: 2px solid var(--lune-ink);
	background: var(--lune-panel);
	color: var(--lune-ink);
	padding: 16px 20px;
	font-size: 14px;
	margin-bottom: 30px;
}

.lune-site .woocommerce-message .button,
.lune-site .woocommerce-info .button { float: right; padding: 8px 14px; font-size: 10px; }

/* Icônes d'information de WooCommerce : la police d'icônes du parent n'est pas
   chargée, on affiche donc un caractère parasite. On les retire. */
.lune-site .woocommerce-message::before,
.lune-site .woocommerce-info::before,
.lune-site .woocommerce-error::before { display: none; content: none; }

/* --- État vide (aucun produit dans la sélection) ------------------------- */
/* Aucun cadre, aucun fond : le vide est assumé, le texte porte la page. */

.lune-site .lune-empty {
	padding: 96px 0 120px;
	text-align: center;
}

.lune-empty .lune-cap { margin-bottom: 24px; }

.lune-site .lune-empty__title {
	font-family: var(--lune-serif);
	font-size: 42px;
	font-weight: 400;
	line-height: 1.16;
	letter-spacing: -.015em;
	max-width: 24ch;
	margin: 0 auto 24px;
}

.lune-site .lune-empty__text {
	color: var(--lune-muted);
	max-width: 46ch;
	margin: 0 auto 38px;
	font-size: 16px;
}

.lune-empty__acts {
	display: flex;
	gap: 40px;
	justify-content: center;
	flex-wrap: wrap;
}

@media (max-width: 700px) {
	.lune-empty { padding: 60px 0 80px; }
	.lune-empty__title { font-size: 30px; }
	.lune-empty__acts { gap: 26px; }
}

/* --- Messages WooCommerce : même langage, plus de « plugin » ------------- */

.lune-site .woocommerce-message,
.lune-site .woocommerce-info,
.lune-site .woocommerce-error {
	background: none;
	border: 0;
	border-top: 1px solid var(--lune-line);
	border-bottom: 1px solid var(--lune-line);
	padding: 18px 0;
	margin: 0 0 34px;
	font-size: 14px;
	color: var(--lune-ink);
	list-style: none;
}

.lune-site .woocommerce-message { border-bottom-color: var(--lune-accent); }
.lune-site .woocommerce-error { border-bottom-color: var(--lune-ink); }

.lune-site ul.woocommerce-error { padding-left: 0; }

/* --- Deux actions sur la carte produit ------------------------------------
   « In den Warenkorb » en contour, « Jetzt bestellen » en aplat accent :
   l'action directe doit se voir sans écraser la navigation.
   ------------------------------------------------------------------------ */

.lune-site .lune-item__acts {
	display: flex;
	gap: 8px;
	margin: 12px 0 0;
}

.lune-site .lune-item__cart,
.lune-site .lune-item__now {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 10px 8px;
	border: 1px solid var(--lune-ink);
	border-radius: 0;
	background: transparent;
	color: var(--lune-ink);
	font-family: var(--lune-sans);
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}

.lune-site .lune-item__now {
	background: var(--lune-accent);
	border-color: var(--lune-accent);
	color: var(--lune-white);
}

.lune-site .lune-item__cart:hover { background: var(--lune-ink); color: var(--lune-white); }
.lune-site .lune-item__now:hover { background: var(--lune-ink); border-color: var(--lune-ink); color: var(--lune-white); }

@media (max-width: 560px) {
	/* Deux colonnes de produits = cartes étroites : les boutons passent l'un sous l'autre. */
	.lune-site .lune-item__acts { flex-direction: column; gap: 6px; margin-top: 10px; }
	.lune-site .lune-item__cart,
	.lune-site .lune-item__now { padding: 9px 6px; font-size: 8.5px; letter-spacing: .1em; }
}
