/**
 * Trang công khai: hồ sơ + gian hàng (MMO).
 */

.section.mmo-vendor-store {
	flex-direction: column;
}

.mmo-vendor-store__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
	margin: 0;
}

/* Một ô lưới = thẻ + nút (hooks WooCommerce), không tách nút sang cột khác */
.mmo-vendor-store__cell {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mmo-vendor-store__cell>.button,
.mmo-vendor-store__cell .add_to_cart_button {
	margin-top: 0.5rem;
	align-self: flex-start;
}

@media (max-width: 991px) {
	.mmo-vendor-store__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.mmo-vendor-store__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 479px) {
	.mmo-vendor-store__grid {
		grid-template-columns: 1fr;
	}
}

/* Thẻ sản phẩm trong lưới gian hàng */
.mmo-vendor-store-product {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: rgba(0, 0, 0, 0.02);
	border-bottom: 1px solid #ddd;
	border-right: 1px solid #ddd;
	padding-bottom: 0px !important;
	border-radius: 0px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.col-sp .col-inner,
.product-small .col-inner {
	height: 100%;
}

.col-sp .badge-container,
.product-small .badge-container {
	margin-top: 10px;
}

.product-small .badge-container {
	margin-left: 10px;
}

.col-sp .badge,
.product-small .badge {
	height: auto;
}

.col-sp .badge-inner,
.product-small .badge-inner {
	line-height: 1;

}

.col-sp .badge-inner span,
.product-small .badge-inner span {
	padding: 3px 6px 5px;
	font-size: 12px;

}

.absolute-footer .footer-primary {
	margin: 0 auto;
}

.col-sp .row {
	border-top: 1px solid #ddd;
	border-left: 1px solid #ddd;
}

.dark .mmo-vendor-store-product {
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.1);
}

.mmo-vendor-store-product:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-color: rgba(0, 0, 0, 0.12);
}

.dark .mmo-vendor-store-product:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	border-color: rgba(255, 255, 255, 0.14);
}

.shop-container .products {
	border-top: 1px solid #ddd;
	border-left: 1px solid #ddd;
}

.shop-container .row-small>.col {
	padding: 0;
}

.shop-container .row-small>.col>.col-inner {
	height: 100%;
}

.mmo-vendor-store-product__thumb {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.04);
}

.mmo-vendor-store-product__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mmo-vendor-store-product__text {
	padding: 0.85rem 1rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1;
}

.mmo-vendor-store-product__title {
	margin: 0;
	line-height: 1;
}

.mmo-vendor-store-product__title a {
	text-decoration: none;
	color: inherit;
	font-size: 12px;
	line-height: 1;
	font-weight: 600;
}

.mmo-vendor-store-product__title a:hover {
	text-decoration: underline;
}

.mmo-vendor-store-product__stars {
	font-size: 0.85rem;
	line-height: 1;
}

.mmo-vendor-store-product__stars .star-rating {
	float: none;
	margin: 0;
}

.mmo-vendor-store-product__meta {
	font-size: 0.8rem;
	line-height: 1.4;
	color: rgba(0, 0, 0, 0.65);
}

.dark .mmo-vendor-store-product__meta {
	color: rgba(255, 255, 255, 0.65);
}

.mmo-vendor-store-product__owner {
	font-weight: 500;
}

.mmo-vendor-store-product__owner a {
	color: inherit;
	text-decoration: none;
}

.mmo-vendor-store-product__owner a:hover {
	text-decoration: underline;
}

.mmo-vendor-store-product__sep {
	margin: 0 0.2rem;
	opacity: 0.5;
}

.mmo-vendor-store-product__price {
	margin-top: auto;
	padding-top: 0.25rem;
	font-size: 12px;
	font-weight: 700;
}

.mmo-vendor-store-product__price .woocommerce-Price-amount {
	font-weight: inherit;
}

.mmo-vendor-store__profile {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: flex-start;
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: rgba(0, 0, 0, 0.03);
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.dark .mmo-vendor-store__profile {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
}

.mmo-vendor-store__avatar {
	flex-shrink: 0;
}

.mmo-vendor-store__avatar img {
	display: block;
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.mmo-vendor-store__info {
	flex: 1;
	min-width: 200px;
}

.mmo-vendor-store__actions {
	margin: 0.85rem 0 0;
}

.mmo-vendor-store__chat.button,
.mmo-vendor-store__chat.button.primary {
	margin: 0;
}

.mmo-vendor-store__title {
	margin: 0 0 0.35rem;
	font-size: 1.75rem;
	line-height: 1.2;
}

.mmo-vendor-store__login {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	opacity: 0.75;
}

.mmo-vendor-store__login code {
	font-size: inherit;
	background: transparent;
	padding: 0;
}

.mmo-vendor-store__joined {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	opacity: 0.8;
}

.mmo-vendor-store__bio {
	margin: 0;
	max-width: 42rem;
	line-height: 1.6;
}

.mmo-vendor-store__bio p:last-child {
	margin-bottom: 0;
}

.mmo-vendor-store__section-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dark .mmo-vendor-store__section-title {
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

.mmo-vendor-store__empty {
	margin: 0;
	padding: 1.25rem;
	background: rgba(0, 0, 0, 0.02);
	border-radius: 6px;
}

.mmo-vendor-store .page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
}

.mmo-vendor-store .page-numbers li {
	margin: 0;
	list-style: none;
}

.mmo-vendor-store .page-numbers a,
.mmo-vendor-store .page-numbers span {
	display: inline-block;
	min-width: 2.25rem;
	padding: 0.35rem 0.6rem;
	text-align: center;
	border-radius: 4px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	text-decoration: none;
}

.mmo-vendor-store .page-numbers span.current {
	font-weight: 600;
	border-color: transparent;
	background: rgba(0, 0, 0, 0.06);
}

.mmo-vendor-store__meta {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 600;
}