/* =========================================================
   GPL Villa — Shop / Product grid
   Exactly 2 products per row on desktop and mobile alike, every
   card the same height regardless of title/description length, so
   nothing staggers ("kuch upar kuch neeche").
   ========================================================= */

.gsm-shop-hero {
	text-align: center;
	padding: 10px 16px 22px;
}
/* Search bar had no layout CSS at all before — input and button just
   flowed at their default (non-flex) sizing instead of spanning the
   same full width as the product grid below them, leaving a gap on the
   right on wider/desktop screens. */
.gsm-shop-search {
	display: flex;
	gap: 10px;
	margin-bottom: 24px;
}
.gsm-shop-search input[type="search"] {
	flex: 1;
	min-width: 0;
}
.gsm-shop-search button {
	flex-shrink: 0;
	white-space: nowrap;
}
.gsm-shop-hero-title {
	font-size: 40px;
	font-weight: 900;
	margin: 0 0 8px;
	background: linear-gradient(135deg, var(--gv-gold-light), var(--gv-gold));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: 0.5px;
}
.gsm-shop-hero-tagline {
	font-size: 15.5px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 0 14px rgba(255,255,255,0.25);
	margin: 0;
	max-width: 520px;
	margin-inline: auto;
}
@media (max-width: 560px) {
	.gsm-shop-hero-title { font-size: 30px; }
	.gsm-shop-hero-tagline { font-size: 14px; }
}

.gsm-products,
.gsm-shop ul.products,
ul.gsm-products.products {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 22px !important;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gv-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--gv-card);
	border: 1px solid var(--gv-border);
	border-radius: var(--gv-radius);
	padding: 0 0 18px;
	margin: 0;
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	position: relative;
}

.gv-product-card:hover {
	transform: translateY(-6px);
	border-color: var(--gv-gold-dark);
	box-shadow: var(--gv-shadow-lg);
}

.gv-product-card-link {
	display: flex;
	flex-direction: column;
	color: inherit;
}
.gv-product-card-link:hover { color: inherit; }

.gv-product-card img {
	display: block;
	width: 100%;
	border-radius: 0;
	margin-bottom: 14px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.gv-product-card-body {
	padding: 0 14px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.gv-product-title {
	color: #fff;
	font-size: 14.5px;
	margin: 4px 0;
	/* one line only, longer titles truncate with an ellipsis instead of
	   wrapping and breaking the card's rhythm */
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-height: 1.3em;
}

.gv-product-card .price {
	color: var(--gv-gold-light);
	font-weight: 700;
	font-size: 16px;
	margin-top: auto;
}

.gv-product-card-footer {
	padding: 14px 14px 0;
	margin-top: 12px;
}

.gv-product-card .gv-badge {
	position: absolute;
	z-index: 2;
	top: 10px;
	left: 12px;
	font-size: 11px;
	padding: 4px 10px;
	border-radius: 999px;
	font-weight: 700;
	text-transform: uppercase;
	white-space: nowrap;
}
.gv-badge-plan { background: linear-gradient(135deg, var(--gv-gold-light), var(--gv-gold-dark)); color: #171106; }
.gv-badge-license {
	background: linear-gradient(135deg, var(--gv-pink-strong), var(--gv-red-strong));
	color: #fff;
	top: 38px;
	font-size: 8.5px;
	padding: 3px 8px;
	letter-spacing: 0.3px;
	animation: gv-badge-glow-pulse 2.4s ease-in-out infinite;
}

@keyframes gv-badge-glow-pulse {
	0%, 100% { box-shadow: 0 0 4px rgba(255,59,59,0.5); }
	50% { box-shadow: 0 0 11px rgba(255,59,59,0.9), 0 0 3px rgba(255,255,255,0.4); }
}
@media (prefers-reduced-motion: reduce) {
	.gv-badge-license { animation: none; box-shadow: 0 0 8px rgba(255,59,59,0.65); }
}

.gsm-store span.onsale {
	background: linear-gradient(135deg, var(--gv-gold-light), var(--gv-gold-dark));
	color: #171106;
	font-weight: 700;
	top: 12px;
	left: 12px;
	right: auto;
}

.gsm-store .star-rating { color: var(--gv-gold); }

/* Shop toolbar / sidebar (result count, ordering, widgets) */
.gsm-store-result-count,
.gsm-store-ordering select {
	color: var(--gv-text-muted);
}

.widget_price_filter .price_slider_amount,
.widget.gsm-store {
	color: var(--gv-text-muted);
}

.gsm-store nav.gsm-store-pagination ul {
	border: none;
	gap: 8px;
	display: flex;
}
.gsm-store nav.gsm-store-pagination ul li {
	border: none;
}
.gsm-store nav.gsm-store-pagination ul li a,
.gsm-store nav.gsm-store-pagination ul li span {
	background: var(--gv-card);
	border: 1px solid var(--gv-border);
	border-radius: var(--gv-radius-sm);
	color: var(--gv-text-muted);
}
.gsm-store nav.gsm-store-pagination ul li a:hover,
.gsm-store nav.gsm-store-pagination ul li span.current {
	background: linear-gradient(135deg, var(--gv-gold-light), var(--gv-gold-dark));
	color: #171106;
}

/* Shop page hero banner (rendered via page.php-style header for archive) */
.gv-archive-header {
	background: var(--gv-ink);
	border-bottom: 1px solid var(--gv-border);
	padding: 54px 24px;
	text-align: center;
	margin-bottom: var(--gv-space-lg);
}
.gv-archive-header h1 { font-size: 30px; margin-bottom: 8px; }
.gv-archive-header p { color: var(--gv-text-muted); }

/* Stay at 2-per-row all the way down; just tighten spacing on very small screens. */
@media (max-width: 480px) {
	.gsm-products,
	.gsm-shop ul.products { gap: 12px !important; }
	.gv-product-card-body,
	.gv-product-card-footer { padding-left: 8px; padding-right: 8px; }
}

/* Sale price: original struck through, sale price highlighted gold —
   shown wherever a product has a valid sale_price set (card grid,
   category rows, single product, plan cards). */
.gsm-price-on-sale { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gsm-price-regular {
	text-decoration: line-through;
	color: var(--gv-text-faint);
	font-weight: 500;
	font-size: 0.72em;
}
.gsm-price-sale {
	text-decoration: none;
	color: var(--gv-gold-light);
	font-weight: 800;
}

/* Pagination — shown at the bottom of the shop page and every category
   listing page once there's more than one page of results. */
.gsm-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 36px 0 10px;
}
.gsm-pagination-numbers { display: flex; flex-wrap: wrap; gap: 6px; }
.gsm-pagination a,
.gsm-pagination-current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: var(--gv-radius-sm);
	font-size: 13.5px;
	font-weight: 600;
}
.gsm-pagination-numbers a,
.gsm-pagination-numbers span {
	min-width: 38px;
	padding: 0;
}
.gsm-pagination a {
	background: var(--gv-card);
	border: 1px solid var(--gv-border);
	color: var(--gv-text-muted);
}
.gsm-pagination a:hover { border-color: var(--gv-gold-dark); color: var(--gv-gold-light); }
.gsm-pagination-current {
	background: linear-gradient(135deg, var(--gv-gold-light), var(--gv-gold-dark));
	color: #171106;
}
.gsm-pagination-prev,
.gsm-pagination-next { font-weight: 700; }
