/**
 * ==========================================================
 * ShopCore - Homepage Static Product Grids & Brand Section
 * File: assets/css/home-grids.css
 * ==========================================================
 */

.shopcore-product-section {
	padding: 28px 0 20px 0;
	width: 100%;
}

/* --------------------------------------------------
 * 6-Column Grid Layout (Latest Product, All Product)
 * -------------------------------------------------- */
.shopcore-product-grid-6 {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	width: 100%;
}

.shopcore-product-grid-6 .shopcore-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* --------------------------------------------------
 * 4-Column Grid Layout (Official, Unofficial, Gadgets)
 * -------------------------------------------------- */
.shopcore-product-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	width: 100%;
}

.shopcore-product-grid-4 .shopcore-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* --------------------------------------------------
 * Exclusive Brands Banner Section
 * -------------------------------------------------- */
.shopcore-exclusive-brands-section {
	padding: 26px 0 20px 0;
	width: 100%;
}

.shopcore-exclusive-brands-card {
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.shopcore-exclusive-brands-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.shopcore-exclusive-brands-link {
	display: block;
	width: 100%;
	text-decoration: none;
	line-height: 0;
}

.shopcore-exclusive-brands-img {
	width: 100%;
	height: auto;
	max-height: 240px;
	object-fit: contain;
	display: block;
	background: #ffffff;
}

/* --------------------------------------------------
 * Responsive Breakpoints
 * -------------------------------------------------- */
@media (max-width: 1200px) {
	.shopcore-product-grid-6 {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
}

@media (max-width: 991px) {
	.shopcore-product-section {
		padding: 28px 0 16px 0;
	}

	.shopcore-product-grid-4 {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.shopcore-exclusive-brands-img {
		max-height: 180px;
	}
}

@media (max-width: 640px) {
	.shopcore-product-grid-6 {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.shopcore-product-grid-4 {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.shopcore-section-header {
		margin-bottom: 18px;
	}

	.shopcore-section-heading h2 {
		font-size: 20px;
	}

	.sc-explore-btn {
		padding: 6px 14px;
		font-size: 12px;
	}

	.shopcore-exclusive-brands-img {
		max-height: 140px;
	}
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.shopcore-why-choose-section {
	padding: 26px 0 22px 0;
}

.shopcore-why-choose-card {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 32px 36px;
}

.shopcore-why-choose-block + .shopcore-why-choose-block {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

.shopcore-why-choose-heading {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 0 12px 0;
	line-height: 1.35;
}

.shopcore-why-choose-heading .text-black {
	color: #0f172a;
}

.shopcore-why-choose-heading .text-red {
	color: #ef1d25;
}

.shopcore-why-choose-text {
	color: #475569;
	font-size: 13.5px;
	line-height: 1.75;
}

.shopcore-why-choose-text p {
	margin: 0 0 12px 0;
}

.shopcore-why-choose-text p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Latest News Grid Section
   ========================================================================== */
.shopcore-latest-news {
	padding: 28px 0 22px 0;
}

.shopcore-latest-news-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.shopcore-news-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 22px 20px;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.shopcore-news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.08);
	border-color: #cbd5e1;
}

.shopcore-news-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	margin: 0 0 10px 0;
}

.shopcore-news-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.shopcore-news-title a:hover {
	color: #ef1d25;
}

.shopcore-news-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #94a3b8;
	font-weight: 500;
	margin-bottom: 12px;
}

.shopcore-news-excerpt {
	font-size: 13px;
	color: #64748b;
	line-height: 1.65;
	margin: 0;
	flex-grow: 1;
}

/* ==========================================================================
   Pro Banner Section with Animated Tech Particle Background
   ========================================================================== */
.shopcore-pro-banner-section {
	position: relative;
	background: #05070d;
	padding: 32px 0 40px 0;
	overflow: hidden;
}

/* Cosmic Tech Floating Particles Background */
.shopcore-tech-particles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: hidden;
	z-index: 1;
}

.tech-star-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.tech-star-layer.layer-1 {
	background-image: 
		radial-gradient(2px 2px at 15% 25%, rgba(239, 29, 37, 0.9), transparent),
		radial-gradient(2px 2px at 45% 65%, rgba(139, 92, 246, 0.8), transparent),
		radial-gradient(1.5px 1.5px at 75% 35%, rgba(56, 189, 248, 0.9), transparent),
		radial-gradient(2.5px 2.5px at 85% 80%, rgba(239, 29, 37, 0.8), transparent),
		radial-gradient(1px 1px at 30% 85%, #ffffff, transparent),
		radial-gradient(1.5px 1.5px at 60% 15%, #ffffff, transparent),
		radial-gradient(2px 2px at 90% 15%, rgba(56, 189, 248, 0.8), transparent);
	background-size: 400px 300px;
	animation: techTwinkle 4s ease-in-out infinite alternate, techDrift 25s linear infinite;
	opacity: 0.85;
}

.tech-star-layer.layer-2 {
	background-image: 
		radial-gradient(1.5px 1.5px at 25% 45%, rgba(255, 255, 255, 0.8), transparent),
		radial-gradient(2px 2px at 65% 75%, rgba(239, 29, 37, 0.6), transparent),
		radial-gradient(1px 1px at 80% 20%, rgba(168, 85, 247, 0.7), transparent),
		radial-gradient(2px 2px at 10% 90%, rgba(56, 189, 248, 0.7), transparent),
		radial-gradient(1.5px 1.5px at 50% 30%, #ffffff, transparent);
	background-size: 300px 250px;
	animation: techTwinkle 6s ease-in-out infinite alternate-reverse, techDriftReverse 35s linear infinite;
	opacity: 0.65;
}

.tech-star-layer.layer-3 {
	background: radial-gradient(circle at 50% 50%, rgba(239, 29, 37, 0.08) 0%, rgba(15, 23, 42, 0) 70%);
	opacity: 0.9;
}

@keyframes techTwinkle {
	0% {
		opacity: 0.35;
		transform: scale(0.98);
	}
	50% {
		opacity: 0.9;
	}
	100% {
		opacity: 0.55;
		transform: scale(1.02);
	}
}

@keyframes techDrift {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 400px 300px;
	}
}

@keyframes techDriftReverse {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: -300px -250px;
	}
}

.shopcore-pro-banner-container {
	position: relative;
	z-index: 2;
}

.shopcore-pro-banner-card {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	aspect-ratio: 14 / 3;
	max-height: 300px;
}

.shopcore-pro-banner-card:hover {
	transform: translateY(-3px) scale(1.005);
	box-shadow: 0 20px 50px -8px rgba(239, 29, 37, 0.25);
}

.shopcore-pro-banner-link {
	display: block;
	text-decoration: none;
	width: 100%;
	height: 100%;
}

.shopcore-pro-banner-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

/* ==========================================================================
   Responsive Breakpoints for New Sections
   ========================================================================== */
@media (max-width: 1200px) {
	.shopcore-product-grid-6 {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}

	.shopcore-product-grid-4 {
		gap: 16px;
	}

	.shopcore-latest-news-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 14px;
	}
}

@media (max-width: 991px) {
	.shopcore-product-section {
		padding: 22px 0 16px 0;
	}

	.shopcore-exclusive-brands-section {
		padding: 20px 0 16px 0;
	}

	.shopcore-why-choose-section {
		padding: 20px 0 16px 0;
	}

	.shopcore-why-choose-card {
		padding: 24px 22px;
	}

	.shopcore-latest-news {
		padding: 22px 0 18px 0;
	}

	.shopcore-latest-news-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.shopcore-pro-banner-section {
		padding: 24px 0 28px 0;
	}

	.shopcore-product-grid-4 {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.shopcore-exclusive-brands-img {
		max-height: 180px;
	}

	.shopcore-section-header {
		margin-bottom: 16px;
	}

	.shopcore-section-heading h2 {
		font-size: 20px;
	}
}

@media (max-width: 640px) {
	.shopcore-product-section {
		padding: 16px 0 12px 0;
	}

	.shopcore-exclusive-brands-section {
		padding: 14px 0 10px 0;
	}

	.shopcore-why-choose-section {
		padding: 16px 0 12px 0;
	}

	.shopcore-why-choose-card {
		padding: 18px 14px;
		border-radius: 10px;
	}

	.shopcore-why-choose-heading {
		font-size: 14px;
		margin-bottom: 8px;
	}

	.shopcore-why-choose-text {
		font-size: 12.5px;
		line-height: 1.65;
	}

	.shopcore-latest-news {
		padding: 16px 0 14px 0;
	}

	.shopcore-latest-news-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.shopcore-news-card {
		padding: 14px 12px;
		border-radius: 8px;
	}

	.shopcore-news-title {
		font-size: 14px;
		margin-bottom: 6px;
	}

	.shopcore-news-meta {
		font-size: 11px;
		margin-bottom: 8px;
	}

	.shopcore-news-excerpt {
		font-size: 12px;
		line-height: 1.55;
	}

	.shopcore-pro-banner-section {
		padding: 18px 0 22px 0;
	}

	.shopcore-pro-banner-card {
		border-radius: 10px;
		aspect-ratio: 14 / 3;
		height: auto;
	}

	.shopcore-product-grid-6 {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.shopcore-product-grid-4 {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.shopcore-section-header {
		margin-bottom: 12px;
	}

	.shopcore-section-heading h2 {
		font-size: 16px;
	}

	.sc-explore-btn {
		padding: 4px 10px;
		font-size: 11px;
	}

	.shopcore-exclusive-brands-img {
		max-height: 130px;
	}
}


