/**
 * GCHS Shop — Front-end styles.
 *
 * Uses GCHS design tokens (CSS custom properties) defined in theme.json.
 *
 * @package GCHS_Shop
 * @author  HRMG
 */

/* ==========================================================================
   Shop Hero Banner
   ========================================================================== */

.gchs-shop-hero {
	background: linear-gradient(135deg, var(--wp--preset--color--primary-dark, #34577c) 0%, #2a4566 100%);
	color: var(--wp--preset--color--base, #fff);
	overflow: hidden;
}

.gchs-shop-hero__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 3rem;
	position: relative;
}

.gchs-shop-hero__eyebrow {
	display: block;
	font-family: var(--wp--preset--font-family--subheading, 'Montserrat', sans-serif);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	opacity: 0.6;
	margin-bottom: 0.5rem;
}

.gchs-shop-hero__title {
	font-family: var(--wp--preset--font-family--heading, 'League Spartan', sans-serif);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 0.75rem;
	color: #fff;
}

.gchs-shop-hero__desc {
	font-family: var(--wp--preset--font-family--body, 'Source Serif Pro', serif);
	font-size: var(--wp--preset--font-size--medium, 1rem);
	line-height: 1.6;
	opacity: 0.85;
	margin: 0;
	max-width: 520px;
}

.gchs-shop-hero__icon {
	flex-shrink: 0;
	opacity: 0.25;
	filter: brightness(0) invert(0.75) sepia(1) saturate(2) hue-rotate(185deg);
}

/* ==========================================================================
   Shop Filter Bar
   ========================================================================== */

.gchs-shop-filters {
	background: var(--wp--preset--color--base, #fff);
	border: 1px solid var(--wp--preset--color--neutral-light, #e4e5ed);
	border-radius: 12px;
	margin-bottom: 1.5rem;
	overflow: hidden;
}

.gchs-shop-filters__row {
	display: flex;
	align-items: stretch;
}

.gchs-shop-filters__field {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
	padding: 0.75rem 1rem;
	border-right: 1px solid var(--wp--preset--color--neutral-light, #e4e5ed);
	transition: background-color 0.15s ease;
}

.gchs-shop-filters__field:last-child {
	border-right: none;
}

.gchs-shop-filters__field:focus-within {
	background: rgba(112, 157, 204, 0.04);
}

.gchs-shop-filters__field--search {
	flex: 2;
	position: relative;
}

.gchs-shop-filters__icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--wp--preset--color--neutral-mid, #686868);
	pointer-events: none;
}

.gchs-shop-filters__search {
	width: 100%;
	border: none;
	outline: none;
	background: transparent;
	padding: 0.5rem 0.875rem 0.5rem 2.25rem;
	font-family: var(--wp--preset--font-family--body, 'Source Serif Pro', serif);
	font-size: var(--wp--preset--font-size--medium, 1rem);
	color: var(--wp--preset--color--contrast, #000);
}

.gchs-shop-filters__search::placeholder {
	color: var(--wp--preset--color--neutral-mid, #686868);
}

.gchs-shop-filters__label {
	font-family: var(--wp--preset--font-family--subheading, 'Montserrat', sans-serif);
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--wp--preset--color--neutral-mid, #686868);
	margin-bottom: 0.125rem;
}

.gchs-shop-filters__field select {
	border: none;
	outline: none;
	background: transparent;
	font-family: var(--wp--preset--font-family--subheading, 'Montserrat', sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark, #34577c);
	cursor: pointer;
	padding: 0.125rem 0;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334577c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0 center;
	padding-right: 1.25rem;
}

.gchs-shop-filters__count {
	padding: 0.5rem 1rem;
	font-family: var(--wp--preset--font-family--subheading, 'Montserrat', sans-serif);
	font-size: 0.75rem;
	color: var(--wp--preset--color--neutral-mid, #686868);
	border-top: 1px solid var(--wp--preset--color--neutral-light, #e4e5ed);
}

.gchs-shop-listing {
	padding-block: 2rem;
}

/* ==========================================================================
   Adoptable Animals Section
   ========================================================================== */

.gchs-shop-animals {
	background: var(--wp--preset--color--neutral-light, #e4e5ed);
	padding: 3rem 0;
}

.gchs-shop-animals__header {
	text-align: center;
	margin-bottom: 2rem;
}

.gchs-shop-animals__title {
	font-family: var(--wp--preset--font-family--heading, 'League Spartan', sans-serif);
	font-size: var(--wp--preset--font-size--xx-large, 2rem);
	font-weight: 800;
	color: var(--wp--preset--color--primary-dark, #34577c);
	margin: 0 0 0.5rem;
}

.gchs-shop-animals__desc {
	font-family: var(--wp--preset--font-family--body, 'Source Serif Pro', serif);
	font-size: var(--wp--preset--font-size--medium, 1rem);
	color: var(--wp--preset--color--neutral-mid, #686868);
	margin: 0;
}

.gchs-shop-animals__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.gchs-shop-animals__cta {
	text-align: center;
	margin-top: 2rem;
}

/* ==========================================================================
   Shop Grid
   ========================================================================== */

.gchs-shop-grid {
	display: grid;
	grid-template-columns: repeat( var(--gchs-shop-cols, 3), 1fr );
	gap: 1.25rem;
	padding: 0;
	list-style: none;
}

.gchs-shop-grid__empty {
	text-align: center;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--neutral-mid);
	padding: 3rem 1rem;
}

.gchs-shop-grid__card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--neutral-light);
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease, opacity 0.5s ease;
	opacity: 0;
	animation: gchs-shop-card-in 0.5s ease forwards;
	animation-delay: calc(var(--card-index, 0) * 80ms);
}

@keyframes gchs-shop-card-in {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.gchs-shop-grid__card:hover,
.gchs-shop-grid__card:focus-visible {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.gchs-shop-grid__image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.gchs-shop-grid__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease, opacity 0.4s ease;
	opacity: 0;
}

.gchs-shop-grid__image img.is-loaded {
	opacity: 1;
}

.gchs-shop-grid__card:hover .gchs-shop-grid__image img {
	transform: scale(1.05);
}

.gchs-shop-grid__info {
	padding: 1rem;
}

.gchs-shop-grid__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	color: var(--wp--preset--color--primary-dark);
	margin: 0 0 0.25rem;
}

.gchs-shop-grid__price {
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--accent-warm);
}

/* ==========================================================================
   Product Detail
   ========================================================================== */

.gchs-product-detail {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

/* Top Navigation Bar (mirrors animal detail topbar) */

.gchs-shop-topbar {
	background: var(--wp--preset--color--neutral-light, #e4e5ed);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.gchs-shop-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.75rem;
}

.gchs-shop-topbar__back {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-family: var(--wp--preset--font-family--subheading, 'Montserrat', sans-serif);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark, #34577c);
	text-decoration: none;
	padding: 0.375rem 0.75rem 0.375rem 0.375rem;
	border-radius: 6px;
	transition: background-color 0.15s ease;
	white-space: nowrap;
}

.gchs-shop-topbar__back:hover {
	background: rgba(0, 0, 0, 0.05);
	color: var(--wp--preset--color--accent-warm, #e07c3a);
}

.gchs-shop-topbar__breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-family: var(--wp--preset--font-family--subheading, 'Montserrat', sans-serif);
	font-size: 0.75rem;
	color: var(--wp--preset--color--neutral-mid, #686868);
}

.gchs-shop-topbar__breadcrumb a {
	color: var(--wp--preset--color--neutral-mid, #686868);
	text-decoration: none;
	transition: color 0.15s ease;
}

.gchs-shop-topbar__breadcrumb a:hover {
	color: var(--wp--preset--color--primary-dark, #34577c);
}

.gchs-shop-topbar__breadcrumb svg {
	opacity: 0.35;
	flex-shrink: 0;
}

.gchs-shop-topbar__breadcrumb span[aria-current] {
	color: var(--wp--preset--color--primary-dark, #34577c);
	font-weight: 600;
}

/* Layout */

.gchs-product-detail__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

/* Gallery */

.gchs-product-detail__gallery {
	position: sticky;
	top: 2rem;
	align-self: start;
}

.gchs-product-detail__main-image {
	width: 100%;
	border-radius: 12px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.gchs-product-detail__thumbs {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
	overflow-x: auto;
}

.gchs-product-detail__thumb {
	width: 64px;
	height: 64px;
	border-radius: 6px;
	object-fit: cover;
	cursor: pointer;
	border: 2px solid transparent;
	opacity: 0.6;
	transition: opacity 0.2s ease, border-color 0.2s ease;
	flex-shrink: 0;
}

.gchs-product-detail__thumb:hover {
	opacity: 0.85;
}

.gchs-product-detail__thumb.is-active {
	border-color: var(--wp--preset--color--accent-warm);
	opacity: 1;
}

/* Info */

.gchs-product-detail__info {
	display: flex;
	flex-direction: column;
}

.gchs-product-detail__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 800;
	color: var(--wp--preset--color--primary-dark);
	margin: 0;
}

.gchs-product-detail__price {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	color: var(--wp--preset--color--accent-warm);
	margin: 0.5rem 0 1.5rem;
}

.gchs-product-detail__label {
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--wp--preset--color--primary-dark);
	margin-bottom: 0.5rem;
}

/* Color Swatches */

.gchs-product-detail__colors {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.gchs-product-detail__swatch {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	border: 3px solid transparent;
	transition: border-color 0.2s ease;
}

.gchs-product-detail__swatch:hover {
	border-color: var(--wp--preset--color--neutral-light);
}

.gchs-product-detail__swatch.is-active {
	border-color: var(--wp--preset--color--primary-dark);
	box-shadow: 0 0 0 2px white inset;
}

/* Size Select */

.gchs-product-detail__size-select {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--wp--preset--color--neutral-light);
	border-radius: 8px;
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--medium);
	margin-bottom: 1.5rem;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary-dark);
	appearance: auto;
}

.gchs-product-detail__size-select:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Quantity Selector */

.gchs-product-detail__qty {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	width: fit-content;
	border: 1px solid var(--wp--preset--color--neutral-light);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 1.5rem;
}

.gchs-product-detail__qty-btn {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	font-size: 1.125rem;
	color: var(--wp--preset--color--primary-dark);
	cursor: pointer;
	transition: background-color 0.15s ease;
	font-family: var(--wp--preset--font-family--subheading);
}

.gchs-product-detail__qty-btn:hover {
	background: var(--wp--preset--color--neutral-light);
}

.gchs-product-detail__qty-input {
	width: 48px;
	height: 44px;
	text-align: center;
	border: none;
	border-left: 1px solid var(--wp--preset--color--neutral-light);
	border-right: 1px solid var(--wp--preset--color--neutral-light);
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
	-moz-appearance: textfield;
}

.gchs-product-detail__qty-input::-webkit-outer-spin-button,
.gchs-product-detail__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Add to Cart */

.gchs-product-detail__add-to-cart {
	margin-bottom: 1rem;
}

.gchs-product-detail__add-to-cart:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Description */

.gchs-product-detail__desc {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: #444;
	line-height: 1.7;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--wp--preset--color--neutral-light);
}

/* ==========================================================================
   You May Also Like
   ========================================================================== */

.gchs-product-upsell {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 2.5rem 1rem 3rem;
	border-top: 1px solid var(--wp--preset--color--neutral-light);
}

.gchs-product-upsell__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	color: var(--wp--preset--color--primary-dark);
	margin: 0 0 1.5rem;
	text-align: center;
}

.gchs-product-upsell__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.gchs-product-upsell__card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--neutral-light);
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gchs-product-upsell__card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.gchs-product-upsell__image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.gchs-product-upsell__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease, opacity 0.4s ease;
	opacity: 0;
}

.gchs-product-upsell__image img.is-loaded {
	opacity: 1;
}

.gchs-product-upsell__card:hover .gchs-product-upsell__image img {
	transform: scale(1.05);
}

.gchs-product-upsell__info {
	padding: 0.875rem 1rem;
}

.gchs-product-upsell__name {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	color: var(--wp--preset--color--primary-dark);
	margin-bottom: 0.25rem;
}

.gchs-product-upsell__price {
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--accent-warm);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media ( max-width: 768px ) {
	.gchs-shop-hero__icon {
		display: none;
	}

	.gchs-shop-hero__inner {
		padding-block: 2rem;
	}

	.gchs-shop-filters__row {
		flex-direction: column;
	}

	.gchs-shop-filters__field {
		border-right: none;
		border-bottom: 1px solid var(--wp--preset--color--neutral-light, #e4e5ed);
	}

	.gchs-shop-filters__field:last-child {
		border-bottom: none;
	}

	.gchs-shop-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gchs-product-upsell__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gchs-shop-animals__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.gchs-shop-topbar__breadcrumb {
		display: none;
	}

	.gchs-product-detail__layout {
		grid-template-columns: 1fr;
	}

	.gchs-product-detail__gallery {
		position: static;
	}
}

@media ( max-width: 480px ) {
	.gchs-shop-grid {
		grid-template-columns: 1fr;
	}

	.gchs-product-upsell__grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ==========================================================================
   Header Cart Badge
   ========================================================================== */

.gchs-cart-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.25rem;
	color: var(--wp--preset--color--primary-dark);
}

.gchs-cart-badge svg {
	width: 22px;
	height: 22px;
	stroke: var(--wp--preset--color--primary-dark);
	fill: none;
	stroke-width: 1.5;
}

.gchs-cart-badge__count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-warm);
	color: var(--wp--preset--color--base);
	font-size: 0.625rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--subheading);
}

.gchs-cart-badge--empty {
	display: none;
}

.gchs-cart-badge--empty .gchs-cart-badge__count {
	display: none;
}

@media ( max-width: 1024px ) {
	.gchs-cart-badge--empty {
		display: inline-flex;
	}
}

.gchs-cart-badge__count.is-bouncing {
	animation: gchs-badge-bounce 0.4s ease;
}

@keyframes gchs-badge-bounce {
	0%   { transform: scale(1); }
	50%  { transform: scale(1.3); }
	100% { transform: scale(1); }
}

/* ==========================================================================
   Mini Cart Dropdown
   ========================================================================== */

.gchs-cart-wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-right: 1rem;
}

.gchs-mini-cart {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	width: 360px;
	max-height: 480px;
	background: var(--wp--preset--color--base, #fff);
	border: 1px solid var(--wp--preset--color--neutral-light, #e4e5ed);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
	z-index: 10000;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.gchs-mini-cart.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.gchs-mini-cart__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.875rem 1rem;
	border-bottom: 1px solid var(--wp--preset--color--neutral-light, #e4e5ed);
}

.gchs-mini-cart__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary-dark, #34577c);
}

.gchs-mini-cart__close {
	background: none;
	border: none;
	font-size: 1.25rem;
	cursor: pointer;
	color: var(--wp--preset--color--neutral-mid, #686868);
	padding: 0.25rem;
	line-height: 1;
}

.gchs-mini-cart__close:hover {
	color: var(--wp--preset--color--primary-dark, #34577c);
}

.gchs-mini-cart__body {
	flex: 1;
	overflow-y: auto;
	padding: 0.75rem;
}

.gchs-mini-cart__empty {
	text-align: center;
	padding: 2rem 1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--neutral-mid, #686868);
	margin: 0;
}

.gchs-mini-cart__item {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 0.625rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	position: relative;
}

.gchs-mini-cart__item:last-of-type {
	border-bottom: none;
}

.gchs-mini-cart__item-img {
	width: 52px;
	height: 52px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}

.gchs-mini-cart__item-info {
	flex: 1;
	min-width: 0;
}

.gchs-mini-cart__item-title {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary-dark, #34577c);
	text-decoration: none;
	line-height: 1.3;
	margin-bottom: 0.125rem;
}

.gchs-mini-cart__item-title:hover {
	color: var(--wp--preset--color--accent-warm, #e07c3a);
}

.gchs-mini-cart__item-variant {
	display: block;
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 0.6875rem;
	color: var(--wp--preset--color--neutral-mid, #686868);
	margin-bottom: 0.375rem;
}

.gchs-mini-cart__item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.gchs-mini-cart__item-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--wp--preset--color--neutral-light, #e4e5ed);
	border-radius: 4px;
}

.gchs-mini-cart__qty-btn {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 0.75rem;
	color: var(--wp--preset--color--primary-dark, #34577c);
}

.gchs-mini-cart__qty-btn:hover {
	background: var(--wp--preset--color--neutral-light, #e4e5ed);
}

.gchs-mini-cart__qty-val {
	width: 24px;
	text-align: center;
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 0.75rem;
	font-weight: 600;
}

.gchs-mini-cart__item-price {
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark, #34577c);
}

.gchs-mini-cart__remove {
	position: absolute;
	top: 0.375rem;
	right: 0;
	background: none;
	border: none;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	color: var(--wp--preset--color--neutral-mid, #686868);
	padding: 0.125rem;
}

.gchs-mini-cart__remove:hover {
	color: #d32f2f;
}

.gchs-mini-cart__footer {
	padding: 0.875rem 1rem;
	border-top: 1px solid var(--wp--preset--color--neutral-light, #e4e5ed);
}

.gchs-mini-cart__subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--wp--preset--font-family--subheading);
	font-size: 0.875rem;
	color: var(--wp--preset--color--primary-dark, #34577c);
	margin-bottom: 0.75rem;
}

.gchs-mini-cart__view-cart {
	display: block;
	text-align: center;
	width: 100%;
	font-size: 0.875rem;
	padding: 0.625rem 1rem;
}

@media ( max-width: 480px ) {
	.gchs-mini-cart {
		width: calc(100vw - 2rem);
		right: -1rem;
	}
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

.gchs-cart {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.gchs-cart__breadcrumb {
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--neutral-mid);
	margin-bottom: 2rem;
}

.gchs-cart__breadcrumb a {
	color: var(--wp--preset--color--primary-dark);
	text-decoration: none;
}

.gchs-cart__breadcrumb a:hover {
	text-decoration: underline;
}

.gchs-cart__breadcrumb-sep {
	margin: 0 0.5rem;
}

.gchs-cart__header {
	margin-bottom: 2rem;
}

.gchs-cart__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 800;
	color: var(--wp--preset--color--primary-dark);
	margin: 0;
}

.gchs-cart__empty {
	text-align: center;
	padding: 4rem 2rem;
}

.gchs-cart__empty p {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--neutral-mid);
	margin-bottom: 1.5rem;
}

.gchs-cart__items {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.gchs-cart__item {
	display: grid;
	grid-template-columns: 80px 1fr auto auto auto auto;
	gap: 1rem;
	align-items: center;
	padding: 1rem;
	border: 1px solid var(--wp--preset--color--neutral-light);
	border-radius: 8px;
	background: var(--wp--preset--color--base);
}

.gchs-cart__item-image img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
}

.gchs-cart__item-info {
	display: flex;
	flex-direction: column;
}

.gchs-cart__item-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	color: var(--wp--preset--color--primary-dark);
}

.gchs-cart__item-variant {
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--neutral-mid);
}

.gchs-cart__item-price {
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

.gchs-cart__qty {
	width: 60px;
	text-align: center;
	padding: 0.5rem;
	border: 1px solid var(--wp--preset--color--neutral-light);
	border-radius: 6px;
}

.gchs-cart__item-line-total {
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

.gchs-cart__remove {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--wp--preset--color--neutral-mid);
	font-size: 1.25rem;
	line-height: 1;
	padding: 0.25rem;
}

.gchs-cart__remove:hover {
	color: #d32f2f;
}

.gchs-cart__summary {
	display: flex;
	justify-content: flex-end;
	gap: 2rem;
	align-items: center;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--neutral-light);
}

.gchs-cart__subtotal {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	color: var(--wp--preset--color--primary-dark);
}

.gchs-cart__actions {
	display: flex;
	gap: 0.75rem;
	justify-content: flex-end;
	margin-top: 1rem;
}

/* Toast */

.gchs-shop-toast {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--base);
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-family: var(--wp--preset--font-family--subheading);
	font-size: var(--wp--preset--font-size--small);
	z-index: 9999;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.3s, transform 0.3s;
}

.gchs-shop-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ==========================================================================
   Cart Page — Responsive
   ========================================================================== */

@media ( max-width: 768px ) {
	.gchs-cart__item {
		grid-template-columns: 60px 1fr;
		grid-template-rows: auto auto;
	}

	.gchs-cart__item-price,
	.gchs-cart__qty,
	.gchs-cart__item-line-total,
	.gchs-cart__remove {
		grid-column: 2;
	}

	.gchs-cart__actions {
		flex-direction: column;
	}
}
