.cpgt-template-premium ul.products.cpgt-grid {
	--cpgt-cols: 4;
	gap: 22px 18px !important;
}

.cpgt-template-premium ul.products.cpgt-grid li.product {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	padding: 0 !important;
}

.cpgt-template-premium ul.products.cpgt-grid img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: #f4f0e8;
}

/* Title + inline star rating share a row: image takes the full first row,
   then title (flexible) and rating (fixed width) sit on the next row
   together, then price/best-price each force their own row after that. */
.cpgt-template-premium ul.products.cpgt-grid li.product a.woocommerce-LoopProduct-link {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: flex-start !important;
}
.cpgt-template-premium ul.products.cpgt-grid a.woocommerce-LoopProduct-link > .cpgt-img-wrap {
	flex: 0 0 100%;
	width: 100%;
}

.cpgt-template-premium .woocommerce-loop-product__title {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 4px 0 14px !important;
	margin: 0 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #161616;
	line-height: 1.3 !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cpgt-rating {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 3px;
	padding: 12px 14px 0 4px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1 !important;
	color: #333;
	white-space: nowrap;
}
.cpgt-star {
	color: #f5a623;
	font-size: 13px;
	line-height: 1;
}

.cpgt-template-premium .price {
	flex: 0 0 100%;
	padding: 6px 14px 0 !important;
	margin: 0 !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
}
.cpgt-template-premium .price ins {
	text-decoration: none;
	font-weight: 700;
	color: #111;
	margin-right: 7px;
}
.cpgt-template-premium .price del {
	color: #9a9a9a;
	font-weight: 400;
	font-size: 0.85em;
}

.cpgt-best-price {
	flex: 0 0 100%;
	padding: 4px 14px 0 !important;
	margin: 0 !important;
	font-size: 11px !important;
	line-height: 1.3 !important;
	font-weight: 600;
	color: #1f7a4d;
}

.cpgt-template-premium .cpgt-meta-row {
	padding: 8px 14px 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	line-height: 1 !important;
}
.cpgt-template-premium .cpgt-swatch {
	width: 16px;
	height: 16px;
	border-radius: 3px;
}
.cpgt-template-premium .cpgt-swatch-more {
	width: 16px;
	height: 16px;
	border: 1px dashed #bbb;
	border-radius: 3px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	color: #888;
}

.cpgt-template-premium .cpgt-badges {
	top: 10px;
	left: 10px;
}
.cpgt-template-premium .cpgt-badge {
	border-radius: 3px;
	font-size: 10px;
	padding: 4px 8px;
}
.cpgt-template-premium .cpgt-badge-new {
	background: #e2231a;
}
.cpgt-template-premium .cpgt-badge-sale {
	background: #e2231a;
}

.cpgt-template-premium .cpgt-wishlist-btn {
	top: 10px !important;
	right: 10px !important;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	max-width: 30px !important;
	background: rgba(255, 255, 255, 0.95) !important;
	color: #222 !important;
}
.cpgt-template-premium .cpgt-wishlist-btn svg {
	width: 15px !important;
	height: 15px !important;
}

/* Add to Bag: always visible (not a hover-reveal overlay like the other
   templates), rounded, with a small lock icon — overrides the base
   hover-slide-up button behaviour for this template only. */
.cpgt-template-premium ul.products.cpgt-grid li.product > a.button {
	position: static !important;
	transform: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: calc(100% - 28px) !important;
	margin: 10px 14px 14px !important;
	padding: 11px 0 !important;
	background: #111 !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.02em;
	text-transform: none !important;
	border-radius: 5px !important;
}
.cpgt-template-premium ul.products.cpgt-grid li.product > a.button::before {
	content: "";
	width: 12px;
	height: 12px;
	flex: 0 0 auto;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 17a2 2 0 100-4 2 2 0 000 4zm6-9h-1V6a5 5 0 00-10 0v2H6a2 2 0 00-2 2v9a2 2 0 002 2h12a2 2 0 002-2v-9a2 2 0 00-2-2zM9 6a3 3 0 016 0v2H9V6z"/></svg>');
	background-size: contain;
	background-repeat: no-repeat;
}
