/* Pertify Pulse — in-post shop + sticky bar (branded) */

:root {
	--ao-pulse-charcoal: #2c2420;
	--ao-pulse-ink: #1c1917;
	--ao-pulse-peach: #c4897a;
	--ao-pulse-peach-deep: #b3786a;
	--ao-pulse-stone: #78716c;
	--ao-pulse-mist: #e7e5e4;
	--ao-pulse-paper: #f7f5f3;
	--ao-pulse-white: #ffffff;
	--ao-pulse-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--ao-pulse-serif: Georgia, "Times New Roman", serif;
}

body.ao-pulse-singular #sidebar,
body.ao-pulse-singular .et_pb_widget_area,
body.ao-pulse-singular.et_right_sidebar #sidebar,
body.ao-pulse-singular.et_left_sidebar #sidebar {
	display: none !important;
}

body.ao-pulse-singular #left-area,
body.ao-pulse-singular.et_no_sidebar #left-area {
	width: 100% !important;
	max-width: 100%;
	padding-right: 0 !important;
	float: none !important;
}

body.ao-pulse-singular .et_post_meta_wrapper #comment-wrap,
body.ao-pulse-singular #comment-wrap,
body.ao-pulse-singular .comment-respond {
	display: none !important;
}

/* —— Shop band: editorial, not a Woo card —— */
.ao-pulse-shop {
	margin: 2rem 0 2.5rem;
	padding: 1.75rem 0 1.85rem;
	border: none;
	border-top: 1px solid var(--ao-pulse-mist);
	border-bottom: 1px solid var(--ao-pulse-mist);
	border-radius: 0;
	background: linear-gradient(180deg, var(--ao-pulse-paper) 0%, var(--ao-pulse-white) 42%);
	font-family: var(--ao-pulse-sans);
	box-shadow: none;
}

.ao-pulse-shop__inner {
	max-width: 420px;
	margin: 0 auto;
	padding: 0 1rem;
}

.ao-pulse-shop__meta {
	text-align: center;
	margin-bottom: 1.35rem;
}

.ao-pulse-shop__eyebrow {
	display: block;
	margin: 0 0 0.45rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ao-pulse-stone);
}

.ao-pulse-shop__title {
	margin: 0 0 0.55rem;
	font-family: var(--ao-pulse-serif);
	font-size: 1.2rem;
	font-weight: 400;
	color: var(--ao-pulse-charcoal);
	line-height: 1.35;
	letter-spacing: 0.01em;
}

.ao-pulse-shop__price {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ao-pulse-charcoal);
	letter-spacing: 0.02em;
}

.ao-pulse-shop__price .price,
.ao-pulse-shop__price .woocommerce-Price-amount {
	font-weight: 600;
	color: var(--ao-pulse-charcoal);
}

.ao-pulse-shop__price del {
	opacity: 0.5;
	font-weight: 400;
	margin-right: 0.4rem;
	font-size: 0.92em;
}

.ao-pulse-shop__price ins {
	text-decoration: none;
	color: var(--ao-pulse-peach-deep);
}

.ao-pulse-shop__soldout {
	margin: 0.75rem 0;
	text-align: center;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.8rem;
	color: var(--ao-pulse-stone);
}

.ao-pulse-shop__size-label {
	margin: 0 0 0.65rem;
	text-align: center;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ao-pulse-stone);
}

.ao-pulse-shop-form {
	margin: 0;
}

/* Size chips */
.ao-pulse-size-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0 0 0.15rem;
}

.ao-pulse-size-chip {
	min-width: 3rem;
	height: 2.75rem;
	padding: 0 0.85rem;
	border: 1.5px solid #d6d3d1;
	background: var(--ao-pulse-white);
	color: var(--ao-pulse-charcoal);
	border-radius: 2px;
	font-family: var(--ao-pulse-sans);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.ao-pulse-size-chip:hover:not(:disabled):not(.is-disabled) {
	border-color: var(--ao-pulse-charcoal);
}

.ao-pulse-size-chip.is-selected {
	border-color: var(--ao-pulse-charcoal);
	background: var(--ao-pulse-charcoal);
	color: var(--ao-pulse-white);
}

.ao-pulse-size-chip.is-in-cart:not(.is-selected),
.ao-pulse-sticky__size.is-in-cart:not(.is-selected) {
	border-color: var(--ao-pulse-peach);
	box-shadow: inset 0 0 0 1px var(--ao-pulse-peach);
}

.ao-pulse-size-chip.is-in-cart::after,
.ao-pulse-sticky__size.is-in-cart::after {
	content: "";
	display: inline-block;
	width: 0.4rem;
	height: 0.4rem;
	margin-left: 0.35rem;
	border-radius: 50%;
	background: var(--ao-pulse-peach);
	vertical-align: middle;
}

.ao-pulse-size-chip.is-selected.is-in-cart::after,
.ao-pulse-sticky__size.is-selected.is-in-cart::after {
	background: #e8b4a8;
}

.ao-pulse-size-chip.is-disabled,
.ao-pulse-size-chip:disabled {
	opacity: 0.38;
	cursor: not-allowed;
	text-decoration: line-through;
	border-style: dashed;
}

.ao-pulse-shop__hint {
	display: block;
	margin: 0.75rem 0 0.35rem;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--ao-pulse-stone);
	min-height: 1.25em;
	line-height: 1.35;
}

.ao-pulse-shop__hint[hidden] {
	display: none !important;
}

.ao-pulse-shop__hint.is-error {
	color: #9a3412;
}

.ao-pulse-shop__cart-cta {
	display: block;
	margin: 0.75rem 0 0.35rem;
	text-align: center;
	min-height: 1.25em;
	line-height: 1.35;
}

.ao-pulse-shop__cart-cta[hidden] {
	display: none !important;
}

.ao-pulse-shop__cart-link {
	display: inline-block;
	font-family: var(--ao-pulse-sans);
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ao-pulse-peach) !important;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.ao-pulse-shop__cart-link:hover {
	color: var(--ao-pulse-peach-deep) !important;
	border-bottom-color: var(--ao-pulse-peach-deep);
}

/* Woo injects .added_to_cart after AJAX — we already show View cart under sizes. */
.ao-pulse-shop a.added_to_cart,
.ao-pulse-shop .added_to_cart.wc-forward {
	display: none !important;
}

.ao-pulse-shop .single_add_to_cart_button,
.ao-pulse-shop .ao-pulse-atc {
	display: block !important;
	width: 100%;
	max-width: 100%;
	margin: 0.35rem 0 0 !important;
	padding: 1rem 1.5rem !important;
	background: var(--ao-pulse-peach) !important;
	border: none !important;
	border-radius: 2px !important;
	color: #fff !important;
	font-family: var(--ao-pulse-sans) !important;
	font-size: 0.8rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.12s ease;
	box-shadow: 0 1px 0 rgba(44, 36, 32, 0.08);
}

.ao-pulse-shop .single_add_to_cart_button:hover,
.ao-pulse-shop .ao-pulse-atc:hover {
	background: var(--ao-pulse-peach-deep) !important;
}

.ao-pulse-shop .single_add_to_cart_button:active:not(:disabled) {
	transform: translateY(1px);
}

.ao-pulse-shop .single_add_to_cart_button:disabled,
.ao-pulse-shop .single_add_to_cart_button.disabled,
.ao-pulse-shop .ao-pulse-atc:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.ao-pulse-shop__actions-extra {
	margin: 1rem 0 0;
	padding-top: 0.85rem;
	border-top: 1px solid var(--ao-pulse-mist);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 1.5rem;
	font-size: 0.82rem;
}

.ao-pulse-shop__size-chart-btn,
.ao-pulse-sticky__chart {
	background: none;
	border: none;
	padding: 0;
	color: var(--ao-pulse-peach);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	cursor: pointer;
	font-size: inherit;
	font-family: inherit;
	letter-spacing: 0.02em;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.ao-pulse-shop__size-chart-btn:hover,
.ao-pulse-sticky__chart:hover {
	color: var(--ao-pulse-peach-deep);
	border-bottom-color: var(--ao-pulse-peach-deep);
}

.ao-pulse-shop__pdp-link {
	color: var(--ao-pulse-stone) !important;
	font-size: 0.82rem;
	text-decoration: none !important;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.ao-pulse-shop__pdp-link:hover {
	color: var(--ao-pulse-charcoal) !important;
	border-bottom-color: var(--ao-pulse-charcoal);
}

.ao-pulse-cta {
	cursor: pointer;
}

/* —— Sticky bar —— */
.ao-pulse-sticky {
	--ao-pulse-sticky-offset: 0px;
	position: fixed;
	left: 0;
	right: 0;
	bottom: var(--ao-pulse-sticky-offset);
	z-index: 99990; /* below Cookie Notice (#cookie-notice ~999999) but above page chrome */
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--ao-pulse-mist);
	box-shadow: 0 -8px 28px rgba(44, 36, 32, 0.1);
	padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0));
	transform: translateY(110%);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), bottom 0.2s ease;
	pointer-events: none;
}

.ao-pulse-sticky.is-visible {
	transform: translateY(0);
	pointer-events: auto;
}

.ao-pulse-sticky[hidden] {
	display: none !important;
}

.ao-pulse-sticky__inner {
	max-width: 980px;
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	min-width: 0;
}

.ao-pulse-sticky__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.1rem;
	min-width: 0;
	flex: 1 1 auto;
	max-width: 42%;
	font-family: var(--ao-pulse-sans);
}

.ao-pulse-sticky__title {
	display: block;
	width: 100%;
	min-width: 0;
	font-family: var(--ao-pulse-serif);
	font-size: 0.88rem;
	font-weight: 400;
	line-height: 1.25;
	color: var(--ao-pulse-charcoal);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ao-pulse-sticky__price {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ao-pulse-charcoal);
	line-height: 1.2;
	white-space: nowrap;
}

.ao-pulse-sticky__price del {
	opacity: 0.55;
	font-weight: 500;
	margin-right: 0.35rem;
}

.ao-pulse-sticky__price ins {
	text-decoration: none;
}

.ao-pulse-sticky__controls {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
	flex: 0 0 auto;
	min-width: 0;
}

.ao-pulse-sticky__sizes {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.3rem;
	flex: 0 0 auto;
}

.ao-pulse-sticky__size {
	min-width: 2.35rem;
	height: 2.35rem;
	padding: 0 0.45rem;
	border: 1.5px solid #d6d3d1;
	background: var(--ao-pulse-white);
	color: var(--ao-pulse-charcoal);
	border-radius: 2px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ao-pulse-sticky__size.is-selected {
	border-color: var(--ao-pulse-charcoal);
	background: var(--ao-pulse-charcoal);
	color: #fff;
}

.ao-pulse-sticky__size.is-disabled {
	opacity: 0.38;
	cursor: not-allowed;
	text-decoration: line-through;
}

.ao-pulse-sticky__atc,
.ao-pulse-sticky__atc.ao-pulse-btn--peach {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto !important;
	max-width: none !important;
	min-width: 8.5rem;
	margin: 0 !important;
	padding: 0.7rem 1.1rem !important;
	background: var(--ao-pulse-peach) !important;
	border: none !important;
	border-radius: 2px !important;
	color: #fff !important;
	font-family: var(--ao-pulse-sans) !important;
	font-size: 0.7rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	cursor: pointer;
	box-shadow: none;
	white-space: nowrap;
}

.ao-pulse-sticky__atc:hover:not(:disabled),
.ao-pulse-sticky__atc.ao-pulse-btn--peach:hover:not(:disabled) {
	background: var(--ao-pulse-peach-deep) !important;
}

.ao-pulse-sticky__atc:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.ao-pulse-sticky__chart {
	font-size: 0.75rem;
	white-space: nowrap;
	flex-shrink: 0;
}

@media (max-width: 767px) {
	.ao-pulse-sticky {
		padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0));
	}

	.ao-pulse-sticky__inner {
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.ao-pulse-sticky__info {
		flex: 1 1 100%;
		max-width: 100%;
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 0.5rem;
	}

	.ao-pulse-sticky__title {
		flex: 1 1 auto;
	}

	.ao-pulse-sticky__price {
		flex: 0 0 auto;
	}

	.ao-pulse-sticky__controls {
		flex: 1 1 100%;
		justify-content: space-between;
	}

	.ao-pulse-sticky__atc,
	.ao-pulse-sticky__atc.ao-pulse-btn--peach {
		flex: 1 1 auto;
		min-width: 0;
	}

	.ao-pulse-sticky__chart {
		display: none; /* size chart remains in the main shop block on small screens */
	}
}

@media (min-width: 768px) {
	.ao-pulse-shop__inner {
		max-width: 460px;
	}
	.ao-pulse-shop__title {
		font-size: 1.28rem;
	}
}

/* Size chart dialog */
.ao-pulse-size-chart-dialog {
	border: none;
	border-radius: 4px;
	padding: 0;
	max-width: min(920px, 94vw);
	width: 100%;
	max-height: 85vh;
	box-shadow: 0 16px 48px rgba(44, 36, 32, 0.28);
	font-family: var(--ao-pulse-sans);
}

.ao-pulse-size-chart-dialog::backdrop {
	background: rgba(44, 36, 32, 0.5);
}

.ao-pulse-size-chart-dialog__chrome {
	display: flex;
	justify-content: flex-end;
	padding: 0.55rem 0.75rem 0;
	margin: 0;
}

.ao-pulse-size-chart-dialog__close {
	border: none;
	background: transparent;
	font-size: 1.55rem;
	line-height: 1;
	cursor: pointer;
	color: var(--ao-pulse-stone);
	padding: 0.25rem 0.5rem;
}

.ao-pulse-size-chart-dialog__body {
	padding: 0.35rem 1.35rem 1.35rem;
	overflow: auto;
	max-height: calc(85vh - 3rem);
}

/* Toast */
.ao-pulse-toast {
	position: fixed;
	left: 50%;
	bottom: calc(5.75rem + var(--ao-pulse-sticky-offset, 0px) + env(safe-area-inset-bottom, 0));
	transform: translateX(-50%);
	z-index: 99995;
	background: var(--ao-pulse-charcoal);
	color: #fafaf9;
	padding: 0.85rem 1.25rem;
	border-radius: 2px;
	font-family: var(--ao-pulse-sans);
	font-size: 0.88rem;
	letter-spacing: 0.02em;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
	display: flex;
	gap: 0.55rem;
	align-items: center;
	transition: bottom 0.2s ease;
}

.ao-pulse-toast[hidden] {
	display: none !important;
}

.ao-pulse-toast__cart {
	color: #e8b4a8 !important;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid #e8b4a8;
}
