/* Product Archive Shortcode Styles */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

.euro-event-product-archive {
	margin: 20px 0;
	font-family: 'Roboto', sans-serif;
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

/* Mobile Filter Button */
.euro-event-mobile-filter-btn {
	display: none;
	font-family: 'Roboto', sans-serif;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: transparent;
	color: #0B4F9F;
	border: none;
	font-size: 20px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	justify-content: start;
	margin-bottom: 20px;
}

.euro-event-mobile-filter-btn:hover {
	background: #f0f7ff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(11, 79, 159, 0.2);
}

.euro-event-mobile-filter-btn svg {
	flex-shrink: 0;
}

/* Category Filter Bar */
.euro-event-category-filter {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	padding: 20px;
	width: 280px;
	flex-shrink: 0;
    margin-top: 4rem;
	top: 20px;
}

.euro-event-category-filter-header {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 15px;
	border-bottom: 2px solid #e0e0e0;
	margin-bottom: 15px;
}

.euro-event-category-filter-header .euro-event-category-title {
	margin: 0;
	padding: 0;
}

.euro-event-close-filter {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: transparent;
	border: none;
	color: #2c3e50;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.euro-event-close-filter:hover {
	background: #f0f0f0;
	color: #0B4F9F;
}

.euro-event-category-title {
	font-size: 16px;
	font-weight: 700;
	color: #2c3e50;
	margin: 0;
	padding-bottom: 15px;
}

.euro-event-category-filter::-webkit-scrollbar {
	height: 6px;
}

.euro-event-category-filter::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

.euro-event-category-filter::-webkit-scrollbar-thumb {
	background: #0B4F9F;
	border-radius: 3px;
}

.euro-event-category-filter::-webkit-scrollbar-thumb:hover {
	background: #094180;
}

.euro-event-category-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.euro-event-category-item {
	margin: 0;
    border-bottom: 1px solid #F3F4F6;
}

/* All Products Button */
.euro-event-category-all > .euro-event-category-btn-all {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border: none;
	background: transparent;
	color: #003884;
	font-size: 16px;
	font-weight: 700;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	text-decoration: none;
	width: 100%;
	text-align: left;
}

.euro-event-category-all > .euro-event-category-btn-all:hover {
	color: #0B4F9F;
	text-decoration: underline;
}

/* Parent Category Button */
.euro-event-category-parent > .euro-event-category-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border: none;
	background: transparent;
	color: #003884;
	font-size: 16px;
	font-weight: 700;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	text-decoration: none;
	width: 100%;
	text-align: left;
}

.euro-event-category-parent > .euro-event-category-btn:hover {
	color: #0B4F9F;
	text-decoration: underline;
}

.euro-event-category-parent > .euro-event-category-btn.active {
	color: #003884;
	font-weight: 700;
}

.euro-event-category-parent > .euro-event-category-btn.active:hover {
	color: #003884;
	text-decoration: none;
}

/* Child Category Button */
.euro-event-category-child > .euro-event-category-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-left: 8px;
    padding-bottom: 1rem;
	border: none;
	background: transparent;
	color: #737373;
	font-size: 14px;
	font-weight: 400;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	text-decoration: none;
	width: 100%;
	text-align: left;
}

.euro-event-category-child > .euro-event-category-btn:hover {
	color: #0B4F9F;
	text-decoration: underline;
}

.euro-event-category-child > .euro-event-category-btn.active {
	color: #003884;
	font-weight: 700;
}

.euro-event-category-child > .euro-event-category-btn.active:hover {
	color: #003884;
	text-decoration: none;
}

/* Category Icon (Arrow) for child only */
.euro-event-category-child .euro-event-category-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	color: #8EC5EC;
    margin-bottom: 1px;
}

/* Subcategory List */
.euro-event-subcategory-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Products Grid */
.euro-event-products-container {
	position: relative;
	min-height: 200px;
	flex: 1;
	min-width: 0;
}

/* Products Title */
.euro-event-products-title {
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
	font-size: 30px;
	font-weight: 700;
    text-align: center;
	text-transform: uppercase;
	color: var(--e-global-color-primary);
	margin: 0 0 30px 0;
	line-height: 1.2;
}

.euro-event-products-grid {
	display: grid;
	gap: 20px;
	margin: 0;
	grid-template-columns: repeat(auto-fit, minmax(259px, 1fr));
}

.euro-event-grid-col-1 { grid-template-columns: 1fr; }
.euro-event-grid-col-2 { grid-template-columns: repeat(2, 1fr); }
.euro-event-grid-col-3 { grid-template-columns: repeat(3, 1fr); }
.euro-event-grid-col-4 { grid-template-columns: repeat(auto-fit, minmax(259px, 1fr)); }
.euro-event-grid-col-5 { grid-template-columns: repeat(5, 1fr); }
.euro-event-grid-col-6 { grid-template-columns: repeat(6, 1fr); }

/* Product Card (same as product-cards.css) */
.euro-event-product-card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	font-family: 'Roboto', sans-serif;
}

.euro-event-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.euro-event-product-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #0B4F9F;
	color: white;
	padding: 6px 12px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 700;
	z-index: 2;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.euro-event-product-image {
	position: relative;
	width: 100%;
	height: 240px;
	overflow: hidden;
	background: #f8f9fa;
}

.euro-event-product-image img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.euro-event-product-card:hover .euro-event-product-image img {
	transform: scale(1.05);
}

.euro-event-product-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e9ecef;
	color: #6c757d;
	font-size: 14px;
}

.euro-event-product-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.euro-event-product-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #2c3e50;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.euro-event-product-title a {
	color: #2c3e50;
	text-decoration: none;
	transition: color 0.3s ease;
}

.euro-event-product-title a:hover {
	color: #3498db;
}

.euro-event-product-icons {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.euro-event-feature-icon {
	width: 31px;
	height: 31px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.euro-event-feature-icon:hover {
	transform: scale(1.1);
	border-color: #1e73be;
}

.euro-event-feature-icon img {
	width: 31px;
	height: 31px !important;
	object-fit: contain;
}

.euro-event-product-actions {
	margin-top: auto;
	text-align: right;
}

.euro-event-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: none;
	background: none;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	color: #000000;
}

.euro-event-btn-icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.euro-event-btn-details:hover {
	color: #155a9c;
	text-decoration: underline;
}

/* Loading State */
.euro-event-loading {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
}

.euro-event-products-container.loading .euro-event-loading {
	display: block;
}

.euro-event-products-container.loading .euro-event-products-grid {
	opacity: 0.3;
	pointer-events: none;
}

.euro-event-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #0B4F9F;
	border-radius: 50%;
	animation: euro-event-spin 1s linear infinite;
}

@keyframes euro-event-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* No Products Message */
.euro-event-no-products {
	text-align: center;
	padding: 60px 20px;
	color: #6c757d;
	font-size: 16px;
}

.euro-event-no-products-icon {
	font-size: 48px;
	margin-bottom: 20px;
	opacity: 0.5;
}

/* Pagination */
.euro-event-pagination {
	margin-top: 40px;
}

.euro-event-pagination-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.euro-event-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 8px 12px;
	border: 2px solid #e0e0e0;
	background: #ffffff;
	color: #003884;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}

.euro-event-page-btn:hover {
	border-color: #0B4F9F;
	color: #0B4F9F;
	background: #f0f7ff;
	transform: translateY(-2px);
}

.euro-event-page-btn.active {
	background: #0B4F9F;
	color: #ffffff;
	border-color: #0B4F9F;
	cursor: default;
}

.euro-event-page-btn.active:hover {
	transform: none;
}

.euro-event-prev-btn,
.euro-event-next-btn {
	font-size: 18px;
	font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.euro-event-grid-col-4 { 
		grid-template-columns: repeat(3, 1fr); 
	}
	.euro-event-grid-col-5,
	.euro-event-grid-col-6 { 
		grid-template-columns: repeat(4, 1fr); 
	}
}

@media (max-width: 992px) {
	.euro-event-product-archive {
		flex-direction: column;
	}
	
	/* Show mobile filter button */
	.euro-event-mobile-filter-btn {
		display: flex;
	}
	
	/* Category filter becomes modal on mobile */
	.euro-event-category-filter {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: 100%;
		height: 100vh;
		margin: 0;
		padding: 0;
		z-index: 9999;
		border-radius: 0;
		background: rgba(0, 0, 0, 0.5);
		display: none;
		opacity: 0;
		transition: opacity 0.3s ease;
	}
	
	.euro-event-category-filter.active {
		display: block;
		opacity: 1;
	}
	
	.euro-event-category-filter::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: -1;
	}
	
	.euro-event-category-filter-header {
		display: flex;
	}
	
	.euro-event-category-filter > .euro-event-category-title-desktop {
		display: none;
	}
	
	/* Modal content container */
	.euro-event-category-filter > .euro-event-category-filter-header,
	.euro-event-category-filter > .euro-event-category-list {
		position: relative;
		background: white;
		margin: 0;
	}
	
	.euro-event-category-filter > .euro-event-category-filter-header {
		padding: 20px;
		border-radius: 0;
	}
	
	.euro-event-category-filter > .euro-event-category-list {
		padding: 0 20px 20px 20px;
		max-height: calc(100vh - 80px);
		overflow-y: auto;
	}
	
	.euro-event-grid-col-3,
	.euro-event-grid-col-4,
	.euro-event-grid-col-5,
	.euro-event-grid-col-6 { 
		grid-template-columns: repeat(2, 1fr); 
	}
	
	.euro-event-category-list {
		gap: 10px;
	}
}

@media (max-width: 768px) {
	.euro-event-products-grid {
		gap: 15px;
	}
	
	.euro-event-grid-col-2,
	.euro-event-grid-col-3,
	.euro-event-grid-col-4,
	.euro-event-grid-col-5,
	.euro-event-grid-col-6 { 
		grid-template-columns: repeat(2, 1fr); 
	}
	
	.euro-event-product-card {
		margin-bottom: 15px;
	}
	
	.euro-event-product-image {
		height: 200px;
	}
	
	.euro-event-product-content {
		padding: 15px;
	}
	
	.euro-event-product-title {
		font-size: 16px;
		min-height: auto;
	}
	
	.euro-event-feature-icon {
		width: 35px;
		height: 35px;
	}
	
	.euro-event-feature-icon img {
		width: 31px;
		height: 31px !important;
	}
	
	.euro-event-mobile-filter-btn {
		padding: 10px 16px;
		margin-bottom: 15px;
	}
	
	.euro-event-category-parent > .euro-event-category-btn,
	.euro-event-category-child > .euro-event-category-btn {
		padding: 8px 0;
		font-size: 11px;
	}
	
	.euro-event-category-child > .euro-event-category-btn {
		padding-left: 8px;
	}
}

@media (max-width: 480px) {
	.euro-event-product-image {
		height: 180px;
	}
	
	.euro-event-product-badge {
		font-size: 11px;
		padding: 5px 10px;
	}
}
