/* Inline meta link */
.nl-product-author {
	display: block;
	margin-bottom: 6px;
}

.nl-product-author__link {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ── Author button on product gallery image ── */
.nl-author-fab {
	position: fixed;
	z-index: 9998;
	inset-inline-start: max(16px, env(safe-area-inset-left));
	bottom: max(20px, env(safe-area-inset-bottom));
	display: inline-flex;
	align-items: center;
	gap: 0;
	max-width: 56px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: linear-gradient(145deg, #b81f52 0%, #7a1238 100%);
	color: #fff;
	text-decoration: none;
	box-shadow:
		0 4px 14px rgba(155, 24, 71, 0.45),
		0 2px 4px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	overflow: hidden;
	transition:
		max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.25s ease,
		transform 0.25s ease;
}

.nl-author-fab:hover,
.nl-author-fab:focus-visible {
	max-width: min(320px, calc(100vw - 32px));
	box-shadow:
		0 8px 28px rgba(155, 24, 71, 0.5),
		0 4px 8px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
	color: #fff;
	outline: none;
}

.nl-author-fab__icon-wrap {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
}

.nl-author-fab__icon {
	width: 26px;
	height: 26px;
	fill: currentColor;
}

.nl-author-fab__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-inline-end: 18px;
	padding-block: 10px;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(-8px);
	transition:
		opacity 0.25s ease 0.05s,
		transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .nl-author-fab__text {
	transform: translateX(8px);
}

.nl-author-fab:hover .nl-author-fab__text,
.nl-author-fab:focus-visible .nl-author-fab__text {
	opacity: 1;
	transform: translateX(0);
}

.nl-author-fab__label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.88;
	line-height: 1.2;
}

.nl-author-fab__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	margin-top: 2px;
}

/* Placed on product image (Woodmart / WooCommerce gallery) */
.woocommerce-product-gallery,
.product-images {
	position: relative;
}

.nl-author-fab.nl-author-fab--on-gallery {
	position: absolute;
	z-index: 25;
	left: 14px;
	right: auto;
	bottom: 14px;
	inset-inline-start: auto;
	inset-inline-end: auto;
	width: 54px;
	height: 54px;
	min-width: 54px;
	max-width: 54px;
	padding: 0;
	border-radius: 50%;
	overflow: visible;
	background: linear-gradient(160deg, #c41f56 0%, #8b1538 55%, #6e102c 100%);
	box-shadow:
		0 6px 20px rgba(0, 0, 0, 0.35),
		0 0 0 3px rgba(255, 255, 255, 0.95);
}

.nl-author-fab.nl-author-fab--on-gallery .nl-author-fab__icon-wrap {
	width: 54px;
	height: 54px;
	border-radius: 50%;
}

.nl-author-fab.nl-author-fab--on-gallery .nl-author-fab__icon {
	width: 30px;
	height: 30px;
	fill: #fff;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.nl-author-fab.nl-author-fab--on-gallery {
	cursor: pointer;
	border: none;
	font: inherit;
	color: #fff;
	-webkit-tap-highlight-color: transparent;
}

.nl-author-fab.nl-author-fab--on-gallery .nl-author-fab__text {
	display: none;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding-inline-end: 14px;
	padding-block: 8px;
	min-width: 0;
	text-align: start;
}

.nl-author-fab.nl-author-fab--on-gallery .nl-author-fab__text:not([hidden]) {
	display: flex;
}

.nl-author-fab.nl-author-fab--on-gallery .nl-author-fab__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.nl-author-fab.nl-author-fab--on-gallery .nl-author-fab__hint {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	font-weight: 600;
	opacity: 0.92;
	line-height: 1.2;
	color: #fff;
}

.nl-author-fab.nl-author-fab--on-gallery.is-expanded {
	width: auto;
	height: 54px;
	min-width: 54px;
	max-width: min(280px, calc(100% - 28px));
	border-radius: 999px;
	padding: 0;
	overflow: hidden;
}

.nl-author-fab.nl-author-fab--on-gallery:hover:not(.is-expanded),
.nl-author-fab.nl-author-fab--on-gallery:focus-visible:not(.is-expanded) {
	transform: scale(1.08);
	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.4),
		0 0 0 3px rgba(255, 255, 255, 1);
}

.nl-author-fab.nl-author-fab--on-gallery.is-expanded {
	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.4),
		0 0 0 3px rgba(255, 255, 255, 1);
}

[dir="rtl"] .nl-author-fab.nl-author-fab--on-gallery {
	left: 14px;
	right: auto;
}

/* ── Author books archive hero ── */
.nl-author-archive-hero {
	margin: 0 0 28px;
	padding: 28px 24px;
	border-radius: 12px;
	background: linear-gradient(135deg, #faf7f8 0%, #f0e8ec 50%, #e8eef5 100%);
	border: 1px solid rgba(155, 24, 71, 0.12);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.nl-author-archive-hero__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.nl-author-archive-hero__avatar {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #fff;
	box-shadow: 0 4px 12px rgba(155, 24, 71, 0.2);
}

.nl-author-archive-hero__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nl-author-archive-hero__body {
	flex: 1;
	min-width: 200px;
}

.nl-author-archive-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #9b1847;
	margin: 0 0 6px;
}

.nl-author-archive-hero__eyebrow svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.nl-author-archive-hero__title {
	margin: 0 0 8px;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 800;
	line-height: 1.2;
	color: #1a1a1a;
}

.nl-author-archive-hero__meta {
	margin: 0;
	font-size: 14px;
	color: #50575e;
	line-height: 1.5;
}

.nl-author-archive-hero__count {
	display: inline-block;
	margin-inline-end: 12px;
	font-weight: 700;
	color: #9b1847;
}

/* ── Author books archive: card grid + round add-to-cart on image ── */
.nl-author-books-archive .nl-author-books-shop,
.nl-author-books-archive .nl-author-books-fallback {
	width: 100%;
	clear: both;
	padding-block: 16px;
}

.nl-author-books-archive .nl-author-archive-hero {
	margin-bottom: 24px;
}

.nl-author-books-archive .products,
.nl-author-books-archive ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nl-author-books-archive .products::before,
.nl-author-books-archive .products::after {
	display: none !important;
}

.nl-author-books-archive .product.nl-author-book-card {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
}

.nl-author-books-archive .nl-author-book-card .wd-product-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.nl-author-books-archive .nl-author-book-card .wd-product-thumb {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	background: #f7f7f7;
}

.nl-author-books-archive .nl-author-book-card .product-image-link img,
.nl-author-books-archive .nl-author-book-card .wd-product-thumb img {
	width: 100%;
	height: auto;
	max-height: 260px;
	object-fit: contain;
	display: block;
}

/* Hide extra shop icons — keep only add to cart */
.nl-author-books-archive .nl-author-book-card .wd-quick-view-icon,
.nl-author-books-archive .nl-author-book-card .wd-compare-btn,
.nl-author-books-archive .nl-author-book-card .wd-wishlist-icon,
.nl-author-books-archive .nl-author-book-card .wd-wishlist-btn,
.nl-author-books-archive .nl-author-book-card .woodmart-wishlist-btn,
.nl-author-books-archive .nl-author-book-card .wrap-wishlist-button,
.nl-author-books-archive .nl-author-book-card .wrap-quickview-button,
.nl-author-books-archive .nl-author-book-card .wd-product-card-hover,
.nl-author-books-archive .nl-author-book-card .wd-product-card-bg {
	display: none !important;
}

/* Add to cart: bottom-right on image, round (same look as author FAB) */
.nl-author-books-archive .nl-author-book-card .wrapp-buttons {
	position: absolute;
	inset-inline-end: 12px;
	bottom: 12px;
	z-index: 12;
	margin: 0;
	pointer-events: none;
}

.nl-author-books-archive .nl-author-book-card .wd-buttons {
	display: block;
	margin: 0;
}

.nl-author-books-archive .nl-author-book-card .wd-add-btn {
	pointer-events: auto;
	margin: 0;
}

.nl-author-books-archive .nl-author-book-card .nl-author-book-cart,
.nl-author-books-archive .nl-author-book-card .wd-add-btn > a,
.nl-author-books-archive .nl-author-book-card .wd-add-btn .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 54px !important;
	height: 54px !important;
	min-width: 54px !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: linear-gradient(160deg, #c41f56 0%, #8b1538 55%, #6e102c 100%) !important;
	color: #fff !important;
	box-shadow:
		0 6px 20px rgba(0, 0, 0, 0.35),
		0 0 0 3px rgba(255, 255, 255, 0.95) !important;
	font-size: 0 !important;
	line-height: 0 !important;
	overflow: hidden;
	text-indent: -9999px;
}

.nl-author-books-archive .nl-author-book-card .wd-add-cart-icon .wd-add-cart-label,
.nl-author-books-archive .nl-author-book-card .wd-add-btn span:not(.wd-tools-icon) {
	display: none !important;
}

.nl-author-books-archive .nl-author-book-card .nl-author-book-cart::before,
.nl-author-books-archive .nl-author-book-card .wd-add-btn > a::before,
.nl-author-books-archive .nl-author-book-card .wd-add-btn .button::before {
	content: "";
	display: block;
	width: 26px;
	height: 26px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 4h-2l-1 2h2l3.6 7.59-1.35 2.45a2 2 0 0 0 1.74 3.01H19v-2H10.42a.25.25 0 0 1-.22-.37L11 13h7.55a2 2 0 0 0 1.92-1.45L21.7 6H7.21l-.94-2ZM7 22a2 2 0 1 0 2-2 2 2 0 0 0-2 2Zm10 0a2 2 0 1 0 2-2 2 2 0 0 0-2 2Z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	text-indent: 0;
}

.nl-author-books-archive .nl-author-book-card .nl-author-book-cart:hover,
.nl-author-books-archive .nl-author-book-card .wd-add-btn > a:hover,
.nl-author-books-archive .nl-author-book-card .wd-add-btn .button:hover {
	transform: scale(1.06);
	color: #fff !important;
}

/* Centered title, detail, price */
.nl-author-books-archive .nl-author-book-card .product-element-bottom,
.nl-author-books-archive .nl-author-book-card .product-information {
	text-align: center;
	padding-top: 12px;
}

.nl-author-books-archive .nl-author-book-card .wd-entities-title,
.nl-author-books-archive .nl-author-book-card .wd-entities-title a,
.nl-author-books-archive .nl-author-book-card h3.wd-entities-title {
	text-align: center;
	justify-content: center;
	margin-inline: auto;
}

.nl-author-books-archive .nl-author-book-card .nl-author-book-detail {
	margin: 6px 0 8px;
	font-size: 13px;
	line-height: 1.45;
	color: #50575e;
	text-align: center;
}

.nl-author-books-archive .nl-author-book-card .product-rating-price,
.nl-author-books-archive .nl-author-book-card .wrapp-product-price {
	justify-content: center;
	text-align: center;
}

.nl-author-books-archive .nl-author-book-card .price {
	justify-content: center;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.nl-author-books-archive .nl-author-book-card .wd-product-cats,
.nl-author-books-archive .nl-author-book-card .wd-product-brands-links,
.nl-author-books-archive .nl-author-book-card .wd-product-sku {
	display: none;
}

.nl-author-books-archive .nl-author-books-empty {
	margin: 24px 0;
}

@media (min-width: 992px) {
	.nl-author-books-archive .products,
	.nl-author-books-archive ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.nl-author-fab {
		inset-inline-start: max(12px, env(safe-area-inset-left));
		bottom: max(72px, env(safe-area-inset-bottom));
	}

	.nl-author-archive-hero {
		padding: 20px 16px;
	}

	.nl-author-archive-hero__avatar {
		width: 64px;
		height: 64px;
	}

	.nl-author-books-archive .products,
	.nl-author-books-archive ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
}
