/*
 * Dubai Bullion homepage product showcase.
 *
 * This stylesheet is deliberately scoped to the homepage product section so
 * it cannot alter the locked header/footer chrome or unrelated WordPress
 * content.
 */

body .db-home-page .home-products-section {
	width: 100%;
	margin: 0;
	padding: clamp(68px, 5vw, 120px) clamp(24px, 3.5vw, 110px) clamp(76px, 5.5vw, 135px);
	border-top: 1px solid #eef1f6;
	border-bottom: 1px solid #e7ebf2;
	background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
	color: #071d48;
	font-family: Arial, Helvetica, sans-serif;
	line-height: normal;
}

body .db-home-page .home-products-inner {
	width: min(1600px, 100%);
	margin: 0 auto;
}

body .db-home-page .home-products-head {
	max-width: 1150px;
	margin: 0 auto clamp(42px, 3vw, 72px);
	text-align: center;
}

body .db-home-page .home-products-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 13px;
	color: #9b7621;
	font-size: clamp(11px, .72vw, 16px);
	font-weight: 900;
	letter-spacing: .16em;
	text-transform: uppercase;
}

body .db-home-page .home-products-eyebrow::before,
body .db-home-page .home-products-eyebrow::after {
	width: 26px;
	height: 1px;
	background: #c59a35;
	content: "";
	opacity: .65;
}

body .db-home-page .home-products-head h2 {
	margin: 0;
	color: #061a56;
	font: 700 clamp(34px, 3vw, 58px)/1.06 Georgia, "Times New Roman", serif;
	letter-spacing: -.02em;
}

body .db-home-page .home-products-head p {
	max-width: 760px;
	margin: 18px auto 0;
	color: #68758a;
	font-size: clamp(14px, .9vw, 18px);
	line-height: 1.65;
}

body .db-home-page .home-products-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 25px auto 0;
}

body .db-home-page .home-metal-filters {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
}

body .db-home-page .home-metal-filter {
	min-width: 112px;
	min-height: 42px;
	padding: 10px 24px;
	border: 1.5px solid #c79a2d;
	border-radius: 999px;
	background: #fff;
	color: #061a56;
	cursor: pointer;
	font: 800 12px/1 Arial, Helvetica, sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
	transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

body .db-home-page .home-metal-filter:hover,
body .db-home-page .home-metal-filter:focus-visible {
	border-color: #8f7327;
	background: #fdf8e9;
	color: #634b10;
	outline: none;
}

body .db-home-page .home-metal-filter.active {
	border-color: #061a56;
	background: #061a56;
	box-shadow: 0 7px 18px rgba(6, 26, 86, .18);
	color: #fff;
}

body .db-home-page .home-category-filter {
	position: relative;
	flex: 0 0 auto;
}

body .db-home-page .home-category-filter-toggle {
	position: relative;
	min-width: 116px;
	min-height: 42px;
	padding: 10px 31px 10px 18px;
	border: 1.5px solid #c79a2d;
	border-radius: 999px;
	background: #fff;
	color: #061a56;
	cursor: pointer;
	font: 800 12px/1 Arial, Helvetica, sans-serif;
	letter-spacing: .08em;
	text-align: center;
	text-transform: uppercase;
	transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

body .db-home-page .home-category-filter-toggle::after {
	position: absolute;
	top: 50%;
	right: 15px;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	content: "";
	transform: translateY(-65%) rotate(45deg);
}

body .db-home-page .home-category-filter-toggle:hover,
body .db-home-page .home-category-filter-toggle:focus-visible,
body .db-home-page .home-category-filter-toggle[aria-expanded="true"] {
	border-color: #8f7327;
	background: #fdf8e9;
	color: #634b10;
	outline: none;
}

body .db-home-page .home-category-filter-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 20;
	display: grid;
	min-width: 180px;
	max-width: min(280px, calc(100vw - 32px));
	padding: 6px;
	border: 1px solid #d9c68d;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 14px 30px rgba(6, 26, 86, .16);
}

body .db-home-page .home-category-filter-menu[hidden] {
	display: none;
}

body .db-home-page .home-category-filter-option {
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #061a56;
	cursor: pointer;
	font: 800 11px/1.3 Arial, Helvetica, sans-serif;
	letter-spacing: .035em;
	text-align: left;
}

body .db-home-page .home-category-filter-option:hover,
body .db-home-page .home-category-filter-option:focus-visible,
body .db-home-page .home-category-filter-option.is-selected {
	background: #fdf8e9;
	color: #634b10;
	outline: none;
}

body .db-home-page .home-products-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	gap: clamp(18px, 1.3vw, 30px);
}

body .db-home-page .home-product-card {
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #dde3ec;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 32px rgba(8, 39, 78, .06);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body .db-home-page .home-product-card:hover {
	border-color: rgba(143, 115, 39, .42);
	box-shadow: 0 20px 48px rgba(8, 39, 78, .12);
	transform: translateY(-4px);
}

body .db-home-page .home-product-card[hidden],
body .db-home-page .home-product-card.home-product-hidden {
	display: none;
}

body .db-home-page .home-product-visual {
	display: grid;
	aspect-ratio: 1 / 1;
	height: auto;
	min-height: 0;
	flex: 0 0 auto;
	place-items: center;
	overflow: hidden;
	padding: 5%;
	border-bottom: 1px solid #edf0f4;
	background: radial-gradient(circle at 50% 15%, #fff 0, #fafbfc 43%, #edf1f5 100%);
}

body .db-home-page .home-product-photo {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center center;
}

body .db-home-page .home-product-image-missing {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #8b94a3;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

body .db-home-page .home-product-info {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	padding: clamp(18px, 1.2vw, 27px);
}

body .db-home-page .home-product-topmeta {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	min-height: 26px;
	margin-bottom: 10px;
}

body .db-home-page .home-metal-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 5px 8px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

body .db-home-page .home-metal-badge.gold {
	border: 1px solid #ead49a;
	background: #fff5d8;
	color: #765309;
}

body .db-home-page .home-metal-badge.silver {
	border: 1px solid #d4dce7;
	background: #eef2f7;
	color: #43516a;
}

body .db-home-page .home-product-kicker {
	min-width: 0;
	overflow: hidden;
	color: #8b6b22;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .07em;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

body .db-home-page .home-product-info h3 {
	min-height: 2.6em;
	margin: 0 0 14px;
	color: #0b214e;
	font-size: clamp(15px, .9vw, 19px);
	line-height: 1.3;
}

body .db-home-page .home-product-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	gap: 10px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #edf0f4;
}

body .db-home-page .home-product-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 40px;
	padding: 9px 10px;
	border: 1px solid transparent;
	border-radius: 7px;
	text-decoration: none;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .035em;
	line-height: 1.1;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

body .db-home-page .home-product-details {
	border-color: #061a56;
	background: #061a56;
	color: #fff;
}

body .db-home-page .home-product-details:hover,
body .db-home-page .home-product-details:focus-visible {
	border-color: #0b347f;
	background: #0b347f;
	color: #fff;
	outline: none;
}

body .db-home-page .home-products-empty[hidden] {
	display: none;
}

body .db-home-page .home-products-load-more-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: clamp(32px, 3vw, 48px) auto 0;
}

body .db-home-page .home-products-load-more-wrap[hidden] {
	display: none;
}

body .db-home-page .home-products-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	min-height: 44px;
	padding: 11px 18px;
	border: 1px solid #011F4B;
	border-radius: 5px;
	background: #011F4B;
	box-shadow: 0 7px 14px rgba(1, 31, 75, .12);
	color: #fff;
	cursor: pointer;
	font: 700 clamp(13px, .9vw, 15px)/1.1 Arial, Helvetica, sans-serif;
	letter-spacing: .04em;
	text-align: center;
	text-transform: uppercase;
	transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body .db-home-page .home-products-load-more:hover,
body .db-home-page .home-products-load-more:focus-visible {
	border-color: #0B347F;
	background: #0B347F;
	box-shadow: 0 11px 22px rgba(1, 31, 75, .2);
	color: #fff;
	outline: none;
	transform: translateY(-1px);
}

body .db-home-page .home-products-load-more:focus-visible {
	outline: 2px solid #c49b39;
	outline-offset: 3px;
}

body .db-home-page .home-products-load-more[hidden] {
	display: none;
}

body .db-home-page .home-products-empty {
	margin: 28px auto 0;
	color: #778196;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

@media (max-width: 1180px) {
	body .db-home-page .home-products-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	body .db-home-page .home-products-section {
		padding: 54px 24px 78px;
	}

	body .db-home-page .home-products-head {
		margin-bottom: 38px;
	}

	body .db-home-page .home-products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

}

@media (max-width: 560px) {
	body .db-home-page .home-products-section {
		padding: 46px 16px 64px;
	}

	body .db-home-page .home-products-head {
		margin-bottom: 32px;
	}

	body .db-home-page .home-products-head p {
		margin-top: 14px;
	}

	body .db-home-page .home-products-head h2 {
		font-size: 28px;
	}

	body .db-home-page .home-products-controls {
		gap: 8px;
		margin-top: 20px;
	}

	body .db-home-page .home-metal-filters {
		gap: 8px;
	}

	body .db-home-page .home-metal-filter {
		min-width: 96px;
		min-height: 38px;
		padding: 9px 18px;
		font-size: 11px;
	}

	body .db-home-page .home-category-filter-toggle {
		min-width: 110px;
		min-height: 38px;
		padding: 9px 28px 9px 16px;
		font-size: 11px;
	}

	body .db-home-page .home-category-filter-toggle::after {
		right: 13px;
	}

	body .db-home-page .home-category-filter-menu {
		max-width: calc(100vw - 32px);
	}

	body .db-home-page .home-products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	body .db-home-page .home-product-info {
		padding: 18px;
	}

	body .db-home-page .home-products-load-more-wrap {
		margin-top: 30px;
	}

	body .db-home-page .home-products-load-more {
		width: min(100%, 200px);
		min-width: 0;
		min-height: 44px;
		padding: 11px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body .db-home-page .home-product-card,
	body .db-home-page .home-metal-filter,
	body .db-home-page .home-category-filter-toggle,
	body .db-home-page .home-category-filter-option,
	body .db-home-page .home-product-button,
	body .db-home-page .home-products-load-more {
		transition: none;
	}
}
