/* Colours — finish swatch grid + detail panel
   Brand: navy #0C3B64, gold #cebc5f, font Manrope (inherited).
   Visual language deliberately matches showroom-gallery.css. */

.akc-colours { font-family: "Manrope", sans-serif; }

/* ---------- Placeholder-data admin notice ---------- */
.akc-colours__placeholder-notice {
	background: #fff8e5;
	border: 1px solid #e0b64d;
	color: #7a5a12;
	font-size: 14px;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 24px;
}

/* ---------- Filter pills ---------- */
.akc-colours__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 30px;
}
.akc-colours__filter {
	appearance: none;
	cursor: pointer;
	border: 1.5px solid #0C3B64;
	background: #fff;
	color: #0C3B64;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	padding: 12px 24px;
	border-radius: 999px;
	transition: background-color .2s ease, color .2s ease;
}
.akc-colours__filter:hover { background: #eef2f7; }
.akc-colours__filter.is-active,
.akc-colours__filter.is-active:hover {
	background: #0C3B64;
	color: #fff;
}
.akc-colours__filter:focus-visible,
.akc-colours__card:focus-visible,
.akc-colours__panel-close:focus-visible,
.akc-colours__panel-cta:focus-visible,
.akc-colours__panel-series-list a:focus-visible {
	outline: 3px solid #cebc5f;
	outline-offset: 2px;
}

/* ---------- Grid ---------- */
.akc-colours__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.akc-colours__card {
	appearance: none;
	border: 0;
	padding: 0;
	margin: 0;
	text-align: left;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(12, 59, 100, .14);
	transition: transform .3s ease, box-shadow .3s ease;
}
.akc-colours__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(12, 59, 100, .22);
}
.akc-colours__chip {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background-color: #e9edf2;
}
.akc-colours__chip img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.akc-colours__meta {
	display: block;
	padding: 14px 16px 16px;
}
.akc-colours__name {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #14202c;
	line-height: 1.25;
}
.akc-colours__family {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	font-weight: 600;
	color: #5b6773;
	text-transform: uppercase;
	letter-spacing: .5px;
}

/* ---------- Detail panel ---------- */
body.akc-colours-open { overflow: hidden; }
.akc-colours__panel {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(8, 18, 30, .88);
	opacity: 0;
	visibility: hidden;
	/* Delay the visibility flip only on close, so the fade-out still reads;
	   on open it must flip instantly or focus() on the close button below
	   is a silent no-op while the panel is still computed as hidden. */
	transition: opacity .25s ease, visibility 0s linear .25s;
	padding: 20px;
}
.akc-colours__panel.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s linear 0s; }
.akc-colours__panel-inner {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.akc-colours__panel-chip {
	height: 150px;
	background-color: #e9edf2;
	background-size: cover;
	background-position: center;
}
.akc-colours__panel-body { padding: 20px 24px 24px; }
.akc-colours__panel-name {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	color: #14202c;
	letter-spacing: -.3px;
}
.akc-colours__panel-family {
	margin: 4px 0 0;
	font-size: 12px;
	font-weight: 600;
	color: #5b6773;
	text-transform: uppercase;
	letter-spacing: .6px;
}
.akc-colours__panel-desc {
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: #5b6773;
}
.akc-colours__panel-series {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid #e3e9ef;
}
.akc-colours__panel-label {
	display: block;
	font-size: 11px;
	font-weight: 800;
	color: #5b6773;
	text-transform: uppercase;
	letter-spacing: .7px;
}
.akc-colours__panel-series-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.akc-colours__panel-series-list a {
	font-size: 13px;
	font-weight: 700;
	color: #0C3B64;
	border: 1.5px solid #0C3B64;
	border-radius: 999px;
	padding: 6px 14px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.akc-colours__panel-series-list a:hover { background: #0C3B64; color: #fff; }
.akc-colours__panel-cta {
	display: block;
	margin-top: 20px;
	text-align: center;
	background: #0C3B64;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	padding: 14px 20px;
	border-radius: 999px;
	text-decoration: none;
	transition: background-color .2s ease;
}
.akc-colours__panel-cta:hover { background: #0a3156; color: #fff; }
.akc-colours__panel-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: rgba(255, 255, 255, .92);
	color: #14202c;
	font-size: 22px;
	line-height: 1;
	transition: background-color .2s ease;
}
.akc-colours__panel-close:hover { background: #e9edf2; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.akc-colours__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (max-width: 600px) {
	.akc-colours__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.akc-colours__name { font-size: 14px; }
	.akc-colours__meta { padding: 11px 12px 13px; }
	.akc-colours__panel-chip { height: 120px; }
	.akc-colours__panel-name { font-size: 20px; }
}
