/* Shop By Category Section Styles */

.sbcs-section-wrapper {
	width: 100%;
	position: relative;
	box-sizing: border-box;
}

.sbcs-header {
	text-align: center;
	margin-bottom: 30px;
}

.sbcs-main-title {
	margin: 0;
	padding: 0;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #111111;
}

/* Grid Layout */
.sbcs-grid {
	display: grid;
	width: 100%;
	margin: 0;
	padding: 0;
	gap: 0px; /* Gapless grid default */
}

.sbcs-cols-desktop-1 { grid-template-columns: repeat(1, 1fr); }
.sbcs-cols-desktop-2 { grid-template-columns: repeat(2, 1fr); }
.sbcs-cols-desktop-3 { grid-template-columns: repeat(3, 1fr); }
.sbcs-cols-desktop-4 { grid-template-columns: repeat(4, 1fr); }
.sbcs-cols-desktop-5 { grid-template-columns: repeat(5, 1fr); }
.sbcs-cols-desktop-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
	.sbcs-cols-tablet-1 { grid-template-columns: repeat(1, 1fr) !important; }
	.sbcs-cols-tablet-2 { grid-template-columns: repeat(2, 1fr) !important; }
	.sbcs-cols-tablet-3 { grid-template-columns: repeat(3, 1fr) !important; }
	.sbcs-cols-tablet-4 { grid-template-columns: repeat(4, 1fr) !important; }
}

@media (max-width: 767px) {
	.sbcs-cols-mobile-1 { grid-template-columns: repeat(1, 1fr) !important; }
	.sbcs-cols-mobile-2 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Tile Structure */
.sbcs-tile {
	position: relative;
	height: 420px;
	overflow: hidden;
	box-sizing: border-box;
}

.sbcs-tile-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	position: relative;
}

.sbcs-image-wrapper {
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.sbcs-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.sbcs-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.25);
	transition: background-color 0.4s ease;
}

/* Tile Content & Button Overlay */
.sbcs-tile-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 20px;
	z-index: 2;
	text-align: center;
}

.sbcs-tile-title {
	color: #ffffff;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin: 0 0 15px 0;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
	transition: transform 0.4s ease;
}

.sbcs-btn-white {
	display: inline-block;
	background-color: #ffffff;
	color: #111111;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 12px 28px;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0,0,0,0.15);
	transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.3s ease, color 0.3s ease;
}

/* --- HOVER EFFECTS --- */

/* 1. Reveal-Button (Classic) */
.sbcs-effect-reveal-button .sbcs-btn-white {
	opacity: 0;
	transform: translateY(20px);
}

.sbcs-effect-reveal-button .sbcs-tile:hover .sbcs-btn-white {
	opacity: 1;
	transform: translateY(0);
}

.sbcs-effect-reveal-button .sbcs-tile:hover .sbcs-image-wrapper img {
	transform: scale(1.08);
}

/* 2. Zoom & Persistent Button */
.sbcs-effect-zoom .sbcs-tile:hover .sbcs-image-wrapper img {
	transform: scale(1.1);
}

.sbcs-effect-zoom .sbcs-tile:hover .sbcs-btn-white {
	background-color: #111111;
	color: #ffffff;
}

/* 3. Card Lift */
.sbcs-effect-lift .sbcs-tile {
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sbcs-effect-lift .sbcs-tile:hover {
	transform: translateY(-8px);
	z-index: 5;
	box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* --- SCROLL ENTRANCE ANIMATION (Staggered) --- */
.sbcs-scroll-anim-enabled .sbcs-animated-item {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: calc(var(--stagger-index, 0) * 0.12s);
}

.sbcs-scroll-anim-enabled .sbcs-animated-item.sbcs-in-view {
	opacity: 1;
	transform: translateY(0);
}
