/**
 * NexaShop Single Product Featured Image & Gallery Widget Styles
 * High fidelity Digikala-style gallery, floating action toolbar, fullscreen lightbox,
 * Uiverse.io social buttons, price chart modal, alert modal, and comparison table.
 */

/* ==========================================================================
   1. Gallery Container & Main Showcase
   ========================================================================== */
.nexashop-product-gallery-wrap {
	position: relative;
	width: 100%;
	direction: rtl;
	box-sizing: border-box;
	font-family: inherit;
}

.nexashop-gallery-main-box {
	position: relative;
	width: 100%;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	transition: all 0.3s ease;
}

.nexashop-gallery-main-box:hover {
	border-color: #cbd5e1;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

.nexashop-gallery-main-img-holder {
	position: relative;
	width: 100%;
	padding-top: 100%; /* 1:1 Aspect ratio default */
	overflow: hidden;
}

.nexashop-gallery-main-img-holder img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
	user-select: none;
}

.nexashop-gallery-main-box:hover .nexashop-gallery-main-img-holder img.zoom-enabled {
	transform: scale(1.05);
}

/* ==========================================================================
   2. Floating Actions Toolbar (نوار آیکون‌های اکشن)
   ========================================================================== */
.nexashop-gallery-showcase-box {
	position: relative;
	width: 100%;
}

/* Inside Overlay Mode */
.nexashop-gallery-showcase-box.nexashop-toolbar-mode-inside .nexashop-product-actions-toolbar {
	position: absolute;
	z-index: 15;
}

/* Outside Mode */
.nexashop-gallery-showcase-box.nexashop-toolbar-mode-outside {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.nexashop-gallery-showcase-box.nexashop-toolbar-mode-outside.nexashop-toolbar-h-right {
	flex-direction: row-reverse;
}

.nexashop-gallery-showcase-box.nexashop-toolbar-mode-outside .nexashop-gallery-main-box {
	flex-grow: 1;
}

.nexashop-gallery-showcase-box.nexashop-toolbar-mode-outside .nexashop-product-actions-toolbar {
	position: relative;
	flex-shrink: 0;
	top: auto !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	transform: none !important;
}

/* Toolbar Horizontal Align (Inside Mode) */
.nexashop-gallery-showcase-box.nexashop-toolbar-mode-inside.nexashop-toolbar-h-left .nexashop-product-actions-toolbar {
	left: calc(16px + var(--nexashop-toolbar-offset-x, 0px));
	right: auto;
}

.nexashop-gallery-showcase-box.nexashop-toolbar-mode-inside.nexashop-toolbar-h-right .nexashop-product-actions-toolbar {
	right: calc(16px + var(--nexashop-toolbar-offset-x, 0px));
	left: auto;
}

/* Toolbar Vertical Align (Inside Mode) */
.nexashop-gallery-showcase-box.nexashop-toolbar-mode-inside.nexashop-toolbar-v-top .nexashop-product-actions-toolbar {
	top: calc(16px + var(--nexashop-toolbar-offset-y, 0px));
	bottom: auto;
	transform: none;
}

.nexashop-gallery-showcase-box.nexashop-toolbar-mode-inside.nexashop-toolbar-v-middle .nexashop-product-actions-toolbar {
	top: calc(50% + var(--nexashop-toolbar-offset-y, 0px));
	bottom: auto;
	transform: translateY(-50%);
}

.nexashop-gallery-showcase-box.nexashop-toolbar-mode-inside.nexashop-toolbar-v-bottom .nexashop-product-actions-toolbar {
	bottom: calc(16px + var(--nexashop-toolbar-offset-y, 0px));
	top: auto;
	transform: none;
}

.nexashop-product-actions-toolbar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	pointer-events: auto;
}

.nexashop-action-btn-item {
	position: relative;
}

.nexashop-action-btn {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: transparent;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #475569;
	cursor: pointer;
	padding: 0;
	margin: 0;
	box-shadow: none;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	outline: none;
}

.nexashop-action-btn:hover {
	background: rgba(0, 0, 0, 0.05);
	color: #7c3aed;
}

.nexashop-action-btn svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	transition: all 0.25s ease;
}

/* Wishlist Active State (Hollow -> Filled Red Heart) */
.nexashop-action-btn.btn-wishlist.is-active {
	color: #ef4444 !important;
	background: transparent;
}

.nexashop-action-btn.btn-wishlist.is-active svg {
	fill: #ef4444 !important;
	stroke: #ef4444 !important;
	animation: nexashopHeartPulse 0.4s ease;
}

@keyframes nexashopHeartPulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.25); }
	100% { transform: scale(1); }
}

/* ==========================================================================
   2.1 Button Hover Animations
   ========================================================================== */
/* 1. Scale */
.nexashop-btn-anim-scale .nexashop-action-btn:hover {
	transform: scale(1.12);
}

/* 2. Pulse */
.nexashop-btn-anim-pulse .nexashop-action-btn:hover {
	animation: nexashopBtnPulse 0.6s infinite alternate ease-in-out;
}
@keyframes nexashopBtnPulse {
	0% { transform: scale(1); }
	100% { transform: scale(1.14); }
}

/* 3. Rotate */
.nexashop-btn-anim-rotate .nexashop-action-btn:hover {
	transform: rotate(12deg) scale(1.08);
}
.nexashop-btn-anim-rotate .nexashop-action-btn:hover svg {
	transform: rotate(-12deg);
}

/* 4. Bounce */
.nexashop-btn-anim-bounce .nexashop-action-btn:hover {
	animation: nexashopBtnBounce 0.45s cubic-bezier(0.36, 0, 0.66, -0.56) infinite alternate;
}
@keyframes nexashopBtnBounce {
	0% { transform: translateY(0); }
	100% { transform: translateY(-5px); }
}

/* 5. Glow */
.nexashop-btn-anim-glow .nexashop-action-btn:hover {
	box-shadow: 0 0 16px rgba(2, 132, 199, 0.55), 0 0 26px rgba(2, 132, 199, 0.25);
	border-color: #38bdf8;
	transform: translateY(-2px);
}

/* ==========================================================================
   2.2 Tooltips on Action Buttons
   ========================================================================== */
.nexashop-action-tooltip {
	position: absolute;
	background: #1e293b;
	color: #ffffff;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 11.5px;
	font-weight: 500;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	z-index: 30;
}

/* Hide tooltips if switched off */
.nexashop-hide-tooltips .nexashop-action-tooltip {
	display: none !important;
}

/* Tooltip Position: Right */
.nexashop-tooltip-pos-right .nexashop-action-tooltip {
	left: calc(100% + 10px);
	right: auto;
	top: 50%;
	transform: translateY(-50%) translateX(6px);
}
.nexashop-tooltip-pos-right .nexashop-action-tooltip::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 100%;
	transform: translateY(-50%);
	border: 5px solid transparent;
	border-right-color: #1e293b;
}
.nexashop-tooltip-pos-right .nexashop-action-btn-item:hover .nexashop-action-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

/* Tooltip Position: Left */
.nexashop-tooltip-pos-left .nexashop-action-tooltip {
	right: calc(100% + 10px);
	left: auto;
	top: 50%;
	transform: translateY(-50%) translateX(-6px);
}
.nexashop-tooltip-pos-left .nexashop-action-tooltip::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 100%;
	transform: translateY(-50%);
	border: 5px solid transparent;
	border-left-color: #1e293b;
}
.nexashop-tooltip-pos-left .nexashop-action-btn-item:hover .nexashop-action-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

/* Tooltip Position: Top */
.nexashop-tooltip-pos-top .nexashop-action-tooltip {
	bottom: calc(100% + 10px);
	top: auto;
	left: 50%;
	right: auto;
	transform: translateX(-50%) translateY(6px);
}
.nexashop-tooltip-pos-top .nexashop-action-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #1e293b;
}
.nexashop-tooltip-pos-top .nexashop-action-btn-item:hover .nexashop-action-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* Tooltip Position: Bottom */
.nexashop-tooltip-pos-bottom .nexashop-action-tooltip {
	top: calc(100% + 10px);
	bottom: auto;
	left: 50%;
	right: auto;
	transform: translateX(-50%) translateY(-6px);
}
.nexashop-tooltip-pos-bottom .nexashop-action-tooltip::after {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-bottom-color: #1e293b;
}
.nexashop-tooltip-pos-bottom .nexashop-action-btn-item:hover .nexashop-action-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* Tooltip Animations */
.nexashop-tooltip-anim-fade .nexashop-action-tooltip {
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nexashop-tooltip-anim-slide .nexashop-action-tooltip {
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
}

.nexashop-tooltip-anim-zoom .nexashop-action-tooltip {
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, visibility 0.2s ease;
}

.nexashop-tooltip-anim-bounce .nexashop-action-tooltip {
	transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==========================================================================
   3. Thumbnails Strip (نوار تصاویر بندانگشتی)
   ========================================================================== */
.nexashop-gallery-thumbs-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 2px;
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

.nexashop-gallery-thumbs-row::-webkit-scrollbar {
	height: 4px;
}

.nexashop-gallery-thumbs-row::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.nexashop-thumb-item {
	position: relative;
	width: 68px;
	height: 68px;
	flex-shrink: 0;
	border-radius: 12px;
	border: 1.5px solid #e2e8f0;
	background: #ffffff;
	cursor: pointer;
	overflow: hidden;
	padding: 4px;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.nexashop-thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 8px;
}

.nexashop-thumb-item:hover {
	border-color: #94a3b8;
	transform: translateY(-2px);
}

.nexashop-thumb-item.is-active {
	border-color: #0284c7;
	box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

/* More Thumbnails Button (...) */
.nexashop-thumb-item.thumb-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	color: #64748b;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 2px;
	border-style: dashed;
}

.nexashop-thumb-item.thumb-more:hover {
	background: #f1f5f9;
	color: #0f172a;
	border-color: #64748b;
}

/* ==========================================================================
   4. Universal Modal Base
   ========================================================================== */
.nexashop-modal-backdrop {
	display: none !important;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	inset: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(15, 23, 42, 0.68) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
	z-index: 999999 !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 20px !important;
	box-sizing: border-box !important;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	direction: rtl;
	margin: 0 !important;
}

.nexashop-modal-backdrop.is-open {
	display: flex !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.nexashop-modal-card {
	background: #ffffff;
	border-radius: 24px;
	width: 100%;
	max-width: 540px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
	transform: scale(0.95) translateY(12px);
	transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	box-sizing: border-box;
	margin: auto !important;
}

.nexashop-modal-backdrop.is-open .nexashop-modal-card {
	transform: scale(1) translateY(0);
}

.nexashop-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	border-bottom: 1px solid #f1f5f9;
}

.nexashop-modal-title {
	font-size: 17px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
}

.nexashop-modal-close-btn {
	background: #f1f5f9;
	border: none;
	color: #64748b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.nexashop-modal-close-btn:hover {
	color: #ef4444;
	background: #fee2e2;
	transform: rotate(90deg);
}

.nexashop-modal-body {
	padding: 24px;
}

/* ==========================================================================
   5. Share Modal & Uiverse Social Buttons (Linear Horizontal Layout)
   ========================================================================== */
.nexashop-share-subtitle {
	font-size: 13.5px;
	color: #64748b;
	margin-bottom: 18px;
	text-align: center;
}

.nexashop-copy-link-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px 14px;
	margin-bottom: 22px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.nexashop-copy-link-box:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

.nexashop-copy-link-text {
	font-size: 13px;
	color: #334155;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.nexashop-copy-link-btn {
	font-size: 12px;
	font-weight: 600;
	color: #0284c7;
	display: flex;
	align-items: center;
	gap: 6px;
	background: #e0f2fe;
	padding: 6px 12px;
	border-radius: 8px;
	transition: all 0.2s;
}

.nexashop-copy-link-box.copied .nexashop-copy-link-btn {
	background: #dcfce7;
	color: #16a34a;
}

/* Horizontal linear container for social buttons */
.nexashop-social-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: nowrap;
	padding: 10px 0;
	direction: ltr; /* Keeps consistent icon alignments */
}

/* Uiverse.io by GigioBagigi0 - Adapted with scoping & clean styles */
.Btn, .Btntwit, .Btninsta, .Btnstock {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background-color: transparent;
	position: relative;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s;
	padding: 0;
	text-decoration: none;
}

.svgContainer, .svgContainertwit, .svgContainerinsta, .svgContainerstock {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	backdrop-filter: blur(0px);
	letter-spacing: 0.8px;
	border-radius: 12px;
	transition: all 0.3s;
	border: 1px solid rgba(156, 156, 156, 0.3);
}

.BG, .BGtwit, .BGinsta, .BGstock {
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	z-index: -1;
	border-radius: 12px;
	pointer-events: none;
	transition: all 0.3s;
}

/* Telegram */
.BG { background: #24a1de; }
.Btn:hover .BG { transform: rotate(35deg); transform-origin: bottom; }
.Btn:hover .svgContainer {
	border: 1px solid rgba(226, 226, 226, 0.466);
	background-color: rgba(204, 204, 204, 0.3);
	backdrop-filter: blur(4px);
}

/* Twitter / X */
.BGtwit { background: #181818; }
.Btntwit:hover .BGtwit { transform: rotate(35deg); transform-origin: bottom; }
.Btntwit:hover .svgContainertwit {
	background-color: rgba(156, 156, 156, 0.3);
	backdrop-filter: blur(4px);
}

/* Instagram */
.BGinsta {
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.Btninsta:hover .BGinsta { transform: rotate(35deg); transform-origin: bottom; }
.Btninsta:hover .svgContainerinsta {
	background-color: rgba(156, 156, 156, 0.3);
	backdrop-filter: blur(4px);
}

/* Facebook / Stock */
.BGstock { background: #1877f2; }
.Btnstock:hover .BGstock { transform: rotate(35deg); transform-origin: bottom; }
.Btnstock:hover .svgContainerstock {
	background-color: rgba(202, 202, 202, 0.3);
	backdrop-filter: blur(4px);
}

/* ==========================================================================
   6. Alert Modal (اطلاع‌رسانی شگفت‌انگیز)
   ========================================================================== */
.nexashop-alert-option {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
	background: #f8fafc;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	transition: border-color 0.2s;
}

.nexashop-alert-option:focus-within {
	border-color: #0284c7;
	background: #ffffff;
}

.nexashop-alert-check-row {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.nexashop-alert-check-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #0284c7;
}

.nexashop-alert-check-row strong {
	font-size: 13.5px;
	color: #1e293b;
}

.nexashop-alert-input {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13px;
	outline: none;
	box-sizing: border-box;
	direction: ltr;
	text-align: right;
	transition: all 0.2s;
}

.nexashop-alert-input:focus {
	border-color: #0284c7;
	box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.nexashop-alert-submit-btn {
	width: 100%;
	background: #ef394e;
	color: #ffffff;
	border: none;
	padding: 12px 20px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.nexashop-alert-submit-btn:hover {
	background: #dc2626;
}

.nexashop-alert-status {
	margin-top: 14px;
	font-size: 13px;
	text-align: center;
	padding: 8px;
	border-radius: 8px;
	display: none;
}

.nexashop-alert-status.success {
	background: #dcfce7;
	color: #15803d;
	display: block;
}

.nexashop-alert-status.error {
	background: #fee2e2;
	color: #b91c1c;
	display: block;
}

/* ==========================================================================
   7. Price Chart Modal (نمودار قیمت فروش)
   ========================================================================== */
.nexashop-modal-card.chart-card {
	max-width: 780px;
}

.nexashop-chart-subhead {
	font-size: 13.5px;
	color: #64748b;
	margin: 0 0 16px 0;
}

.nexashop-chart-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f1f5f9;
}

.nexashop-chart-stat-box {
	background: #f8fafc;
	border-radius: 12px;
	padding: 10px 16px;
	border: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nexashop-chart-stat-label {
	font-size: 11.5px;
	color: #64748b;
}

.nexashop-chart-stat-value {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}

/* Dynamic SVG Chart Canvas */
.nexashop-chart-container {
	position: relative;
	width: 100%;
	height: 320px;
	background: #ffffff;
	border-radius: 14px;
	overflow: hidden;
	user-select: none;
}

.nexashop-chart-svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}

/* Crosshair & Tooltip */
.nexashop-chart-crosshair {
	stroke: #0284c7;
	stroke-width: 1.5;
	stroke-dasharray: 3 3;
	pointer-events: none;
	display: none;
}

.nexashop-chart-tooltip {
	position: absolute;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px 14px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
	pointer-events: none;
	z-index: 30;
	font-size: 12px;
	display: none;
	white-space: nowrap;
	transform: translate(-50%, -100%);
	margin-top: -12px;
}

.nexashop-chart-tooltip-seller {
	font-weight: 600;
	color: #334155;
	margin-bottom: 4px;
}

.nexashop-chart-tooltip-price {
	font-weight: 800;
	font-size: 14px;
	color: #0284c7;
	display: flex;
	align-items: center;
	gap: 6px;
}

.nexashop-chart-tooltip-date {
	font-size: 11px;
	color: #94a3b8;
	margin-top: 4px;
}

/* Chart Legend */
.nexashop-chart-legend {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 18px;
	font-size: 12px;
	color: #475569;
}

.nexashop-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nexashop-legend-line {
	width: 18px;
	height: 3px;
	border-radius: 2px;
}

.nexashop-legend-line.available { background: #0284c7; }
.nexashop-legend-line.regular { background: #cbd5e1; border-top: 2px dashed #94a3b8; }
.nexashop-legend-line.unavailable { background: #ef4444; }

/* ==========================================================================
   8. Compare Modal (مقایسه کالا)
   ========================================================================== */
.nexashop-modal-card.compare-card {
	max-width: 900px;
}

.nexashop-compare-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 24px;
}

.nexashop-compare-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
}

.nexashop-compare-img {
	width: 120px;
	height: 120px;
	object-fit: contain;
	margin-bottom: 12px;
	border-radius: 12px;
	background: #ffffff;
	padding: 6px;
	border: 1px solid #e2e8f0;
	box-sizing: border-box;
}

.nexashop-compare-name {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 8px;
	line-height: 1.4;
}

.nexashop-compare-price {
	font-size: 15px;
	font-weight: 800;
	color: #0284c7;
}

/* Placeholder for choosing 2nd product */
.nexashop-compare-card.choose-slot {
	cursor: pointer;
	border-style: dashed;
	border-width: 2px;
	justify-content: center;
	transition: all 0.2s;
	min-height: 220px;
}

.nexashop-compare-card.choose-slot:hover {
	background: #f1f5f9;
	border-color: #0284c7;
}

.nexashop-choose-slot-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #e0f2fe;
	color: #0284c7;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	margin-bottom: 10px;
}

/* Compare Search Overlay */
.nexashop-compare-search-wrap {
	display: none;
	width: 100%;
	margin-top: 14px;
}

.nexashop-compare-search-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 13px;
	box-sizing: border-box;
	outline: none;
}

.nexashop-compare-search-input:focus {
	border-color: #0284c7;
}

.nexashop-compare-search-results {
	max-height: 220px;
	overflow-y: auto;
	margin-top: 8px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.06);
	display: none;
}

.nexashop-compare-search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-bottom: 1px solid #f1f5f9;
	cursor: pointer;
	transition: background 0.2s;
	text-align: right;
}

.nexashop-compare-search-item:hover {
	background: #f8fafc;
}

.nexashop-compare-search-item img {
	width: 42px;
	height: 42px;
	object-fit: contain;
	border-radius: 6px;
}

/* Compare Attributes Table */
.nexashop-compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin-top: 14px;
}

.nexashop-compare-table th, .nexashop-compare-table td {
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
}

.nexashop-compare-table th {
	background: #f1f5f9;
	font-weight: 700;
	color: #334155;
	width: 30%;
}

.nexashop-compare-table td {
	width: 35%;
	color: #475569;
}

/* ==========================================================================
   9. Fullscreen Lightbox Modal (مطابق با تصویر ۴)
   ========================================================================== */
.nexashop-lightbox-backdrop {
	display: none !important;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #09090b;
	z-index: 100000;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	direction: rtl;
}

.nexashop-lightbox-backdrop.is-open {
	display: flex !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.nexashop-lightbox-header {
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #ffffff;
}

.nexashop-lightbox-close {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #ffffff;
	font-size: 26px;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, color 0.2s;
}

.nexashop-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.nexashop-lightbox-stage {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	padding: 20px;
}

.nexashop-lightbox-img {
	max-width: 80%;
	max-height: 75vh;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	user-select: none;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nexashop-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	border: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 22px;
	transition: all 0.2s;
	backdrop-filter: blur(4px);
}

.nexashop-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: translateY(-50%) scale(1.1);
}

.nexashop-lightbox-nav.prev { right: 24px; }
.nexashop-lightbox-nav.next { left: 24px; }

.nexashop-lightbox-footer {
	padding: 16px 24px;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	overflow-x: auto;
}

.nexashop-lightbox-thumb {
	width: 60px;
	height: 60px;
	border-radius: 10px;
	border: 2px solid transparent;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.5;
	transition: all 0.2s;
	flex-shrink: 0;
	background: #ffffff;
	padding: 2px;
	box-sizing: border-box;
}

.nexashop-lightbox-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 8px;
}

.nexashop-lightbox-thumb.is-active,
.nexashop-lightbox-thumb:hover {
	opacity: 1;
	border-color: #0284c7;
}

/* Responsive */
@media (max-width: 768px) {
	.nexashop-gallery-main-box {
		border-radius: 14px;
	}
	.nexashop-thumb-item {
		width: 58px;
		height: 58px;
	}
	.nexashop-compare-grid {
		grid-template-columns: 1fr;
	}
	.nexashop-modal-card {
		max-height: 85vh;
	}
	.nexashop-modal-card.chart-card {
		max-height: 90vh;
	}
	.nexashop-chart-container {
		height: 240px;
	}
	.nexashop-social-row {
		gap: 8px;
	}
}

/* ==========================================================================
   8. Color Caption, Blurred ••• Thumbnail, Bottom Bar, Video & Feedback Modals
      (Matches Reference Screenshots 1 & 2)
   ========================================================================== */

/* Clean Minimal Action Buttons & #e04f33 Pill Tooltip */
.nexashop-action-btn i {
	font-size: 19px;
	line-height: 1;
}

.nexashop-action-tooltip {
	background-color: #e04f33;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 13px;
	border-radius: 9px;
	box-shadow: 0 6px 18px rgba(224, 79, 51, 0.28);
	white-space: nowrap;
}

.nexashop-tooltip-pos-left .nexashop-action-tooltip::after {
	border-left-color: #e04f33;
}

.nexashop-tooltip-pos-right .nexashop-action-tooltip::after {
	border-right-color: #e04f33;
}

/* Color Caption below Main Image (e.g. خاکستری ● Graphite) */
.nexashop-gallery-color-caption {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 8px 0 12px 0;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
}

.nexashop-gallery-color-caption .caption-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 2px #f1f5f9, inset 0 0 0 1px rgba(0,0,0,0.12);
	flex-shrink: 0;
}

.nexashop-gallery-color-caption .caption-en {
	color: #64748b;
	font-weight: 500;
	direction: ltr;
}

/* Blurred ••• Overlay on Last Thumbnail */
.nexashop-thumb-item.has-blur-dots {
	position: relative;
	overflow: hidden;
}

.nexashop-thumb-more-blur {
	position: absolute;
	inset: 0;
	background: rgba(30, 41, 59, 0.42);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	border-radius: inherit;
	transition: background 0.2s;
}

.nexashop-thumb-item.has-blur-dots:hover .nexashop-thumb-more-blur {
	background: rgba(15, 23, 42, 0.58);
}

.nexashop-thumb-more-blur .dots-three {
	font-size: 18px;
	letter-spacing: 2px;
	font-weight: 900;
	line-height: 1;
}

/* Bottom Meta Bar: "! بازخورد درباره این کالا" & "#sku Copy" */
.nexashop-gallery-bottom-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
	padding-top: 10px;
	border-top: 1px solid #f1f5f9;
	font-size: 12.5px;
	color: #64748b;
}

.nexashop-feedback-trigger {
	background: transparent;
	border: none;
	padding: 4px 2px;
	color: #64748b;
	font-size: 12.5px;
	font-weight: 600;
	font-family: inherit;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	transition: color 0.2s;
}

.nexashop-feedback-trigger:hover {
	color: #e04f33;
}

.nexashop-feedback-trigger .feedback-excl-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

.nexashop-sku-copy-trigger {
	background: transparent;
	border: none;
	padding: 4px 6px;
	border-radius: 6px;
	color: #64748b;
	font-size: 12.5px;
	font-weight: 600;
	font-family: monospace, inherit;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	direction: ltr;
	transition: color 0.2s, background 0.2s;
}

.nexashop-sku-copy-trigger:hover {
	color: #0f172a;
	background: #f8fafc;
}

.nexashop-sku-copy-trigger.is-copied {
	color: #16a34a;
	background: #f0fdf4;
}

/* Video Player Modal */
.nexashop-video-player-stage {
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	background: #0f172a;
}

.nexashop-html5-video {
	width: 100%;
	max-height: 460px;
	display: block;
	background: #000000;
}

.nexashop-embed-responsive {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.nexashop-embed-responsive iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

.nexashop-video-empty-state {
	padding: 48px 24px;
	text-align: center;
	color: #cbd5e1;
	background: #1e293b;
}

.nexashop-video-empty-state p {
	font-size: 14.5px;
	font-weight: 700;
	color: #f8fafc;
	margin: 12px 0 6px;
}

.nexashop-video-empty-state span {
	font-size: 12px;
	color: #94a3b8;
	display: block;
	max-width: 460px;
	margin: 0 auto;
	line-height: 1.7;
}

/* Product Feedback Modal */
.nexashop-feedback-checks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

@media (max-width: 540px) {
	.nexashop-feedback-checks {
		grid-template-columns: 1fr;
	}
}

.nexashop-feedback-check-item {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.nexashop-feedback-check-item:hover {
	border-color: #cbd5e1;
	background: #f1f5f9;
}

.nexashop-feedback-check-item input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #e04f33;
	margin: 0;
	cursor: pointer;
}

.nexashop-feedback-textarea {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 13px;
	font-family: inherit;
	color: #1e293b;
	resize: vertical;
	box-sizing: border-box;
}

.nexashop-feedback-textarea:focus {
	outline: none;
	border-color: #e04f33;
}

/* ====================================================
   Integrated Special Offer & Timer inside Gallery
   ==================================================== */
.nexashop-gallery-integrated-offer {
	width: 100%;
	box-sizing: border-box;
	direction: rtl;
	margin-bottom: 16px;
	position: relative;
	z-index: 5;
}

.nexashop-gallery-integrated-offer .nexashop-special-offer-banner {
	width: 100%;
	margin-bottom: 0 !important;
	position: relative;
	border-radius: 16px;
	border: 1px solid #fee2e2;
	background-color: #fff5f5;
	box-sizing: border-box;
}

.nexashop-gallery-integrated-offer .nexashop-offer-left.nexashop-offer-timer-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	direction: ltr;
	margin-inline-start: auto;
}

.nexashop-gallery-integrated-offer .nexashop-offer-clock-icon {
	order: 1;
}

.nexashop-gallery-integrated-offer .nexashop-offer-timer-digits {
	order: 2;
}

@media (max-width: 768px) {
	.nexashop-gallery-integrated-offer {
		margin-bottom: 0 !important;
	}

	.nexashop-gallery-integrated-offer .nexashop-special-offer-banner {
		border-top-left-radius: 16px !important;
		border-top-right-radius: 16px !important;
		border-bottom-left-radius: 0 !important;
		border-bottom-right-radius: 0 !important;
		border: 1.5px solid #ef394e !important;
		border-bottom: none !important;
		background-color: #fff1f2 !important;
		height: 44px !important;
		min-height: 44px !important;
		padding: 0 16px !important;
		margin-bottom: 0 !important;
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		box-sizing: border-box !important;
		box-shadow: none !important;
	}

	.nexashop-gallery-integrated-offer .nexashop-offer-right-group {
		display: inline-flex !important;
		align-items: center !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		gap: 6px !important;
		flex: 1 1 auto !important;
		min-width: 0 !important;
	}

	.nexashop-gallery-integrated-offer .nexashop-offer-title {
		color: #ef394e !important;
		font-size: 13.5px !important;
		font-weight: 800 !important;
		white-space: nowrap !important;
		line-height: 1.2 !important;
	}

	.nexashop-gallery-integrated-offer .nexashop-offer-percent-text {
		display: none !important;
	}

	.nexashop-gallery-integrated-offer .nexashop-offer-bar-track {
		display: none !important;
	}

	.nexashop-gallery-integrated-offer .nexashop-offer-divider {
		display: none !important;
	}

	.nexashop-gallery-integrated-offer .nexashop-offer-left.nexashop-offer-timer-wrap {
		display: inline-flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 7px !important;
		flex-shrink: 0 !important;
		direction: ltr !important;
		margin-inline-start: auto !important;
		padding-top: 0 !important;
		border-top: none !important;
	}

	.nexashop-gallery-integrated-offer .nexashop-offer-clock-icon {
		order: 1 !important;
		width: 18px !important;
		height: 18px !important;
		border: none !important;
		background: transparent !important;
		color: #ef394e !important;
		padding: 0 !important;
		border-radius: 0 !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
	}

	.nexashop-gallery-integrated-offer .nexashop-offer-clock-icon svg {
		width: 16px !important;
		height: 16px !important;
		stroke: #ef394e !important;
		stroke-width: 2.2 !important;
	}

	.nexashop-gallery-integrated-offer .nexashop-offer-timer-digits {
		order: 2 !important;
		font-size: 14px !important;
		font-weight: 800 !important;
		color: #ef394e !important;
		direction: ltr !important;
		letter-spacing: 0.5px !important;
		line-height: 1.2 !important;
	}

	.nexashop-gallery-integrated-offer .nexashop-offer-timer-digits .timer-sep {
		color: #ef394e !important;
		margin: 0 2px !important;
		font-weight: 700 !important;
	}

	.nexashop-gallery-integrated-offer + .nexashop-gallery-showcase-box {
		border-top-left-radius: 0 !important;
		border-top-right-radius: 0 !important;
		border-top: none !important;
	}
}

@media (max-width: 360px) {
	.nexashop-gallery-integrated-offer .nexashop-special-offer-banner {
		padding: 0 12px !important;
	}

	.nexashop-gallery-integrated-offer .nexashop-offer-title {
		font-size: 12.5px !important;
	}

	.nexashop-gallery-integrated-offer .nexashop-offer-timer-digits {
		font-size: 13px !important;
	}

	.nexashop-gallery-integrated-offer .nexashop-offer-clock-icon svg {
		width: 14px !important;
		height: 14px !important;
	}
}


