/* EB Shop Feed (WooCommerce) — front-end styles */

.eb-shop {
	--eb-tabs-w: 240px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
}

/* ---------- Sidebar tabs ---------- */
.eb-shop__tabs {
	flex: 0 0 var(--eb-tabs-w);
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: sticky;
	top: 24px;
}

.eb-shop__tab {
	display: block;
	text-align: left;
	border: 0;
	cursor: pointer;
	background: #d6103c;
	color: #fff;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.3;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
	transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.eb-shop__tab:hover {
	transform: translateX(3px);
}

/* ---------- Panel ---------- */
.eb-shop__panel {
	flex: 1;
	min-width: 0;
	background: #f7f6f4;
	border-radius: 14px;
	padding: 32px 36px 40px;
	transition: opacity 0.2s ease;
}

.eb-shop__panel.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

.eb-shop__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.eb-shop__heading {
	margin: 0;
	font-weight: 800;
	font-style: italic;
	font-size: 24px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #1a1a1a;
}

.eb-shop__sort {
	appearance: none;
	-webkit-appearance: none;
	background: #fff;
	border: 2px solid #d6103c;
	border-radius: 8px;
	padding: 10px 40px 10px 14px;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #1a1a1a;
	cursor: pointer;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6103c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
}

/* ---------- Product grid ---------- */
.eb-shop__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.eb-shop__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 0;
	animation: eb-shop-in 0.35s ease both;
}

@keyframes eb-shop-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.eb-shop__img {
	display: block;
	width: 100%;
	line-height: 0;
	margin-bottom: 16px;
}

.eb-shop__img img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	transition: opacity 0.25s ease;
}

.eb-shop__img:hover img {
	opacity: 0.88;
}

.eb-shop__name {
	margin: 0 0 4px;
	font-weight: 800;
	font-size: 18px;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #1a1a1a;
}

.eb-shop__name a {
	color: inherit;
	text-decoration: none;
}

.eb-shop__price {
	font-weight: 600;
	font-size: 18px;
	color: #1a1a1a;
	margin-bottom: 14px;
}

.eb-shop__price del {
	opacity: 0.5;
	margin-right: 6px;
}

.eb-shop__btn {
	display: block;
	width: 100%;
	max-width: 260px;
	text-align: center;
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	background: #d6103c;
	border-radius: 8px;
	padding: 13px 18px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
	transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
	margin-top: auto;      /* keeps buttons aligned across a row */
}

.eb-shop__btn:hover {
	transform: translateY(-2px);
}

.eb-shop__empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 0;
	opacity: 0.6;
	font-weight: 600;
}

/* ---------- Responsive: sidebar collapses to a scrollable row ---------- */
@media (max-width: 900px) {
	.eb-shop {
		flex-direction: column;
	}

	.eb-shop__tabs {
		position: static;
		flex: none;
		width: 100%;
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 6px;
		-webkit-overflow-scrolling: touch;
	}

	.eb-shop__tab {
		flex: 0 0 auto;
		font-size: 15px;
		padding: 14px 18px;
		white-space: nowrap;
	}

	.eb-shop__tab:hover {
		transform: none;
	}

	.eb-shop__top {
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.eb-shop__grid {
		grid-template-columns: 1fr !important;
	}

	.eb-shop__panel {
		padding: 20px 16px 28px;
	}
}
