/*
Theme Name: The Gift Shop
Theme URI: https://primedigital.co.sz
Author: Prime Digital
Description: Dedicated Gift Shop block theme with a technical catalog and quote-first customer journey.
Version: 1.1.3
Update URI: https://wpupdates.primedigital.co.sz/giftshop-theme
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: prime-framework
*/

/* ==========================================================================
   1. Token aliases
   --------------------------------------------------------------------------
   theme.json owns the values. These aliases republish them under the design
   system's own --pd-* names so CSS lifted from tokens/*.css works unchanged,
   and so a style variation (styles/giftshop.json) reskins everything below
   without a single rule here needing to know which brand is active.
   ========================================================================== */
:root {
	--pd-navy-900: var(--wp--preset--color--navy-900);
	--pd-navy-800: var(--wp--preset--color--navy-800);
	--pd-navy-700: var(--wp--preset--color--navy-700);
	--pd-navy-600: var(--wp--preset--color--navy-600);
	--pd-blue-600: var(--wp--preset--color--blue-600);
	--pd-blue-500: var(--wp--preset--color--blue-500);
	--pd-blue-200: var(--wp--preset--color--blue-200);
	--pd-blue-100: var(--wp--preset--color--blue-100);
	--pd-gray-700: var(--wp--preset--color--gray-700);
	--pd-gray-500: var(--wp--preset--color--gray-500);
	--pd-gray-300: var(--wp--preset--color--gray-300);
	--pd-gray-100: var(--wp--preset--color--gray-100);
	--pd-white: var(--wp--preset--color--white);
	--pd-accent-orange: var(--wp--preset--color--accent-orange);
	--pd-accent-yellow: var(--wp--preset--color--accent-yellow);

	--font-display: var(--wp--preset--font-family--display);
	--font-body: var(--wp--preset--font-family--body);
	--font-script: var(--wp--preset--font-family--script);

	--text-display-1: var(--wp--preset--font-size--display-1);
	--text-display-2: var(--wp--preset--font-size--display-2);
	--text-h1: var(--wp--preset--font-size--h1);
	--text-h2: var(--wp--preset--font-size--h2);
	--text-h3: var(--wp--preset--font-size--h3);
	--text-body-lg: var(--wp--preset--font-size--body-lg);
	--text-body-md: var(--wp--preset--font-size--body-md);
	--text-body-sm: var(--wp--preset--font-size--body-sm);
	--text-caption: var(--wp--preset--font-size--caption);

	--space-1: var(--wp--preset--spacing--1);
	--space-2: var(--wp--preset--spacing--2);
	--space-3: var(--wp--preset--spacing--3);
	--space-4: var(--wp--preset--spacing--4);
	--space-5: var(--wp--preset--spacing--5);
	--space-6: var(--wp--preset--spacing--6);
	--space-7: var(--wp--preset--spacing--7);
	--space-8: var(--wp--preset--spacing--8);
	--space-9: var(--wp--preset--spacing--9);

	--radius-sm: var(--wp--custom--radius--sm);
	--radius-md: var(--wp--custom--radius--md);
	--radius-lg: var(--wp--custom--radius--lg);
	--radius-pill: var(--wp--custom--radius--pill);
	--shadow-card: var(--wp--custom--shadow--card);
	--shadow-elevated: var(--wp--custom--shadow--elevated);

	--ease-standard: var(--wp--custom--motion--ease-standard);
	--duration-fast: var(--wp--custom--motion--duration-fast);
	--duration-base: var(--wp--custom--motion--duration-base);

	--brand-primary: var(--wp--custom--brand--primary);
	--brand-primary-hover: var(--wp--custom--brand--primary-hover);
	--brand-accent: var(--wp--custom--brand--accent);
	--border-subtle: var(--wp--custom--brand--border-subtle);
	--text-body-inverse: var(--wp--custom--brand--text-body-inverse);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
body {
	font-family: var(--font-body);
	color: var(--pd-gray-700);
}

/*
 * Visible focus ring. The prototype has none; the handoff calls this out as a
 * gap to close in production rather than a design decision to replicate.
 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.gs-btn:focus-visible {
	outline: 2px solid var(--pd-blue-600);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

/*
 * Measure.
 *
 * The prototype was authored at 1200px. Backgrounds stay full-bleed while the
 * content inside them is capped and centred, so wide monitors get margin
 * rather than 2000px-wide rows of text. Done with a growing inline padding
 * instead of an inner wrapper element, so no pattern markup has to change.
 */
:root {
	--gs-max: 1280px;
	--gs-gutter: 60px;
}
.gs-bound,
.gs-section,
.gs-section--tight,
.gs-header,
.gs-footer,
.gs-group-callout,
.gs-solutions-hero,
.gs-about-hero,
.gs-closing-cta,
.gs-contact-head,
.gs-contact-body,
.gs-mobile-drawer {
	padding-inline: max(var(--gs-gutter), calc((100% - var(--gs-max)) / 2));
}

.gs-section { padding-block: 80px; }
.gs-section--tight { padding-block: 50px; }

/*
 * Hero keeps its two-column split edge to edge so the photo bleeds off-screen,
 * but the text column's left padding grows on wide viewports so the headline
 * still lines up with every section below it.
 */
.gs-hero__content {
	padding-block: 70px;
	padding-left: max(var(--gs-gutter), calc((100vw - var(--gs-max)) / 2));
	padding-right: var(--gs-gutter);
	justify-content: center;
}
.gs-eyebrow {
	font-family: var(--font-body);
	font-size: var(--text-body-sm);
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pd-blue-600);
}
.gs-eyebrow--accent { color: var(--pd-accent-yellow); }

/* ==========================================================================
   3. Primitives: Button, Card, Badge
   ========================================================================== */
.gs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--text-body-sm);
	line-height: 1;
	padding: 13px 24px;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--duration-base) var(--ease-standard),
		color var(--duration-base) var(--ease-standard),
		border-color var(--duration-base) var(--ease-standard);
}
.gs-btn--sm { padding: 9px 16px; font-size: var(--text-body-sm); }
.gs-btn--primary { background: var(--brand-primary); color: var(--pd-white); }
.gs-btn--primary:hover { background: var(--brand-primary-hover); color: var(--pd-white); }
.gs-btn--accent { background: var(--brand-accent); color: var(--pd-white); }
.gs-btn--accent:hover { filter: brightness(.9); color: var(--pd-white); }
.gs-btn--secondary { background: var(--pd-white); color: var(--pd-navy-900); border-color: var(--border-subtle); }
.gs-btn--secondary:hover { background: var(--pd-gray-100); }
.gs-btn--ghost { background: transparent; color: var(--pd-white); border-color: rgba(255,255,255,.45); }
.gs-btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--pd-white); }

.gs-card {
	background: var(--pd-white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	/* Cards are whole-surface links; the underline belongs on inline links only. */
	text-decoration: none;
	color: inherit;
	transition: box-shadow var(--duration-base) var(--ease-standard),
		transform var(--duration-base) var(--ease-standard);
}
a.gs-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-2px); }
.gs-card:hover .gs-card__title { color: var(--brand-primary); }
.gs-card__title { transition: color var(--duration-fast) var(--ease-standard); }
.gs-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.gs-card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h3); color: var(--pd-navy-900); margin: 0; }
.gs-card__text { font-size: var(--text-body-md); color: var(--pd-gray-700); margin: 0; line-height: 1.6; }

.gs-badge {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-body);
	font-size: var(--text-caption);
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: var(--radius-pill);
	border: 1px solid transparent;
}
.gs-badge--blue { background: var(--pd-blue-100); color: var(--pd-blue-600); }
.gs-badge--navy { background: rgba(255,255,255,.14); color: var(--pd-white); }
.gs-badge--outline { background: transparent; color: var(--pd-gray-700); border-color: var(--border-subtle); }

/*
 * Photographic slots. Resolved from the media library by prime_framework_img_bg();
 * when the attachment is missing the background is simply absent and the sunken
 * grey surface below reads as an intentional placeholder rather than a broken image.
 */
.gs-media {
	background-color: var(--pd-gray-100);
	background-size: cover;
	background-position: center;
	position: relative;
}
.gs-media--tile { display: flex; align-items: flex-end; padding: var(--space-3); }
.gs-media__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: var(--radius-pill);
	background: rgba(255,255,255,.92);
	color: var(--pd-blue-600);
	font-size: 14px;
}
.gs-media--product {
	background-size: contain;
	background-repeat: no-repeat;
	background-color: var(--pd-white);
}

/* Image placeholders standing in for photography not yet shot. */
.gs-slot {
	background: var(--pd-gray-100);
	border: 1px dashed var(--pd-gray-300);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--pd-gray-500);
	font-family: var(--font-body);
	font-size: var(--text-body-sm);
	padding: var(--space-4);
}

/* ==========================================================================
   4. Layout grids
   Class names match the design system so the handoff's per-page notes map 1:1.
   ========================================================================== */
.gs-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 440px; }
.gs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.gs-grid-2-tight { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.gs-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gs-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.gs-category-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.gs-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 20px; align-items: stretch; }
.gs-cart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.gs-checkout-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }

/* ==========================================================================
   5. Header, footer, mobile drawer
   ========================================================================== */
.gs-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--pd-white);
	border-bottom: 1px solid var(--border-subtle);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 12px;
}
.gs-header__logo img { height: 38px; width: auto; display: block; }
.gs-nav { display: flex; align-items: center; gap: 26px; }
.gs-nav a {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--text-body-sm);
	color: var(--pd-navy-800);
	text-decoration: none;
}
.gs-nav a:hover,
.gs-nav a.is-active { color: var(--pd-blue-600); }
.gs-header__actions { display: flex; align-items: center; gap: var(--space-4); }
.gs-header__icon { color: var(--pd-navy-800); font-size: 16px; text-decoration: none; }

.gs-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	cursor: pointer;
}
.gs-burger span {
	display: block;
	width: 18px;
	height: 2px;
	margin: 0 auto;
	background: var(--pd-navy-900);
}
.gs-mobile-drawer {
	display: none;
	flex-direction: column;
	gap: var(--space-4);
	padding-block: var(--space-5);
	background: var(--pd-white);
	border-bottom: 1px solid var(--border-subtle);
}
.gs-mobile-drawer.open { display: flex; }
.gs-mobile-drawer a {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--text-body-md);
	color: var(--pd-navy-800);
	text-decoration: none;
}

.gs-footer { background: var(--pd-navy-900); color: var(--pd-white); padding-block: 50px 26px; }
.gs-footer a { color: var(--text-body-inverse); text-decoration: none; }
.gs-footer a:hover { color: var(--pd-white); }
.gs-footer__heading {
	font-family: var(--font-body);
	font-size: var(--text-caption);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--pd-white);
	margin: 0 0 var(--space-4);
}
.gs-footer__logo-pill {
	background: var(--pd-white);
	border-radius: var(--radius-sm);
	padding: var(--space-3);
	display: inline-block;
}
.gs-footer__logo-pill img { height: 34px; width: auto; display: block; }
.gs-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); font-size: var(--text-body-sm); }
.gs-footer__contact { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-body-sm); color: var(--text-body-inverse); }
.gs-footer__divider {
	margin-top: var(--space-7);
	padding-top: var(--space-5);
	border-top: 1px solid rgba(255,255,255,.16);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	font-size: var(--text-caption);
	color: var(--text-body-inverse);
}
.gs-footer__rta { display: flex; align-items: center; gap: var(--space-3); }
.gs-footer__rta img { height: 22px; width: auto; display: block; }

/* ==========================================================================
   6. Forms
   ========================================================================== */
.gs-form { background: var(--pd-gray-100); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: var(--space-4); }
.gs-field { display: flex; flex-direction: column; gap: var(--space-2); }
.gs-field label { font-family: var(--font-body); font-size: var(--text-body-sm); font-weight: 600; color: var(--pd-navy-900); }
.gs-input, .gs-select, .gs-textarea {
	font-family: var(--font-body);
	font-size: var(--text-body-sm);
	color: var(--pd-navy-900);
	background: var(--pd-white);
	border: 1px solid var(--border-subtle);
	border-radius: 8px;
	padding: 11px 13px;
	width: 100%;
	box-sizing: border-box;
}
.gs-textarea { min-height: 120px; resize: vertical; }

/* ==========================================================================
   7. Responsive
   --------------------------------------------------------------------------
   The prototype forced these with inline styles plus !important. Here they are
   real media queries, per the handoff's instruction to recreate rather than copy.
   ========================================================================== */
@media (max-width: 900px) {
	.gs-nav { display: none; }
	.gs-burger { display: flex; }

	/* Tighter side gutter so content is not squeezed on tablets. */
	:root { --gs-gutter: 36px; }
	/* Keep the header CTA on one line rather than wrapping. */
	.gs-header__actions .gs-btn { white-space: nowrap; }

	.gs-hero-grid,
	.gs-category-layout,
	.gs-cart-grid,
	.gs-checkout-grid { grid-template-columns: 1fr; }

	.gs-grid-3,
	.gs-grid-4 { grid-template-columns: repeat(2, 1fr); }

	.gs-grid-2 { gap: 40px; }
	.gs-section { padding-block: 60px; }
	.gs-section--tight { padding-block: 40px; }
	
	
	.gs-footer { padding-block: 40px 24px; }
}

@media (max-width: 640px) {
	.gs-grid-2,
	.gs-grid-2-tight,
	.gs-grid-3,
	.gs-grid-4,
	.gs-product-grid { grid-template-columns: 1fr; }

	/* Phone: smaller side gutter, and drop the header CTA (it lives in the menu). */
	:root { --gs-gutter: 20px; }
	.gs-header__actions .wp-block-buttons { display: none; }

	.gs-section { padding-block: 44px; }
	.gs-section--tight { padding-block: 32px; }
	
	
	.gs-footer { padding-block: 32px 20px; }
	.gs-footer__divider { flex-direction: column; align-items: flex-start; }

	.gs-hero__content { padding: 44px 20px; }
	.gs-h1 { font-size: 30px !important; }
	.gs-h2 { font-size: 23px !important; }
}

/* ==========================================================================
   8. Page components
   ========================================================================== */

/* --- Category listing --- */
.gs-sidebar__title { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--pd-navy-900); margin: 0 0 var(--space-4); }
.gs-filters { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.gs-filters label { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-body-sm); color: var(--pd-gray-700); cursor: pointer; }
.gs-listing__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }


/* --- Product detail --- */
.gs-product-detail { gap: 56px; align-items: start; }
.gs-product-detail__media {
	aspect-ratio: 1 / 1;
	width: 100%;
	border-radius: var(--radius-lg);
	background-color: var(--pd-gray-100);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
}
.gs-product-detail__body { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.gs-h1--product { font-size: 32px; }

.gs-specs { margin: var(--space-3) 0 0; width: 100%; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.gs-specs__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 11px 0; }
.gs-specs__row + .gs-specs__row { border-top: 1px solid var(--border-subtle); }
.gs-specs dt { color: var(--pd-gray-500); font-size: var(--text-body-sm); margin: 0; }
.gs-specs dd { color: var(--pd-navy-900); font-size: var(--text-body-sm); font-weight: 700; margin: 0; text-align: right; }
.gs-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }

/* --- About --- */
.gs-about-hero {
	min-height: 320px;
	background-color: var(--pd-navy-900);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	padding-block: 60px;
}
.gs-about-hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); max-width: 640px; }
.gs-about-hero .gs-h1 { color: var(--pd-white); }
.gs-about-hero .gs-lead { color: rgba(255,255,255,.82); }
.gs-lead--wide { max-width: 640px; }

.gs-pillars { display: flex; flex-direction: column; gap: var(--space-5); }
.gs-pillar { display: flex; gap: 14px; align-items: flex-start; }
.gs-pillar__check {
	flex: 0 0 34px;
	width: 34px; height: 34px;
	border-radius: var(--radius-pill);
	background: var(--pd-navy-900);
	color: var(--pd-white);
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 13px;
}

.gs-group-callout {
	background: var(--pd-gray-100);
	padding-block: 70px;
	display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap;
}
.gs-rta-chip { background: var(--pd-navy-900); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); display: inline-flex; }
.gs-rta-chip img { display: block; height: 40px; width: auto; }

.gs-closing-cta {
	text-align: center;
	padding-block: 80px;
	display: flex; flex-direction: column; align-items: center; gap: var(--space-5);
}

/* --- Contact --- */
.gs-contact-head { padding-block: 70px 40px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.gs-h1--contact { font-size: 36px; }
.gs-contact-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; padding-block: 0 80px; align-items: start; }
.gs-channels { list-style: none; margin: 0 0 var(--space-6); padding: 0; }
.gs-channels li { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4) 0; border-bottom: 1px solid var(--border-subtle); }
.gs-channels__label { font-size: var(--text-caption); text-transform: uppercase; letter-spacing: .1em; color: var(--pd-gray-500); font-weight: 600; }
.gs-channels__value { font-size: var(--text-body-md); font-weight: 700; color: var(--pd-navy-900); }
.gs-card--prompt { box-shadow: none; border: 1px solid var(--border-subtle); }
.gs-optional { font-weight: 400; color: var(--pd-gray-500); }

/* --- Business Solutions --- */
.gs-solutions-hero {
	background: var(--pd-navy-900);
	padding-block: 70px 50px;
	display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4);
}
.gs-solutions-hero .gs-h1 { color: var(--pd-white); max-width: 640px; }
.gs-solutions-hero .gs-lead { color: rgba(255,255,255,.82); }
.gs-service-icon {
	width: 40px; height: 40px;
	border-radius: var(--radius-sm);
	background: var(--pd-blue-100);
	color: var(--pd-blue-600);
	display: inline-flex; align-items: center; justify-content: center;
	margin-bottom: var(--space-2);
}
.gs-steps-section { background: var(--pd-gray-100); }
.gs-step { display: flex; flex-direction: column; gap: var(--space-2); }
.gs-step__num { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--pd-blue-600); }

/* --- Enquiry list / checkout --- */
.gs-cart-items { list-style: none; margin: var(--space-6) 0 0; padding: 0; }
.gs-cart-item {
	display: grid;
	grid-template-columns: 90px 1fr auto auto;
	gap: var(--space-4);
	align-items: center;
	padding: var(--space-4) 0;
	border-bottom: 1px solid var(--border-subtle);
}
.gs-cart-item__media { height: 70px; border-radius: var(--radius-sm); }
.gs-cart-item__body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.gs-cart-item__qty { display: flex; flex-direction: column; gap: 4px; }
.gs-input--qty { width: 72px; }
.gs-cart-item__remove { background: none; border: 0; color: var(--pd-gray-500); cursor: pointer; font-size: 16px; padding: var(--space-2); }
.gs-cart-item__remove:hover { color: var(--pd-accent-orange); }

.gs-summary {
	background: var(--pd-gray-100);
	border-radius: var(--radius-md);
	padding: var(--space-6);
	display: flex; flex-direction: column; gap: var(--space-4);
	align-self: start;
}
.gs-summary__note { font-size: var(--text-body-sm); color: var(--pd-gray-500); }
.gs-btn--block { width: 100%; }

/* --- Blog / search / 404 --- */
.gs-post-card { text-decoration: none; }
.gs-post-card .wp-block-post-featured-image img { border-radius: 0; object-fit: cover; }
.gs-post-date { color: var(--pd-gray-500); }
.gs-post-date::before { font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f133"; margin-right: 6px; }
.gs-post-head { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.gs-post-nav { border-top: 1px solid var(--border-subtle); padding-top: var(--space-5); }
.gs-result { padding: var(--space-5) 0; border-bottom: 1px solid var(--border-subtle); }
.gs-404 { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }

@media (max-width: 900px) {
	.gs-contact-body { grid-template-columns: 1fr; gap: 40px; padding-block: 0 60px; }
	.gs-contact-head { padding-block: 50px 30px; }
	.gs-group-callout,
	.gs-solutions-hero,
	.gs-about-hero { padding-block: 50px; }
	.gs-closing-cta { padding-block: 60px; }
	.gs-product-detail { gap: 32px; }
}

@media (max-width: 640px) {
	.gs-contact-body { padding-block: 0 44px; }
	.gs-contact-head { padding-block: 40px 24px; }
	.gs-group-callout,
	.gs-solutions-hero,
	.gs-about-hero { padding-block: 40px; }
	.gs-closing-cta { padding-block: 44px; }
	.gs-cart-item { grid-template-columns: 70px 1fr auto; }
	.gs-cart-item__qty { grid-column: 2 / 3; }
	.gs-product-detail__media { height: 280px; }
}

/* Display headings used inside patterns, sized per the handoff's per-page notes. */
.gs-h1 { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1.1; margin: 0; }
.gs-h1--page { font-size: 38px; }
.gs-h2 { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.2; color: var(--pd-navy-900); margin: 0; }
.gs-lead { font-size: 16.5px; line-height: 1.6; max-width: 480px; margin: 0; }

/* ==========================================================================
   9. Catalog (gs_product CPT)
   ========================================================================== */
.gs-filters .gs-filter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: 9px 12px;
	border-radius: var(--radius-sm);
	font-size: var(--text-body-sm);
	color: var(--pd-gray-700);
	text-decoration: none;
	transition: background-color var(--duration-fast) var(--ease-standard);
}
.gs-filters .gs-filter:hover { background: var(--pd-gray-100); }
.gs-filters .gs-filter.is-active { background: var(--pd-blue-100); color: var(--pd-blue-600); font-weight: 600; }
.gs-filter__count { font-size: var(--text-caption); color: var(--pd-gray-500); }
.gs-filter.is-active .gs-filter__count { color: var(--pd-blue-600); }

.gs-card__meta { font-size: var(--text-caption); color: var(--pd-gray-500); }
.gs-product-detail__brand {
	font-size: var(--text-body-sm);
	color: var(--pd-gray-500);
	letter-spacing: .04em;
	margin: 0;
}
.gs-product-detail__media { background-color: var(--pd-gray-100); }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.gs-footer__cols {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	gap: var(--space-7);
	align-items: start;
}
.gs-footer__brand { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.gs-footer__blurb { color: var(--text-body-inverse); margin: 0; line-height: 1.6; max-width: 34ch; }
.gs-footer__logo-pill { background: var(--pd-white); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); display: inline-block; }
.gs-footer__logo-pill img { height: 36px; width: auto; display: block; }

.gs-footer__heading { font-size: var(--text-caption); }
.gs-footer__list a,
.gs-footer__nav a { color: var(--text-body-inverse); text-decoration: none; font-size: var(--text-body-sm); }
.gs-footer__list a:hover,
.gs-footer__nav a:hover { color: var(--pd-white); text-decoration: underline; text-underline-offset: 3px; }
.gs-footer__nav .wp-block-navigation__container { gap: var(--space-3); }
.gs-footer__contact i { color: var(--pd-blue-200); width: 16px; text-align: center; }
.gs-footer__cta { margin-top: var(--space-5); }

.gs-footer__divider { margin-top: var(--space-8); }

@media (max-width: 900px) {
	.gs-footer__cols { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
	.gs-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.gs-footer__cols { grid-template-columns: 1fr; gap: var(--space-5); }
}

.gs-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-6);
	align-items: center;
}
.gs-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	font-size: var(--text-body-sm);
	color: var(--pd-navy-900);
	text-decoration: none;
}
.gs-pagination .page-numbers:hover { background: var(--pd-gray-100); }
.gs-pagination .page-numbers.current {
	background: var(--brand-primary);
	border-color: var(--brand-primary);
	color: var(--pd-white);
	font-weight: 600;
}

.gs-notice {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	padding: var(--space-4) var(--space-5);
	border-radius: var(--radius-sm);
	font-size: var(--text-body-sm);
	margin-bottom: var(--space-5);
	line-height: 1.5;
}
.gs-notice--ok { background: #e8f6ef; color: #0a6b45; border: 1px solid #b6e3cd; }
.gs-notice--error { background: #fdecea; color: #8a2318; border: 1px solid #f5c6c0; }
.gs-notice i { margin-top: 2px; }

/* --- Product gallery + buyer options --- */
.gs-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-3);
}
.gs-thumb {
	width: 68px;
	height: 68px;
	padding: 0;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	background-color: var(--pd-gray-100);
	cursor: pointer;
	transition: border-color var(--duration-fast) var(--ease-standard);
}
.gs-thumb:hover { border-color: var(--pd-gray-500); }
.gs-thumb.is-active { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary); }

.gs-options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	width: 100%;
	margin-top: var(--space-2);
}
.gs-options .gs-field { flex: 1 1 180px; }

/* ==========================================================================
   11. Product tile — rebuilt
   --------------------------------------------------------------------------
   Manufacturer product shots are overwhelmingly 1:1 on white. A fixed-height
   rectangle either crops them or leaves dead space, so the media box is a
   square that contains the image and shares its white background. The grid
   auto-fills instead of forcing two columns, which matters at 280+ products.
   ========================================================================== */
.gs-tile {
	display: flex;
	flex-direction: column;
	background: var(--pd-white);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	overflow: hidden;
	text-decoration: none;
	transition: border-color var(--duration-base) var(--ease-standard),
		box-shadow var(--duration-base) var(--ease-standard),
		transform var(--duration-base) var(--ease-standard);
}
.gs-tile:hover {
	border-color: var(--pd-gray-300);
	box-shadow: var(--shadow-card);
	transform: translateY(-2px);
}

.gs-tile__media {
	aspect-ratio: 1 / 1;
	background: var(--pd-white);
	border-bottom: 1px solid var(--border-subtle);
	/*
	 * Grid, not flex: both the primary and hover image are placed in the same
	 * cell so they centre identically. Absolutely positioning the second one
	 * over a flex parent left it over-constrained (left + right + width all
	 * set), and CSS resolves that by dropping `right` in LTR — which nudged
	 * the flipped image to one side.
	 */
	display: grid;
	place-items: center;
	padding: var(--space-4);
	/*
	 * aspect-ratio is only a *preferred* size: an image taller than the box
	 * still pushes past it and drags the whole grid row with it. overflow +
	 * min-height:0 make the square binding.
	 */
	overflow: hidden;
	min-height: 0;
}
.gs-tile__media img {
	grid-area: 1 / 1;
	/*
	 * Fill the square and letterbox inside it. max-width/max-height with auto
	 * sizing let a portrait shot win; a definite 100%/100% plus object-fit
	 * never can.
	 */
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	mix-blend-mode: multiply; /* hides the off-white matte on JPEG product shots */
}

/*
 * Hover flip to the second gallery shot.
 *
 * Both images are stacked and cross-faded rather than swapped via JS, so there
 * is no flash of missing image on first hover. Only applied when a second shot
 * actually exists (.has-flip), otherwise hovering would fade to nothing.
 */
.gs-tile.has-flip .gs-tile__img {
	transition: opacity var(--duration-base) var(--ease-standard);
}
.gs-tile.has-flip .gs-tile__img--b { opacity: 0; }
.gs-tile.has-flip:hover .gs-tile__img--a { opacity: 0; }
.gs-tile.has-flip:hover .gs-tile__img--b { opacity: 1; }

@media (hover: none) {
	/* Touch devices have no hover, so never hide the primary shot. */
	.gs-tile.has-flip .gs-tile__img--b { display: none; }
	.gs-tile.has-flip:hover .gs-tile__img--a { opacity: 1; }
}

/*
 * Placeholder for products awaiting photography: the Gift Shop mark, greyed
 * and set well back. Reads as deliberate branding rather than a broken image,
 * and stays in sync with the logo because it references the same file.
 */
.gs-tile__noimage {
	display: block;
	width: 100%;
	height: 100%;
	background-image: url('assets/thegiftshop-full-color.svg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 62%;
	filter: grayscale(1);
	opacity: .17;
}

.gs-tile__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1;
}
.gs-tile__meta {
	font-family: var(--font-body);
	font-size: var(--text-caption);
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pd-gray-500);
}
.gs-tile__name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: var(--text-body-sm);
	line-height: 1.35;
	color: var(--pd-navy-900);
	/* Two lines max so tiles in a row stay the same height. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.gs-tile__cta {
	margin-top: auto;
	padding-top: var(--space-3);
	font-size: var(--text-caption);
	font-weight: 600;
	color: var(--brand-primary);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.gs-tile__cta i { transition: transform var(--duration-fast) var(--ease-standard); }
.gs-tile:hover .gs-tile__cta i { transform: translateX(3px); }

/* Product detail: square media, capped so it does not dominate on wide screens. */
.gs-product-detail__media { max-width: 520px; }
.gs-product-detail__media .gs-tile__noimage { background-size: 52%; opacity: .15; }

@media (max-width: 640px) {
	.gs-product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
	.gs-tile__body { padding: 12px; }
}

/* ==========================================================================
   12. Catalog toolbar + list view
   ========================================================================== */
.gs-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	flex-wrap: wrap;
	padding: var(--space-3) 0 var(--space-5);
	border-bottom: 1px solid var(--border-subtle);
	margin-bottom: var(--space-5);
}
.gs-toolbar__group { display: flex; align-items: center; gap: var(--space-2); }
.gs-toolbar__label {
	font-size: var(--text-caption);
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pd-gray-500);
}
.gs-select--sm { width: auto; padding: 7px 10px; font-size: var(--text-body-sm); }

.gs-viewbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	color: var(--pd-gray-500);
	text-decoration: none;
	transition: all var(--duration-fast) var(--ease-standard);
}
.gs-viewbtn:hover { color: var(--pd-navy-900); background: var(--pd-gray-100); }
.gs-viewbtn.is-active {
	background: var(--brand-primary);
	border-color: var(--brand-primary);
	color: var(--pd-white);
}

/* Blurb is only surfaced in list view; grid tiles stay compact. */
.gs-tile__blurb { display: none; }

.gs-product-grid--list { grid-template-columns: 1fr; gap: 0; }
.gs-product-grid--list .gs-tile {
	flex-direction: row;
	align-items: stretch;
	border-radius: 0;
	border-width: 0 0 1px;
	transform: none;
}
.gs-product-grid--list .gs-tile:first-child { border-top: 1px solid var(--border-subtle); }
.gs-product-grid--list .gs-tile:hover { box-shadow: none; background: var(--pd-gray-100); transform: none; }
.gs-product-grid--list .gs-tile__media {
	overflow: hidden;
	flex: 0 0 128px;
	width: 128px;
	aspect-ratio: 1 / 1;
	border-bottom: 0;
	border-right: 1px solid var(--border-subtle);
	padding: var(--space-3);
	background: var(--pd-white);
}
.gs-product-grid--list .gs-tile__body {
	padding: var(--space-4) var(--space-5);
	justify-content: center;
	gap: 4px;
}
.gs-product-grid--list .gs-tile__name {
	font-size: var(--text-body-md);
	-webkit-line-clamp: 1;
}
.gs-product-grid--list .gs-tile__blurb {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: var(--text-body-sm);
	color: var(--pd-gray-700);
	line-height: 1.5;
}
.gs-product-grid--list .gs-tile__cta { margin-top: 6px; padding-top: 0; }

@media (max-width: 640px) {
	.gs-toolbar { padding-bottom: var(--space-4); }
	.gs-product-grid--list .gs-tile__media { flex-basis: 88px; width: 88px; }
	.gs-product-grid--list .gs-tile__body { padding: var(--space-3) var(--space-4); }
	.gs-product-grid--list .gs-tile__blurb { display: none; }
}

/* --- Brand filter --- */
.gs-sidebar__title--sep {
	margin-top: var(--space-6);
	padding-top: var(--space-5);
	border-top: 1px solid var(--border-subtle);
}
.gs-filter--clear { color: var(--brand-primary); font-weight: 600; }
.gs-more { margin-top: var(--space-2); }
.gs-more summary {
	cursor: pointer;
	padding: 9px 12px;
	font-size: var(--text-body-sm);
	color: var(--brand-primary);
	font-weight: 600;
	list-style: none;
	border-radius: var(--radius-sm);
}
.gs-more summary::-webkit-details-marker { display: none; }
.gs-more summary::before { content: "\f067"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 8px; font-size: 10px; }
.gs-more[open] summary::before { content: "\f068"; }
.gs-more summary:hover { background: var(--pd-gray-100); }
.gs-more .gs-filters { margin-top: var(--space-2); }

/* Brand badge on the product page links through to that brand's listing. */
.gs-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--text-body-sm);
	font-weight: 600;
	color: var(--pd-gray-700);
	text-decoration: none;
	letter-spacing: .04em;
}
.gs-brand-link:hover { color: var(--brand-primary); }

/* Nested category filters: only the open branch unfolds. */
.gs-filters--sub {
	margin: var(--space-2) 0 var(--space-3) var(--space-4);
	padding-left: var(--space-3);
	border-left: 2px solid var(--border-subtle);
	gap: 2px;
}
.gs-filters--sub .gs-filter { padding: 6px 10px; font-size: var(--text-caption); }
.gs-filters--sub .gs-filter.is-active { background: var(--pd-blue-100); }

.gs-footer__all { font-weight: 600; color: var(--pd-white) !important; }

/* --- Related products --- */
.gs-related { border-top: 1px solid var(--border-subtle); }
.gs-related__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-4);
	flex-wrap: wrap;
	margin-bottom: var(--space-5);
}
.gs-related__all {
	font-size: var(--text-body-sm);
	font-weight: 600;
	color: var(--brand-primary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.gs-related__all i { transition: transform var(--duration-fast) var(--ease-standard); }
.gs-related__all:hover i { transform: translateX(3px); }

/* --- Search --- */
.gs-search__title { margin: var(--space-3) 0 var(--space-5); }
.gs-searchbar {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	background: var(--pd-white);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	padding: 6px 6px 6px 14px;
	max-width: 560px;
	margin-bottom: var(--space-5);
}
.gs-searchbar i { color: var(--pd-gray-500); }
.gs-searchbar input[type="search"] {
	flex: 1;
	border: 0;
	outline: none;
	font-family: var(--font-body);
	font-size: var(--text-body-md);
	background: transparent;
	padding: 8px 0;
	min-width: 0;
}
.gs-search__count {
	font-size: var(--text-body-sm);
	color: var(--pd-gray-500);
	margin: 0 0 var(--space-5);
}
.gs-search__sub { margin: var(--space-8) 0 var(--space-4); font-size: var(--text-h2); }
.gs-search__articles { list-style: none; margin: 0; padding: 0; }
.gs-search__articles li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-4);
	padding: var(--space-4) 0;
	border-bottom: 1px solid var(--border-subtle);
}
.gs-search__articles a { color: var(--pd-navy-900); text-decoration: none; font-weight: 600; }
.gs-search__articles a:hover { color: var(--brand-primary); }
.gs-search__date { font-size: var(--text-caption); color: var(--pd-gray-500); white-space: nowrap; }
.gs-search__empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-6) 0; }
.screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
