/* =========================================================
   Range by Finish — page template styles
   ========================================================= */

/* Banner */
.rcp-page-banner {
	width: 100%;
	overflow: hidden;
	line-height: 0;
}

.rcp-page-banner-img {
	display: block;
	width: 100%;
	height: auto;
}

/* Header */
.rcp-wrap {
	padding: 40px 0;
}

.rcp-header {
	margin-bottom: 48px;
}

.rcp-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 12px;
	line-height: 1.2;
}

.rcp-finish-label {
	display: inline-block;
	font-weight: 400;
	color: #666;
	font-size: 1.5rem;
}

.rcp-finish-label::before {
	content: "— ";
}

.rcp-range-desc {
	color: #555;
	max-width: 680px;
	margin: 0;
}

/* Insert Type section */
.rcp-insert-section {
	margin-bottom: 60px;
}

.rcp-insert-type-title {
	font-size: 1.25rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-bottom: 2px solid currentColor;
	padding-bottom: 10px;
	margin-bottom: 28px;
}

/* Gang filters */
.rcp-gang-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.rcp-gang-label {
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
	align-self: center;
	color: #555;
}

.rcp-gang-btn {
	padding: 6px 14px;
	font-size: 0.8rem;
	font-weight: 600;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	line-height: 1.4;
}

.rcp-gang-btn:hover {
	border-color: #888;
}

.rcp-gang-btn.is-active {
	background: #333;
	border-color: #333;
	color: #fff;
}

/* Product grid */
.rcp-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 24px;
}

/* Product card */
.rcp-product-card {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease;
}

.rcp-product-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Image */
.rcp-product-image-link {
	display: block;
	text-decoration: none;
}

.rcp-product-image img,
.rcp-no-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Insert colour flashes */
.rcp-product-image-link {
	position: relative;
}

.rcp-insert-colour-flashes {
	position: absolute;
	bottom: 8px;
	left: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.rcp-colour-flash {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	padding:6px 10px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.8);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	font-size: 0.6rem;
	font-weight: 500;
	color: #000;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	background: #ccc;
	cursor: default;
	flex-direction: column;
}

.rcp-colour-flash .rcp-colour-label,
.rcp-colour-flash .rcp-colour-name {
	display: block;
	text-align: center;
	line-height: 1.2;
}

.rcp-colour-flash .rcp-colour-label {
	font-size: 0.55rem;
	opacity: 0.8;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Info */
.rcp-product-info {
	padding: 0 16px 0 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	text-align: center;
}

.rcp-product-title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2em;
	margin: 0 0 6px;
	
}

.rcp-product-title a {
	text-decoration: none;
	color: inherit;
}

.rcp-product-title a:hover {
	color: #0073aa;
}

.rcp-product-sku {
	font-size: 0.75rem;
	color: #888;
	margin: 0 0 8px;
}

.rcp-product-price {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.rcp-product-price .woocommerce-Price-amount {
	color: inherit;
}

/* Add to cart */
.rcp-product-actions {
	margin-top: 5px;
	margin-bottom:20px;
	text-align: center;
}

.rcp-product-actions .button,
.rcp-product-actions .add_to_cart_button {
	
	
	text-align: center;
	padding: 6px 10px 6px 10px;
	font-size: 0.85rem;
	box-sizing: border-box;
	border:1px solid #333;
	border-radius: 12px;
	
}

.added_to_cart {
	display:block;
	margin-top:10px;
	color: #888888;
}


/* Filter sidebar layout */
.rcp-layout {
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

.rcp-filter-sidebar {
	flex: 0 0 200px;
	width: 200px;
	position: sticky;
	top: 20px;
}

.rcp-products-area {
	flex: 1;
	min-width: 0;
}

/* Filter tabs */
.rcp-tab-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 16px;
}

.rcp-tab-btn {
	display: block;
	width: 100%;
	text-align: left;
	padding: 8px 12px;
	font-size: 0.8rem;
	font-weight: 600;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
	line-height: 1.4;
}

.rcp-tab-btn:hover {
	background: #eaeaea;
	border-color: #bbb;
}

.rcp-tab-btn.is-active {
	background: #333;
	border-color: #333;
	color: #fff;
}

/* Filter panels */
.rcp-tab-panel {
	display: none;
	flex-direction: column;
	gap: 4px;
}

.rcp-tab-panel.is-active {
	display: flex;
}

.rcp-filter-btn {
	display: block;
	width: 100%;
	text-align: left;
	padding: 6px 10px;
	font-size: 0.8rem;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 3px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
	line-height: 1.4;
}

.rcp-filter-btn:hover {
	border-color: #888;
	background: #f9f9f9;
}

.rcp-filter-btn.is-active {
	background: #333;
	border-color: #333;
	color: #fff;
}

@media (max-width: 768px) {
	.rcp-layout {
		flex-direction: column;
		gap: 24px;
	}

	.rcp-filter-sidebar {
		flex: none;
		width: 100%;
		position: static;
	}

	.rcp-tab-nav {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.rcp-tab-btn {
		width: auto;
		flex: 1 1 auto;
		text-align: center;
	}
}

/* Error / empty states */
.rcp-error,
.rcp-no-products {
	padding: 32px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	text-align: center;
	color: #555;
}

/* Responsive */
@media (max-width: 768px) {
	.rcp-products-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 16px;
	}

	.rcp-title {
		font-size: 1.5rem;
	}

	.rcp-finish-label {
		font-size: 1.1rem;
	}
}

@media (max-width: 480px) {
	.rcp-products-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
}
