.sw-product-categories,
.sw-product-categories * {
	box-sizing: border-box;
}

.elementor-widget-seewell_product_categories {
	margin-block-end: 0;
}

/* Elementor containers include a 10px structural padding by default. When a
 * container is used only to hold this full-width section, let the widget's own
 * responsive padding control be the single source of spacing. */
.e-con:has(> .elementor-widget-seewell_product_categories) {
	padding: 0 !important;
}

.sw-product-categories {
	padding: 80px 24px;
	background: #f7f6f2;
	color: #333;
	font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sw-product-categories__container {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
}

.sw-product-categories__header {
	max-width: 760px;
	margin: 0 auto 48px;
	text-align: center;
}

.sw-product-categories__eyebrow {
	margin: 0 0 18px;
	color: #c39160;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

.sw-product-categories__heading {
	margin: 0;
	color: #387e80;
	font-size: clamp(36px, 4vw, 48px);
	font-weight: 750;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.sw-product-categories__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.sw-product-card {
	display: flex;
	overflow: hidden;
	flex-direction: column;
	min-width: 0;
	border: 1px solid #dedbd3;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(38, 61, 57, 0.06);
	transition: box-shadow 0.5s ease-out, transform 0.5s ease-out;
}

.sw-product-card:hover,
.sw-product-card:focus-within {
	box-shadow: 0 16px 36px rgba(38, 61, 57, 0.13);
	transform: translateY(-5px);
}

.sw-product-card__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #e9e7e2;
}

.sw-product-card__image,
.sw-product-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.sw-product-card__image {
	object-fit: cover;
	transition: transform 0.7s ease-out;
}

.sw-product-card:hover .sw-product-card__image,
.sw-product-card:focus-within .sw-product-card__image {
	transform: scale(1.05);
}

.sw-product-card__placeholder {
	background: linear-gradient(135deg, #dce8e5, #f5f0e0);
}

.sw-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.sw-product-card__title {
	margin: 0 0 10px;
	color: #272727;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.sw-product-card__description {
	flex: 1;
	margin: 0 0 18px;
	color: #666;
	font-size: 15px;
	line-height: 1.65;
}

.sw-product-card__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	min-height: 36px;
	color: #387e80;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.sw-product-card__link svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
	transition: transform 0.3s ease-out;
}

.sw-product-card__link:hover svg,
.sw-product-card__link:focus-visible svg {
	transform: translateX(5px);
}

.sw-product-card__link:focus-visible {
	border-radius: 3px;
	outline: 2px solid #c39160;
	outline-offset: 4px;
}

@media (max-width: 1024px) {
	.sw-product-categories__eyebrow {
		font-size: 12px;
		line-height: 1.45;
		letter-spacing: 0.22em;
	}

	.sw-product-categories__heading {
		font-size: clamp(34px, 4.8vw, 42px);
		line-height: 1.12;
	}

	.sw-product-categories__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 20px;
	}

	.sw-product-card {
		grid-column: span 2;
	}

	.sw-product-card:last-child:nth-child(odd) {
		grid-column: 2 / span 2;
	}

	.sw-product-card__body {
		padding: 20px;
	}

	.sw-product-card__title {
		font-size: 18px;
		line-height: 1.35;
	}

	.sw-product-card__description {
		font-size: 14px;
		line-height: 1.65;
	}

	.sw-product-card__link {
		font-size: 14px;
	}
}

@media (max-width: 767px) {
	.sw-product-categories {
		padding: 64px 16px;
	}

	.sw-product-categories__header {
		margin-bottom: 36px;
	}

	.sw-product-categories__eyebrow {
		margin-bottom: 14px;
		font-size: 11px;
		letter-spacing: 0.2em;
	}

	.sw-product-categories__heading {
		font-size: 32px;
		line-height: 1.15;
		letter-spacing: -0.02em;
	}

	.sw-product-categories__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.sw-product-card,
	.sw-product-card:last-child:nth-child(odd) {
		grid-column: auto;
		width: 100%;
	}

	.sw-product-card__title {
		font-size: 19px;
		line-height: 1.35;
	}

	.sw-product-card__description {
		font-size: 16px;
		line-height: 1.65;
	}

	.sw-product-card__link {
		font-size: 14px;
		line-height: 1.4;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sw-product-card__image {
		transition: transform 0.7s ease-out !important;
	}

	.sw-product-card,
	.sw-product-card__link svg {
		transition: none;
	}

	.sw-product-card:hover,
	.sw-product-card:focus-within {
		transform: none;
	}
}
