/* ==========================================================
   Product Related Widget — matches product-lumber.html design
   ========================================================== */

.prw-widget {
	width: 100%;
}

/* ----------------------------------------------------------
   Inner wrapper — top border + flex row layout
   ---------------------------------------------------------- */

.prw-inner {
	border-top: 1px solid #685C45;
	padding: 60px 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 34px;
}

/* ----------------------------------------------------------
   Left: section title
   ---------------------------------------------------------- */

.prw-title-wrapper {
	width: 100%;
	max-width: 240px;
	flex-shrink: 0;
}

.prw-section-title {
	font-weight: 400;
	font-size: 40px;
	text-transform: uppercase;
	color: #685C45;
	line-height: 40px;
	margin: 0;
}

/* ----------------------------------------------------------
   Right: product grid (static when ≤4 items)
   ---------------------------------------------------------- */

.prw-grid {
	width: calc(100% - 240px - 34px);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* ----------------------------------------------------------
   Product item
   ---------------------------------------------------------- */

.prw-product-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	text-decoration: none;
	color: inherit;
}

.prw-image-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2.2;
	overflow: hidden;
	background-color: #F5F2ED;
}

.prw-product-image {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease-in-out;
}

.prw-product-item:hover .prw-product-image {
	transform: scale(1.05);
}

.prw-product-content {
	width: 100%;
}

.prw-product-title {
	font-weight: 400;
	font-size: 20px;
	text-transform: uppercase;
	color: #32312F;
	line-height: 18px;
	margin: 0;
}

/* ----------------------------------------------------------
   Editor notice
   ---------------------------------------------------------- */

.prw-editor-notice {
	color: #888;
	font-style: italic;
	padding: 20px 0;
}

/* ----------------------------------------------------------
   Slick carousel overrides (active when items >= threshold)
   ---------------------------------------------------------- */

.prw-widget .prw-grid.slick-initialized.slick-slider {
	display: flex;
	flex-direction: column;
	margin-bottom: 44px;
}

.prw-widget .prw-grid .slick-list {
	margin: 0 -10px;
}

.prw-widget .prw-grid .slick-list .slick-track {
	display: flex;
}

.prw-widget .prw-grid .slick-list .slick-track::before,
.prw-widget .prw-grid .slick-list .slick-track::after {
	display: none;
}

.prw-widget .prw-product-item.slick-slide {
	display: flex;
	margin: 0 10px;
}

/* Dots */
.prw-widget .prw-grid.slick-slider .slick-dots {
	bottom: -44px;
}

.prw-widget .prw-grid.slick-slider .slick-dots li {
	width: 10px;
	height: 10px;
	margin: 0 8px;
}

.prw-widget .prw-grid.slick-slider .slick-dots li button {
	padding: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: #F5F2ED;
	transition: background-color 0.3s ease-in-out;
}

.prw-widget .prw-grid.slick-slider .slick-dots li button::before {
	display: none;
}

.prw-widget .prw-grid.slick-slider .slick-dots li.slick-active button {
	background-color: #FF7C00;
}

/* ----------------------------------------------------------
   1024px and below — stack title above grid
   ---------------------------------------------------------- */

@media ( max-width: 1024px ) {
	.prw-inner {
		flex-direction: column;
		padding: 42px 0;
	}

	.prw-title-wrapper {
		max-width: 100%;
		width: 100%;
	}

	.prw-grid {
		width: 100%;
	}

	.prw-section-title {
		font-size: 34px;
		line-height: 34px;
	}
}

/* ----------------------------------------------------------
   820px and below — 3-column grid
   ---------------------------------------------------------- */

@media ( max-width: 820px ) {
	.prw-inner {
		padding: 28px 0 34px;
		gap: 28px;
	}

	.prw-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.prw-product-item {
		gap: 10px;
	}
}

/* ----------------------------------------------------------
   575px and below — 2-column grid
   ---------------------------------------------------------- */

@media ( max-width: 575px ) {
	.prw-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.prw-section-title {
		font-size: 28px;
		line-height: 28px;
	}

	.prw-product-title {
		font-size: 16px;
		line-height: 16px;
	}
}
