/* =========================
   Product cards
========================= */

.bigtitle {
	text-align: center;
	font-size: 2.25em;
	line-height: 1em;
	font-family: 'Poppins', Helvetica, Arial, sans-serif;
	letter-spacing: -0.06em;
	color: #5c5c5e;
	font-weight: normal;
	display: block;
	padding: 0;
}

/* =========================
   Product grid
========================= */

.posts {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: stretch;
	gap: 0.75em;
}

.posts .post,
.posts .post1 {
	width: calc(20% - 0.75em);
}

.posts .postwide {
	width: calc(33.333% - 0.75em);
}

/* =========================
   Product block
========================= */

.post.products {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	text-align: center;
	padding: 0.95em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	position: relative;
}

.post.products:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

/* =========================
   Product text
========================= */

.post.products h3,
.post.products h4,
.post.products h5 {
	margin: 0.25em 0;
	line-height: 1.2em;
}

.post.products p {
	margin: 0.35em 0;
	line-height: 1.35em;
}

.post.products small,
.stockongrill {
	line-height: 1.25em;
	color: #666;
	display: block;
	margin: 0 auto;
}

.post.products small {
	width: 90%;
	margin: 0.25em auto 0.75em;
}

.stockongrill {
	max-width: 99%;
	padding: 0;
	text-transform: uppercase;
	font-size: 0.9em;
}

/* =========================
   Standard image container
========================= */

.geeks {
	width: 100%;
	height: 220px;
	margin: 0 auto 0.75em;
	overflow: hidden;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.geeks img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: 0.4s all ease-in-out;
	display: block;
}

.geeks:hover img {
	transform: scale(1.08);
}

/* =========================
   Overlay image container
========================= */

.image-overlay-container {
	position: relative;
	width: 100%;
	height: 220px;
	margin: 0 auto 0.75em;
	overflow: hidden;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.image-overlay-container .image-main,
.image-overlay-container .image-hover {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	transition: 0.4s ease;
}

.image-overlay-container .image-main {
	object-fit: contain;
	padding: 0.25em;
	z-index: 1;
	opacity: 1;
}

.image-overlay-container .image-hover {
	object-fit: cover;
	z-index: 2;
	opacity: 0;
	transform: scale(1);
}

.image-overlay-container:hover .image-main {
	opacity: 0;
	transform: scale(1.05);
}

.image-overlay-container:hover .image-hover {
	opacity: 1;
	transform: scale(1.12);
}

/* =========================
   Overlay
========================= */

.image-overlay-container .overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	opacity: 0;
	transition: 0.3s ease;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.image-overlay-container:hover .overlay {
	opacity: 1;
}

/* =========================
   Overlay button
========================= */

.image-overlay-container .text {
	font-family: 'Poppins', sans-serif;
	font-size: 0.95em;
	text-transform: uppercase;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	padding: 0;
	margin: 0;
	position: relative;
	overflow: visible;
	outline: none;
	white-space: normal;
	transition: all 0.2s ease;
	opacity: 0.6;
}

.image-overlay-container .text.button,
.image-overlay-container .text .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto !important;
	max-width: max-content;
	padding: 0.75em 1.35em;
	margin: 0 auto;
	border-radius: 6px;
	text-decoration: none;
	white-space: nowrap;
	flex: 0 0 auto;
}

.image-overlay-container:hover .text {
	transform: translateY(-1px);
}

.image-overlay-container .text:active {
	transform: translateY(1px);
}

/* =========================
   Buttons
========================= */

.post.products .btn,
.post.products .button {
	display: block;
	width: 100%;
	margin-top: auto;
	padding: 0.7em 0.8em;
	line-height: 1.1em;
	font-size: 0.9em;
	color: #fff;
	box-sizing: border-box;
	border-radius: 6px;
	text-align: center;
}

/* =========================
   Bestseller
========================= */

.post.products.bestseller {
	background: #fffde8;
	border: 2px solid #d6c85a;
}

.post.products.bestseller .geeks img {
	transform: scale(1.05);
}

/* =========================
   Product names
========================= */

.mobile-product-name {
	display: none;
}

.desktop-product-name {
	display: inline;
}

/* =========================
   Tablet
========================= */

@media all and (min-width: 769px) and (max-width: 1280px) {
	.posts .post,
	.posts .post1,
	.posts .postwide {
		width: calc(33.333% - 0.75em);
	}
}

/* =========================
   Mobile
========================= */

@media all and (max-width: 768px) {
	.posts .post,
	.posts .post1,
	.posts .postwide {
		width: 100%;
	}

	.post.products {
		padding: 1.1em;
		border-radius: 10px;
	}

	.geeks,
	.image-overlay-container {
		height: 240px;
	}

	.post.products h3,
	.post.products h4,
	.post.products h5 {
		font-size: 1.05em;
	}

	.post.products p,
	.post.products small {
		font-size: 0.92em;
	}

	.post.products .btn,
	.post.products .button {
		font-size: 0.9em;
		padding: 0.65em 0.75em;
	}

	.desktop-product-name {
		display: none;
	}

	.mobile-product-name {
		display: inline;
		font-weight: bold;
	}

	.image-overlay-container.mobile-preview .image-main {
		opacity: 0;
		transform: scale(1.05);
	}

	.image-overlay-container.mobile-preview .image-hover {
		opacity: 1;
		transform: scale(1.12);
	}

	.image-overlay-container.mobile-preview .overlay {
		opacity: 1;
	}
}

/* =========================
   Large desktop sections
========================= */

@media screen and (min-width: 1280px) {
	#buynow .posts .post,
	#hardware .posts .post {
		width: calc(17% - 0.75em);
		background: #fff;
		padding: 1em;
		border: 1px solid #efefef;
		border-radius: 10px;
	}
}