/* ==========================================================================
   SissyCrochets — Shop & Product Cards
   Version: 0.6.0
   ========================================================================== */

body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag {
	background: #fffdfb;
}

body.woocommerce-shop .site-main,
body.tax-product_cat .site-main,
body.tax-product_tag .site-main {
	padding: 0;
}

/* Hide duplicate Blocksy/Woo archive chrome; our template renders its own. */
.sc-shop .woocommerce-notices-wrapper:empty {
	display: none;
}

.sc-shop {
	min-height: 70vh;
	background: #fffdfb;
}

.sc-shop-hero {
	padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(2.4rem, 4vw, 3.6rem);
	background:
		radial-gradient(circle at 78% 8%, rgba(201, 134, 152, 0.08), transparent 28rem),
		linear-gradient(180deg, #fffaf6 0%, #fffdfb 100%);
	border-bottom: 1px solid rgba(33, 28, 32, 0.06);
}

.sc-shop-hero__inner {
	max-width: 820px;
	text-align: center;
}

.sc-shop-hero__title {
	margin: 0.3rem 0 1rem;
	font-size: clamp(3rem, 6vw, 5.6rem);
	line-height: 0.95;
}

.sc-shop-hero__description {
	max-width: 690px;
	margin-inline: auto;
	color: var(--sc-color-muted);
	font-size: clamp(1rem, 1.4vw, 1.16rem);
	line-height: 1.75;
}

.sc-shop-hero__description p {
	margin: 0;
}

.sc-shop-categories {
	position: relative;
	z-index: 4;
	background: rgba(255, 253, 251, 0.92);
	border-bottom: 1px solid rgba(33, 28, 32, 0.08);
}

.sc-shop-categories__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
	padding-block: 1.25rem;
}

.sc-shop-category-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.7rem 1.05rem;
	border: 1px solid rgba(33, 28, 32, 0.12);
	border-radius: 999px;
	background: #fff;
	color: var(--sc-color-ink);
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.sc-shop-category-chip:hover,
.sc-shop-category-chip:focus-visible,
.sc-shop-category-chip.is-active {
	background: var(--sc-color-berry);
	border-color: var(--sc-color-berry);
	color: #fff;
}

.sc-shop-catalog {
	padding: clamp(2.8rem, 5vw, 5rem) 0 clamp(4.5rem, 7vw, 7rem);
}

.sc-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.7rem;
}

.sc-shop-toolbar__count,
.sc-shop-toolbar__count .woocommerce-result-count {
	margin: 0;
	color: var(--sc-color-muted);
	font-size: 0.9rem;
}

.sc-shop-toolbar .woocommerce-ordering {
	margin: 0;
}

.sc-shop-toolbar .woocommerce-ordering select {
	min-width: 220px;
	min-height: 46px;
	padding: 0 2.8rem 0 1rem;
	border: 1px solid rgba(33, 28, 32, 0.13);
	border-radius: 999px;
	background-color: #fff;
	color: var(--sc-color-ink);
	font-family: var(--sc-font-body);
	font-weight: 600;
	box-shadow: none;
}

/* Product cards --------------------------------------------------------- */

.sc-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.15rem, 2vw, 1.8rem);
}

.sc-product-card {
	min-width: 0;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(33, 28, 32, 0.09);
	border-radius: 1.3rem;
	background: #fffaf7;
	box-shadow: 0 12px 34px rgba(33, 28, 32, 0.045);
	transition:
		transform 220ms ease,
		box-shadow 220ms ease,
		border-color 220ms ease;
}

.sc-product-card:hover {
	transform: translateY(-4px);
	border-color: rgba(154, 77, 103, 0.18);
	box-shadow: 0 20px 44px rgba(33, 28, 32, 0.09);
}

.sc-product-card__image-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.sc-product-card__image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #fbf8f4;
}

.sc-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	object-fit: cover;
	object-position: center;
	transition: transform 420ms ease;
}

.sc-product-card:hover .sc-product-card__image img {
	transform: scale(1.025);
}

.sc-product-card__badge {
	position: absolute;
	top: 0.9rem;
	left: 0.9rem;
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
	background: var(--sc-color-berry);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.sc-product-card__body {
	padding: 1.25rem 1.3rem 1.35rem;
}

.sc-product-card__category {
	margin: 0 0 0.45rem;
	color: var(--sc-color-berry);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	line-height: 1.2;
	text-transform: uppercase;
}

.sc-product-card__title {
	margin: 0;
	font-size: clamp(1.45rem, 2.1vw, 1.85rem);
	line-height: 1.06;
}

.sc-product-card__title a {
	color: var(--sc-color-ink);
	text-decoration: none;
}

.sc-product-card__title a:hover,
.sc-product-card__title a:focus-visible {
	color: var(--sc-color-berry);
}

.sc-product-card__bottom {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.15rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(33, 28, 32, 0.08);
}

.sc-product-card__price {
	color: var(--sc-color-ink);
	font-size: 1.02rem;
	font-weight: 800;
	line-height: 1.3;
}

.sc-product-card__price del {
	margin-right: 0.35rem;
	color: rgba(33, 28, 32, 0.45);
	font-size: 0.84rem;
	font-weight: 600;
}

.sc-product-card__price ins {
	background: none;
	color: var(--sc-color-berry);
	text-decoration: none;
}

.sc-product-card__link {
	flex: 0 0 auto;
	color: var(--sc-color-berry);
	font-size: 0.86rem;
	font-weight: 800;
	text-decoration: none;
}

.sc-product-card__link span {
	display: inline-block;
	margin-left: 0.2rem;
	transition: transform 160ms ease;
}

.sc-product-card__link:hover span {
	transform: translateX(3px);
}

/* Pagination ------------------------------------------------------------ */

.sc-shop-pagination {
	margin-top: 3rem;
}

.sc-shop-pagination .woocommerce-pagination ul.page-numbers {
	display: flex;
	justify-content: center;
	gap: 0.45rem;
	border: 0;
}

.sc-shop-pagination .woocommerce-pagination ul.page-numbers li {
	border: 0;
}

.sc-shop-pagination .page-numbers a,
.sc-shop-pagination .page-numbers span {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(33, 28, 32, 0.1);
	border-radius: 50%;
	background: #fff;
	color: var(--sc-color-ink);
	text-decoration: none;
}

.sc-shop-pagination .page-numbers .current,
.sc-shop-pagination .page-numbers a:hover {
	background: var(--sc-color-berry);
	border-color: var(--sc-color-berry);
	color: #fff;
}

/* Empty state ----------------------------------------------------------- */

.sc-shop-empty {
	max-width: 720px;
	margin: 2rem auto;
	padding: clamp(2.3rem, 5vw, 4rem);
	border: 1px solid rgba(33, 28, 32, 0.08);
	border-radius: 1.5rem;
	background: #fffaf6;
	text-align: center;
}

.sc-shop-empty h2 {
	margin: 0.35rem 0 0.8rem;
}

.sc-shop-empty p:not(.sc-eyebrow) {
	color: var(--sc-color-muted);
}

.sc-shop-empty__button {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.75rem;
	padding: 0.9rem 1.25rem;
	border-radius: 999px;
	background: var(--sc-color-berry);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

.sc-shop-empty__button:hover {
	background: var(--sc-color-ink);
	color: #fff;
}

/* Woo default cleanup -------------------------------------------------- */

.sc-shop > .woocommerce-notices-wrapper,
.sc-shop-catalog > .woocommerce-notices-wrapper {
	width: min(calc(100% - 2rem), var(--sc-content-width));
	margin-inline: auto;
}

.sc-shop .products,
.sc-shop ul.products {
	margin: 0;
}

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

	.sc-shop-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.sc-shop-toolbar .woocommerce-ordering,
	.sc-shop-toolbar .woocommerce-ordering select {
		width: 100%;
	}
}

@media (max-width: 620px) {
	.sc-shop-hero {
		padding-top: 2.6rem;
	}

	.sc-shop-categories__inner {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 1.1rem;
		scrollbar-width: none;
	}

	.sc-shop-categories__inner::-webkit-scrollbar {
		display: none;
	}

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

	.sc-product-card__body {
		padding: 1.1rem 1.1rem 1.2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sc-product-card,
	.sc-product-card__image img,
	.sc-product-card__link span {
		transition: none;
	}
}


/* ==========================================================================
   v0.6.1 — screenshot polish
   ========================================================================== */

/* Keep all three cards structurally aligned even with different title lengths. */
.sc-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.sc-product-card__image-link {
	flex: 0 0 auto;
}

.sc-product-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.sc-product-card__bottom {
	margin-top: auto;
}

/* The toolbar should sit cleanly above the cards, with no duplicate Woo row. */
.sc-shop-toolbar {
	margin-bottom: 1.35rem;
	padding-bottom: 0.15rem;
}

.sc-shop-toolbar__count p {
	margin: 0;
	color: var(--sc-color-muted);
	font-size: 0.9rem;
	font-weight: 600;
}

/* Give the catalog a touch more presence on very wide screens. */
@media (min-width: 1280px) {
	.sc-shop-catalog > .sc-container {
		--sc-content-width: 1320px;
	}
}


/* ==========================================================================
   v0.6.2 — simplified boutique catalog toolbar
   ========================================================================== */

/* Sorting is intentionally removed while the catalog is still compact. */
.sc-shop-toolbar--simple {
	display: flex;
	justify-content: center;
	margin: 0 0 1.55rem;
	padding: 0;
}

.sc-shop-toolbar--simple .sc-shop-toolbar__count {
	width: 100%;
	text-align: center;
}

.sc-shop-toolbar--simple .sc-shop-toolbar__count p {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	background: rgba(154, 77, 103, 0.06);
	color: var(--sc-color-muted);
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1;
}

.sc-shop-catalog {
	padding-top: clamp(2.25rem, 4vw, 4rem);
}

@media (max-width: 620px) {
	.sc-shop-toolbar--simple {
		margin-bottom: 1.2rem;
	}
}


/* ==========================================================================
   v0.6.3 — Shop landing page = category cards
   ========================================================================== */

.sc-shop--landing .sc-shop-hero {
	padding-bottom: clamp(2.3rem, 4vw, 3.4rem);
}

.sc-category-showcase {
	padding: clamp(2.8rem, 5vw, 5.2rem) 0 clamp(5rem, 8vw, 7.5rem);
	background: #fffdfb;
}

.sc-category-showcase__heading {
	max-width: 720px;
	margin: 0 auto clamp(2rem, 4vw, 3.3rem);
	text-align: center;
}

.sc-category-showcase__heading h2 {
	margin: 0.35rem 0 0.8rem;
	font-size: clamp(2.1rem, 4vw, 3.5rem);
	line-height: 1;
}

.sc-category-showcase__heading > p:not(.sc-eyebrow) {
	max-width: 620px;
	margin: 0 auto;
	color: var(--sc-color-muted);
	line-height: 1.7;
}

.sc-category-card-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.6rem);
}

.sc-category-card {
	grid-column: span 2;
	min-width: 0;
	overflow: hidden;
	margin: 0;
	border: 1px solid rgba(33, 28, 32, 0.09);
	border-radius: 1.35rem;
	background: #fffaf7;
	box-shadow: 0 12px 34px rgba(33, 28, 32, 0.045);
	transition:
		transform 220ms ease,
		box-shadow 220ms ease,
		border-color 220ms ease;
}

.sc-category-card:nth-child(4) {
	grid-column: 2 / span 2;
}

.sc-category-card:nth-child(5) {
	grid-column: 4 / span 2;
}

.sc-category-card:hover {
	transform: translateY(-5px);
	border-color: rgba(154, 77, 103, 0.18);
	box-shadow: 0 22px 46px rgba(33, 28, 32, 0.09);
}

.sc-category-card__link {
	display: flex;
	height: 100%;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.sc-category-card__image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #fbf8f4;
}

.sc-category-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 420ms ease;
}

.sc-category-card:hover .sc-category-card__image img {
	transform: scale(1.035);
}

.sc-category-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem 1.3rem 1.35rem;
}

.sc-category-card__topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.sc-category-card__topline h2 {
	margin: 0;
	color: var(--sc-color-ink);
	font-size: clamp(1.55rem, 2.3vw, 2rem);
	line-height: 1.05;
}

.sc-category-card__arrow {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(154, 77, 103, 0.2);
	border-radius: 50%;
	color: var(--sc-color-berry);
	font-size: 1.15rem;
	transition:
		transform 180ms ease,
		background-color 180ms ease,
		color 180ms ease;
}

.sc-category-card:hover .sc-category-card__arrow {
	transform: translateX(3px);
	background: var(--sc-color-berry);
	color: #fff;
}

.sc-category-card__description {
	margin: 0.85rem 0 0;
	color: var(--sc-color-muted);
	font-size: 0.92rem;
	line-height: 1.65;
}

.sc-category-card__meta {
	margin: auto 0 0;
	padding-top: 1.15rem;
	color: var(--sc-color-berry);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* The chip navigation is useful inside a category, but redundant on Shop. */
.sc-shop--landing .sc-shop-categories,
.sc-shop--landing .sc-shop-catalog {
	display: none;
}

@media (max-width: 960px) {
	.sc-category-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sc-category-card,
	.sc-category-card:nth-child(4),
	.sc-category-card:nth-child(5) {
		grid-column: auto;
	}
}

@media (max-width: 620px) {
	.sc-category-showcase {
		padding-top: 2.2rem;
	}

	.sc-category-card-grid {
		grid-template-columns: 1fr;
	}

	.sc-category-card__image {
		aspect-ratio: 5 / 4;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sc-category-card,
	.sc-category-card__image img,
	.sc-category-card__arrow {
		transition: none;
	}
}


/* ==========================================================================
   v0.6.4 — compact category-first shop landing
   ========================================================================== */

/* The main shop no longer needs a separate hero; one compact intro is enough. */
.sc-shop--landing .sc-category-showcase {
	padding: clamp(2.2rem, 4vw, 3.6rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.sc-shop--landing .sc-category-showcase__heading {
	max-width: 680px;
	margin-bottom: clamp(1.5rem, 2.5vw, 2.2rem);
}

.sc-shop--landing .sc-category-showcase__heading h1 {
	margin: 0.3rem 0 0.6rem;
	font-size: clamp(2.8rem, 4.8vw, 4.5rem);
	line-height: 0.95;
}

.sc-shop--landing .sc-category-showcase__heading > p:not(.sc-eyebrow) {
	font-size: 0.98rem;
}

/* Five categories should be visible at once on large desktop screens. */
@media (min-width: 1280px) {
	.sc-shop--landing .sc-category-card-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 1rem;
	}

	.sc-shop--landing .sc-category-card,
	.sc-shop--landing .sc-category-card:nth-child(4),
	.sc-shop--landing .sc-category-card:nth-child(5) {
		grid-column: auto;
	}

	.sc-shop--landing .sc-category-card__image {
		aspect-ratio: 1 / 1;
	}

	.sc-shop--landing .sc-category-card__body {
		padding: 1rem 1rem 1.05rem;
	}

	.sc-shop--landing .sc-category-card__topline h2 {
		font-size: clamp(1.25rem, 1.6vw, 1.55rem);
	}

	.sc-shop--landing .sc-category-card__description {
		display: -webkit-box;
		overflow: hidden;
		margin-top: 0.65rem;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		font-size: 0.82rem;
		line-height: 1.45;
	}

	.sc-shop--landing .sc-category-card__meta {
		padding-top: 0.75rem;
		font-size: 0.68rem;
	}

	.sc-shop--landing .sc-category-card__arrow {
		width: 32px;
		height: 32px;
		font-size: 1rem;
	}
}

/* Medium desktop: balanced 3 + 2 layout. */
@media (min-width: 961px) and (max-width: 1279px) {
	.sc-shop--landing .sc-category-card-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.sc-shop--landing .sc-category-card {
		grid-column: span 2;
	}

	.sc-shop--landing .sc-category-card:nth-child(4) {
		grid-column: 2 / span 2;
	}

	.sc-shop--landing .sc-category-card:nth-child(5) {
		grid-column: 4 / span 2;
	}
}


/* ============================================================================
   v0.6.7 — integrated flat brand-story slider below Shop categories
   ============================================================================ */

.sc-brand-slider {
	padding: 0.4rem 0 clamp(1.6rem, 3vw, 2.25rem);
	background: transparent;
}

.sc-brand-slider__shell {
	position: relative;
	max-width: 1120px;
	min-height: 142px;
	margin: 0 auto;
	padding: 1rem 0 0.65rem;
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.sc-brand-slider__ornament {
	display: none;
}

.sc-brand-slider__viewport {
	position: relative;
	min-height: 78px;
}

.sc-brand-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	max-width: 860px;
	margin: auto;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	pointer-events: none;
	transition:
		opacity 360ms ease,
		transform 360ms ease,
		visibility 360ms ease;
}

.sc-brand-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.sc-brand-slide__kicker {
	margin: 0 0 0.28rem;
	color: rgba(154, 77, 103, 0.7);
	font-size: 0.64rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.sc-brand-slide h2 {
	margin: 0;
	color: var(--sc-color-ink);
	font-size: clamp(1.45rem, 2.5vw, 2rem);
	line-height: 1.14;
	max-width: 780px;
}

.sc-brand-slide > p:not(.sc-brand-slide__kicker) {
	max-width: 780px;
	margin: 0.45rem auto 0;
	color: rgba(89, 92, 107, 0.9);
	font-size: 0.9rem;
	line-height: 1.52;
}

.sc-brand-slider__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.75rem;
	padding-top: 0.7rem;
	border-top: 1px solid rgba(33, 28, 32, 0.06);
}

.sc-brand-slider__dots {
	display: flex;
	align-items: center;
	gap: 0.42rem;
}

.sc-brand-slider__dot {
	width: 7px;
	height: 7px;
	min-width: 7px;
	min-height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(154, 77, 103, 0.18);
	box-shadow: none;
	cursor: pointer;
	transition:
		width 180ms ease,
		border-radius 180ms ease,
		background-color 180ms ease;
}

.sc-brand-slider__dot.is-active {
	width: 18px;
	border-radius: 999px;
	background: rgba(154, 77, 103, 0.68);
}

.sc-brand-slider__dot:focus-visible {
	outline: 2px solid rgba(154, 77, 103, 0.5);
	outline-offset: 3px;
}

.sc-brand-slider__about {
	color: rgba(154, 77, 103, 0.88);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
}

.sc-brand-slider__about span {
	display: inline-block;
	margin-left: 0.22rem;
	transition: transform 180ms ease;
}

.sc-brand-slider__about:hover span {
	transform: translateX(3px);
}

@media (max-width: 960px) {
	.sc-brand-slider__shell {
		max-width: 100%;
	}
}

@media (max-width: 620px) {
	.sc-brand-slider {
		padding-bottom: 1.9rem;
	}

	.sc-brand-slider__shell {
		min-height: 210px;
		padding: 0.9rem 0 0.75rem;
	}

	.sc-brand-slider__viewport {
		min-height: 118px;
	}

	.sc-brand-slide h2 {
		font-size: 1.35rem;
	}

	.sc-brand-slide > p:not(.sc-brand-slide__kicker) {
		font-size: 0.88rem;
	}

	.sc-brand-slider__footer {
		align-items: center;
		flex-direction: column;
		gap: 0.7rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sc-brand-slide,
	.sc-brand-slider__dot,
	.sc-brand-slider__about span {
		transition: none !important;
	}
}


/* ==========================================================================
   v0.6.8 — Shop heading cleanup
   ========================================================================== */

.sc-shop--landing .sc-category-showcase__heading h1 {
	margin-top: 0;
}
