.lgm {
	--lgm-ink: #14233a;
	--lgm-tide: #0f5c56;
	--lgm-tide-dark: #0c463f;
	--lgm-sand: #f3eee6;
	--lgm-paper: #fffcf8;
	--lgm-line: #e3d9cc;
	--lgm-signal: #9d3412;
	--lgm-muted: #5c6b7a;
	--lgm-width: 1400px;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--lgm-width);
	margin: 2rem auto 3rem;
	padding: 0 1.25rem;
	color: var(--lgm-ink);
	font-family: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
	line-height: 1.5;
}

.lgm * { box-sizing: border-box; }

.lgm h1,
.lgm h2,
.lgm p { margin-top: 0; }

.lgm a { color: var(--lgm-tide-dark); }

.lgm a:hover { color: var(--lgm-signal); }

.lgm :focus-visible {
	outline: 2px solid var(--lgm-tide);
	outline-offset: 2px;
}

.lgm h1.lgm-title {
	font-size: clamp(1.7rem, 2.2vw, 2.2rem);
	font-weight: 750;
	line-height: 1.15;
	letter-spacing: -0.03em;
	text-transform: none;
	margin-bottom: 0.35rem;
}

.lgm-back { margin: 0 0 0.9rem; }

.lgm-back a { text-decoration: none; font-weight: 700; }

.lgm-bar,
.lgm-summary,
.lgm-filters,
.lgm-split,
.lgm-overview li,
.lgm-cart-link {
	display: flex;
	align-items: center;
}

.lgm-bar,
.lgm-summary {
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.lgm-cart-link {
	gap: 0.5rem;
	text-decoration: none;
	font-weight: 700;
}

.lgm-cart-link span {
	min-width: 1.6rem;
	height: 1.6rem;
	padding: 0 0.4rem;
	border-radius: 999px;
	background: var(--lgm-tide);
	color: #fff;
	display: inline-grid;
	place-items: center;
	font-size: 0.85rem;
}

.lgm-filters { gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1.25rem; }

.lgm-filter {
	text-decoration: none;
	border: 1px solid var(--lgm-line);
	background: #fff;
	color: var(--lgm-ink);
	border-radius: 999px;
	padding: 0.35rem 0.8rem;
}

.lgm-filter.is-active,
.lgm-filter:hover {
	background: var(--lgm-tide);
	border-color: var(--lgm-tide);
	color: #fff;
}

.lgm--embed {
	max-width: 1400px;
	width: 100%;
	margin: 0;
	padding: 0;
}

.lgm-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	width: 100%;
}

.lgm-card,
.lgm-buy,
.lgm-overview {
	background: var(--lgm-paper);
	border: 1px solid var(--lgm-line);
	border-radius: 16px;
}

.lgm-card { overflow: hidden; display: flex; flex-direction: column; }

.lgm-card__media,
.lgm-card__placeholder,
.lgm-single__media {
	display: block;
	background: var(--lgm-sand);
	aspect-ratio: 4 / 3;
}

.lgm-card__image,
.lgm-single__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lgm-card__placeholder {
	color: var(--lgm-tide);
	display: grid;
	place-items: center;
}

.lgm-card__body,
.lgm-buy,
.lgm-overview { padding: 1rem 1rem 1.1rem; }

.lgm-card__title {
	font-size: 1.2rem;
	font-weight: 750;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	margin: 0 0 0.4rem;
}

.lgm-card__title a { color: inherit; text-decoration: none; }

.lgm-excerpt,
.lgm-stock,
.lgm-sku,
.lgm-privacy,
.lgm-overview__note,
.lgm-lead { color: var(--lgm-muted); }

.lgm-price { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.35rem; }

.lgm-price--large { font-size: 1.8rem; letter-spacing: -0.03em; }

.lgm-stock.is-out,
.lgm-unavailable { color: var(--lgm-signal); font-weight: 700; }

.lgm-button {
	appearance: none;
	border: 0;
	background: var(--lgm-tide);
	color: #fff;
	font: inherit;
	font-weight: 700;
	padding: 0.75rem 1.1rem;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
}

.lgm-button:hover { background: var(--lgm-tide-dark); color: #fff; }

.lgm-button--ghost {
	background: transparent;
	color: var(--lgm-tide-dark);
	border: 1px solid var(--lgm-tide);
}

.lgm-card .lgm-button,
.lgm-buyform .lgm-button { width: 100%; }

.lgm-buyform button.lgm-button {
	min-height: 40px;
	padding: 0.5rem 1rem;
	font-size: 0.95rem;
	line-height: 1.2;
}

.lgm-single {
	display: grid;
	grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
	gap: 2rem;
	align-items: start;
	background: #fff;
	border: 1px solid var(--lgm-line);
	border-radius: 20px;
	padding: 1.35rem;
}

.lgm-single--plain { grid-template-columns: minmax(0, 1fr); }

.lgm-single__main { padding: 0.35rem 0.25rem 0; }

.lgm-single .lgm-buy {
	margin: 0.85rem 0 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.lgm-short {
	margin: 0.35rem 0 1rem;
	color: #3c4b5c;
}

.lgm-short p:last-child { margin-bottom: 0; }

.lgm-short ul,
.lgm-description ul { margin: 0.35rem 0 0.8rem; padding-left: 1.15rem; }

.lgm-description {
	margin-top: 1.5rem;
	padding: 1.5rem 1.75rem 1.7rem;
	background: #fff;
	border: 1px solid var(--lgm-line);
	border-radius: 20px;
}

.lgm-description h2 {
	margin: 0 0 0.9rem;
	font-size: 1.45rem;
	font-weight: 750;
	letter-spacing: -0.02em;
	text-transform: none;
}

.lgm-description__body { max-width: none; }

.lgm-qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
}

.lgm-qty span { font-weight: 700; }

.lgm-qty input { width: 5.5rem; }

.lgm-single__media { border-radius: 14px; overflow: hidden; margin-bottom: 1rem; aspect-ratio: auto; }

.lgm-single__image { aspect-ratio: 4 / 3; }

.lgm-terms { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.lgm-terms a {
	text-decoration: none;
	background: var(--lgm-sand);
	border-radius: 999px;
	padding: 0.15rem 0.6rem;
}

.lgm-prose { max-width: 65ch; }

.lgm-buyform { display: grid; gap: 0.45rem; }

.lgm-buyform input,
.lgm-field input,
.lgm-field textarea,
.lgm-table input {
	width: 100%;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid #cfc3b4;
	border-radius: 10px;
	padding: 0.65rem 0.75rem;
}

.lgm-table input { max-width: 5.5rem; }

.lgm-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
	gap: 1.25rem;
	align-items: start;
}

.lgm-field { margin-bottom: 0.85rem; }

.lgm-field label,
.lgm-buyform label,
.lgm-address legend { display: block; font-weight: 700; margin-bottom: 0.3rem; }

.lgm-field span,
.lgm-address legend { font-weight: 500; color: var(--lgm-muted); }

.lgm-address {
	border: 1px solid var(--lgm-line);
	border-radius: 14px;
	padding: 0.8rem 0.9rem 0.2rem;
	margin: 0 0 0.9rem;
}

.lgm-split { gap: 0.75rem; }

.lgm-split .lgm-field { flex: 1; }

.lgm-hp {
	position: absolute;
	left: -10000px;
	height: 0;
	overflow: hidden;
}

.lgm-notice {
	padding: 0.75rem 0.9rem;
	border-radius: 12px;
	margin-bottom: 1rem;
}

.lgm-notice--success { background: #e7f4ef; color: #0c463f; }

.lgm-notice--error { background: #fde8e1; color: #7a2610; }

.lgm-table { width: 100%; border-collapse: collapse; }

.lgm-table th { text-align: left; font-size: 0.85rem; color: var(--lgm-muted); }

.lgm-table th,
.lgm-table td { padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--lgm-line); vertical-align: middle; }

.lgm-overview ul { list-style: none; margin: 0; padding: 0; }

.lgm-overview li {
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--lgm-line);
}

.lgm-overview__total { display: flex; justify-content: space-between; font-size: 1.15rem; }

.lgm-cart {
	background: #fff;
	border: 1px solid var(--lgm-line);
	border-radius: 20px;
	overflow: visible;
}

.lgm-lines { list-style: none; margin: 0; padding: 0; }

.lgm-line {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 9.5rem 7rem auto;
	gap: 1rem;
	align-items: center;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--lgm-line);
}

.lgm-line__title {
	display: block;
	font-weight: 750;
	text-decoration: none;
	color: var(--lgm-ink);
}

.lgm-line__meta { color: var(--lgm-muted); font-size: 0.92rem; }

.lgm-line__qty {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-weight: 700;
}

.lgm-line__qty input { width: 4.5rem; }

.lgm-line__total { font-size: 1.05rem; }

.lgm-line__remove {
	color: var(--lgm-muted);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
}

.lgm-line__remove:hover { color: var(--lgm-signal); }

.lgm-cart .lgm-summary {
	margin: 0;
	padding: 1rem 1.25rem;
	background: #f7f3ec;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.85rem;
	border-radius: 0 0 20px 20px;
}

.lgm-summary__total { margin: 0; font-size: 1.15rem; }

.lgm-summary__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.6rem;
	margin-left: auto;
}

.lgm-cart .lgm-button,
.lgm-cart a.lgm-button,
.lgm-cart a.lgm-button:hover,
.lgm-cart a.lgm-button:focus,
.lgm-cart button.lgm-button {
	width: auto;
	max-width: none;
	flex: 0 0 auto;
	white-space: nowrap;
	color: #fff !important;
	background: var(--lgm-tide);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.5rem 0.9rem;
	min-height: 38px;
}

.lgm-cart .lgm-button--ghost,
.lgm-cart button.lgm-button--ghost,
.lgm-cart button.lgm-button--ghost:hover {
	color: var(--lgm-tide-dark) !important;
	background: #fff;
	border: 1px solid var(--lgm-tide);
}

.lgm-cart a.lgm-button:hover,
.lgm-cart button.lgm-button:hover {
	color: #fff !important;
	background: var(--lgm-tide-dark);
}

.lgm-nav-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-left: auto;
	color: #fff;
	text-decoration: none;
	overflow: visible;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.lgm-nav-cart svg {
	width: 40px;
	height: 40px;
	display: block;
	stroke: #fff;
}

.lgm-nav-cart__count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.3rem;
	border-radius: 999px;
	background: #fff;
	color: #0f5c56;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.25rem;
	text-align: center;
}

.lgm-pager { margin-top: 1.5rem; }

.lgm-pager .page-numbers {
	display: inline-block;
	margin-right: 0.35rem;
	padding: 0.3rem 0.6rem;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--lgm-line);
	text-decoration: none;
}

.lgm-pager .current { background: var(--lgm-tide); color: #fff; border-color: var(--lgm-tide); }

.lgm-empty { font-size: 1.1rem; }

@media (max-width: 980px) {
	.lgm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.lgm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
	.lgm-single,
	.lgm-checkout,
	.lgm-line { grid-template-columns: 1fr; }
	.lgm-single .lgm-buy { border-left: 0; border-top: 0; }
	.lgm-summary__actions { margin-left: 0; width: 100%; }
	.lgm-table thead { display: none; }
	.lgm-table tr {
		display: block;
		border: 1px solid var(--lgm-line);
		border-radius: 12px;
		margin-bottom: 0.75rem;
		padding: 0.35rem 0.75rem;
	}
	.lgm-table td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		border: 0;
	}
	.lgm-table td::before {
		content: attr(data-label);
		color: var(--lgm-muted);
	}
}
