@font-face {
	font-display: swap;
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 100 900;
	src: url('font/fraunces-variable.woff2') format('woff2');
}

@font-face {
	font-display: swap;
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	src: url('font/inter-variable.woff2') format('woff2');
}

:root {
	--store-badge-blue: var(--store-color-sky);
	--store-badge-bright: var(--store-color-ink);
	--store-badge-cyan: #C9E7E1;
	--store-badge-green: var(--store-color-mint);
	--store-badge-mute: #E4DDCE;
	--store-badge-orange: #F3D8BE;
	--store-badge-purple: #DCD1EC;
	--store-badge-red: #ECC9C4;
	--store-badge-yellow: var(--store-color-butter);
	--store-badge-zinc: #E4DDCE;
	--store-border-thick: 2.5px;
	--store-border-thin: 1px;
	--store-border-width: 2px;
	--store-color-accent: #3399CC;
	--store-color-accent-deep: #2A7FA8;
	--store-color-accent-soft: #C6E4F2;
	--store-color-background: #F5EEDF;
	--store-color-butter: #F7E9B1;
	--store-color-card: #FFFFFF;
	--store-color-danger: #A83D3D;
	--store-color-ink: #1A1512;
	--store-color-ink-soft: #5B524A;
	--store-color-line: rgba(26, 21, 18, 0.10);
	--store-color-line-faint: rgba(26, 21, 18, 0.06);
	--store-color-mint: #CFE7D6;
	--store-color-sky: #CFDCEF;
	--store-color-surface: #FBF6EB;
	--store-font-body: 'Inter', system-ui, sans-serif;
	--store-font-display: 'Fraunces', Georgia, serif;
	--store-font-size-body: 1rem;
	--store-font-size-display: clamp(2.618rem, 4vw, 3.236rem);
	--store-font-size-heading-one: 2.618rem;
	--store-font-size-heading-three: 1.272rem;
	--store-font-size-heading-two: 1.618rem;
	--store-font-size-small: 0.809rem;
	--store-height-dropdown: 13rem;
	--store-radius-large: 1.75em;
	--store-radius-medium: 1.375em;
	--store-radius-pill: 999px;
	--store-radius-small: 0.875em;
	--store-radius-tiny: 0.625em;
	--store-shadow-focus: 0 0 0 0.1875em var(--store-color-accent-soft);
	--store-shadow-hard-large: 0.375em 0.375em 0 var(--store-color-ink);
	--store-shadow-hard-medium: 0.25em 0.25em 0 var(--store-color-ink);
	--store-shadow-hard-small: 0.1875em 0.1875em 0 var(--store-color-ink);
	--store-shadow-soft: 0 0.625em 1.875em rgba(26, 21, 18, 0.15);
	--store-shift-hover: -0.125em;
	--store-space-large: 2.618rem;
	--store-space-medium: 1.618rem;
	--store-space-small: 0.618rem;
	--store-space-tiny: calc(var(--store-space-small) / 1.618);
	--store-width-line-image: 5em;
	--store-width-input-name: 13rem;
	--store-width-input-quantity: 5rem;
	--store-width-page: 77.5rem;
	--store-width-summary: 25rem;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 100%;
}

body {
	background-color: var(--store-color-background);
	color: var(--store-color-ink);
	font-family: var(--store-font-body);
	line-height: 1.618;
}

h1 {
	font-family: var(--store-font-display);
	font-size: var(--store-font-size-heading-one);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

h2 {
	font-family: var(--store-font-display);
	font-size: var(--store-font-size-heading-two);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

h3 {
	font-family: var(--store-font-display);
	font-size: var(--store-font-size-heading-three);
	font-weight: 700;
	line-height: 1.3;
}

small {
	font-size: var(--store-font-size-small);
}

/* shell */

.store-shell {
	align-items: center;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.store-shell__content {
	align-items: center;
	display: flex;
	flex: 1;
	flex-direction: column;
	width: 100%;
}

.store-shell__band {
	padding: 0 var(--store-space-large);
	width: min(100%, var(--store-width-page));
}

.store-shell__band--main {
	flex: 1;
	padding-bottom: var(--store-space-large);
}

/* notice */

.application-notice {
	border-bottom: var(--store-border-thin) solid var(--store-color-line);
	font-weight: 600;
	padding: var(--store-space-small) var(--store-space-large);
	text-align: center;
	width: 100%;
}

.application-notice--error {
	color: var(--store-color-danger);
}

.application-notice--success {
	color: var(--store-color-ink);
}

/* page head */

.store-page-head {
	display: flex;
	flex-direction: column;
	gap: var(--store-space-small);
	padding-bottom: var(--store-space-medium);
	padding-top: var(--store-space-medium);
}

.store-page-head__title {
	font-size: var(--store-font-size-display);
}

.store-page-head__highlight {
	background-color: var(--store-color-accent);
	border-radius: var(--store-radius-tiny);
	color: var(--store-color-card);
	padding: 0 var(--store-space-tiny);
}

.store-page-head__subtitle {
	color: var(--store-color-ink-soft);
}

.store-page-head__meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--store-space-medium);
	justify-content: space-between;
}

/* search */

.store-search {
	display: flex;
	gap: var(--store-space-small);
}

.store-search__field {
	display: flex;
	flex: 1;
}

.store-search__field .store-search__input {
	width: 100%;
}

.store-search__input {
	background-color: var(--store-color-card);
	border: var(--store-border-width) solid var(--store-color-ink);
	border-radius: var(--store-radius-pill);
	font-family: var(--store-font-body);
	font-size: 1em;
	padding: var(--store-space-tiny) var(--store-space-medium);
}

.store-search__input:focus {
	box-shadow: var(--store-shadow-focus);
	outline: none;
}

/* chips */

.store-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--store-space-small);
	padding-bottom: var(--store-space-medium);
}

.store-chip {
	background-color: var(--store-color-card);
	border: var(--store-border-width) solid var(--store-color-ink);
	border-radius: var(--store-radius-pill);
	color: var(--store-color-ink);
	font-weight: 600;
	padding: var(--store-space-tiny) var(--store-space-medium);
	text-decoration: none;
}

.store-chip:hover {
	box-shadow: var(--store-shadow-hard-small);
	transform: translate(var(--store-shift-hover), var(--store-shift-hover));
}

.store-chip--current {
	background-color: var(--store-color-ink);
	color: var(--store-color-background);
}

/* buttons */

.store-button {
	border: var(--store-border-width) solid var(--store-color-ink);
	border-radius: var(--store-radius-pill);
	cursor: pointer;
	display: inline-block;
	font-family: var(--store-font-body);
	font-size: 1em;
	font-weight: 700;
	padding: var(--store-space-small) var(--store-space-medium);
	text-align: center;
	text-decoration: none;
	transition: box-shadow 150ms, transform 150ms;
}

.store-button:hover {
	transform: translate(var(--store-shift-hover), var(--store-shift-hover));
}

.store-button--primary {
	background-color: var(--store-color-accent);
	box-shadow: var(--store-shadow-hard-medium);
	color: var(--store-color-card);
}

.store-button--primary:hover {
	box-shadow: var(--store-shadow-hard-large);
}

.store-button--ink {
	background-color: var(--store-color-ink);
	color: var(--store-color-background);
}

.store-button--ink:hover {
	box-shadow: var(--store-shadow-hard-small);
}

.store-button--ghost {
	background-color: var(--store-color-card);
	color: var(--store-color-ink);
}

.store-button--ghost:hover {
	box-shadow: var(--store-shadow-hard-small);
}

/* badges — status pill; color comes from the row's workflow_status_style_color */

.store-badge {
	border-radius: var(--store-radius-pill);
	color: var(--store-color-ink);
	display: inline-block;
	font-size: var(--store-font-size-small);
	font-weight: 600;
	padding: var(--store-space-tiny) var(--store-space-small);
	white-space: nowrap;
}

.store-badge--blue { background-color: var(--store-badge-blue); }
.store-badge--bright { background-color: var(--store-badge-bright); color: var(--store-color-background); }
.store-badge--cyan { background-color: var(--store-badge-cyan); }
.store-badge--green { background-color: var(--store-badge-green); }
.store-badge--mute { background-color: var(--store-badge-mute); }
.store-badge--orange { background-color: var(--store-badge-orange); }
.store-badge--purple { background-color: var(--store-badge-purple); }
.store-badge--red { background-color: var(--store-badge-red); }
.store-badge--yellow { background-color: var(--store-badge-yellow); }
.store-badge--zinc { background-color: var(--store-badge-zinc); }

.store-card .store-badge {
	align-self: flex-start;
}

/* collections */

.store-collection--product,
.store-collection--cart {
	display: grid;
	gap: var(--store-space-medium);
	grid-template-columns: repeat(3, 1fr);
}

.store-collection--cart-line,
.store-collection--order-sale-line,
.store-collection--order-sale,
.store-collection--invoice-sale,
.store-collection--invoice-sale-line,
.store-collection--order-return,
.store-collection--order-return-line,
.store-collection--credit,
.store-collection--credit-line,
.store-collection--address,
.store-collection--payment {
	display: flex;
	flex-direction: column;
	gap: var(--store-space-small);
}

.store-collection__empty {
	color: var(--store-color-ink-soft);
}

/* cards */

.store-card {
	background-color: var(--store-color-card);
	border: var(--store-border-width) solid var(--store-color-ink);
	border-radius: var(--store-radius-medium);
	color: var(--store-color-ink);
	display: flex;
	flex-direction: column;
	gap: var(--store-space-tiny);
	padding: var(--store-space-medium);
	text-decoration: none;
	transition: box-shadow 150ms, transform 150ms;
}

.store-card:hover {
	box-shadow: var(--store-shadow-hard-small);
	transform: translate(var(--store-shift-hover), var(--store-shift-hover));
}

.store-card__image {
	align-items: center;
	aspect-ratio: 4 / 3;
	border-radius: var(--store-radius-small);
	color: var(--store-color-ink);
	display: flex;
	justify-content: center;
}

.store-card__image svg {
	height: var(--store-space-large);
	opacity: 0.4;
	width: var(--store-space-large);
}

.store-tint--1 {
	background-color: var(--store-color-accent-soft);
}

.store-tint--2 {
	background-color: var(--store-color-mint);
}

.store-tint--3 {
	background-color: var(--store-color-butter);
}

.store-tint--4 {
	background-color: var(--store-color-sky);
}

.store-card__name {
	font-family: var(--store-font-display);
	font-weight: 700;
	padding-top: var(--store-space-tiny);
}

.store-card__number {
	color: var(--store-color-ink-soft);
	font-size: var(--store-font-size-small);
}

.store-card__price {
	font-family: var(--store-font-display);
	font-weight: 900;
	padding-top: var(--store-space-tiny);
}

.store-card--cart {
	justify-content: space-between;
}

/* pagination */

.store-pagination {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--store-space-small);
	justify-content: center;
	padding-bottom: var(--store-space-medium);
	padding-top: var(--store-space-medium);
}

.store-pagination__link {
	align-items: center;
	background-color: var(--store-color-card);
	border: var(--store-border-width) solid var(--store-color-ink);
	border-radius: var(--store-radius-pill);
	color: var(--store-color-ink);
	display: inline-flex;
	height: var(--store-space-large);
	justify-content: center;
	text-decoration: none;
	width: var(--store-space-large);
}

.store-pagination__link:hover {
	background-color: var(--store-color-accent);
	color: var(--store-color-card);
}

.store-pagination__link svg {
	height: 1em;
	width: 1em;
}

.store-pagination__size {
	align-items: center;
	color: var(--store-color-ink-soft);
	display: flex;
	font-size: var(--store-font-size-small);
	gap: var(--store-space-small);
}

.store-pagination__size-current {
	color: var(--store-color-ink);
}

.store-pagination__size a {
	color: var(--store-color-ink);
}

/* product detail */

.store-product {
	display: grid;
	gap: var(--store-space-large);
	grid-template-columns: 1.1fr 1fr;
}

.store-product__gallery {
	min-width: 0;
}

.store-product__image {
	align-items: center;
	aspect-ratio: 1 / 1;
	border: var(--store-border-thick) solid var(--store-color-ink);
	border-radius: var(--store-radius-large);
	color: var(--store-color-ink);
	display: flex;
	justify-content: center;
}

.store-product__image svg {
	height: var(--store-space-large);
	opacity: 0.4;
	width: var(--store-space-large);
}

.store-product__details {
	display: flex;
	flex-direction: column;
	gap: var(--store-space-small);
}

.store-product__number {
	color: var(--store-color-ink-soft);
	font-size: var(--store-font-size-small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.store-product__description {
	color: var(--store-color-ink-soft);
}

.store-product__price {
	font-family: var(--store-font-display);
	font-size: var(--store-font-size-heading-two);
	font-weight: 900;
}

.store-product__availability {
	font-size: var(--store-font-size-small);
	font-weight: 600;
}

.store-product__buy-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--store-space-small);
	padding-top: var(--store-space-small);
}

.store-product__back {
	align-items: center;
	color: var(--store-color-ink);
	display: inline-flex;
	gap: var(--store-space-tiny);
	font-weight: 600;
}

.store-product__back svg {
	height: 1em;
	width: 1em;
}

/* quantity */

.store-quantity {
	align-items: center;
	background-color: var(--store-color-card);
	border: var(--store-border-width) solid var(--store-color-ink);
	border-radius: var(--store-radius-pill);
	display: inline-flex;
	padding: var(--store-space-tiny) var(--store-space-small);
}

.store-quantity__input {
	background-color: var(--store-color-card);
	border: none;
	font-family: var(--store-font-body);
	font-size: 1em;
	font-weight: 600;
	text-align: center;
	width: var(--store-width-input-quantity);
}

.store-quantity__input:focus {
	outline: none;
}

/* line rows */

.store-line {
	align-items: center;
	background-color: var(--store-color-card);
	border: var(--store-border-width) solid var(--store-color-ink);
	border-radius: var(--store-radius-medium);
	display: grid;
	gap: var(--store-space-medium);
	grid-template-columns: var(--store-width-line-image) 1fr auto auto;
	padding: var(--store-space-small) var(--store-space-medium);
}

.store-line--link {
	text-decoration: none;
	transition: box-shadow 150ms, transform 150ms;
}

.store-line--link:hover {
	box-shadow: var(--store-shadow-hard-small);
	transform: translate(var(--store-shift-hover), var(--store-shift-hover));
}

.store-line--unavailable {
	border-color: var(--store-color-danger);
}

.store-line__image {
	align-items: center;
	aspect-ratio: 1 / 1;
	border-radius: var(--store-radius-small);
	color: var(--store-color-ink);
	display: flex;
	justify-content: center;
}

.store-line__image svg {
	height: var(--store-space-medium);
	opacity: 0.4;
	width: var(--store-space-medium);
}

.store-line__info {
	display: flex;
	flex-direction: column;
	gap: var(--store-space-tiny);
}

.store-line__name {
	color: var(--store-color-ink);
	font-family: var(--store-font-display);
	font-weight: 700;
	text-decoration: none;
}

.store-line__name:hover {
	color: var(--store-color-accent-deep);
}

.store-line__number {
	color: var(--store-color-ink-soft);
	font-size: var(--store-font-size-small);
}

.store-line__quantity {
	align-items: center;
	display: flex;
	gap: var(--store-space-tiny);
}

.store-line__price {
	display: flex;
	flex-direction: column;
	font-weight: 700;
	text-align: right;
}

.store-line__price small {
	color: var(--store-color-ink-soft);
	font-weight: 400;
}

.store-line__remove {
	background: none;
	border: none;
	color: var(--store-color-ink-soft);
	cursor: pointer;
	font-family: var(--store-font-body);
	font-size: var(--store-font-size-small);
	padding: 0;
	text-align: left;
	text-decoration: underline;
	width: fit-content;
}

.store-line__remove:hover {
	color: var(--store-color-danger);
}

.store-line__unavailable {
	color: var(--store-color-danger);
	font-size: var(--store-font-size-small);
	font-weight: 700;
}

/* split layout */

.store-split {
	align-items: start;
	display: grid;
	gap: var(--store-space-large);
	grid-template-columns: 1fr var(--store-width-summary);
}

.store-split__main {
	display: flex;
	flex-direction: column;
	gap: var(--store-space-medium);
}

.store-split__aside {
	display: flex;
	flex-direction: column;
	gap: var(--store-space-medium);
	position: sticky;
	top: var(--store-space-medium);
}

/* summary */

.store-summary {
	background-color: var(--store-color-card);
	border: var(--store-border-width) solid var(--store-color-ink);
	border-radius: var(--store-radius-large);
	display: flex;
	flex-direction: column;
	gap: var(--store-space-small);
	padding: var(--store-space-medium);
}

.store-summary__row {
	border-bottom: var(--store-border-thin) solid var(--store-color-line-faint);
	display: flex;
	justify-content: space-between;
	padding-bottom: var(--store-space-tiny);
}

.store-summary__row--total {
	border-bottom: none;
	font-family: var(--store-font-display);
	font-size: var(--store-font-size-heading-three);
	font-weight: 900;
}

/* panel */

.store-panel {
	background-color: var(--store-color-card);
	border: var(--store-border-width) solid var(--store-color-ink);
	border-radius: var(--store-radius-large);
	display: flex;
	flex-direction: column;
	gap: var(--store-space-small);
	padding: var(--store-space-medium);
}

.store-field-row {
	display: flex;
	gap: var(--store-space-small);
}

.store-field-row > * {
	flex: 1;
	min-width: 0;
}

/* cart discounts */

.store-cart-discount__list {
	display: flex;
	flex-direction: column;
	gap: var(--store-space-tiny);
	list-style: none;
}

.store-cart-discount__item {
	align-items: center;
	border-bottom: var(--store-border-thin) solid var(--store-color-line-faint);
	display: flex;
	gap: var(--store-space-small);
	justify-content: space-between;
	padding-bottom: var(--store-space-tiny);
}

.store-cart-discount__label {
	font-weight: 700;
}

.store-cart-discount__amount {
	margin-left: auto;
}

.store-cart-discount__remove {
	background: none;
	border: none;
	color: var(--store-color-ink-soft);
	cursor: pointer;
	font-family: var(--store-font-body);
	font-size: var(--store-font-size-small);
	text-decoration: underline;
}

.store-cart-discount__apply {
	display: flex;
	gap: var(--store-space-small);
}

.store-cart-discount__input {
	background-color: var(--store-color-surface);
	border: var(--store-border-thin) solid var(--store-color-ink);
	border-radius: var(--store-radius-small);
	flex: 1;
	font-family: var(--store-font-body);
	font-size: 1em;
	min-width: 0;
	padding: var(--store-space-small);
}

.store-cart-discount__input:focus {
	box-shadow: var(--store-shadow-focus);
	outline: none;
}

/* shared form components */

.form-field {
	display: flex;
	flex-direction: column;
	gap: var(--store-space-tiny);
}

.form-field__label {
	display: flex;
	font-weight: 600;
	gap: var(--store-space-small);
	justify-content: space-between;
}

.form-field__error {
	color: var(--store-color-danger);
	font-size: var(--store-font-size-small);
}

.form-field__input {
	background-color: var(--store-color-surface);
	border: var(--store-border-thin) solid var(--store-color-ink);
	border-radius: var(--store-radius-small);
	font-family: var(--store-font-body);
	font-size: 1em;
	padding: var(--store-space-small);
	width: 100%;
}

.form-field__input:focus {
	box-shadow: var(--store-shadow-focus);
	outline: none;
}

.form-field__input--error {
	border-color: var(--store-color-danger);
}

.searchable-select {
	position: relative;
}

.command-palette {
	background-color: var(--store-color-card);
	border: var(--store-border-thin) solid var(--store-color-ink);
	border-radius: var(--store-radius-small);
	box-shadow: var(--store-shadow-soft);
	display: none;
	max-height: var(--store-height-dropdown);
	overflow-y: auto;
	position: absolute;
	width: 100%;
	z-index: 10;
}

.command-palette--open {
	display: block;
}

.command-palette__link {
	cursor: pointer;
	padding: var(--store-space-tiny) var(--store-space-small);
}

.command-palette__link:hover {
	background-color: var(--store-color-accent-soft);
}

.command-palette__link--hidden {
	display: none;
}

/* responsive */

@media (max-width: 1024px) {
	.store-collection--product,
	.store-collection--cart {
		grid-template-columns: repeat(2, 1fr);
	}

	.store-split {
		grid-template-columns: 1fr;
	}

	.store-split__aside {
		position: static;
	}

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

@media (max-width: 700px) {
	.store-shell__band {
		padding-left: var(--store-space-medium);
		padding-right: var(--store-space-medium);
	}

	.store-collection--product,
	.store-collection--cart {
		grid-template-columns: 1fr;
	}

	.store-line {
		grid-template-columns: var(--store-width-line-image) 1fr;
	}

	.store-line__quantity,
	.store-line__price {
		grid-column: 2;
	}

	.store-field-row {
		flex-direction: column;
	}
}

.store-card__image img {
	border-radius: var(--store-radius-small);
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.store-product__image img {
	border-radius: var(--store-radius-large);
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.store-product__thumbnail-row {
	display: flex;
	gap: var(--store-space-small);
	margin-top: var(--store-space-small);
}

.store-product__thumbnail {
	aspect-ratio: 1 / 1;
	border: var(--store-border-thin) solid var(--store-color-line);
	border-radius: var(--store-radius-small);
	overflow: hidden;
	width: var(--store-width-line-image);
}

.store-product__thumbnail img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.store-configurator {
	border: var(--store-border-thick) solid var(--store-color-ink);
	border-radius: var(--store-radius-large);
	display: flex;
	flex-direction: column;
	gap: var(--store-space-small);
	padding: var(--store-space-medium);
}

.store-configurator__base {
	color: var(--store-color-ink-soft);
	font-size: var(--store-font-size-small);
}

.store-configurator__component--nested {
	border-left: var(--store-border-thick) solid var(--store-color-line);
	padding-left: var(--store-space-medium);
}

.store-configurator__total {
	border-top: var(--store-border-thin) solid var(--store-color-line);
	display: flex;
	font-weight: 700;
	justify-content: space-between;
	padding-top: var(--store-space-small);
}

.store-configuration {
	border: var(--store-border-thin) solid var(--store-color-line);
	border-radius: var(--store-radius-large);
	display: flex;
	flex-direction: column;
	gap: var(--store-space-small);
	padding: var(--store-space-medium);
}

.store-configuration__header {
	align-items: center;
	border-bottom: var(--store-border-thin) solid var(--store-color-line);
	display: flex;
	justify-content: space-between;
	padding-bottom: var(--store-space-small);
}

.store-configuration__title {
	display: flex;
	flex-direction: column;
}

.store-configuration__name {
	font-weight: 700;
}

.store-configuration__number {
	color: var(--store-color-ink-soft);
	font-size: var(--store-font-size-small);
}

.store-configuration__action {
	align-items: center;
	display: flex;
	gap: var(--store-space-small);
}

.store-configuration__remove {
	background: none;
	border: none;
	color: var(--store-color-ink-soft);
	cursor: pointer;
	font-family: var(--store-font-body);
	font-size: var(--store-font-size-small);
	padding: 0;
}

.store-configuration__remove:hover {
	color: var(--store-color-danger);
}
