/**
 * =========================================================
 * HEMRITU SHOP - INSTAGRAM / REELS CSS
 * =========================================================
 */


/* ---------------------------------------------------------
   SECTION
--------------------------------------------------------- */

.hemritu-shop-reels {
	width: 100%;
	margin: 0;
	padding: 0;
}

.hemritu-shop-reels-inner {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}


/* ---------------------------------------------------------
   HEADING
--------------------------------------------------------- */

.hemritu-shop-reels-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 24px;
}

.hemritu-shop-reels-eyebrow {
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	opacity: 0.62;
}

.hemritu-shop-reels .hemritu-shop-section-title {
	margin: 0;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 700;
}

.hemritu-shop-reels .hemritu-shop-section-subtitle {
	margin: 7px 0 0;
	font-size: 15px;
	line-height: 1.5;
	opacity: 0.7;
}


/* ---------------------------------------------------------
   GRID
--------------------------------------------------------- */

.hemritu-shop-reels-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	width: 100%;
}


/* ---------------------------------------------------------
   CARD
--------------------------------------------------------- */

.hemritu-shop-reels-card {
	width: 100%;
	min-width: 0;
}

.hemritu-shop-reels-card.hemritu-shop-reels-hidden {
	display: none;
}

.hemritu-shop-reels-link {
	display: block;
	width: 100%;
	color: inherit;
	text-decoration: none;
}


/* ---------------------------------------------------------
   MEDIA
--------------------------------------------------------- */

.hemritu-shop-reels-media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 12px;
	background: #f3f3f3;
}

.hemritu-shop-reels-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.hemritu-shop-reels-link:hover .hemritu-shop-reels-image {
	transform: scale(1.04);
}


/* ---------------------------------------------------------
   PLACEHOLDER
--------------------------------------------------------- */

.hemritu-shop-reels-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	gap: 10px;
	background: #eeeeee;
}

.hemritu-shop-reels-placeholder-icon {
	font-size: 44px;
	line-height: 1;
	font-weight: 400;
}

.hemritu-shop-reels-placeholder-text {
	font-size: 13px;
	font-weight: 600;
}


/* ---------------------------------------------------------
   OVERLAY
--------------------------------------------------------- */

.hemritu-shop-reels-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		transparent 45%,
		rgba(0, 0, 0, 0.32) 100%
	);
	pointer-events: none;
}


/* ---------------------------------------------------------
   INSTAGRAM ICON
--------------------------------------------------------- */

.hemritu-shop-reels-instagram-icon {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
}

.hemritu-shop-reels-instagram-icon span {
	font-size: 21px;
	line-height: 1;
}


/* ---------------------------------------------------------
   PLAY BUTTON
--------------------------------------------------------- */

.hemritu-shop-reels-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
	transform: translate(-50%, -50%);
	transition:
		transform 0.25s ease,
		background-color 0.25s ease;
}

.hemritu-shop-reels-play span {
	margin-left: 3px;
	font-size: 18px;
	line-height: 1;
}

.hemritu-shop-reels-link:hover .hemritu-shop-reels-play {
	transform: translate(-50%, -50%) scale(1.08);
}


/* ---------------------------------------------------------
   INFO
--------------------------------------------------------- */

.hemritu-shop-reels-info {
	padding: 12px 2px 0;
}

.hemritu-shop-reels-title {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 700;
}

.hemritu-shop-reels-description {
	margin: 5px 0 0;
	font-size: 12px;
	line-height: 1.45;
	opacity: 0.68;
}


/* ---------------------------------------------------------
   VIEW MORE
--------------------------------------------------------- */

.hemritu-shop-reels-more-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 28px;
}

.hemritu-shop-reels-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	min-height: 46px;
	padding: 10px 22px;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	transition:
		transform 0.2s ease,
		background-color 0.2s ease;
}

.hemritu-shop-reels-more:hover {
	transform: translateY(-1px);
}


/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 1100px) {

	.hemritu-shop-reels-grid {
		gap: 16px;
	}

}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 767px) {

	.hemritu-shop-reels-inner {
		padding: 0 12px;
	}

	.hemritu-shop-reels-heading {
		margin-bottom: 18px;
	}

	.hemritu-shop-reels .hemritu-shop-section-title {
		font-size: 23px;
	}

	.hemritu-shop-reels .hemritu-shop-section-subtitle {
		font-size: 13px;
	}

	.hemritu-shop-reels-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.hemritu-shop-reels-media {
		border-radius: 9px;
	}

	.hemritu-shop-reels-instagram-icon {
		top: 9px;
		right: 9px;
		width: 32px;
		height: 32px;
	}

	.hemritu-shop-reels-instagram-icon span {
		font-size: 18px;
	}

	.hemritu-shop-reels-play {
		width: 44px;
		height: 44px;
	}

	.hemritu-shop-reels-play span {
		font-size: 14px;
	}

	.hemritu-shop-reels-info {
		padding-top: 8px;
	}

	.hemritu-shop-reels-title {
		font-size: 13px;
	}

	.hemritu-shop-reels-description {
		font-size: 11px;
	}

	.hemritu-shop-reels-more-wrap {
		margin-top: 22px;
	}

	.hemritu-shop-reels-more {
		min-width: 130px;
		min-height: 42px;
		padding: 9px 18px;
		font-size: 14px;
	}

}


/* ---------------------------------------------------------
   ADMIN
--------------------------------------------------------- */

.hemritu-shop-reels-admin-field {
	width: 100%;
}

.hemritu-shop-reels-admin-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 15px;
}

.hemritu-shop-reels-count {
	padding: 6px 10px;
	border-radius: 4px;
	background: #f0f0f1;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.hemritu-shop-reels-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hemritu-shop-reels-admin-item {
	border: 1px solid #dcdcde;
	border-radius: 7px;
	background: #fff;
}

.hemritu-shop-reels-admin-item-top {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-bottom: 1px solid #ececec;
	background: #f6f7f7;
}

.hemritu-shop-reels-admin-item-top strong {
	flex: 1;
}

.hemritu-shop-reels-drag {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: grab;
	color: #646970;
}

.hemritu-shop-reels-drag:active {
	cursor: grabbing;
}

.hemritu-shop-reels-admin-item.hemritu-shop-reels-dragging {
	opacity: 0.45;
}

.hemritu-shop-reels-admin-grid {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 20px;
	padding: 15px;
}

.hemritu-shop-reels-admin-image label,
.hemritu-shop-reels-admin-content label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
}

.hemritu-shop-reels-image-preview {
	width: 150px;
	aspect-ratio: 4 / 5;
	margin-bottom: 10px;
	overflow: hidden;
	border-radius: 6px;
	background: #f0f0f1;
}

.hemritu-shop-reels-preview-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hemritu-shop-reels-image-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.hemritu-shop-reels-admin-content {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.hemritu-shop-reels-admin-content label:not(:first-child) {
	margin-top: 5px;
}

.hemritu-shop-reels-enabled {
	display: flex !important;
	align-items: center;
	gap: 7px;
	margin-top: 8px !important;
}

.hemritu-shop-reels-enabled input {
	margin: 0;
}

.hemritu-shop-reels-add-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
}


/* ---------------------------------------------------------
   ADMIN MOBILE
--------------------------------------------------------- */

@media (max-width: 782px) {

	.hemritu-shop-reels-admin-grid {
		grid-template-columns: 1fr;
	}

	.hemritu-shop-reels-admin-header {
		flex-direction: column;
		gap: 8px;
	}

}