/**
 * Lynnify Glass — Liquid Glass design system
 *
 * Structure follows the Apple Liquid Glass brief: thick glass slabs, 20px card /
 * 12px button radii, ambient shadow over a hairline border, glossy top-to-bottom
 * buttons, large-title nav, inset inputs, spacious rhythm.
 *
 * Palette is Lynnify's own (champagne / taupe / plum), not Apple's system blue —
 * the structure transfers, the colours don't.
 */

/* ---------------------------------------------------------------- tokens -- */

:root {
	/* Brand, carried over from the Astra global palette so the two agree. */
	--lg-champagne: #ddd1c1;
	--lg-taupe: #6a5950;
	--lg-plum: #26222f;
	--lg-ink: #312e39;
	--lg-canvas: #f7f7f7;
	--lg-white: #fff;
	--lg-blush: #fdf6f1;

	/* Tints derived from the brand, used for glass fills and washes. */
	--lg-champagne-12: rgb(221 209 193 / 12%);
	--lg-champagne-24: rgb(221 209 193 / 24%);
	--lg-champagne-40: rgb(221 209 193 / 40%);
	--lg-plum-08: rgb(38 34 47 / 8%);
	--lg-plum-16: rgb(38 34 47 / 16%);
	--lg-plum-60: rgb(38 34 47 / 60%);

	/* Glass. Three depths: chrome floats highest, wells sit lowest. */
	--lg-glass-chrome: rgb(255 255 255 / 72%);
	--lg-glass-slab: rgb(255 255 255 / 58%);
	--lg-glass-well: rgb(253 246 241 / 66%);
	--lg-blur-chrome: saturate(180%) blur(20px);
	--lg-blur-slab: saturate(160%) blur(14px);

	/* The hairline. Kept under 1px on retina so it reads as an edge, not a rule. */
	--lg-hairline: 1px solid rgb(255 255 255 / 58%);
	--lg-hairline-warm: 1px solid rgb(221 209 193 / 55%);

	/* Ambient shadow — two stops: a tight contact shadow plus a wide soft cast. */
	--lg-shadow-slab:
		0 1px 2px rgb(38 34 47 / 4%),
		0 8px 24px -4px rgb(38 34 47 / 8%);
	--lg-shadow-raised:
		0 2px 4px rgb(38 34 47 / 5%),
		0 16px 40px -8px rgb(38 34 47 / 14%);
	--lg-shadow-chrome:
		0 1px 0 rgb(255 255 255 / 60%) inset,
		0 1px 24px rgb(38 34 47 / 6%);
	--lg-shadow-inset: inset 0 1px 3px rgb(38 34 47 / 7%);

	/* Radii, per the brief. */
	--lg-r-card: 20px;
	--lg-r-btn: 12px;
	--lg-r-input: 12px;
	--lg-r-pill: 999px;

	/* Spacious, breathable rhythm on a 4px base. */
	--lg-s1: 0.25rem;
	--lg-s2: 0.5rem;
	--lg-s3: 0.75rem;
	--lg-s4: 1rem;
	--lg-s5: 1.5rem;
	--lg-s6: 2rem;
	--lg-s7: 3rem;
	--lg-s8: 4rem;
	--lg-s9: 6rem;

	--lg-font-head: "Fahkwang", "Times New Roman", serif;
	--lg-font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	/* Apple's standard ease. Everything in the system uses it. */
	--lg-ease: cubic-bezier(0.32, 0.72, 0, 1);
	--lg-dur: 0.4s;

	--lg-max: 1240px;
	--lg-chrome-h: 72px;
}

/* ------------------------------------------------------------ primitives -- */

/**
 * .lg-glass — the slab. backdrop-filter does the lifting; the inset highlight
 * on the top edge is what sells it as glass rather than just a translucent box.
 */
.lg-glass {
	position: relative;
	background: var(--lg-glass-slab);
	backdrop-filter: var(--lg-blur-slab);
	-webkit-backdrop-filter: var(--lg-blur-slab);
	border: var(--lg-hairline);
	border-radius: var(--lg-r-card);
	box-shadow: var(--lg-shadow-slab);
}

/* Specular highlight: a 1px light rake across the top edge only. */
.lg-glass::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 50%;
	border-radius: var(--lg-r-card) var(--lg-r-card) 0 0;
	background: linear-gradient(180deg, rgb(255 255 255 / 45%), transparent);
	pointer-events: none;
}

.lg-glass > * {
	position: relative;
	z-index: 1;
}

.lg-glass--warm {
	background: var(--lg-glass-well);
	border: var(--lg-hairline-warm);
}

.lg-glass--raised {
	box-shadow: var(--lg-shadow-raised);
}

/* Where backdrop-filter is unsupported, drop to an opaque fill so text stays
   legible rather than sitting on a transparent wash. */
@supports not (backdrop-filter: blur(1px)) {
	.lg-glass { background: rgb(255 255 255 / 96%); }
	.lg-glass--warm { background: var(--lg-blush); }
}

/* ---------------------------------------------------------------- canvas -- */

body.lynnify-glass {
	background: var(--lg-canvas);
	color: var(--lg-ink);
	font-family: var(--lg-font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Ambient colour field. Two soft champagne pools that give the glass something
   to refract — without them the blur has nothing to work against. */
body.lynnify-glass::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(60rem 60rem at 12% -10%, var(--lg-champagne-40), transparent 60%),
		radial-gradient(50rem 50rem at 88% 8%, rgb(253 246 241 / 85%), transparent 62%);
}

.lg-wrap {
	width: min(100% - 2.5rem, var(--lg-max));
	margin-inline: auto;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lg-font-head);
	color: var(--lg-plum);
	font-weight: 500;
	line-height: 1.18;
	letter-spacing: -0.015em;
	margin: 0 0 var(--lg-s4);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

a {
	color: var(--lg-taupe);
	text-decoration-color: var(--lg-champagne);
	text-underline-offset: 0.2em;
	transition: color var(--lg-dur) var(--lg-ease);
}

a:hover { color: var(--lg-plum); }

/* Visible focus everywhere — the glass surfaces are low-contrast, so the ring
   has to be the dark plum rather than a tint of the brand. */
:focus-visible {
	outline: 2px solid var(--lg-plum);
	outline-offset: 3px;
	border-radius: 4px;
}

.lg-skip {
	position: absolute;
	left: -9999px;
	top: var(--lg-s3);
	z-index: 200;
	padding: var(--lg-s3) var(--lg-s5);
	background: var(--lg-plum);
	color: var(--lg-white);
	border-radius: var(--lg-r-btn);
}

.lg-skip:focus { left: var(--lg-s4); }

/* ---------------------------------------------------------------- chrome -- */

.lg-chrome {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--lg-glass-chrome);
	backdrop-filter: var(--lg-blur-chrome);
	-webkit-backdrop-filter: var(--lg-blur-chrome);
	border-bottom: 1px solid rgb(221 209 193 / 45%);
	box-shadow: var(--lg-shadow-chrome);
	transition: background var(--lg-dur) var(--lg-ease), box-shadow var(--lg-dur) var(--lg-ease);
}

@supports not (backdrop-filter: blur(1px)) {
	.lg-chrome { background: rgb(255 255 255 / 97%); }
}

/* Condensed state, set by glass.js past the scroll threshold. */
.lg-chrome.is-condensed {
	background: rgb(255 255 255 / 86%);
	box-shadow: 0 1px 0 rgb(255 255 255 / 60%) inset, 0 4px 30px rgb(38 34 47 / 10%);
}

.lg-chrome__bar {
	display: flex;
	align-items: center;
	gap: var(--lg-s5);
	min-height: var(--lg-chrome-h);
}

.lg-brand {
	font-family: var(--lg-font-head);
	font-size: 1.4rem;
	color: var(--lg-plum);
	text-decoration: none;
	letter-spacing: -0.02em;
	margin-right: auto;
}

.lg-brand img { max-height: 40px; width: auto; display: block; }

/**
 * Custom logo. the_custom_logo() emits .custom-logo-link / .custom-logo, not
 * .lg-brand — the uploaded mark is 1182px square, so without an explicit cap
 * it renders at full size and destroys the bar.
 */
.lg-chrome__bar .custom-logo-link {
	display: block;
	flex-shrink: 0;
	margin-right: auto;
	line-height: 0;
}

.lg-chrome__bar .custom-logo {
	width: auto;
	height: auto;
	max-height: 44px;
	max-width: 160px;
	object-fit: contain;
}

@media (max-width: 860px) {
	.lg-chrome__bar .custom-logo { max-height: 34px; max-width: 120px; }
}

/* Nav */

.lg-nav ul {
	display: flex;
	align-items: center;
	gap: var(--lg-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.lg-nav a {
	display: block;
	padding: var(--lg-s2) var(--lg-s4);
	border-radius: var(--lg-r-pill);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--lg-ink);
	text-decoration: none;
	transition: background var(--lg-dur) var(--lg-ease), color var(--lg-dur) var(--lg-ease);
}

.lg-nav a:hover,
.lg-nav .current-menu-item > a {
	background: var(--lg-champagne-40);
	color: var(--lg-plum);
}

/* Submenus are slabs in their own right. */
.lg-nav ul ul {
	position: absolute;
	min-width: 13rem;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	padding: var(--lg-s2);
	background: var(--lg-glass-chrome);
	backdrop-filter: var(--lg-blur-chrome);
	-webkit-backdrop-filter: var(--lg-blur-chrome);
	border: var(--lg-hairline);
	border-radius: 16px;
	box-shadow: var(--lg-shadow-raised);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: all var(--lg-dur) var(--lg-ease);
}

.lg-nav li { position: relative; }
.lg-nav li:hover > ul,
.lg-nav li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lg-nav ul ul a { border-radius: 8px; }

/* Cart pill + mobile toggle */

.lg-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: var(--lg-s2);
	padding: var(--lg-s2) var(--lg-s4);
	border-radius: var(--lg-r-pill);
	background: var(--lg-champagne-24);
	border: var(--lg-hairline-warm);
	color: var(--lg-plum);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: background var(--lg-dur) var(--lg-ease);
}

.lg-cart:hover { background: var(--lg-champagne); }

.lg-cart__count {
	display: grid;
	place-items: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.3rem;
	border-radius: var(--lg-r-pill);
	background: var(--lg-plum);
	color: var(--lg-white);
	font-size: 0.7rem;
	line-height: 1;
}

.lg-burger {
	display: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: var(--lg-hairline-warm);
	border-radius: var(--lg-r-btn);
	background: var(--lg-champagne-24);
	cursor: pointer;
}

.lg-burger span {
	display: block;
	width: 18px;
	height: 1.5px;
	margin: 3.5px auto;
	background: var(--lg-plum);
	border-radius: 2px;
	transition: transform var(--lg-dur) var(--lg-ease), opacity var(--lg-dur) var(--lg-ease);
}

.lg-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.lg-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lg-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------- large titles -- */

/**
 * The iOS large-title pattern: an oversized page title that sits below the
 * chrome, distinct from the condensed title that appears in the bar on scroll.
 */
.lg-title {
	padding: var(--lg-s8) 0 var(--lg-s6);
	text-align: center;
}

.lg-title h1 { margin-bottom: var(--lg-s3); }

.lg-title__sub {
	max-width: 46ch;
	margin-inline: auto;
	color: var(--lg-taupe);
	font-size: 1.05rem;
}

.lg-eyebrow {
	display: inline-block;
	margin-bottom: var(--lg-s4);
	padding: var(--lg-s1) var(--lg-s4);
	border-radius: var(--lg-r-pill);
	background: var(--lg-champagne-40);
	border: var(--lg-hairline-warm);
	color: var(--lg-taupe);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------- buttons -- */

/**
 * Glossy pill with a top-to-bottom gradient. Champagne is too light to carry
 * white text (≈1.4:1), so the primary is plum-on-cream and champagne is kept
 * for the secondary and for hover states.
 */
.lg-btn,
.lynnify-glass .button,
.lynnify-glass button:not(.lg-burger):not(.lg-qty__btn),
.lynnify-glass input[type="submit"],
.lynnify-glass .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--lg-s2);
	padding: 0.85rem 1.75rem;
	border: none;
	border-radius: var(--lg-r-btn);
	background: linear-gradient(180deg, #3a3546, var(--lg-plum));
	color: var(--lg-white);
	font-family: var(--lg-font-body);
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	box-shadow:
		0 1px 0 rgb(255 255 255 / 18%) inset,
		0 2px 6px rgb(38 34 47 / 18%);
	transition: transform var(--lg-dur) var(--lg-ease), box-shadow var(--lg-dur) var(--lg-ease), filter var(--lg-dur) var(--lg-ease);
}

.lg-btn:hover,
.lynnify-glass .button:hover,
.lynnify-glass button:not(.lg-burger):not(.lg-qty__btn):hover,
.lynnify-glass input[type="submit"]:hover,
.lynnify-glass .wp-block-button__link:hover {
	color: var(--lg-white);
	transform: translateY(-1px);
	filter: brightness(1.12);
	box-shadow:
		0 1px 0 rgb(255 255 255 / 22%) inset,
		0 6px 16px rgb(38 34 47 / 22%);
}

.lg-btn:active,
.lynnify-glass .button:active { transform: translateY(0) scale(0.985); }

/**
 * Woo's `.alt` buttons — proceed-to-checkout, place-order — ship a hardcoded
 * purple (#7f54b3) via `.woocommerce a.button.alt`, which outranks the plain
 * `.button` rules above. The body prefix takes the specificity back rather than
 * reaching for !important.
 */
body.lynnify-glass a.button.alt,
body.lynnify-glass button.button.alt,
body.lynnify-glass input.button.alt,
body.lynnify-glass #respond input#submit.alt {
	background-color: var(--lg-plum);
	background-image: linear-gradient(180deg, #3a3546, var(--lg-plum));
	color: var(--lg-white);
}

body.lynnify-glass a.button.alt:hover,
body.lynnify-glass button.button.alt:hover,
body.lynnify-glass input.button.alt:hover {
	background-color: var(--lg-plum);
	filter: brightness(1.12);
}

/* Disabled controls (Woo's update-cart starts disabled until a qty changes). */
body.lynnify-glass .button:disabled,
body.lynnify-glass button:disabled,
body.lynnify-glass .button[disabled] {
	background-image: none;
	background-color: var(--lg-champagne);
	color: var(--lg-taupe);
	box-shadow: none;
	cursor: not-allowed;
	opacity: 1;
}

body.lynnify-glass .button:disabled:hover,
body.lynnify-glass button:disabled:hover {
	transform: none;
	filter: none;
}

/* Coupon row: the input collapses to ~80px inside Woo's actions cell. */
.lynnify-glass .coupon {
	display: flex;
	gap: var(--lg-s2);
	align-items: center;
	flex-wrap: wrap;
}

/**
 * The input must be allowed to shrink. Woo's actions cell is only ~500px and
 * the coupon wrapper ~396px; a 16rem basis plus the Apply button exceeds that
 * by a few pixels and wrap-flexes the button onto its own line.
 */
.lynnify-glass .coupon #coupon_code {
	width: auto;
	min-width: 8rem;
	flex: 1 1 8rem;
}

.lynnify-glass .coupon .button { flex: 0 0 auto; white-space: nowrap; }

.lynnify-glass td.actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--lg-s4);
	flex-wrap: wrap;
}

/* Secondary: a glass button rather than a solid one. */
.lg-btn--ghost,
.lynnify-glass .button.alt--ghost {
	background: var(--lg-glass-slab);
	backdrop-filter: var(--lg-blur-slab);
	-webkit-backdrop-filter: var(--lg-blur-slab);
	border: var(--lg-hairline-warm);
	color: var(--lg-plum);
	box-shadow: var(--lg-shadow-slab);
}

.lg-btn--ghost:hover {
	background: var(--lg-champagne-40);
	color: var(--lg-plum);
	filter: none;
}

/* ---------------------------------------------------------------- inputs -- */

/* Inset feel: the well is recessed, so the shadow goes inward and the border
   stays warm rather than grey. */
.lynnify-glass input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.lynnify-glass select,
.lynnify-glass textarea {
	width: 100%;
	padding: 0.8rem 1rem;
	background: rgb(255 255 255 / 70%);
	border: var(--lg-hairline-warm);
	border-radius: var(--lg-r-input);
	box-shadow: var(--lg-shadow-inset);
	color: var(--lg-ink);
	font-family: var(--lg-font-body);
	font-size: 0.95rem;
	transition: border-color var(--lg-dur) var(--lg-ease), box-shadow var(--lg-dur) var(--lg-ease);
}

.lynnify-glass input:focus,
.lynnify-glass select:focus,
.lynnify-glass textarea:focus {
	outline: none;
	border-color: var(--lg-taupe);
	box-shadow: var(--lg-shadow-inset), 0 0 0 3px var(--lg-champagne-40);
}

.lynnify-glass label {
	display: block;
	margin-bottom: var(--lg-s2);
	color: var(--lg-plum);
	font-size: 0.85rem;
	font-weight: 600;
}

/* ---------------------------------------------------------- product grid -- */

.lynnify-glass ul.products {
	display: grid;
	/* Fluid below the breakpoint; pinned to 4 above it so the grid agrees with
	   the loop_shop_columns filter instead of drifting to 5 on wide screens. */
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: var(--lg-s5);
	list-style: none;
	margin: 0 0 var(--lg-s7);
	padding: 0;
}

@media (min-width: 1000px) {
	.lynnify-glass ul.products { grid-template-columns: repeat(4, 1fr); }
}

.lynnify-glass ul.products::before,
.lynnify-glass ul.products::after { display: none; }

/* Woo ships float-based grid classes; neutralise them so the grid governs. */
.lynnify-glass ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
}

.lynnify-glass ul.products li.product {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--lg-glass-slab);
	backdrop-filter: var(--lg-blur-slab);
	-webkit-backdrop-filter: var(--lg-blur-slab);
	border: var(--lg-hairline);
	border-radius: var(--lg-r-card);
	box-shadow: var(--lg-shadow-slab);
	transition: transform var(--lg-dur) var(--lg-ease), box-shadow var(--lg-dur) var(--lg-ease);
}

@supports not (backdrop-filter: blur(1px)) {
	.lynnify-glass ul.products li.product { background: rgb(255 255 255 / 96%); }
}

.lynnify-glass ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: var(--lg-shadow-raised);
}

.lynnify-glass ul.products li.product a img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	margin: 0;
	border-radius: 0;
	transition: transform 0.7s var(--lg-ease);
}

.lynnify-glass ul.products li.product:hover a img { transform: scale(1.05); }

.lynnify-glass ul.products li.product .lg-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: var(--lg-s2);
	padding: var(--lg-s4) var(--lg-s4) var(--lg-s5);
}

.lynnify-glass ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--lg-font-body);
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.45;
	color: var(--lg-plum);
	margin: 0;
	/* Two-line clamp keeps the long jewellery titles from ragging the grid. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lynnify-glass ul.products li.product .price {
	margin-top: auto;
	color: var(--lg-plum);
	font-size: 1.05rem;
	font-weight: 600;
}

.lynnify-glass .price del { color: var(--lg-taupe); opacity: 0.6; font-weight: 400; margin-right: var(--lg-s2); }
.lynnify-glass .price ins { text-decoration: none; }

.lynnify-glass ul.products li.product .button {
	width: 100%;
	margin-top: var(--lg-s3);
	padding: 0.7rem 1rem;
	font-size: 0.82rem;
}

/* Sale flag — a floating glass chip, not a solid circle. */
.lynnify-glass span.onsale {
	position: absolute;
	top: var(--lg-s3);
	left: var(--lg-s3);
	z-index: 2;
	min-height: 0;
	min-width: 0;
	margin: 0;
	padding: var(--lg-s1) var(--lg-s3);
	border-radius: var(--lg-r-pill);
	background: rgb(255 255 255 / 80%);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: var(--lg-hairline-warm);
	color: var(--lg-plum);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.6;
}

.lynnify-glass ul.products li.product { position: relative; }

.lynnify-glass .lg-card__link { text-decoration: none; display: block; }
.lynnify-glass .lg-card__media { display: block; overflow: hidden; }

/* Woo pages (cart/checkout/account) render full width, no reading measure. */
.lg-wc-page { width: 100%; }

/**
 * Constrained-children layout for pages.
 *
 * The container itself is full width, and each direct child is centred to a
 * reading measure. Blocks that opt out — alignwide, alignfull, and Spectra's
 * own containers, which manage their own width — are allowed to span. This is
 * what lets the existing block-built pages keep their full-bleed sections
 * without the container forcing a horizontal scrollbar.
 */
.lg-page > * {
	width: min(100% - 2.5rem, 68ch);
	margin-inline: auto;
}

.lg-page > .alignwide {
	width: min(100% - 2.5rem, 1400px);
}

.lg-page > .alignfull,
.lg-page > .wp-block-uagb-container,
.lg-page > .wp-block-cover,
.lg-page > .wp-block-group.has-background {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

/* Spectra sets its own inner max-width; don't fight it. */
.lg-page .uagb-container-inner-blocks-wrap { margin-inline: auto; }

/* Breadcrumbs */

.lg-crumbs {
	margin-top: var(--lg-s4);
	color: var(--lg-taupe);
	font-size: 0.82rem;
}

.lg-crumbs a { color: var(--lg-taupe); text-decoration: none; }
.lg-crumbs a:hover { color: var(--lg-plum); text-decoration: underline; }
.lg-crumbs__sep { margin: 0 var(--lg-s2); opacity: 0.45; }

/* Search form */

.lg-search {
	display: flex;
	gap: var(--lg-s2);
	max-width: 30rem;
	margin-inline: auto;
}

.lg-search input { flex: 1; }
.lg-search button { flex-shrink: 0; }

/* Post card internals */

.lg-card-post__title {
	font-size: 1.15rem;
	margin-bottom: var(--lg-s2);
}

.lg-card-post__title a { color: var(--lg-plum); text-decoration: none; }
.lg-card-post__title a:hover { color: var(--lg-taupe); }

.lg-card-post__meta {
	margin: 0 0 var(--lg-s3);
	color: var(--lg-taupe);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.lg-card-post__body .lg-btn { margin-top: var(--lg-s4); }

/* Comments */

.comment-list { list-style: none; margin: 0 0 var(--lg-s6); padding: 0; }
.comment-list .children { list-style: none; padding-left: var(--lg-s5); }

.comment-list .comment-body {
	padding: var(--lg-s4);
	margin-bottom: var(--lg-s3);
	background: var(--lg-champagne-12);
	border-radius: var(--lg-r-btn);
}

/* ------------------------------------------------------- single product -- */

.lynnify-glass .single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: var(--lg-s7);
	align-items: start;
	margin-bottom: var(--lg-s8);
}

.lynnify-glass .single-product div.product .woocommerce-product-gallery {
	position: sticky;
	top: calc(var(--lg-chrome-h) + var(--lg-s4));
	width: 100% !important;
	float: none !important;
	padding: var(--lg-s3);
	background: var(--lg-glass-slab);
	backdrop-filter: var(--lg-blur-slab);
	-webkit-backdrop-filter: var(--lg-blur-slab);
	border: var(--lg-hairline);
	border-radius: var(--lg-r-card);
	box-shadow: var(--lg-shadow-slab);
}

.lynnify-glass .woocommerce-product-gallery__image img { border-radius: 14px; }

.lynnify-glass .woocommerce-product-gallery__wrapper { margin: 0; }

.lynnify-glass .flex-control-thumbs {
	display: flex;
	gap: var(--lg-s2);
	margin: var(--lg-s3) 0 0;
	padding: 0;
	list-style: none;
}

.lynnify-glass .flex-control-thumbs li { width: auto !important; margin: 0 !important; }

.lynnify-glass .flex-control-thumbs img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 10px;
	opacity: 0.55;
	cursor: pointer;
	transition: opacity var(--lg-dur) var(--lg-ease);
}

.lynnify-glass .flex-control-thumbs img.flex-active,
.lynnify-glass .flex-control-thumbs img:hover { opacity: 1; }

.lynnify-glass .single-product div.product .summary {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: var(--lg-s6);
	background: var(--lg-glass-well);
	backdrop-filter: var(--lg-blur-slab);
	-webkit-backdrop-filter: var(--lg-blur-slab);
	border: var(--lg-hairline-warm);
	border-radius: var(--lg-r-card);
	box-shadow: var(--lg-shadow-slab);
}

.lynnify-glass .single-product .product_title { margin-bottom: var(--lg-s3); }

.lynnify-glass .single-product .summary .price {
	display: block;
	margin-bottom: var(--lg-s4);
	font-size: 1.6rem;
	font-weight: 600;
	color: var(--lg-plum);
}

.lynnify-glass .single-product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--lg-s3);
	margin: var(--lg-s5) 0;
}

.lynnify-glass .single-product form.cart .button { flex: 1; min-width: 12rem; padding: 1rem 2rem; }

/* Quantity stepper */

.lynnify-glass .quantity {
	display: inline-flex;
	align-items: center;
	background: rgb(255 255 255 / 70%);
	border: var(--lg-hairline-warm);
	border-radius: var(--lg-r-btn);
	box-shadow: var(--lg-shadow-inset);
	overflow: hidden;
}

.lynnify-glass .quantity input.qty {
	width: 3.5rem;
	padding: 0.8rem 0;
	text-align: center;
	border: none;
	background: none;
	box-shadow: none;
	-moz-appearance: textfield;
}

.lynnify-glass .quantity input.qty::-webkit-outer-spin-button,
.lynnify-glass .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Variation swatches / selects */

.lynnify-glass table.variations { width: 100%; border: none; margin-bottom: var(--lg-s4); }
.lynnify-glass table.variations th,
.lynnify-glass table.variations td { border: none; padding: var(--lg-s2) 0; }

/* Tabs */

.lynnify-glass .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lg-s2);
	margin: 0 0 var(--lg-s5);
	padding: var(--lg-s2);
	list-style: none;
	background: var(--lg-glass-slab);
	backdrop-filter: var(--lg-blur-slab);
	-webkit-backdrop-filter: var(--lg-blur-slab);
	border: var(--lg-hairline);
	border-radius: var(--lg-r-pill);
	box-shadow: var(--lg-shadow-slab);
}

.lynnify-glass .woocommerce-tabs ul.tabs::before,
.lynnify-glass .woocommerce-tabs ul.tabs::after,
.lynnify-glass .woocommerce-tabs ul.tabs li::before,
.lynnify-glass .woocommerce-tabs ul.tabs li::after { display: none !important; }

.lynnify-glass .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	border-radius: var(--lg-r-pill);
}

.lynnify-glass .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: var(--lg-s2) var(--lg-s5);
	border-radius: var(--lg-r-pill);
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--lg-taupe);
	transition: background var(--lg-dur) var(--lg-ease), color var(--lg-dur) var(--lg-ease);
}

.lynnify-glass .woocommerce-tabs ul.tabs li.active a,
.lynnify-glass .woocommerce-tabs ul.tabs li a:hover {
	background: var(--lg-champagne-40);
	color: var(--lg-plum);
}

.lynnify-glass .woocommerce-tabs .panel {
	padding: var(--lg-s6);
	background: var(--lg-glass-slab);
	backdrop-filter: var(--lg-blur-slab);
	-webkit-backdrop-filter: var(--lg-blur-slab);
	border: var(--lg-hairline);
	border-radius: var(--lg-r-card);
	box-shadow: var(--lg-shadow-slab);
}

/* ------------------------------------------------------- cart / checkout -- */

/**
 * The money path keeps Woo's own markup and form logic — this is surface
 * styling only, so nothing here can change what gets submitted.
 */
.lynnify-glass .woocommerce-cart-form,
.lynnify-glass .cart_totals,
.lynnify-glass .woocommerce-checkout-review-order,
.lynnify-glass .woocommerce-billing-fields,
.lynnify-glass .woocommerce-shipping-fields,
.lynnify-glass .woocommerce-additional-fields,
.lynnify-glass .woocommerce-order-details,
.lynnify-glass .woocommerce-customer-details,
.lynnify-glass .woocommerce-MyAccount-content,
.lynnify-glass .woocommerce-form-login,
.lynnify-glass .woocommerce-form-register {
	padding: var(--lg-s6);
	background: var(--lg-glass-slab);
	backdrop-filter: var(--lg-blur-slab);
	-webkit-backdrop-filter: var(--lg-blur-slab);
	border: var(--lg-hairline);
	border-radius: var(--lg-r-card);
	box-shadow: var(--lg-shadow-slab);
	margin-bottom: var(--lg-s5);
}

@supports not (backdrop-filter: blur(1px)) {
	.lynnify-glass .woocommerce-cart-form,
	.lynnify-glass .cart_totals,
	.lynnify-glass .woocommerce-checkout-review-order { background: rgb(255 255 255 / 96%); }
}

.lynnify-glass table.shop_table {
	width: 100%;
	border: none;
	border-collapse: collapse;
	border-radius: 0;
}

.lynnify-glass table.shop_table th,
.lynnify-glass table.shop_table td {
	padding: var(--lg-s4) var(--lg-s2);
	border: none;
	border-bottom: 1px solid var(--lg-champagne-40);
	background: none;
	vertical-align: middle;
}

.lynnify-glass table.shop_table th {
	color: var(--lg-plum);
	font-family: var(--lg-font-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.lynnify-glass table.shop_table tr:last-child td { border-bottom: none; }

.lynnify-glass table.shop_table img { width: 64px; border-radius: 10px; }

.lynnify-glass .product-remove a.remove {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: var(--lg-r-pill);
	background: var(--lg-champagne-24);
	color: var(--lg-plum) !important;
	font-size: 1rem;
	text-decoration: none;
}

.lynnify-glass .product-remove a.remove:hover { background: var(--lg-champagne); color: var(--lg-plum) !important; }

/* Checkout two-column, collapsing under 900px. */
@media (min-width: 901px) {
	.lynnify-glass form.checkout.woocommerce-checkout {
		display: grid;
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		gap: var(--lg-s6);
		align-items: start;
	}
	/**
	 * Rows are placed explicitly. Woo emits #order_review_heading and
	 * #order_review as two separate siblings of the form, so with auto
	 * placement the heading takes row 1 next to #customer_details — which is
	 * ~1300px tall — and the summary lands in row 2, below the entire billing
	 * form. Spanning the billing column across both rows keeps the summary
	 * beside it instead.
	 */
	.lynnify-glass form.checkout {
		align-items: start;
		grid-template-rows: auto 1fr;
	}
	.lynnify-glass form.checkout #customer_details {
		grid-column: 1;
		grid-row: 1 / span 2;
	}
	.lynnify-glass form.checkout #order_review_heading {
		grid-column: 2;
		grid-row: 1;
		margin-top: 0;
	}
	.lynnify-glass form.checkout #order_review {
		grid-column: 2;
		grid-row: 2;
		align-self: start;
		position: sticky;
		top: calc(var(--lg-chrome-h) + var(--lg-s4));
	}
	.lynnify-glass form.checkout #customer_details .col-1,
	.lynnify-glass form.checkout #customer_details .col-2 { width: 100%; float: none; }
}

.lynnify-glass #payment {
	background: var(--lg-glass-well);
	border-radius: var(--lg-r-card);
	padding: var(--lg-s4);
}

.lynnify-glass #payment ul.payment_methods {
	list-style: none;
	margin: 0 0 var(--lg-s4);
	padding: 0;
	border: none;
}

.lynnify-glass #payment ul.payment_methods li {
	padding: var(--lg-s3);
	margin-bottom: var(--lg-s2);
	background: rgb(255 255 255 / 60%);
	border: var(--lg-hairline-warm);
	border-radius: var(--lg-r-btn);
}

.lynnify-glass #payment div.payment_box {
	background: var(--lg-champagne-12);
	border-radius: var(--lg-r-btn);
	margin-top: var(--lg-s2);
}

.lynnify-glass #payment div.payment_box::before { display: none; }

.lynnify-glass #place_order { width: 100%; padding: 1.1rem 2rem; font-size: 1rem; }

/* Woo notices as glass banners. */
.lynnify-glass .woocommerce-message,
.lynnify-glass .woocommerce-info,
.lynnify-glass .woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--lg-s3);
	margin-bottom: var(--lg-s5);
	padding: var(--lg-s4) var(--lg-s5);
	background: var(--lg-glass-well);
	backdrop-filter: var(--lg-blur-slab);
	-webkit-backdrop-filter: var(--lg-blur-slab);
	border: var(--lg-hairline-warm);
	border-left: 3px solid var(--lg-taupe);
	border-radius: var(--lg-r-btn);
	box-shadow: var(--lg-shadow-slab);
	color: var(--lg-ink);
	list-style: none;
}

.lynnify-glass .woocommerce-error { border-left-color: #9d3b3b; }
.lynnify-glass .woocommerce-message::before,
.lynnify-glass .woocommerce-info::before,
.lynnify-glass .woocommerce-error::before { display: none; }
.lynnify-glass .woocommerce-message .button { margin-left: auto; }

/* --------------------------------------------------------------- footer -- */

.lg-footer {
	margin-top: var(--lg-s9);
	padding: var(--lg-s8) 0 var(--lg-s5);
	background: var(--lg-glass-chrome);
	backdrop-filter: var(--lg-blur-chrome);
	-webkit-backdrop-filter: var(--lg-blur-chrome);
	border-top: 1px solid rgb(221 209 193 / 55%);
}

.lg-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--lg-s6);
	margin-bottom: var(--lg-s6);
}

.lg-footer__grid h2,
.lg-footer__grid .widget-title {
	font-family: var(--lg-font-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lg-plum);
	margin-bottom: var(--lg-s4);
}

.lg-footer ul { list-style: none; margin: 0; padding: 0; }
.lg-footer li { margin-bottom: var(--lg-s2); }
.lg-footer a { color: var(--lg-taupe); text-decoration: none; font-size: 0.9rem; }
.lg-footer a:hover { color: var(--lg-plum); }

.lg-footer__base {
	padding-top: var(--lg-s5);
	border-top: 1px solid var(--lg-champagne-40);
	text-align: center;
	color: var(--lg-taupe);
	font-size: 0.82rem;
}

/* ------------------------------------------------------------- articles -- */

.lg-card-post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--lg-glass-slab);
	backdrop-filter: var(--lg-blur-slab);
	-webkit-backdrop-filter: var(--lg-blur-slab);
	border: var(--lg-hairline);
	border-radius: var(--lg-r-card);
	box-shadow: var(--lg-shadow-slab);
	transition: transform var(--lg-dur) var(--lg-ease), box-shadow var(--lg-dur) var(--lg-ease);
}

.lg-card-post:hover { transform: translateY(-4px); box-shadow: var(--lg-shadow-raised); }
.lg-card-post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lg-card-post__body { padding: var(--lg-s5); }

.lg-grid-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--lg-s5);
}

.lg-prose {
	max-width: 68ch;
	margin-inline: auto;
	padding: var(--lg-s7);
	background: var(--lg-glass-slab);
	backdrop-filter: var(--lg-blur-slab);
	-webkit-backdrop-filter: var(--lg-blur-slab);
	border: var(--lg-hairline);
	border-radius: var(--lg-r-card);
	box-shadow: var(--lg-shadow-slab);
}

.lg-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.lg-prose blockquote {
	margin: var(--lg-s5) 0;
	padding: var(--lg-s4) var(--lg-s5);
	border-left: 3px solid var(--lg-champagne);
	background: var(--lg-champagne-12);
	border-radius: 0 var(--lg-r-btn) var(--lg-r-btn) 0;
	font-style: italic;
}

/* Pagination */

.lynnify-glass .woocommerce-pagination ul,
.lg-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: var(--lg-s2);
	list-style: none;
	margin: var(--lg-s6) 0;
	padding: 0;
	border: none;
}

.lynnify-glass .woocommerce-pagination ul li { border: none; margin: 0; }

.lynnify-glass .woocommerce-pagination a.page-numbers,
.lynnify-glass .woocommerce-pagination span.page-numbers,
.lg-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 var(--lg-s3);
	border-radius: var(--lg-r-btn);
	background: var(--lg-glass-slab);
	border: var(--lg-hairline-warm);
	color: var(--lg-plum);
	text-decoration: none;
	font-size: 0.9rem;
	transition: background var(--lg-dur) var(--lg-ease);
}

.lynnify-glass .woocommerce-pagination .page-numbers.current,
.lg-pagination .page-numbers.current {
	background: var(--lg-plum);
	color: var(--lg-white);
	border-color: var(--lg-plum);
}

/* ------------------------------------------------------- scroll reveal -- */

/* Opt-in: only elements js has marked get the transition, so a js failure
   leaves content visible rather than permanently transparent. */
.lg-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--lg-ease), transform 0.7s var(--lg-ease);
}

.lg-reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1024px) {
	.lynnify-glass .single-product div.product { grid-template-columns: 1fr; gap: var(--lg-s5); }
	.lynnify-glass .single-product div.product .woocommerce-product-gallery { position: static; }
}

@media (max-width: 860px) {
	:root { --lg-chrome-h: 60px; }

	.lg-burger { display: block; }

	.lg-nav {
		position: fixed;
		inset: var(--lg-chrome-h) 0 auto;
		max-height: calc(100dvh - var(--lg-chrome-h));
		overflow-y: auto;
		padding: var(--lg-s4);
		background: rgb(255 255 255 / 92%);
		backdrop-filter: var(--lg-blur-chrome);
		-webkit-backdrop-filter: var(--lg-blur-chrome);
		border-bottom: var(--lg-hairline-warm);
		box-shadow: var(--lg-shadow-raised);
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		transition: all var(--lg-dur) var(--lg-ease);
	}

	.lg-nav.is-open { transform: none; opacity: 1; visibility: visible; }

	.lg-nav ul { flex-direction: column; align-items: stretch; gap: var(--lg-s1); }
	.lg-nav a { padding: var(--lg-s3) var(--lg-s4); border-radius: var(--lg-r-btn); }

	.lg-nav ul ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		background: var(--lg-champagne-12);
		margin-left: var(--lg-s4);
	}

	.lynnify-glass ul.products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--lg-s3); }
	.lg-prose { padding: var(--lg-s5); }
	.lynnify-glass .single-product div.product .summary { padding: var(--lg-s5); }
	.lg-title { padding: var(--lg-s6) 0 var(--lg-s5); }
}

@media (max-width: 480px) {
	.lynnify-glass ul.products { grid-template-columns: repeat(2, 1fr); }
	.lynnify-glass .single-product form.cart { flex-direction: column; align-items: stretch; }
	.lynnify-glass .single-product form.cart .button { width: 100%; }
}

/* --------------------------------------------------------- preferences -- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.lg-reveal { opacity: 1; transform: none; }
	.lynnify-glass ul.products li.product:hover { transform: none; }
	.lynnify-glass ul.products li.product:hover a img { transform: none; }
}

@media print {
	.lg-chrome, .lg-footer, .lg-burger { display: none; }
	body.lynnify-glass::before { display: none; }
	.lg-glass, .lg-prose { box-shadow: none; border: 1px solid #ccc; background: #fff; }
}
