.wwp-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, 1fr);
	margin: 24px 0;
}
.wwp-grid.wwp-cols-1 { grid-template-columns: repeat(1, 1fr); }
.wwp-grid.wwp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wwp-grid.wwp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wwp-grid.wwp-cols-4 { grid-template-columns: repeat(4, 1fr); }
.wwp-grid.wwp-cols-5 { grid-template-columns: repeat(5, 1fr); }
.wwp-grid.wwp-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
	.wwp-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
	.wwp-grid { grid-template-columns: 1fr !important; }
}

.wwp-card {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.wwp-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}
.wwp-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
}
.wwp-card-thumb {
	aspect-ratio: 4 / 3;
	background: #f4f4f4;
	overflow: hidden;
}
.wwp-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.wwp-no-image {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 10px, #ececec 10px, #ececec 20px);
}
.wwp-card-title {
	font-size: 1.05rem;
	margin: 12px 14px 6px;
	line-height: 1.35;
}
.wwp-card-cats {
	margin: 0 14px 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.wwp-card-cat {
	font-size: 0.72rem;
	background: #eef2ff;
	color: #3949ab;
	padding: 2px 8px;
	border-radius: 999px;
}
.wwp-card-excerpt {
	margin: 0 14px 14px;
	font-size: 0.85rem;
	color: #555;
	line-height: 1.5;
}
.wwp-empty {
	color: #777;
	font-style: italic;
}

/* Load more */
.wwp-loadmore-wrap {
	text-align: center;
	margin: 28px 0 8px;
}
.wwp-loadmore {
	display: inline-block;
	padding: 12px 32px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff;
	background: #2271b1;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
}
.wwp-loadmore:hover {
	background: #185a8c;
}
.wwp-loadmore:disabled {
	opacity: 0.6;
	cursor: default;
}

/* ===== Single product ===== */
.wwp-single {
	max-width: 1100px;
	margin: 32px auto;
	padding: 0 16px;
}
.wwp-single-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}
@media (max-width: 768px) {
	.wwp-single-inner {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

.wwp-single-main {
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	overflow: hidden;
	background: #fafafa;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wwp-single-main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.wwp-single-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.wwp-single-thumbs .wwp-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: none;
	cursor: pointer;
	width: 72px;
	height: 72px;
	overflow: hidden;
	line-height: 0;
}
.wwp-single-thumbs .wwp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wwp-single-thumbs .wwp-thumb.is-active {
	border-color: #2271b1;
}

.wwp-single-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}
.wwp-single-cats .wwp-card-cat {
	text-decoration: none;
}
.wwp-single-title {
	margin: 0 0 6px;
	font-size: 1.8rem;
	line-height: 1.25;
}
.wwp-single-name-en {
	margin: 0 0 12px;
	color: #777;
	font-size: 1.05rem;
}
.wwp-single-sku {
	margin: 0 0 16px;
	font-size: 0.9rem;
	color: #555;
}
.wwp-single-sku span {
	font-weight: 600;
}
.wwp-single-detail {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}
.wwp-single-detail h2 {
	font-size: 1.1rem;
	margin: 0 0 8px;
}
.wwp-single-content {
	line-height: 1.7;
	color: #333;
}
.wwp-single .wwp-no-image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
}
