/* BW Marketplace — Frontend Styles */

/* ── Layout ── */
.bwm-form {
	max-width: 480px;
}

.bwm-form__field {
	margin-bottom: 1.25rem;
}

.bwm-form__field label {
	display: block;
	font-weight: 600;
	margin-bottom: .375rem;
}

.bwm-form__field input,
.bwm-form__field select,
.bwm-form__field textarea {
	width: 100%;
	padding: .5rem .75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.bwm-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

/* ── Buttons ── */
.bwm-button {
	display: inline-block;
	padding: .5rem 1.25rem;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background-color .2s, color .2s;
}

.bwm-button--primary {
	background-color: #2563eb;
	color: #fff;
}

.bwm-button--primary:hover {
	background-color: #1d4ed8;
}

.bwm-button--small {
	padding: .25rem .75rem;
	font-size: .875rem;
}

/* ── Notices ── */
.bwm-notice {
	padding: 1rem 1.25rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.bwm-notice--info    { background: #eff6ff; border-left: 4px solid #3b82f6; }
.bwm-notice--warning { background: #fffbeb; border-left: 4px solid #f59e0b; }
.bwm-notice--success { background: #f0fdf4; border-left: 4px solid #22c55e; }
.bwm-notice--error   { background: #fef2f2; border-left: 4px solid #ef4444; }

/* ── Store Directory ── */
.bwm-store-directory__search {
	display: flex;
	gap: .5rem;
	margin-bottom: 1.5rem;
}

.bwm-store-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25rem;
}

.bwm-store-card {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 1rem;
	transition: box-shadow .2s;
}

.bwm-store-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.bwm-store-card__logo {
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 50%;
	margin-bottom: .75rem;
}

.bwm-store-card__name {
	font-size: 1rem;
	margin: 0 0 .25rem;
}

/* ── Storefront ── */
.bwm-storefront__banner img {
	width: 100%;
	max-height: 240px;
	object-fit: cover;
	border-radius: 8px;
}

.bwm-storefront__meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1rem 0 1.5rem;
	flex-wrap: wrap;
}

.bwm-storefront__logo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: contain;
	border: 2px solid #e5e7eb;
}

/* ── Vendor Badge ── */
.bwm-vendor-badge {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .75rem 1rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	margin: 1rem 0;
}

.bwm-vendor-badge__logo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: contain;
}

.bwm-vendor-badge__label {
	display: block;
	font-size: .75rem;
	color: #6b7280;
}

.bwm-vendor-badge__name {
	font-weight: 600;
}

/* ── Vendor Dashboard ── */
.bwm-vendor-dashboard__tabs {
	display: flex;
	gap: .5rem;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.bwm-vendor-dashboard__tab {
	padding: .5rem 1rem;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	font-weight: 500;
	text-decoration: none;
	color: #4b5563;
}

.bwm-vendor-dashboard__tab.is-active {
	border-bottom-color: #2563eb;
	color: #2563eb;
}

/* ── Status Badges ── */
.bwm-status {
	display: inline-block;
	padding: .125rem .5rem;
	border-radius: 9999px;
	font-size: .75rem;
	font-weight: 600;
}

.bwm-status--approved  { background: #dcfce7; color: #15803d; }
.bwm-status--pending   { background: #fef9c3; color: #854d0e; }
.bwm-status--suspended { background: #fee2e2; color: #b91c1c; }

/* ── Pagination ── */
.bwm-pagination {
	display: flex;
	justify-content: space-between;
	margin-top: 1.5rem;
}
