/* Elementor Woo Product Grid Pro — Frontend Styles */

.ewpg-wrap {
	width: 100%;
}

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

.ewpg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ewpg-card__image {
	position: relative;
	overflow: hidden;
	display: block;
	height: 260px;
	background: #f2f0ea;
}

.ewpg-card__image a {
	display: block;
	width: 100%;
	height: 100%;
}

.ewpg-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease, opacity 0.4s ease;
}

.ewpg-card:hover .ewpg-card__image img {
	transform: scale(1.06);
}

.ewpg-badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 2;
}

.ewpg-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 600;
	border-radius: 3px;
	background: #c0672b;
	color: #fff;
	width: fit-content;
}

.ewpg-badge--featured {
	background: #1f1c14;
}

.ewpg-card__body {
	padding: 20px 4px 4px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ewpg-card__category {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a8577;
	margin-bottom: 6px;
}

.ewpg-card__title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.35;
}

.ewpg-card__title a {
	color: inherit;
	text-decoration: none;
}

.ewpg-clamp-1,
.ewpg-clamp-2,
.ewpg-clamp-3 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ewpg-clamp-1 { -webkit-line-clamp: 1; }
.ewpg-clamp-2 { -webkit-line-clamp: 2; }
.ewpg-clamp-3 { -webkit-line-clamp: 3; }

.ewpg-card__rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.ewpg-card__rating .star-rating {
	overflow: hidden;
	position: relative;
	height: 1em;
	line-height: 1em;
	width: 5.4em;
	font-family: star;
	font-size: 14px;
}

.ewpg-card__rating .star-rating::before {
	content: "\53\53\53\53\53";
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	color: #dcd8cc;
}

.ewpg-card__rating .star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
}

.ewpg-card__rating .star-rating span::before {
	content: "\53\53\53\53\53";
	top: 0;
	position: absolute;
	left: 0;
	color: #c0672b;
}

.ewpg-card__review-count {
	font-size: 12px;
	color: #8a8577;
}

.ewpg-card__price {
	margin-bottom: 14px;
	font-size: 16px;
}

.ewpg-card__price .price {
	font-weight: 700;
}

.ewpg-card__price del {
	opacity: 0.6;
	font-weight: 400;
	margin-right: 6px;
}

.ewpg-card__price ins {
	text-decoration: none;
}

.ewpg-card__button {
	margin-top: auto;
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px 20px;
	background: transparent;
	border: 1px solid #1f1c14;
	color: #1f1c14;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
	transition: all 0.25s ease;
	cursor: pointer;
	position: relative;
}

.ewpg-card__button:hover {
	background: #1f1c14;
	color: #fff;
}

.ewpg-card__button.loading {
	opacity: 0.6;
	pointer-events: none;
}

.ewpg-card__button.added::after {
	font-family: WooCommerce;
	content: "\e017";
	margin-left: 6px;
	vertical-align: middle;
}

.ewpg-btn-icon {
	margin-right: 4px;
	display: inline-flex;
	vertical-align: middle;
}

.ewpg-btn-icon svg {
	fill: currentColor;
	display: block;
}

.ewpg-empty {
	text-align: center;
	padding: 40px 0;
	color: #8a8577;
}

/* Pagination */
.ewpg-pagination-wrap {
	margin-top: 36px;
}

.ewpg-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ewpg-pagination a,
.ewpg-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 8px;
	border: 1px solid #e3e0d6;
	border-radius: 3px;
	text-decoration: none;
	color: #1f1c14;
	font-size: 14px;
	transition: all 0.2s ease;
}

.ewpg-pagination a:hover,
.ewpg-pagination .current {
	background: #c0672b;
	border-color: #c0672b;
	color: #fff;
}

.ewpg-load-more-wrap {
	text-align: center;
}

.ewpg-load-more {
	display: inline-block;
	padding: 12px 32px;
	background: transparent;
	border: 1px solid #1f1c14;
	color: #1f1c14;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 2px;
	transition: all 0.25s ease;
}

.ewpg-load-more:hover {
	background: #1f1c14;
	color: #fff;
}

.ewpg-load-more-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 10px;
	border: 2px solid #ccc;
	border-top-color: #1f1c14;
	border-radius: 50%;
	vertical-align: middle;
	animation: ewpg-spin 0.6s linear infinite;
}

@keyframes ewpg-spin {
	to { transform: rotate(360deg); }
}

/* Responsive fallback (in case Elementor responsive controls aren't set) */
@media (max-width: 1024px) {
	.ewpg-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
	.ewpg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.ewpg-grid { grid-template-columns: repeat(1, 1fr); }
}
