/* CSB Print Shop – custom homepage */

.csb-home {
	--csb-home-primary: var(--csb-primary, #dd2f6e);
	--csb-home-text: var(--csb-text, #1a1a1a);
	--csb-home-muted: var(--csb-muted, #666);
	--csb-home-radius: 10px;
}

.csb-home-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.csb-home-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(
		135deg,
		var(--csb-hero-grad-1, #1a1a2e) 0%,
		var(--csb-hero-grad-2, #16213e) 50%,
		var(--csb-hero-grad-3, #0f3460) 100%
	);
	color: #fff;
	padding: 4rem 0 5rem;
	text-align: center;
}

.csb-home-hero-mosaic {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.csb-home-hero-track {
	display: flex;
	height: 100%;
	width: max-content;
	animation: csb-hero-drift 240s linear infinite;
	will-change: transform;
}

.csb-home-hero-set {
	display: flex;
	height: 100%;
	gap: 0.55rem;
	padding-right: 0.55rem;
}

.csb-home-hero-tile {
	flex: none;
	height: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
}

.csb-home-hero-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.csb-home-hero-veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(ellipse at center, rgba(12, 18, 40, 0.42) 0%, rgba(12, 18, 40, 0.12) 58%, transparent 78%),
		linear-gradient(
			135deg,
			color-mix(in srgb, var(--csb-hero-grad-1, #1a1a2e) 74%, transparent) 0%,
			color-mix(in srgb, var(--csb-hero-grad-2, #16213e) 68%, transparent) 48%,
			color-mix(in srgb, var(--csb-hero-grad-3, #0f3460) 76%, transparent) 100%
		);
}

.csb-home-hero .csb-home-container {
	position: relative;
	z-index: 2;
}

@keyframes csb-hero-drift {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 992px) {
	.csb-home-hero-track {
		animation-duration: 150s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.csb-home-hero-track {
		animation: none;
	}
}

.csb-home-hero-badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 1.15rem;
	padding: 0.55rem 1rem 0.65rem;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
	border: 1px solid rgba(255, 215, 160, 0.45);
	box-shadow: 0 0 0 1px rgba(221, 47, 110, 0.18), 0 8px 24px rgba(0, 0, 0, 0.18);
}

.csb-home-hero-badge-main {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ffe7c2;
}

.csb-home-hero-badge-icon {
	flex-shrink: 0;
}

.csb-home-hero-badge-meta {
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.82);
}

.csb-home-hero-title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.2;
}

.csb-home-hero-subtitle {
	margin: 0 auto 2rem;
	max-width: 560px;
	font-size: 1.0625rem;
	opacity: 0.9;
	line-height: 1.6;
}

.csb-home-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.csb-home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s, opacity 0.15s;
}

.csb-home-btn:hover {
	transform: translateY(-1px);
	opacity: 0.95;
}

.csb-home-btn-primary {
	background: var(--csb-home-primary);
	color: #fff;
}

.csb-home-btn-secondary {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.csb-home-section {
	padding: 3rem 0;
}

.csb-home-section:nth-child(even) {
	background: var(--csb-home-bg);
}

.csb-home-section-title {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--csb-home-text);
}

.csb-home-section-desc {
	margin: 0 0 1.5rem;
	color: var(--csb-home-muted);
	font-size: 1rem;
}

.csb-home-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.csb-home-link-more {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--csb-home-primary);
	text-decoration: none;
}

.csb-home-availability {
	padding: 2rem 0;
	text-align: center;
}

.csb-home-availability-inner {
	display: flex;
	justify-content: center;
}

.csb-home-regions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 0.75rem;
}

.csb-home-region-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.25rem;
	padding: 1rem 1.125rem;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: var(--csb-home-radius);
	text-decoration: none;
	color: var(--csb-home-text);
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.csb-home-region-card:hover {
	border-color: var(--csb-home-primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.csb-home-region-media {
	position: absolute;
	inset: 0;
}

.csb-home-region-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	transform: scale(1.02);
	transition: opacity 0.75s ease, transform 0.35s ease;
}

.csb-home-region-media img.is-active {
	opacity: 1;
}

.csb-home-region-card.has-image:hover .csb-home-region-media img.is-active {
	transform: scale(1.07);
}

@media (prefers-reduced-motion: reduce) {
	.csb-home-region-media img {
		transition: none;
	}
}

.csb-home-region-card.has-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 25%, rgba(0, 0, 0, 0.62) 100%);
	pointer-events: none;
}

.csb-home-region-copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.csb-home-region-card.has-image {
	color: #fff;
	border-color: transparent;
}

.csb-home-region-card.has-image .csb-home-region-count {
	color: rgba(255, 255, 255, 0.86);
}

.csb-home-region-name {
	font-weight: 700;
	font-size: 1rem;
}

.csb-home-region-card--large .csb-home-region-name {
	font-size: 1.5rem;
}

.csb-home-region-count {
	font-size: 0.8125rem;
	color: var(--csb-home-muted);
}

.csb-home-map-cta {
	margin-top: 1.25rem;
	text-align: center;
}

.csb-home-map-cta .csb-home-map-link {
	display: inline-block;
	padding: 0.625rem 1.25rem;
	border: 1px solid var(--csb-home-primary, #dd2f6e);
	border-radius: var(--csb-home-radius, 8px);
	color: var(--csb-home-primary, #dd2f6e);
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.csb-home-map-cta .csb-home-map-link:hover {
	background: var(--csb-home-primary, #dd2f6e);
	color: #fff;
}

@media (max-width: 640px) {
	.csb-home-products-bento {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.csb-home-products-bento .csb-bento-item,
	.csb-home-products-bento .csb-bento-item:nth-child(n) {
		grid-column: span 1 !important;
		grid-row: span 1 !important;
	}
}

.csb-home-products-bento .csb-bento-item-link {
	display: flex;
	flex-direction: column;
	height: auto;
}

.csb-home-products-bento .csb-bento-item {
	display: flex;
	flex-direction: column;
}

.csb-home-products-bento .csb-bento-item-media {
	aspect-ratio: var(--csb-featured-ratio, 3 / 4);
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
	flex: none;
	overflow: hidden;
}

.csb-home-products-bento .csb-bento-item-caption {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.7rem 0.8rem 0.85rem;
	margin-top: auto;
}

.csb-home-products-bento .csb-bento-item-title {
	margin: 0;
	min-height: 2.6em;
	color: var(--csb-text, #111);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.csb-home-products-bento .csb-bento-item-meta {
	margin: 0;
	color: var(--csb-primary, #dd2f6e);
	font-size: 0.8125rem;
	font-weight: 700;
}

.csb-home-products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.csb-home-product-card {
	text-decoration: none;
	color: inherit;
}

.csb-home-product-image {
	position: relative;
	aspect-ratio: var(--csb-featured-ratio, 3 / 4);
	overflow: hidden;
	border-radius: var(--csb-home-radius);
	background: #eee;
}

.csb-home-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.csb-home-product-overlay {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	padding: 2.5rem 0.75rem 0.75rem;
	text-align: right;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
	pointer-events: none;
}

.csb-home-product-title {
	margin: 0 0 0.2rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}

.csb-home-product-price {
	margin: 0;
	font-size: 0.875rem;
	color: #fff;
	font-weight: 600;
}

.csb-home-product-price .amount,
.csb-home-product-price ins,
.csb-home-product-price del {
	color: inherit;
}

.csb-home-product-price del {
	opacity: 0.75;
}

.csb-home-deals {
	padding: 1.25rem 0;
}

.csb-home-deals-inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1.5rem;
	width: 100%;
	background: linear-gradient(90deg, #fdf2f8, #fff);
	padding: 0.9rem 1.15rem;
	border-radius: var(--csb-home-radius);
	border: 1px solid #fce7f3;
}

.csb-home-deals-text {
	display: flex;
	align-items: center;
	gap: 1rem 1.25rem;
	flex-wrap: wrap;
	min-width: 0;
}

.csb-home-deals-text .csb-home-section-title,
.csb-home-deals-text .csb-home-section-desc {
	margin: 0;
}

.csb-home-deals-text .csb-home-section-title {
	font-size: 1.2rem;
}

.csb-home-deals-text .csb-home-section-desc {
	font-size: 0.9375rem;
}

.csb-home-deals-widget {
	margin-left: auto;
	flex-shrink: 0;
}

.csb-home-deals-widget .csb-deals-header-widget,
.csb-home-deals-widget .csb-deals-header-link {
	gap: 0.55rem;
}

.csb-home-deals-widget .csb-deals-header-text {
	flex-direction: row;
	align-items: center;
	gap: 0.55rem 0.75rem;
}

.csb-home-deals-widget .csb-deals-header-ends,
.csb-home-deals-widget .csb-deals-timer-digits,
.csb-home-deals-widget .csb-deals-header-title {
	font-size: 0.9375rem;
	line-height: 1.2;
	white-space: nowrap;
}

.csb-home-steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.csb-home-step {
	text-align: center;
	padding: 1.5rem 1rem;
	background: #fff;
	border-radius: var(--csb-home-radius);
	border: 1px solid #eee;
}

.csb-home-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--csb-home-primary);
	color: #fff;
	font-weight: 700;
	font-size: 1.125rem;
	margin-bottom: 0.75rem;
}

.csb-home-step-title {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
}

.csb-home-step-desc {
	margin: 0;
	font-size: 0.875rem;
	color: var(--csb-home-muted);
	line-height: 1.5;
}

.csb-home-store .csb-home-section-title {
	margin-bottom: 1.25rem;
}

.csb-home-store-places {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.csb-home-store-place {
	display: flex;
	flex-direction: column;
	min-width: 0;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #eee;
	border-radius: var(--csb-home-radius);
	overflow: hidden;
}

.csb-home-store-place-media {
	display: block;
	aspect-ratio: 1 / 1;
	background:
		linear-gradient(160deg, #fde7f0 0%, #fff 55%, #f7f7f8 100%);
}

.csb-home-store-place-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.csb-home-store-place-caption {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.95rem 1.1rem 1.1rem;
}

.csb-home-store-place-caption strong {
	font-size: 1.125rem;
	letter-spacing: -0.02em;
}

.csb-home-store-place-caption span {
	color: var(--csb-home-muted);
	font-size: 0.9375rem;
}

.csb-home-store-place-directions {
	margin-top: 0.35rem;
	color: var(--csb-primary) !important;
	font-weight: 600;
}

.csb-home-store-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.csb-home-store-block {
	background: #fff;
	padding: 1.75rem;
	border-radius: var(--csb-home-radius);
	border: 1px solid #eee;
}

.csb-home-store-name {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
}

.csb-home-store-address,
.csb-home-store-hours,
.csb-home-store-pickup {
	margin: 0.35rem 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--csb-home-muted);
}

.csb-home-store-list {
	margin: 0.75rem 0;
	padding-left: 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.7;
}

.csb-home-store-options h3 {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
}

@media (max-width: 768px) {
	.csb-home-steps-grid {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.csb-home-deals-inner {
		align-items: center;
		text-align: center;
	}

	.csb-home-deals-text {
		flex-direction: column;
		align-items: center;
		width: 100%;
	}

	.csb-home-deals-widget {
		display: flex;
		justify-content: center;
		margin-left: 0;
		width: 100%;
	}

	.csb-home-deals-widget .csb-deals-header-widget,
	.csb-home-deals-widget .csb-deals-header-link,
	.csb-home-deals-widget .csb-deals-header-text {
		justify-content: center;
	}
}
