/**
 * sp-product-likes — PDP: like button to the right of add-to-cart.
 * Palette: Scandinavian Pickers (#967e5b, #3d342d, #d1bc9b, #f4f1e6).
 *
 * form.cart uses display:contents so vintage hint spans full width while
 * only ATC + like share one grid row.
 */

.single-product .summary.entry-summary .st-pdp-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.65rem;
	align-items: stretch;
	margin: 1.25rem 0 0.35rem;
}

/* Stock + vintage hint: full width above the buy row */
.single-product .st-pdp-actions > p.stock,
.single-product .st-pdp-actions > .stock,
.single-product .st-pdp-actions form.cart .st-vintage-add-to-cart-hint {
	grid-column: 1 / -1;
	margin: 0;
}

.single-product .st-pdp-actions form.cart .st-vintage-add-to-cart-hint {
	margin-bottom: 0.1rem;
}

/* Flatten form so children participate in the outer grid */
.single-product .st-pdp-actions form.cart {
	display: contents;
}

.single-product .st-pdp-actions .st-oos-add-to-cart-wrap,
.single-product .st-pdp-actions > a.sp-tradera-bridge-btn {
	grid-column: 1;
	min-width: 0;
	margin: 0;
	width: 100%;
}

.single-product .st-pdp-actions form.cart .quantity {
	display: none;
}

.single-product .st-pdp-actions form.cart .single_add_to_cart_button,
.single-product .st-pdp-actions .st-oos-add-to-cart-wrap .single_add_to_cart_button,
.single-product .st-pdp-actions > a.sp-tradera-bridge-btn {
	grid-column: 1;
	min-width: 0;
	min-height: 3.25rem;
	margin: 0 !important;
	width: 100% !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.single-product .st-pdp-actions .sp-product-likes__button {
	grid-column: 2;
	box-sizing: border-box;
	min-width: 3.25rem;
	width: 3.25rem;
	min-height: 3.25rem;
	padding: 0.4rem 0.2rem 0.35rem;
	margin: 0;
	display: inline-flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.15rem;
	border: 2px solid #967e5b;
	border-radius: var(--st-btn-radius, 4px);
	background: #fff !important;
	color: #3d342d !important;
	font-family: var(--font-heading);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
	align-self: stretch;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.single-product .st-pdp-actions .sp-product-likes__button .sp-product-likes__icon,
.single-product .st-pdp-actions .sp-product-likes__button .sp-product-likes__count {
	display: block !important;
	width: 100%;
	text-align: center;
	line-height: 1;
}

.single-product .st-pdp-actions .sp-product-likes__button .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* Unliked: hollow heart on white — transparent fill so brown bleed never looks "liked" */
.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="0"],
.single-product .st-pdp-actions .sp-product-likes__button:not([data-sp-liked="1"]) {
	background: #fff !important;
	border-color: #967e5b !important;
	color: #3d342d !important;
	box-shadow: none !important;
}

.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="0"] .sp-product-likes__icon,
.single-product .st-pdp-actions .sp-product-likes__button:not([data-sp-liked="1"]) .sp-product-likes__icon {
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
	-webkit-text-stroke: 1.5px #967e5b;
}

.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="0"] .sp-product-likes__count,
.single-product .st-pdp-actions .sp-product-likes__button:not([data-sp-liked="1"]) .sp-product-likes__count {
	color: #3d342d !important;
}

.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="0"]:hover,
.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="0"]:focus,
.single-product .st-pdp-actions .sp-product-likes__button:not([data-sp-liked="1"]):hover,
.single-product .st-pdp-actions .sp-product-likes__button:not([data-sp-liked="1"]):focus {
	transform: none;
	background: #f4f1e6 !important;
	border-color: #7a6849 !important;
	color: #3d342d !important;
}

.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="0"]:hover .sp-product-likes__icon,
.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="0"]:focus .sp-product-likes__icon,
.single-product .st-pdp-actions .sp-product-likes__button:not([data-sp-liked="1"]):hover .sp-product-likes__icon,
.single-product .st-pdp-actions .sp-product-likes__button:not([data-sp-liked="1"]):focus .sp-product-likes__icon {
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
	-webkit-text-stroke: 1.5px #7a6849;
}

/* Liked: filled accent — icon + count always light on dark */
.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="1"] {
	background: #967e5b !important;
	border-color: #967e5b !important;
	color: #fff !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="1"] .sp-product-likes__icon,
.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="1"] .sp-product-likes__count {
	color: #fff !important;
}

.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="1"] .sp-product-likes__icon {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	-webkit-text-stroke: 0;
}

.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="1"]:hover,
.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="1"]:focus {
	background: #7a6849 !important;
	border-color: #7a6849 !important;
	color: #fff !important;
}

.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="1"]:hover .sp-product-likes__icon,
.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="1"]:hover .sp-product-likes__count,
.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="1"]:focus .sp-product-likes__icon,
.single-product .st-pdp-actions .sp-product-likes__button[data-sp-liked="1"]:focus .sp-product-likes__count {
	color: #fff !important;
}

.single-product .st-pdp-actions .sp-product-likes__button[aria-busy="true"],
.single-product .st-pdp-actions .sp-product-likes__button.is-pending,
.single-product .st-pdp-actions .sp-product-likes__button.is-loading {
	opacity: 0.88;
	cursor: wait;
	pointer-events: none;
	transform: scale(0.97);
}

.single-product .st-pdp-actions .sp-product-likes__button.is-pending .sp-product-likes__icon,
.single-product .st-pdp-actions .sp-product-likes__button.is-loading .sp-product-likes__icon {
	animation: st-like-pulse 0.55s ease-in-out infinite;
}

@keyframes st-like-pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(0.88);
		opacity: 0.65;
	}
}

.single-product .st-pdp-actions .sp-product-likes__icon {
	font-size: 1.05rem;
	line-height: 1;
}

.single-product .st-pdp-actions .sp-product-likes__count {
	font-size: 0.68rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.single-product .st-pdp-actions .sp-product-likes__count[data-sp-likes-ready="0"] {
	opacity: 0.65;
}

.single-product .summary.entry-summary .product_meta {
	margin-top: 1.1rem;
}

/* Gillade fynd archive */
.sp-liked-products-page__header {
	margin: 0 0 1.5rem;
}

.sp-liked-products-page__title {
	margin: 0 0 0.35rem;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--text-color, #3d342d);
}

.sp-liked-products-page__intro,
.sp-liked-products-page__guest-note {
	margin: 0.35rem 0 0;
	color: var(--text-dim, #6b5d52);
	font-size: 0.92rem;
	line-height: 1.5;
}

.sp-liked-products-page__guest-note a {
	color: var(--accent-gold, #967e5b);
	font-weight: 700;
	text-decoration: none;
}

.sp-liked-products-page__guest-note a:hover,
.sp-liked-products-page__guest-note a:focus {
	text-decoration: underline;
}

.sp-liked-products-page__empty {
	padding: 2rem 1rem 2.5rem;
	text-align: center;
	border: 1px solid #d1bc9b;
	border-radius: var(--st-btn-radius, 4px);
	background: #f4f1e6;
}

.sp-liked-products-page__empty p {
	margin: 0 0 1rem;
	color: var(--text-color, #3d342d);
}

.sp-liked-products-page__empty .button {
	display: inline-block;
}

@media (max-width: 380px) {
	.single-product .summary.entry-summary .st-pdp-actions {
		gap: 0.5rem;
	}

	.single-product .st-pdp-actions .sp-product-likes__button {
		min-width: 3rem;
		width: 3rem;
		min-height: 3rem;
	}
}
