/* Peptide Catalog Styles */

/* Category Navigation */
.category-navigation {
	width: 100%;
	margin-bottom: 40px;
}

.category-nav-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: flex-start;
}

.category-nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	border: 2px solid #E0E0E0;
	border-radius: 50px;
	background-color: #FFFFFF;
	color: #333333;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 500;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	min-height: 50px;
}

.category-nav-btn:hover {
	background-color: #0066A6;
	border-color: #0066A6;
	color: #FFFFFF;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 102, 166, 0.25);
	text-decoration: none !important;
}

.category-nav-btn.active {
	background-color: #0066A6;
	border-color: #0066A6;
	color: #FFFFFF;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(0, 102, 166, 0.2);
	text-decoration: none !important;
}

.category-nav-btn.active:hover {
	background-color: #004a80;
	border-color: #004a80;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0, 74, 128, 0.3);
	text-decoration: none !important;
}

.category-nav-btn:focus {
	outline: 2px solid #0066A6;
	outline-offset: 2px;
}

/* Responsive Category Navigation */
@media (max-width: 768px) {
	.category-navigation {
		margin-bottom: 30px;
	}

	.category-nav-wrapper {
		gap: 12px;
	}

	.category-nav-btn {
		padding: 12px 24px;
		font-size: 15px;
		min-height: 44px;
	}
}

@media (max-width: 480px) {
	.category-navigation {
		margin-bottom: 24px;
	}

	.category-nav-wrapper {
		gap: 10px;
		justify-content: center;
	}

	.category-nav-btn {
		padding: 10px 20px;
		font-size: 14px;
		min-height: 40px;
	}
}

.peptide-catalog {
	width: 100%;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 30px;
	align-items: start;
}

/* Filters - Left Sidebar */
.peptide-filters {
	position: sticky;
	top: 20px;
}

.peptide-form-filters {
	display: flex;
	flex-direction: column;
	gap: 0;
	background-color: transparent;
}

.peptide-filter-btn {
	padding: 16px 20px;
	border: 1px solid #383838;
	border-radius: 13px;
	background-color: #ffffff;
	color: #333333;
	font-size: 15px;
	line-height: 1.3em;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: left;
	width: 100%;
	margin-bottom: 12px;
}

.peptide-filter-btn:last-child {
	margin-bottom: 0;
}

.peptide-filter-btn:hover {
	background-color: #0066A6;
	border-color: #0066A6;
	color: #ffffff;
}

.peptide-filter-btn.active {
	background-color: #0066A6;
	color: #ffffff;
	border-color: #0066A6;
}

/* Products Grid */
.peptide-products-wrapper {
	width: 100%;
}

.peptide-products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}

.peptide-product-card {
	position: relative;
	background: #F2F2F2;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #f0f0f0;
}

.peptide-product-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

/* Sale Badge */
.peptide-sale-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background-color: #0066A6;
	color: #ffffff;
	padding: 6px 14px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	z-index: 10;
}

/* Product Image */
.peptide-product-image-link {
	display: block !important;
	text-decoration: none !important;
	line-height: 0 !important;
	border: none !important;
	box-shadow: none !important;
}

.peptide-product-card .peptide-product-image-link:hover,
.peptide-product-card .peptide-product-image-link:focus {
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}

.peptide-product-image {
	width: 100% !important;
	height: 207px !important;
	background-color: #fafafa;
	display: flex !important;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
}

.peptide-product-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	transition: transform 0.3s ease;
	image-rendering: auto;
	image-rendering: -webkit-optimize-contrast;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
}

.peptide-product-card:hover .peptide-product-image img {
	transform: scale(1.03);
}

.peptide-product-image .no-image {
	color: #999;
	font-size: 14px;
}

/* Product Content */
.peptide-product-content {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.peptide-product-title {
	font-size: 17px;
	font-weight: 500;
	margin: 0 0 12px 0;
	line-height: 1.4;
	color: #1a1a1a;
}

.peptide-product-title a {
	color: #1a1a1a;
	text-decoration: none !important;
	transition: color 0.3s ease;
}

.peptide-product-title a:hover {
	color: #0066A6;
	text-decoration: none !important;
}

/* Excerpt removed from product cards */

.peptide-product-price {
	font-size: 20px;
	font-weight: 400;
	color: #055594;
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
}

.peptide-product-price del {
	color: #999;
	font-size: 16px;
	margin-right: 0;
}

.peptide-product-price ins {
	text-decoration: none;
	color: #055594;
}

/* Price element wrapper fix */
.peptide-product-price .price {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
}

/* WooCommerce Price Color Override */
.peptide-catalog .peptide-product-card .peptide-product-price .price,
.peptide-catalog .peptide-product-card .peptide-product-price .amount,
.peptide-catalog .peptide-product-card .woocommerce-Price-amount,
.peptide-product-price .woocommerce-Price-amount.amount {
	color: #055594 !important;
}

.peptide-catalog .peptide-product-card .peptide-product-price ins .amount,
.peptide-product-price ins .woocommerce-Price-amount {
	color: #055594 !important;
}

/* Actions */
.peptide-product-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: auto;
}

.peptide-btn {
	padding: 8px 16px;
	border-radius: 8px;
	border: none;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
	text-decoration: none !important;
	text-align: center;
	transition: all 0.3s ease;
	display: inline-block;
}

.peptide-btn-secondary {
	background-color: #ffffff;
	color: #0066A6;
	border: 2px solid #0066A6;
	text-decoration: none !important;
}

.peptide-btn-secondary:hover {
	background-color: #f5f8fa;
	border-color: #0066A6;
	text-decoration: none !important;
}

/* WooCommerce Button Override */
.peptide-product-actions .button {
	padding: 12px 16px !important;
	background-color: #0066A6 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	cursor: pointer !important;
	width: 100% !important;
	transition: all 0.3s ease !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
}

.peptide-product-actions .button:hover {
	background-color: #004a80 !important;
}

.peptide-product-actions .button.loading {
	opacity: 0.6;
}

/* View Cart Button (appears after adding to cart) */
.peptide-product-actions .added_to_cart {
	padding: 12px 16px !important;
	background-color: #ffffff !important;
	color: #0066A6 !important;
	border: 2px solid #0066A6 !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	width: 100% !important;
	transition: all 0.3s ease !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	text-decoration: none !important;
	box-sizing: border-box !important;
	grid-column: 1 / -1 !important;
}

.peptide-product-actions .added_to_cart:hover {
	background-color: #f5f8fa !important;
	border-color: #0066A6 !important;
	color: #0066A6 !important;
}

/* Pagination - Centered as in original */
.peptide-pagination {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.peptide-nav-pagination {
	display: flex;
	align-items: center;
	gap: 20px;
}

.peptide-page-btn {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	border: 2px solid #ddd;
	background-color: #ffffff;
	color: #333;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 18px;
}

.peptide-page-btn:hover {
	border-color: #0066A6;
	color: #0066A6;
	box-shadow: 0 2px 8px rgba(0, 102, 166, 0.15);
}

.peptide-page-btn.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.peptide-page-info {
	font-size: 14px;
	color: #666;
	white-space: nowrap;
}

/* No Products */
.no-products {
	text-align: center;
	color: #999;
	font-size: 16px;
	padding: 40px 20px;
}

/* Error Message */
.peptide-error-message {
	background-color: #fee;
	border: 1px solid #fcc;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 20px;
	color: #c33;
	font-size: 14px;
	line-height: 1.5;
}

.peptide-error-message p {
	margin: 0;
}

/* Loading State */
.peptide-products-wrapper.loading {
	opacity: 0.6;
	pointer-events: none;
}

.peptide-products-wrapper.loading::after {
	content: '';
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 4px solid #f0f0f0;
	border-top-color: #0066A6;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	z-index: 1000;
}

@keyframes spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

/* Responsive */
@media (max-width: 1400px) {
	.peptide-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 1200px) {
	.peptide-catalog {
		grid-template-columns: 260px 1fr;
		gap: 25px;
	}

	.peptide-products-grid {
		gap: 18px;
	}
}

@media (max-width: 1024px) {
	.peptide-catalog {
		grid-template-columns: 240px 1fr;
		gap: 20px;
	}

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

@media (max-width: 768px) {
	.peptide-catalog {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.peptide-filters {
		position: static;
	}

	.peptide-form-filters {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}

	.peptide-filter-btn {
		padding: 12px 20px;
		font-size: 14px;
		width: auto;
		margin-bottom: 0;
	}

	.peptide-products-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.peptide-product-card {
		border-radius: 12px;
	}

	.peptide-product-image {
		height: 180px !important;
	}

	.peptide-product-content {
		padding: 16px;
	}

	.peptide-product-title {
		font-size: 15px;
		margin-bottom: 10px;
	}

	.peptide-product-price {
		font-size: 18px;
	}

	.peptide-product-actions {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.peptide-product-actions .button {
		padding: 10px 16px !important;
		font-size: 13px !important;
	}

	.peptide-nav-pagination {
		gap: 10px;
	}

	.peptide-page-btn {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.peptide-form-filters {
		flex-direction: column;
	}

	.peptide-filter-btn {
		width: 100%;
	}

	.peptide-product-image {
		height: 150px !important;
	}

	.peptide-product-actions {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.peptide-product-actions .peptide-btn,
	.peptide-product-actions .button {
		padding: 8px 16px !important;
	}

	.peptide-page-info {
		font-size: 12px;
	}
}

/* Product Form Badges (for product pages) */
.product-form-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.form-badge {
	display: inline-block;
	background-color: #D0DFF3 !important;
	color: #2274D3 !important;
	padding: 6px 16px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	border: 1px solid #D0DFF3 !important;
}

/* Clickable badge with dropdown */
.product-form-dropdown-wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

/* Label before dropdown button */
.product-form-label {
	font-size: 14px;
	font-weight: 500;
	color: #333;
	white-space: nowrap;
}

.form-badge-clickable {
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.form-badge-clickable:hover {
	background-color: #B8CCE5 !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(34, 116, 211, 0.2);
}

.form-badge-clickable[aria-expanded="true"] {
	background-color: #B8CCE5 !important;
	box-shadow: 0 2px 8px rgba(34, 116, 211, 0.15);
}

/* Arrow icon */
.form-badge-arrow {
	flex-shrink: 0;
	color: #2274D3;
	transition: transform 0.3s ease;
}

.form-badge-clickable[aria-expanded="true"] .form-badge-arrow {
	transform: rotate(180deg);
}

.form-badge-clickable:active {
	transform: translateY(0);
}

/* Dropdown Menu */
.product-form-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: 100%;
	width: max-content;
	max-width: 350px;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	padding: 8px;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-form-dropdown.active {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

/* Dropdown Form Options */
.product-form-option {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	border-radius: 6px;
	background: #ffffff;
	color: #333333;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: all 0.2s ease;
	cursor: pointer;
	border: 1px solid transparent;
}

.product-form-option:hover {
	background: #f5f8fa;
	border-color: #e0e0e0;
}

.product-form-option.active {
	background: #e6f2ff;
	color: #0066A6;
	border-color: #0066A6;
}

.product-form-option.active:hover {
	background: #d9ebff;
}

.form-option-name {
	flex: 1;
	white-space: nowrap;
}

.product-form-option svg {
	flex-shrink: 0;
	color: #0066A6;
	margin-left: 12px;
}

/* Responsive - Dropdown */
@media (max-width: 768px) {
	.form-badge {
		font-size: 13px;
		padding: 5px 14px;
	}

	.form-badge-arrow {
		width: 14px;
		height: 14px;
	}

	.product-form-dropdown {
		max-width: 300px;
		padding: 6px;
	}

	.product-form-label {
		font-size: 13px;
	}

	.product-form-option {
		padding: 9px 12px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.form-badge {
		font-size: 12px;
		padding: 5px 12px;
	}

	.form-badge-arrow {
		width: 12px;
		height: 12px;
	}

	.product-form-dropdown-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.product-form-dropdown {
		max-width: 250px;
		padding: 5px;
	}

	.product-form-label {
		font-size: 12px;
	}

	.product-form-option {
		padding: 8px 10px;
		font-size: 13px;
	}

	.product-form-option svg {
		width: 16px;
		height: 16px;
		margin-left: 8px;
	}
}
