/* ==========================================================================
   Swahira Company Website - Interactive Products Grid & Book Styling
   Controls transitions between closed product cards and active 3D books.
   ========================================================================== */

.products-book-section {
	padding: 5rem 0;
	background-color: var(--bg-primary);
	overflow: hidden;
	position: relative;
}

.products-book-section .section-header {
	text-align: center;
	margin-bottom: 3rem;
}

/* ==========================================================================
   Products Grid View (Closed Cards)
   ========================================================================== */
.products-grid-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.products-grid-container.is-hidden {
	display: none !important;
	opacity: 0;
	transform: scale(0.95);
}

.products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

/* Premium Card Design representing a closed project book */
.product-card {
	background: #ffffff;
	border: 1px solid var(--border-light);
	border-radius: 16px;
	padding: 2.25rem 1.75rem;
	display: flex;
	flex-direction: column;
	position: relative;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	overflow: hidden;
}

.product-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: var(--brand-primary);
	transition: width 0.3s ease;
}

/* Colors for specific products */
.product-card[data-target="forms"]::before {
	background: #ca8a04;
}

/* Gold */
.product-card[data-target="keeplocal"]::before {
	background: #16a34a;
}

/* Green */
.product-card[data-target="rumour"]::before {
	background: #007aff;
}

/* Royal Blue */
.product-card[data-target="sectionforge"]::before {
	background: #2563eb;
}

/* Blue */

.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	border-color: var(--border-medium);
}

.product-card:hover::before {
	width: 6px;
}

.product-card .card-badge {
	align-self: flex-start;
	font-family: "Outfit", sans-serif;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 0.25rem 0.6rem;
	border-radius: 100px;
	margin-bottom: 1.5rem;
	letter-spacing: 0.05em;
}

.product-card .card-badge.released {
	background: #fef9c3;
	color: #854d0e;
}

.product-card .card-badge.upcoming {
	background: #f3f4f6;
	color: #374151;
}

.product-card .card-icon-wrapper {
	font-size: 2rem;
	margin-bottom: 1rem;
	height: 48px;
	display: flex;
	align-items: center;
}

.product-card .card-icon-wrapper i {
	color: var(--text-primary);
}

.product-card[data-target="forms"] .card-icon-wrapper i {
	color: #ca8a04;
}

.product-card[data-target="keeplocal"] .card-icon-wrapper i {
	color: #16a34a;
}

.product-card .card-logo-img {
	height: 38px;
	width: auto;
	object-fit: contain;
}

.product-card h3 {
	font-family: "Outfit", sans-serif;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 0.5rem 0;
}

.product-card p {
	font-size: 0.85rem;
	color: var(--text-secondary);
	line-height: 1.5;
	margin: 0 0 1.5rem 0;
	flex-grow: 1;
}

.product-card .card-action {
	font-family: "Outfit", sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: auto;
	transition: gap 0.2s ease;
}

.product-card:hover .card-action {
	color: var(--brand-primary-hover);
	gap: 0.75rem;
}

/* ==========================================================================
   Product Book View (Expanded)
   ========================================================================== */
.product-book-wrapper {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-book-wrapper.is-hidden {
	display: none !important;
	opacity: 0;
	transform: scale(1.05);
}

/* Back Button styling */
.btn-back-grid {
	align-self: flex-start;
	background: transparent;
	border: none;
	font-family: "Outfit", sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-secondary);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.2s ease;
	padding: 0.5rem 0;
}

.btn-back-grid:hover {
	color: var(--text-primary);
	transform: translateX(-4px);
}

/* Active Book container */
.book-container-active {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

/* Accent Colors Mapping */
.book--forms {
	--book-accent: var(--forms-accent);
	--book-accent-hover: var(--forms-accent-light);
	--book-accent-rgb: 139, 92, 246;
}

.book--keeplocal {
	--book-accent: var(--keeplocal-accent);
	--book-accent-hover: var(--keeplocal-accent-light);
	--book-accent-rgb: 16, 185, 129;
}

.book--rumour {
	--book-accent: var(--rumour-accent);
	--book-accent-hover: var(--rumour-accent-light);
	--book-accent-rgb: 0, 122, 255;
}

.book--sectionforge {
	--book-accent: var(--sectionforge-accent);
	--book-accent-hover: var(--sectionforge-accent-light);
	--book-accent-rgb: 79, 70, 229;
}

.products-book-section .book {
	position: relative;
	width: 920px;
	height: 580px;
	perspective: 2400px;
	background: #e8e6df;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	box-shadow:
		0 30px 70px rgba(0, 0, 0, 0.18),
		0 12px 30px rgba(0, 0, 0, 0.1),
		inset 0 1px 1px rgba(255, 255, 255, 0.6);
	display: none;
	/* Controlled by JS */
}

.products-book-section .book.active-book {
	display: block;
}

/* Left page-stack edge */
.products-book-section .book::before {
	content: '';
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: -6px;
	width: 6px;
	background: linear-gradient(to left, #d8d4c7, #fdfdfd);
	border-radius: 4px 0 0 4px;
	box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
	z-index: 1;
}

/* Right page-stack edge */
.products-book-section .book::after {
	content: '';
	position: absolute;
	top: 8px;
	bottom: 8px;
	right: -6px;
	width: 6px;
	background: linear-gradient(to right, #d8d4c7, #fdfdfd);
	border-radius: 0 4px 4px 0;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
	z-index: 1;
}

/* Spiral Spine Binder */
.products-book-section .book__spine {
	position: absolute;
	top: 0;
	left: calc(50% - 20px);
	width: 40px;
	height: 100%;
	z-index: 20;
	/* Sits on top of flipping pages */
	pointer-events: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-around;
	padding: 24px 0;
}

/* Metallic Silver/Chrome Coils */
.products-book-section .coil {
	flex-shrink: 0;
	width: 38px;
	height: 12px;
	border-radius: 6px;
	background: linear-gradient(180deg,
			#ffffff 0%,
			#f3f4f6 20%,
			#d1d5db 40%,
			#9ca3af 55%,
			#4b5563 70%,
			#1f2937 85%,
			#9ca3af 100%);
	border: 1px solid rgba(0, 0, 0, 0.2);
	box-shadow:
		0 4px 6px rgba(0, 0, 0, 0.25),
		inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.products-book-section .page {
	position: absolute;
	top: 0;
	right: 0;
	width: 50%;
	height: 100%;
	transform-origin: left center;
	transform-style: preserve-3d;
	transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
	cursor: pointer;
	/* Physical Z-layering to bypass WebKit/Blink 3D layering anomalies */
	transform: rotateY(0deg) translateZ(calc(var(--z-depth, 1) * 1px));
	z-index: var(--z-depth, 1);
}

.products-book-section .page.is-flipped {
	transform: rotateY(-180deg) translateZ(calc(var(--z-depth, 1) * 1px));
}

/* Page faces */
.products-book-section .page__face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	overflow: hidden;
}

.products-book-section .page__front {
	background: linear-gradient(to right, #e2ded5 0%, #fdfdfc 4%, #ffffff 10%, #ffffff 97%, #d8d4c7 100%);
	border-left: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.9);
	transform: translateZ(1px);
}

.products-book-section .page__front::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 8px;
	height: 100%;
	background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.03));
	pointer-events: none;
}

.products-book-section .page__back {
	background: linear-gradient(to left, #e2ded5 0%, #fdfdfc 4%, #ffffff 10%, #ffffff 97%, #d8d4c7 100%);
	transform: rotateY(180deg) translateZ(1px);
	border-right: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.9);
}

.products-book-section .page__back::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 8px;
	height: 100%;
	background: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.03));
	pointer-events: none;
}

/* Static Left Page (always under the stack) */
.products-book-section .book__left {
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	padding: 3.5rem 3rem 3.5rem 4rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: 0;
	pointer-events: none;
	user-select: none;
	background: linear-gradient(to right, #f4f3ee 0%, #e2e0d7 100%);
	border-radius: 12px 0 0 12px;
	border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.products-book-section .left__about {
	font-family: "Outfit", sans-serif;
	font-size: 2.8rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--text-primary);
	margin-bottom: 1.25rem;
	letter-spacing: -0.02em;
}

.products-book-section .left__divider {
	width: 60px;
	height: 4px;
	background: var(--book-accent);
	margin-bottom: 1.5rem;
	border-radius: 2px;
}

.products-book-section .left__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.products-book-section .left__logo {
	height: 32px;
	width: auto;
	object-fit: contain;
}

.products-book-section .left__name {
	font-family: "Outfit", sans-serif;
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	color: var(--text-primary);
}

.products-book-section .left__tagline {
	font-size: 0.8rem;
	color: var(--text-secondary);
	font-family: "Manrope", sans-serif;
	font-weight: 500;
}

/* Static Right Page (always under the stack) */
.products-book-section .book__right {
	position: absolute;
	top: 0;
	right: 0;
	width: 50%;
	height: 100%;
	padding: 3.5rem 4rem 3.5rem 3rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: 0;
	pointer-events: none;
	user-select: none;
	background: linear-gradient(to left, #f4f3ee 0%, #e2e0d7 100%);
	border-radius: 0 12px 12px 0;
	border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.products-book-section .right__about {
	font-family: "Outfit", sans-serif;
	font-size: 2.8rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--text-primary);
	margin-bottom: 1.25rem;
	letter-spacing: -0.02em;
}

.products-book-section .right__divider {
	width: 60px;
	height: 4px;
	background: var(--book-accent);
	margin-bottom: 1.5rem;
	border-radius: 2px;
}

.products-book-section .right__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.products-book-section .right__logo {
	height: 32px;
	width: auto;
	object-fit: contain;
}

.products-book-section .right__name {
	font-family: "Outfit", sans-serif;
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	color: var(--text-primary);
}

.products-book-section .right__tagline {
	font-size: 0.8rem;
	color: var(--text-secondary);
	font-family: "Manrope", sans-serif;
	font-weight: 500;
}

.products-book-section .page__content {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.products-book-section .page__front .page__content {
	padding: 3.25rem 2.25rem 3rem 3.5rem;
}

.products-book-section .page__back .page__content {
	padding: 3.25rem 3.5rem 3rem 2.25rem;
}

.products-book-section .page__content--cover {
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	text-align: center;
	background: linear-gradient(135deg, rgba(var(--book-accent-rgb), 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.products-book-section .page__content--end {
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 1.25rem;
	background: linear-gradient(135deg, rgba(var(--book-accent-rgb), 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

/* Book Brand Accent Styling (Themed Accent Variables) */
.products-book-section .pg__label {
	font-family: "Outfit", sans-serif;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--book-accent);
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.products-book-section .pg__label i {
	font-size: 0.85rem;
}

.products-book-section .pg__heading {
	font-family: "Outfit", sans-serif;
	font-size: 1.75rem;
	font-weight: 900;
	color: #111827;
	line-height: 1.2;
	margin-bottom: 1.25rem;
	letter-spacing: -0.02em;
}

.products-book-section .pg__heading--lg {
	font-size: 1.95rem;
	margin-bottom: 1rem;
}

.products-book-section .pg__text {
	font-family: "Manrope", sans-serif;
	font-size: 0.95rem;
	line-height: 1.65;
	color: #374151;
	margin-bottom: 1.25rem;
	font-weight: 500;
}

/* Bullet list patterns - Redesigned Card Style */
.products-book-section .pg__values {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.products-book-section .pg__values li {
	background: #faf9f5;
	border: 1px solid #eae6db;
	border-radius: 10px;
	padding: 0.85rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.products-book-section .pg__values li:hover {
	background: #fdfdfb;
	border-color: rgba(var(--book-accent-rgb), 0.35);
	transform: translateY(-1.5px);
	box-shadow: 0 4px 10px rgba(var(--book-accent-rgb), 0.08);
}

.products-book-section .val__title {
	font-family: "Outfit", sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	color: #111827;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.products-book-section .val__title i {
	color: var(--book-accent);
	font-size: 0.85rem;
}

.products-book-section .val__desc {
	font-family: "Manrope", sans-serif;
	font-size: 0.825rem;
	color: #4b5563;
	font-weight: 500;
	padding-left: 1.35rem;
	line-height: 1.45;
}

/* Upgraded pill style button */
.products-book-section .pg__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: auto;
	font-family: "Outfit", sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.8rem 1.5rem;
	background: var(--book-accent);
	color: #ffffff;
	border-radius: 50px;
	border: none;
	box-shadow: 0 6px 16px rgba(var(--book-accent-rgb), 0.25);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	text-decoration: none;
	align-self: flex-start;
}

.products-book-section .pg__cta:hover {
	background: var(--book-accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(var(--book-accent-rgb), 0.35);
	color: #ffffff;
}

/* Forms inside the book pages */
.products-book-section .beta-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 0.5rem;
	width: 100%;
}

.products-book-section .beta-form input,
.products-book-section .beta-form textarea {
	font-family: "Manrope", sans-serif;
	font-size: 0.85rem;
	padding: 0.65rem 0.9rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #ffffff;
	color: #111827;
	outline: none;
	transition: all 0.2s ease;
	width: 100%;
}

.products-book-section .beta-form textarea {
	resize: none;
	height: 70px;
}

.products-book-section .beta-form input:focus,
.products-book-section .beta-form textarea:focus {
	border-color: var(--book-accent);
	box-shadow: 0 0 0 3px rgba(var(--book-accent-rgb), 0.1);
}

.products-book-section .beta-form button {
	font-family: "Outfit", sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	background: var(--book-accent);
	color: #ffffff;
	border: none;
	padding: 0.75rem 1.25rem;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-shadow: 0 4px 10px rgba(var(--book-accent-rgb), 0.2);
}

.products-book-section .beta-form button:hover:not(:disabled) {
	background: var(--book-accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(var(--book-accent-rgb), 0.3);
}

.products-book-section .beta-form button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.products-book-section .form-feedback {
	font-size: 0.75rem;
	margin-top: 0.2rem;
	min-height: 18px;
}

.products-book-section .form-feedback.success {
	color: var(--accent-success);
}

.products-book-section .form-feedback.error {
	color: var(--accent-error);
}

/* Cover Styling */
.products-book-section .cover__heading {
	font-size: 1rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--book-accent);
	margin-bottom: 0.5rem;
	font-weight: 800;
}

.products-book-section .logo {
	margin-bottom: 0.5rem;
}

.products-book-section .logo__img {
	height: 64px;
	display: block;
	margin: 0 auto;
}

.products-book-section .mascot {
	margin-bottom: 0.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

.products-book-section .mascot__img {
	height: 120px;
	width: auto;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.products-book-section .brand-name {
	position: relative;
	display: inline-block;
	margin-bottom: 0.5rem;
	overflow: hidden;
}

.products-book-section .brand-name__text {
	font-family: "Outfit", sans-serif;
	font-size: 2.2rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	color: var(--text-primary);
	display: block;
}

.products-book-section .cover__tagline {
	font-size: 0.9rem;
	color: var(--text-secondary);
	line-height: 1.6;
	max-width: 300px;
}

/* Heading row styling for page layouts */
.products-book-section .pg__heading-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.products-book-section .pg__product-logo {
	height: 32px;
	width: auto;
	object-fit: contain;
	border-radius: 4px;
}

/* Thank you page styles */
.products-book-section .pg__end-text {
	font-family: "Outfit", sans-serif;
	font-size: 1.65rem;
	font-weight: 800;
	color: var(--text-primary);
	line-height: 1.4;
	margin: 1rem 0 0.5rem;
}

.products-book-section .pg__end-sub {
	font-size: 0.9rem;
	color: var(--text-secondary);
	font-weight: 600;
}

/* Page Numbers */
.products-book-section .pg__num {
	position: absolute;
	bottom: 0.85rem;
	font-size: 0.7rem;
	color: var(--text-muted);
	font-weight: 600;
	z-index: 2;
}

.products-book-section .pg__num--right {
	right: 1.2rem;
}

.products-book-section .pg__num--left {
	left: 1.2rem;
}

/* Controls */
.products-book-section .controls {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-top: 1rem;
}

.products-book-section .ctrl-btn {
	font-family: "Outfit", sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-primary);
	background: #ffffff;
	border: 1px solid var(--border-light);
	padding: 0.5rem 1.2rem;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
	transition: all 0.2s ease;
}

.products-book-section .ctrl-btn:hover:not(:disabled) {
	background: var(--bg-hover);
	border-color: var(--border-medium);
	transform: translateY(-1px);
}

.products-book-section .ctrl-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	transform: none;
}

.products-book-section .ctrl-indicator {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--text-secondary);
	min-width: 120px;
	text-align: center;
}


/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 992px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem;
	}
}

@media (max-width: 860px) {
	.products-book-section .book {
		width: calc(100vw - 2.5rem);
		height: auto;
		min-height: 520px;
		display: none;
		flex-direction: column;
		background: #ffffff;
		border-radius: 12px;
	}

	.products-book-section .book.active-book {
		display: flex;
	}

	.products-book-section .book__spine,
	.products-book-section .book__left,
	.products-book-section .book__right,
	.products-book-section .book::before,
	.products-book-section .book::after {
		display: none !important;
	}

	.products-book-section .page {
		position: relative !important;
		width: 100% !important;
		height: auto !important;
		transform: none !important;
		display: none;
		cursor: default;
	}

	.products-book-section .page.active-mobile-page {
		display: block;
	}

	.products-book-section .page__face {
		position: relative !important;
		inset: auto !important;
		width: 100% !important;
		height: auto !important;
		backface-visibility: visible !important;
		-webkit-backface-visibility: visible !important;
		transform: none !important;
		display: none;
		border: none !important;
	}

	.products-book-section .page__face.active-mobile-face {
		display: block;
	}

	.products-book-section .page__content {
		padding: 2.5rem 1.5rem;
		height: auto !important;
		min-height: 440px;
	}

	.products-book-section .pg__num {
		bottom: 1.5rem;
	}
}

@media (max-width: 560px) {
	.products-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

/* ==========================================================================
   3D BOOKSHELF GRID STYLES
   ========================================================================== */
.products-shelf-container {
	width: 100%;
	margin-top: 3.5rem;
}

.products-shelf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 3.5rem 2rem;
	justify-items: center;
	align-items: stretch;
}

.shelf-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1.8rem;
	width: 100%;
	max-width: 290px;
}

/* Perspective Wrapper */
.shelf-book {
	perspective: 1000px;
	display: block;
	width: 210px;
	height: 300px;
	cursor: pointer;
	text-decoration: none;
}

/* 3D Card */
.shelf-book__card {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.3, 1);
	transform: rotateY(-12deg) rotateX(4deg);
}

/* Hover rotation */
.shelf-book:hover .shelf-book__card {
	transform: rotateY(-32deg) rotateX(6deg) translateZ(12px);
}

/* Front Cover style */
.shelf-book__cover {
	position: absolute;
	inset: 0;
	border-radius: 4px 10px 10px 4px;
	padding: 2.2rem 1.2rem 1.8rem 1.2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform: translateZ(8px);
	box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.1), 4px 6px 12px rgba(0, 0, 0, 0.25);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.05);
	overflow: hidden;
}

/* Cover Themes */
.shelf-book--forms .shelf-book__cover,
.shelf-book--keeplocal .shelf-book__cover,
.shelf-book--rumour .shelf-book__cover,
.shelf-book--sectionforge .shelf-book__cover {
	background: linear-gradient(135deg, #1c1811 0%, #2f2513 50%, #b2932f 100%);
	border-color: rgba(212, 175, 55, 0.3);
}

/* Spine shadow stripe */
.shelf-book__spine {
	position: absolute;
	left: 0;
	top: 0;
	width: 10px;
	height: 100%;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 4px 0 0 4px;
	transform: translateZ(9px);
	filter: blur(0.5px);
}

/* Book edge pages thickness */
.shelf-book__pages {
	position: absolute;
	top: 2%;
	right: -2px;
	width: 14px;
	height: 96%;
	background: #fafaf9;
	transform: rotateY(90deg) translateZ(7px);
	border-radius: 0 4px 4px 0;
	box-shadow: inset 4px 0 8px rgba(0, 0, 0, 0.1), 2px 2px 4px rgba(0, 0, 0, 0.1);
	border-top: 1px solid #d3d3d3;
	border-bottom: 1px solid #d3d3d3;
	border-right: 1px solid #d3d3d3;
}

/* Inside Cover Layout Elements */
.shelf-badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 0.2rem 0.5rem;
	border-radius: 12px;
	letter-spacing: 0.05em;
}

.shelf-badge.released {
	background: rgba(46, 125, 50, 0.2);
	color: #81c784;
	border: 1px solid rgba(46, 125, 50, 0.3);
}

.shelf-badge.upcoming {
	background: rgba(220, 53, 69, 0.2);
	color: #e57373;
	border: 1px solid rgba(220, 53, 69, 0.3);
}

.shelf-icon-wrapper {
	font-size: 2.2rem;
	margin-bottom: 0.8rem;
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shelf-logo-img {
	height: 38px;
	width: auto;
	object-fit: contain;
	margin-bottom: 0.8rem;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.shelf-book__cover h4 {
	font-family: "Outfit", sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 0.3rem 0;
	letter-spacing: -0.01em;
	color: #ffffff;
}

.shelf-book-tagline {
	font-family: "Manrope", sans-serif;
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.65);
	margin-bottom: auto;
}

.shelf-action-txt {
	margin-top: auto;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.9);
	border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
	padding-bottom: 2px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.shelf-book:hover .shelf-action-txt {
	color: #ffffff;
	border-color: #ffffff;
}

/* Info Box below */
.shelf-info {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	align-items: center;
}

.shelf-info h3 {
	font-family: "Outfit", sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
}

.shelf-info p {
	font-family: "Manrope", sans-serif;
	font-size: 0.85rem;
	color: var(--text-secondary);
	line-height: 1.5;
	margin: 0;
	max-width: 250px;
}

.shelf-learn-more {
	font-family: "Outfit", sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--brand-primary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin-top: 0.3rem;
	transition: gap 0.2s ease, color 0.2s ease;
}

.shelf-learn-more:hover {
	gap: 0.5rem;
	color: var(--brand-hover);
}

@media (max-width: 860px) {
	.products-shelf-grid {
		gap: 2.5rem 1.5rem;
	}

	.shelf-book {
		width: 190px;
		height: 270px;
	}
}

/* ==========================================================================
   Premium Product Cards (Inspired by Diagonal Split Design)
   ========================================================================== */

:root {
	--forms-accent: #8b5cf6;
	--forms-accent-light: #a78bfa;
	--keeplocal-accent: #10b981;
	--keeplocal-accent-light: #34d399;
	--rumour-accent: #007aff;
	--rumour-accent-light: #60a5fa;
	--sectionforge-accent: #4f46e5;
	--sectionforge-accent-light: #818cf8;
}

.products-shelf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 3rem 2rem;
	justify-items: center;
	align-items: stretch;
	width: 100%;
}

.shelf-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 320px;
}

/* Unified Product Card */
.sw-product-card {
	position: relative;
	width: 100%;
	min-height: 420px;
	background: #ffffff;
	border-radius: 24px;
	border: 1px solid var(--border-light);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 2.25rem 1.75rem;
	overflow: hidden;
	text-decoration: none;
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	z-index: 1;
}

.sw-product-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
	border-color: var(--border-medium);
}

/* Accent Colors Mapping */
.sw-product-card--forms {
	--accent-color: var(--forms-accent);
	--accent-light: var(--forms-accent-light);
	--accent-shadow: rgba(139, 92, 246, 0.25);
}

.sw-product-card--keeplocal {
	--accent-color: var(--keeplocal-accent);
	--accent-light: var(--keeplocal-accent-light);
	--accent-shadow: rgba(16, 185, 129, 0.25);
}

.sw-product-card--rumour {
	--accent-color: var(--rumour-accent);
	--accent-light: var(--rumour-accent-light);
	--accent-shadow: rgba(0, 122, 255, 0.25);
}

.sw-product-card--sectionforge {
	--accent-color: var(--sectionforge-accent);
	--accent-light: var(--sectionforge-accent-light);
	--accent-shadow: rgba(79, 70, 229, 0.25);
}

/* Diagonal Background Shape */
.sw-product-card__color-bg {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 60%;
	background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
	clip-path: polygon(30% 0, 100% 0, 100% 100%, 75% 100%);
	z-index: 1;
	opacity: 0;
	transform: translateX(100%);
	transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Triggered when AOS animation begins */
.products-shelf-container.aos-animate .sw-product-card__color-bg {
	animation: slideInColorBg 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.products-shelf-container.aos-animate .shelf-item:nth-child(1) .sw-product-card__color-bg {
	animation-delay: 0.1s;
}

.products-shelf-container.aos-animate .shelf-item:nth-child(2) .sw-product-card__color-bg {
	animation-delay: 0.3s;
}

.products-shelf-container.aos-animate .shelf-item:nth-child(3) .sw-product-card__color-bg {
	animation-delay: 0.5s;
}

.products-shelf-container.aos-animate .shelf-item:nth-child(4) .sw-product-card__color-bg {
	animation-delay: 0.7s;
}

@keyframes slideInColorBg {
	0% {
		transform: translateX(100%);
		opacity: 0;
	}

	100% {
		transform: translateX(0);
		opacity: 1;
	}
}

.sw-product-card:hover .sw-product-card__color-bg {
	clip-path: polygon(20% 0, 100% 0, 100% 100%, 65% 100%);
}

/* Subtle Line Pattern on White Side */
.sw-product-card__pattern {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 50%;
	background-image:
		linear-gradient(45deg, rgba(0, 0, 0, 0.015) 25%, transparent 25%),
		linear-gradient(-45deg, rgba(0, 0, 0, 0.015) 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.015) 75%),
		linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.015) 75%);
	background-size: 24px 24px;
	z-index: 0;
	pointer-events: none;
	opacity: 0.8;
}

/* Price/Badge Large Text */
.sw-product-card__badge-large {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	font-family: "Outfit", sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	z-index: 2;
	pointer-events: none;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.35);
	padding: 0.3rem 0.75rem;
	border-radius: 50px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: all 0.3s ease;
}

.sw-product-card:hover .sw-product-card__badge-large {
	transform: scale(1.05);
	background: rgba(255, 255, 255, 0.35);
	border-color: rgba(255, 255, 255, 0.5);
}

/* Floating Visual Element (Logo in squircle glass container) */
.sw-product-card__visual-container {
	position: absolute;
	top: 4.5rem;
	left: 30%;
	transform: translateX(-50%);
	z-index: 3;
	transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sw-product-card__visual-inner {
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Icon / Image specific styles */
.sw-product-card__visual-inner i {
	font-size: 3.8rem;
	color: var(--accent-color);
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.sw-product-card__visual-inner img {
	width: 76px;
	height: 76px;
	object-fit: contain;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}


/* Card Body Content */
.sw-product-card__body {
	position: relative;
	z-index: 2;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: 10rem;
	/* Space for the floating visual */
}

.sw-product-card__status {
	font-family: "Outfit", sans-serif;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--accent-color);
	letter-spacing: 0.1em;
	margin-bottom: 0.35rem;
}

.sw-product-card__title {
	font-family: "Outfit", sans-serif;
	font-size: 1.45rem;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 0.5rem 0;
	line-height: 1.15;
}

.sw-product-card__desc {
	font-family: "Manrope", sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: #333333;
	line-height: 1.5;
	margin: 0 0 1.5rem 0;
	text-align: left;
}

/* Action Button (Pill button) */
.sw-product-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.35rem;
	background: #ffffff;
	color: var(--accent-color);
	font-family: "Outfit", sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 100px;
	border: 1.5px solid var(--accent-color);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.sw-product-card:hover .sw-product-card__cta {
	background: var(--accent-color);
	color: #ffffff;
	border-color: var(--accent-color);
	box-shadow: 0 8px 20px var(--accent-shadow);
	transform: translateY(-2px);
}

/* Corner Floating Dot */
.sw-product-card__corner-dot {
	position: absolute;
	bottom: -12px;
	left: -12px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
	box-shadow: 0 4px 10px var(--accent-shadow);
	z-index: 3;
	transition: all 0.3s ease;
}

.sw-product-card:hover .sw-product-card__corner-dot {
	transform: scale(1.25);
}