/* =========================================================
   Shop Catalog Section (Popular Categories + Products Grid)
   ========================================================= */

.shop-catalog {
	--sc-accent: #f7941d;
	--sc-accent-soft: #fdece0;
	--sc-price: #a89f3f;
	--sc-text: #1d1d1d;
	--sc-muted: #8b8b8b;
	--sc-bg: #f3f4f6;
	--sc-card-bg: #ffffff;
	--sc-border: #ececec;
	--sc-radius: 14px;
	--sc-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);

	background: var(--sc-bg);
    margin: 0 !important;
    padding: 32px 0;
}

.shop-catalog__container {
	display: flex;
	align-items: flex-start;
	gap: 28px;
}

/* ---------- Sidebar ---------- */

.shop-catalog__sidebar {
	flex: 0 0 150px;
	width: 150px;
}

.shop-catalog__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--sc-text);
	margin: 0 0 16px;
}

.shop-catalog__title span {
	color: var(--sc-accent);
}

.shop-catalog__cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.shop-catalog__cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--sc-card-bg);
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius);
	box-shadow: var(--sc-shadow);
	padding: 16px 8px;
	text-decoration: none;
	color: var(--sc-text);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	line-height: 1.3;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.shop-catalog__cat-card:hover {
	transform: translateY(-2px);
	border-color: var(--sc-accent);
}

.shop-catalog__cat-card.is-active {
	background: var(--sc-accent-soft);
	border-color: var(--sc-accent);
	color: var(--sc-accent);
}

.shop-catalog__cat-icon {
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sc-accent);
}

.shop-catalog__cat-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ---------- Main column ---------- */

.shop-catalog__main {
	flex: 1;
	min-width: 0;
    overflow: hidden;
    width: 100%;
}

/* Filter pills row, horizontal scroll */
.shop-catalog__filters {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 8px;
	margin-bottom: 24px;
	scrollbar-width: thin;
}

.shop-catalog__filters::-webkit-scrollbar {
	height: 5px;
}

.shop-catalog__filters::-webkit-scrollbar-thumb {
	background: #d9d9d9;
	border-radius: 10px;
}

.shop-catalog__filter-pill {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 10px 22px;
	border-radius: 30px;
	background: var(--sc-card-bg);
	border: 1px solid var(--sc-border);
	color: var(--sc-text);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.shop-catalog__filter-pill:hover {
	border-color: var(--sc-accent);
}

.shop-catalog__filter-pill.is-active {
	background: var(--sc-accent);
	border-color: var(--sc-accent);
	color: #fff;
}

/* Products grid */
.shop-catalog__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.shop-catalog__product {
	display: flex;
	flex-direction: column;
	background: var(--sc-card-bg);
	border: 1px solid var(--sc-border);
	border-radius: var(--sc-radius);
	box-shadow: var(--sc-shadow);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shop-catalog__product:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.shop-catalog__product-image {
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	padding: 12px;
	overflow: hidden;
}

.shop-catalog__product-image img {
	width: auto;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
	margin: 0 auto;
}

.shop-catalog__product-info {
	padding: 10px 14px 16px;
	text-align: center;
}

.shop-catalog__product-title {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--sc-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.shop-catalog__product-price {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--sc-price);
}

.shop-catalog__product-price del {
	color: var(--sc-muted);
	font-weight: 400;
	margin-right: 6px;
}

.shop-catalog__empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--sc-muted);
	padding: 40px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
	.shop-catalog__container {
		flex-direction: column;
	}

	.shop-catalog__sidebar {
		width: 100%;
		flex: none;
	}

	.shop-catalog__cat-list {
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 6px;
	}

	.shop-catalog__cat-list li {
		flex: 0 0 110px;
	}

	.shop-catalog__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 640px) {
	.shop-catalog__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.shop-catalog__product-image {
		height: 140px;
	}
}