/* Crewchet Shop front end. Uses the Crewchet theme's tokens, with fallbacks for other themes. */

.ccs-product,
.ccs-shop-header,
.ccs-shop-grid-wrap,
.ccs-order {
	--ccs-ink: var(--denim, #1f2b4d);
	--ccs-muted: var(--denim-60, #5b6481);
	--ccs-accent: var(--berry, #b8336a);
	--ccs-accent-dark: var(--berry-dark, #93244f);
	--ccs-highlight: var(--marigold, #f2b33d);
	--ccs-highlight-soft: var(--marigold-soft, #fdf0d2);
	--ccs-surface: var(--mist, #edf0f7);
	--ccs-line: var(--line, rgba(31, 43, 77, 0.14));
	--ccs-display: var(--font-display, Georgia, serif);
	--ccs-max: var(--max, 76rem);
	--ccs-gutter: var(--gutter, clamp(1rem, 4vw, 2.5rem));
	color: var(--ccs-ink);
}

.ccs-button:not(.button) {
	display: inline-flex;
	align-items: center;
	padding: 0.85rem 1.4rem;
	border-radius: 999px;
	background: var(--ccs-accent, #b8336a);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

/* Product page ---------------------------------------------------------------- */

.ccs-product__top {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3.5rem);
	max-width: var(--ccs-max);
	margin: 0 auto;
	padding: clamp(1.5rem, 5vw, 3.5rem) var(--ccs-gutter) 2rem;
}

@media (min-width: 900px) {
	.ccs-product__top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
	}

	.ccs-product__media {
		position: sticky;
		top: 1.5rem;
	}
}

.ccs-product__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 22px;
	background: var(--ccs-surface);
}

.ccs-breadcrumbs {
	margin-bottom: 0.75rem;
	font-size: 0.9375rem;
}

.ccs-breadcrumbs a {
	color: var(--ccs-accent);
	font-weight: 600;
	text-decoration: none;
}

.ccs-breadcrumbs a:hover {
	text-decoration: underline;
}

.ccs-product__title {
	font-family: var(--ccs-display);
	font-weight: 400;
	font-size: clamp(2.2rem, 4.6vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: -0.015em;
	margin: 0;
}

.ccs-product__summary {
	margin-top: 1rem;
	font-size: 1.2rem;
	line-height: 1.5;
	color: var(--denim-80, #3a4566);
}

.ccs-checkout {
	margin-top: 1.75rem;
	padding: 1.5rem;
	border: 2px solid var(--ccs-line);
	border-radius: 22px;
	background: #fff;
}

.ccs-checkout__price {
	margin: 0 0 1.1rem;
	font-family: var(--ccs-display);
	font-size: 2.25rem;
	line-height: 1;
}

.ccs-checkout__price del {
	margin-right: 0.5rem;
	font-family: var(--font-body, inherit);
	font-size: 1.15rem;
	color: var(--ccs-muted);
}

.ccs-checkout__price ins {
	color: var(--ccs-accent);
	text-decoration: none;
}

.ccs-checkout__buttons {
	min-height: 48px;
}

.ccs-test-banner {
	margin: 0 0 1rem;
	padding: 0.7rem 0.9rem;
	border-radius: 12px;
	background: var(--ccs-highlight-soft);
	font-size: 0.9rem;
	font-weight: 600;
}

.ccs-checkout__message {
	margin: 1rem 0 0;
	padding: 0.75rem 0.9rem;
	border-radius: 12px;
	background: var(--ccs-surface);
	font-size: 0.95rem;
	font-weight: 600;
}

.ccs-checkout__message.is-error {
	background: #fbe7ef;
	color: #7d1d44;
}

.ccs-checkout__note {
	margin: 1rem 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--ccs-muted);
}

.ccs-checkout__unavailable {
	margin: 0;
	font-weight: 600;
}

.ccs-checkout__admin {
	margin: 0.75rem 0 0;
	padding: 0.7rem 0.9rem;
	border-radius: 12px;
	background: var(--ccs-highlight-soft);
	font-size: 0.9rem;
}

.ccs-product__facts {
	margin-top: 2rem;
}

.ccs-product__facts-title {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	font-weight: 750;
}

.ccs-product__includes {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ccs-product__includes li {
	position: relative;
	padding-left: 1.9rem;
}

.ccs-product__includes li + li {
	margin-top: 0.45rem;
}

.ccs-product__includes li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.25em;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: var(--ccs-highlight) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2b4d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") no-repeat center / 0.8rem;
}

.ccs-product__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2.5rem;
	margin: 1.5rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ccs-line);
}

.ccs-product__specs dt {
	font-size: 0.875rem;
	color: var(--ccs-muted);
}

.ccs-product__specs dd {
	margin: 0;
	font-weight: 700;
}

.ccs-product__description {
	max-width: var(--measure, 42rem);
	margin: 0 auto;
	padding: 1rem var(--ccs-gutter) 4rem;
}

/* Shop page ---------------------------------------------------------------- */

.ccs-shop-header {
	max-width: var(--ccs-max);
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4rem) var(--ccs-gutter) clamp(1.5rem, 4vw, 2.5rem);
}

.ccs-shop-header__title {
	margin: 0;
	font-family: var(--ccs-display);
	font-weight: 400;
	font-size: clamp(2.4rem, 6vw, 4rem);
	letter-spacing: -0.015em;
}

.ccs-shop-header__intro {
	margin-top: 0.9rem;
	max-width: 50ch;
	font-size: 1.2rem;
	color: var(--denim-80, #3a4566);
}

.ccs-shop-grid-wrap {
	max-width: var(--ccs-max);
	margin: 0 auto;
	padding: 0 var(--ccs-gutter) clamp(3rem, 7vw, 5rem);
}

.ccs-shop-grid:not(.card-grid) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: 2.5rem 1.75rem;
}

.ccs-card img {
	width: 100%;
	height: auto;
	border-radius: 16px;
}

.ccs-empty {
	max-width: 40rem;
	padding: 1.5rem;
	border-radius: 22px;
	background: var(--ccs-surface);
}

/* Order page ---------------------------------------------------------------- */

.ccs-order {
	max-width: 44rem;
	margin: 0 auto;
	padding: clamp(2.5rem, 7vw, 5rem) var(--ccs-gutter);
}

.ccs-order__title {
	margin: 0;
	font-family: var(--ccs-display);
	font-weight: 400;
	font-size: clamp(2.2rem, 5.5vw, 3.4rem);
	line-height: 1.05;
}

.ccs-order__lede {
	margin-top: 1rem;
	font-size: 1.15rem;
	line-height: 1.55;
}

.ccs-order__notice {
	margin-top: 1.5rem;
	padding: 0.9rem 1.1rem;
	border-radius: 14px;
	background: var(--ccs-highlight-soft);
	font-weight: 600;
}

.ccs-downloads {
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ccs-line);
}

.ccs-downloads li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--ccs-line);
}

.ccs-downloads__name {
	flex: 1 1 14rem;
	font-weight: 750;
}

.ccs-downloads__size {
	color: var(--ccs-muted);
	font-size: 0.9rem;
}

.ccs-order__small {
	margin-top: 1rem;
	font-size: 0.9375rem;
	color: var(--ccs-muted);
}

.ccs-order__number {
	margin-top: 2.5rem;
	font-size: 0.875rem;
	color: var(--ccs-muted);
}

/* Promo box on free pattern posts ------------------------------------------------ */

.ccs-promo {
	--ccs-accent: var(--berry, #b8336a);
	color: var(--denim, #1f2b4d);
	border-radius: 18px;
}

.ccs-promo--compact {
	padding: 1.1rem;
	border: 2px solid var(--marigold, #f2b33d);
	background: #fff;
}

.ccs-promo--full {
	display: grid;
	gap: 1.25rem;
	align-items: center;
	max-width: var(--measure, 42rem);
	padding: 1.25rem;
	background: var(--marigold-soft, #fdf0d2);
}

@media (min-width: 600px) {
	.ccs-promo--full {
		grid-template-columns: 9rem minmax(0, 1fr);
		padding: 1.5rem;
	}
}

.ccs-promo__image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 12px;
}

.ccs-promo__title {
	margin: 0;
	font-weight: 750;
	font-size: 1.1rem;
	line-height: 1.3;
}

.ccs-promo--full .ccs-promo__title {
	font-family: var(--font-display, Georgia, serif);
	font-weight: 400;
	font-size: 1.5rem;
}

.ccs-promo__text {
	margin: 0.35rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--denim-80, #3a4566);
}

.ccs-promo__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-top: 0.9rem;
}

.ccs-promo__price {
	font-weight: 750;
	font-size: 1.15rem;
}

.ccs-promo__price del {
	margin-right: 0.3rem;
	font-weight: 400;
	font-size: 0.95rem;
	color: var(--denim-60, #5b6481);
}

.ccs-promo__price ins {
	color: var(--ccs-accent);
	text-decoration: none;
}

.ccs-promo--compact .ccs-button {
	padding: 0.6rem 1rem;
	font-size: 0.9375rem;
}
