/**
 * Cirku Product Browse Block - Frontend Styles
 */

/* ==========================================================================
   Block Container
   ========================================================================== */

.cirku-product-browse-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Wide width (1400px) */
.cirku-product-browse-wrapper.cirku-width-wide {
	max-width: 1400px;
}

/* Full width */
.cirku-product-browse-wrapper.cirku-width-full {
	max-width: 100%;
	padding: 0 40px;
}

/* ==========================================================================
   View Toggle
   ========================================================================== */

.cirku-view-toggle {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	justify-content: flex-end;
}

.cirku-view-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 16px;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	border-radius: 4px;
	font-size: 14px;
	transition: all 0.3s ease;
}

.cirku-view-btn:hover {
	background: #f5f5f5;
	border-color: #999;
}

.cirku-view-btn.active {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.cirku-view-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   Product Grid Layout
   ========================================================================== */

.cirku-product-browse-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.cirku-product-browse-grid .cirku-product-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	transition: all 0.3s ease;
	position: relative;
}

.cirku-product-browse-grid .cirku-product-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* ==========================================================================
   Product List Layout
   ========================================================================== */

.cirku-product-browse-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cirku-product-browse-list .cirku-product-card {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 20px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	transition: all 0.3s ease;
}

.cirku-product-browse-list .cirku-product-image {
	width: 180px;
	height: 180px;
	margin-bottom: 0;
}

.cirku-product-browse-list .cirku-product-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Product Swipe Layout (Tinder-style)
   ========================================================================== */

.cirku-product-browse-swipe {
	position: relative;
	max-width: 500px;
	margin: 40px auto;
	height: 600px;
	perspective: 1000px;
}

.cirku-product-browse-swipe .cirku-product-card {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	padding: 0;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	cursor: grab;
	user-select: none;
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform-origin: center bottom;
}

.cirku-product-browse-swipe .cirku-product-card.swiping {
	cursor: grabbing;
	transition: none;
}

.cirku-product-browse-swipe .cirku-product-card.swiped-left {
	transform: translateX(-150%) rotate(-30deg);
	opacity: 0;
}

.cirku-product-browse-swipe .cirku-product-card.swiped-right {
	transform: translateX(150%) rotate(30deg);
	opacity: 0;
}

.cirku-product-browse-swipe .cirku-product-card:not(.active) {
	pointer-events: none;
	transform: scale(0.95);
	opacity: 0.5;
	z-index: 1;
}

.cirku-product-browse-swipe .cirku-product-card.active {
	z-index: 10;
	opacity: 1;
	transform: scale(1);
}

.cirku-product-browse-swipe .cirku-product-image {
	height: 350px;
	margin-bottom: 0;
	border-radius: 12px 12px 0 0;
}

.cirku-product-browse-swipe .cirku-product-details {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	overflow-y: auto;
}

.cirku-product-browse-swipe .cirku-product-title {
	font-size: 22px;
	margin-bottom: 5px;
}

.cirku-product-browse-swipe .cirku-product-price {
	font-size: 24px;
	margin: 10px 0;
}

.cirku-product-browse-swipe .cirku-quick-view-btn {
	margin-top: auto;
}

/* Swipe action buttons */
.cirku-swipe-actions {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin-top: 30px;
}

.cirku-swipe-action-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cirku-swipe-action-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cirku-swipe-action-btn.pass {
	background: #ff6b6b;
	color: #fff;
}

.cirku-swipe-action-btn.like {
	background: #51cf66;
	color: #fff;
}

.cirku-swipe-action-btn.info {
	background: #2271b1;
	color: #fff;
}

/* Swipe counter */
.cirku-swipe-counter {
	text-align: center;
	margin-bottom: 20px;
	font-size: 14px;
	color: #666;
}

/* No more products message */
.cirku-swipe-end {
	text-align: center;
	padding: 60px 20px;
	background: #f9f9f9;
	border-radius: 12px;
}

.cirku-swipe-end h3 {
	margin: 0 0 15px 0;
	font-size: 24px;
	color: #333;
}

.cirku-swipe-end p {
	margin: 0 0 20px 0;
	color: #666;
}

.cirku-swipe-end .button {
	display: inline-block;
	padding: 12px 30px;
	background: #2271b1;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
}

.cirku-swipe-end .button:hover {
	background: #135e96;
}

/* ==========================================================================
   Product Card Common Styles
   ========================================================================== */

.cirku-product-image {
	position: relative;
	margin-bottom: 15px;
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
	cursor: pointer;
}

/* Override button styling when image is clickable */
.cirku-product-image.cirku-quick-view-btn {
	background: #f5f5f5;
	padding: 0;
	border: none;
	margin-top: 0;
	text-align: left;
}

.cirku-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.cirku-product-image:hover img {
	transform: scale(1.05);
}

.cirku-sale-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #e74c3c;
	color: #fff;
	padding: 5px 10px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: bold;
	z-index: 2;
}

.cirku-product-details {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.cirku-product-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
	color: #333;
	cursor: pointer;
	transition: color 0.3s ease;
}

/* Override button styling when title is clickable */
.cirku-product-title.cirku-quick-view-btn {
	background: transparent;
	padding: 0;
	border: none;
	margin-top: 0;
	text-align: left;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.cirku-product-title:hover,
.cirku-product-title.cirku-quick-view-btn:hover {
	color: #2271b1;
	background: transparent;
}

.cirku-product-taxonomy-meta {
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}

.cirku-product-category {
	display: inline;
}

.cirku-product-category a {
	color: #666;
	text-decoration: none;
}

.cirku-product-category a:hover {
	color: #2271b1;
}

.cirku-product-materialer {
	display: inline;
	color: #666;
}

.cirku-product-materialer strong {
	color: #555;
	font-weight: 600;
}

.cirku-meta-separator {
	color: #999;
	margin: 0 5px;
}

.cirku-product-price {
	font-size: 20px;
	font-weight: bold;
	color: #2c3e50;
	margin: 5px 0;
}

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

.cirku-product-price ins {
	text-decoration: none;
	color: #e74c3c;
}

.cirku-product-maker {
	font-size: 13px;
	color: #555;
	line-height: 1.5;
}

.cirku-product-maker strong {
	color: #333;
	margin-right: 5px;
}

.cirku-product-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	font-size: 12px;
	margin-top: 5px;
}

.cirku-product-sku {
	color: #777;
}

.cirku-stock-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.cirku-stock-instock {
	background: #d4edda;
	color: #155724;
}

.cirku-stock-outofstock {
	background: #f8d7da;
	color: #721c24;
}

.cirku-stock-onbackorder {
	background: #fff3cd;
	color: #856404;
}

.cirku-quick-view-btn {
	margin-top: auto;
	padding: 10px 20px;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.3s ease;
	text-align: center;
}

.cirku-quick-view-btn:hover {
	background: #135e96;
}

/* ==========================================================================
   No Products Message
   ========================================================================== */

.cirku-no-products {
	text-align: center;
	padding: 60px 20px;
	background: #f9f9f9;
	border-radius: 8px;
	color: #666;
}

.cirku-no-products p {
	margin: 0;
	font-size: 16px;
}

/* ==========================================================================
   Quick View Modal
   ========================================================================== */

.cirku-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.cirku-modal.active {
	opacity: 1;
}

.cirku-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	cursor: pointer;
}

.cirku-modal-content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 900px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 1000000;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Mobile: Full width and height */
@media (max-width: 768px) {
	.cirku-modal-content {
		width: 95%;
		max-width: 100%;
		max-height: 95vh;
	}
}

.cirku-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: #fff;
	border: none;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	padding: 5px 12px;
	border-radius: 4px;
	z-index: 1000001;
	transition: all 0.3s ease;
	color: #333;
}

.cirku-modal-close:hover {
	background: #f5f5f5;
	color: #e74c3c;
}

.cirku-modal-body {
	padding: 0;
}

.cirku-modal-loading {
	text-align: center;
	padding: 60px 20px;
}

.cirku-modal-loading .spinner {
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #2271b1;
	border-radius: 50%;
	animation: cirku-spin 1s linear infinite;
	margin-bottom: 15px;
}

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

/* Modal Layout - Split View */
.cirku-modal-layout {
	display: grid;
	grid-template-columns: 60% 40%;
	min-height: 500px;
}

/* Responsive: Stack vertically on mobile/tablet */
@media (max-width: 768px) {
	.cirku-modal-layout {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.cirku-modal-gallery-container {
		min-height: 300px;
		max-height: 400px;
	}

	.cirku-modal-details {
		padding: 30px 20px !important;
	}
}

/* Gallery Container (Left Side) */
.cirku-modal-gallery-container {
	position: relative;
	background: #f5f5f5;
	border-radius: 8px 0 0 8px;
	overflow: hidden;
}

/* Mobile: Full rounded corners when stacked */
@media (max-width: 768px) {
	.cirku-modal-gallery-container {
		border-radius: 8px 8px 0 0;
	}
}

.cirku-modal-gallery {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cirku-modal-gallery-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.cirku-modal-gallery-slide.active {
	opacity: 1;
	pointer-events: auto;
}

.cirku-modal-image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Gallery Navigation Arrows */
.cirku-gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 32px;
	line-height: 1;
	color: #333;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile: Smaller arrows */
@media (max-width: 768px) {
	.cirku-gallery-arrow {
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
}

.cirku-gallery-arrow:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.1);
}

.cirku-gallery-prev {
	left: 15px;
}

.cirku-gallery-next {
	right: 15px;
}

/* Mobile: Closer to edges */
@media (max-width: 768px) {
	.cirku-gallery-prev {
		left: 10px;
	}

	.cirku-gallery-next {
		right: 10px;
	}
}

.cirku-gallery-counter {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	z-index: 10;
}

/* Mobile: Smaller counter */
@media (max-width: 768px) {
	.cirku-gallery-counter {
		bottom: 10px;
		padding: 6px 12px;
		font-size: 12px;
	}
}

/* Product Details (Right Side) */
.cirku-modal-details {
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	overflow-y: auto;
}

.cirku-modal-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0;
	color: #2c3e50;
	line-height: 1.3;
}

.cirku-modal-price {
	font-size: 28px;
	font-weight: bold;
	color: #2c3e50;
}

.cirku-modal-price del {
	color: #999;
	font-size: 22px;
	margin-right: 10px;
}

.cirku-modal-price ins {
	text-decoration: none;
	color: #e74c3c;
}

.cirku-modal-stock {
	margin: -10px 0 0 0;
}

.cirku-modal-meta {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cirku-modal-meta-row {
	display: flex;
	gap: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.cirku-modal-meta-row strong {
	color: #333;
	min-width: 80px;
	flex-shrink: 0;
}

.cirku-modal-meta-row span {
	color: #555;
}

.cirku-modal-description {
	line-height: 1.6;
	color: #555;
	font-size: 14px;
}

.cirku-modal-description p {
	margin: 0;
}

.cirku-modal-product-link {
	font-size: 14px;
	color: #666;
	margin: -10px 0 0 0;
}

.cirku-modal-product-link p {
	margin: 0;
}

.cirku-modal-product-link a {
	color: #2271b1;
	text-decoration: none;
	font-weight: 600;
}

.cirku-modal-product-link a:hover {
	text-decoration: underline;
}

.cirku-modal-actions {
	display: flex;
	gap: 12px;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

/* Mobile: Stack buttons vertically */
@media (max-width: 480px) {
	.cirku-modal-actions {
		flex-direction: column;
	}
}

.cirku-modal-actions .button {
	flex: 1;
	padding: 14px 24px;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	border: 2px solid #2271b1;
	background: transparent;
	color: #2271b1;
	white-space: nowrap;
}

/* Mobile: Full width buttons */
@media (max-width: 480px) {
	.cirku-modal-actions .button {
		width: 100%;
		padding: 16px 24px;
	}
}

.cirku-modal-actions .button:hover {
	background: #2271b1;
	color: #fff;
}

.cirku-modal-actions .button.alt {
	background: #2271b1;
	color: #fff;
}

.cirku-modal-actions .button.alt:hover {
	background: #135e96;
	border-color: #135e96;
}

/* ==========================================================================
   Pagination Styles
   ========================================================================== */

.cirku-pagination {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
	text-align: center;
}

/* Load More Button */
.cirku-load-more-btn {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 200px;
}

.cirku-load-more-btn:hover:not(:disabled) {
	background: #135e96;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.cirku-load-more-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

/* Numbered Pagination */
.cirku-numbered-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.cirku-page-btn,
.cirku-page-number {
	padding: 10px 16px;
	background: #fff;
	border: 1px solid #ddd;
	color: #333;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	border-radius: 4px;
	transition: all 0.3s ease;
	min-width: 44px;
	text-align: center;
}

.cirku-page-btn:hover:not(:disabled),
.cirku-page-number:hover:not(.current) {
	background: #f5f5f5;
	border-color: #2271b1;
	color: #2271b1;
}

.cirku-page-number.current {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
	cursor: default;
}

.cirku-prev-btn,
.cirku-next-btn {
	padding: 10px 20px;
}

.cirku-prev-btn span,
.cirku-next-btn span {
	font-size: 20px;
	line-height: 1;
	vertical-align: middle;
}

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

/* Infinite Scroll */
.cirku-infinite-trigger {
	padding: 20px;
	text-align: center;
}

.cirku-loading-spinner {
	display: inline-block;
	color: #666;
	font-size: 15px;
	font-weight: 600;
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

/* Mobile Responsive Pagination */
@media (max-width: 768px) {
	.cirku-pagination {
		margin-top: 30px;
		padding-top: 20px;
	}

	.cirku-load-more-btn {
		width: 100%;
		max-width: 300px;
	}

	.cirku-numbered-pagination {
		gap: 6px;
	}

	.cirku-page-btn,
	.cirku-page-number {
		padding: 8px 12px;
		font-size: 14px;
		min-width: 40px;
	}

	.cirku-prev-btn,
	.cirku-next-btn {
		padding: 8px 16px;
	}
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
	.cirku-product-browse-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.cirku-product-browse-grid {
		grid-template-columns: 1fr;
	}

	.cirku-product-browse-list .cirku-product-card {
		grid-template-columns: 1fr;
	}

	.cirku-product-browse-list .cirku-product-image {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
		margin-bottom: 15px;
	}

	.cirku-view-toggle {
		justify-content: center;
	}

	.cirku-modal-content {
		width: 95%;
		max-height: 95vh;
	}

	.cirku-modal-body {
		padding: 20px;
	}

	.cirku-modal-title {
		font-size: 22px;
	}

	.cirku-modal-price {
		font-size: 20px;
	}

	.cirku-modal-gallery {
		grid-template-columns: 1fr;
	}

	.cirku-modal-actions {
		flex-direction: column;
	}

	.cirku-modal-actions .button {
		min-width: 100%;
	}
}

@media (max-width: 480px) {
	.cirku-product-card {
		padding: 15px !important;
	}

	.cirku-product-title {
		font-size: 16px;
	}

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

/* ==========================================================================
   Toolbar (Results Count + Filters Toggle + Sort)
   ========================================================================== */

.cirku-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding: 15px 20px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	gap: 20px;
	flex-wrap: wrap;
}

.cirku-results-count {
	font-size: 14px;
	color: #555;
}

.cirku-toolbar-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cirku-toggle-filters-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	border-radius: 4px;
	font-size: 14px;
	transition: all 0.3s ease;
	color: #333;
}

.cirku-toggle-filters-btn:hover {
	background: #f5f5f5;
	border-color: #999;
}

.cirku-toggle-filters-btn.active {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.cirku-toggle-filters-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.cirku-sort-select {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.3s ease;
	min-width: 180px;
}

.cirku-sort-select:hover {
	border-color: #999;
}

.cirku-sort-select:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 1px #2271b1;
}

/* ==========================================================================
   Filters Panel (Collapsible)
   ========================================================================== */

.cirku-filters-panel {
	margin-bottom: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.cirku-filters-inner {
	padding: 20px;
}

.cirku-filter-group {
	margin-bottom: 20px;
}

.cirku-filter-group:last-child {
	margin-bottom: 0;
}

.cirku-filter-group > label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 10px;
	color: #333;
}

.cirku-search-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s ease;
}

.cirku-search-input:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 1px #2271b1;
}

.cirku-category-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 300px;
	overflow-y: auto;
	padding: 10px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.cirku-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px;
	cursor: pointer;
	transition: background 0.2s ease;
	border-radius: 4px;
}

.cirku-checkbox-label:hover {
	background: #fff;
}

.cirku-category-checkbox {
	margin: 0;
	cursor: pointer;
}

.cirku-checkbox-label span {
	font-size: 14px;
	color: #333;
}

.cirku-checkbox-label .cirku-count {
	color: #666;
	font-size: 13px;
	margin-left: auto;
}

.cirku-filter-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.cirku-apply-filters-btn {
	padding: 10px 20px;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.cirku-apply-filters-btn:hover {
	background: #135e96;
	transform: translateY(-1px);
}

.cirku-clear-filters-btn {
	padding: 10px 20px;
	background: transparent;
	color: #666;
	border: none;
	cursor: pointer;
	font-size: 14px;
	text-decoration: underline;
	transition: color 0.3s ease;
}

.cirku-clear-filters-btn:hover {
	color: #d63638;
}

/* Loading state for filtered results */
.cirku-loading-products {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	text-align: center;
}

.cirku-loading-products .spinner {
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 4px solid rgba(0, 0, 0, 0.1);
	border-left-color: #2271b1;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 15px;
}

.cirku-loading-products p {
	margin: 0;
	color: #666;
	font-size: 14px;
}

/* Error state */
.cirku-error {
	padding: 40px 20px;
	text-align: center;
	color: #d63638;
	background: #fef7f7;
	border: 1px solid #f8d7da;
	border-radius: 8px;
}

.cirku-error p {
	margin: 0;
	font-size: 14px;
}

/* ==========================================================================
   Toolbar & Filters - Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.cirku-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.cirku-toolbar-right {
		width: 100%;
		justify-content: space-between;
	}

	.cirku-sort-select {
		flex: 1;
		min-width: auto;
	}

	.cirku-filters-inner {
		padding: 15px;
	}

	.cirku-category-checkboxes {
		max-height: 200px;
	}

	.cirku-filter-actions {
		flex-direction: column;
	}

	.cirku-apply-filters-btn,
	.cirku-clear-filters-btn {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.cirku-toolbar {
		padding: 12px 15px;
	}

	.cirku-results-count {
		font-size: 13px;
	}

	.cirku-toggle-filters-btn,
	.cirku-sort-select {
		font-size: 13px;
		padding: 6px 12px;
	}
}
