/* ==========================================================================
   Graceful Gifts - Shop archive
   Place at: your-child-theme/assets/css/gg-shop.css
   ========================================================================== */

.gg-shop-hero,
.gg-shop-layout,
.gg-newsletter {
	--gg-teal-dk: #0c5257;
	--gg-teal: #0f6a70;
	--gg-teal-lt: #17758f;
	--gg-ink: #123a4b;
	--gg-text: #4a5560;
	--gg-muted: #6e7a83;
	--gg-border: #e5e7e4;
	--gg-light: #f8f8f6;
	--gg-sage: #9ac5c4;
	--gg-serif: "Playfair Display", Georgia, serif;
	--gg-sans: "Poppins", -apple-system, "Segoe UI", sans-serif;
}

/* Decorative leaf artwork. Swap the URLs here if a leaf lands in the
   wrong slot - nothing else references them. */
.gg-shop-layout,
.gg-newsletter {
	--gg-leaf-sidebar: url("http://mediumturquoise-lemur-799140.hostingersite.com/wp-content/uploads/2026/09/7e6493ce-5277-4479-9f21-e5ca4c67911b.png");
	--gg-leaf-sidebar-top: url("http://mediumturquoise-lemur-799140.hostingersite.com/wp-content/uploads/2026/09/10357218-9b7c-4fc3-86fd-22f743ab07ea.png");
	--gg-leaf-left: url("http://mediumturquoise-lemur-799140.hostingersite.com/wp-content/uploads/2026/09/6b0e9f8b-25b5-4e57-936c-be46ef93fd3c.png");
	--gg-leaf-right: url("http://mediumturquoise-lemur-799140.hostingersite.com/wp-content/uploads/2026/09/07a3f676-6691-43bd-9426-a7811677e104.png");
}

.gg-container {
	width: min(1240px, calc(100% - 44px));
	margin: 0 auto;
}

/* ---------------------------------------------------------------- HERO --- */

.gg-shop-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 240px;
	padding: 38px 0;
	background: #f6f1e6 center right / cover no-repeat;
}

/* Main shop: taller band, artwork bled to the right, copy on the left. */
.gg-shop-hero--banner {
	min-height: 420px;
	padding: 48px 0;
	background-position: center right;
}

/* Cream wash on the left so the copy stays readable over the photography.
   Drop this rule if you use a text free version of the artwork. */
.gg-shop-hero--banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #fbf7ef 0%, #fbf7ef 34%, rgba(251, 247, 239, .82) 46%, rgba(251, 247, 239, 0) 62%);
	pointer-events: none;
}

.gg-shop-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 46%;
}

.gg-shop-hero--banner .gg-shop-hero__inner { max-width: 42%; }

.gg-shop-hero__title {
	margin: 0;
	color: #0e3b47;
	font-family: var(--gg-serif);
	font-size: clamp(30px, 4.4vw, 52px);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.5px;
}

.gg-shop-hero__tagline {
	max-width: 420px;
	margin: 10px 0 0;
	color: #123a4b;
	font-family: var(--gg-sans);
	font-size: clamp(15px, 1.6vw, 21px);
	font-weight: 400;
	line-height: 1.4;
}

.gg-shop-hero__rule {
	display: block;
	width: 60px;
	height: 2px;
	margin: 18px 0;
	background: #c6a24a;
}

.gg-shop-hero--banner .gg-shop-hero__rule { width: 60px; }

.gg-shop-hero__text {
	max-width: 400px;
	margin: 0;
	color: var(--gg-text);
	font-family: var(--gg-sans);
	font-size: 13.5px;
	line-height: 1.7;
}

/* Themes and Elementor global styles both set a link colour, and either
   can win over a single class. Pin the label white on all states. */
.gg-shop-hero a.gg-shop-hero__cta,
.gg-shop-hero a.gg-shop-hero__cta:link,
.gg-shop-hero a.gg-shop-hero__cta:visited,
.gg-shop-hero a.gg-shop-hero__cta:hover,
.gg-shop-hero a.gg-shop-hero__cta:focus,
.gg-shop-hero a.gg-shop-hero__cta:active {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
	padding: 14px 30px;
	border: 0;
	border-radius: 40px;
	background: var(--gg-teal-dk);
	color: #fff !important;
	font-family: var(--gg-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background .2s ease, transform .2s ease;
}

.gg-shop-hero a.gg-shop-hero__cta * { color: #fff !important; }

.gg-shop-hero a.gg-shop-hero__cta:hover {
	background: var(--gg-teal-lt);
	transform: translateX(2px);
}

.gg-shop-hero__cta span { transition: transform .2s ease; }
.gg-shop-hero__cta:hover span { transform: translateX(4px); }

.gg-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin-bottom: 12px;
	color: var(--gg-ink);
	font-family: var(--gg-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
}

.gg-breadcrumb a { color: var(--gg-teal); text-decoration: none; transition: color .2s ease; }
.gg-breadcrumb a:hover { color: var(--gg-teal-dk); text-decoration: underline; }

.gg-crumb-sep {
	display: inline-block;
	margin: 0 8px;
	color: #9aa8a5;
	font-size: 15px;
	line-height: 1;
}

/* Artwork that already has the copy baked in: add this class to the section
   and the HTML text hides, leaving the banner on its own.
   add_filter( 'body_class', ... ) is not needed - just add gg-shop-hero--image-only
   to the section in archive-product.php. */
.gg-shop-hero--image-only { min-height: 0; padding: 0; aspect-ratio: 3 / 1; }
.gg-shop-hero--image-only::before,
.gg-shop-hero--image-only .gg-shop-hero__inner > *:not(.gg-breadcrumb) { display: none; }

/* --------------------------------------------------------------- INTRO --- */

.gg-shop-intro {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
	padding: 34px 0 26px;
	font-family: var(--gg-sans);
}

.gg-shop-intro__copy { flex: 1 1 520px; min-width: 0; }

.gg-shop-intro__title {
	margin: 0 0 8px;
	color: var(--gg-ink);
	font-family: var(--gg-serif);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 600;
	line-height: 1.15;
}

.gg-shop-intro__text {
	max-width: 620px;
	margin: 0;
	color: var(--gg-text);
	font-size: 14px;
	line-height: 1.7;
}

.gg-shop-intro__tools {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 4px;
}

.gg-shop-intro .woocommerce-result-count {
	float: none !important;
	margin: 0 !important;
	color: var(--gg-text);
	font-size: 12.5px;
	white-space: nowrap;
}

.gg-shop-intro .woocommerce-ordering {
	float: none !important;
	margin: 0 !important;
}

.gg-shop-intro .woocommerce-ordering select {
	padding: 11px 38px 11px 16px;
	border: 1px solid var(--gg-border);
	border-radius: 6px;
	background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236e7a83'%3E%3Cpath d='M8 11 3.5 6.5 4.6 5.4 8 8.8l3.4-3.4 1.1 1.1z'/%3E%3C/svg%3E") right 14px center/12px no-repeat;
	color: var(--gg-ink);
	font-family: var(--gg-sans);
	font-size: 13px;
	appearance: none;
	cursor: pointer;
}

/* -------------------------------------------------------------- LAYOUT --- */

.gg-shop-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 26px;
	align-items: start;
	padding: 0 0 50px;
	font-family: var(--gg-sans);
}

/* Grid children default to min-width:auto, which makes the cards refuse
   to shrink and overflow the container. */
.gg-shop-main,
.gg-shop-sidebar {
	min-width: 0;
}

/* ------------------------------------------------------------- SIDEBAR --- */

.gg-shop-sidebar {
	position: sticky;
	top: 100px;
	padding: 20px 18px;
	background: #fff;
	border: 1px solid var(--gg-border);
	border-radius: 8px;
}

/* Branch bleeding off the bottom left, sitting behind the promo card. */
.gg-shop-sidebar::after {
	content: "";
	position: absolute;
	left: 14px;
	bottom: -84px;
	z-index: 9;
	width: 190px;
	height: 300px;
	background: var(--gg-leaf-sidebar) left bottom / contain no-repeat;
	opacity: 1;
	pointer-events: none;
	transform: rotate(90deg);
}

/* Smaller sprig peeking from the top right. */
.gg-shop-sidebar::before {
	content: "";
	position: absolute;
	right: -14px;
	top: -26px;
	z-index: 0;
	width: 110px;
	height: 130px;
	background: var(--gg-leaf-sidebar-top) right top / contain no-repeat;
	opacity: 1;
	pointer-events: none;
	transform: rotate(185deg);
}

/* Keep every control above the artwork. */
.gg-shop-sidebar > * { position: relative; z-index: 1; }

.gg-widget + .gg-widget {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--gg-border);
}

.gg-widget__title {
	margin: 0 0 10px;
	color: var(--gg-ink);
	font-family: var(--gg-sans);
	font-size: 15px;
	font-weight: 600;
}

.gg-cat-list,
.gg-feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gg-cat-list__item a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 4px;
	color: var(--gg-text);
	font-size: 12.5px;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}

.gg-cat-list__item a em { color: var(--gg-muted); font-style: normal; font-size: 11.5px; }
.gg-cat-list__item a:hover { background: var(--gg-light); color: var(--gg-teal); }
.gg-cat-list__item.is-active a { background: #edf1f0; color: var(--gg-teal); font-weight: 600; }

/* Price filter */

.gg-price-filter__row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.gg-price-filter input {
	width: 100%;
	min-width: 0;
	padding: 9px 10px;
	border: 1px solid var(--gg-border);
	border-radius: 4px;
	font-family: var(--gg-sans);
	font-size: 12.5px;
	color: var(--gg-ink);
}

.gg-price-filter__dash { color: var(--gg-muted); }

.gg-price-filter__active {
	margin: 10px 0 0;
	color: var(--gg-muted);
	font-size: 11.5px;
}

.gg-price-filter__active a { margin-left: 6px; color: var(--gg-teal); }

/* Feature checkboxes */

.gg-feature-list__item a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 5px 0;
	color: var(--gg-text);
	font-size: 12.5px;
	text-decoration: none;
}

.gg-checkbox {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	border: 1px solid #c4ccc9;
	border-radius: 3px;
	background: #fff;
	transition: background .2s ease, border-color .2s ease;
}

.gg-feature-list__item.is-active a { color: var(--gg-teal); font-weight: 500; }

.gg-feature-list__item.is-active .gg-checkbox {
	border-color: var(--gg-teal);
	background: var(--gg-teal) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M6.2 11.6 2.9 8.3l1.1-1.1 2.2 2.2 5-5 1.1 1.1z'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Promo card */

.gg-promo {
	position: relative;
	z-index: 1;
	margin-top: 18px;
	padding: 20px 16px;
	background: rgba(248, 248, 246, .92);
	border-radius: 6px;
	text-align: center;
}

.gg-promo__icon { color: var(--gg-teal); }

.gg-promo__title {
	margin: 8px 0 6px;
	color: var(--gg-teal);
	font-family: var(--gg-serif);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
}

.gg-promo__text { margin: 0; color: var(--gg-text); font-size: 11.5px; line-height: 1.6; }

/* ---------------------------------------------------------------- GRID --- */

.gg-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.gg-product-grid > * { min-width: 0; }

.gg-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--gg-border);
	border-radius: 6px;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}

.gg-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 26px rgba(18, 58, 75, .12);
}

.gg-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 0.92;
	overflow: hidden;
	background: var(--gg-light);
}

.gg-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform .45s ease;
}

.gg-card:hover .gg-card__media img { transform: scale(1.04); }

.gg-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 9px;
	border-radius: 20px;
	background: var(--gg-teal-dk);
	color: #fff;
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .6px;
	text-transform: uppercase;
}

.gg-card__badge--muted { background: #9aa3a8; }

.gg-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 5px;
	padding: 12px 12px 14px;
	text-align: center;
}

.gg-card__title { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.gg-card__title a { color: var(--gg-teal); text-decoration: none; }
.gg-card__title a:hover { color: var(--gg-teal-dk); }

.gg-card__desc { margin: 0; color: var(--gg-text); font-size: 11.5px; line-height: 1.6; }

.gg-card__price {
	margin-top: auto;
	padding-top: 6px;
	color: var(--gg-teal);
	font-size: 13.5px;
	font-weight: 600;
}

.gg-card__price del { color: var(--gg-muted); font-weight: 400; margin-right: 5px; }
.gg-card__price ins { text-decoration: none; }

.gg-card__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-top: 8px;
}

/* Narrow columns squeeze the labels; stack the buttons rather than
   letting "Add to cart" break across three lines. */
@media (max-width: 900px) {
	.gg-card__actions { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- BUTTONS --- */

.gg-shop-layout .gg-btn,
.gg-shop-layout a.button,
.gg-shop-layout button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 34px;
	padding: 9px 8px !important;
	hyphens: none;
	border: 1px solid var(--gg-teal-dk) !important;
	border-radius: 4px !important;
	font-family: var(--gg-sans) !important;
	font-size: 11.5px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.gg-shop-layout .gg-btn--solid,
.gg-shop-layout a.button.gg-btn--solid,
.gg-shop-layout button.gg-btn--solid {
	background: var(--gg-teal-dk) !important;
	color: #fff !important;
}

.gg-shop-layout .gg-btn--solid:hover { background: var(--gg-teal-lt) !important; border-color: var(--gg-teal-lt) !important; }

.gg-shop-layout .gg-btn--outline {
	background: #fff !important;
	color: var(--gg-teal-dk) !important;
}

.gg-shop-layout .gg-btn--outline:hover { background: var(--gg-teal-dk) !important; color: #fff !important; }

.gg-shop-layout .gg-btn--block { width: 100%; }

/* WooCommerce bolts a "View cart" link on after an AJAX add */
.gg-card__actions .added_to_cart { display: none !important; }
.gg-card__actions .button.loading { opacity: .6; }

/* ----------------------------------------------------------- PAGINATION --- */

.gg-shop-main .woocommerce-pagination { margin-top: 26px; text-align: center; }

.gg-shop-main .woocommerce-pagination ul {
	display: inline-flex;
	gap: 8px;
	border: 0 !important;
	margin: 0;
	padding: 0;
}

.gg-shop-main .woocommerce-pagination li { border: 0 !important; margin: 0; }

.gg-shop-main .woocommerce-pagination .page-numbers {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0 !important;
	border: 1px solid var(--gg-border);
	border-radius: 50%;
	background: #fff;
	color: var(--gg-text);
	font-size: 12.5px;
	line-height: 1;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.gg-shop-main .woocommerce-pagination .page-numbers:hover,
.gg-shop-main .woocommerce-pagination .page-numbers.current {
	background: var(--gg-teal);
	border-color: var(--gg-teal);
	color: #fff;
}

/* ---------------------------------------------------------- NEWSLETTER --- */

.gg-newsletter {
	position: relative;
	overflow: hidden;
	padding: 26px 0;
	background: var(--gg-sage) center / cover no-repeat;
	font-family: var(--gg-sans);
}

.gg-newsletter::before,
.gg-newsletter::after {
	content: "";
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 190px;
	height: 150px;
	opacity: .35;
	pointer-events: none;
}

.gg-newsletter::before {
	left: 0;
	background: var(--gg-leaf-left) left center / contain no-repeat;
}

.gg-newsletter::after {
	right: 0;
	background: var(--gg-leaf-right) right center / contain no-repeat;
}

.gg-newsletter__inner { position: relative; z-index: 1; }

.gg-newsletter__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.gg-newsletter__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #fff;
	color: var(--gg-teal-dk);
}

.gg-newsletter__copy { flex: 1 1 320px; }

.gg-newsletter__copy h2 {
	margin: 0 0 2px;
	color: var(--gg-ink);
	font-size: 19px;
	font-weight: 600;
}

.gg-newsletter__copy p { margin: 0; color: #31555a; font-size: 12.5px; line-height: 1.55; }
.gg-newsletter__form { flex: 1 1 320px; }

/* ---------------------------------------------------------- RESPONSIVE --- */

@media (max-width: 1080px) {
	.gg-shop-layout { grid-template-columns: 220px minmax(0, 1fr); }
	.gg-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.gg-shop-layout { grid-template-columns: 1fr; }
	.gg-shop-sidebar { position: static; }
	.gg-shop-sidebar::before,
	.gg-shop-sidebar::after,
	.gg-newsletter::before,
	.gg-newsletter::after { display: none; }
	.gg-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gg-shop-hero__inner,
	.gg-shop-hero--banner .gg-shop-hero__inner { max-width: 100%; }
	.gg-shop-hero--banner { min-height: 340px; }
	.gg-shop-hero--banner::before {
		background: linear-gradient(180deg, rgba(251, 247, 239, .95) 0%, rgba(251, 247, 239, .88) 55%, rgba(251, 247, 239, .55) 100%);
	}
	.gg-shop-hero { background-position: center; }
}

@media (max-width: 560px) {
	.gg-container { width: min(1240px, calc(100% - 28px)); }
	.gg-product-grid { grid-template-columns: 1fr; }
	.gg-shop-intro { align-items: flex-start; padding-top: 26px; }
	.gg-shop-intro__tools { width: 100%; justify-content: space-between; }
	.gg-newsletter__inner { flex-direction: column; align-items: flex-start; }
}