:root {
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --blue-50: #eff6ff;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --red-500: #ef4444;
  --green-500: #10b981;
  --yellow-500: #f59e0b;
  --text-color: var(--gray-800);
  --bg-color: #fff;
  --primary: var(--blue-500);
  --border-radius: 6px;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}


/* -------------------------------------------------------------------------------- */
/*	X. Front Page
/* -------------------------------------------------------------------------------- */


.front-page-hero-slider-wrapper .hero-slider .slide,
.front-page-hero-slider-wrapper .hero-slider .slide > .bg-image {
	min-height: 600px;
}

.front-page-hero-slider-wrapper {
	--front-hero-curve-depth: 88px;
	position: relative;
	z-index: 1;
	overflow: hidden;
}

.front-page-hero-slider-wrapper::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 120' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 0C180 92 820 92 1000 0V120H0Z'/%3E%3C/svg%3E");
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	content: "";
	height: var( --front-hero-curve-depth );
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	bottom: -1px;
	z-index: 2;
}

.front-page-hero-slider-wrapper .hero-slider .flex-control-nav {
	bottom: calc( var( --front-hero-curve-depth ) + 2px );
	left: 50%;
	transform: translateX( -50% );
}

.front-page-hero-slider-wrapper .hero-slider .slide .section-inner {
	display: flex;
	align-items: center;
	min-height: 500px;
	padding-bottom: 48px;
	padding-top: 48px;
}

.front-page-content {
	padding: 100px 0;
}

.front-page-section + .front-page-section {
	margin-top: 100px;
}

.front-page-section__header {
	margin-bottom: 45px;
}

.front-page-section__header h2,
.front-promo-banner h2 {
	font-size: 42px;
	letter-spacing: -0.03em;
}

.front-page-empty-state {
	color: #555;
	font-family: Newsreader, Georgia, serif;
	font-size: 24px;
	line-height: 1.4;
	text-align: center;
}

.front-category-grid,
.front-blog-grid {
	display: grid;
	gap: 24px;
}

.front-category-grid {
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	align-items: start;
}

/* Front Category Carousel (front page) ---------------------------------- */

.front-category-slider {
	position: relative;
}

.front-category-slider__viewport {
	-webkit-overflow-scrolling: touch;
	margin: -14px 0;
	overscroll-behavior-x: contain;
	overflow-x: auto;
	padding: 14px 2px;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.front-category-slider__viewport::-webkit-scrollbar {
	display: none;
}

.front-category-slider__track {
	align-items: stretch;
	display: flex;
	gap: 24px;
}

/* Desktop: 4 full cards plus a peek of the next, so the carousel always
   overflows and the arrows stay active. */
.front-category-slider .front-category-card {
	flex: 0 0 calc( ( 100% - 112px ) / 4 );
	scroll-snap-align: start;
}

.front-category-slider__nav {
	align-items: center;
	background: #fff;
	border: 1px solid #ededed;
	border-radius: 50%;
	box-shadow: 0 10px 24px rgba( 17, 17, 17, 0.14 );
	color: #111;
	cursor: pointer;
	display: flex;
	height: 46px;
	justify-content: center;
	min-width: 0;
	padding: 0;
	position: absolute;
		top: 50%;
	transform: translateY( -50% );
	transition: background-color .15s ease, color .15s ease, opacity .15s ease;
	width: 46px;
	z-index: 2;
}

.front-category-slider__nav--prev { left: -23px; }
.front-category-slider__nav--next { right: -23px; }

/* Everything fits — nothing to scroll, so drop the dead arrows. */
.front-category-slider.is-inactive .front-category-slider__nav {
	display: none;
}

.front-category-slider__nav:hover,
.front-category-slider__nav:focus {
	background: #111;
	border-color: #111;
	color: #fff;
}

.front-category-slider__nav svg {
	display: block;
}

.front-category-slider__nav[disabled] {
	cursor: default;
	opacity: 0.35;
	pointer-events: none;
}

@media ( max-width: 1000px ) {

	.front-category-slider .front-category-card {
		flex-basis: calc( ( 100% - 88px ) / 3 );
	}
}

@media ( max-width: 800px ) {

	/* Touch swipe replaces the arrow buttons on small screens. */
	.front-category-slider__nav {
		display: none;
	}
}

@media ( max-width: 600px ) {

	.front-category-slider__track {
		gap: 16px;
	}

	/* One card plus a peek of the next one. */
	.front-category-slider .front-category-card {
		flex-basis: 70%;
	}
}

.front-category-cta {
	margin-top: 30px;
}

.front-category-cta__link {
	align-items: center;
	background: linear-gradient( 180deg, #ffffff 0%, #f7f7f7 100% );
	border: 1px solid rgba( 17, 17, 17, 0.1 );
	border-radius: 999px;
	box-shadow: 0 18px 34px rgba( 17, 17, 17, 0.08 );
	color: #111;
	display: inline-flex;
	font-size: 16px;
	font-weight: 600;
	gap: 12px;
	padding: 12px 22px 12px 12px;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.front-category-cta__link:hover {
	border-color: rgba( 17, 17, 17, 0.18 );
	box-shadow: 0 22px 42px rgba( 17, 17, 17, 0.12 );
	color: #111;
	text-decoration: none;
	transform: translateY( -2px );
}

.front-category-cta__icon {
	align-items: center;
	background: #111;
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 18px;
	height: 32px;
	justify-content: center;
	line-height: 1;
	width: 32px;
	flex-shrink: 0;
}

.front-category-cta__text {
	letter-spacing: -0.01em;
	padding-right: 4px;
}

.front-category-card {
	background: #fff;
	border: 1px solid #ededed;
	border-radius: 10px;
	box-shadow: 0 14px 36px rgba( 17, 17, 17, 0.08 );
	display: block;
	overflow: hidden;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.front-category-card:hover {
	box-shadow: 0 18px 42px rgba( 17, 17, 17, 0.12 );
	text-decoration: none;
	transform: translateY( -3px );
}

.front-category-card__image {
	aspect-ratio: 4 / 3;
	background: #fff center;
	background-size: cover;
	display: block;
	width: 100%;
}

.front-category-card__content {
	display: block;
	padding: 16px 16px 18px;
}

.front-category-card__title {
	display: block;
	font-size: clamp( 18px, 1.4vw, 21px );
	line-height: 1.15;
	margin-bottom: 6px;
}

.front-category-card__count {
	color: #767676;
	display: block;
	font-family: Archivo, 'Helvetica Neue', Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.4;
}

.front-products .products {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	margin: 0;
	width: 100%;
}

.front-products .products li.product {
	margin: 0;
	width: 100%;
}

.front-blog-grid {
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
}

.blog-index-grid.front-blog-grid {
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
}

.blog-index-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	width: 100%;
}

.front-blog-card {
	background: #f7f3ee;
	border-radius: 24px;
	overflow: hidden;
}

.front-blog-card__image {
	aspect-ratio: 4 / 3;
	background: linear-gradient( 135deg, rgba( 0, 0, 0, 0.06 ), rgba( 0, 0, 0, 0.18 ) ) center;
	background-size: cover;
	display: block;
	width: 100%;
}

.front-blog-card__content {
	padding: 28px;
}

.front-blog-card__meta {
	color: #767676;
	font-family: Archivo, 'Helvetica Neue', Helvetica, sans-serif;
	font-size: 14px;
	margin-bottom: 12px;
}

.front-blog-card h3 {
	font-size: 30px;
	line-height: 1.1;
	margin-bottom: 18px;
}

.front-blog-card__excerpt,
.front-blog-card__excerpt p {
	color: #333;
	font-size: 18px;
	line-height: 1.6;
}

.front-blog-card__excerpt p + p {
	margin-top: 1em;
}

.front-promo-banner {
	background-image: linear-gradient( 135deg, #111 0%, #2b2b2b 100% );
	border-radius: 32px;
	display: grid;
	gap: 0;
	grid-template-columns: minmax( 0, 1.2fr ) minmax( 280px, .8fr );
	overflow: hidden;
}

.front-promo-banner__content {
	padding: 60px;
}

.front-promo-banner__content .subheading {
	color: rgba( 255, 255, 255, 0.72 );
}

.front-promo-banner__content .sans-excerpt {
	margin-top: 18px;
	max-width: 620px;
}

.front-promo-banner__content .button-wrapper {
	margin-top: 30px;
}

.front-promo-banner__media {
	background: linear-gradient( 135deg, rgba( 255, 255, 255, 0.12 ), rgba( 255, 255, 255, 0.02 ) ) center;
	background-size: cover;
	min-height: 320px;
	width: 100%;
}

.front-brand-slider__viewport {
	background: #fff;
	overflow: hidden;
	padding: 24px 0;
	position: relative;
}

.front-brand-slider__track {
	align-items: center;
	display: flex;
	gap: 18px;
	width: max-content;
}

.front-brand-slider__track.is-animated {
	animation: front-brand-scroll 24s linear infinite;
}

.front-brand-slider__item {
	flex: 0 0 auto;
}

.front-brand-slider__link {
	align-items: center;
	background: #fff;
	border: 1px solid #efefef;
	border-radius: 18px;
	display: flex;
	height: 96px;
	justify-content: center;
	padding: 18px 28px;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	width: 180px;
}

.front-brand-slider__link:hover {
	border-color: #dddddd;
	box-shadow: 0 10px 24px rgba( 17, 17, 17, 0.08 );
	text-decoration: none;
	transform: translateY( -2px );
}

.front-brand-slider__link.is-static:hover {
	box-shadow: none;
	transform: none;
}

.front-brand-slider__link img {
	display: block;
	max-height: 54px;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

@keyframes front-brand-scroll {
	0% {
		transform: translateX( 0 );
	}

	100% {
		transform: translateX( calc( -50% - 9px ) );
	}
}

