/* Perfuma Fragrance Finder — quiz styles */
.pff-app {
	max-width: 640px;
	margin: 0 auto;
	background: #f3f3f3;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(20,20,40,.08);
	font-family: inherit;
	color: #1a1a2e;
	min-height: 640px;
	display: flex;
	flex-direction: column;
}

.pff-brand {
	background: #fff;
	padding: 22px 20px 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.pff-brand__icon {
	flex: 0 0 auto;
}
.pff-brand__text {
	font-size: 22px;
	font-weight: 800;
	color: #2d1b69;
	letter-spacing: -0.01em;
}

.pff-progress {
	background: #d9e6dd;
	height: 4px;
	position: relative;
	overflow: hidden;
}
.pff-progress__bar {
	background: #238b4a;
	height: 100%;
	width: 0;
	transition: width .35s ease;
}

.pff-stage {
	flex: 1 1 auto;
	padding: 28px 22px 22px;
	display: flex;
	flex-direction: column;
	min-height: 520px;
}

.pff-step__q {
	font-size: 24px;
	font-weight: 500;
	text-align: center;
	margin: 20px 0 26px;
	color: #1a1a2e;
	line-height: 1.3;
}

.pff-step__intro {
	font-size: 16px;
	color: #333;
	text-align: center;
	margin: 0 10px 30px;
	line-height: 1.55;
}

.pff-options {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 24px;
}
.pff-opt {
	display: block;
	width: 100%;
	padding: 16px 20px;
	font-size: 16px;
	font-weight: 500;
	background: #fff;
	color: #1a1a2e;
	border: 1.5px solid #1a1a2e;
	border-radius: 999px;
	cursor: pointer;
	text-align: center;
	transition: all .15s ease;
	font-family: inherit;
}
.pff-opt:hover { background: #f5f0ff; }
.pff-opt[aria-pressed="true"] {
	background: #2d1b69;
	border-color: #2d1b69;
	color: #fff;
}

.pff-grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 24px;
}
.pff-grid3 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 24px;
}
.pff-grid3 .pff-tile:nth-child(3) {
	grid-column: 1 / -1;
	max-width: 60%;
	margin: 0 auto;
	width: 100%;
}
.pff-tile {
	background: #fff;
	border: 2px solid transparent;
	border-radius: 10px;
	padding: 0;
	cursor: pointer;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color .15s ease, transform .15s ease;
	font-family: inherit;
	color: #1a1a2e;
}
.pff-tile:hover { transform: translateY(-2px); }
.pff-tile[aria-pressed="true"] {
	border-color: #2d1b69;
	box-shadow: 0 0 0 3px rgba(45,27,105,.12);
}
.pff-tile__img {
	aspect-ratio: 1 / 1;
	background: #eef0f4 center/cover no-repeat;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pff-tile__img svg { width: 70%; height: 70%; }
.pff-tile__label {
	padding: 14px 10px;
	font-weight: 700;
	font-size: 17px;
	text-align: center;
}

.pff-input,
.pff-search-input {
	width: 100%;
	padding: 16px 18px;
	border: 1.5px solid #c8c8d0;
	background: #fff;
	border-radius: 10px;
	font-size: 17px;
	font-family: inherit;
	color: #1a1a2e;
	outline: none;
	box-shadow: none;
}
.pff-input:focus,
.pff-search-input:focus {
	border-color: #2d1b69;
	box-shadow: 0 0 0 3px rgba(45,27,105,.12);
}

.pff-search-wrap { position: relative; }
.pff-search-results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #d8d8e0;
	border-radius: 10px;
	z-index: 10;
	max-height: 320px;
	overflow-y: auto;
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.pff-search-results:empty { display: none; }
.pff-search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f4;
}
.pff-search-item:last-child { border-bottom: 0; }
.pff-search-item:hover { background: #f7f5ff; }
.pff-search-item__thumb {
	width: 44px; height: 44px;
	background: #eef0f4 center/cover no-repeat;
	border-radius: 6px;
	flex: 0 0 auto;
}
.pff-search-item__text {
	flex: 1 1 auto;
	font-size: 15px;
}
.pff-search-item__text small { display: block; color: #888; font-size: 12px; }
.pff-search-item__add {
	color: #888;
	font-size: 22px;
	line-height: 1;
}

.pff-chip {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	background: #fff;
	border-radius: 10px;
	margin-top: 16px;
	border: 1px solid #e5e5ec;
}
.pff-chip__thumb {
	width: 52px; height: 52px;
	background: #eef0f4 center/cover no-repeat;
	border-radius: 8px;
	flex: 0 0 auto;
}
.pff-chip__text { flex: 1 1 auto; }
.pff-chip__brand { font-weight: 800; font-size: 15px; }
.pff-chip__name { text-transform: uppercase; font-size: 13px; color: #555; letter-spacing: .5px; }
.pff-chip__remove {
	background: transparent; border: 0; color: #238b4a;
	text-decoration: underline; cursor: pointer; font-size: 14px;
}

.pff-slider-wrap {
	padding: 30px 6px 10px;
}
.pff-slider-label {
	text-align: center;
	margin-bottom: 6px;
	color: #555;
}
.pff-slider-value {
	text-align: center;
	font-weight: 800;
	font-size: 22px;
	margin-bottom: 20px;
}
.pff-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	background: linear-gradient(to right, #238b4a var(--pff-lo,0%), #238b4a var(--pff-hi,100%), #cfd9d1 var(--pff-hi,100%));
	border-radius: 3px;
	outline: none;
	position: relative;
}
.pff-slider-row { position: relative; }
.pff-slider-row input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	position: absolute;
	left: 0; right: 0;
	width: 100%;
	pointer-events: none;
	height: 28px;
	margin: 0;
}
.pff-slider-row input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: #238b4a;
	border: 3px solid #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,.2);
	pointer-events: auto;
	cursor: pointer;
}
.pff-slider-row input[type="range"]::-moz-range-thumb {
	width: 22px; height: 22px;
	border-radius: 50%;
	background: #238b4a;
	border: 3px solid #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,.2);
	pointer-events: auto;
	cursor: pointer;
}
.pff-slider-track {
	height: 6px;
	background: #cfd9d1;
	border-radius: 3px;
	position: relative;
	margin: 10px 0;
}
.pff-slider-fill {
	position: absolute;
	height: 100%;
	background: #238b4a;
	border-radius: 3px;
}
.pff-slider-ticks {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: #1a1a2e;
	font-weight: 700;
	margin-top: 10px;
}

.pff-skip {
	text-align: center;
	color: #333;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 15px;
	margin: 6px 0 18px;
	font-family: inherit;
}
.pff-skip:hover { text-decoration: underline; }

.pff-actions {
	margin-top: auto;
	padding-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.pff-btn {
	display: block;
	width: 100%;
	padding: 16px 20px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 999px;
	border: 0;
	cursor: pointer;
	text-align: center;
	font-family: inherit;
	transition: opacity .15s ease;
}
.pff-btn-primary {
	background: #238b4a;
	color: #fff;
}
.pff-btn-primary:disabled {
	background: #bdbdc4;
	cursor: not-allowed;
}
.pff-btn-primary:hover:not(:disabled) { opacity: .92; }
.pff-btn-ghost {
	background: transparent;
	color: #238b4a;
	text-decoration: underline;
	padding: 12px;
	font-weight: 600;
}

.pff-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	margin: 18px 0 4px;
	color: #333;
	font-size: 15px;
}
.pff-checkbox input[type="checkbox"] {
	width: 20px; height: 20px;
}

/* Results */
.pff-results {
	text-align: center;
}
.pff-results__title {
	font-size: 22px;
	font-weight: 800;
	margin-bottom: 6px;
	color: #2d1b69;
}
.pff-results__sub {
	color: #555;
	margin-bottom: 24px;
}
.pff-results__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	text-align: left;
}
.pff-product {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	border: 1px solid #eee;
	transition: transform .15s ease, box-shadow .15s ease;
}
.pff-product:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0,0,0,.08);
	text-decoration: none;
}
.pff-product__img {
	aspect-ratio: 1 / 1;
	background: #f5f5f7 center/cover no-repeat;
}
.pff-product__body { padding: 10px 12px 14px; }
.pff-product__brand { font-weight: 800; font-size: 13px; color: #2d1b69; text-transform: uppercase; letter-spacing: .4px; }
.pff-product__name { font-size: 14px; line-height: 1.35; margin: 4px 0 6px; color: #1a1a2e; min-height: 38px; }
.pff-product__price { font-weight: 700; font-size: 14px; color: #1a1a2e; }
.pff-product__price del { color: #999; font-weight: 400; margin-right: 4px; }

.pff-spinner {
	margin: 40px auto;
	width: 36px; height: 36px;
	border: 3px solid #e5e5ec;
	border-top-color: #238b4a;
	border-radius: 50%;
	animation: pff-spin 1s linear infinite;
}
@keyframes pff-spin { to { transform: rotate(360deg); } }

@media (max-width: 540px) {
	.pff-app { border-radius: 0; box-shadow: none; }
	.pff-stage { padding: 22px 16px 18px; }
	.pff-step__q { font-size: 21px; }
	.pff-grid3 .pff-tile:nth-child(3) { max-width: 80%; }
}
