/* Hymy Bike - Vélos en stock : styles */

.hymy-velo-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 0;
	font-family: inherit;
}

.hymy-msg {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 20px;
}
.hymy-msg-error {
	background: #fdecea;
	color: #9d1c1c;
	border: 1px solid #f2b8b5;
}
.hymy-msg-success {
	background: #e8f5e9;
	color: #1b5e20;
	border: 1px solid #a5d6a7;
}

.hymy-velo-restreint {
	padding: 30px;
	text-align: center;
	background: #f7f7f7;
	border-radius: 8px;
}

/* ---- Formulaire ---- */
.hymy-velo-form {
	background: #fafafa;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 40px;
}
.hymy-field {
	margin-bottom: 16px;
}
.hymy-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}
.hymy-field input[type="text"],
.hymy-field input[type="number"],
.hymy-field select,
.hymy-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}
.hymy-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 600px) {
	.hymy-field-row { grid-template-columns: 1fr; }
}

.hymy-galerie-existante {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.hymy-photo-existante {
	text-align: center;
	font-size: 12px;
}
.hymy-photo-existante img {
	display: block;
	width: 90px;
	height: 90px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 4px;
}

.hymy-btn {
	display: inline-block;
	background: #1a1a1a;
	color: #fff;
	border: none;
	padding: 12px 22px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	font-size: 15px;
}
.hymy-btn:hover {
	background: #333;
	color: #fff;
}
.hymy-btn-secondary {
	background: transparent;
	color: #1a1a1a;
	border: 1px solid #ccc;
	margin-left: 10px;
}

.hymy-liste-title {
	margin-top: 30px;
}

.hymy-admin-table {
	width: 100%;
	border-collapse: collapse;
}
.hymy-admin-table th,
.hymy-admin-table td {
	text-align: left;
	padding: 10px;
	border-bottom: 1px solid #e2e2e2;
	font-size: 14px;
}
.hymy-admin-thumb {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 4px;
}
.hymy-admin-actions a {
	white-space: nowrap;
}
.hymy-danger {
	color: #c0392b;
}

/* ---- Mise en page collection (sidebar + contenu) ---- */
.hymy-shop {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 36px;
	align-items: start;
}
@media (max-width: 860px) {
	.hymy-shop {
		grid-template-columns: 1fr;
	}
}

/* ---- Sidebar de filtres ---- */
.hymy-sidebar {
	position: sticky;
	top: 20px;
}
.hymy-filtres-mobile summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 16px;
	padding: 10px 0;
	list-style: none;
}
.hymy-filtres-mobile summary::-webkit-details-marker {
	display: none;
}
.hymy-filtres-mobile summary::after {
	content: '▾';
	float: right;
}
.hymy-filtres-mobile[open] summary::after {
	content: '▴';
}
@media (min-width: 861px) {
	.hymy-filtres-mobile summary {
		display: none;
	}
}

.hymy-filtre-groupe {
	border-top: 1px solid #e2e2e2;
	padding: 16px 0;
}
.hymy-filtre-groupe:first-child {
	border-top: none;
}
.hymy-filtre-groupe h4 {
	margin: 0 0 10px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #333;
}
.hymy-filtre-option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	padding: 4px 0;
	cursor: pointer;
	color: #333;
}
.hymy-filtre-option input {
	margin: 0;
}
.hymy-prix-range {
	display: flex;
	align-items: center;
	gap: 8px;
}
.hymy-prix-range input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}
.hymy-btn-full {
	width: 100%;
	text-align: center;
	margin-top: 16px;
}

/* ---- Barre supérieure : compteur + tri ---- */
.hymy-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e2e2e2;
}
.hymy-compteur {
	margin: 0;
	font-size: 14px;
	color: #555;
}
.hymy-tri-label {
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #555;
}
.hymy-tri-label select {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}
.hymy-aucun-resultat {
	text-align: center;
	padding: 40px 0;
	color: #777;
}

/* ---- Grille de cartes ---- */
.hymy-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}
.hymy-carte {
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}
.hymy-carte:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.hymy-carte.hymy-vendu {
	opacity: 0.65;
}
.hymy-carte-image {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #f0f0f0;
}
.hymy-carte-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.hymy-badge-statut {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	background: #c0392b;
}
.hymy-badge-reserve {
	background: #e67e22;
}
.hymy-badge-vendu {
	background: #7f8c8d;
}

.hymy-carte-contenu {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.hymy-carte-contenu h3 {
	margin: 0 0 6px;
	font-size: 18px;
}
.hymy-prix {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 10px;
	color: #1a1a1a;
}
.hymy-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}
.hymy-chip {
	background: #f0f0f0;
	border-radius: 4px;
	padding: 3px 8px;
	font-size: 12px;
	color: #444;
}
.hymy-desc {
	font-size: 14px;
	color: #555;
	margin-bottom: 10px;
}
.hymy-desc p:last-child {
	margin-bottom: 0;
}

.hymy-mini-galerie {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.hymy-carte-cta {
	margin-top: auto;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}
.hymy-btn-disabled {
	background: #e2e2e2;
	color: #888;
	cursor: not-allowed;
}
.hymy-mini-photo {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	cursor: pointer;
	border: 1px solid #ddd;
}

/* ---- Lightbox ---- */
.hymy-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.85);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}
.hymy-lightbox.hymy-lightbox-open {
	display: flex;
}
.hymy-lightbox img {
	max-width: 90%;
	max-height: 85%;
	border-radius: 6px;
}
.hymy-lightbox-fermer {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
	line-height: 1;
}
