.mgss-shop {
	max-width: 1080px;
	margin: 0 auto;
}

.mgss-category-filter {
	margin-bottom: 16px;
}

.mgss-category-btn {
	display: inline-block;
	padding: 6px 14px;
	margin: 0 6px 6px 0;
	border: 1px solid #ccc;
	background: #fff;
	border-radius: 2px;
	cursor: pointer;
}

.mgss-category-btn.is-active {
	background: #333;
	color: #fff;
	border-color: #333;
}

.mgss-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.mgss-product-card {
	border: 1px solid #e0e0e0;
	border-radius: 2px;
	overflow: hidden;
	background: #fff;
}

.mgss-product-photo {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
}

.mgss-product-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mgss-badge-soldout {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #c00;
	color: #fff;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 2px;
}

.mgss-product-info {
	padding: 12px;
}

.mgss-product-title {
	font-size: 15px;
	margin: 0 0 6px;
}

.mgss-product-price {
	font-weight: bold;
	margin: 0 0 8px;
}

.mgss-add-to-cart {
	display: flex;
	gap: 8px;
	align-items: center;
}

.mgss-qty-input {
	width: 56px;
}

.mgss-product-description {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: #555;
	white-space: pre-wrap;
}

.mgss-cart-bar {
	position: sticky;
	bottom: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #222;
	color: #fff;
	padding: 12px 20px;
	margin-top: 20px;
	border-radius: 2px;
}

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

.mgss-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.mgss-modal-inner {
	background: #fff;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 24px;
	border-radius: 2px;
	position: relative;
}

.mgss-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	border: none;
	background: none;
	font-size: 22px;
	cursor: pointer;
}

.mgss-cart-row {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}

.mgss-cart-row-title {
	flex: 1;
}

.mgss-cart-remove {
	border: none;
	background: none;
	color: #c00;
	font-size: 18px;
	cursor: pointer;
}

.mgss-cart-total {
	font-weight: bold;
	text-align: right;
}

.mgss-checkout-form label {
	display: block;
	margin-bottom: 12px;
}

.mgss-checkout-form input[type="text"],
.mgss-checkout-form input[type="email"],
.mgss-checkout-form input[type="tel"],
.mgss-checkout-form select,
.mgss-checkout-form textarea {
	width: 100%;
	box-sizing: border-box;
}

.mgss-required {
	color: #c00;
}

.mgss-checkout-error {
	color: #c00;
	font-weight: bold;
}

#mgss-card-element {
	min-height: 90px;
	border: 1px solid #ccc;
	border-radius: 2px;
	padding: 10px;
}

/* notice / sales period (1.4.0) */
.mgss-shop-notice,
.mgss-checkout-notice {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-left: 4px solid #1fb3d1;
	background: #f2fafc;
	border-radius: 2px;
	line-height: 1.7;
}
.mgss-shop-notice p,
.mgss-checkout-notice p {
	margin: 0 0 4px;
}
.mgss-sales-period {
	font-weight: bold;
}
.mgss-closed-message {
	padding: 24px;
	text-align: center;
	background: #f5f5f5;
	border-radius: 2px;
}
