.ewpg-widget * { box-sizing: border-box; }

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

.ewpg-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}

.ewpg-card:hover {
	transform: translateY(-4px);
}

.ewpg-card-media {
	position: relative;
}

.ewpg-card-img {
	display: block;
	width: 100%;
	height: 220px;
	background-size: cover;
	background-position: center;
}

.ewpg-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	background: #e0342e;
	color: #fff;
}

.ewpg-wishlist {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #e0342e;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.ewpg-card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.ewpg-rating-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ewpg-stars {
	display: inline-flex;
	gap: 1px;
}

.ewpg-star {
	font-size: 13px;
	line-height: 1;
}

.ewpg-review-count {
	font-size: 12px;
	color: #9a9a9a;
}

.ewpg-title {
	font-size: 19px;
	font-weight: 700;
	color: #c0392b;
	text-decoration: none;
	line-height: 1.3;
	display: block;
}

.ewpg-excerpt {
	font-size: 14px;
	color: #7a7a7a;
	margin: 0;
	line-height: 1.5;
}

.ewpg-card-footer {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #f0eae3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ewpg-price {
	font-size: 20px;
	font-weight: 700;
	color: #c0392b;
}

.ewpg-price del {
	opacity: .5;
	font-size: 0.7em;
	margin-right: 6px;
}

.ewpg-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #c0392b;
	color: #fff;
	border: 1px solid #c0392b;
	padding: 9px 20px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}

.ewpg-btn:hover {
	background: #a52a20;
	color: #fff;
}

/* Pagination */
.ewpg-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
	flex-wrap: wrap;
}

.ewpg-pagination a {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	border-radius: 50%;
	color: #7a7a7a;
	text-decoration: none;
	font-size: 14px;
	transition: all .2s ease;
}

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

.ewpg-loadmore-wrap {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.ewpg-loadmore {
	background: transparent;
	border: 1px solid #ddd;
	color: #7a7a7a;
	padding: 12px 32px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all .2s ease;
}

.ewpg-loadmore:hover {
	background: #c0392b;
	border-color: #c0392b;
	color: #fff;
}

.ewpg-loadmore[disabled] {
	opacity: .5;
	cursor: default;
}

/* Carousel */
.ewpg-widget .ewpg-swiper {
	overflow: hidden;
	padding-bottom: 10px;
}

.ewpg-widget .swiper-slide {
	height: auto;
	display: flex;
}

.ewpg-widget .swiper-slide .ewpg-card {
	width: 100%;
}

.ewpg-widget .swiper-button-next,
.ewpg-widget .swiper-button-prev {
	color: #7a7a7a;
	background: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.ewpg-widget .swiper-button-next:after,
.ewpg-widget .swiper-button-prev:after {
	font-size: 16px;
}

.ewpg-widget .swiper-pagination-bullet-active {
	background: #c0392b;
}

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

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