.bwh-access {
	display: flex;
	justify-content: center;
	padding: 3rem 1.5rem;
}

.bwh-access__panel {
	width: min(100%, 420px);
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 2rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.bwh-access__error {
	color: #b32d2e;
	font-weight: 600;
}

.bwh-access__success {
	color: #1f7a1f;
	font-weight: 600;
}

.bwh-access__notice {
	color: #4f46e5;
	font-weight: 600;
}

.bwh-access__input {
	width: 100%;
	margin-top: 0.35rem;
}

.bwh-access__submit {
	margin-top: 0.5rem;
}

.bwh-catalog__nav {
	margin-bottom: 2rem;
}

.bwh-catalog__nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bwh-catalog__nav-list a {
	text-decoration: none;
	font-weight: 600;
}

.bwh-catalog__section {
	margin-bottom: 3rem;
	scroll-margin-top: 5rem;
}

.bwh-catalog__section-title {
	margin: 0 0 1rem;
	font-size: 1.5rem;
}

.bwh-catalog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bwh-catalog__card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bwh-catalog__card-open {
	appearance: none;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	cursor: pointer;
	padding: 0;
	text-align: left;
	width: 100%;
	overflow: hidden;
}

.bwh-catalog__card-open:hover,
.bwh-catalog__card-open:focus-visible {
	border-color: #6c2bd9;
	outline: none;
}

.bwh-catalog__image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.bwh-catalog__title,
.bwh-catalog__price {
	display: block;
	padding: 0 0.75rem;
}

.bwh-catalog__title {
	margin-top: 0.75rem;
	font-size: 1rem;
	font-weight: 600;
}

.bwh-catalog__price {
	padding-bottom: 0.75rem;
}

.bwh-catalog__quick-add {
	appearance: none;
	background: #111;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-weight: 600;
	padding: 0.55rem 1rem;
}

.bwh-modal[hidden] {
	display: none;
}

.bwh-modal {
	inset: 0;
	position: fixed;
	z-index: 100000;
}

.bwh-modal__backdrop {
	background: rgba(0, 0, 0, 0.55);
	inset: 0;
	position: absolute;
}

.bwh-modal__panel {
	background: #fff;
	border-radius: 12px;
	left: 50%;
	max-height: 90vh;
	max-width: 920px;
	overflow: auto;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 2rem);
	padding: 1.5rem;
}

.bwh-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: transparent;
	border: 0;
	font-size: 1.75rem;
	cursor: pointer;
	line-height: 1;
}

.bwh-modal__layout {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr 1fr;
}

.bwh-modal__gallery-main img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

.bwh-modal__thumbs {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.bwh-modal__thumb {
	border: 2px solid transparent;
	padding: 0;
	background: none;
	cursor: pointer;
}

.bwh-modal__thumb.is-active {
	border-color: #6c2bd9;
}

.bwh-modal__variations {
	width: 100%;
	border-collapse: collapse;
}

.bwh-modal__variations th,
.bwh-modal__variations td {
	border-bottom: 1px solid #eee;
	padding: 0.65rem 0.35rem;
	text-align: left;
}

.bwh-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.bwh-order-bar {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
	border-bottom: 1px solid #ddd;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.bwh-order-bar__toggle {
	appearance: none;
	background: #fff;
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 1rem;
	width: 100%;
	text-align: left;
}

.bwh-order-bar__panel {
	padding: 0 1rem 1rem;
}

.bwh-order-bar__items {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.bwh-order-bar__item {
	align-items: center;
	border-bottom: 1px solid #eee;
	display: flex;
	gap: 0.75rem;
	justify-content: space-between;
	padding: 0.65rem 0;
}

.bwh-order-bar__item-name {
	flex: 1 1 auto;
	font-weight: 600;
}

.bwh-order-bar__item-controls {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 0.5rem;
}

.bwh-order-bar__qty {
	width: 4rem;
}

.bwh-order-bar__remove {
	appearance: none;
	background: transparent;
	border: 0;
	color: #666;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
	padding: 0.15rem 0.35rem;
}

.bwh-order-bar__remove:hover,
.bwh-order-bar__remove:focus {
	color: #111;
}

.bwh-order-bar__empty {
	color: #666;
	font-style: italic;
	padding: 0.5rem 0;
}

.bwh-order-bar__progress-track {
	background: #eee;
	border-radius: 999px;
	height: 0.5rem;
	overflow: hidden;
}

.bwh-order-bar__progress-fill {
	background: #6c2bd9;
	height: 100%;
	transition: width 0.2s ease;
}

.bwh-order-bar__checkout {
	background: #111;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-weight: 600;
	padding: 0.75rem 1.25rem;
}

.bwh-order-bar__checkout:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.bwh-order-bar__moq.is-met {
	background: #2e7d32;
}

.bwh-order-bar__moq.is-unmet {
	background: #c62828;
}

.bwh-order-bar__moq {
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	display: inline-block;
}

.bwh-catalog__index {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.bwh-catalog__index-link {
	display: block;
	padding: 1.25rem 1rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}

.bwh-catalog__back {
	margin: 0 0 1rem;
}

.bwh-catalog__pagination {
	margin: 2rem 0 0;
}

.bwh-catalog__pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bwh-catalog__pagination a,
.bwh-catalog__pagination span {
	display: inline-block;
	padding: 0.35rem 0.7rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
}

@media (max-width: 782px) {
	.bwh-catalog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bwh-catalog__index {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bwh-modal__layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.bwh-catalog__grid {
		grid-template-columns: 1fr;
	}
}
