/* TCP Book Grid 3D v2 — matches Elementor HTML hover card */
.tcp-book-grid {
	--tcp-cols: 3;
	--tcp-gap-x: 28px;
	--tcp-gap-y: 36px;
	--tcp-book-width: 180px;
	--tcp-hover-scale: 0.92;
	--Silver-Gradient-1: #aeaeae;
	--Silver-Gradient: linear-gradient(90deg, #aeaeae -0.56%, #fff 37.15%, #aeaeae 62.77%, #9c9c9c 100%);
	--tcp-btn-color: #1a1a1a;
	--tcp-btn-color-hover: #000;
	--tcp-btn-bg-hover: linear-gradient(90deg, #bebebe -0.56%, #fff 37.15%, #bebebe 62.77%, #aeaeae 100%);
	--tcp-frame-radius: 16px;
	--tcp-frame-width: 3px;
	--tcp-card-pad-x: 24px;
	--tcp-card-pad-y: 22px;
	--tcp-card-pad-b: 34px;

	width: 100%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	background: transparent;
	box-sizing: border-box;
}

.tcp-book-grid *,
.tcp-book-grid *::before,
.tcp-book-grid *::after {
	box-sizing: border-box;
}

.tcp-book-grid .tcp-stage {
	position: relative;
	width: 100%;
	background: transparent;
}

.tcp-book-grid .tcp-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(var(--tcp-cols), minmax(0, 1fr));
	column-gap: var(--tcp-gap-x);
	row-gap: var(--tcp-gap-y);
	justify-items: center;
	align-items: start;
	width: 100%;
	background: transparent;
}

.tcp-book-grid .tcp-item {
	position: relative;
	display: flex;
	justify-content: center;
	width: 100%;
	background: transparent;
	z-index: 1;
	padding-bottom: 22px;
}

.tcp-book-grid .tcp-item:hover {
	z-index: 4;
}

.tcp-book-grid .tcp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: max-content;
	max-width: 100%;
	padding: var(--tcp-card-pad-y) var(--tcp-card-pad-x) var(--tcp-card-pad-b);
	background: transparent;
}

.tcp-book-grid .tcp-frame {
	position: absolute;
	inset: 0;
	border-radius: var(--tcp-frame-radius);
	pointer-events: none;
	opacity: 0;
	z-index: 1;
	border: var(--tcp-frame-width) solid transparent;
	transition: opacity 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tcp-book-grid .tcp-item:hover .tcp-frame {
	opacity: 1;
	border: var(--tcp-frame-width) solid var(--Silver-Gradient-1, #aeaeae);
	border-radius: var(--tcp-frame-radius);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.18),
		0 0 14px rgba(174, 174, 174, 0.35),
		inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.tcp-book-grid .tcp-trigger {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
	position: relative;
	z-index: 2;
	display: block;
	outline: none;
	line-height: 0;
}

.tcp-book-grid .tcp-trigger:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.85);
	outline-offset: 6px;
}

.tcp-book-grid .tcp-book {
	width: var(--tcp-book-width);
	max-width: 100%;
	display: block;
	line-height: 0;
	background: transparent;
	transition: transform 0.2s ease;
}

.tcp-book-grid .tcp-item:hover .tcp-book {
	transform: scale(var(--tcp-hover-scale));
}

.tcp-book-grid .tcp-book img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	background: transparent;
	user-select: none;
	-webkit-user-drag: none;
}

.tcp-book-grid .tcp-buy {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 50%) scale(0.96);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	white-space: nowrap;
	text-decoration: none;
	font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--tcp-btn-color);
	background: var(--Silver-Gradient, linear-gradient(90deg, #aeaeae -0.56%, #fff 37.15%, #aeaeae 62.77%, #9c9c9c 100%)) !important;
	border-style: solid !important;
	border-width: 3px !important;
	border-color: #aeaeae !important;
	border-radius: 12px !important;
	outline: none !important;
	padding: 10px 18px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, background 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.tcp-book-grid .tcp-item:hover .tcp-buy {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 50%) scale(1);
	border-style: solid !important;
	border-width: 3px !important;
	border-color: var(--Silver-Gradient-1, #aeaeae) !important;
}

.tcp-book-grid .tcp-buy:hover {
	background: var(--tcp-btn-bg-hover) !important;
	color: var(--tcp-btn-color-hover);
	filter: brightness(1.05);
}

.tcp-book-grid .tcp-buy-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	flex-shrink: 0;
	color: inherit;
}

.tcp-book-grid .tcp-buy-icon svg,
.tcp-book-grid .tcp-amazon {
	width: 1em;
	height: 1em;
	display: block;
	flex-shrink: 0;
	fill: currentColor;
}

.tcp-book-grid .tcp-buy-icon i {
	display: block;
	line-height: 1;
}

.tcp-book-grid .tcp-title {
	margin-top: 0.5rem;
	text-align: center;
	font-size: 0.8rem;
	opacity: 0.9;
}
