/* GastroNaron shop (draft theme). Same visual system as the V4 homepage. */
body.gn-shop {
	--gn-green: #26901b;
	--gn-forest: #173b2a;
	--gn-mint: #eef6ea;
	--gn-cream: #faf8f2;
	--gn-carrot: #f28c28;
	--gn-ink: #151414;
	--gn-muted: #5a665f;
	--gn-head: 'Quicksand', sans-serif;
	--gn-body: 'League Spartan', sans-serif;
}

/* ---------- Hero + preparation navigation ---------- */
.gn-shop-hero {
	background: var(--gn-cream);
	padding: 3.5rem 5vw 2.5rem;
}
.gn-shop-hero__inner {
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
}
.gn-shop-hero__title {
	font-family: var(--gn-head);
	font-weight: 700;
	font-size: 3.25rem;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--gn-forest);
	margin: 0 0 0.75rem;
}
.gn-shop-hero__lead,
.gn-shop-hero__lead p {
	font-family: var(--gn-body);
	font-size: 1.2rem;
	line-height: 1.6;
	color: var(--gn-muted);
	max-width: 38rem;
	margin: 0 0 1.75rem;
}
.gn-prep-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.gn-prep-nav__item {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 3rem;
	padding: 0.4rem 1.1rem 0.4rem 0.5rem;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(23, 59, 42, 0.07);
	font-family: var(--gn-body);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--gn-forest);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.gn-prep-nav__item:not(:has(.gn-prep-nav__icon)) {
	padding-left: 1.1rem;
}
.gn-prep-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	background: var(--gn-mint);
}
.gn-prep-nav__icon img {
	width: 1.4rem;
	height: 1.4rem;
	object-fit: contain;
}
.gn-prep-nav__name,
.gn-prep__name {
	color: inherit;
}
.gn-prep-nav__count {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--gn-muted);
}
.gn-prep-nav__item:focus-visible {
	outline: 3px solid var(--gn-green);
	outline-offset: 3px;
}
.gn-prep-nav__item.is-active {
	background: var(--gn-forest);
	color: #fff;
}
.gn-prep-nav__item.is-active .gn-prep-nav__count {
	color: #dbe9df;
}
.gn-prep-nav__item.is-active .gn-prep-nav__icon {
	background: #fff;
}
@media (hover: hover) {
	.gn-prep-nav__item:hover {
		transform: translateY(-3px);
		box-shadow: 0 12px 24px rgba(23, 59, 42, 0.14);
	}
	.gn-prep-nav__item.is-active:hover {
		background: var(--gn-forest);
	}
}

/* ---------- Shop section layout ---------- */
body.gn-shop .shop-section {
	background: #fff;
	padding: 2.5rem 5vw 5rem;
}
body.gn-shop .shop-section > .container {
	width: 100%;
	max-width: 1440px;
	padding-inline: 0;
}
body.gn-shop .shop-sidebar {
	display: none; /* the category navigation above replaces the sidebar widget */
}
body.gn-shop .shop-area .woocommerce-content-wrap,
body.gn-shop .shop-area .woocommerce-content-wrap.left-sidebar,
body.gn-shop .shop-area .woocommerce-content-wrap.right-sidebar {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Toolbar: result count, view switcher, sorting */
body.gn-shop .woocommerce-toolbar-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 1.75rem;
	padding: 0 0 1.25rem;
	border: 0;
	border-bottom: 1px solid #e3ebe0;
	background: none;
}
body.gn-shop .woocommerce-toolbar-top .woocommerce-result-count {
	font-family: var(--gn-body);
	font-size: 1.05rem;
	color: var(--gn-muted);
	margin: 0;
}
body.gn-shop .woocommerce-toolbar-top .woocommerce-result-count:empty {
	display: none;
}
body.gn-shop .woocommerce-toolbar-top .products-sizes {
	margin-left: auto;
}
body.gn-shop .woocommerce-ordering {
	margin: 0;
}
body.gn-shop .woocommerce-ordering select {
	font-family: var(--gn-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--gn-forest);
	background-color: var(--gn-mint);
	border: 2px solid transparent;
	border-radius: 999px;
	padding: 0.65rem 2.5rem 0.65rem 1.2rem;
	min-height: 3rem;
	cursor: pointer;
	transition: border-color 0.2s ease;
}
body.gn-shop .woocommerce-ordering select:hover,
body.gn-shop .woocommerce-ordering select:focus-visible {
	border-color: var(--gn-green);
	outline: none;
}

/* ---------- Product grid ---------- */
body.gn-shop .shop-section ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
body.gn-shop .shop-section ul.products::before,
body.gn-shop .shop-section ul.products::after {
	display: none !important;
}
body.gn-shop .shop-section ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 0 1.5rem !important;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 0 !important;
	border-radius: 1.5rem;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(23, 59, 42, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
	body.gn-shop .shop-section ul.products li.product:hover {
		transform: translateY(-6px);
		box-shadow: 0 18px 34px rgba(23, 59, 42, 0.16);
	}
	body.gn-shop .shop-section ul.products li.product:hover .product-holder img {
		transform: scale(1.05);
	}
}
body.gn-shop .shop-section ul.products li.product:focus-within {
	outline: 3px solid var(--gn-green);
	outline-offset: 3px;
}

/* Image area */
body.gn-shop .product-holder {
	background: var(--gn-mint);
	overflow: hidden;
	margin: 0 0 1rem;
	padding: 0;
}
body.gn-shop .product-holder > img {
	display: block;
	width: 100%;
	max-width: 100%; /* overrides the theme's ".default-column img { max-width: 160px }" */
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 0.3s ease;
}
body.gn-shop .product-holder .product__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}
body.gn-shop .product-holder .product__link:focus-visible {
	outline: 3px solid var(--gn-green);
	outline-offset: -3px;
}
.gn-prep {
	position: absolute;
	top: 0.9rem;
	left: 0.9rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.3rem 0.8rem 0.3rem 0.35rem;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(23, 59, 42, 0.16);
	font-family: var(--gn-body);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--gn-forest);
	pointer-events: none;
}
.gn-prep__icon {
	width: 1.7rem;
	height: 1.7rem;
	padding: 0.2rem;
	border-radius: 50%;
	background: var(--gn-mint);
	object-fit: contain;
}
.gn-prep:not(:has(.gn-prep__icon)) {
	padding-left: 0.8rem;
}
/* Quick view / wishlist overlay from the theme: keep, recolour */
body.gn-shop .shop-section ul.products li.product .product-holder .product__action-wrap {
	z-index: 3;
	top: 0.9rem !important;
	right: 0.9rem !important;
}
body.gn-shop .shop-section ul.products li.product .product-holder .product__action-wrap .plus-icon {
	background: #fff !important;
}
.gn-card__cta a .icon,
.gn-card__cta a i {
	color: #fff;
	font-size: 1rem;
}
body.gn-shop .product__action-wrap .plus-icon {
	background: #fff;
	color: var(--gn-green);
	box-shadow: 0 4px 12px rgba(23, 59, 42, 0.16);
}

/* Text area */
body.gn-shop .product-info {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 0.6rem;
	padding: 0 1.25rem;
	text-align: left;
}
body.gn-shop .product-info .product__title {
	margin: 0;
	font-family: var(--gn-head);
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1.2;
}
body.gn-shop .product-info .product__title a {
	color: var(--gn-forest);
	text-decoration: none;
}
body.gn-shop .product-info .product__title a:hover {
	color: var(--gn-green);
}
.gn-packs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.gn-packs li {
	margin: 0;
	padding: 0.2rem 0.7rem;
	background: var(--gn-mint);
	border-radius: 999px;
	font-family: var(--gn-body);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--gn-green);
}
body.gn-shop .product-info .woocommerce-product-details__short-description,
body.gn-shop .product-info .woocommerce-product-details__short-description p {
	margin: 0;
	font-family: var(--gn-body);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--gn-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.gn-card__foot {
	margin-top: auto;
	padding-top: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.gn-card__price,
.gn-card__price .product__price,
.gn-card__price .price {
	font-family: var(--gn-head);
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--gn-forest);
	margin: 0;
}
.gn-card__cta .button,
.gn-card__cta a.button,
.gn-card__cta a.groser__ct_btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 1.25rem !important;
	background: var(--gn-green) !important;
	border: 2px solid var(--gn-green) !important;
	border-radius: 999px !important;
	font-family: var(--gn-body) !important;
	font-weight: 700 !important;
	font-size: 1.05rem !important;
	line-height: 1.2 !important;
	color: #fff !important;
	text-decoration: none;
	text-transform: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.gn-card__cta .button:hover,
.gn-card__cta a.groser__ct_btn:hover {
	background: var(--gn-forest) !important;
	border-color: var(--gn-forest) !important;
}
.gn-card__cta .button:focus-visible {
	outline: 3px solid var(--gn-green);
	outline-offset: 3px;
}

/* View switcher (theme buttons): 4 columns is the default, 3 columns and list are optional */
@media (min-width: 900px) {
	body.gn-shop .shop-section ul.products.three-column {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
body.gn-shop .shop-section ul.products.list-view {
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}
body.gn-shop .shop-section ul.products.list-view li.product {
	flex-direction: row;
	align-items: stretch;
	padding: 0 !important;
}
body.gn-shop .shop-section ul.products.list-view li.product .product-holder {
	flex: 0 0 15rem;
	width: 15rem;
	margin: 0;
}
body.gn-shop .shop-section ul.products.list-view li.product .product-info {
	justify-content: center;
	padding: 1.25rem 1.75rem;
}
body.gn-shop .shop-section ul.products.list-view .gn-card__foot {
	flex-direction: row;
	align-items: center;
	margin-top: 0.5rem;
	padding-top: 0;
}
body.gn-shop .shop-section ul.products.list-view .gn-card__cta {
	width: 16rem;
	max-width: 100%;
}
@media (max-width: 767px) {
	body.gn-shop .shop-section ul.products.list-view li.product {
		flex-direction: column;
	}
	body.gn-shop .shop-section ul.products.list-view li.product .product-holder {
		flex: none;
		width: 100%;
	}
	body.gn-shop .shop-section ul.products.list-view .gn-card__foot {
		flex-direction: column;
		align-items: stretch;
	}
	body.gn-shop .shop-section ul.products.list-view .gn-card__cta {
		width: 100%;
	}
}

/* ---------- Pagination ---------- */
body.gn-shop .woocommerce-pagination {
	margin-top: 3rem;
	text-align: center;
}
body.gn-shop .woocommerce-pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}
body.gn-shop .woocommerce-pagination ul li {
	margin: 0;
	border: 0;
	float: none;
}
body.gn-shop .woocommerce-pagination ul li a,
body.gn-shop .woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3rem;
	height: 3rem;
	padding: 0 1rem;
	border-radius: 999px;
	background: var(--gn-mint);
	font-family: var(--gn-body);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--gn-forest);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
body.gn-shop .woocommerce-pagination ul li a:hover,
body.gn-shop .woocommerce-pagination ul li a:focus-visible {
	background: var(--gn-green);
	color: #fff;
	outline: none;
}
body.gn-shop .woocommerce-pagination ul li span.current {
	background: var(--gn-forest);
	color: #fff;
}

body.gn-shop .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Breadcrumb tidy ---------- */
body.gn-shop .breadcrumb-area,
body.gn-shop .woocommerce-breadcrumb {
	font-family: var(--gn-body);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	body.gn-shop .shop-section ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 899px) {
	.gn-shop-hero {
		padding: 2.5rem 5vw 2rem;
	}
	.gn-shop-hero__title {
		font-size: 2.6rem;
	}
	body.gn-shop .shop-section ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 599px) {
	.gn-shop-hero {
		padding: 2rem 1.25rem 1.5rem;
	}
	.gn-shop-hero__title {
		font-size: 2.2rem;
	}
	.gn-shop-hero__lead,
	.gn-shop-hero__lead p {
		font-size: 1.1rem;
	}
	.gn-prep-nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-inline: -1.25rem;
		padding: 0.25rem 1.25rem 0.75rem;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}
	.gn-prep-nav__item {
		flex: none;
		scroll-snap-align: start;
	}
	body.gn-shop .shop-section {
		padding: 1.5rem 1.25rem 3rem;
	}
	body.gn-shop .shop-section ul.products {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.25rem;
	}
	body.gn-shop .woocommerce-toolbar-top .products-sizes {
		display: none;
	}
	body.gn-shop .woocommerce-ordering,
	body.gn-shop .woocommerce-ordering select {
		width: 100%;
	}
}
@media (prefers-reduced-motion: reduce) {
	.gn-prep-nav__item,
	body.gn-shop .shop-section ul.products li.product,
	body.gn-shop .product-holder > img {
		transition: none;
	}
}
