/* ============================================
   BENTO GRID + SHIMMER SKELETON
   Adapted from Ghost Boost -> Teepography
   ============================================ */

.bento-section { padding-bottom: 80px; }

.bento-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: minmax(200px, auto);
	gap: 24px;
	padding: 0 24px;
}

/* Skeleton Loading */
.skeleton-card {
	background: #fff;
	border-radius: 22px;
	height: 100%;
	min-height: 280px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.shimmer-layer {
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: tee-shimmer 1.8s infinite linear;
}

@keyframes tee-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Bento Card (Product) */
.bento-card {
	background: #fff;
	border-radius: 22px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
	will-change: transform, box-shadow;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
	display: flex;
	flex-direction: column;
}

.bento-card img {
	width: 100%;
	height: 70%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-card:hover img { transform: scale(1.05); }

.bento-card .bento-info {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.bento-card h3 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 4px 0;
	color: #0A0A0A;
	line-height: 1.3;
}

.bento-card .bento-price {
	font-size: 0.95rem;
	font-weight: 600;
	color: #FF3366;
	margin: 0;
}

.bento-card .bento-rating {
	font-size: 0.8rem;
	color: #888;
	margin-top: 4px;
}

.bento-card .bento-external-badge {
	position: absolute;
	top: 12px; right: 12px;
	background: rgba(0,0,0,0.7);
	color: #fff;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 0.7rem;
	font-weight: 600;
	z-index: 2;
	backdrop-filter: blur(4px);
}

/* Grid Spans */
.span-2-2 { grid-column: span 2; grid-row: span 2; }
.span-2-1 { grid-column: span 2; grid-row: span 1; }
.span-1-2 { grid-column: span 1; grid-row: span 2; }
.span-1-1 { grid-column: span 1; grid-row: span 1; }

/* 3D Tilt & Dynamic Shadow */
.bento-card {
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	transform-style: preserve-3d;
}

/* Reveal Animation */
@keyframes reveal-card {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Responsive Bento */
@media (max-width: 1024px) {
	.bento-grid { grid-template-columns: repeat(3, 1fr); }
	.span-2-2 { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 768px) {
	.bento-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
		padding: 0 16px;
	}
	.span-2-2 { grid-column: span 2; grid-row: span 2; }
	.span-2-1 { grid-column: span 2; grid-row: span 1; }
	.skeleton-card { min-height: 200px; }
}

@media (max-width: 480px) {
	.bento-grid { grid-template-columns: 1fr; }
	.span-2-2, .span-2-1, .span-1-2 { grid-column: span 1; grid-row: span 1; }
}
