/**
 * Norse Equipment Showcase - Elementor Widget Styles
 * Version: 1.0.0
 * Author: Nano Tasarım
 */

/* ==========================================================================
   CSS Variables & Box-Sizing
   ========================================================================== */

.norse-equipment-showcase {
	--nes-anim-dur: 400ms;
	--nes-primary-color: #0E2F56;
	--nes-secondary-color: #1E40AF;
	--nes-bg-main: #ffffff;
	--nes-bg-dark: #ffffff;
	--nes-bg-card: #ffffff;
	--nes-border-color: #E5E7EB;
	--nes-text-main: #0E2F56;
	--nes-text-body: #4B5563;
	--nes-text-muted: #6B7280;
	--nes-text-light: #0E2F56;
	--nes-box-shadow: 0 4px 20px -2px rgba(14, 47, 86, 0.08);
	--nes-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	--nes-card-hover-shadow: 0 8px 24px -4px rgba(14, 47, 86, 0.12);

	position: relative;
	box-sizing: border-box;
	width: 100%;
	display: flex;
	gap: var(--nes-main-gap, 40px);
	font-family: inherit;
}

.norse-equipment-showcase *,
.norse-equipment-showcase *::before,
.norse-equipment-showcase *::after {
	box-sizing: inherit;
}

/* ==========================================================================
   TOP-LEVEL LAYOUT & POSITIONING (Zone 1 vs Zone 2)
   ========================================================================== */

/* Position: Bottom (Featured Top, Inventory Bottom) - Default */
.norse-equipment-showcase.nes-pos-bottom,
.nes-pos-bottom .norse-equipment-showcase {
	flex-direction: column !important;
}
.norse-equipment-showcase.nes-pos-bottom .nes-featured-section,
.nes-pos-bottom .norse-equipment-showcase .nes-featured-section {
	order: 1;
	width: 100% !important;
}
.norse-equipment-showcase.nes-pos-bottom .nes-cards-section,
.nes-pos-bottom .norse-equipment-showcase .nes-cards-section {
	order: 2;
	width: 100% !important;
	margin-top: 0;
}

/* Position: Top (Inventory Top, Featured Bottom) */
.norse-equipment-showcase.nes-pos-top,
.nes-pos-top .norse-equipment-showcase {
	flex-direction: column-reverse !important;
}
.norse-equipment-showcase.nes-pos-top .nes-cards-section,
.nes-pos-top .norse-equipment-showcase .nes-cards-section {
	order: 1;
	width: 100% !important;
	margin-top: 0;
}
.norse-equipment-showcase.nes-pos-top .nes-featured-section,
.nes-pos-top .norse-equipment-showcase .nes-featured-section {
	order: 2;
	width: 100% !important;
}

/* Position: Left (Inventory on Left as Sidebar, Featured on Right) */
.norse-equipment-showcase.nes-pos-left,
.nes-pos-left .norse-equipment-showcase {
	display: flex !important;
	flex-direction: row-reverse !important;
	flex-wrap: nowrap !important;
	align-items: var(--nes-main-align, flex-start) !important;
	width: 100% !important;
}
.norse-equipment-showcase.nes-pos-left .nes-cards-section,
.nes-pos-left .norse-equipment-showcase .nes-cards-section {
	flex: 0 0 var(--nes-inventory-width, 20%) !important;
	width: var(--nes-inventory-width, 20%) !important;
	max-width: var(--nes-inventory-width, 20%) !important;
	min-width: 0 !important;
	margin-top: 0 !important;
}
.norse-equipment-showcase.nes-pos-left .nes-featured-section,
.nes-pos-left .norse-equipment-showcase .nes-featured-section {
	flex: 1 1 0% !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
}

/* Position: Right (Featured on Left, Inventory on Right as Sidebar) */
.norse-equipment-showcase.nes-pos-right,
.nes-pos-right .norse-equipment-showcase {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: var(--nes-main-align, flex-start) !important;
	width: 100% !important;
}
.norse-equipment-showcase.nes-pos-right .nes-featured-section,
.nes-pos-right .norse-equipment-showcase .nes-featured-section {
	flex: 1 1 0% !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
}
.norse-equipment-showcase.nes-pos-right .nes-cards-section,
.nes-pos-right .norse-equipment-showcase .nes-cards-section {
	flex: 0 0 var(--nes-inventory-width, 20%) !important;
	width: var(--nes-inventory-width, 20%) !important;
	max-width: var(--nes-inventory-width, 20%) !important;
	min-width: 0 !important;
	margin-top: 0 !important;
}

/* When Inventory is in Sidebar mode (Left or Right), ensure vertical stacking */
.nes-pos-left .nes-zone2-vertical-wrap,
.nes-pos-right .nes-zone2-vertical-wrap,
.norse-equipment-showcase.nes-pos-left .nes-zone2-vertical-wrap,
.norse-equipment-showcase.nes-pos-right .nes-zone2-vertical-wrap {
	flex-direction: column !important;
	gap: 16px !important;
	width: 100% !important;
}
.nes-pos-left .nes-tab-sidebar,
.nes-pos-right .nes-tab-sidebar,
.norse-equipment-showcase.nes-pos-left .nes-tab-sidebar,
.norse-equipment-showcase.nes-pos-right .nes-tab-sidebar {
	width: 100% !important;
	flex: 0 0 100% !important;
}
.nes-pos-left .nes-cards-main-content,
.nes-pos-right .nes-cards-main-content,
.norse-equipment-showcase.nes-pos-left .nes-cards-main-content,
.norse-equipment-showcase.nes-pos-right .nes-cards-main-content {
	width: 100% !important;
	flex: 0 0 100% !important;
}
.nes-pos-left .nes-cards-grid,
.nes-pos-right .nes-cards-grid,
.norse-equipment-showcase.nes-pos-left .nes-cards-grid,
.norse-equipment-showcase.nes-pos-right .nes-cards-grid {
	width: 100% !important;
}

/* ==========================================================================
   ZONE 1 — FEATURED EQUIPMENT DISPLAY
   ========================================================================== */

.nes-featured-section {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 36px;
	width: 100%;
	background: #ffffff;
	border: 1px solid #E5E7EB;
	border-radius: 10px;
	padding: 36px;
	box-shadow: 0 4px 20px -2px rgba(14, 47, 86, 0.08);
	transition: all var(--nes-anim-dur) ease;
}

/* Left Column: Image */
.nes-featured-image-col {
	flex: 0 0 46%;
	max-width: 46%;
	position: relative;
	display: flex;
	align-self: flex-start;
}

.nes-featured-image-wrap {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 280px;
	display: flex;
	flex-direction: column;
	border-radius: 8px;
	overflow: hidden;
	background: #F8FAFC;
	border: 1px solid #E5E7EB;
	box-sizing: border-box;
}

.nes-featured-image {
	width: 100%;
	height: 100%;
	flex: 1 1 100%;
	object-fit: cover;
	display: block;
	transition: opacity var(--nes-anim-dur) ease, transform var(--nes-anim-dur) ease;
}

/* Right Column: Content */
.nes-featured-content-col {
	flex: 1 1 0%;
	min-width: 0;
	width: auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	color: #0E2F56;
	transition: opacity var(--nes-anim-dur) ease, transform var(--nes-anim-dur) ease;
}

/* Eyebrow */
.nes-eyebrow-wrap {
	margin-bottom: 6px;
}

.nes-eyebrow {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #0E2F56;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.nes-eyebrow-dash {
	font-weight: 900;
}

/* Title & Badges Wrap */
.nes-title-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 6px 0 16px;
}

.nes-title {
	font-size: 32px;
	font-weight: 800;
	color: #0E2F56;
	margin: 0;
	line-height: 1.2;
}

/* Badges */
.nes-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	border-radius: 4px;
	line-height: 1.3;
	white-space: nowrap;
}

.nes-feature-badge,
.nes-modal-primary-badge,
.nes-detail-badge-primary {
	color: #0E2F56;
	border: 1.5px solid #CBD5E1;
	background-color: #F8FAFC;
}

.nes-secondary-badge,
.nes-modal-secondary-badge,
.nes-detail-badge-secondary {
	color: #0E2F56;
	border: 1.5px solid #CBD5E1;
	background-color: #F1F5F9;
}

/* Description */
.nes-description {
	font-size: 15px;
	line-height: 1.65;
	color: #4B5563;
	margin: 0 0 24px;
}

/* Specifications List */
.nes-specs-wrap {
	margin-bottom: 20px;
}

.nes-specs-list {
	display: grid;
	gap: 14px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nes-specs-list.nes-layout-inline.nes-cols-1 {
	grid-template-columns: 1fr;
}

.nes-specs-list.nes-layout-inline.nes-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.nes-specs-list.nes-layout-inline.nes-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.nes-specs-list.nes-layout-inline.nes-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

.nes-specs-list.nes-layout-column {
	grid-template-columns: 1fr;
}

.nes-spec-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #E5E7EB;
	transition: border-color 0.2s;
}

.nes-spec-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: #0E2F56;
	font-size: 16px;
	flex-shrink: 0;
}

.nes-spec-icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.nes-spec-label {
	font-size: 13px;
	color: #4B5563;
	font-weight: 500;
	margin: 0;
	white-space: nowrap;
}

.nes-spec-value {
	font-size: 14px;
	color: #0E2F56;
	font-weight: 700;
	margin: 0;
	margin-left: auto;
	text-align: right;
}

/* Inline Expand Container */
.nes-inline-specs-container {
	padding: 16px 0 8px;
	border-top: 1px dashed #CBD5E1;
	margin-bottom: 20px;
	animation: nesFadeIn 0.3s ease;
}

/* View Full Specs Button */
.nes-view-specs-btn-wrap {
	margin-top: auto;
	padding-top: 12px;
}

.nes-view-specs-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	background: #ffffff;
	color: #0E2F56;
	border: 1.5px solid #0E2F56;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.25s ease;
	outline: none;
	box-shadow: 0 2px 6px rgba(14, 47, 86, 0.06);
}

.nes-view-specs-btn:hover,
.nes-view-specs-btn:focus-visible {
	background: #0E2F56;
	color: #ffffff;
	border-color: #0E2F56;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px -2px rgba(14, 47, 86, 0.25);
}

.nes-view-specs-btn .nes-btn-icon {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	transition: transform 0.2s ease;
}

.nes-view-specs-btn:hover .nes-btn-icon {
	transform: translateX(4px);
}

/* Transition Animations for Zone 1 Switching */
.nes-transition-out {
	opacity: 0 !important;
	transform: translateY(8px) !important;
}

.nes-transition-in {
	opacity: 1 !important;
	transform: translateY(0) !important;
}

/* ==========================================================================
   ZONE 2 — CATEGORY TABS & EQUIPMENT CARDS
   ========================================================================== */

.nes-cards-section {
	margin-top: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

/* Tab Bar */
.nes-tab-nav-wrap {
	position: relative;
	border-bottom: 2px solid #E5E7EB;
	width: 100%;
}

.nes-tab-nav {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	padding: 4px 0 8px;
	margin: 0;
	scrollbar-width: none;
}

.nes-tab-nav::-webkit-scrollbar {
	display: none;
}

.nes-tab-btn {
	position: relative;
	background: transparent;
	border: none;
	padding: 10px 4px;
	font-size: 15px;
	font-weight: 600;
	color: #64748B;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	scroll-snap-align: start;
	transition: color 0.2s ease;
	outline: none;
}

.nes-tab-btn:hover,
.nes-tab-btn:focus-visible {
	color: #0E2F56;
}

.nes-tab-btn.active {
	color: #0E2F56;
	font-weight: 700;
}

.nes-tab-btn.active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -10px;
	height: 3px;
	background: #0E2F56;
	border-radius: 2px;
	transition: all 0.2s ease;
}

.nes-tab-count {
	font-size: 13px;
	opacity: 0.75;
	font-weight: 500;
}

/* Gradient Fade Indicator on Mobile for Overflow Scrolling */
.nes-tab-fade-indicator {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 48px;
	pointer-events: none;
	background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
	display: none;
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}

/* Zone 2 Layouts: Horizontal vs Vertical Sidebar */
.nes-zone2-vertical-wrap {
	display: flex;
	gap: var(--nes-sidebar-gap, 30px);
	align-items: flex-start;
	width: 100%;
}

.nes-sidebar-left .nes-zone2-vertical-wrap {
	flex-direction: row;
}

.nes-sidebar-right .nes-zone2-vertical-wrap {
	flex-direction: row-reverse;
}

.nes-tab-sidebar {
	flex: 0 0 var(--nes-sidebar-width, 280px);
	width: var(--nes-sidebar-width, 280px);
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nes-cards-main-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.nes-tab-nav-bar-horizontal {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	margin-bottom: 8px;
}

.nes-horizontal-dropdown {
	max-width: 320px;
}

/* Vertical Tab Navigation */
.nes-nav-vertical {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	padding: 0;
	overflow-x: visible;
}

.nes-nav-vertical .nes-tab-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-radius: 6px;
	background: #ffffff;
	border: 1px solid #E5E7EB;
	color: #4B5563;
	text-align: left;
	transition: all 0.2s ease;
	white-space: normal;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nes-nav-vertical .nes-tab-btn:hover {
	background: #F8FAFC;
	border-color: #CBD5E1;
	color: #0E2F56;
}

.nes-nav-vertical .nes-tab-btn.active {
	background: #F0F4F8;
	border-color: #0E2F56;
	color: #0E2F56;
	font-weight: 700;
	box-shadow: 0 0 0 1px #0E2F56;
}

.nes-nav-vertical .nes-tab-btn.active::after {
	display: none;
}

/* Custom Select Dropdowns */
.nes-equipment-dropdown-wrap,
.nes-category-dropdown-wrap {
	width: 100%;
	position: relative;
}

.nes-custom-select {
	width: 100%;
	padding: 12px 36px 12px 16px;
	background-color: #ffffff;
	color: #0E2F56;
	border: 1px solid #E5E7EB;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230E2F56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	outline: none;
}

.nes-custom-select:hover {
	border-color: #CBD5E1;
}

.nes-custom-select:focus {
	border-color: #0E2F56;
	box-shadow: 0 0 0 2px rgba(14, 47, 86, 0.15);
}

.nes-custom-select optgroup {
	background-color: #F8FAFC;
	color: #0E2F56;
	font-weight: 700;
	padding: 6px 8px;
}

.nes-custom-select option {
	background-color: #ffffff;
	color: #0E2F56;
	padding: 8px 12px;
}

/* Cards Grid */
.nes-cards-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	width: 100%;
}

/* Individual Equipment Card */
.nes-card {
	position: relative;
	background: #ffffff;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	overflow: hidden;
	padding: 14px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
				border-color 0.3s ease,
				box-shadow 0.3s ease,
				background-color 0.3s ease;
	outline: none;
}

.nes-card:hover,
.nes-card:focus-visible {
	transform: translateY(-4px);
	border-color: #0E2F56;
	box-shadow: 0 8px 24px -4px rgba(14, 47, 86, 0.12);
}

.nes-card.active {
	border-color: #0E2F56;
	box-shadow: 0 0 0 2px rgba(14, 47, 86, 0.25), 0 8px 20px -4px rgba(14, 47, 86, 0.12);
	background: #ffffff;
}

/* Badges on Card */
.nes-card-badges-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	z-index: 5;
	pointer-events: none;
}

.nes-card-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 4px;
	line-height: 1.3;
	pointer-events: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	white-space: nowrap;
}

/* Secondary Badge: Top-Left */
.nes-card-badge-secondary {
	background: #F1F5F9;
	color: #0E2F56;
	border: 1px solid #CBD5E1;
}

/* Primary Feature Badge: Top-Right */
.nes-card-badge-primary {
	background: #0E2F56;
	color: #ffffff;
	border: 1px solid #0E2F56;
}

/* Backward-compatible fallback for direct span badges */
.nes-card > .nes-card-badge-secondary {
	position: absolute;
	top: 10px;
	left: 10px;
}
.nes-card > .nes-card-badge-primary {
	position: absolute;
	top: 10px;
	right: 10px;
}

/* Mode 1: Image Media - Badges overlay the top corners of the photo */
.nes-card.nes-media-image .nes-card-badges-wrap {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	width: auto;
	justify-content: space-between;
}

.nes-card.nes-media-image .nes-card-badge-primary {
	margin-left: auto;
}

/* Mode 2: No Media (Show Card Media = OFF) - Badges sit in a dedicated top row, pushing content cleanly down */
.nes-card.nes-no-media .nes-card-badges-wrap {
	position: static;
	width: 100%;
	justify-content: space-between;
	margin-bottom: 12px;
}

.nes-card.nes-no-media .nes-card-badge-primary {
	margin-left: auto;
}

/* Mode 3: Icon Media - Badges sit on the top-right, sharing the compact top line with left-aligned icon */
.nes-card.nes-media-icon .nes-card-badges-wrap {
	position: absolute;
	top: 14px;
	right: 14px;
	justify-content: flex-end;
}

/* Card Thumbnail */
.nes-card-thumb-wrap {
	position: relative;
	width: 100%;
	height: 160px;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 12px;
	background: #F8FAFC;
	border: 1px solid #F1F5F9;
}

.nes-card-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nes-card:hover .nes-card-thumb,
.nes-card:focus-visible .nes-card-thumb {
	transform: scale(1.05);
}

/* Card Icon / SVG Media - Default: No box, transparent bg, no border, left-aligned, compact height */
.nes-card-thumb-wrap.nes-card-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	background: transparent;
	border: none;
	box-shadow: none;
	height: auto;
	min-height: unset;
	padding: 0;
	margin-bottom: 8px;
	box-sizing: border-box;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nes-card-icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	line-height: 1;
}

.nes-card-icon-wrap i {
	font-size: 28px;
	color: #0E2F56;
	line-height: 1;
	transition: all 0.3s ease;
}

.nes-card-icon-wrap svg {
	width: 28px;
	height: 28px;
	fill: #0E2F56;
	display: block;
	transition: all 0.3s ease;
}

.nes-card:hover .nes-card-icon-wrap i,
.nes-card.active .nes-card-icon-wrap i {
	color: #0E2F56;
	transform: scale(1.06);
}

.nes-card:hover .nes-card-icon-wrap svg,
.nes-card.active .nes-card-icon-wrap svg {
	fill: #0E2F56;
	transform: scale(1.06);
}

/* Card Content */
.nes-card-content {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.nes-card-title {
	font-size: 16px;
	font-weight: 700;
	color: #0E2F56;
	margin: 0 0 10px;
	line-height: 1.3;
}

.nes-card-specs {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid #E5E7EB;
}

.nes-card-spec-item {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #6B7280;
}

.nes-card-spec-label {
	font-weight: 500;
}

.nes-card-spec-value {
	color: #0E2F56;
	font-weight: 700;
}

/* View All Link */
.nes-view-all-wrap {
	display: flex;
	justify-content: flex-end;
	margin-top: 16px;
	width: 100%;
}

.nes-view-all-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: transparent;
	border: 1px solid transparent;
	border-radius: 4px;
	color: #0E2F56;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	padding: 8px 16px;
	transition: all 0.2s ease;
	outline: none;
	text-decoration: none;
}

.nes-view-all-btn:hover,
.nes-view-all-btn:focus-visible {
	color: #1E40AF;
}

.nes-view-all-btn .nes-btn-icon {
	display: inline-flex;
	align-items: center;
	transition: transform 0.2s ease;
}

.nes-view-all-btn:hover .nes-btn-icon {
	transform: translateX(3px);
}

/* ==========================================================================
   MODALS (TELEPORTED TO DOCUMENT.BODY)
   ========================================================================== */

.nes-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	box-sizing: border-box;
}

.nes-modal *,
.nes-modal *::before,
.nes-modal *::after {
	box-sizing: inherit;
}

.nes-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Backdrop */
.nes-modal-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(14, 47, 86, 0.45);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	cursor: pointer;
	z-index: 1;
}

/* Dialog Container */
.nes-modal-dialog {
	position: relative;
	z-index: 2;
	width: 92%;
	max-width: 820px;
	max-height: 90vh;
	background-color: #ffffff;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	box-shadow: 0 25px 60px -12px rgba(14, 47, 86, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal Entrance Animation Variants */
.nes-modal[data-popup-anim="fade"] .nes-modal-dialog {
	transform: scale(1);
}

.nes-modal[data-popup-anim="scale"] .nes-modal-dialog {
	transform: scale(0.9);
}
.nes-modal[data-popup-anim="scale"].is-open .nes-modal-dialog {
	transform: scale(1);
}

.nes-modal[data-popup-anim="slide-up"] .nes-modal-dialog {
	transform: translateY(40px);
}
.nes-modal[data-popup-anim="slide-up"].is-open .nes-modal-dialog {
	transform: translateY(0);
}

/* Close Button */
.nes-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #F1F5F9;
	border: 1px solid #E5E7EB;
	border-radius: 50%;
	color: #0E2F56;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	z-index: 20;
	transition: all 0.2s ease;
	outline: none;
}

.nes-modal-close:hover,
.nes-modal-close:focus-visible {
	background: #0E2F56;
	color: #ffffff;
	border-color: #0E2F56;
	transform: rotate(90deg);
}

/* Modal Body */
.nes-modal-body {
	padding: 36px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	color: #0E2F56;
	flex: 1;
}

/* Specs Modal Grid */
.nes-specs-modal-grid {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 32px;
	align-items: start;
}

.nes-modal-thumb-wrap {
	width: 100%;
	height: 260px;
	border-radius: 8px;
	overflow: hidden;
	background: #F8FAFC;
	border: 1px solid #E5E7EB;
	margin-bottom: 14px;
}

.nes-modal-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nes-modal-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.nes-modal-eyebrow {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #0E2F56;
	margin-bottom: 6px;
}

.nes-modal-title {
	font-size: 28px;
	font-weight: 800;
	color: #0E2F56;
	margin: 0 0 14px;
	line-height: 1.25;
}

.nes-modal-description {
	font-size: 14px;
	line-height: 1.6;
	color: #4B5563;
	margin-bottom: 24px;
}

.nes-modal-specs-header {
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #0E2F56;
	border-bottom: 1px solid #E5E7EB;
	padding-bottom: 8px;
	margin-bottom: 14px;
}

.nes-modal-specs-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   CATEGORY "VIEW ALL" MODAL & NESTED DETAIL VIEW
   ========================================================================== */

.nes-modal-dialog-large {
	max-width: 1100px;
}

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

.nes-modal-heading {
	font-size: 24px;
	font-weight: 800;
	color: #0E2F56;
	margin: 0;
}

/* Category Modal Cards Grid */
.nes-cat-modal-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	width: 100%;
}

/* Nested Detail View Inside Modal */
.nes-cat-detail-view {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	animation: nesFadeIn 0.3s ease;
}

.nes-cat-detail-nav {
	margin-bottom: 8px;
}

.nes-detail-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #F1F5F9;
	border: 1px solid #E5E7EB;
	border-radius: 6px;
	padding: 10px 18px;
	color: #0E2F56;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
}

.nes-detail-back-btn:hover,
.nes-detail-back-btn:focus-visible {
	background: #0E2F56;
	color: #ffffff;
	border-color: #0E2F56;
}

.nes-detail-layout-2col {
	display: grid;
	grid-template-columns: 1fr 1.25fr;
	gap: 36px;
	align-items: start;
}

.nes-detail-img-wrap {
	width: 100%;
	height: 320px;
	border-radius: 8px;
	overflow: hidden;
	background: #F8FAFC;
	border: 1px solid #E5E7EB;
	margin-bottom: 16px;
}

.nes-detail-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nes-detail-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.nes-detail-eyebrow {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #0E2F56;
	margin-bottom: 6px;
}

.nes-detail-title {
	font-size: 30px;
	font-weight: 800;
	color: #0E2F56;
	margin: 0 0 16px;
	line-height: 1.25;
}

.nes-detail-desc {
	font-size: 15px;
	line-height: 1.65;
	color: #4B5563;
	margin-bottom: 24px;
}

.nes-detail-specs-heading {
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #0E2F56;
	border-bottom: 1px solid #E5E7EB;
	padding-bottom: 8px;
	margin-bottom: 16px;
}

.nes-detail-specs-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 24px;
	margin: 0;
	padding: 0;
}

.nes-detail-actions {
	margin-top: 24px;
	display: flex;
	justify-content: flex-start;
}

.nes-detail-select-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	background: #0E2F56;
	color: #ffffff;
	border: 1px solid #0E2F56;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all var(--nes-anim-dur) ease;
}

.nes-detail-select-btn:hover {
	background: #1e4b85;
	border-color: #1e4b85;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(14, 47, 86, 0.2);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes nesFadeIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
	.nes-featured-section {
		flex-direction: column;
		gap: 28px;
		padding: 28px;
	}

	.nes-featured-image-col {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.nes-featured-image-wrap {
		min-height: 280px;
		height: 320px;
	}

	.nes-cat-modal-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
	.nes-featured-section {
		padding: 20px;
		gap: 20px;
	}

	.nes-featured-image-wrap {
		min-height: 200px;
		height: 260px;
	}

	.nes-title {
		font-size: 24px;
	}

	.nes-specs-list.nes-layout-inline.nes-cols-2,
	.nes-specs-list.nes-layout-inline.nes-cols-3,
	.nes-specs-list.nes-layout-inline.nes-cols-4 {
		grid-template-columns: 1fr;
	}

	.nes-tab-fade-indicator {
		display: block;
	}

	/* Top-level responsive stacking for Left / Right layouts */
	.norse-equipment-showcase.nes-pos-left,
	.nes-pos-left .norse-equipment-showcase,
	.norse-equipment-showcase.nes-pos-right,
	.nes-pos-right .norse-equipment-showcase {
		flex-direction: column !important;
	}

	.norse-equipment-showcase.nes-pos-left .nes-cards-section,
	.nes-pos-left .norse-equipment-showcase .nes-cards-section,
	.norse-equipment-showcase.nes-pos-right .nes-cards-section,
	.nes-pos-right .norse-equipment-showcase .nes-cards-section,
	.norse-equipment-showcase.nes-pos-left .nes-featured-section,
	.nes-pos-left .norse-equipment-showcase .nes-featured-section,
	.norse-equipment-showcase.nes-pos-right .nes-featured-section,
	.nes-pos-right .norse-equipment-showcase .nes-featured-section {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 100% !important;
	}

	.norse-equipment-showcase.nes-mobile-featured-first .nes-featured-section,
	.norse-equipment-showcase.nes-mobile-featured_first .nes-featured-section,
	.nes-mobile-featured-first .nes-featured-section,
	.nes-mobile-featured_first .nes-featured-section {
		order: 1 !important;
	}
	.norse-equipment-showcase.nes-mobile-featured-first .nes-cards-section,
	.norse-equipment-showcase.nes-mobile-featured_first .nes-cards-section,
	.nes-mobile-featured-first .nes-cards-section,
	.nes-mobile-featured_first .nes-cards-section {
		order: 2 !important;
	}

	.norse-equipment-showcase.nes-mobile-inventory-first .nes-cards-section,
	.norse-equipment-showcase.nes-mobile-inventory_first .nes-cards-section,
	.nes-mobile-inventory-first .nes-cards-section,
	.nes-mobile-inventory_first .nes-cards-section {
		order: 1 !important;
	}
	.norse-equipment-showcase.nes-mobile-inventory-first .nes-featured-section,
	.norse-equipment-showcase.nes-mobile-inventory_first .nes-featured-section,
	.nes-mobile-inventory-first .nes-featured-section,
	.nes-mobile-inventory_first .nes-featured-section {
		order: 2 !important;
	}

	.nes-zone2-vertical-wrap,
	.nes-sidebar-right .nes-zone2-vertical-wrap {
		flex-direction: column;
		gap: 20px;
	}

	.nes-tab-sidebar {
		flex: 1 1 100%;
		width: 100%;
	}

	.nes-horizontal-dropdown {
		max-width: 100%;
	}

	.nes-cards-grid {
		grid-template-columns: 1fr;
	}

	.nes-modal-dialog {
		width: 96%;
		max-height: 94vh;
	}

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

	.nes-modal-header {
		padding: 16px 20px;
	}

	.nes-specs-modal-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.nes-cat-modal-grid {
		grid-template-columns: 1fr;
	}

	.nes-detail-layout-2col {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.nes-detail-specs-list {
		grid-template-columns: 1fr;
	}

	.nes-modal-close {
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
	}
}
