/*
 * Shopolyst pages layer.
 * Everything that is not the homepage or the product page: banners, collection
 * tiles, journal, contact, legal pages, shop, cart, checkout and account.
 */

/* =========================================================================
   1. Page band
   ========================================================================= */

.sp-band {
	position: relative;
	overflow: hidden;
	background: var(--sp-ink);
	min-height: 320px;
	display: grid;
	align-items: center;
	margin-bottom: 0;
}

.sp-band--compact { min-height: 260px; }

.sp-band__media { position: absolute; inset: 0; z-index: 0; }

.sp-band__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: 60% center;
	display: block;
	transform: scale(1.05);
	animation: sp-band-settle 1.4s var(--sp-ease-out, cubic-bezier(.16,1,.3,1)) forwards;
}

@keyframes sp-band-settle { to { transform: scale(1); } }

.sp-band__media::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(10,8,7,.88) 0%, rgba(10,8,7,.68) 44%, rgba(10,8,7,.18) 82%);
}

.sp-band__inner {
	position: relative; z-index: 1;
	max-width: 1240px; margin: 0 auto; width: 100%;
	padding: 54px 20px;
}

.sp-band__icon { display: block; color: var(--sp-highlight); margin-bottom: 10px; opacity: .9; }

.sp-band__eyebrow {
	display: inline-block;
	font-size: 11.5px; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase;
	color: var(--sp-highlight);
	margin-bottom: 12px;
}

.sp-band__title {
	font-family: var(--theme-headings-font-family);
	font-size: clamp(30px, 4.2vw, 52px);
	line-height: 1.06;
	color: #FFF;
	margin: 0;
	max-width: 20ch;
	text-wrap: balance;
}

.sp-band--compact .sp-band__title { max-width: 26ch; font-size: clamp(26px, 3.4vw, 42px); }

.sp-band__text {
	color: rgba(255,255,255,.8);
	font-size: 16px; line-height: 1.6;
	max-width: 52ch; margin: 14px 0 0;
}

.sp-crumbs { margin: 0 0 16px; }
.sp-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; }
.sp-crumbs li + li::before { content: "/"; color: rgba(255,255,255,.35); margin-right: 8px; }
.sp-crumbs a { color: rgba(255,255,255,.62); }
.sp-crumbs a:hover { color: #FFF; text-decoration: none; }
.sp-crumbs span { color: rgba(255,255,255,.9); }

/* The theme's own title block is redundant once the band is there. */
body.sp-has-band .hero-section,
body.sp-has-band .page-title,
body.sp-has-band .woocommerce-products-header__title,
body.sp-has-band .entry-header.ct-container-narrow > .page-title { display: none; }

body.sp-has-band .ct-container > section > header.woocommerce-products-header:empty { display: none; }

@media (max-width: 700px) {
	.sp-band { min-height: 240px; }
	.sp-band--compact { min-height: 200px; }
	.sp-band__inner { padding: 34px 18px; }
	.sp-band__media::after { background: linear-gradient(180deg, rgba(10,8,7,.55) 0%, rgba(10,8,7,.86) 62%, rgba(10,8,7,.94) 100%); }
	.sp-band__media img { object-position: 68% center; }
	.sp-band__text { font-size: 14.5px; }
}

/* Mobile hero: the composed cover keeps its subject on the right. */
@media (max-width: 700px) {
	.sp-hero__media img { object-position: 72% center; }
}

/* =========================================================================
   2. Collection tiles
   ========================================================================= */

.sp-cols {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
}

.sp-col {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	min-height: 190px;
	padding: 20px 18px 18px;
	background: var(--sp-surface);
	color: var(--sp-ink);
	overflow: hidden;
	isolation: isolate;
	transition: color .3s ease, transform .35s var(--sp-ease, cubic-bezier(.2,.8,.2,1));
}

.sp-col::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(150deg, var(--sp-accent) 0%, #7E4531 100%);
	transform: translateY(101%);
	transition: transform .45s var(--sp-ease-out, cubic-bezier(.16,1,.3,1));
}

.sp-col:hover { color: #FFF; text-decoration: none; }
.sp-col:hover::before { transform: translateY(0); }

.sp-col__art {
	position: absolute;
	top: 16px; right: 14px;
	color: var(--sp-accent);
	opacity: .55;
	transition: color .3s ease, opacity .3s ease, transform .45s var(--sp-ease-out, cubic-bezier(.16,1,.3,1));
}

.sp-col:hover .sp-col__art { color: #FFF; opacity: 1; transform: translateY(-3px) scale(1.06); }

.sp-col__name {
	font-family: var(--theme-headings-font-family);
	font-size: 19px; line-height: 1.15;
	font-weight: 600;
}

.sp-col__count {
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--sp-muted);
	margin-top: 6px;
	transition: color .3s ease;
}

.sp-col:hover .sp-col__count { color: rgba(255,255,255,.8); }

.sp-col::after {
	content: "";
	position: absolute; left: 18px; bottom: 0;
	width: 26px; height: 2px;
	background: var(--sp-accent);
	transform: scaleX(0); transform-origin: left;
	transition: transform .4s var(--sp-ease-out, cubic-bezier(.16,1,.3,1)), background-color .3s ease;
}

.sp-col:hover::after { transform: scaleX(1); background: var(--sp-highlight); }

@media (max-width: 1100px) { .sp-cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .sp-cols { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.sp-col { min-height: 150px; padding: 16px 14px 14px; }
	.sp-col__name { font-size: 16px; }
	.sp-col__art svg { width: 34px; height: 34px; }
}

/* =========================================================================
   3. Journal — a lead story and a stacked list
   ========================================================================= */

.sp-journal2 {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 10px;
	align-items: stretch;
}

.sp-journal2__lead {
	display: flex; flex-direction: column;
	background: var(--sp-surface);
	color: var(--sp-ink);
	overflow: hidden;
}

.sp-journal2__lead:hover { text-decoration: none; color: var(--sp-ink); }

.sp-journal2__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.sp-journal2__media img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .7s var(--sp-ease-out, cubic-bezier(.16,1,.3,1));
}
.sp-journal2__lead:hover .sp-journal2__media img { transform: scale(1.05); }

.sp-journal2__body { display: block; padding: 24px 26px 28px; }

.sp-journal2__kicker {
	display: block;
	font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--sp-accent); margin-bottom: 10px;
}

.sp-journal2__title {
	display: block;
	font-family: var(--theme-headings-font-family);
	font-size: clamp(21px, 2.2vw, 28px);
	line-height: 1.18; font-weight: 600;
}

.sp-journal2__excerpt {
	display: block; margin-top: 10px;
	color: var(--sp-muted); font-size: 15px; line-height: 1.6;
	max-width: 54ch;
}

.sp-journal2__more {
	display: inline-block; margin-top: 16px;
	font-size: 13.5px; font-weight: 700; color: var(--sp-accent);
	border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

.sp-journal2__list { display: flex; flex-direction: column; gap: 10px; }

.sp-journal2__row {
	display: flex; gap: 14px; align-items: center;
	background: var(--sp-surface);
	color: var(--sp-ink);
	padding: 12px;
	flex: 1;
	transition: background-color .3s ease;
}

.sp-journal2__row:hover { background: #EDE8E3; text-decoration: none; color: var(--sp-ink); }

.sp-journal2__thumb { flex: 0 0 84px; height: 84px; overflow: hidden; background: #E6E1DC; }
.sp-journal2__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sp-journal2__rowtitle {
	display: block;
	font-family: var(--theme-headings-font-family);
	font-size: 16px; line-height: 1.25; font-weight: 600;
}

.sp-journal2__rowdate { display: block; margin-top: 6px; font-size: 12px; color: var(--sp-muted); }

.sp-journal2__all {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 18px;
	background: var(--sp-ink); color: #FFF;
	font-size: 13.5px; font-weight: 700;
	letter-spacing: .04em;
	transition: background-color .3s ease;
}
.sp-journal2__all::after { content: "\2192"; transition: transform .3s ease; }
.sp-journal2__all:hover { background: var(--sp-accent); color: #FFF; text-decoration: none; }
.sp-journal2__all:hover::after { transform: translateX(4px); }

@media (max-width: 900px) {
	.sp-journal2 { grid-template-columns: 1fr; }
	.sp-journal2__body { padding: 20px; }
}

/* =========================================================================
   4. Contact
   ========================================================================= */

.sp-contact {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 10px;
	align-items: start;
}

.sp-contact__aside {
	background: var(--sp-ink);
	color: #FFF;
	padding: 34px 30px;
}

.sp-contact__aside h2 {
	color: #FFF; font-size: 26px; margin: 0 0 12px;
}

.sp-contact__aside p { color: rgba(255,255,255,.74); font-size: 15px; line-height: 1.65; margin: 0 0 22px; }

.sp-contact__facts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.sp-contact__facts li { display: flex; gap: 12px; align-items: flex-start; }
.sp-contact__facts svg { color: var(--sp-highlight); flex: 0 0 auto; margin-top: 1px; }
.sp-contact__facts span { display: block; font-size: 13.5px; color: rgba(255,255,255,.66); line-height: 1.5; }
.sp-contact__facts strong { display: block; color: #FFF; font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }

.sp-contact__mail { margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13.5px; }
.sp-contact__mail a { color: var(--sp-highlight); }

.sp-contact__form { background: var(--sp-surface); padding: 34px 30px; }

.sp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-field { margin: 0 0 18px; }

.sp-field label {
	display: block;
	font-size: 12.5px; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase;
	color: var(--sp-muted); margin-bottom: 7px;
}

.sp-field label span[aria-hidden] { color: var(--sp-accent); }
.sp-opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: #A29A93; }

.sp-contact input[type="text"],
.sp-contact input[type="email"],
.sp-contact select,
.sp-contact textarea {
	width: 100%;
	background: #FFF;
	border: 1px solid var(--sp-border);
	border-radius: 0;
	padding: 13px 14px;
	font-family: var(--theme-font-family);
	font-size: 15px; color: var(--sp-ink);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.sp-contact input:focus,
.sp-contact select:focus,
.sp-contact textarea:focus {
	outline: none;
	border-color: var(--sp-accent);
	box-shadow: 0 0 0 3px rgba(182,109,76,.14);
}

.sp-field.has-error input,
.sp-field.has-error textarea { border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }

.sp-contact textarea { resize: vertical; min-height: 150px; }

.sp-field__hint { font-size: 12.5px; color: var(--sp-muted); margin: 14px 0 0; }

.sp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sp-btn {
	display: inline-block;
	background: var(--sp-accent); color: #FFF !important;
	border: none; border-radius: 0;
	padding: 15px 34px;
	font-family: var(--theme-font-family);
	font-size: 15px; font-weight: 700;
	cursor: pointer;
	transition: background-color .25s ease, transform .2s var(--sp-ease, cubic-bezier(.2,.8,.2,1));
}
.sp-btn:hover { background: var(--sp-accent-hover); transform: translateY(-2px); text-decoration: none; }

.sp-note { padding: 14px 16px; font-size: 14.5px; margin: 0 0 22px; border-left: 3px solid; }
.sp-note--ok { background: #F0F6F1; border-color: #3F7D52; color: #26512F; }
.sp-note--warn { background: #FBF1EF; border-color: #C0392B; color: #8C2A20; }

@media (max-width: 900px) {
	.sp-contact { grid-template-columns: 1fr; }
	.sp-field-row { grid-template-columns: 1fr; gap: 0; }
	.sp-contact__aside, .sp-contact__form { padding: 26px 20px; }
}

/* =========================================================================
   5. Legal pages
   ========================================================================= */

.sp-legal {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
	max-width: 1080px;
	margin: 0 auto;
}

.sp-legal__aside { position: sticky; top: 100px; }

.sp-legal__asidehead {
	font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--sp-muted);
	margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--sp-border);
}

.sp-legal__toc { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: sptoc; }
.sp-legal__toc li { counter-increment: sptoc; margin-bottom: 9px; }
.sp-legal__toc a {
	display: block; font-size: 13.5px; line-height: 1.4;
	color: var(--sp-muted); padding-left: 26px; position: relative;
}
.sp-legal__toc a::before {
	content: counter(sptoc, decimal-leading-zero);
	position: absolute; left: 0; top: 0;
	font-size: 11px; color: var(--sp-accent); opacity: .7;
}
.sp-legal__toc a:hover { color: var(--sp-accent); text-decoration: none; }

.sp-legal__updated {
	font-size: 12.5px; color: var(--sp-muted); line-height: 1.6;
	margin: 0 0 18px; padding-top: 16px; border-top: 1px solid var(--sp-border);
}
.sp-legal__updated strong { color: var(--sp-ink); font-size: 14px; }

.sp-legal__help {
	display: inline-block; font-size: 13.5px; font-weight: 700;
	color: var(--sp-accent); border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

.sp-legal__body { max-width: 68ch; }

.sp-legal__body > *:first-child { margin-top: 0; }

.sp-legal__body h2 {
	position: relative;
	font-size: clamp(21px, 2.4vw, 27px);
	line-height: 1.2;
	margin: 52px 0 16px;
	padding-top: 22px;
	border-top: 1px solid var(--sp-border);
	scroll-margin-top: 110px;
}

.sp-legal__body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.sp-legal__num {
	display: block;
	font-family: var(--theme-font-family);
	font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
	color: var(--sp-accent); margin-bottom: 8px;
}

.sp-legal__body h3 { font-size: 18px; margin: 30px 0 10px; }

.sp-legal__body p,
.sp-legal__body li { font-size: 16px; line-height: 1.75; color: #33302D; }

.sp-legal__body p { margin: 0 0 18px; }
.sp-legal__body ul, .sp-legal__body ol { margin: 0 0 20px; padding-left: 22px; }
.sp-legal__body li { margin-bottom: 8px; }

.sp-legal__body a { border-bottom: 1px solid rgba(182,109,76,.35); }

.sp-legal__body strong { color: var(--sp-ink); }

.sp-legal__body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.sp-legal__body th, .sp-legal__body td { border: 1px solid var(--sp-border); padding: 10px 12px; text-align: left; }
.sp-legal__body th { background: var(--sp-surface); font-weight: 700; }

.sp-legal__foot {
	margin-top: 56px; padding: 28px 30px;
	background: var(--sp-surface);
	border-left: 3px solid var(--sp-accent);
}
.sp-legal__foot p { margin: 0 0 18px; font-size: 15px; }

@media (max-width: 900px) {
	.sp-legal { grid-template-columns: 1fr; gap: 30px; }
	.sp-legal__aside { position: static; }
	.sp-legal__toc { columns: 2; column-gap: 24px; }
}
@media (max-width: 560px) { .sp-legal__toc { columns: 1; } }

/* =========================================================================
   6. Blog archive
   Blocksy prints meta, then title, then image. Reordering with flex puts the
   photograph first, which is the only reason anyone stops on a card.
   ========================================================================= */

.blog .entries,
.archive .entries,
.search .entries {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.blog .entry-card,
.archive .entry-card,
.search .entry-card {
	display: flex;
	flex-direction: column;
	background: var(--sp-surface);
	padding: 0 0 22px;
	border: none;
	box-shadow: none;
	overflow: hidden;
	transition: transform .35s var(--sp-ease, cubic-bezier(.2,.8,.2,1)), background-color .3s ease;
}

.blog .entry-card:hover,
.archive .entry-card:hover { transform: translateY(-4px); background: #EFEAE5; }

.blog .entry-card .ct-media-container,
.archive .entry-card .ct-media-container {
	order: -2;
	margin: 0 0 18px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	display: block;
}

.blog .entry-card .ct-media-container img,
.archive .entry-card .ct-media-container img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .7s var(--sp-ease-out, cubic-bezier(.16,1,.3,1));
}

.blog .entry-card:hover .ct-media-container img,
.archive .entry-card:hover .ct-media-container img { transform: scale(1.05); }

.blog .entry-card .entry-meta,
.archive .entry-card .entry-meta {
	order: -1;
	margin: 0 22px 8px;
	font-size: 11.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.blog .entry-card .entry-meta a { color: var(--sp-accent); }

.blog .entry-card .entry-title,
.archive .entry-card .entry-title {
	margin: 0 22px 10px;
	font-size: 20px;
	line-height: 1.22;
	font-weight: 600;
}
.blog .entry-card .entry-title a { color: var(--sp-ink); }
.blog .entry-card .entry-title a:hover { color: var(--sp-accent); text-decoration: none; }

.blog .entry-card .entry-excerpt,
.archive .entry-card .entry-excerpt {
	margin: 0 22px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--sp-muted);
}
.blog .entry-card .entry-excerpt p { margin: 0; }

.blog .entry-card .entry-button,
.blog .entry-card .post-meta-read-more { margin: 14px 22px 0; }

@media (max-width: 1000px) { .blog .entries, .archive .entries, .search .entries { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px)  { .blog .entries, .archive .entries, .search .entries { grid-template-columns: 1fr; } }

/* =========================================================================
   7. Single post
   ========================================================================= */

.single-post .entry-content {
	max-width: 68ch;
	margin-left: auto; margin-right: auto;
}

.single-post .entry-content > p { font-size: 17px; line-height: 1.78; color: #33302D; }
.single-post .entry-content > p:first-of-type { font-size: 19px; line-height: 1.7; color: var(--sp-ink); }

.single-post .entry-content h2 { font-size: clamp(23px, 2.6vw, 30px); margin: 46px 0 14px; }
.single-post .entry-content h3 { font-size: 20px; margin: 32px 0 10px; }

.single-post .entry-content img { display: block; margin: 32px auto; }

.single-post .entry-content blockquote {
	margin: 34px 0; padding: 4px 0 4px 26px;
	border-left: 3px solid var(--sp-accent);
	font-family: var(--theme-headings-font-family);
	font-size: 20px; line-height: 1.5; font-style: normal; color: var(--sp-ink);
}

.single-post .entry-content ul,
.single-post .entry-content ol { font-size: 17px; line-height: 1.75; padding-left: 22px; }

/* The theme's own single-post title duplicates the band. */
body.sp-has-band.single-post .hero-section { display: none; }

/* =========================================================================
   8. Shop archive
   ========================================================================= */

body.sp-has-band .woo-listing-top {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; flex-wrap: wrap;
	background: var(--sp-surface);
	padding: 14px 18px;
	margin-bottom: 26px;
}

body.sp-has-band .woocommerce-result-count { margin: 0; font-size: 13.5px; color: var(--sp-muted); }
body.sp-has-band .woocommerce-ordering { margin: 0; }
body.sp-has-band .woocommerce-ordering select {
	background: #FFF; border: 1px solid var(--sp-border); border-radius: 0;
	padding: 9px 12px; font-family: var(--theme-font-family); font-size: 13.5px;
}

/* A quiet strip of category shortcuts above the grid on the shop page. */
.sp-shopnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.sp-shopnav a {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 15px;
	background: var(--sp-surface); color: var(--sp-ink);
	font-size: 13.5px;
	border: 1px solid transparent;
	transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.sp-shopnav a svg { color: var(--sp-accent); transition: color .25s ease; }
.sp-shopnav a:hover { background: var(--sp-ink); color: #FFF; text-decoration: none; }
.sp-shopnav a:hover svg { color: var(--sp-highlight); }
.sp-shopnav a.is-on { background: var(--sp-ink); color: #FFF; }
.sp-shopnav a.is-on svg { color: var(--sp-highlight); }
.sp-shopnav__count { color: var(--sp-muted); font-size: 12px; }
.sp-shopnav a:hover .sp-shopnav__count,
.sp-shopnav a.is-on .sp-shopnav__count { color: rgba(255,255,255,.6); }

/* =========================================================================
   9. Cart and checkout
   ========================================================================= */

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce { margin-top: 8px; }

.woocommerce-cart table.shop_table {
	border: none; border-radius: 0;
	border-collapse: collapse;
}
.woocommerce-cart table.shop_table th {
	background: var(--sp-surface);
	font-family: var(--theme-font-family);
	font-size: 11.5px; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--sp-muted);
	padding: 14px 16px; border: none;
}
.woocommerce-cart table.shop_table td {
	padding: 20px 16px;
	border: none; border-bottom: 1px solid var(--sp-border);
	vertical-align: middle;
}
.woocommerce-cart table.shop_table td.product-thumbnail img { width: 78px; height: 78px; object-fit: cover; }
.woocommerce-cart table.shop_table td.product-name a { font-family: var(--theme-headings-font-family); font-size: 16.5px; color: var(--sp-ink); }
.woocommerce-cart table.shop_table td.product-name a:hover { color: var(--sp-accent); text-decoration: none; }

.woocommerce-cart .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order {
	background: var(--sp-surface);
	padding: 26px 26px 28px;
}
.woocommerce-cart .cart_totals h2,
.woocommerce-checkout #order_review_heading { font-size: 20px; margin: 0 0 16px; }

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td { border: none; border-bottom: 1px solid var(--sp-border); padding: 12px 0; background: none; }
.woocommerce-cart .cart_totals .order-total td { font-size: 20px; font-weight: 700; }

.woocommerce .cart-collaterals { width: 100%; }

/* A short strip of reassurance where the doubt actually happens. */
.sp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 30px 0 0; }
.sp-trust__item { display: flex; gap: 12px; align-items: flex-start; background: var(--sp-surface); padding: 16px 18px; }
.sp-trust__item svg { color: var(--sp-accent); flex: 0 0 auto; }
.sp-trust__item strong { display: block; font-size: 14px; margin-bottom: 3px; }
.sp-trust__item span { display: block; font-size: 12.5px; color: var(--sp-muted); line-height: 1.5; }
@media (max-width: 760px) { .sp-trust { grid-template-columns: 1fr; } }

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 { font-size: 20px; margin: 0 0 16px; }

.woocommerce form .form-row label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sp-muted); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row .select2-container .select2-selection {
	border: 1px solid var(--sp-border); border-radius: 0; padding: 12px 14px;
	font-family: var(--theme-font-family); font-size: 15px;
}
.woocommerce form .form-row input.input-text:focus { border-color: var(--sp-accent); outline: none; box-shadow: 0 0 0 3px rgba(182,109,76,.14); }

.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error {
	border-top: none; border-left: 3px solid var(--sp-accent);
	background: var(--sp-surface); border-radius: 0;
	padding: 15px 18px 15px 20px;
}
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before { display: none; }

.woocommerce .cart-empty,
.woocommerce .return-to-shop { text-align: left; }

/* =========================================================================
   10. My account
   ========================================================================= */

.woocommerce-account .woocommerce-MyAccount-navigation {
	width: 24%;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; border-bottom: 1px solid var(--sp-border); }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block; padding: 13px 14px;
	color: var(--sp-ink); font-size: 14.5px;
	transition: background-color .25s ease, color .25s ease, padding-left .25s ease;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--sp-surface); padding-left: 18px; text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--sp-ink); color: #FFF; }

.woocommerce-account .woocommerce-MyAccount-content { width: 72%; }

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th { background: var(--sp-surface); border: none; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--sp-muted); }
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td { border: none; border-bottom: 1px solid var(--sp-border); }

/* Signed out: two panels rather than one narrow stack. */
.woocommerce-account:not(.logged-in) .woocommerce > .u-columns,
.woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.woocommerce-account .u-columns.col2-set .col-1,
.woocommerce-account .u-columns.col2-set .col-2 { width: 100%; float: none; background: var(--sp-surface); padding: 28px 26px; }
.woocommerce-account .u-columns.col2-set h2 { font-size: 21px; margin: 0 0 14px; }

@media (max-width: 860px) {
	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content { width: 100%; }
	.woocommerce-account .u-columns.col2-set { grid-template-columns: 1fr; }
}

/* =========================================================================
   11. Returns / policy call-out cards used inside page content
   ========================================================================= */

.sp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 34px; }
.sp-step { background: var(--sp-surface); padding: 24px 22px; position: relative; }
.sp-step__n {
	display: block; font-family: var(--theme-headings-font-family);
	font-size: 30px; line-height: 1; color: var(--sp-accent); opacity: .35; margin-bottom: 12px;
}
.sp-step h3 { font-size: 17px; margin: 0 0 8px; }
.sp-step p { font-size: 14px; line-height: 1.6; color: var(--sp-muted); margin: 0; }
@media (max-width: 760px) { .sp-steps { grid-template-columns: 1fr; } }

/* =========================================================================
   12. Reduced motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
	.sp-band__media img { animation: none; transform: none; }
	.sp-col::before { transform: none; opacity: 0; }
	.sp-col:hover::before { opacity: 1; }
}

/* =========================================================================
   13. Block cart and checkout
   The store runs WooCommerce's block cart and checkout, which were verified
   working end to end — so they are styled rather than replaced. These target
   the wc-block-* classes the blocks render at runtime.
   ========================================================================= */

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout { --wp--preset--color--contrast: var(--sp-ink); }

.wc-block-components-title,
.wc-block-cart__totals-title,
.wc-block-checkout__form .wc-block-components-checkout-step__title {
	font-family: var(--theme-headings-font-family) !important;
	color: var(--sp-ink) !important;
}

.wc-block-components-product-name {
	font-family: var(--theme-headings-font-family);
	font-size: 16.5px;
	color: var(--sp-ink);
}
.wc-block-components-product-name:hover { color: var(--sp-accent); text-decoration: none; }

.wc-block-cart-items__row { border-bottom: 1px solid var(--sp-border); }
.wc-block-cart-items__header {
	font-family: var(--theme-font-family);
	font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
	color: var(--sp-muted);
	border-bottom: 1px solid var(--sp-border);
}

.wc-block-cart__sidebar .wc-block-components-sidebar,
.wc-block-checkout__sidebar .wc-block-components-sidebar {
	background: var(--sp-surface);
	padding: 24px 22px;
	border-radius: 0;
}

.wc-block-components-totals-item__value { font-weight: 700; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 22px; }

.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
	border-radius: 0 !important;
	font-family: var(--theme-font-family) !important;
	font-weight: 700 !important;
	background-color: var(--sp-accent) !important;
	color: #FFF !important;
	transition: background-color .25s ease, transform .2s ease;
}
.wc-block-components-button:hover,
.wc-block-cart__submit-button:hover { background-color: var(--sp-accent-hover) !important; transform: translateY(-2px); }

.wc-block-components-button.outlined,
.wc-block-components-button:not(.wc-block-cart__submit-button).is-link {
	background: none !important; color: var(--sp-accent) !important;
}

.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-block-components-combobox-control input,
.wc-block-components-select__container {
	border-radius: 0 !important;
	border: 1px solid var(--sp-border) !important;
	font-family: var(--theme-font-family) !important;
}
.wc-block-components-text-input.is-active input:focus,
.wc-block-components-text-input input:focus {
	box-shadow: 0 0 0 3px rgba(182,109,76,.14) !important;
	border-color: var(--sp-accent) !important;
	outline: none !important;
}

.wc-block-components-checkout-step__heading-content,
.wc-block-components-checkout-step__description { color: var(--sp-muted); }

.wc-block-components-notice-banner { border-radius: 0; }

.wc-block-components-quantity-selector { border-radius: 0; border-color: var(--sp-border); }

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product,
.wc-block-cart__empty-cart__title { font-family: var(--theme-headings-font-family); }

/* The strip appended to cart and checkout content. */
.sp-page-trust { margin-top: 40px; }

/* =========================================================================
   14. Colour overrides
   Elementor's kit sets link colour at .elementor-widget-container a, which
   outranks a single class. These are scoped one level deeper so the components
   keep their own palette wherever they are placed.
   ========================================================================= */

.sp-cols .sp-col,
.sp-cols .sp-col:visited { color: var(--sp-ink); }
.sp-cols .sp-col .sp-col__name { color: var(--sp-ink); }
.sp-cols .sp-col:hover,
.sp-cols .sp-col:hover .sp-col__name { color: #FFFFFF; }
.sp-cols .sp-col:hover .sp-col__count { color: rgba(255,255,255,.82); }

.sp-journal2 .sp-journal2__lead,
.sp-journal2 .sp-journal2__row { color: var(--sp-ink); }
.sp-journal2 .sp-journal2__title,
.sp-journal2 .sp-journal2__rowtitle { color: var(--sp-ink); }
.sp-journal2 .sp-journal2__lead:hover .sp-journal2__title,
.sp-journal2 .sp-journal2__row:hover .sp-journal2__rowtitle { color: var(--sp-accent); }
.sp-journal2 .sp-journal2__excerpt { color: var(--sp-muted); }
.sp-journal2 a.sp-journal2__all { color: #FFFFFF; }
.sp-journal2 a.sp-journal2__all:hover { color: #FFFFFF; }

.sp-shopnav a,
.sp-shopnav a:visited { color: var(--sp-ink); }
.sp-shopnav a:hover,
.sp-shopnav a.is-on { color: #FFFFFF; }

.sp-band .sp-crumbs a { color: rgba(255,255,255,.62); }
.sp-band .sp-crumbs a:hover { color: #FFFFFF; }

.sp-contact .sp-contact__aside a { color: var(--sp-highlight); }

.sp-legal .sp-legal__toc a { color: var(--sp-muted); }
.sp-legal .sp-legal__toc a:hover { color: var(--sp-accent); }

/* Icons sit a little larger and a little more present than the first pass. */
.sp-col__art { opacity: .7; }
.sp-col__art svg { width: 52px; height: 52px; }
@media (max-width: 640px) { .sp-col__art svg { width: 38px; height: 38px; } }

/* =========================================================================
   15. Second pass
   ========================================================================= */

/* Selects: the theme leaves these at browser height, which sits a few pixels
   off every text input beside them. */
.sp-contact select,
.woocommerce-ordering select.orderby {
	-webkit-appearance: none;
	appearance: none;
	height: auto;
	line-height: 1.35;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%236B6560' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}
.sp-contact select { padding-top: 13px; padding-bottom: 13px; }

/* Legal pages with no headings to list drop the sidebar rail. */
.sp-legal--nonav { grid-template-columns: 200px minmax(0, 1fr); }
.sp-legal--nonav .sp-legal__body { max-width: 72ch; }

/* Returns: the three steps now sit above the legal grid, so they run wide. */
.sp-steps { max-width: 1080px; margin-left: auto; margin-right: auto; }

/* Blog: keep the excerpt out of the link colour. */
.blog .entry-card .entry-excerpt,
.blog .entry-card .entry-excerpt p,
.archive .entry-card .entry-excerpt,
.archive .entry-card .entry-excerpt p { color: var(--sp-muted); }

/* My account: the sign-in form beside a reason to use it. */
.sp-login {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 10px;
	align-items: stretch;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

.sp-login__aside { background: var(--sp-ink); color: #FFF; padding: 32px 30px; }
.sp-login__aside h2 { color: #FFF; font-size: 24px; margin: 0 0 12px; }
.sp-login__aside p { color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.65; margin: 0 0 20px; }
.sp-login__facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 13px; }
.sp-login__facts li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.45; }
.sp-login__facts svg { color: var(--sp-highlight); flex: 0 0 auto; }
.sp-login__note { font-size: 13px; color: rgba(255,255,255,.55); margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }

.sp-login__form { background: var(--sp-surface); padding: 32px 30px; }
.woocommerce-account .sp-login__form form.login {
	border: none; padding: 0; margin: 0; border-radius: 0; background: none;
}
.woocommerce-account .sp-login__form .woocommerce-form-login__submit { width: 100%; }

@media (max-width: 860px) {
	.sp-login { grid-template-columns: 1fr; }
	.sp-login__aside, .sp-login__form { padding: 24px 20px; }
}

/* Cart, empty. */
.wc-block-cart__empty-cart__title,
.wp-block-woocommerce-empty-cart-block h2 {
	font-family: var(--theme-headings-font-family) !important;
	font-size: 26px !important;
	color: var(--sp-ink);
}
.wp-block-woocommerce-empty-cart-block { text-align: center; padding: 10px 0 0; }
.wp-block-woocommerce-empty-cart-block hr,
.wp-block-woocommerce-empty-cart-block .wp-block-separator { display: none; }
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before { opacity: .35; }

/* =========================================================================
   16. Full-bleed bands inside Elementor
   The hero and the marquee are edge-to-edge bands, so the section padding
   Elementor puts around them reads as dead air — most obviously on a phone,
   where it cost about 250px before the first collection tile. The body.home
   prefix is deliberate: the brand layer's own !important rule on these
   containers is one class more specific without it.
   ========================================================================= */

body .elementor > .e-con:has(.sp-hero),
body .elementor > .e-con:has(.sp-marquee),
body.home .elementor > .e-con:has(.sp-hero),
body.home .elementor > .e-con:has(.sp-marquee) {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.home .elementor > .e-con:has(.sp-hero) .e-con-inner,
body.home .elementor > .e-con:has(.sp-marquee) .e-con-inner {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* <picture> is a wrapper, not a box — it has to fill the media layer itself. */
.sp-hero__media picture { display: block; width: 100%; height: 100%; }

@media (max-width: 700px) {
	body.home .elementor > .e-con .e-con-inner { padding-top: 44px !important; padding-bottom: 44px !important; }
	/* The portrait cover is composed for this crop, so it centres. */
	.sp-hero__media img { object-position: center center; }
}

/* =========================================================================
   17. Brand marks
   The wordmark arrived from Shopify as black art on an opaque white plate.
   The plate is keyed out, and the footer gets a white-inked copy of the
   same file so the mark reads on the ink ground.
   ========================================================================= */

.sp-footer__logo { display: inline-block; margin: 0 0 16px; max-width: 210px; }
.sp-footer__logo img { display: block; width: 100%; height: auto; }

/* Blocksy's branding element prints the logo AND the site title beneath it.
   With a wordmark logo the text is a duplicate, so it is hidden while a logo
   is present — and kept for screen readers, which still need the site name. */
.site-branding[data-logo] .site-logo-container + .site-title-container {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Header: Blocksy sizes the logo from its own setting; keep it in range and
   let it shrink with the sticky header rather than jumping. */
.site-branding .site-logo-container img,
.site-header .site-logo-container img,
header .site-logo-container img {
	max-height: 46px;
	width: auto;
	transition: max-height .3s var(--sp-ease, cubic-bezier(.2,.8,.2,1));
}

@media (max-width: 700px) {
	.site-branding .site-logo-container img,
	.site-header .site-logo-container img,
	header .site-logo-container img { max-height: 36px; }
	.sp-footer__logo { max-width: 180px; }
}
