/* Reset i ustawienia ogólne */
.bm-shop-wrapper * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.bm-shop-wrapper {
	font-family: 'Inter', sans-serif;
	background-color: #000000;
	color: #ffffff;
	min-height: 100vh;
	overflow-x: hidden;
}

/* Top Navigation */
.top-navigation {
	background-color: #0a0a0a;
	border-bottom: 1px solid #333;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.nav-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}

.nav-logo h1 {
	font-size: 1.8rem;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: -0.5px;
	margin: 0;
	cursor: pointer;
	transition: color 0.3s ease;
	text-transform: uppercase;
}

.nav-logo h1:hover {
	color: #D71920;
}

/* Main Navigation Menu */
.nav-menu {
	list-style: none;
	display: flex;
	gap: 40px;
	margin: 0;
	padding: 0;
	align-items: center;
	height: 100%;
}

.nav-item {
	height: 100%;
	display: flex;
	align-items: center;
	position: relative;
}

.nav-link {
	color: #ffffff;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 10px;
	height: 100%;
	transition: color 0.3s ease;
	position: relative;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #D71920;
	transform: scaleX(0);
	transition: transform 0.3s ease;
	transform-origin: right;
}

.nav-link:hover {
	color: #ffffff;
}

.nav-item:hover .nav-link::after {
	transform: scaleX(1);
	transform-origin: left;
}

.nav-arrow {
	transition: transform 0.3s ease;
}

.nav-item.active .nav-arrow {
	transform: rotate(180deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 6px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1002;
}

.mobile-menu-toggle span {
	width: 30px;
	height: 2px;
	background-color: #ffffff;
	transition: all 0.3s ease;
	border-radius: 2px;
}

.mobile-menu-toggle:hover span {
	background-color: #D71920;
}

.mobile-menu-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

/* Mega Menu */
.megamenu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(10px);
	background-color: #121212;
	border: 1px solid #333;
	border-top: 3px solid #D71920;
	width: 900px;
	max-width: 95vw;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	z-index: 999;
	border-radius: 0 0 8px 8px;
	overflow-y: auto;
	max-height: 85vh;
	scrollbar-width: thin;
	scrollbar-color: #D71920 #1a1a1a;
}

.megamenu::-webkit-scrollbar {
	width: 6px;
}

.megamenu::-webkit-scrollbar-track {
	background: #1a1a1a;
}

.megamenu::-webkit-scrollbar-thumb {
	background: #D71920;
	border-radius: 3px;
}

.nav-item.active .megamenu {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.megamenu-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	padding: 40px;
	background: linear-gradient(to bottom, #121212, #0f0f0f);
}

/* Mega Menu Column */
.megamenu-column {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.megamenu-header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #333;
	position: relative;
}

.megamenu-icon {
	color: #D71920;
	flex-shrink: 0;
	filter: drop-shadow(0 0 8px rgba(215, 25, 32, 0.3));
}

.megamenu-header h3 {
	font-size: 1.4rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 1px;
	flex: 1;
}

.megamenu-see-all {
	font-size: 0.75rem;
	color: #a0a0a0;
	text-decoration: none;
	padding: 4px 10px;
	border: 1px solid #333;
	border-radius: 4px;
	transition: all 0.3s ease;
	white-space: nowrap;
	font-weight: 500;
	letter-spacing: 0.3px;
}

.megamenu-see-all:hover {
	color: #ffffff;
	border-color: #D71920;
	background-color: rgba(215, 25, 32, 0.1);
}

.megamenu-description {
	color: #a0a0a0;
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0;
}

.megamenu-section {
	margin-bottom: 8px;
}

.megamenu-section h4 {
	color: #D71920;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin: 0 0 16px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.megamenu-section h4::after {
	content: '';
	flex: 1;
	height: 1px;
	background-color: #333;
}

.megamenu-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.megamenu-links li a {
	color: #cccccc;
	text-decoration: none;
	font-size: 0.95rem;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
}

.megamenu-links li a:hover {
	color: #ffffff;
	transform: translateX(5px);
}

.megamenu-links li a::before {
	content: '›';
	color: #D71920;
	font-weight: bold;
	opacity: 0;
	transform: translateX(-5px);
	transition: all 0.2s ease;
}

.megamenu-links li a:hover::before {
	opacity: 1;
	transform: translateX(0);
}

.megamenu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background-color: transparent;
	color: #ffffff;
	text-decoration: none;
	padding: 14px 24px;
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
	margin-top: auto;
	border: 1px solid #333;
	border-radius: 4px;
}

.megamenu-btn:hover {
	background-color: #D71920;
	border-color: #D71920;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(215, 25, 32, 0.2);
}

.megamenu-footer {
	background-color: #0f0f0f;
	border-top: 1px solid #333;
	padding: 20px 40px;
	display: flex;
	justify-content: center;
}

.megamenu-btn-full {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #D71920;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
	padding: 10px 20px;
}

.megamenu-btn-full:hover {
	color: #ffffff;
	background-color: #D71920;
	border-radius: 4px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
	.nav-container {
		height: 70px;
		padding: 0 20px;
	}

	.mobile-menu-toggle {
		display: flex;
	}

	.nav-menu {
		position: fixed;
		top: 70px;
		left: 0;
		width: 100%;
		height: calc(100vh - 70px);
		height: calc(100dvh - 70px);
		background-color: #0a0a0a;
		flex-direction: column;
		align-items: flex-start;
		padding: 0 0 40px 0;
		gap: 0;
		transform: translateX(100%);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		overflow-y: auto;
		border-top: 1px solid #333;
		z-index: 1001;
	}

	.nav-menu.active {
		transform: translateX(0);
	}

	.nav-item {
		width: 100%;
		height: auto;
		flex-direction: column;
		align-items: stretch;
		border-bottom: 1px solid #1a1a1a;
	}

	.nav-link {
		width: 100%;
		padding: 20px 24px;
		justify-content: space-between;
		height: auto;
	}

	.nav-link::after {
		display: none;
	}

	.nav-item:hover .nav-arrow {
		transform: none;
	}

	.nav-item.active .nav-arrow {
		transform: rotate(180deg);
	}

	/* Mobile Mega Menu */
	.megamenu {
		position: static;
		transform: none;
		width: 100%;
		max-width: 100%;
		opacity: 1;
		visibility: visible;
		box-shadow: none;
		border: none;
		border-top: 1px solid #1a1a1a;
		background-color: #0f0f0f;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.5s ease-in-out;
		border-radius: 0;
	}

	.nav-item.active .megamenu {
		max-height: 2000px;
		/* Large enough to fit content */
	}

	.nav-item:hover .megamenu {
		transform: none;
	}

	.megamenu-container {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 20px;
		background: #151515;
	}

	.megamenu-column {
		gap: 20px;
	}

	.megamenu-header h3 {
		font-size: 1.2rem;
	}

	.megamenu-description {
		font-size: 0.9rem;
	}

	.megamenu-btn {
		width: 100%;
	}

	.megamenu-footer {
		padding: 20px 24px;
	}

	.megamenu-btn-full {
		width: 100%;
		justify-content: center;
		background-color: #1a1a1a;
		padding: 16px;
		border-radius: 4px;
	}
}

/* Main Container */
.bm-shop-wrapper .main-container {
	width: 1200px;
	max-width: 100%;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	padding: 40px 20px;
	margin: 0 auto;
	position: relative;
	overflow-x: hidden;
}

/* Mobile Filters Button */
.mobile-filters-btn {
	display: none;
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: #D71920;
	color: #ffffff;
	border: none;
	padding: 14px 20px;
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	border-radius: 50px;
	box-shadow: 0 4px 12px rgba(215, 25, 32, 0.4);
	z-index: 99;
	transition: all 0.3s ease;
	display: none;
	align-items: center;
	gap: 8px;
}

.mobile-filters-btn:hover {
	background-color: #b01419;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(215, 25, 32, 0.5);
}

.mobile-filters-btn svg {
	width: 20px;
	height: 20px;
}

/* Mobile Overlay */
.mobile-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 998;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.mobile-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

/* Mobile Close Button */
.mobile-close-btn {
	display: none;
	position: absolute;
	top: 20px;
	right: 20px;
	background-color: transparent;
	color: #ffffff;
	border: none;
	padding: 8px;
	cursor: pointer;
	z-index: 10;
	transition: color 0.2s ease;
}

.mobile-close-btn:hover {
	color: #D71920;
}

.mobile-close-btn svg {
	width: 24px;
	height: 24px;
}

/* --- FILTRY (LEWA KOLUMNA) --- */
.bm-shop-wrapper .sidebar-filters {
	background-color: #121212;
	border: 1px solid #333;
	padding: 24px;
	max-height: calc(100vh - 80px);
	overflow-y: auto;
	position: sticky;
	top: 80px;
	scrollbar-width: thin;
	scrollbar-color: #D71920 #1a1a1a;
}

/* Custom Scrollbar for Webkit browsers (Chrome, Safari, Edge) */
.bm-shop-wrapper .sidebar-filters::-webkit-scrollbar {
	width: 8px;
}

.bm-shop-wrapper .sidebar-filters::-webkit-scrollbar-track {
	background: #1a1a1a;
	border-radius: 4px;
}

.bm-shop-wrapper .sidebar-filters::-webkit-scrollbar-thumb {
	background: #D71920;
	border-radius: 4px;
	transition: background 0.3s ease;
}

.bm-shop-wrapper .sidebar-filters::-webkit-scrollbar-thumb:hover {
	background: #b01419;
}

/* Hide mobile elements on desktop */
@media (min-width: 1025px) {
	.mobile-overlay {
		display: none !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}

	.mobile-close-btn {
		display: none !important;
	}

	.mobile-filters-toggle {
		display: none !important;
	}

	.bm-shop-wrapper .sidebar-filters {
		position: sticky !important;
		left: auto !important;
		width: auto !important;
		max-width: none !important;
		height: fit-content !important;
		padding: 24px !important;
		border-right: none !important;
	}
}

.filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.bm-shop-wrapper .sidebar-filters h3 {
	font-size: 1.3rem;
	text-transform: uppercase;
	border-bottom: 2px solid #D71920;
	padding-bottom: 12px;
	margin-bottom: 0;
	letter-spacing: 1.5px;
	font-weight: 700;
	color: #ffffff;
}

.btn-clear-filters {
	background-color: transparent;
	color: #999;
	border: 1px solid #333;
	padding: 6px 12px;
	font-size: 0.75rem;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.2s ease;
	border-radius: 2px;
}

.btn-clear-filters:hover {
	color: #fff;
	border-color: #D71920;
}

.filter-group {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #2a2a2a;
}

.filter-group:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.filter-group>label {
	display: block;
	font-weight: 600;
	margin-bottom: 14px;
	color: #ffffff;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.filter-group ul {
	list-style: none;
}

.filter-group li {
	margin-bottom: 10px;
	color: #cccccc;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
}

.filter-group li label[for] {
	cursor: pointer;
	transition: color 0.2s ease;
	color: #cccccc;
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
}

.filter-group li:hover label[for] {
	color: #ffffff;
}

/* Licznik przy opcjach filtra */
.filter-count {
	font-size: 0.8rem;
	color: #666;
	margin-left: 6px;
	font-weight: 500;
	white-space: nowrap;
}

/* Wyszarzenie niedostępnych opcji */
.filter-group li.disabled {
	opacity: 0.6;
	pointer-events: none;
}

.filter-group li.disabled label[for] {
	color: #888;
	cursor: not-allowed;
}

.filter-group li.disabled .filter-count {
	color: #777;
}

.filter-group input[type="checkbox"]:disabled,
.filter-group input[type="radio"]:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #D71920;
	flex-shrink: 0;
	-webkit-appearance: auto;
	appearance: auto;
}

.filter-group select {
	width: 100%;
	background-color: #1a1a1a;
	color: #ffffff;
	border: 1px solid #333;
	padding: 10px;
	font-size: 0.9rem;
	cursor: pointer;
	border-radius: 2px;
	font-family: 'Inter', sans-serif;
}

.filter-group select:focus {
	outline: none;
	border-color: #D71920;
}

.subcategory-group {
	background-color: #1a1a1a;
	padding: 16px;
	border-radius: 4px;
	margin-bottom: 24px;
}

.subcategory-group>label {
	color: #D71920;
}

.subcategory-group li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.subcategory-group li label[for] {
	color: #cccccc;
	cursor: pointer;
	transition: color 0.2s ease;
}

.subcategory-group li:hover label[for] {
	color: #ffffff;
}

.dynamic-filters {
	animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* Filter Info Message */
.filter-info-message {
	display: none;
	background-color: #1a1a1a;
	border-left: 3px solid #D71920;
	padding: 16px;
	margin-top: 20px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.filter-info-message p {
	font-size: 0.9rem;
	line-height: 1.5;
	color: #cccccc;
	margin: 0;
}

.filter-info-message strong {
	color: #D71920;
	font-weight: 600;
}

/* Main Category Selection in Filters */
.main-category-group {
	padding: 0;
	margin-bottom: 16px;
}

.category-buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.category-filter-btn {
	background-color: #1a1a1a;
	color: #ffffff;
	border: 1px solid #333;
	padding: 8px 12px;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 2px;
	font-family: 'Inter', sans-serif;
	width: 100%;
}

.category-filter-btn:hover {
	border-color: #666;
	background-color: #2a2a2a;
}

.category-filter-btn.active {
	background-color: #D71920;
	border-color: #D71920;
	color: #ffffff;
}

/* Mobile Filters Toggle Button (below sorting) */
.mobile-filters-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	background-color: #D71920;
	color: #ffffff;
	border: none;
	padding: 12px 20px;
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color 0.3s ease;
	width: 100%;
}

.mobile-filters-toggle:hover {
	background-color: #b01419;
}

.mobile-filters-toggle svg {
	width: 18px;
	height: 18px;
}

/* Search Filter */
.search-filter-group {
	margin-top: 20px;
}

.search-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.search-input-wrapper .search-icon {
	position: absolute;
	left: 12px;
	color: #666;
	pointer-events: none;
	z-index: 1;
}

.search-input-wrapper input[type="text"] {
	width: 100%;
	background-color: #1a1a1a;
	color: #ffffff;
	border: 1px solid #333;
	padding: 10px 40px 10px 40px;
	font-size: 0.9rem;
	border-radius: 4px;
	font-family: 'Inter', sans-serif;
	transition: border-color 0.3s ease;
}

.search-input-wrapper input[type="text"]:focus {
	outline: none;
	border-color: #D71920;
}

.search-input-wrapper input[type="text"]::placeholder {
	color: #666;
}

.clear-search-btn {
	position: absolute;
	right: 8px;
	background: none;
	border: none;
	color: #666;
	cursor: pointer;
	padding: 6px;
	display: none;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.clear-search-btn:hover {
	background-color: #D71920;
	color: #ffffff;
}

.clear-search-btn svg {
	width: 16px;
	height: 16px;
}

/* Price Filter */
.price-filter-group {
	margin-top: 20px;
}

.price-range-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.price-inputs {
	display: flex;
	align-items: center;
	gap: 10px;
}

.price-inputs input[type="number"] {
	flex: 1;
	background-color: #1a1a1a;
	color: #ffffff;
	border: 1px solid #333;
	padding: 8px 10px;
	font-size: 0.9rem;
	border-radius: 2px;
	font-family: 'Inter', sans-serif;
	width: 0;
}

.price-inputs input[type="number"]:focus {
	outline: none;
	border-color: #D71920;
}

.price-inputs input[type="number"]::placeholder {
	color: #666;
}

.price-inputs span {
	color: #666;
	font-weight: 600;
}

.price-range-info {
	font-size: 0.85rem;
	color: #D71920;
	font-weight: 600;
	text-align: center;
	padding: 6px;
	background-color: #0a0a0a;
	border-radius: 2px;
}

/* Remove number input arrows */
.price-inputs input[type="number"]::-webkit-inner-spin-button,
.price-inputs input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.price-inputs input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

/* Products Section */
.bm-shop-wrapper .products-section {
	width: 100%;
}

.products-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 15px;
	border-bottom: 2px solid #333;
	gap: 20px;
	flex-wrap: wrap;
}

.title-with-count {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.products-header h2 {
	font-size: 1.8rem;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 1px;
	flex-shrink: 0;
	margin: 0;
}

.sort-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sort-wrapper label {
	font-size: 0.85rem;
	color: #cccccc;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.sort-wrapper select {
	background-color: #1a1a1a;
	color: #ffffff;
	border: 1px solid #333;
	padding: 8px 32px 8px 12px;
	font-size: 0.9rem;
	cursor: pointer;
	border-radius: 2px;
	font-family: 'Inter', sans-serif;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23ffffff" d="M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z"/></svg>');
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 12px;
}

.sort-wrapper select:focus {
	outline: none;
	border-color: #D71920;
}

.count-badge {
	background-color: #D71920;
	color: #ffffff;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

/* --- GRID PRODUKTÓW --- */
.products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* --- KARTA PRODUKTU --- */
.product-card {
	background-color: #121212;
	border: 1px solid #333;
	position: relative;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
	/* overflow: hidden; - Removed to allow drop indicators outside */
}

.product-card.admin-draggable {
	cursor: grab;
}

.product-card.admin-draggable:active {
	cursor: grabbing;
}

.product-card.dragging {
	opacity: 0.4;
	border: 2px dashed #D71920;
	transform: scale(0.95);
}

/* Drop Indicators */
.product-card.drop-target-left::before {
	content: '';
	position: absolute;
	top: -10px;
	bottom: -10px;
	left: -13px;
	/* Half of gap (24px) + border width */
	width: 2px;
	background: repeating-linear-gradient(0deg,
			#D71920,
			#D71920 8px,
			transparent 8px,
			transparent 16px);
	z-index: 100;
	box-shadow: 0 0 10px rgba(215, 25, 32, 0.8);
}

.product-card.drop-target-right::after {
	content: '';
	position: absolute;
	top: -10px;
	bottom: -10px;
	right: -13px;
	/* Half of gap (24px) + border width */
	width: 2px;
	background: repeating-linear-gradient(0deg,
			#D71920,
			#D71920 8px,
			transparent 8px,
			transparent 16px);
	z-index: 100;
	box-shadow: 0 0 10px rgba(215, 25, 32, 0.8);
}

.product-card:hover {
	border-color: #D71920;
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(215, 25, 32, 0.2);
}

/* Kod produktu jako badge */
.product-code-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #D71920;
	color: #fff;
	padding: 6px 12px;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 4px;
	z-index: 3;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(215, 25, 32, 0.3);
	text-transform: uppercase;
}

/* Badge (Nowość / Promocja) */
.card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	z-index: 2;
}

.badge-new {
	background-color: #D71920;
}

.badge-promo {
	background-color: #333;
	border: 1px solid #fff;
}

/* Zdjęcie produktu */
.image-wrapper {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	cursor: zoom-in;
}

.image-wrapper img {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
	transition: transform 0.2s ease;
	transform-origin: center center;
}

.product-card:hover .image-wrapper img {
	transform: scale(1.4);
}

/* Detale tekstowe */
.card-details {
	padding: 16px;
	text-align: center;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.product-name {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	margin: 0;
	min-height: auto;
}

/* Krótki opis produktu */
.product-description {
	font-size: 0.65rem;
	color: #999;
	line-height: 1.4;
	margin: 4px 0 0 0;
	font-weight: 400;
	max-height: 4.2em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	cursor: help;
}

/* Info o kolorach */
.product-colors-info {
	font-size: 0.75rem;
	color: #D71920;
	font-weight: 600;
	padding: 4px 8px;
	background-color: rgba(215, 25, 32, 0.1);
	border: 1px solid rgba(215, 25, 32, 0.3);
	border-radius: 4px;
	display: inline-block;
	margin: 0 auto;
}

/* Tagi produktu */
.product-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: center;
	margin: 6px 0;
}

.product-tag {
	background-color: #1a1a1a;
	color: #ccc;
	padding: 3px 6px;
	border-radius: 10px;
	font-size: 0.65rem;
	font-weight: 500;
	border: 1px solid #2a2a2a;
	transition: all 0.2s ease;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.tag-icon {
	font-size: 0.75rem;
	line-height: 1;
}

.product-tag[data-type="pomieszczenie"] {
	background-color: rgba(50, 205, 50, 0.12);
	border-color: rgba(50, 205, 50, 0.4);
	color: #4cd964;
}

.product-tag[data-type="wlasciwosci"] {
	background-color: rgba(215, 25, 32, 0.12);
	border-color: rgba(215, 25, 32, 0.4);
	color: #ff6b6b;
}

.product-tag[data-type="polysk"] {
	background-color: rgba(255, 215, 0, 0.08);
	border-color: rgba(255, 215, 0, 0.3);
	color: #ffd700;
}

.product-tag[data-type="powierzchnia"] {
	background-color: rgba(100, 149, 237, 0.12);
	border-color: rgba(100, 149, 237, 0.4);
	color: #6495ed;
}

.product-tag[data-type="przeznaczenie"],
.product-tag[data-type="przeznaczenie-grunt"] {
	background-color: rgba(138, 43, 226, 0.12);
	border-color: rgba(138, 43, 226, 0.4);
	color: #ba8aff;
}

.product-card:hover .product-tag {
	transform: translateY(-1px);
}

/* Sekcja ceny */
.product-price-section {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 6px;
	margin: 6px 0;
	align-items: end;
	flex-grow: 1;
}

.price-label {
	font-size: 0.7rem;
	color: #999;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.price-value {
	font-size: 1.2rem;
	font-weight: 700;
	color: #D71920;
	letter-spacing: -0.5px;
}

/* Przycisk */
.btn-variant {
	background-color: transparent;
	color: #fff;
	border: 1px solid #444;
	padding: 10px 16px;
	font-size: 0.8rem;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	border-radius: 2px;
	margin-top: auto;
}

.btn-variant:hover {
	background-color: #D71920;
	border-color: #D71920;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(215, 25, 32, 0.3);
}

/* No Results */
.no-results {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
	text-align: center;
	background-color: #121212;
	border: 1px solid #333;
	border-radius: 4px;
}

.no-results p {
	font-size: 1.2rem;
	color: #999;
	margin-bottom: 20px;
}

.no-results .btn-variant {
	width: auto;
	min-width: 200px;
}

/* Mobile Apply Button - hidden on desktop */
.mobile-apply-btn {
	display: none;
}

/* Responsywność */
@media (max-width: 1400px) {
	.megamenu {
		width: 800px;
	}
}

@media (max-width: 1200px) {
	.megamenu {
		width: 700px;
	}

	.megamenu-container {
		gap: 30px;
		padding: 30px;
	}
}

@media (max-width: 1024px) {

	/* Mobile Navigation */
	.nav-container {
		height: 70px;
		padding: 0 20px;
	}

	.mobile-menu-toggle {
		display: flex;
	}

	.nav-menu {
		position: fixed;
		top: 70px;
		left: 0;
		width: 100%;
		height: calc(100vh - 70px);
		background-color: #0a0a0a;
		flex-direction: column;
		align-items: flex-start;
		padding: 0;
		gap: 0;
		transform: translateX(100%);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		overflow-y: auto;
		border-top: 1px solid #333;
	}

	.nav-menu.active {
		transform: translateX(0);
	}

	.nav-item {
		width: 100%;
		height: auto;
		flex-direction: column;
		align-items: stretch;
		border-bottom: 1px solid #1a1a1a;
		display: block;
		/* Change from flex to block for accordion behavior */
	}

	.nav-link {
		width: 100%;
		padding: 20px 24px;
		justify-content: space-between;
		height: auto;
		display: flex;
	}

	.nav-link::after {
		display: none;
	}

	.nav-item:hover .nav-arrow {
		transform: none;
	}

	.nav-item.active .nav-arrow {
		transform: rotate(180deg);
	}

	/* Mobile Mega Menu */
	.megamenu {
		position: static;
		transform: none;
		width: 100%;
		max-width: 100%;
		opacity: 1;
		visibility: visible;
		box-shadow: none;
		border: none;
		border-top: 1px solid #1a1a1a;
		background-color: #0f0f0f;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.5s ease-in-out;
		border-radius: 0;
	}

	.nav-item.active .megamenu {
		max-height: 2000px;
		/* Large enough to fit content */
	}

	.nav-item:hover .megamenu {
		transform: none;
	}

	.megamenu-container {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 24px;
		background: none;
	}

	.megamenu-column {
		gap: 20px;
	}

	.megamenu-header h3 {
		font-size: 1.2rem;
	}

	.megamenu-description {
		font-size: 0.9rem;
	}

	.megamenu-btn {
		width: 100%;
	}

	.megamenu-footer {
		padding: 20px 24px;
		background: none;
	}

	.megamenu-btn-full {
		width: 100%;
		justify-content: center;
		background-color: #1a1a1a;
		padding: 16px;
		border-radius: 4px;
	}

	/* Sidebar Filters Mobile */
	.bm-shop-wrapper .main-container {
		grid-template-columns: 1fr;
		padding: 20px;
	}

	.bm-shop-wrapper .sidebar-filters {
		position: fixed;
		top: 0;
		left: -100%;
		width: 85%;
		max-width: 350px;
		height: 100vh;
		z-index: 1100;
		/* Higher than nav */
		overflow-y: auto;
		transition: left 0.3s ease;
		padding: 80px 24px 100px 24px;
		border-right: 2px solid #D71920;
	}

	.bm-shop-wrapper .sidebar-filters.active {
		left: 0;
	}

	.mobile-filters-toggle {
		display: flex !important;
		margin: 16px 0;
	}

	.search-filter-group {
		display: block;
	}

	.mobile-apply-btn {
		display: block;
		width: 100%;
		background-color: #D71920;
		color: #ffffff;
		border: none;
		padding: 14px 20px;
		font-size: 1rem;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		cursor: pointer;
		border-radius: 4px;
		margin-top: 20px;
		transition: background-color 0.3s ease;
	}

	.mobile-apply-btn:hover {
		background-color: #b01419;
	}

	.mobile-overlay {
		display: block;
	}

	.mobile-close-btn {
		display: block;
	}

	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 768px) {
	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

@media (max-width: 600px) {
	.nav-container {
		height: 60px;
		padding: 0 16px;
	}

	.nav-menu {
		top: 60px;
		height: calc(100vh - 60px);
		height: calc(100dvh - 60px);
	}

	.products-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.products-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.title-with-count {
		width: 100%;
	}

	.sort-wrapper {
		width: 100%;
	}
}

/* --- TOAST NOTIFICATIONS --- */
.toast-notification {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background-color: #1a1a1a;
	color: #fff;
	padding: 12px 24px;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 2000;
	transform: translateY(100px);
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	border-left: 4px solid #333;
	font-size: 0.9rem;
	font-weight: 500;
}

.toast-notification.show {
	transform: translateY(0);
	opacity: 1;
}

.toast-notification.success {
	border-left-color: #4cd964;
}

.toast-notification.error {
	border-left-color: #ff3b30;
}

.toast-notification.loading {
	border-left-color: #007aff;
}

.toast-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}