.shop-explanation { padding: 24px; margin-bottom: 24px; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); color: var(--text-main); }
.shop-explanation h3 { font-size: 1.5rem; margin: 0 0 12px; }
.shop-explanation p { line-height: 1.6; margin: 12px 0; }
.shop-explanation .cta { display: inline-block; margin-top: 8px; text-align: center; }
.shop-window,
.panier-window {
	background: var(--bg-panel);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	box-shadow: 0 20px 60px var(--card-shadow);
	padding: 24px;
}

.shop-domain-tabs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.shop-domain-tab,
.shop-category-tab {
	border: 1px solid var(--border-soft);
	border-radius: 10px;
	background: var(--surface-soft);
	color: var(--text-main);
	padding: 9px 14px;
	cursor: pointer;
	transition: 0.2s;
}

.shop-domain-tab {
	padding: 13px 20px;
}

.shop-domain-tab:hover,
.shop-category-tab:hover,
.shop-domain-tab.active,
.shop-category-tab.active {
	background: var(--accent-very-soft);
	border-color: var(--accent);
}

.shop-main-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.shop-main-layout.panier-layout {
	grid-template-columns: minmax(0, 1fr);
}

.shop-main-layout.panier-layout .shop-items-area {
	grid-column: 1;
}

.shop-items-area {
	min-width: 0;
}

[data-shop-domain-route] {
	display: none;
}

[data-shop-domain-route].active {
	display: block;
}

.shop-domain-header {
	margin-bottom: 14px;
	padding: 14px;
	border-radius: 10px;
	background: var(--surface-soft);
	border: 1px solid var(--border-soft);
}

.shop-domain-header h3 {
	margin-bottom: 4px;
}

.shop-domain-header p {
	color: var(--text-soft);
}

.shop-categories-panel {
	border: 1px solid var(--border-soft);
	border-radius: 12px;
	background: var(--surface-soft);
	padding: 14px;
	height: fit-content;
	position: sticky;
	top: 90px;
}

.shop-categories-panel h3 {
	margin-bottom: 4px;
}

.shop-categories-panel p {
	margin-bottom: 12px;
	color: var(--text-soft);
	font-size: 0.9rem;
}

.shop-category-tabs {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.shop-category-routes [data-shop-category-route] {
	display: none;
}

.shop-category-routes [data-shop-category-route].active {
	display: block;
}

.shop-category-items-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
}

.shop-item-card {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--border-soft);
	background: var(--surface-soft);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.shop-item-card.added-pulse {
	transform: translateY(-2px) scale(1.01);
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-very-soft), 0 16px 32px var(--card-shadow-hover);
}

.shop-item-card.is-adding::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--overlay-55);
	z-index: 2;
}

.shop-item-added-overlay {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.2rem;
	color: var(--white);
	text-shadow: 0 2px 12px var(--shadow-color);
	z-index: 3;
	user-select: none;
}

.shop-item-card.is-adding .shop-item-added-overlay {
	display: flex;
}

.shop-item-image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	background: var(--surface-strong);
}

.shop-item-content {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.shop-item-title {
	font-weight: 700;
}

.shop-item-price {
	color: var(--accent-strong);
	font-weight: 700;
}

.shop-item-description {
	color: var(--text-soft);
	font-size: 0.9rem;
	line-height: 1.35;
}

.shop-item-warn {
	font-size: 0.82rem;
	color: var(--warning);
}

.shop-item-add-btn {
	margin-top: auto;
	align-self: flex-start;
	transition: transform 0.15s ease, filter 0.2s ease;
}

.shop-item-add-btn.added-pulse {
	transform: scale(1.08);
	filter: brightness(1.1);
}

.shop-item-add-btn.is-adding {
	pointer-events: none;
	opacity: 0.75;
}

.shop-bottom-warning {
	margin-bottom: 12px;
	padding: 10px;
	border-radius: 10px;
	background: var(--accent-very-soft);
	border: 1px solid var(--border-soft);
	white-space: pre-line;
	font-size: 0.9rem;
}

.panier-head {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 16px;
}

.panier-head label {
	font-weight: 600;
}

#panier-current-rubies {
	width: 180px;
	padding: 9px 12px;
	border-radius: 8px;
	border: 1px solid var(--border-soft);
	background: var(--input-surface);
	color: var(--text-main);
}

.panier-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.panier-card {
	border: 1px solid var(--border-soft);
	border-radius: 12px;
	padding: 14px;
	background: var(--surface-soft);
}

.panier-card h3 {
	margin-bottom: 12px;
}

.panier-cart-list {
	display: grid;
	gap: 8px;
}

.panier-item {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--border-soft);
	border-radius: 8px;
	padding: 8px 10px;
	background: var(--surface-very-soft);
}

.panier-item-name {
	font-weight: 600;
}

.panier-item-controls {
	display: inline-flex;
	gap: 6px;
}

.panier-item-btn {
	border: 1px solid var(--border-soft);
	border-radius: 6px;
	background: var(--surface-soft);
	color: var(--text-main);
	width: 28px;
	height: 28px;
	cursor: pointer;
}

.panier-total-line {
	margin-top: 12px;
	font-size: 1.05rem;
}

.panier-estimation-result {
	color: var(--text-soft);
	line-height: 1.45;
}

.panier-pack-list {
	margin-top: 10px;
	display: grid;
	gap: 6px;
	margin-left: 40px;
}

.panier-pack-link {
	color: var(--link);
	text-decoration: none;
	font-weight: 600;
}

.panier-pack-link:hover {
	color: var(--link-hover);
	text-decoration: underline;
}

@media (max-width: 1000px) {
	.shop-main-layout {
		grid-template-columns: 1fr;
	}

	.shop-categories-panel {
		position: static;
	}

	.shop-category-tabs {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.panier-grid {
		grid-template-columns: 1fr;
	}
}

.shop-item-info { margin: 12px 0; }
.shop-item-info summary { cursor: pointer; color: var(--link); font-weight: 600; }
.shop-item-lore { margin-top: 10px; padding: 14px; border-radius: var(--radius); background: var(--button-dark-bg); line-height: 1.5; overflow-wrap: anywhere; }
.shop-item-price del { opacity: .7; font-size: .85em; }
