/* Look to the Gut Product Library - V1.0 styles */

.lttg-search-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.lttg-search-input {
	flex: 1 1 260px;
	max-width: 420px;
	font-family: inherit;
	font-size: 1rem;
	padding: 10px 16px;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	box-sizing: border-box;
}

.lttg-search-input:focus {
	outline: none;
	border-color: #1a1a1a;
}

.lttg-brand-dropdown,
.lttg-attribute-dropdown {
	position: relative;
	flex: 0 1 220px;
}

.lttg-brand-dropdown-toggle,
.lttg-attribute-dropdown-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-family: inherit;
	font-size: 1rem;
	padding: 10px 14px;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	box-sizing: border-box;
	color: #1a1a1a;
}

.lttg-brand-dropdown-toggle:hover,
.lttg-attribute-dropdown-toggle:hover {
	border-color: #999;
}

.lttg-brand-dropdown-toggle[aria-expanded="true"],
.lttg-attribute-dropdown-toggle[aria-expanded="true"] {
	border-color: #1a1a1a;
}

.lttg-brand-dropdown-arrow,
.lttg-attribute-dropdown-arrow {
	font-size: 0.75rem;
	color: #6b6b6b;
}

.lttg-brand-dropdown-panel,
.lttg-attribute-dropdown-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 20;
	min-width: 220px;
	max-height: 320px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 8px;
}

.lttg-attribute-dropdown-panel {
	right: 0;
	left: auto;
	width: 260px;
	max-width: 90vw;
}

.lttg-brand-dropdown-option,
.lttg-attribute-dropdown-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px;
	font-size: 0.92rem;
	color: #333;
	cursor: pointer;
	border-radius: 5px;
	white-space: nowrap;
}

.lttg-brand-dropdown-option:hover,
.lttg-attribute-dropdown-option:hover {
	background: #f5f5f5;
}

.lttg-brand-dropdown-option input[type="checkbox"],
.lttg-attribute-dropdown-option input[type="checkbox"] {
	cursor: pointer;
}

.lttg-category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.lttg-category-btn {
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid #d8d8d8;
	background: #fff;
	color: #333;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lttg-category-btn:hover {
	border-color: #999;
}

.lttg-category-btn.is-active {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

.lttg-product-library-no-results {
	color: #6b6b6b;
	font-style: italic;
	margin: 24px 0;
}

.lttg-product-library-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
	margin: 24px 0;
}

.lttg-product-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.lttg-product-card:hover,
.lttg-product-card:focus {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
	text-decoration: none;
	color: inherit;
}

.lttg-product-card-image {
	background: #f7f7f7;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.lttg-product-card-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.lttg-product-card-image-placeholder {
	width: 100%;
	height: 100%;
	background: #eee;
}

.lttg-product-card-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px 18px;
}

.lttg-product-card-brand {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b6b6b;
	margin-bottom: 2px;
}

.lttg-product-card-title {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.35;
	color: #1a1a1a;
}

.lttg-product-library-empty {
	color: #6b6b6b;
	font-style: italic;
}

@media (max-width: 480px) {
	.lttg-product-library-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 16px;
	}
}
