/**
 * Product Marketing Section — Woodmart theme-matched
 * Uses CSS vars from the parent theme for full consistency.
 */

/* ── Container ─────────────────────────── */
.pm-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #eaeaea;
	font-family: var(--wd-text-font, "Cabin", Arial, Helvetica, sans-serif);
	color: var(--wd-text-color, #767676);
	font-size: 13px;
	line-height: 1.5;
}

/* ── Card base ─────────────────────────── */
.pm-card {
	border: 1px solid #e8e8e8;
	border-radius: var(--wd-brd-radius, 16px);
	background: #fff;
	overflow: hidden;
}

/* ── Shipping & Payment ────────────────── */
.pm-card-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #f8faf9;
	border-bottom: 1px solid #eee;
}

.pm-card-header h4 {
	margin: 0;
	font-family: var(--wd-title-font, "Geologica", Arial, sans-serif);
	font-weight: var(--wd-title-font-weight, 500);
	font-size: 13px;
	color: var(--wd-entities-title-color, #333);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pm-header-icon {
	width: 18px;
	height: 18px;
	color: var(--wd-primary-color, #88ad99);
	flex-shrink: 0;
}

/* Features list */
.pm-features {
	list-style: none;
	margin: 0;
	padding: 4px 16px 8px;
}

.pm-features li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	margin-bottom: 0 !important;
	font-size: 12.5px;
	line-height: 1.4;
}

.pm-features li + li {
	border-top: 1px solid #f5f5f5;
}

.pm-feat-icon {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.pm-feat-icon.green  { color: var(--wd-primary-color, #88ad99); }
.pm-feat-icon.blue   { color: #5a8fa8; }
.pm-feat-icon.orange { color: #c77a1e; }

.pm-features li strong {
	color: var(--wd-entities-title-color, #333);
	font-weight: 600;
}

.pm-delivery-highlight {
	color: var(--wd-primary-color, #88ad99);
	font-weight: 700;
}

/* ── Tooltip ───────────────────────────── */
.pm-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-left: 4px;
	cursor: help;
}

.pm-tooltip-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #ddd;
	color: #777;
	font-size: 9px;
	font-weight: 800;
	line-height: 1;
}

.pm-tooltip:hover .pm-tooltip-trigger { background: #ccc; }

.pm-tooltip-text {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--wd-entities-title-color, #333);
	color: #fff;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.45;
	width: 220px;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .15s, visibility .15s;
	z-index: 100;
	pointer-events: none;
	box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

.pm-tooltip-text::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: var(--wd-entities-title-color, #333);
}

.pm-tooltip:hover .pm-tooltip-text {
	opacity: 1;
	visibility: visible;
}

/* ── Urgency ───────────────────────────── */
.pm-urgency {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 16px 10px;
	padding: 7px 12px;
	background: #fdf6e3;
	border: 1px solid #f0dfa0;
	border-radius: 10px;
	font-size: 11.5px;
	font-weight: 600;
	color: #a67c00;
}

.pm-urgency-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: inherit;
}

/* ── Newsletter ────────────────────────── */
.pm-newsletter {
	background: #fdfbf3;
	border-color: #f0e9cc;
	padding: 16px 16px 12px;
	position: relative;
}

.pm-newsletter-badge {
	position: absolute;
	top: -1px;
	right: 16px;
	background: var(--wd-alternative-color, #fbbc34);
	color: #fff;
	padding: 3px 10px 5px;
	border-radius: 0 0 8px 8px;
	font-family: var(--wd-title-font, "Geologica", Arial, sans-serif);
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 2px 6px rgba(251,188,52,.25);
}

.pm-newsletter-title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 2px;
	font-family: var(--wd-title-font, "Geologica", Arial, sans-serif);
	font-size: 13.5px;
	font-weight: var(--wd-title-font-weight, 500);
	color: var(--wd-entities-title-color, #333);
}

.pm-newsletter-title .pm-nl-icon {
	font-size: 16px;
	line-height: 1;
}

.pm-newsletter-subtitle {
	font-size: 11.5px;
	color: #999;
	margin: 0 0 12px;
}

/* Newsletter row: perks left, button right */
.pm-newsletter-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Newsletter perks */
.pm-newsletter-perks {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	min-width: 0;
}

/* Newsletter CTA button */
.pm-newsletter-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	flex-shrink: 0;
	padding: 10px 28px;
	background: #f5e6b8;
	color: #6b5c2e !important;
	border: 1.5px solid #e8d48f;
	border-radius: var(--wd-form-brd-radius, 35px);
	font-family: var(--wd-title-font, "Geologica", Arial, sans-serif);
	font-size: 12px;
	font-weight: 500;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}

.pm-newsletter-cta:hover {
	background: #eed992;
	border-color: #d4be6a;
	color: #4a3f1e !important;
}

.pm-newsletter-perks li {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	padding: 2px 0;
	margin-bottom: 0 !important;
}

.pm-perk-icon {
	width: 13px;
	height: 13px;
	color: var(--wd-primary-color, #88ad99);
	flex-shrink: 0;
}

/* Newsletter status message */
.pm-newsletter-msg {
	display: none;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 10px;
	text-align: center;
}

.pm-newsletter-msg.pm-msg-success {
	display: block;
	background: #edf7f0;
	color: var(--wd-primary-color, #88ad99);
	border: 1px solid #d0e8d6;
}

.pm-newsletter-msg.pm-msg-error {
	display: block;
	background: #fef7ee;
	color: #c77a1e;
	border: 1px solid #f0dfa0;
}

/* ── Trust / Why us ────────────────────── */
.pm-trust {
	padding: 14px 16px;
}

.pm-trust h4 {
	margin: 0 0 10px;
	font-family: var(--wd-title-font, "Geologica", Arial, sans-serif);
	font-weight: var(--wd-title-font-weight, 500);
	font-size: 13px;
	color: var(--wd-entities-title-color, #333);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pm-trust-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.pm-trust-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px;
	background: #f8faf9;
	border-radius: 10px;
	border: 1px solid #eee;
}

.pm-trust-icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	color: var(--wd-primary-color, #88ad99);
}

.pm-trust-label {
	font-size: 11.5px;
	font-weight: 500;
	color: var(--wd-entities-title-color, #333);
	line-height: 1.35;
}

/* ── Guarantee ─────────────────────────── */
.pm-guarantee {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: #f8faf9;
	border-color: #dde8e0;
}

.pm-guarantee-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	color: var(--wd-primary-color, #88ad99);
}

.pm-guarantee-title {
	font-family: var(--wd-title-font, "Geologica", Arial, sans-serif);
	font-size: 12.5px;
	font-weight: var(--wd-title-font-weight, 500);
	color: var(--wd-entities-title-color, #333);
	margin-bottom: 1px;
}

.pm-guarantee-desc {
	font-size: 11.5px;
	color: #999;
	line-height: 1.4;
}

/* ── Social ────────────────────────────── */
.pm-social {
	padding: 14px 16px;
	text-align: center;
	background: #fafafa;
}

.pm-social h4 {
	margin: 0 0 2px;
	font-family: var(--wd-title-font, "Geologica", Arial, sans-serif);
	font-weight: var(--wd-title-font-weight, 500);
	font-size: 13px;
	color: var(--wd-entities-title-color, #333);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pm-social-subtitle {
	font-size: 11.5px;
	color: #999;
	margin: 0 0 10px;
}

.pm-social-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.pm-social-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 14px;
	border-radius: var(--wd-form-brd-radius, 35px);
	font-family: var(--wd-title-font, "Geologica", Arial, sans-serif);
	font-size: 12px;
	font-weight: 500;
	text-decoration: none !important;
	transition: opacity .2s, transform .15s;
	color: #fff !important;
}

.pm-social-link:hover {
	opacity: .88;
	transform: translateY(-1px);
	color: #fff !important;
}

.pm-social-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	fill: currentColor;
}

.pm-social-link.pm-ig {
	background: linear-gradient(135deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
}

.pm-social-link.pm-fb { background: #1877f2; }
.pm-social-link.pm-tt { background: #010101; }

/* ── Responsive ────────────────────────── */
@media (max-width: 600px) {
	.pm-section { gap: 8px; margin-top: 16px; padding-top: 14px; }
	.pm-newsletter { padding: 14px 14px 10px; }
	.pm-newsletter-form { flex-direction: column; }
	.pm-newsletter-form button { width: 100%; }
	.pm-trust-grid { grid-template-columns: 1fr; }
	.pm-social-links { flex-wrap: wrap; }
	.pm-social-link { flex: 1; justify-content: center; min-width: 90px; }
	.pm-tooltip-text { width: 190px; left: auto; right: -8px; transform: none; }
	.pm-tooltip-text::after { left: auto; right: 12px; transform: none; }
}
