/*
 * UGGAUS – Product Category frontend components
 * Step 6 refactor.
 *
 * Contains:
 * - Top Content Banner
 * - How to Choose / FAQ cards
 */

/* =========================================================
   TOP CONTENT BANNER
   ========================================================= */
.uggaus-cat-top-banner {
	width: 100%;
	margin: 5px 0 5px;
	overflow: hidden;
}

.uggaus-cat-top-banner picture,
.uggaus-cat-top-banner img {
	display: block;
	width: 100%;
}

.uggaus-cat-top-banner img {
	height: auto;
	border-radius: 10px;
	object-fit: cover;
}

@media (max-width: 767px) {
	.uggaus-cat-top-banner {
		width: 100vw;
		max-width: 100vw;
		margin-top: 0;
		margin-bottom: 8px;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		border-radius: 0;
		overflow: hidden;
	}

	.uggaus-cat-top-banner picture,
	.uggaus-cat-top-banner img {
		width: 100vw;
		max-width: 100vw;
	}

	.uggaus-cat-top-banner img {
		border-radius: 0;
	}
}


/* =========================================================
   HOW TO CHOOSE / FAQ
   ========================================================= */
.uggaus-cat-help {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	margin: 34px 0 10px;
}

.uggaus-cat-help.uggaus-cat-help--single {
	grid-template-columns: minmax(0, 1fr);
}

.uggaus-cat-help-card {
	background: linear-gradient(180deg, #fffaf4 0%, #ffffff 34%, #ffffff 100%);
	border: 1px solid rgba(185, 103, 2, 0.14);
	border-radius: 14px;
	padding: 24px;
}

.uggaus-cat-help-card h2 {
	font-size: 20px;
	line-height: 1.3;
	font-weight: 500;
	color: #2b2118;
	margin: 0 0 14px;
}

.uggaus-howto-content {
	font-size: 14px;
	line-height: 1.65;
	color: #4a4037;
}

.uggaus-howto-content > *:first-child {
	margin-top: 0;
}

.uggaus-howto-content > *:last-child {
	margin-bottom: 0;
}

.uggaus-howto-content ul {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.uggaus-howto-content li {
	position: relative;
	padding-left: 28px;
	margin: 0 0 10px;
}

.uggaus-howto-content li:last-child {
	margin-bottom: 0;
}

.uggaus-howto-content li:before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 1px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	border: 1px solid #b96702;
	color: #b96702;
	font-size: 11px;
	line-height: 15px;
	text-align: center;
	font-weight: 700;
}

.uggaus-cat-faq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.uggaus-cat-faq-item {
	background: #fff;
	border: 1px solid rgba(43, 33, 24, 0.09);
	border-radius: 9px;
	overflow: hidden;
}

.uggaus-cat-faq-item summary {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	list-style: none;
	padding: 14px 20px 14px 16px;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 500;
	color: #2b2118;
}

.uggaus-cat-faq-item summary::-webkit-details-marker {
	display: none;
}

.uggaus-cat-faq-item summary::marker {
	content: "";
}

.uggaus-faq-question-text {
	display: block;
	min-width: 0;
}

.uggaus-faq-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	color: #7b7168;
	transform: rotate(0deg);
	transform-origin: center;
	transition: transform .18s ease, color .18s ease;
}

.uggaus-cat-faq-item[open] .uggaus-faq-arrow {
	transform: rotate(90deg);
}

.uggaus-cat-faq-item summary:hover .uggaus-faq-arrow {
	color: #b96702;
}

.uggaus-faq-answer {
	border-top: 1px solid rgba(43, 33, 24, 0.08);
	padding: 0 16px 15px;
	font-size: 14px;
	line-height: 1.65;
	color: #4a4037;
}

.uggaus-faq-answer > *:first-child {
	margin-top: 12px;
}

.uggaus-faq-answer > *:last-child {
	margin-bottom: 0;
}

@media (max-width: 849px) {
	.uggaus-cat-help {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-top: 26px;
	}

	.uggaus-cat-help-card {
		padding: 18px;
		border-radius: 12px;
	}

	.uggaus-cat-help-card h2 {
		font-size: 18px;
		margin-bottom: 12px;
	}

	.uggaus-howto-content,
	.uggaus-cat-faq-item summary,
	.uggaus-faq-answer {
		font-size: 13.5px;
	}
}
