/* generic */

.card-container {
	display: block;
	text-align: center;
	padding: 8px 16px;
	margin: 4px;
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	text-decoration: none;
	color: #333;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}

.card-container:hover {
	box-shadow: 0 5px 15px rgba(0,0,0,0.3);
	transform: translateY(-2px);
}

.card-container:active {
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	transform: translateY(0);
}

.footer-block {
	display: inline-block;
	text-align: left;
	margin-top: 5px;
	padding: 12px;
}

/* gallery (PhotoSwipe) */

.pswp__bullets-indicator {
	display: flex;
	flex-direction: row;
	align-items: center;
	position: absolute;
	bottom: 50px;
	left: 50%;
	transform: translate(-50%, 0);
}

.pswp__bullet {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	margin: 0 5px;
}

.pswp__bullet--active {
	background: green;
}

.pswp__custom-caption {
	background: rgba(75, 150, 75, 0.75);
	font-size: 16px;
	color: #fff;
	width: calc(100% - 32px);
	max-width: 400px;
	padding: 2px 8px;
	border-radius: 4px;
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
}

.pswp__zoom-level-indicator {
	background: #136912;
	font-size: 16px;
	line-height: 1;
	font-weight: bold;
	color: #fff;
	height: auto;
	align-self: center;
	padding: 4px 6px 5px;
	margin-right: 4px;
}

/* listing page */

.herb-icon-container img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 50%;
}

.search-header h1 {
	color: #2d5a27;
	font-weight: 600;
}

#herb-finder .dropdown-menu {
	max-height: 250px;
	overflow-y: auto;
}

.active-filters-list .badge {
	font-size: 0.8rem;
	padding: 0.4rem 0.8rem;
	border-radius: 1rem;
}

.active-filters-list .badge .btn-close {
	font-size: 0.7rem;
	margin-left: 0.5rem;
}

.no-results-message {
	text-align: center;
	padding: 3rem 1rem;
	color: #6c757d;
}

/* herb page */

.back-link {
	color: #2d5a27;
	text-decoration: none;
}

.back-link:hover {
	text-decoration: underline;
}

.herb-sheet h1 {
	color: #2d5a27;
	font-weight: 700;
	margin-bottom: 0;
}

.herb-sheet h2 {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 0.9rem;
}

.herb-latin {
	color: #6c757d;
	font-style: italic;
	font-size: 1.1rem;
}

.herb-hero {
	overflow: hidden;
}

.herb-hero .card-body {
	padding: 1.75rem;
}

.herb-hero-photo img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 260px;
	max-height: 380px;
	object-fit: cover;
}

.herb-part {
	display: inline-block;
	margin: 0;
	padding: 0.35rem 0.9rem;
	border-radius: 1rem;
	background: #eef5ec;
	color: #2d5a27;
}

.herb-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.herb-pills li {
	padding: 0.3rem 0.85rem;
	border-radius: 1rem;
	font-size: 0.95rem;
}

.herb-benefits {
	border-top: 4px solid #5a9a50;
}

.herb-benefits li {
	background: #e3f1df;
	color: #24481f;
}

.herb-warnings {
	border-top: 4px solid #e0a030;
	background: #fffaf0;
}

.herb-warnings li {
	background: #fdebc8;
	color: #6b4700;
}

.herb-usage {
	margin: 0;
	padding: 0;
	list-style: none;
}

.herb-usage li {
	padding: 0.45rem 0 0.45rem 1.8rem;
	border-bottom: 1px solid #eee;
	position: relative;
}

.herb-usage li:last-child {
	border-bottom: 0;
}

.herb-usage li::before {
	content: "✓";
	position: absolute;
	left: 0.3rem;
	color: #5a9a50;
	font-weight: bold;
}

.herb-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 0.75rem;
}

.herb-gallery img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 6px;
}

.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.product {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	padding: 1rem;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	text-align: center;
}

.product img {
	width: 100%;
	height: 150px;
	object-fit: contain;
}

.product h3 {
	flex: 1;
	margin: 0;
	font-size: 0.95rem;
	font-weight: 500;
}

.herb-notes {
	color: #6c757d;
	font-size: 0.85rem;
	margin-bottom: 2rem;
}

.herb-notes p {
	margin-bottom: 0.25rem;
}

.herb-notes a {
	color: inherit;
}
