/* Diamonds Factory — shop filters & product cards */

/* ── Sidebar filters ── */
.df-filters {
	border-right: 1px solid var(--color-border);
	padding-right: 32px;
}

.df-filters-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--color-border);
}

.df-filters-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-family: var(--font-serif);
	font-size: 1.35rem;
	font-weight: 400;
	color: var(--color-text);
}

.df-filters-clear {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.df-filters-clear:hover {
	color: var(--color-gold);
}

.df-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.df-active-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--color-border);
	border-radius: 2px;
	font-size: 0.78rem;
	background: #fff;
	color: var(--color-text);
}

.df-active-chip:hover {
	border-color: var(--color-gold);
	color: var(--color-accent-dark);
}

.df-filter-group {
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 16px;
	margin-bottom: 16px;
}

.df-filter-group-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: none;
	padding: 8px 0;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	cursor: pointer;
	color: var(--color-text);
}

.df-filter-group:not(.is-open) .df-filter-group-toggle svg {
	transform: rotate(-90deg);
}

.df-filter-group:not(.is-open) .df-filter-list,
.df-filter-group:not(.is-open) .df-filter-view-more {
	display: none;
}

.df-filter-list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.df-filter-item-hidden {
	display: none;
}

.df-filter-list.is-expanded .df-filter-item-hidden {
	display: block;
}

.df-filter-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	color: var(--color-text);
	font-size: 0.88rem;
	text-decoration: none;
	transition: color 0.15s;
}

.df-filter-link:hover,
.df-filter-link.is-active {
	color: var(--color-accent-dark);
}

.df-filter-link.is-active {
	background: rgba(222, 193, 92, 0.14);
	border-radius: 4px;
	margin-left: -8px;
	margin-right: -8px;
	padding-left: 8px;
	padding-right: 8px;
}

.df-filter-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 1.5px solid #b8b2ab;
	border-radius: 3px;
	flex-shrink: 0;
	position: relative;
	background: #fff;
	color: transparent;
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.df-filter-link.is-active .df-filter-check {
	background: var(--color-gold);
	border-color: var(--color-gold);
	color: var(--color-accent-dark);
}

.df-filter-link.is-active .df-filter-check::after {
	content: none;
}

.df-filter-icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.df-filter-icon img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.df-filter-swatch {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--swatch);
	border: 1px solid rgba(0,0,0,0.12);
	flex-shrink: 0;
}

.df-filter-view-more {
	background: none;
	border: none;
	padding: 8px 0 0;
	font-size: 0.82rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	color: var(--color-muted);
}

.df-filter-view-more:hover {
	color: var(--color-gold);
}

/* ── Shop header ── */
.shop-page-header {
	text-align: center;
	margin-bottom: 32px;
}

.shop-page-description p {
	margin: 0 0 8px;
}

.shop-read-more {
	font-size: 0.85rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--color-accent-dark);
}

.shop-read-more:hover {
	color: var(--color-gold);
}

.shop-page-header .cd-seo-breadcrumbs-list {
	justify-content: center;
	margin-bottom: 8px;
}

/* ── Product grid (3 columns like DF, even card heights) ── */
.shop-layout ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 28px 24px;
	align-items: stretch;
}

.shop-layout ul.products li.product,
.woocommerce ul.products li.product.dfactory-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	list-style: none;
}

.shop-layout ul.products li.product::before,
.shop-layout ul.products li.product::after {
	display: none !important;
	content: none !important;
}

.shop-layout ul.products::before,
.shop-layout ul.products::after {
	display: none !important;
}

/* ── DF product cards ── */
.dfactory-card,
.shop-layout .dfactory-card.diamond-product-card,
.woocommerce ul.products li.dfactory-card {
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.dfactory-card:hover,
.shop-layout .dfactory-card.diamond-product-card:hover {
	box-shadow: none !important;
}

.shop-layout .dfactory-card.lab-product-card .product-card-inner,
.woocommerce ul.products li.dfactory-card .product-card-inner {
	padding: 0 !important;
	border: 1px solid var(--color-border, #eae3dc) !important;
	border-radius: 8px;
	background: #fff;
	display: flex;
	flex-direction: column;
	flex: 1;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.shop-layout .dfactory-card:hover .product-card-inner {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	border-color: #d8cfc4 !important;
}

.shop-layout .dfactory-card .product-image-link {
	position: relative;
	display: block;
	overflow: hidden;
	background: #fff;
	border-bottom: 1px solid var(--color-border, #eae3dc);
	aspect-ratio: 1;
	width: 100%;
	padding: 0 !important;
	margin: 0;
	flex: 0 0 auto;
}

.shop-layout .dfactory-card .product-image-link img,
.shop-layout .dfactory-card .product-image-link .product-image-hover {
	position: absolute;
	top: 50%;
	left: 50%;
	width: auto !important;
	height: auto !important;
	max-width: 88%;
	max-height: 88%;
	transform: translate(-50%, -50%);
	object-fit: contain !important;
	object-position: center center;
	aspect-ratio: unset !important;
	min-height: 0 !important;
	background: transparent;
	transition: opacity 0.35s ease, transform 0.45s ease;
}

.shop-layout .dfactory-card:hover .product-image-link img.product-image-primary {
	transform: translate(-50%, -50%) scale(1.03);
}

.dfactory-card-footer {
	padding: 14px 16px 16px;
	margin-top: 0;
	flex: 0 0 auto;
	display: block;
	min-height: 0;
}

.dfactory-title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.dfactory-title {
	font-family: var(--font-serif) !important;
	font-size: 0.92rem !important;
	font-weight: 400 !important;
	margin: 0 !important;
	line-height: 1.35 !important;
	text-align: left !important;
	flex: 1 1 auto;
	min-width: 0;
	max-width: calc(100% - 88px);
}

.dfactory-title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}

.dfactory-price {
	text-align: right;
	flex: 0 0 auto;
	white-space: nowrap;
	padding-top: 2px;
}

.dfactory-price .price,
.dfactory-price-amount {
	font-size: 0.92rem !important;
	font-weight: 500 !important;
	white-space: nowrap;
	margin: 0 !important;
}

.dfactory-metal-swatches {
	display: flex;
	gap: 8px;
	min-height: 20px;
	align-items: center;
}

.dfactory-card .product-image-hover {
	opacity: 0;
}

.dfactory-card .product-image-link.has-hover-image:hover .product-image-primary {
	opacity: 0;
}

.dfactory-card .product-image-link.has-hover-image:hover .product-image-hover {
	opacity: 1;
}

.dfactory-card .df-new-badge,
.dfactory-card .df-sale-badge {
	background: #8b6914;
	color: #fff;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 4px 8px;
	top: 12px;
	left: 12px;
	position: absolute;
	z-index: 2;
}

.dfactory-card .df-sale-badge {
	background: var(--color-brand);
}

.dfactory-card .wishlist-btn {
	top: 12px;
	right: 12px;
}

.dfactory-card-actions {
	margin-top: 8px;
	padding-top: 0;
}

.dfactory-card-actions .button,
.dfactory-card-actions .add_to_cart_button,
.dfactory-card-actions .product_type_variable {
	display: block;
	width: 100%;
	text-align: center;
	padding: 10px 12px;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var(--color-brand, #3d1414);
	color: #fff;
	border: 1px solid var(--color-brand, #3d1414);
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.dfactory-card-actions .button:hover,
.dfactory-card-actions .add_to_cart_button:hover,
.dfactory-card-actions .product_type_variable:hover {
	background: var(--color-gold);
	border-color: var(--color-gold);
	color: var(--color-accent-dark);
	opacity: 1;
}

.dfactory-metal-swatch {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--swatch);
	border: 1px solid rgba(0,0,0,0.12);
	cursor: pointer;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
}

.dfactory-metal-swatch.is-active {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-brand, #3d1414);
}

.dfactory-card .product-card-body {
	display: none;
}

.shop-layout .dfactory-card.diamond-product-card:hover {
	box-shadow: none !important;
}

.shop-layout .dfactory-card.diamond-product-card {
	border: none !important;
	background: transparent !important;
}

/* Toolbar */
.shop-toolbar .woocommerce-ordering select {
	min-width: 180px;
}

@media (max-width: 1200px) {
	.shop-layout ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 900px) {
	.shop-layout ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* ── Load more ── */
.shop-load-more-wrap {
	text-align: center;
	padding: 48px 0 24px;
}

.btn-load-more {
	display: inline-block;
	min-width: 220px;
	padding: 14px 48px;
	border: 1px solid var(--color-text);
	background: #fff;
	font-family: var(--font-serif);
	font-size: 1.1rem;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-load-more:hover {
	background: var(--color-gold);
	border-color: var(--color-gold);
	color: var(--color-accent-dark);
}

.btn-load-more:disabled {
	opacity: 0.6;
	cursor: wait;
}

.shop-load-more-status {
	font-size: 0.85rem;
	color: var(--color-muted);
	margin-top: 12px;
}

/* Hide default WC pagination */
.shop-main .woocommerce-pagination {
	display: none !important;
}

/* ── Our approach ── */
.our-approach {
	padding: 64px 0 80px;
	background: #faf8f5;
	border-top: 1px solid var(--color-border);
}

.our-approach-title {
	font-family: var(--font-serif);
	font-size: 2rem;
	font-weight: 400;
	text-align: center;
	margin: 0 0 40px;
}

.our-approach-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

.our-approach-item {
	text-align: center;
}

.our-approach-icon {
	font-size: 2rem;
	display: block;
	margin-bottom: 16px;
}

.our-approach-item h3 {
	font-family: var(--font-serif);
	font-size: 1rem;
	font-weight: 500;
	margin: 0 0 10px;
}

.our-approach-item p {
	font-size: 0.85rem;
	color: var(--color-muted);
	line-height: 1.6;
	margin: 0;
}

/* Stone gem icons in filters */
.df-stone-gem {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	flex-shrink: 0;
	background: radial-gradient(circle at 35% 35%, #fff 0%, var(--gem-color) 45%, var(--gem-dark) 100%);
	border: 1px solid rgba(0,0,0,0.08);
}

.df-stone-gem--lab { --gem-color: #e8f4fc; --gem-dark: #b8d4e8; }
.df-stone-gem--natural { --gem-color: #f0f8ff; --gem-dark: #c8dce8; }
.df-stone-gem--yellow { --gem-color: #ffe566; --gem-dark: #d4a800; }
.df-stone-gem--black { --gem-color: #444; --gem-dark: #111; }
.df-stone-gem--champagne { --gem-color: #e8d4a8; --gem-dark: #b89860; }
.df-stone-gem--moissanite { --gem-color: #e8f8ff; --gem-dark: #90c8e0; }
.df-stone-gem--ruby { --gem-color: #e83030; --gem-dark: #901818; }

.df-filter-group-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--color-brand);
	color: #fff;
	font-size: 0.65rem;
	margin-left: 6px;
}

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

@media (max-width: 600px) {
	.our-approach-grid {
		grid-template-columns: 1fr;
	}
}

/* Mobile filter drawer */
.shop-filters-open {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	margin-bottom: 16px;
	border: 1px solid var(--color-border);
	background: #fff;
	font-family: var(--font-serif);
	font-size: 0.92rem;
	cursor: pointer;
	color: var(--color-text);
}

.shop-filters-close {
	display: none;
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: var(--color-text);
}

.shop-filters-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 350;
}

.shop-filters-overlay.is-visible {
	display: block;
}

body.shop-filters-active {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.shop-filters-open {
		display: inline-flex;
	}

	.shop-filters.df-filters {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(320px, 88vw);
		z-index: 360;
		background: #fff;
		padding: 48px 24px 32px;
		margin: 0;
		border-right: none;
		overflow-y: auto;
		transform: translateX(-105%);
		transition: transform 0.3s ease;
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
	}

	.shop-filters.df-filters.is-mobile-open {
		transform: translateX(0);
	}

	.shop-filters-close {
		display: block;
	}
}

/* Search results — 3-column DF grid */
.search-results-page ul.products.search-results-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 28px 24px !important;
	align-items: stretch;
}

.search-results-page ul.products.search-results-grid li.product {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
}

@media (max-width: 900px) {
	.search-results-page ul.products.search-results-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 480px) {
	.search-results-page ul.products.search-results-grid {
		grid-template-columns: 1fr !important;
	}
}

/* 404 page */
.error-404-search {
	max-width: 520px;
	margin: 0 auto 32px;
}

.error-404-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 24px 0 32px;
}

.error-404-links a {
	padding: 8px 16px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-size: 0.85rem;
	color: var(--color-brand);
	text-decoration: none;
}

.error-404-links a:hover {
	background: var(--color-brand);
	border-color: var(--color-brand);
	color: #fff;
}

/* Shared empty states (wishlist, cart, 404 chips) */
.cd-empty-state {
	text-align: center;
	max-width: 520px;
	margin: 32px auto 48px;
	padding: 40px 24px;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 4px;
}

.cd-empty-state-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 20px;
	border: 2px solid var(--color-border);
	border-radius: 50%;
	position: relative;
}

.cd-empty-state-icon--heart::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	transform: translate(-50%, -58%) rotate(-45deg);
	background: var(--color-brand);
	border-radius: 0 0 0 4px;
	box-shadow: -6px 0 0 var(--color-brand);
}

.cd-empty-state h2 {
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-weight: 400;
	margin: 0 0 10px;
}

.cd-empty-state p {
	color: var(--color-muted);
	line-height: 1.6;
	margin: 0 0 24px;
}

.cd-empty-state-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 24px;
}

.cd-empty-state-chips,
.wishlist-empty-state .cd-empty-state-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
}

.cd-empty-state-chips a {
	padding: 8px 16px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-size: 0.85rem;
	color: var(--color-brand);
	text-decoration: none;
}

.cd-empty-state-chips a:hover {
	background: var(--color-brand);
	border-color: var(--color-brand);
	color: #fff;
}

.shop-empty-state {
	max-width: 640px;
	margin: 24px auto 40px;
	grid-column: 1 / -1;
	width: 100%;
}

.cd-empty-state-icon--search::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	transform: translate(-50%, -50%);
	border: 2px solid var(--color-brand);
	border-radius: 50%;
}

.cd-empty-state-icon--search::before {
	content: '';
	position: absolute;
	top: 62%;
	left: 62%;
	width: 8px;
	height: 2px;
	background: var(--color-brand);
	transform: rotate(45deg);
	border-radius: 1px;
}

.shop-main .shop-empty-state .cd-order-received-link {
	font-size: 0.88rem;
}

/* Wishlist — match shop card framing */
.wishlist-products .dfactory-card .product-card-inner {
	padding: 0 !important;
}

.wishlist-products .dfactory-card .product-image-link {
	position: relative;
	display: block;
	overflow: hidden;
	background: #f8f6f3;
	aspect-ratio: 1;
	max-height: 320px;
}

.wishlist-products .dfactory-card .product-image-link img,
.wishlist-products .dfactory-card .product-image-link .product-image-hover {
	position: absolute;
	top: 50%;
	left: 50%;
	width: auto !important;
	height: auto !important;
	max-width: 90%;
	max-height: 90%;
	transform: translate(-50%, -50%);
	object-fit: contain !important;
	min-height: 0 !important;
	aspect-ratio: unset !important;
}

.wishlist-products .dfactory-card .product-image-hover {
	display: none;
}

/* The shop grid's "hover the photo to reveal a second angle" effect fades
   .product-image-primary to opacity:0 to reveal .product-image-hover
   underneath — but that's display:none here, so hovering the image made it
   vanish with nothing to show in its place. Metal swatches already swap the
   photo directly via JS on this page, so cancel the fade entirely. */
.wishlist-products .dfactory-card .product-image-link.has-hover-image:hover .product-image-primary {
	opacity: 1;
}

.wishlist-products .dfactory-card-footer {
	padding: 14px 12px 16px;
}

.wishlist-grid.products {
	gap: 20px 18px;
}

.wishlist-products > ul.products.wishlist-grid,
.wishlist-grid.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 28px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.wishlist-grid.products li.product {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

@media (max-width: 1024px) {
	.wishlist-products > ul.products.wishlist-grid,
	.wishlist-grid.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 600px) {
	.wishlist-products > ul.products.wishlist-grid,
	.wishlist-grid.products {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 768px) {
	.shop-layout {
		padding: 24px 16px 48px;
	}

	.shop-toolbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.shop-toolbar .woocommerce-ordering,
	.shop-toolbar .woocommerce-ordering select {
		width: 100%;
		min-width: 0;
	}

	.shop-layout ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px 12px;
	}
}

@media (max-width: 480px) {
	.shop-layout ul.products {
		grid-template-columns: 1fr !important;
	}
}

/* Search results */
.search-results-page {
	padding: 32px 0 64px;
}

.search-inline-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
	max-width: 640px;
}

.search-inline-form input[type="search"] {
	flex: 1 1 240px;
	padding: 12px 16px;
	border: 1px solid var(--color-border, #e8e4df);
	border-radius: 2px;
	font-size: 0.95rem;
}

.search-results-grid.products {
	margin: 0;
	padding: 0;
	list-style: none;
}

.search-empty-state {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}

.search-suggestions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 20px 0 28px;
}

.search-suggestion-chip {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--color-border, #e8e4df);
	border-radius: 999px;
	font-size: 0.88rem;
	color: var(--color-brand, #3d1414);
	transition: background 0.15s, color 0.15s;
}

.search-suggestion-chip:hover {
	background: var(--color-brand, #3d1414);
	border-color: var(--color-brand, #3d1414);
	color: #fff;
}

.search-empty-state .content-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

