/* MWeb Product Grid — structural CSS.
   Colors, radius, spacing, typography, etc. are generated by
   Elementor from the widget's Style tab controls. */

.mweb-pg-wrap {
	width: 100%;
}

.mweb-pg-empty {
	text-align: center;
	opacity: 0.7;
}

.mweb-pg-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.mweb-pg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mweb-pg-wrap[data-hover="lift"] .mweb-pg-card:hover {
	transform: translateY(-4px);
}

.mweb-pg-media {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.mweb-pg-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	line-height: 1.2;
	padding: 7px 18px;
}

.mweb-pg-badge-has-hover {
	display: grid;
}

.mweb-pg-badge-has-hover .mweb-pg-badge-text,
.mweb-pg-badge-has-hover .mweb-pg-badge-percent {
	grid-area: 1 / 1;
	transition: opacity 0.25s ease;
}

.mweb-pg-badge-has-hover .mweb-pg-badge-percent {
	opacity: 0;
}

.mweb-pg-card:hover .mweb-pg-badge-has-hover .mweb-pg-badge-text {
	opacity: 0;
}

.mweb-pg-card:hover .mweb-pg-badge-has-hover .mweb-pg-badge-percent {
	opacity: 1;
}

.mweb-pg-title-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.mweb-pg-image-wrap {
	position: relative;
	overflow: hidden;
}

.mweb-pg-image-wrap img {
	width: 100%;
	height: 100%;
	display: block;
	transition: transform 0.4s ease, opacity 0.4s ease;
}

.mweb-pg-image-hover {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.mweb-pg-wrap[data-hover="swap"] .mweb-pg-card:hover .mweb-pg-image-hover {
	opacity: 1;
}

.mweb-pg-category {
	line-height: 1.3;
}

.mweb-pg-title {
	margin: 0;
	text-align: center;
}

.mweb-pg-rating {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
}

.mweb-pg-stars {
	position: relative;
	display: inline-block;
	line-height: 1;
	letter-spacing: 3px;
}

.mweb-pg-stars-bg {
	display: block;
}

.mweb-pg-stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	display: block;
}

.mweb-pg-rating-count {
	font-size: 13px;
	line-height: 1;
}

.mweb-pg-price {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 0 12px;
	line-height: 1.4;
}

.mweb-pg-price del {
	opacity: 1;
	font-size: 0.85em;
}

.mweb-pg-price del .amount {
	font-weight: 400;
}

.mweb-pg-price ins {
	text-decoration: none;
}

.mweb-pg-quantity {
	display: grid;
	grid-template-columns: 30px 70px 30px;
	justify-content: center;
	align-items: center;
	column-gap: 15px;
	margin: 0 0 15px;
}

.mweb-pg-quantity button {
	width: 30px;
	height: 30px;
	min-width: 30px;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	box-shadow: none;
	font-size: 22px;
	font-weight: 500;
	line-height: 30px;
	cursor: pointer;
	color: inherit;
}

.mweb-pg-quantity button:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.mweb-pg-qty-number {
	width: 70px;
	height: 30px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 1px solid;
	text-align: center;
	font-size: 16px;
	-moz-appearance: textfield;
}

.mweb-pg-qty-number::-webkit-outer-spin-button,
.mweb-pg-qty-number::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.mweb-pg-quickview-btn {
	background: none;
	border: none;
	padding: 0;
	margin: 0 0 12px;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.25s ease;
	color: inherit;
}

.mweb-pg-card:hover .mweb-pg-quickview-btn,
.mweb-pg-card:focus-within .mweb-pg-quickview-btn {
	opacity: 0.75;
}

.mweb-pg-cart-area {
	margin-top: auto;
}

.mweb-pg-button {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
}

.mweb-pg-button.loading {
	opacity: 0.6;
	pointer-events: none;
}

.mweb-pg-cart-area .added_to_cart {
	display: block;
	margin-top: 10px;
	font-size: 14px;
	text-decoration: none;
}

.mweb-pg-button.mweb-pg-view-cart {
	pointer-events: auto;
}

@media (max-width: 1024px) {
	.mweb-pg-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

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

@media (max-width: 480px) {
	.mweb-pg-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}

/* Pagination (colors, sizes, radius, typography come from the widget's Style tab) */
.mweb-pg-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mweb-pg-pagination li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mweb-pg-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	text-decoration: none;
	line-height: 1;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.mweb-pg-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}
