/* All Items Page Styles */
.all-items-page {
	background: #f8f9fa;
	min-height: 100vh;
	padding-bottom: 40px;
}

.page-header-section {
	background: linear-gradient(135deg, #00C851 0%, #007E33 100%);
	padding: 60px 0;
	color: white;
	text-align: center;
	margin-bottom: 40px;
}

.page-title {
	font-size: 42px;
	font-weight: 700;
	margin-bottom: 10px;
	color: white;
}

.page-subtitle {
	font-size: 18px;
	opacity: 0.9;
	color: white;
}

/* Filters Sidebar */
.filters-sidebar {
	background: white;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	position: sticky;
	top: 20px;
	margin-bottom: 30px;
}

.filter-section {
	margin-bottom: 30px;
	padding-bottom: 25px;
	border-bottom: 1px solid #eee;
}

.filter-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.filter-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 15px;
	color: #333;
}

.search-box {
	display: flex;
	gap: 10px;
}

.search-box input {
	flex: 1;
}

.btn-search {
	background: #00C851;
	color: white;
	border: none;
	padding: 8px 15px;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
}

.btn-search:hover {
	background: #00a844;
}

.filter-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 300px;
	overflow-y: auto;
}

.filter-option {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	padding: 8px;
	border-radius: 6px;
	transition: background 0.2s;
	margin: 0;
}

.filter-option:hover {
	background: #f8f9fa;
}

.filter-option input[type="radio"] {
	cursor: pointer;
	margin: 0;
}

.filter-option span {
	flex: 1;
}

.price-inputs {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.price-inputs input {
	flex: 1;
}

/* Results Info */
.results-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	padding: 15px 20px;
	background: white;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.results-count {
	font-weight: 600;
	color: #333;
}

.view-options {
	display: flex;
	gap: 10px;
}

.view-btn {
	background: #f8f9fa;
	border: 1px solid #ddd;
	padding: 8px 15px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
}

.view-btn:hover {
	background: #e9ecef;
}

.view-btn.active {
	background: #00C851;
	color: white;
	border-color: #00C851;
}

/* Products Grid */
.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 25px;
	margin-bottom: 40px;
}

.products-grid.list-view {
	grid-template-columns: 1fr;
}

.product-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	transition: transform 0.3s, box-shadow 0.3s;
	position: relative;
	display: flex;
	flex-direction: column;
}

.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-image-wrapper {
	position: relative;
	padding-top: 100%;
	overflow: hidden;
	background: #f8f9fa;
}

.product-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	z-index: 2;
}

.badge {
	padding: 5px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.badge-discount {
	background: #D32F2F;
	color: white;
}

.badge-new {
	background: #00C851;
	color: white;
}

.product-info {
	padding: 20px;
	flex: 1;
}

.product-category {
	font-size: 12px;
	color: #00C851;
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.product-name {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin-bottom: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.4;
}

.product-price {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.price-current {
	font-size: 20px;
	font-weight: 700;
	color: #00C851;
}

.price-original {
	font-size: 14px;
	color: #999;
	text-decoration: line-through;
}

.loyalty-points {
	font-size: 12px;
	color: #666;
	display: flex;
	align-items: center;
	gap: 5px;
}

.product-actions {
	display: flex;
	gap: 10px;
	padding: 0 20px 20px;
}

.btn-action {
	flex: 1;
	padding: 10px;
	border-radius: 8px;
	border: none;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 14px;
}

.btn-whatsapp {
	background: #25D366;
	color: white;
}

.btn-whatsapp:hover {
	background: #1da851;
	color: white;
	text-decoration: none;
}

.btn-details {
	background: #f8f9fa;
	color: #333;
	border: 1px solid #ddd;
}

.btn-details:hover {
	background: #e9ecef;
	color: #333;
	text-decoration: none;
}

/* List View */
.products-grid.list-view .product-card {
	display: flex;
	flex-direction: row;
}

.products-grid.list-view .product-image-wrapper {
	width: 200px;
	padding-top: 0;
	height: 200px;
	flex-shrink: 0;
}

.products-grid.list-view .product-info {
	flex: 1;
}

.products-grid.list-view .product-actions {
	padding: 20px;
	flex-direction: column;
	justify-content: center;
	width: 150px;
}

/* Loading Spinner */
.loading-spinner {
	text-align: center;
	padding: 60px 20px;
	color: #00C851;
}

.loading-spinner i {
	font-size: 48px;
	margin-bottom: 15px;
}

/* Pagination */
.pagination-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.pagination-btn {
	padding: 10px 15px;
	border: 1px solid #ddd;
	background: white;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	font-weight: 500;
	min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
	background: #00C851;
	color: white;
	border-color: #00C851;
}

.pagination-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pagination-btn.active {
	background: #00C851;
	color: white;
	border-color: #00C851;
}

.pagination-info {
	padding: 10px 20px;
	font-weight: 600;
	color: #333;
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

.empty-state i {
	font-size: 64px;
	color: #ddd;
	margin-bottom: 20px;
}

.empty-state h3 {
	font-size: 24px;
	margin-bottom: 10px;
	color: #333;
}

.empty-state p {
	font-size: 16px;
	color: #666;
}

/* Responsive */
@media (max-width: 768px) {
	.page-title {
		font-size: 32px;
	}
	
	.page-subtitle {
		font-size: 16px;
	}
	
	.filters-sidebar {
		position: static;
		margin-bottom: 30px;
	}
	
	.products-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
	
	.products-grid.list-view {
		grid-template-columns: 1fr;
	}
	
	.products-grid.list-view .product-card {
		flex-direction: column;
	}
	
	.products-grid.list-view .product-image-wrapper {
		width: 100%;
		padding-top: 100%;
		height: auto;
	}
	
	.products-grid.list-view .product-actions {
		width: 100%;
		flex-direction: row;
		padding: 0 20px 20px;
	}
	
	.results-info {
		flex-direction: column;
		gap: 15px;
	}
	
	.product-name {
		font-size: 12px;
		-webkit-line-clamp: 2;
	}
	
	.price-current {
		font-size: 14px;
	}
	
	.price-original {
		font-size: 11px;
	}
	
	.product-info {
		padding: 10px;
	}
	
	.product-category {
		font-size: 10px;
	}
	
	.loyalty-points {
		font-size: 10px;
	}
	
	.btn-action {
		font-size: 11px;
		padding: 6px;
		gap: 4px;
	}
	
	.product-actions {
		padding: 0 10px 10px;
		gap: 5px;
	}
	
	.badge {
		font-size: 9px;
		padding: 3px 6px;
	}
}

@media (max-width: 480px) {
	.products-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}
	
	.product-info {
		padding: 8px;
	}
	
	.product-actions {
		padding: 0 8px 8px;
		gap: 4px;
	}
	
	.product-name {
		font-size: 11px;
		margin-bottom: 6px;
	}
	
	.price-current {
		font-size: 13px;
	}
	
	.btn-action {
		font-size: 10px;
		padding: 5px 4px;
	}
	
	.btn-action i {
		font-size: 12px;
	}
}
