/**
 * Single product page — FAQ accordion + "You May Also Like" grid.
 * Loaded on singular sg_product pages.
 *
 * All selectors use unique `sgfaq` / `sgyml` prefixes so they never collide
 * with the theme's global `.faq-item` / `.product-card` rules in main.css.
 */

/* ---------------------------------------------------------------------------
 * FAQ accordion
 * ------------------------------------------------------------------------- */
.sgfaq {
	margin: 48px auto 0;
	max-width: 820px;
}

.sgfaq__heading {
	font-size: 26px;
	font-weight: 700;
	color: #1f2937;
	text-align: center;
	margin: 0 0 28px;
}

.sgfaq__item {
	margin: 0 0 14px;
}

.sgfaq__q {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 22px 28px;
	font-size: 17px;
	font-weight: 600;
	color: #1f2937;
	cursor: pointer;
	list-style: none;
	background: #fdf3f3;
	border: 0;
	border-radius: 0;
	transition: color 0.2s ease, background 0.2s ease;
}

.sgfaq__q:hover {
	color: #c41230;
}

.sgfaq__q span {
	flex: 0 0 auto;
	margin-left: auto;
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	color: #c41230;
	transition: transform 0.25s ease;
}

.sgfaq__item.is-open .sgfaq__q span {
	transform: rotate(45deg);
}

/* Links inside the question / answer inherit the brand look. */
.sgfaq__q a,
.sgfaq__a-inner a {
	color: #c41230;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s ease;
}

.sgfaq__q a:hover,
.sgfaq__a-inner a:hover {
	color: #a30e25;
}

.sgfaq__a {
	overflow: hidden;
	max-height: 0;
	background: #fdf3f3;
	transition: max-height 0.35s ease;
}

.sgfaq__item.is-open .sgfaq__a {
	max-height: 1000px;
}

.sgfaq__a-inner {
	padding: 4px 28px 24px;
	font-size: 15px;
	line-height: 1.7;
	color: #4b5563;
}

.sgfaq__divider {
	height: 1px;
	background: #e5e7eb;
	margin: 32px 0;
}

.sgfaq__cta {
	text-align: center;
	margin: 8px 0 0;
}

.sgfaq__cta-btn {
	display: inline-block;
	padding: 14px 40px;
	background: #c41230;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 0;
	transition: background 0.2s ease, transform 0.2s ease;
}

.sgfaq__cta-btn:hover {
	background: #a30e25;
	transform: translateY(-1px);
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * You May Also Like
 * ------------------------------------------------------------------------- */
.sgyml {
	margin: 56px 0 0;
}

.sgyml__heading {
	font-size: 26px;
	font-weight: 700;
	color: #1f2937;
	text-align: center;
	margin: 0 0 28px;
}

.sgyml__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.sgyml__card {
	background: #f7f7f8;
	border-radius: 8px;
	overflow: hidden;
}

.sgyml__link {
	display: block;
	aspect-ratio: 1 / 1;
}

.sgyml__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.sgyml__card:hover .sgyml__img {
	transform: scale(1.05);
}

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

@media (max-width: 480px) {
	.sgyml__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.sgyml__heading {
		font-size: 22px;
	}
}


/* Desktop recommendation cards: image + product title */
.sgyml__content {
	display: none;
}

@media (min-width: 901px) {
	.sgyml {
		margin-top: 64px;
	}

	.sgyml__heading {
		font-size: 30px;
		margin-bottom: 32px;
	}

	.sgyml__heading::after {
		content: '';
		display: block;
		width: 48px;
		height: 3px;
		margin: 12px auto 0;
		background: #c41230;
		border-radius: 999px;
	}

	.sgyml__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 26px;
	}

	.sgyml__card {
		background: #fff;
		border: 1px solid #e6e8ec;
		border-radius: 14px;
		box-shadow: 0 8px 24px rgba(17, 24, 39, 0.07);
		transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	}

	.sgyml__link,
	.sgyml__link:hover {
		display: flex;
		flex-direction: column;
		height: 100%;
		aspect-ratio: auto;
		color: #1f2937;
		text-decoration: none;
	}

	.sgyml__img {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
		object-fit: cover;
	}

	.sgyml__content {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 18px 20px 20px;
	}

	.sgyml__title {
		display: -webkit-box;
		min-height: 50px;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		font-size: 17px;
		font-weight: 600;
		line-height: 1.48;
		color: #1f2937;
	}

	.sgyml__arrow {
		display: grid;
		flex: 0 0 36px;
		width: 36px;
		height: 36px;
		place-items: center;
		border-radius: 50%;
		background: #f5f5f6;
		color: #c41230;
		font-size: 20px;
		line-height: 1;
		transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
	}

	.sgyml__card:hover {
		transform: translateY(-4px);
		border-color: rgba(196, 18, 48, 0.28);
		box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12);
	}

	.sgyml__card:hover .sgyml__img {
		transform: scale(1.035);
	}

	.sgyml__card:hover .sgyml__arrow {
		transform: translateX(2px);
		background: #c41230;
		color: #fff;
	}
}
