/* Dfarm — Cửa hàng / Sản phẩm (display only) */

.df-shop-main {
	padding: 3rem 0 4.5rem;
}

.df-shop-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

/* Sidebar */
.df-shop-sidebar {
	position: sticky;
	top: calc(var(--df-header-h) + 1rem);
}

.df-shop-filter {
	margin-bottom: 1.75rem;
}

.df-shop-filter__title {
    margin: 0;
    padding: 0.7rem 1.25rem;
    border: 1px solid #FFBF4A;
    border-radius: 999px;
    background: #fff;
    color: #007450;
    font-family: var(--df-font-heading);
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
}

.df-shop-cats {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.df-shop-cats__group {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.df-shop-cats__parent {
	display: block;
	padding: 0.7rem 1.15rem;
	border-radius: 999px;
	background: linear-gradient(269.91deg, #079D32 53.04%, #007450 83.57%);
	color: #fff;
	font-family: var(--df-font-heading);
	font-size: var(--df-font-size-2xl);
	font-weight: var(--df-fw-bold);
	line-height: var(--df-lh-2xl);
	text-align: left;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.df-shop-cats__parent:hover,
.df-shop-cats__parent.is-active {
	background: #007450;
	color: #fff;
	box-shadow: 0 4px 14px rgba(7, 157, 50, 0.22);
}

.df-shop-cats__children {
	list-style: none;
	margin: 0;
	padding: 0 0.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.df-shop-cats__children a {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.15rem 0;
	font-family: var(--df-font-body);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	color: #007450;
	transition: color 0.2s ease;
}

.df-shop-cats__children a:hover,
.df-shop-cats__children a.is-active {
	color: #079d32;
	font-weight: 600;
}

.df-shop-cats__dot {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #afee4d;
	flex-shrink: 0;
}

.df-shop-cats__label {
    min-width: 0;
    font-size: 24px;
    font-weight: 700;
}
.df-shop-cats__empty {
	font-size: 0.88rem;
	color: var(--df-text-muted);
	margin: 0;
}

/* Content */
.df-shop-content__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.df-shop-content__title {
	margin: 0;
	font-size: var(--df-font-size-title);
	font-weight: 600;
	color: var(--df-green-dark);
}

.df-shop-content__search {
	display: flex;
	align-items: center;
	background: #F3FFE0;
	border: 1px solid rgba(27, 67, 50, 0.14);
	border-radius: 999px;
	padding: 0.25rem 0.3rem 0.25rem 0.95rem;
	gap: 0.35rem;
	min-width: min(100%, 280px);
	min-height: 50px;
}

.df-shop-content__search input {
	flex: 1;
	border: 0;
	outline: none;
	background: transparent;
	font-family: var(--df-font-body);
	font-size: 0.9rem;
	min-width: 0;
	color: var(--df-text);
}

.df-shop-content__search button {
	width: 30px;
	height: 30px;
	border: 0;
	padding: 0;
	border-radius: 50%;
	background:transparent;
	color: var(--df-white);
	display: grid;
	place-items: center;
	cursor: pointer;
	margin-right: 5px;
}

.df-shop-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem 1.15rem;
}

/* Display-only card — không dùng thẻ a */
.df-shop-card {
	margin: 0;
	cursor: default;
	user-select: none;
}

.df-shop-card__media {
	margin: 0 0 0.75rem;
	border-radius: var(--df-radius);
	overflow: hidden;
	pointer-events: none;
}

.df-shop-card__img,
.df-shop-card__media .df-placeholder {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}

.df-shop-card__title {
	margin: 0 0 0.35rem;
	font-size: var(--df-font-size-heading);
	line-height: var(--df-lh-heading);
	color: var(--df-green-dark);
	pointer-events: none;
}

.df-shop-card__price {
	margin: 0;
	font-family: var(--df-font-body);
	font-size: var(--df-font-size-xl);
	font-weight: var(--df-fw-bold);
	line-height: var(--df-lh-2xl);
	color: var(--df-orange);
	pointer-events: none;
}

.df-shop-empty {
	padding: 2rem;
	background: var(--df-green-pale);
	border-radius: var(--df-radius);
	color: var(--df-text-muted);
	text-align: center;
}

.df-shop-pager {
	margin-top: 2.5rem;
}

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

	.df-shop-sidebar {
		position: static;
	}

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

	.df-shop-cats__parent {
		padding: 0.65rem 1rem;
		font-size: clamp(var(--df-font-size-lg), 2.5vw, var(--df-font-size-2xl));
		line-height: var(--df-lh-base-tight);
	}

	.df-shop-card__title {
		font-size: clamp(var(--df-font-size-xl), 3vw, var(--df-font-size-heading));
		line-height: var(--df-lh-heading);
	}

	.df-shop-card__price {
		font-size: var(--df-font-size-lg);
		line-height: var(--df-lh-base-tight);
	}
}

@media (max-width: 600px) {
	.df-shop-grid {
		grid-template-columns: 1fr;
	}

	.df-shop-content__head {
		flex-direction: column;
		align-items: stretch;
	}

	.df-shop-cats__parent {
		padding: 0.55rem 0.9rem;
		font-size: var(--df-font-size-lg);
		line-height: var(--df-lh-base-tight);
	}

	.df-shop-card__media {
		margin-bottom: 0.6rem;
		border-radius: 14px;
	}

	.df-shop-card__title {
		margin-bottom: 0.25rem;
		font-size: clamp(var(--df-fs-base), 5vw, var(--df-font-size-lg));
		line-height: var(--df-lh-base-tight);
	}

	.df-shop-card__price {
		font-size: var(--df-fs-nav);
		line-height: var(--df-lh-2xl);
	}
}
