/* 2GSD Storefront — shop / category grid */

/* ── Page canvas: cream like the homepage; no placeholder sidebar ── */
.woocommerce-shop .neve-main,
.tax-product_cat .neve-main,
.tax-product_tag .neve-main { background: var(--gsd-bg); }
.woocommerce-shop .shop-sidebar,
.tax-product_cat .shop-sidebar,
.tax-product_tag .shop-sidebar { display: none !important; }
.woocommerce-shop .nv-shop.col,
.tax-product_cat .nv-shop.col,
.tax-product_tag .nv-shop.col { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.woocommerce-shop .shop-container,
.tax-product_cat .shop-container,
.tax-product_tag .shop-container { padding-top: 0; padding-bottom: 56px; max-width: 1240px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.gsd-shop-hero {
	max-width: var(--gsd-container);
	margin: 0 auto 14px;
	padding: 8px 24px 24px;
	text-align: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.gsd-shop-hero__kicker {
	display: block;
	font-size: 12.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gsd-accent);
	font-weight: 700;
	margin-bottom: 14px;
}
.gsd-shop-hero__title {
	font-size: clamp(32px, 4.6vw, 52px);
	font-weight: 800;
	color: var(--gsd-brand);
	margin: 0 0 12px;
	line-height: 1.08;
	letter-spacing: -.02em;
}
.gsd-shop-hero__sub {
	font-size: 17.5px;
	color: var(--gsd-text-secondary);
	margin: 0 auto 26px;
	max-width: 600px;
	line-height: 1.6;
}

/* Category chips */
.gsd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 8px;
}
.gsd-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 18px;
	border: 1.5px solid var(--gsd-border-strong);
	border-radius: var(--gsd-radius-pill);
	background: var(--gsd-surface);
	color: var(--gsd-brand);
	font-size: 14.5px;
	font-weight: 650;
	text-decoration: none !important;
	white-space: nowrap;
	transition: all var(--gsd-transition);
}
.gsd-chip:hover { border-color: var(--gsd-brand); color: var(--gsd-brand); }
.gsd-chip.is-active {
	background: var(--gsd-brand);
	border-color: var(--gsd-brand);
	color: #fff;
}

/* ── Toolbar ──────────────────────────────────────────────────── */
.gsd-shop-toolbar {
	max-width: var(--gsd-container);
	margin: 0 auto 6px;
	padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.gsd-shop-toolbar__count {
	font-size: 14px;
	color: var(--gsd-text-light);
}
.gsd-shop-toolbar .woocommerce-ordering { margin: 0; }
.gsd-shop-toolbar .woocommerce-ordering select {
	border: 1px solid var(--gsd-border-strong);
	border-radius: var(--gsd-radius-sm);
	padding: 8px 12px;
	font-size: 14px;
	background: var(--gsd-surface);
	min-height: 44px;
}

/* ── Grid ─────────────────────────────────────────────────────── */
.woocommerce ul.products.gsd-grid,
ul.products.gsd-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	max-width: var(--gsd-container);
	margin: 10px auto 40px;
	padding: 0 16px;
	list-style: none;
}
@media (max-width: 1024px) {
	.woocommerce ul.products.gsd-grid,
	ul.products.gsd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	.woocommerce ul.products.gsd-grid,
	ul.products.gsd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Clearfix pseudo-elements would become grid items — remove them. */
.woocommerce ul.products.gsd-grid::before,
.woocommerce ul.products.gsd-grid::after,
ul.products.gsd-grid::before,
ul.products.gsd-grid::after { display: none !important; content: none !important; }

/* Card */
.woocommerce ul.products.gsd-grid li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	background: var(--gsd-surface);
	border: 1px solid var(--gsd-border);
	border-radius: var(--gsd-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--gsd-transition), transform var(--gsd-transition);
	position: relative;
	padding: 0 !important;
	text-align: left;
	box-sizing: border-box;
}
.woocommerce ul.products.gsd-grid li.product *,
.woocommerce ul.products.gsd-grid li.product *::before,
.woocommerce ul.products.gsd-grid li.product *::after { box-sizing: border-box; }
.woocommerce ul.products.gsd-grid li.product:hover {
	box-shadow: var(--gsd-shadow-md);
	transform: translateY(-3px);
}
.woocommerce ul.products.gsd-grid li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	text-decoration: none;
}
.woocommerce ul.products.gsd-grid li.product img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0 !important;
	border-radius: 0;
	background: #fff;
}
.woocommerce ul.products.gsd-grid li.product .gsd-product-card__title,
.woocommerce ul.products.gsd-grid li.product h2.gsd-product-card__title {
	font-family: var(--gsd-font-display);
	font-size: 16px !important;
	font-weight: 700;
	color: var(--gsd-brand);
	line-height: 1.35;
	letter-spacing: -.005em;
	margin: 16px 18px 6px !important;
	padding: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.gsd-product-card__rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 18px 4px;
	font-size: 13px;
	color: var(--gsd-text-light);
}
.gsd-product-card__rating .star-rating { margin: 0; float: none; font-size: 13px; }
.woocommerce ul.products.gsd-grid li.product .price {
	margin: 4px 18px 16px !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	color: var(--gsd-brand) !important;
}
.woocommerce ul.products.gsd-grid li.product .price del {
	font-weight: 500;
	color: var(--gsd-text-light);
	font-size: 14px;
}
.woocommerce ul.products.gsd-grid li.product .price ins { text-decoration: none; }

/* Card CTA */
.woocommerce ul.products.gsd-grid li.product .gsd-card-cta,
.gsd-card-cta {
	margin: auto 18px 18px !important;
	width: calc(100% - 36px) !important;
	max-width: calc(100% - 36px);
	min-height: 46px;
	padding: 10px 14px !important;
	font-size: 14.5px;
	white-space: normal;
	line-height: 1.2;
}
.woocommerce ul.products.gsd-grid li.product .gsd-card-cta.added::after { display: none; }

/* Badges */
.gsd-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 5;
	display: flex;
	flex-direction: column;
	gap: 5px;
	pointer-events: none;
}
.gsd-badge {
	display: inline-block;
	padding: 5px 11px;
	border-radius: var(--gsd-radius-pill);
	font-size: 11.5px;
	font-weight: 750;
	letter-spacing: .02em;
	background: var(--gsd-brand);
	color: #fff;
	align-self: flex-start;
}
.gsd-badge--sale { background: var(--gsd-error); }
.gsd-badge--best { background: var(--gsd-lime); color: var(--gsd-brand); }
.gsd-badge--pick { background: var(--gsd-brand); color: #fff; }

/* Hide legacy sale flash + quick view clutter */
.woocommerce ul.products.gsd-grid li.product .onsale { display: none; }
.woosq-btn { display: none !important; }

/* Hide Neve's duplicate result count / filter row (we render our own toolbar) */
.woocommerce-shop .nv-bc-count-wrap,
.archive.woocommerce .nv-bc-count-wrap,
.neve-main > .container .nv-woo-filters { display: none !important; }
.gsd-shop-toolbar .woocommerce-ordering { display: block !important; }

@media (max-width: 768px) {
	.gsd-shop-hero { padding: 0 12px 14px; margin-top: 0; }
	.gsd-badge { font-size: 10.5px; padding: 4px 9px; }
	.woocommerce ul.products.gsd-grid li.product .gsd-card-cta,
	.gsd-card-cta { white-space: nowrap; font-size: 13px !important; padding: 10px 8px !important; }
	.gsd-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		padding-bottom: 6px;
		-webkit-overflow-scrolling: touch;
	}
	.woocommerce ul.products.gsd-grid li.product .gsd-product-card__title,
	.woocommerce ul.products.gsd-grid li.product h2.gsd-product-card__title { font-size: 14.5px !important; margin: 12px 12px 4px !important; }
	.gsd-product-card__rating { margin: 0 12px 4px; }
	.woocommerce ul.products.gsd-grid li.product .price { margin: 2px 12px 12px !important; font-size: 16px !important; }
	.woocommerce ul.products.gsd-grid li.product .gsd-card-cta,
	.gsd-card-cta { margin: auto 12px 12px !important; width: calc(100% - 24px) !important; max-width: calc(100% - 24px); font-size: 13.5px; min-height: 44px; }
	.gsd-shop-toolbar { flex-wrap: wrap; }
}
