/* ==========================================================================
   find.css — progressive-disclosure wizard at /najit
   Editorial/magazine aesthetic: high contrast, warm cream canvas, soft
   terracotta accents, ring-outline selected state (no harsh black fill).
   Distinct from shopstyle.bg's basic grid-of-logos approach.
   ========================================================================== */

.fd-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 28px 160px;   /* bottom padding leaves room for sticky footer */
	color: #1a1a1a;
	background: #fdfbf7;
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	min-height: 100vh;
}
@media (max-width: 560px) { .fd-wrap { padding: 24px 16px 160px; } }

/* Kill the bootstrap container cage for the wizard page too */
body:has(.fd-wrap) .content_container.container,
body:has(.fd-wrap) .content_container.container > .row,
body:has(.fd-wrap) .content_container.container > .row > .content {
	width: 100% !important;
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* ---- Crumbs ---- */
.fd-crumbs { font-size: 13px; color: #1a1a1a; margin-bottom: 18px; font-weight: 500; }
.fd-crumbs a { color: #1a1a1a; text-decoration: none; font-weight: 600; }
.fd-crumbs a:hover { color: #c4512f; }
.fd-crumbs__sep { margin: 0 8px; color: #b2a896; }

/* ---- Hero ---- */
.fd-hero {
	text-align: center;
	padding: 28px 12px 36px;
	margin-bottom: 26px;
}
.fd-hero__kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: #2e8b57; margin-bottom: 14px; padding: 6px 16px; background: rgba(46,139,87,0.1); border-radius: 999px; }
.fd-hero__title { font-size: clamp(36px, 5.4vw, 64px); font-weight: 900; letter-spacing: -2px; margin: 0 0 16px; line-height: 1.02; color: #c4512f; }
.fd-hero__sub { font-size: 17px; color: #1a1a1a; max-width: 640px; margin: 0 auto; line-height: 1.55; font-weight: 500; }

/* ---- Progress bar ---- */
.fd-progress {
	display: flex; align-items: center; justify-content: center;
	gap: 14px;
	padding: 14px 22px;
	background: #1a1a1a;
	color: #fff;
	border-radius: 999px;
	margin: 0 auto 22px;
	max-width: 540px;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.fd-progress__dots { display: flex; gap: 8px; }
.fd-progress__dot {
	width: 9px; height: 9px; border-radius: 50%;
	background: rgba(255,255,255,0.2);
	transition: all .28s ease;
}
.fd-progress__dot.is-done { background: #c4512f; }
.fd-progress__dot.is-active { background: #fff; width: 28px; border-radius: 999px; }
.fd-progress__label { color: rgba(255,255,255,0.78); letter-spacing: 0.4px; }
.fd-progress__label span { color: #fff; font-weight: 800; }

/* ---- Live count pill (shown under progress bar, updates in real-time) ---- */
.fd-live {
	text-align: center;
	margin: 0 auto 24px;
	padding: 10px 20px;
	background: rgba(46,139,87,0.08);
	border: 1px solid rgba(46,139,87,0.22);
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #1a1a1a;
	font-weight: 600;
}
.fd-live::before {
	content: '';
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #2e8b57;
	box-shadow: 0 0 0 4px rgba(46,139,87,0.18);
	animation: fd-pulse 1.8s ease-in-out infinite;
}
@keyframes fd-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: 0.55; transform: scale(0.85); }
}
.fd-live strong {
	color: #c4512f;
	font-weight: 900;
	font-size: 17px;
	letter-spacing: 0.2px;
}
.fd-live-wrap { text-align: center; margin: 0 0 24px; }

/* ---- Chip bar ---- */
.fd-chips {
	display: flex; flex-wrap: wrap; gap: 8px;
	justify-content: center;
	margin: 0 auto 34px;
	max-width: 960px;
	min-height: 0;
	transition: min-height .2s ease;
}
.fd-chips.has-items { min-height: 42px; }
.fd-chip {
	display: inline-flex; align-items: center; gap: 8px;
	background: #fff;
	border: 2px solid #1a1a1a;
	color: #1a1a1a;
	padding: 7px 14px 7px 16px;
	border-radius: 999px;
	font-size: 13px; font-weight: 700;
	cursor: pointer;
	transition: all .18s ease;
	font-family: inherit;
}
.fd-chip:hover { background: #c4512f; border-color: #c4512f; color: #fff; transform: translateY(-1px); }
.fd-chip i { font-size: 10px; opacity: 0.72; }

/* ---- Steps ---- */
.fd-step { display: none; margin-bottom: 48px; }
.fd-step.is-active { display: block; animation: fd-fade-in .4s ease; }
.fd-step--hidden { display: none !important; }

@keyframes fd-fade-in {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

.fd-step__head {
	display: flex; gap: 22px; align-items: flex-start;
	margin-bottom: 32px;
	padding-bottom: 22px;
	border-bottom: 1px solid #e7d9c3;
}
.fd-step__num {
	font-family: "Poppins", serif;
	width: 68px; height: 68px;
	border-radius: 50%;
	background: #fff;
	border: 2.5px solid #1a1a1a;
	color: #1a1a1a;
	display: flex; align-items: center; justify-content: center;
	font-size: 30px; font-weight: 900;
	flex-shrink: 0;
	position: relative;
}
.fd-step__num::before {
	content: '';
	position: absolute;
	top: -6px; right: -6px;
	width: 18px; height: 18px;
	background: #c4512f;
	border-radius: 50%;
	border: 3px solid #fdfbf7;
}
.fd-step__title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 900; letter-spacing: -1.1px; margin: 4px 0 6px; line-height: 1.05; color: #c4512f; }
.fd-step__sub { font-size: 16px; color: #1a1a1a; margin: 0; line-height: 1.55; max-width: 640px; font-weight: 500; }

/* ---- Tile grid ---- */
.fd-tiles { display: grid; gap: 14px; }
.fd-tiles--4 { grid-template-columns: repeat(4, 1fr); }
.fd-tiles--5 { grid-template-columns: repeat(5, 1fr); }
.fd-tiles--7 { grid-template-columns: repeat(7, 1fr); }
.fd-tiles--8 { grid-template-columns: repeat(8, 1fr); }
.fd-tiles--swatches { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
@media (max-width: 960px) { .fd-tiles--5 { grid-template-columns: repeat(4, 1fr); } .fd-tiles--8 { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 780px) { .fd-tiles--4 { grid-template-columns: repeat(2, 1fr); } .fd-tiles--7 { grid-template-columns: repeat(4, 1fr); } .fd-tiles--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .fd-tiles--5, .fd-tiles--8 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .fd-tiles--4 { grid-template-columns: repeat(2, 1fr); } .fd-tiles--7, .fd-tiles--5 { grid-template-columns: repeat(3, 1fr); } }

/* ---- Tile — soft editorial selected state (not harsh black fill) ---- */
.fd-tile {
	position: relative;
	display: flex; flex-direction: column; align-items: center;
	padding: 18px 14px;
	background: #fff;
	border: 2px solid #e7d9c3;
	border-radius: 16px;
	cursor: pointer;
	transition: all .2s ease;
	text-align: center;
}
.fd-tile:hover { border-color: #1a1a1a; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.fd-tile input { position: absolute; opacity: 0; pointer-events: none; }

.fd-tile.is-selected {
	border-color: #c4512f;
	background: #fff;
	box-shadow:
		0 0 0 4px rgba(196,81,47,0.12),
		0 12px 30px rgba(196,81,47,0.18);
	transform: translateY(-4px);
}
.fd-tile.is-selected .fd-tile__label { color: #c4512f; }
.fd-tile.is-selected .fd-tile__icon { color: #c4512f; }
.fd-tile.is-selected::after {
	content: '\f00c';
	font-family: 'Font Awesome 5 Free', FontAwesome;
	font-weight: 900;
	position: absolute; top: -8px; right: -8px;
	width: 26px; height: 26px; border-radius: 50%;
	background: #c4512f; color: #fff;
	border: 3px solid #fdfbf7;
	display: flex; align-items: center; justify-content: center;
	font-size: 10px;
	box-shadow: 0 4px 12px rgba(196,81,47,0.32);
}

.fd-tile__visual {
	width: 100%; aspect-ratio: 1/1;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 12px; overflow: hidden;
	border-radius: 12px;
	background: #f5ece2;
}
.fd-tile--compact .fd-tile__visual { aspect-ratio: 1/0.65; }
.fd-tile--lg .fd-tile__visual { aspect-ratio: 1/1.1; border-radius: 14px; }
.fd-tile__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.fd-tile:hover .fd-tile__visual img { transform: scale(1.05); }
.fd-tile__icon { font-size: 40px; color: #1a1a1a; }
.fd-tile__label { font-size: 15px; font-weight: 700; color: #1a1a1a; letter-spacing: -0.2px; }
.fd-tile__count { font-size: 11.5px; color: #1a1a1a; margin-top: 4px; font-weight: 600; }

.fd-tile--size { padding: 20px 10px; }
.fd-tile--size .fd-tile__label { font-size: 18px; font-weight: 800; letter-spacing: 0.3px; }

/* Swatch */
.fd-tile--swatch { padding: 14px 10px; }
.fd-swatch {
	display: block; width: 64px; height: 64px; border-radius: 50%;
	border: 1px solid rgba(0,0,0,.1); margin: 0 auto 10px;
	box-shadow: inset 0 1px 4px rgba(0,0,0,.1);
}

/* ---- Brand search input ---- */
.fd-brand-search {
	position: relative;
	margin-bottom: 22px;
	max-width: 540px;
}
.fd-brand-search i {
	position: absolute; top: 50%; left: 22px;
	transform: translateY(-50%);
	color: #1a1a1a; font-size: 15px;
}
.fd-brand-search input {
	width: 100%;
	padding: 16px 22px 16px 52px;
	border: 2px solid #e7d9c3;
	border-radius: 999px;
	background: #fff;
	font-size: 15px;
	font-family: inherit;
	color: #1a1a1a;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.fd-brand-search input::placeholder { color: #1a1a1a; }
.fd-brand-search input:focus { border-color: #1a1a1a; box-shadow: 0 0 0 4px rgba(26,26,26,0.06); }

/* ---- Brand tiles ---- */
.fd-brands {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
	gap: 12px;
	max-height: 620px;
	overflow-y: auto;
	padding: 6px;
	scrollbar-width: thin;
}
.fd-brand {
	position: relative;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 18px 10px;
	background: #fff;
	border: 2px solid #e7d9c3;
	border-radius: 14px;
	cursor: pointer;
	transition: all .2s ease;
	text-align: center;
	gap: 10px;
	min-height: 120px;
}
.fd-brand:hover { border-color: #1a1a1a; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.fd-brand input { position: absolute; opacity: 0; pointer-events: none; }
.fd-brand.is-selected {
	border-color: #c4512f;
	box-shadow:
		0 0 0 4px rgba(196,81,47,0.12),
		0 10px 26px rgba(196,81,47,0.2);
}
.fd-brand.is-selected .fd-brand__name { color: #c4512f; }
.fd-brand.is-selected::after {
	content: '\f00c'; font-family: 'Font Awesome 5 Free', FontAwesome; font-weight: 900;
	position: absolute; top: -8px; right: -8px;
	width: 24px; height: 24px; border-radius: 50%;
	background: #c4512f; color: #fff;
	border: 3px solid #fdfbf7;
	display: flex; align-items: center; justify-content: center; font-size: 10px;
	box-shadow: 0 4px 12px rgba(196,81,47,0.3);
}
.fd-brand__logo {
	max-width: 100%; max-height: 54px; width: auto; height: auto;
	object-fit: contain;
}
.fd-brand__initials {
	display: inline-flex; align-items: center; justify-content: center;
	width: 54px; height: 54px;
	background: #f5ece2;
	color: #1a1a1a;
	border-radius: 50%;
	font-size: 18px; font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.fd-brand__name { font-size: 12.5px; font-weight: 700; color: #1a1a1a; line-height: 1.3; }
.fd-brand-empty { padding: 24px; color: #1a1a1a; font-size: 14px; text-align: center; font-style: italic; }

/* ---- Sticky footer actions ---- */
.fd-sticky {
	position: fixed;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	display: flex; align-items: center; gap: 12px;
	padding: 12px 14px;
	background: rgba(255,255,255,0.97);
	backdrop-filter: blur(18px);
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 999px;
	box-shadow: 0 16px 58px rgba(0,0,0,.14);
	z-index: 50;
	max-width: calc(100vw - 32px);
}
@media (max-width: 560px) {
	.fd-sticky { width: calc(100vw - 24px); padding: 10px 12px; gap: 8px; }
	.fd-sticky .fd-btn { padding: 12px 18px; font-size: 14px; }
	.fd-sticky .fd-btn--link { padding: 12px 10px; font-size: 13px; }
}

.fd-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: 14.5px; font-weight: 700;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all .18s ease;
	white-space: nowrap;
	font-family: inherit;
	letter-spacing: 0.2px;
}
.fd-btn:disabled { opacity: .35; cursor: not-allowed; transform: none !important; }
.fd-btn--primary { background: #c4512f; color: #fff; }
.fd-btn--primary:not(:disabled):hover { background: #a34223; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(196,81,47,0.32); text-decoration: none; }
.fd-btn--ghost { background: transparent; color: #1a1a1a; border-color: #1a1a1a; }
.fd-btn--ghost:not(:disabled):hover { background: #1a1a1a; color: #fff; text-decoration: none; }
.fd-btn--link { background: transparent; color: #1a1a1a; padding: 14px 14px; }
.fd-btn--link:hover { color: #c4512f; text-decoration: underline; }

/* ================ Results page ================ */
.fd-results-head {
	padding: 24px 0 32px;
	border-bottom: 1px solid #e7d9c3;
	margin-bottom: 36px;
}
.fd-results-head__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; letter-spacing: -1.2px; margin: 0 0 18px; color: #0f0f0f; line-height: 1.05; }
.fd-results-head__filters { display: flex; flex-wrap: wrap; gap: 8px 12px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 14px; color: #1a1a1a; }
.fd-results-head__filters li { padding: 7px 16px; background: #f5ece2; border-radius: 999px; font-weight: 600; }
.fd-results-head__filters li strong { font-weight: 800; color: #c4512f; margin-right: 4px; }

/* Relaxed-filters notice — shown when the wizard had to drop constraints to find products */
.fd-relaxed {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: #fff6e8;
	border: 1.5px solid #c4512f;
	border-left-width: 5px;
	border-radius: 12px;
	padding: 14px 18px;
	margin: 0 0 18px;
	color: #1a1a1a;
	font-size: 14px;
	line-height: 1.5;
}
.fd-relaxed i { color: #c4512f; font-size: 20px; margin-top: 1px; flex-shrink: 0; }
.fd-relaxed strong { color: #c4512f; }

.fd-results-head__actions { display: flex; gap: 10px; }

.fd-results { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
@media (max-width: 1100px) { .fd-results { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .fd-results { grid-template-columns: repeat(2, 1fr); } }

.fd-prod { display: block; background: #fff; border: 1px solid #e7d9c3; border-radius: 12px; overflow: hidden; transition: all .2s; text-decoration: none; color: inherit; }
.fd-prod:hover { border-color: #1a1a1a; box-shadow: 0 12px 28px rgba(0,0,0,.09); transform: translateY(-3px); text-decoration: none; color: inherit; }
.fd-prod__img { display: block; position: relative; aspect-ratio: 3/4; background: #fbf7ef; overflow: hidden; }
.fd-prod__img img { width: 100%; height: 100%; object-fit: contain; }
.fd-prod__discount { position: absolute; top: 10px; left: 10px; background: #c4512f; color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 800; }
.fd-prod__meta { padding: 14px; }
.fd-prod__title { font-size: 13px; line-height: 1.38; color: #1a1a1a; margin-bottom: 8px; height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fd-prod__price-now { font-size: 15.5px; font-weight: 800; color: #0f0f0f; }
.fd-prod__price-old { font-size: 12px; text-decoration: line-through; color: #1a1a1a; margin-left: 6px; }

.fd-empty { padding: 80px 24px; text-align: center; background: #f5ece2; border-radius: 18px; }
.fd-empty p { font-size: 18px; color: #1a1a1a; margin-bottom: 22px; font-weight: 600; }
