/**
 * NexaShop Advanced Single Product Layout & Responsive Styles
 * Faithfully modeled after Parskala & Digikala single product architecture.
 *
 * @package NexaShop
 * @version 1.0.0
 */

/* ==========================================================================
   1. Master Container & Variables
   ========================================================================== */
.nexashop-single-product-container {
	width: 100%;
	max-width: var(--nexashop-site-max-width, 1369px);
	margin: 0 auto;
	padding: 15px 15px 40px 15px;
	box-sizing: border-box;
	direction: rtl;
	font-family: inherit;
	color: #2b2e38;
}

/* ==========================================================================
   2. Top Breadcrumb & Metadata Bar
   ========================================================================== */
.nexashop-sp-top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 12px;
	color: #64748b;
}

.nexashop-sp-breadcrumb {
	display: flex;
	align-items: center;
}

.nexashop-breadcrumb-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nexashop-breadcrumb-list li a {
	color: #64748b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nexashop-breadcrumb-list li a:hover {
	color: #ef394e;
}

.nexashop-breadcrumb-list .breadcrumb-sep {
	display: flex;
	align-items: center;
	color: #94a3b8;
	font-size: 10px;
}

.nexashop-breadcrumb-list .breadcrumb-brand {
	background: #f1f5f9;
	padding: 2px 8px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.nexashop-breadcrumb-list .breadcrumb-brand a {
	font-weight: 700;
	color: #0f172a;
}

.nexashop-breadcrumb-list .is-active span {
	color: #94a3b8;
}

.nexashop-sp-top-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nexashop-feedback-trigger-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	padding: 5px 12px;
	font-size: 11px;
	color: #64748b;
	cursor: pointer;
	transition: all 0.2s ease;
}

.nexashop-feedback-trigger-btn:hover {
	border-color: #ef394e;
	color: #ef394e;
	background: #fff5f5;
}

.nexashop-sp-sku-box {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 4px 10px;
	font-size: 11px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.nexashop-sp-sku-box:hover {
	border-color: #cbd5e1;
	background: #f1f5f9;
}

.nexashop-sp-sku-box .sku-value {
	font-weight: 700;
	color: #1e293b;
	letter-spacing: 0.5px;
}

.nexashop-sp-sku-box .sku-copy-btn {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	color: #64748b;
	display: flex;
	align-items: center;
	cursor: pointer;
}

/* ==========================================================================
   3. Main Product Card (.col-single1) - 3 Columns on Desktop
   ========================================================================== */
.nexashop-single-main-card.col-single1 {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	padding: 24px;
	margin-bottom: 24px;
	box-sizing: border-box;
	gap: 20px;
}

/* Desktop 3 Columns width */
.nexashop-sp-gallery-col {
	width: calc(38% - 14px);
	flex-shrink: 0;
	box-sizing: border-box;
}

.nexashop-sp-details-col.des-right {
	width: calc(38% - 14px);
	flex-grow: 1;
	box-sizing: border-box;
}

.nexashop-sp-buybox-col.des-left {
	width: 24%;
	flex-shrink: 0;
	box-sizing: border-box;
}

/* ==========================================================================
   4. Gallery Column Styling
   ========================================================================== */
.nexashop-sp-gallery-wrapper {
	position: relative;
	width: 100%;
}

.nexashop-sp-gallery-main-box {
	position: relative;
	width: 100%;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 16px;
	overflow: hidden;
	box-sizing: border-box;
	box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.nexashop-sp-sale-badge-box {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, #ef394e, #d62839);
	color: #ffffff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(239, 57, 78, 0.35);
}

.nexashop-sp-sale-badge-box .sale-badge-header {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nexashop-sp-countdown-timer {
	display: flex;
	align-items: center;
	direction: ltr;
	gap: 2px;
	font-size: 11px;
	background: rgba(0, 0, 0, 0.2);
	padding: 2px 8px;
	border-radius: 12px;
}

.nexashop-sp-countdown-timer .timer-dot {
	font-weight: bold;
	opacity: 0.8;
}

/* Floating Actions Vertical Toolbar */
.nexashop-sp-actions-toolbar {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 15;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sp-action-btn {
	position: relative;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #475569;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	transition: all 0.25s ease;
}

.sp-action-btn:hover {
	border-color: #cbd5e1;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	color: #ef394e;
}

.sp-btn-wishlist .heart-filled {
	display: none;
}

.sp-btn-wishlist.is-active .heart-empty {
	display: none;
}

.sp-btn-wishlist.is-active .heart-filled {
	display: block;
}

.sp-action-btn .sp-tooltip {
	position: absolute;
	left: 46px;
	top: 50%;
	transform: translateY(-50%);
	background: #1e293b;
	color: #ffffff;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: all 0.2s ease;
	z-index: 20;
}

.sp-action-btn:hover .sp-tooltip {
	opacity: 1;
	visibility: visible;
}

/* Main Image Holder & Zoom */
.nexashop-sp-main-img-holder {
	position: relative;
	width: 100%;
	padding-top: 100%; /* 1:1 Square aspect ratio */
	cursor: crosshair;
	overflow: hidden;
}

.nexashop-sp-main-img-holder img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
	user-select: none;
}

.nexashop-sp-zoom-lens {
	position: absolute;
	width: 120px;
	height: 120px;
	border: 1px solid rgba(0,0,0,0.2);
	background: rgba(255, 255, 255, 0.4);
	display: none;
	pointer-events: none;
	border-radius: 8px;
}

/* Gallery Thumbnails Strip */
.nexashop-sp-thumbnails-row {
	display: flex;
	gap: 10px;
	margin-top: 14px;
	overflow-x: auto;
	padding-bottom: 4px;
}

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

.sp-thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 4px;
	box-sizing: border-box;
}

.sp-thumb-item.is-active,
.sp-thumb-item:hover {
	border-color: #ef394e;
}

.sp-thumb-more .more-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.6);
	color: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
}

.nexashop-sp-gallery-mobile {
	display: none;
}

/* ==========================================================================
   5. Details Column Styling (.des-right)
   ========================================================================== */
.nexashop-sp-details-wrap {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nexashop-sp-title-header {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.sp-brand-badge a {
	background: #f1f5f9;
	color: #0f172a;
	padding: 3px 10px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 12px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.sp-brand-badge a:hover {
	background: #e2e8f0;
}

.sp-custom-label-badge {
	background: #fee2e2;
	color: #ef394e;
	padding: 3px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
}

.nexashop-sp-title {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.5;
	color: #0f172a;
	margin: 0;
}

.nexashop-sp-latin-title {
	font-size: 13px;
	color: #94a3b8;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	direction: ltr;
	text-align: right;
	margin-top: -6px;
}

/* Meta Bar (Ratings, QA, Comments) */
.nexashop-sp-meta-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	color: #64748b;
	padding-bottom: 12px;
	border-bottom: 1px solid #f1f5f9;
}

.sp-rating-item {
	display: flex;
	align-items: center;
	gap: 4px;
}

.sp-rating-item .rating-num {
	font-weight: 700;
	color: #1e293b;
}

.sp-meta-sep {
	color: #cbd5e1;
}

.sp-reviews-link a,
.sp-qa-link a {
	color: #0284c7;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.sp-reviews-link a:hover,
.sp-qa-link a:hover {
	color: #0369a1;
	text-decoration: underline;
}

/* Key Attributes (ویژگی‌های محصول) */
.nexashop-sp-attributes-box {
	background: #f8fafc;
	border: 1px solid #f1f5f9;
	border-radius: 12px;
	padding: 16px;
}

.sp-attr-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 13px;
	color: #1e293b;
	margin-bottom: 12px;
}

.sp-attributes-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 12px;
	line-height: 1.6;
}

.sp-attributes-list.is-collapsed {
	max-height: 140px;
	overflow: hidden;
}

.sp-attr-item {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.attr-bullet {
	width: 5px;
	height: 5px;
	background: #94a3b8;
	border-radius: 50%;
	flex-shrink: 0;
	position: relative;
	top: -2px;
}

.attr-label {
	color: #64748b;
	flex-shrink: 0;
}

.attr-val {
	color: #0f172a;
	font-weight: 600;
}

.sp-attr-toggle-btn {
	background: transparent;
	border: none;
	color: #0284c7;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	padding: 6px 0 0 0;
	display: inline-block;
}

/* Warnings and Badges */
.nexashop-sp-fake-alert {
	display: flex;
	gap: 10px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 10px;
	padding: 12px;
	font-size: 12px;
	color: #92400e;
}

.fake-title {
	font-weight: 800;
	display: block;
	margin-bottom: 2px;
}

.nexashop-sp-hamta-alert {
	display: flex;
	gap: 10px;
	background: #fefce8;
	border: 1px solid #fef08a;
	border-radius: 10px;
	padding: 12px;
	font-size: 11px;
	color: #713f12;
	line-height: 1.6;
}

.nexashop-sp-return-policy {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: #64748b;
	line-height: 1.5;
	padding: 4px 0;
}

.nexashop-sp-shipping-readiness {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
	padding: 10px 14px;
}

.shipping-readiness-content .readiness-title {
	font-size: 12px;
	font-weight: 700;
	color: #166534;
	display: block;
}

.shipping-readiness-content .readiness-sub {
	font-size: 11px;
	color: #15803d;
}

/* Variations styling in middle column */
.nexashop-sp-variations-section {
	padding: 10px 0;
	border-top: 1px solid #f1f5f9;
	border-bottom: 1px solid #f1f5f9;
}

.nexashop-sp-variations-section table.variations {
	width: 100%;
	border: none;
	margin-bottom: 0;
}

.nexashop-sp-variations-section table.variations td.label {
	width: 70px;
	font-weight: 700;
	font-size: 12px;
	color: #475569;
	vertical-align: middle;
}

.nexashop-sp-variations-section table.variations td.value {
	vertical-align: middle;
}

/* ==========================================================================
   6. Buy Box / Seller Column Styling (.ui-box / .des-left)
   ========================================================================== */
.nexashop-sp-buybox-wrap.ui-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 20px 16px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	gap: 14px;
	box-sizing: border-box;
}

.sp-buybox-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 12px;
	color: #475569;
	padding-bottom: 12px;
	border-bottom: 1px solid #f1f5f9;
}

.sp-buybox-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.sp-buybox-row .sp-row-icon {
	color: #64748b;
	flex-shrink: 0;
	margin-top: 1px;
}

.sp-seller-name-row {
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
}

.sp-seller-name-row a {
	color: #0f172a;
	text-decoration: none;
}

.sp-seller-satisfaction {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: #64748b;
	margin-top: 4px;
}

.satisfaction-badge {
	color: #10b981;
	font-weight: 700;
}

.shipping-details-link {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: #0284c7;
	font-size: 11px;
	text-decoration: none;
	margin-top: 2px;
}

/* Stock Badges */
.stock-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
}

.stock-badge.in-stock {
	color: #10b981;
}

.stock-badge.low-stock {
	color: #ef4444;
}

.stock-badge.out-of-stock {
	color: #94a3b8;
}

/* Price Box in Buy Box */
.sp-buybox-price-box {
	background: #f8fafc;
	border-radius: 12px;
	padding: 12px 14px;
	text-align: left;
	direction: ltr;
}

.price-row-top {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.price-row-top .old-price {
	color: #94a3b8;
	font-size: 13px;
	text-decoration: line-through;
}

.price-row-top .discount-badge {
	background: #ef394e;
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	padding: 2px 7px;
	border-radius: 12px;
}

.price-row-main .final-price {
	font-size: 20px;
	font-weight: 900;
	color: #0f172a;
}

.price-unavailable {
	text-align: center;
	color: #ef4444;
	font-size: 16px;
	font-weight: 700;
}

/* Cart Action Controls */
.sp-cart-controls-flex {
	display: flex;
	gap: 10px;
	align-items: center;
}

.sp-quantity-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	overflow: hidden;
	height: 44px;
	flex-shrink: 0;
}

.sp-qty-btn {
	width: 32px;
	height: 100%;
	background: #f8fafc;
	border: none;
	color: #475569;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.sp-qty-btn:hover {
	background: #e2e8f0;
}

.sp-qty-input {
	width: 36px;
	text-align: center;
	border: none;
	background: transparent;
	font-weight: 700;
	font-size: 14px;
	color: #0f172a;
	padding: 0;
	margin: 0;
}

.sp-add-to-cart-btn {
	flex-grow: 1;
	height: 44px;
	background: #ef394e !important;
	color: #ffffff !important;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(239, 57, 78, 0.35);
	transition: all 0.25s ease;
	text-decoration: none;
}

.sp-add-to-cart-btn:hover {
	background: #d62839 !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(239, 57, 78, 0.45);
}

.sp-notify-btn {
	width: 100%;
	height: 44px;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	color: #1e293b;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.sp-notify-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.sp-buybox-footer-links {
	display: flex;
	flex-direction: column;
	gap: 6px;
	border-top: 1px solid #f1f5f9;
	padding-top: 10px;
}

.sp-footer-link-btn {
	background: transparent;
	border: none;
	color: #64748b;
	font-size: 11px;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	padding: 4px 0;
	transition: color 0.2s;
	text-align: right;
}

.sp-footer-link-btn:hover {
	color: #ef394e;
}

/* ==========================================================================
   7. Services Bar (5 Trust Badges)
   ========================================================================== */
.nexashop-sp-services-bar {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 20px;
	margin-bottom: 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.sp-service-item {
	display: flex;
	align-items: center;
	gap: 12px;
	transition: transform 0.2s ease;
}

.sp-service-item:hover {
	transform: translateY(-2px);
}

.sp-service-item .service-icon-wrap {
	color: #64748b;
	flex-shrink: 0;
}

.sp-service-item:hover .service-icon-wrap {
	color: #ef394e;
}

.sp-service-item .service-text-wrap {
	display: flex;
	flex-direction: column;
}

.sp-service-item .service-title {
	font-size: 13px;
	font-weight: 700;
	color: #1e293b;
}

.sp-service-item .service-subtitle {
	font-size: 11px;
	color: #64748b;
	margin-top: 2px;
}

/* ==========================================================================
   8. Tabs Component
   ========================================================================== */
.nexashop-sp-tabs-wrapper {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.nexashop-sp-tab-nav-box {
	border-bottom: 1.5px solid #f1f5f9;
	margin-bottom: 24px;
}

.nexashop-sp-tab-nav {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
}

.tab-nav-item {
	position: relative;
	padding-bottom: 14px;
	cursor: pointer;
}

.tab-nav-item a {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #64748b;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: color 0.2s ease;
}

.tab-nav-item .tab-count-pill {
	background: #f1f5f9;
	color: #475569;
	font-size: 11px;
	padding: 2px 7px;
	border-radius: 10px;
}

.tab-nav-item.is-active a,
.tab-nav-item:hover a {
	color: #ef394e;
}

.tab-nav-item.is-active::after {
	content: '';
	position: absolute;
	bottom: -1.5px;
	left: 0;
	right: 0;
	height: 3px;
	background: #ef394e;
	border-radius: 3px 3px 0 0;
}

.sp-tab-panel {
	display: none;
}

.sp-tab-panel.is-active {
	display: block;
}

.sp-mobile-accordion-toggle {
	display: none;
}

/* Specifications Table */
.nexashop-specs-table-wrap table.shop_attributes {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
}

.nexashop-specs-table-wrap table.shop_attributes th,
.nexashop-specs-table-wrap table.shop_attributes td {
	padding: 12px 18px;
	font-size: 13px;
	line-height: 1.6;
	border-bottom: 1px solid #f1f5f9;
}

.nexashop-specs-table-wrap table.shop_attributes th {
	background: #f8fafc;
	color: #475569;
	width: 28%;
	font-weight: 700;
}

.nexashop-specs-table-wrap table.shop_attributes td {
	background: #ffffff;
	color: #0f172a;
}

.nexashop-specs-table-wrap table.shop_attributes tr:last-child th,
.nexashop-specs-table-wrap table.shop_attributes tr:last-child td {
	border-bottom: none;
}

/* ==========================================================================
   9. Related Products Grid
   ========================================================================== */
.nexashop-sp-related-section {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.sp-section-heading {
	margin-bottom: 20px;
}

.heading-title-flex {
	display: flex;
	align-items: center;
	gap: 8px;
}

.heading-title-flex h3 {
	font-size: 18px;
	font-weight: 800;
	margin: 0;
	color: #0f172a;
}

.heading-sub {
	font-size: 12px;
	color: #64748b;
	margin-top: 4px;
	display: block;
}

.nexashop-sp-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.sp-related-card {
	border: 1px solid #f1f5f9;
	border-radius: 14px;
	overflow: hidden;
	background: #ffffff;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.sp-related-card:hover {
	border-color: #cbd5e1;
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.sp-related-card .card-thumb-link {
	position: relative;
	width: 100%;
	padding-top: 100%;
	overflow: hidden;
	display: block;
}

.sp-related-card .card-thumb-link img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 10px;
	box-sizing: border-box;
}

.sp-related-card .card-discount-tag {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #ef394e;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 10px;
}

.sp-related-card .card-body {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-grow: 1;
	justify-content: space-between;
}

.sp-related-card .card-title {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	margin: 0;
}

.sp-related-card .card-title a {
	color: #1e293b;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sp-related-card .card-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	direction: ltr;
}

.sp-related-card .card-final-price {
	font-weight: 800;
	color: #0f172a;
	font-size: 14px;
}

.sp-related-card .card-old-price {
	color: #94a3b8;
	font-size: 11px;
	text-decoration: line-through;
}

/* ==========================================================================
   10. Mobile Sticky Add-to-Cart Bar (.prk-sticky-add-cart)
   ========================================================================== */
.nexashop-sp-sticky-bar.prk-sticky-add-cart {
	display: none; /* Hidden on desktop */
}

/* ==========================================================================
   11. Modals Backdrop & Dialogs
   ========================================================================== */
.nexashop-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s ease;
	padding: 15px;
	box-sizing: border-box;
}

.nexashop-modal-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

.nexashop-modal-dialog {
	background: #ffffff;
	border-radius: 18px;
	max-width: 500px;
	width: 100%;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	overflow: hidden;
	transform: scale(0.95);
	transition: transform 0.25s ease;
}

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

.nexashop-modal-dialog.modal-dialog-lg {
	max-width: 720px;
}

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

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

.nexashop-modal-header .modal-close-btn {
	background: transparent;
	border: none;
	font-size: 24px;
	color: #94a3b8;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: color 0.2s;
}

.nexashop-modal-header .modal-close-btn:hover {
	color: #ef394e;
}

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

.share-copy-box {
	display: flex;
	gap: 8px;
	margin: 14px 0 20px 0;
}

.share-url-input {
	flex-grow: 1;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 12px;
	direction: ltr;
	color: #475569;
}

.share-copy-btn {
	background: #ef394e;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 8px 16px;
	font-weight: 700;
	font-size: 12px;
	cursor: pointer;
}

.share-social-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.social-share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px;
	border-radius: 10px;
	color: #ffffff;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	transition: opacity 0.2s;
}

.social-share-btn:hover {
	opacity: 0.9;
}

.social-share-btn.tg-btn { background: #229ED9; }
.social-share-btn.wa-btn { background: #25D366; }
.social-share-btn.tw-btn { background: #000000; }

/* Forms inside modals */
.nexashop-modal-body .form-row {
	margin-bottom: 14px;
}

.nexashop-modal-body .form-row label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 6px;
}

.nexashop-modal-body .form-row input,
.nexashop-modal-body .form-row select,
.nexashop-modal-body .form-row textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 13px;
	font-family: inherit;
	box-sizing: border-box;
}

.nexashop-modal-body .modal-submit-btn {
	width: 100%;
	height: 42px;
	background: #ef394e;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}

/* Lightbox Fullscreen */
.nexashop-sp-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.95);
	z-index: 9999999;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 24px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s ease;
}

.nexashop-sp-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.sp-lightbox-close-btn {
	align-self: flex-start;
	background: transparent;
	border: none;
	color: #ffffff;
	font-size: 36px;
	cursor: pointer;
}

.sp-lightbox-stage {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 900px;
	flex-grow: 1;
}

.sp-lightbox-stage .sp-lightbox-main-img-box {
	max-width: 650px;
	max-height: 65vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sp-lightbox-stage .sp-lightbox-main-img-box img {
	max-width: 100%;
	max-height: 65vh;
	object-fit: contain;
}

.sp-lightbox-nav {
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #ffffff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s;
}

.sp-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.3);
}

.sp-lightbox-thumbs-carousel {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	max-width: 800px;
	padding: 10px;
}

.sp-lightbox-thumbs-carousel .lb-thumb {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	border: 2px solid transparent;
	overflow: hidden;
	cursor: pointer;
	flex-shrink: 0;
	opacity: 0.6;
	transition: all 0.2s;
}

.sp-lightbox-thumbs-carousel .lb-thumb.is-active,
.sp-lightbox-thumbs-carousel .lb-thumb:hover {
	border-color: #ef394e;
	opacity: 1;
}

.sp-lightbox-thumbs-carousel .lb-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ==========================================================================
   12. Responsive Media Queries: Laptop & Tablet (861px - 1199px)
   ========================================================================== */
@media (max-width: 1199px) and (min-width: 861px) {
	.nexashop-sp-gallery-col {
		width: calc(44% - 10px);
	}
	.nexashop-sp-details-col.des-right {
		width: calc(56% - 10px);
	}
	.nexashop-sp-buybox-col.des-left {
		width: 100%;
		margin-top: 15px;
	}
	.nexashop-sp-services-bar {
		grid-template-columns: repeat(3, 1fr);
	}
	.nexashop-sp-related-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ==========================================================================
   13. Responsive Media Queries: Mobile View (<= 860px) - Parskala Mobile Model
   ========================================================================== */
@media (max-width: 860px) {
	.nexashop-single-product-container {
		padding: 10px 10px 80px 10px; /* Bottom padding for sticky bar */
	}

	.nexashop-single-main-card.col-single1 {
		padding: 14px;
		border-radius: 14px;
		gap: 16px;
	}

	.nexashop-sp-gallery-col,
	.nexashop-sp-details-col.des-right,
	.nexashop-sp-buybox-col.des-left {
		width: 100% !important;
	}

	/* Switch to Mobile Touch Gallery */
	.nexashop-sp-gallery-desktop {
		display: none;
	}

	.nexashop-sp-gallery-mobile {
		display: block;
		width: 100%;
		position: relative;
	}

	.nexashop-sp-mobile-swiper {
		width: 100%;
		padding-bottom: 24px;
	}

	.nexashop-sp-mobile-swiper .swiper-slide {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		padding-top: 90%;
		position: relative;
	}

	.nexashop-sp-mobile-swiper .swiper-slide img {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-fit: contain;
	}

	.nexashop-sp-mobile-action-pills {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		padding: 10px 0;
		border-bottom: 1px solid #f1f5f9;
	}

	.sp-mobile-pill-btn {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		background: #f8fafc;
		border: 1px solid #e2e8f0;
		border-radius: 20px;
		padding: 6px 14px;
		font-size: 11px;
		color: #475569;
		white-space: nowrap;
		cursor: pointer;
	}

	.nexashop-sp-title {
		font-size: 17px;
	}

	/* Services bar on mobile */
	.nexashop-sp-services-bar {
		grid-template-columns: repeat(2, 1fr);
		padding: 14px;
		gap: 12px;
	}

	.sp-service-item {
		gap: 8px;
	}

	.sp-service-item .service-icon-wrap svg {
		width: 26px;
		height: 26px;
	}

	/* Tabs on mobile */
	.nexashop-sp-tab-nav-box {
		display: none; /* Handled by accordions */
	}

	.sp-tab-panel {
		display: block !important;
		margin-bottom: 12px;
		border: 1px solid #f1f5f9;
		border-radius: 12px;
		overflow: hidden;
	}

	.sp-mobile-accordion-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 16px;
		background: #f8fafc;
		cursor: pointer;
		font-weight: 700;
		font-size: 13px;
		color: #1e293b;
	}

	.sp-mobile-accordion-toggle i {
		transition: transform 0.25s ease;
	}

	.sp-tab-panel.is-collapsed .sp-mobile-accordion-toggle i {
		transform: rotate(180deg);
	}

	.sp-tab-panel.is-collapsed .sp-tab-content-inner {
		display: none;
	}

	.sp-tab-content-inner {
		padding: 16px;
	}

	/* Mobile Related Products Grid (2 columns) */
	.nexashop-sp-related-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	/* Desktop Buybox hides the cart form since mobile has the sticky bottom bar */
	.nexashop-sp-buybox-wrap .sp-buybox-cart-actions {
		display: none;
	}

	/* Floating Sticky Bottom Buy Bar (Modeled after Parskala .prk-sticky-add-cart) */
	.nexashop-sp-sticky-bar.prk-sticky-add-cart {
		display: block;
		position: fixed;
		bottom: 12px;
		left: 12px;
		right: 12px;
		z-index: 99999;
		box-sizing: border-box;
	}

	.nexashop-sp-sticky-bar.is-blur-active {
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		background: rgba(255, 255, 255, 0.92);
		border: 1px solid rgba(255, 255, 255, 0.6);
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
		border-radius: 16px;
	}

	.nexashop-sp-sticky-bar:not(.is-blur-active) {
		background: #ffffff;
		border: 1px solid #e2e8f0;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
		border-radius: 16px;
	}

	.sticky-bar-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 8px 12px;
		gap: 12px;
	}

	.sticky-thumb-title {
		display: flex;
		align-items: center;
		gap: 8px;
		flex-grow: 1;
		overflow: hidden;
	}

	.sticky-thumb {
		width: 44px;
		height: 44px;
		border-radius: 8px;
		overflow: hidden;
		flex-shrink: 0;
		background: #f8fafc;
	}

	.sticky-thumb img {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}

	.sticky-meta {
		display: flex;
		flex-direction: column;
		overflow: hidden;
	}

	.sticky-title {
		font-size: 11px;
		font-weight: 700;
		color: #1e293b;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.sticky-price-box .woocommerce-Price-amount {
		font-size: 14px;
		font-weight: 900;
		color: #0f172a;
	}

	.sticky-action {
		flex-shrink: 0;
	}

	.sticky-btn-buy {
		height: 40px;
		padding: 0 16px !important;
		background: #ef394e !important;
		color: #ffffff !important;
		border: none;
		border-radius: 10px;
		font-size: 12px !important;
		font-weight: 700;
		display: inline-flex;
		align-items: center;
		gap: 6px;
		text-decoration: none;
		box-shadow: 0 4px 12px rgba(239, 57, 78, 0.35);
	}

	.sticky-btn-notify {
		height: 40px;
		padding: 0 14px;
		background: #f1f5f9;
		border: 1px solid #cbd5e1;
		border-radius: 10px;
		color: #1e293b;
		font-size: 11px;
		font-weight: 700;
		cursor: pointer;
	}
}
