/* SH Product Categories - autoplay carousel */
.sh-pc-wrapper {
	--sh-pc-gap: 20px;
	width: 100%;
	overflow: hidden;
}

.sh-pc-grid {
	display: flex;
	gap: var(--sh-pc-gap);
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	touch-action: pan-y;
}

.sh-pc-grid::-webkit-scrollbar { display: none; }

.sh-pc-card {
	flex: 0 0 calc((100% - (var(--sh-pc-columns) - 1) * var(--sh-pc-gap)) / var(--sh-pc-columns));
	min-width: 0;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 2px 12px rgba(0,0,0,.06);
	transition: transform .22s ease, box-shadow .22s ease;
	scroll-snap-align: start;
}

.sh-pc-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.08); }
.sh-pc-card__image-link { display: block; text-decoration: none; }
.sh-pc-card__image { width: 100%; height: 200px; overflow: hidden; position: relative; background: #f3f4f6; }
.sh-pc-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .35s ease; }
.sh-pc-card:hover .sh-pc-card__image img { transform: scale(1.04); }
.sh-pc-card__image--placeholder { display: flex; align-items: center; justify-content: center; background: #f0f0f0; }
.sh-pc-placeholder-icon { display: flex; align-items: center; justify-content: center; color: #c4c4c4; }
.sh-pc-placeholder-icon svg { width: 48px; height: 48px; }

.sh-pc-card__body { padding: 14px 16px 16px; display: flex; flex: 1; flex-direction: column; }
.sh-pc-card__title { margin: 0 0 3px; padding: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.sh-pc-card__title a { color: #1a1a2e; text-decoration: none; transition: color .18s ease; }
.sh-pc-card__title a:hover { color: #1e3a8a; }
.sh-pc-card__count { display: block; margin-bottom: 4px; color: #9ca3af; font-size: .78rem; }
.sh-pc-card__desc { margin: 0; padding-bottom: 5px; color: #6b7280; font-size: .875rem; line-height: 1.45; }
.sh-pc-card__btn { display: inline-flex; align-items: center; align-self: flex-start; gap: 5px; margin-top: 4px; padding-top: 0; color: #1e3a8a; font-size: .875rem; font-weight: 700; letter-spacing: .01em; text-decoration: none; transition: color .18s ease, gap .18s ease; }
.sh-pc-card__btn:hover { color: #1e40af; gap: 9px; }
.sh-pc-card__btn-icon { font-size: 1em; transition: transform .18s ease; }
.sh-pc-card__btn:hover .sh-pc-card__btn-icon { transform: translateX(3px); }

.sh-pc-editor-notice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 24px; border: 2px dashed #c8c8c8; border-radius: 10px; color: #8a8a8a; text-align: center; background: #fafafa; }
.sh-pc-editor-notice .eicon-product-categories { color: #c0c0c0; font-size: 40px; }
.sh-pc-editor-notice p { max-width: 340px; margin: 0; font-size: 14px; line-height: 1.5; }

@media (max-width: 1024px) {
	.sh-pc-card { flex-basis: calc((100% - (var(--sh-pc-columns-tablet) - 1) * var(--sh-pc-gap)) / var(--sh-pc-columns-tablet)); }
}

@media (max-width: 600px) {
	.sh-pc-wrapper { --sh-pc-gap: 8px; }
	.sh-pc-card { flex-basis: calc((100% - (var(--sh-pc-columns-mobile) - 1) * var(--sh-pc-gap)) / var(--sh-pc-columns-mobile)); border-radius: 7px; box-shadow: none; }
	.sh-pc-card:hover { transform: none; box-shadow: none; }
	.sh-pc-card__image { height: auto; aspect-ratio: 1 / 1; border-radius: 7px; }
	
	.sh-pc-card__body {
	align-items: center;
	padding: 4px 5px 7px !important;
	text-align: center;
}
	
	.sh-pc-card__title { margin-bottom: 2px; font-size: 10px; line-height: 1.15; }
	.sh-pc-card__count, .sh-pc-card__desc { font-size: 9px; line-height: 1.2; }
	.sh-pc-card__desc { padding-bottom: 2px; }
	.sh-pc-card__btn { align-self: center; margin-top: 2px; font-size: 9px; line-height: 1.15; }

	.home-categories-section-almas .sh-pc-card {
		border-radius: 7px 7px 0 0;
	}

	.home-categories-section-almas .sh-pc-card__image {
		height: 80px !important;
		aspect-ratio: auto;
		border-radius: 7px 7px 0 0;
	}

	.home-categories-section-almas .sh-pc-card__btn {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sh-pc-grid { scroll-behavior: auto; }
	.sh-pc-card, .sh-pc-card__image img { transition: none; }
}
