/* =============================================================
   WooCommerce Product Story Sections — Frontend Styles
   ============================================================= */

/* Wrapper */
.wpss-product-story {
	margin: 2rem 0;
	width: 100%;
}

/* Section base */
.wpss-section {
	margin-bottom: 2.5rem;
}

.wpss-section-title {
	font-size: 1.3rem;
	font-weight: 600;
	margin: 0 0 1.25rem;
	color: inherit;
}

/* -------------------------------------------------------
   Feature Icons Grid
------------------------------------------------------- */
.wpss-icons-grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 140px, 1fr ) );
	gap: 1rem;
}

.wpss-icon-card {
	text-align: center;
	padding: 1.25rem 1rem;
	background: #f8f8f8;
	border-radius: 10px;
	transition: transform .2s ease, box-shadow .2s ease;
}

.wpss-icon-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.wpss-icon-card__icon {
	font-size: 2rem;
	line-height: 1;
	margin-bottom: .5rem;
}

.wpss-icon-card__title {
	font-size: .9rem;
	font-weight: 600;
	margin: 0 0 .3rem;
}

.wpss-icon-card__desc {
	font-size: .8rem;
	color: #666;
	margin: 0;
	line-height: 1.5;
}

/* -------------------------------------------------------
   Image + Text rows
------------------------------------------------------- */
.wpss-imgtext-row {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin-bottom: 2rem;
}

.wpss-imgtext-row--right {
	flex-direction: row-reverse;
}

.wpss-imgtext-row__image {
	flex: 0 0 42%;
	max-width: 42%;
}

.wpss-imgtext-row__image img.wpss-imgtext-img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}

.wpss-imgtext-placeholder {
	width: 100%;
	aspect-ratio: 4/3;
	background: #f0f0f0;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpss-imgtext-placeholder svg {
	width: 48px;
	height: 48px;
	color: #bbb;
}

.wpss-imgtext-row__text {
	flex: 1;
}

.wpss-imgtext-title {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0 0 .75rem;
}

.wpss-imgtext-desc {
	font-size: .9rem;
	color: #555;
	line-height: 1.7;
}

/* -------------------------------------------------------
   Stats Counter
------------------------------------------------------- */
.wpss-stats-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

.wpss-stat-card {
	flex: 1 1 120px;
	text-align: center;
	padding: 1.5rem 1rem;
	background: #f8f8f8;
	border-radius: 10px;
}

.wpss-stat-card__icon {
	font-size: 1.8rem;
	margin-bottom: .4rem;
}

.wpss-stat-card__number {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	margin-bottom: .4rem;
	color: inherit;
}

.wpss-stat-card__label {
	font-size: .8rem;
	color: #666;
}

/* -------------------------------------------------------
   Trust Badges
------------------------------------------------------- */
.wpss-trust-badges {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

.wpss-trust-badge {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .5rem 1rem;
	background: #f0f0f0;
	border-radius: 6px;
	font-size: .85rem;
	font-weight: 500;
	color: #333;
}

.wpss-trust-badge__icon {
	font-size: 1rem;
	line-height: 1;
}

/* -------------------------------------------------------
   FAQ Accordion
------------------------------------------------------- */
.wpss-faq-list {
	border-top: 1px solid #e5e5e5;
}

.wpss-faq-item {
	border-bottom: 1px solid #e5e5e5;
}

.wpss-faq-item__question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	background: none;
	border: none;
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	color: inherit;
	gap: 1rem;
}

.wpss-faq-item__question:hover {
	color: #96588a; /* WooCommerce purple — override to match theme */
}

.wpss-faq-item__arrow {
	display: inline-block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	transition: transform .25s ease;
}

.wpss-faq-item__question[aria-expanded="true"] .wpss-faq-item__arrow {
	transform: rotate(180deg);
}

.wpss-faq-item__answer {
	padding: 0 0 1rem;
	font-size: .9rem;
	color: #555;
	line-height: 1.7;
}

.wpss-faq-item__answer[hidden] {
	display: none;
}

/* -------------------------------------------------------
   CTA Banner
------------------------------------------------------- */
.wpss-section--cta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1.25rem;
	padding: 2rem;
	border-radius: 12px;
	text-align: center;
}

.wpss-cta__text {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
	color: #fff;
}

.wpss-cta__btn {
	display: inline-block;
	padding: .65rem 1.75rem;
	background: #fff;
	color: #1a1a1a;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: .9rem;
	transition: opacity .2s;
}

.wpss-cta__btn:hover {
	opacity: .88;
	color: #1a1a1a;
}

/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */
@media ( max-width: 768px ) {
	.wpss-imgtext-row,
	.wpss-imgtext-row--right {
		flex-direction: column;
	}

	.wpss-imgtext-row__image {
		flex: none;
		max-width: 100%;
		width: 100%;
	}

	.wpss-icons-grid {
		grid-template-columns: repeat( 2, 1fr );
	}

	.wpss-stat-card {
		flex: 1 1 80px;
	}
}

@media ( max-width: 480px ) {
	.wpss-icons-grid {
		grid-template-columns: 1fr 1fr;
	}
}
