/* Shared LGD styles: fd instance */
/* ============================================================
   LGD Featured Diamonds — Table / Grid / Carousel
   ============================================================ */

.lgd-fd {
	font-family: inherit;
	max-width: 1440px;
	margin: 0 auto;
}

.lgd-fd-error {
	background: #fdf2f2;
	border: 1px solid #f5c6c6;
	color: #b02a37;
	padding: 14px 18px;
	border-radius: 8px;
}

/* ---------- Toolbar + toggle buttons ---------- */
.lgd-fd-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.lgd-fd-title h2 {
	margin: 0 0 2px;
	font-size: 26px;
	line-height: 1.2;
}

.lgd-fd-count {
	color: #555;
	font-size: 13px;
}

.lgd-fd-toggles {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.lgd-fd-cat-toggle,
.lgd-fd-view-toggle {
	display: inline-flex;
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.lgd-fd-view-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: #6a1b9a;
	background: #f1e8f7;
	border-radius: 20px;
	padding: 6px 14px;
	white-space: nowrap;
}

.lgd-fd-toggle {
	border: 0;
	background: #fff;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	color: #555;
	transition: background .2s, color .2s;
}

.lgd-fd-toggle + .lgd-fd-toggle {
	border-left: 1px solid #eee;
}

.lgd-fd-toggle:hover {
	background: #f7f0fb;
	color: #6a1b9a;
}

.lgd-fd-toggle.active {
	background: #6a1b9a;
	color: #fff;
}

.lgd-fd-cat-toggle .lgd-fd-toggle.active {
	background: #3a0f5c;
}

.lgd-fd-cat-toggle .lgd-fd-toggle:hover {
	background: #f1e8f7;
	color: #3a0f5c;
}

/* ---------- Views ---------- */
.lgd-fd-view {
	display: none;
}

.lgd-fd-view.active {
	display: block;
}

/* ============================================================
   TABLE VIEW
   ============================================================ */
.lgd-fd-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #ececec;
	border-radius: 10px;
	background: #fff;
}

.filter-table.lgd-fd-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 1200px;
}

.filter-table.lgd-fd-table th {
	background: #f7f7f9;
	padding: 12px 8px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #333;
	border-bottom: 2px solid #e5e5e5;
	white-space: nowrap;
	text-align: center;
}

.filter-table.lgd-fd-table th.sortable:hover {
	color: #6a1b9a;
}

.filter-table.lgd-fd-table th.sorted-asc::after {
	content: ' \25B2';
	color: #6a1b9a;
	font-size: 10px;
}

.filter-table.lgd-fd-table th.sorted-desc::after {
	content: ' \25BC';
	color: #6a1b9a;
	font-size: 10px;
}

.filter-table.lgd-fd-table td {
	padding: 10px 8px;
	font-size: 14px;
	text-align: center;
	border-bottom: 1px solid #f0f0f0;
	white-space: nowrap;
	vertical-align: middle;
}

.filter-table.lgd-fd-table tr.data-row:hover {
	background: #faf7fd;
}

.filter-table.lgd-fd-table .table-price {
	color: #6a1b9a;
	font-weight: 700;
}

.filter-table.lgd-fd-table .td-score {
	background: #f1e8f7;
	color: #6a1b9a;
	border-radius: 20px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
}

.filter-table.lgd-fd-table .table-loyalty {
	color: #b8860b;
	font-weight: 600;
}

/* colour swatch */
.swatch-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.color-swatch-circle {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid #ddd;
	display: inline-block;
}

/* shape svg (sized via CSS — SVGs ship without inline width/height) */
.lgd-fd .shp-svg {
	width: 44px;
	height: 44px;
	display: block;
}

.shp-svg .gem-outline {
	fill: #fff;
	stroke: #6a1b9a;
	stroke-width: 1.6;
}

.shp-svg .gem-table {
	fill: #e9dcf5;
	stroke: #6a1b9a;
	stroke-width: 1;
}

.shp-svg .gem-facet {
	fill: none;
	stroke: #6a1b9a;
	stroke-width: .8;
	opacity: .7;
}

/* buttons inside table */
.lgd-compare-btn,
.lgd-wishlist-btn {
	border: 1px solid #6a1b9a;
	background: #fff;
	color: #6a1b9a;
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s;
}

.lgd-compare-btn:hover,
.lgd-wishlist-btn:hover {
	background: #6a1b9a;
	color: #fff;
}

.lgd-compare-btn.added,
.lgd-wishlist-btn.added {
	background: #6a1b9a;
	color: #fff;
}

.search-table-btn {
	display: inline-block;
	background: #6a1b9a;
	color: #fff !important;
	border-radius: 20px;
	padding: 6px 18px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s;
}

.search-table-btn:hover {
	background: #4a1170;
}

/* ============================================================
   GRID VIEW — 5 equal columns, 20px gap, 5 equal rows (25 per section)
   ============================================================ */
.lgd-fd-section {
	margin-bottom: 44px;
}

.lgd-fd-section-title {
	font-size: 20px;
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.lgd-fd-section-title span {
	background: #6a1b9a;
	color: #fff;
	border-radius: 20px;
	padding: 2px 12px;
	font-size: 12px;
	font-weight: 600;
}

.lgd-fd-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px; /* 20px gap between columns AND rows */
}

/* ---------- Card ---------- */
.lgd-fd-card {
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 16px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: box-shadow .2s, transform .2s;
	height: 100%;
	box-sizing: border-box;
}

.lgd-fd-card:hover {
	box-shadow: 0 10px 28px rgba(106, 27, 154, .14);
	transform: translateY(-3px);
}

.lgd-fd-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.lgd-fd-card-shape {
	display: inline-flex;
}

.lgd-fd-card-badge {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	border-radius: 20px;
	padding: 3px 10px;
}

.lgd-fd-card-badge.is-white {
	background: #eef2ff;
	color: #3b5bdb;
}

.lgd-fd-card-badge.is-coloured {
	background: #fff0f6;
	color: #c2255c;
}

.lgd-fd-card-name {
	margin: 0;
	font-size: 16px;
	text-align: center;
}

.lgd-fd-card-specs {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px dashed #eee;
}

.lgd-fd-card-specs li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px dashed #f3f3f3;
	font-size: 13px;
}

.lgd-fd-card-specs li span {
	color: #555;
}

.lgd-fd-card-specs li strong {
	color: #333;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.lgd-fd-swatch {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid #ddd;
	display: inline-block;
}

.lgd-fd-card-price {
	text-align: center;
	font-size: 20px;
	font-weight: 800;
	color: #6a1b9a;
	margin-top: auto;
}

.lgd-fd-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.lgd-fd-card-actions .search-table-btn,
.lgd-fd-card-actions .lgd-wishlist-btn,
.lgd-fd-card-actions .lgd-compare-btn {
	flex: 1 1 auto;
	text-align: center;
	min-width: 0;
}

/* ============================================================
   CAROUSEL VIEW — Swiper, 5 equal columns per slide
   ============================================================ */
.lgd-fd-swiper {
	padding: 8px 4px 46px;
}

.lgd-fd-swiper .swiper-slide {
	height: auto;
}

.lgd-fd-swiper .lgd-fd-card {
	height: 100%;
}

.lgd-fd-nav.swiper-button-prev,
.lgd-fd-nav.swiper-button-next {
	color: #6a1b9a;
	background: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.lgd-fd-nav.swiper-button-prev::after,
.lgd-fd-nav.swiper-button-next::after {
	font-size: 16px;
	font-weight: 700;
}

.lgd-fd-pagination .swiper-pagination-bullet-active {
	background: #6a1b9a;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
	.lgd-fd-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 992px) {
	.lgd-fd-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

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

	.lgd-fd-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.lgd-fd-grid {
		grid-template-columns: 1fr;
	}

	.lgd-fd-toggle {
		padding: 9px 16px;
		font-size: 13px;
	}
}

/* Shared LGD styles: nd instance */
/* ============================================================
   LGD Featured Diamonds — Table / Grid / Carousel
   ============================================================ */

.lgd-nd {
	font-family: inherit;
	max-width: 1440px;
	margin: 0 auto;
}

.lgd-nd-error {
	background: #fdf2f2;
	border: 1px solid #f5c6c6;
	color: #b02a37;
	padding: 14px 18px;
	border-radius: 8px;
}

/* ---------- Toolbar + toggle buttons ---------- */
.lgd-nd-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.lgd-nd-title h2 {
	margin: 0 0 2px;
	font-size: 26px;
	line-height: 1.2;
}

.lgd-nd-count {
	color: #555;
	font-size: 13px;
}

.lgd-nd-toggles {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.lgd-nd-cat-toggle,
.lgd-nd-view-toggle {
	display: inline-flex;
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.lgd-nd-view-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: #6a1b9a;
	background: #f1e8f7;
	border-radius: 20px;
	padding: 6px 14px;
	white-space: nowrap;
}

.lgd-nd-toggle {
	border: 0;
	background: #fff;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	color: #555;
	transition: background .2s, color .2s;
}

.lgd-nd-toggle + .lgd-nd-toggle {
	border-left: 1px solid #eee;
}

.lgd-nd-toggle:hover {
	background: #f7f0fb;
	color: #6a1b9a;
}

.lgd-nd-toggle.active {
	background: #6a1b9a;
	color: #fff;
}

.lgd-nd-cat-toggle .lgd-nd-toggle.active {
	background: #3a0f5c;
}

.lgd-nd-cat-toggle .lgd-nd-toggle:hover {
	background: #f1e8f7;
	color: #3a0f5c;
}

/* ---------- Views ---------- */
.lgd-nd-view {
	display: none;
}

.lgd-nd-view.active {
	display: block;
}

/* ============================================================
   TABLE VIEW
   ============================================================ */
.lgd-nd-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #ececec;
	border-radius: 10px;
	background: #fff;
}

.filter-table.lgd-nd-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 1200px;
}

.filter-table.lgd-nd-table th {
	background: #f7f7f9;
	padding: 12px 8px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #333;
	border-bottom: 2px solid #e5e5e5;
	white-space: nowrap;
	text-align: center;
}

.filter-table.lgd-nd-table th.sortable:hover {
	color: #6a1b9a;
}

.filter-table.lgd-nd-table th.sorted-asc::after {
	content: ' \25B2';
	color: #6a1b9a;
	font-size: 10px;
}

.filter-table.lgd-nd-table th.sorted-desc::after {
	content: ' \25BC';
	color: #6a1b9a;
	font-size: 10px;
}

.filter-table.lgd-nd-table td {
	padding: 10px 8px;
	font-size: 14px;
	text-align: center;
	border-bottom: 1px solid #f0f0f0;
	white-space: nowrap;
	vertical-align: middle;
}

.filter-table.lgd-nd-table tr.data-row:hover {
	background: #faf7fd;
}

.filter-table.lgd-nd-table .table-price {
	color: #6a1b9a;
	font-weight: 700;
}

.filter-table.lgd-nd-table .td-score {
	background: #f1e8f7;
	color: #6a1b9a;
	border-radius: 20px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
}

.filter-table.lgd-nd-table .table-loyalty {
	color: #b8860b;
	font-weight: 600;
}

/* colour swatch */
.swatch-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.color-swatch-circle {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid #ddd;
	display: inline-block;
}

/* shape svg (sized via CSS — SVGs ship without inline width/height) */
.lgd-nd .shp-svg {
	width: 44px;
	height: 44px;
	display: block;
}

.shp-svg .gem-outline {
	fill: #fff;
	stroke: #6a1b9a;
	stroke-width: 1.6;
}

.shp-svg .gem-table {
	fill: #e9dcf5;
	stroke: #6a1b9a;
	stroke-width: 1;
}

.shp-svg .gem-facet {
	fill: none;
	stroke: #6a1b9a;
	stroke-width: .8;
	opacity: .7;
}

/* buttons inside table */
.lgd-compare-btn,
.lgd-wishlist-btn {
	border: 1px solid #6a1b9a;
	background: #fff;
	color: #6a1b9a;
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s;
}

.lgd-compare-btn:hover,
.lgd-wishlist-btn:hover {
	background: #6a1b9a;
	color: #fff;
}

.lgd-compare-btn.added,
.lgd-wishlist-btn.added {
	background: #6a1b9a;
	color: #fff;
}

.search-table-btn {
	display: inline-block;
	background: #6a1b9a;
	color: #fff !important;
	border-radius: 20px;
	padding: 6px 18px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s;
}

.search-table-btn:hover {
	background: #4a1170;
}

/* ============================================================
   GRID VIEW — 5 equal columns, 20px gap, 5 equal rows (25 per section)
   ============================================================ */
.lgd-nd-section {
	margin-bottom: 44px;
}

.lgd-nd-section-title {
	font-size: 20px;
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.lgd-nd-section-title span {
	background: #6a1b9a;
	color: #fff;
	border-radius: 20px;
	padding: 2px 12px;
	font-size: 12px;
	font-weight: 600;
}

.lgd-nd-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px; /* 20px gap between columns AND rows */
}

/* ---------- Card ---------- */
.lgd-nd-card {
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 16px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: box-shadow .2s, transform .2s;
	height: 100%;
	box-sizing: border-box;
}

.lgd-nd-card:hover {
	box-shadow: 0 10px 28px rgba(106, 27, 154, .14);
	transform: translateY(-3px);
}

.lgd-nd-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.lgd-nd-card-shape {
	display: inline-flex;
}

.lgd-nd-card-badge {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	border-radius: 20px;
	padding: 3px 10px;
}

.lgd-nd-card-badge.is-white {
	background: #eef2ff;
	color: #3b5bdb;
}

.lgd-nd-card-badge.is-coloured {
	background: #fff0f6;
	color: #c2255c;
}

.lgd-nd-card-name {
	margin: 0;
	font-size: 16px;
	text-align: center;
}

.lgd-nd-card-specs {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px dashed #eee;
}

.lgd-nd-card-specs li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px dashed #f3f3f3;
	font-size: 13px;
}

.lgd-nd-card-specs li span {
	color: #555;
}

.lgd-nd-card-specs li strong {
	color: #333;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.lgd-nd-swatch {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid #ddd;
	display: inline-block;
}

.lgd-nd-card-price {
	text-align: center;
	font-size: 20px;
	font-weight: 800;
	color: #6a1b9a;
	margin-top: auto;
}

.lgd-nd-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.lgd-nd-card-actions .search-table-btn,
.lgd-nd-card-actions .lgd-wishlist-btn,
.lgd-nd-card-actions .lgd-compare-btn {
	flex: 1 1 auto;
	text-align: center;
	min-width: 0;
}

/* ============================================================
   CAROUSEL VIEW — Swiper, 5 equal columns per slide
   ============================================================ */
.lgd-nd-swiper {
	padding: 8px 4px 46px;
}

.lgd-nd-swiper .swiper-slide {
	height: auto;
}

.lgd-nd-swiper .lgd-nd-card {
	height: 100%;
}

.lgd-nd-nav.swiper-button-prev,
.lgd-nd-nav.swiper-button-next {
	color: #6a1b9a;
	background: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.lgd-nd-nav.swiper-button-prev::after,
.lgd-nd-nav.swiper-button-next::after {
	font-size: 16px;
	font-weight: 700;
}

.lgd-nd-pagination .swiper-pagination-bullet-active {
	background: #6a1b9a;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
	.lgd-nd-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 992px) {
	.lgd-nd-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

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

	.lgd-nd-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.lgd-nd-grid {
		grid-template-columns: 1fr;
	}

	.lgd-nd-toggle {
		padding: 9px 16px;
		font-size: 13px;
	}
}

/* Shared LGD styles: pd instance */
/* ============================================================
   LGD Featured Diamonds — Table / Grid / Carousel
   ============================================================ */

.lgd-pd {
	font-family: inherit;
	max-width: 1440px;
	margin: 0 auto;
}

.lgd-pd-error {
	background: #fdf2f2;
	border: 1px solid #f5c6c6;
	color: #b02a37;
	padding: 14px 18px;
	border-radius: 8px;
}

/* ---------- Toolbar + toggle buttons ---------- */
.lgd-pd-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.lgd-pd-title h2 {
	margin: 0 0 2px;
	font-size: 26px;
	line-height: 1.2;
}

.lgd-pd-count {
	color: #555;
	font-size: 13px;
}

.lgd-pd-toggles {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.lgd-pd-cat-toggle,
.lgd-pd-view-toggle {
	display: inline-flex;
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.lgd-pd-view-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: #6a1b9a;
	background: #f1e8f7;
	border-radius: 20px;
	padding: 6px 14px;
	white-space: nowrap;
}

.lgd-pd-toggle {
	border: 0;
	background: #fff;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	color: #555;
	transition: background .2s, color .2s;
}

.lgd-pd-toggle + .lgd-pd-toggle {
	border-left: 1px solid #eee;
}

.lgd-pd-toggle:hover {
	background: #f7f0fb;
	color: #6a1b9a;
}

.lgd-pd-toggle.active {
	background: #6a1b9a;
	color: #fff;
}

.lgd-pd-cat-toggle .lgd-pd-toggle.active {
	background: #3a0f5c;
}

.lgd-pd-cat-toggle .lgd-pd-toggle:hover {
	background: #f1e8f7;
	color: #3a0f5c;
}

/* ---------- Views ---------- */
.lgd-pd-view {
	display: none;
}

.lgd-pd-view.active {
	display: block;
}

/* ============================================================
   TABLE VIEW
   ============================================================ */
.lgd-pd-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #ececec;
	border-radius: 10px;
	background: #fff;
}

.filter-table.lgd-pd-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 1200px;
}

.filter-table.lgd-pd-table th {
	background: #f7f7f9;
	padding: 12px 8px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #333;
	border-bottom: 2px solid #e5e5e5;
	white-space: nowrap;
	text-align: center;
}

.filter-table.lgd-pd-table th.sortable:hover {
	color: #6a1b9a;
}

.filter-table.lgd-pd-table th.sorted-asc::after {
	content: ' \25B2';
	color: #6a1b9a;
	font-size: 10px;
}

.filter-table.lgd-pd-table th.sorted-desc::after {
	content: ' \25BC';
	color: #6a1b9a;
	font-size: 10px;
}

.filter-table.lgd-pd-table td {
	padding: 10px 8px;
	font-size: 14px;
	text-align: center;
	border-bottom: 1px solid #f0f0f0;
	white-space: nowrap;
	vertical-align: middle;
}

.filter-table.lgd-pd-table tr.data-row:hover {
	background: #faf7fd;
}

.filter-table.lgd-pd-table .table-price {
	color: #6a1b9a;
	font-weight: 700;
}

.filter-table.lgd-pd-table .td-score {
	background: #f1e8f7;
	color: #6a1b9a;
	border-radius: 20px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
}

.filter-table.lgd-pd-table .table-loyalty {
	color: #b8860b;
	font-weight: 600;
}

/* colour swatch */
.swatch-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.color-swatch-circle {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid #ddd;
	display: inline-block;
}

/* shape svg (sized via CSS — SVGs ship without inline width/height) */
.lgd-pd .shp-svg {
	width: 44px;
	height: 44px;
	display: block;
}

.shp-svg .gem-outline {
	fill: #fff;
	stroke: #6a1b9a;
	stroke-width: 1.6;
}

.shp-svg .gem-table {
	fill: #e9dcf5;
	stroke: #6a1b9a;
	stroke-width: 1;
}

.shp-svg .gem-facet {
	fill: none;
	stroke: #6a1b9a;
	stroke-width: .8;
	opacity: .7;
}

/* buttons inside table */
.lgd-compare-btn,
.lgd-wishlist-btn {
	border: 1px solid #6a1b9a;
	background: #fff;
	color: #6a1b9a;
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s;
}

.lgd-compare-btn:hover,
.lgd-wishlist-btn:hover {
	background: #6a1b9a;
	color: #fff;
}

.lgd-compare-btn.added,
.lgd-wishlist-btn.added {
	background: #6a1b9a;
	color: #fff;
}

.search-table-btn {
	display: inline-block;
	background: #6a1b9a;
	color: #fff !important;
	border-radius: 20px;
	padding: 6px 18px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s;
}

.search-table-btn:hover {
	background: #4a1170;
}

/* ============================================================
   GRID VIEW — 5 equal columns, 20px gap, 5 equal rows (25 per section)
   ============================================================ */
.lgd-pd-section {
	margin-bottom: 44px;
}

.lgd-pd-section-title {
	font-size: 20px;
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.lgd-pd-section-title span {
	background: #6a1b9a;
	color: #fff;
	border-radius: 20px;
	padding: 2px 12px;
	font-size: 12px;
	font-weight: 600;
}

.lgd-pd-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px; /* 20px gap between columns AND rows */
}

/* ---------- Card ---------- */
.lgd-pd-card {
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 16px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: box-shadow .2s, transform .2s;
	height: 100%;
	box-sizing: border-box;
}

.lgd-pd-card:hover {
	box-shadow: 0 10px 28px rgba(106, 27, 154, .14);
	transform: translateY(-3px);
}

.lgd-pd-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.lgd-pd-card-shape {
	display: inline-flex;
}

.lgd-pd-card-badge {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	border-radius: 20px;
	padding: 3px 10px;
}

.lgd-pd-card-badge.is-white {
	background: #eef2ff;
	color: #3b5bdb;
}

.lgd-pd-card-badge.is-coloured {
	background: #fff0f6;
	color: #c2255c;
}

.lgd-pd-card-name {
	margin: 0;
	font-size: 16px;
	text-align: center;
}

.lgd-pd-card-specs {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px dashed #eee;
}

.lgd-pd-card-specs li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px dashed #f3f3f3;
	font-size: 13px;
}

.lgd-pd-card-specs li span {
	color: #555;
}

.lgd-pd-card-specs li strong {
	color: #333;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.lgd-pd-swatch {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid #ddd;
	display: inline-block;
}

.lgd-pd-card-price {
	text-align: center;
	font-size: 20px;
	font-weight: 800;
	color: #6a1b9a;
	margin-top: auto;
}

.lgd-pd-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.lgd-pd-card-actions .search-table-btn,
.lgd-pd-card-actions .lgd-wishlist-btn,
.lgd-pd-card-actions .lgd-compare-btn {
	flex: 1 1 auto;
	text-align: center;
	min-width: 0;
}

/* ============================================================
   CAROUSEL VIEW — Swiper, 5 equal columns per slide
   ============================================================ */
.lgd-pd-swiper {
	padding: 8px 4px 46px;
}

.lgd-pd-swiper .swiper-slide {
	height: auto;
}

.lgd-pd-swiper .lgd-pd-card {
	height: 100%;
}

.lgd-pd-nav.swiper-button-prev,
.lgd-pd-nav.swiper-button-next {
	color: #6a1b9a;
	background: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.lgd-pd-nav.swiper-button-prev::after,
.lgd-pd-nav.swiper-button-next::after {
	font-size: 16px;
	font-weight: 700;
}

.lgd-pd-pagination .swiper-pagination-bullet-active {
	background: #6a1b9a;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
	.lgd-pd-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 992px) {
	.lgd-pd-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

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

	.lgd-pd-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.lgd-pd-grid {
		grid-template-columns: 1fr;
	}

	.lgd-pd-toggle {
		padding: 9px 16px;
		font-size: 13px;
	}
}
/* Shared action controls for all LGD displays. */
.lgd-action-button, .lgd-wishlist-btn, .lgd-compare-btn { display:inline-flex; align-items:center; justify-content:center; gap:5px; }
.lgd-action-icon { font-size:18px; line-height:1; font-weight:700; }
.lgd-action-label { line-height:1; }
.lgd-fd-grid, .lgd-nd-grid, .lgd-pd-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
@media (max-width:992px){.lgd-fd-grid,.lgd-nd-grid,.lgd-pd-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:640px){.lgd-fd-grid,.lgd-nd-grid,.lgd-pd-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:420px){.lgd-fd-grid,.lgd-nd-grid,.lgd-pd-grid{grid-template-columns:1fr;}}
