/* Frontend Styles */
.a5sb-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	font-family: inherit;
}

.a5sb-filters {
	margin-bottom: 20px;
	background: #f5f5f5;
	padding: 15px;
	border-radius: 4px;
}

/* Category Pills */
#a5sb-category-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 15px;
}

.a5sb-cat-pill {
	background: #fff;
	border: 1px solid #ddd;
	padding: 8px 16px;
	border-radius: 20px;
	cursor: pointer;
	font-size: 0.9em;
	transition: all 0.2s ease;
}

.a5sb-cat-pill:hover {
	background: #f0f0f0;
	border-color: #bbb;
}

.a5sb-cat-pill.active {
	background: #007cba;
	color: #fff;
	border-color: #007cba;
}

#a5sb-search {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	font-size: 1em;
	border-radius: 4px;
}

.a5sb-main-layout {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

.a5sb-product-list {
	flex: 2;
}

.a5sb-sidebar {
	flex: 1;
	min-width: 300px;
	position: sticky;
	top: 20px;
}

/* Catalog Items */
.cat-header {
	border-bottom: 2px solid #eee;
	padding-bottom: 10px;
	margin-top: 20px;
	cursor: pointer;
	/* Clickable */
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cat-header:hover {
	color: #007cba;
}

.cat-header .toggle-icon {
	font-size: 0.8em;
	color: #999;
}

.cat-group {
	/* Default visible */
}

.cat-group.collapsed {
	display: none;
}

.a5sb-item {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #eee;
	padding: 15px 0;
}

.a5sb-item .thumb {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
}

.a5sb-item .thumb img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.a5sb-item .details {
	flex: 1;
	padding: 0 15px;
}

.a5sb-item h4 {
	margin: 0 0 5px;
	font-size: 1.1em;
}

.a5sb-item .sku {
	font-size: 0.85em;
	color: #999;
	display: block;
}

.price-row {
	margin-top: 5px;
	font-size: 0.9em;
}

.price-row .bulk {
	color: #2c3e50;
	margin-left: 10px;
}

.price-row .bulk strong {
	color: #27ae60;
}

.a5sb-savings-badge {
	display: inline-block;
	background: #d4edda;
	color: #155724;
	font-size: 0.85em;
	padding: 2px 6px;
	border-radius: 3px;
	margin-top: 5px;
	display: none;
	/* Hidden by default */
}

.a5sb-item .action input {
	width: 70px;
	padding: 5px;
}

/* Summary Box */
.a5sb-summary-box {
	border: 1px solid #ddd;
	padding: 20px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	border-radius: 4px;
}

.a5sb-summary-box h3 {
	margin-top: 0;
}

#a5sb-summary-list {
	list-style: none;
	padding: 0;
	margin: 0 0 15px;
	max-height: 300px;
	overflow-y: auto;
}

#a5sb-summary-list li {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px dashed #eee;
	padding: 8px 0;
	font-size: 0.9em;
}

.a5sb-totals {
	border-top: 2px solid #eee;
	padding-top: 15px;
	margin-bottom: 15px;
}

.a5sb-totals .row {
	display: flex;
	justify-content: space-between;
	padding: 5px 0;
	font-size: 0.95em;
}

.a5sb-totals .row span:last-child {
	text-align: right;
	font-weight: 600;
}

.a5sb-totals .row.total-row {
	border-top: 2px solid #ddd;
	padding-top: 10px;
	margin-top: 10px;
	font-size: 1.1em;
	font-weight: bold;
}

.a5sb-totals .row.total-row span:last-child {
	color: #2c3e50;
	font-weight: 700;
}

.a5sb-notes-section textarea {
	width: 100%;
	border: 1px solid #ddd;
	margin-bottom: 15px;
}

.a5sb-actions button {
	width: 100%;
	padding: 12px;
	cursor: pointer;
}

.a5sb-notice.error {
	color: #c0392b;
	background: #fceceb;
	padding: 10px;
	border-radius: 3px;
}

#a5sb-message .success {
	color: green;
	font-weight: bold;
	margin-top: 10px;
}

#a5sb-message .error {
	color: red;
	margin-top: 10px;
}