/* --- Globalne Style i Ulepszone Zmienne --- */
:root {
	--bg-color: #1a202c;
	--surface-color: #2d3748;
	--surface-lighter: #4a5568;
	--surface-darker: #1a202c;
	--primary-color: #4299e1;
	--primary-hover-color: #63b3ed;
	--secondary-color: #4a5568;
	--secondary-hover-color: #718096;
	--text-color: #e2e8f0;
	--text-muted-color: #a0aec0;
	--border-color: #4a5568;
	--border-light: #718096;
	--success-color: #48bb78;
	--danger-color: #e53e3e;
	--warning-color: #ed8936;
	--font-family: "Poppins", sans-serif;
	--border-radius: 16px;
	--border-radius-sm: 12px;
	--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
		0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2),
		0 4px 6px -2px rgba(0, 0, 0, 0.1);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.25),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--glow-primary: 0 0 20px rgba(66, 153, 225, 0.4);
	--glow-danger: 0 0 20px rgba(229, 62, 62, 0.4);
	--glow-success: 0 0 20px rgba(72, 187, 120, 0.4);
}

.header-height {
    height: 80px;
}

/* --- ZDEFINIOWANE ANIMACJE --- */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes bounceIn {
	0% {
		opacity: 0;
		transform: scale(0.5);
	}
	60% {
		opacity: 1;
		transform: scale(1.05);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes pulse {
	50% {
		transform: scale(1.05);
	}
}

@keyframes float {
	50% {
		transform: translateY(-8px);
	}
}

@keyframes modalOpen {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

/* NOWA ANIMACJA ZAMYKANIA MODALA */
@keyframes modalClose {
	from {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
	to {
		opacity: 0;
		transform: scale(0.9) translateY(20px);
	}
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-family);
	background: linear-gradient(135deg, var(--bg-color), #252d3d);
	color: var(--text-color);
	line-height: 1.6;
	overflow-x: hidden;
}

.container_2 {
	max-width: 1600px;
	margin: 0 auto;
	padding: 2rem;
	margin-top: 5rem;
	animation: fadeInUp 0.6s ease-out;
}

h1,
h2,
h3,
h4 {
	line-height: 1.2;
	margin-bottom: 0.5em;
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover {
	color: var(--primary-hover-color);
	text-shadow: 0 0 5px var(--primary-hover-color);
}

img {
	max-width: 100%;
	display: block;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: var(--border-radius-sm);
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	text-align: center;
	position: relative;
	overflow: hidden;
	font-size: 0.9rem;
}

.btn-primary {
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-hover-color)
	);
	color: #fff;
	box-shadow: var(--shadow);
}
.btn-primary:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: var(--shadow-lg), var(--glow-primary);
}

.btn-secondary {
	background-color: var(--secondary-color);
	color: var(--text-color);
}
.btn-secondary:hover {
	background-color: var(--secondary-hover-color);
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.btn:disabled {
	background-color: var(--secondary-color);
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.site-header {
	text-align: center;
	margin-bottom: 3rem;
	animation: fadeInUp 0.8s 0.2s ease-out both;
}
.site-header h1 {
	font-size: 2.5rem;
	font-weight: 700;
	background: linear-gradient(
		135deg,
		var(--text-color),
		var(--primary-color)
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.site-header p {
	font-size: 1.1rem;
	color: var(--text-muted-color);
	margin-bottom: 1.5rem;
}

.main-content {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

.sidebar {
	flex: 0 0 250px;
	position: sticky;
	top: 2rem;
	animation: fadeInUp 0.8s 0.4s ease-out both;
}

.filter-group {
	background-color: var(--surface-color);
	padding: 1.5rem;
	border-radius: var(--border-radius);
	margin-bottom: 2rem;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}
.filter-group:hover {
	border-color: var(--primary-color);
	box-shadow: var(--shadow-lg);
}
.filter-group h3 {
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 0.5rem;
	margin-bottom: 1rem;
	font-size: 1.1rem;
}
.filter-group ul {
	list-style: none;
}
.filter-group ul li a {
	display: block;
	padding: 0.6rem;
	margin-top: 0.5rem;
	border-radius: 8px;
	transition: all 0.2s ease;
}
.filter-group ul li a:hover {
	background-color: var(--secondary-color);
	transform: translateX(5px);
}
.filter-group ul li a.active {
	background-color: var(--primary-color);
	color: #fff;
	font-weight: 600;
	box-shadow: var(--glow-primary);
}

#sortOptions {
	width: 100%;
	padding: 0.75rem;
	background-color: var(--bg-color);
	color: var(--text-color);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius-sm);
	transition: all 0.3s ease;
}
#sortOptions:focus {
	border-color: var(--primary-color);
	box-shadow: var(--glow-primary);
	outline: none;
}

.product-grid {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
}

.product-card {
	background-color: var(--surface-color);
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	display: flex;
	flex-direction: column;
	cursor: pointer;
	animation: scaleIn 0.5s ease-out both;
}
.product-card:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: var(--shadow-xl), var(--glow-primary);
}
.product-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.product-card:hover img {
	transform: scale(1.05);
}
.product-card-content {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.product-card h3 {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
	transition: color 0.3s ease;
}
.product-card:hover h3 {
	color: var(--primary-color);
}
.product-card .price {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--primary-color);
	margin-top: auto;
	margin-bottom: 1rem;
}
.product-card .add-to-cart-btn .btn-text {
	transition: opacity 0.2s ease;
}
.product-card .add-to-cart-btn .icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.product-card .add-to-cart-btn.added {
	background: var(--success-color);
	box-shadow: var(--glow-success);
}
.product-card .add-to-cart-btn.added .btn-text {
	opacity: 0;
}
.product-card .add-to-cart-btn.added .icon {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.cart-summary {
	flex: 0 0 340px;
	background: linear-gradient(135deg, var(--surface-color) 0%, #374151 100%);
	border-radius: var(--border-radius);
	padding: 0;
	position: sticky;
	top: 2rem;
	opacity: 0;
	visibility: hidden;
	transform: translateX(20px) scale(0.95);
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

.cart-summary.visible {
	opacity: 1;
	visibility: visible;
	transform: translateX(0) scale(1);
}

.cart-summary h2 {
	background: linear-gradient(
		135deg,
		rgba(66, 153, 225, 0.1),
		rgba(66, 153, 225, 0.05)
	);
	padding: 1.5rem;
	margin: 0;
	border-bottom: 2px solid var(--primary-color);
	font-size: 1.3rem;
	font-weight: 700;
	text-align: center;
	color: var(--text-color);
}

#cartItems {
	max-height: 400px;
	overflow-y: auto;
	padding: 1rem;
	margin: 0;
}

/* --- POPRAWIONA ANIMACJA KOSZYKA --- */
.cart-item-line,
.full-cart-item {
	/* Ustawienie początkowej max-height, aby animacja zwijania działała poprawnie */
	max-height: 200px;
	overflow: hidden;
	transition: max-height 0.4s ease-out; /* Dodatkowa płynność dla layoutu */
}

.cart-item-line {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	margin-bottom: 1rem;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.05),
		rgba(255, 255, 255, 0.02)
	);
	border-radius: var(--border-radius-sm);
	border: 1px solid var(--border-color);
	animation: fadeInUp 0.4s ease-out;
}

.cart-item-line:hover {
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.08),
		rgba(255, 255, 255, 0.04)
	);
	transform: translateY(-2px);
	box-shadow: var(--shadow);
	border-color: var(--primary-color);
}

/* NOWA KLASA DO PŁYNNEGO USUWANIA */
.cart-item-line.removing,
.full-cart-item.removing {
	animation: none; /* Wyłącz animację wejścia */
	transition: all 0.4s ease-out;
	opacity: 0;
	transform: translateX(-50px) scale(0.8);
	max-height: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
	border-width: 0 !important;
}

.cart-item-remove-btn:hover {
	background: linear-gradient(135deg, var(--danger-color), #c53030);
	color: white;
	transform: scale(1.1);
	box-shadow: var(--glow-danger);
}

/* --- ULEPSZONY MODAL Z ANIMACJĄ OTWIERANIA I ZAMYKANIA --- */
/* --- KLUCZOWA POPRAWKA: Animacje zdefiniowane dla konkretnych stanów --- */

/* 1. Podstawowe style modala (gdy jest ukryty) */
.modal {
	display: none; /* Początkowo ukryty */
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
	/* Usunięto stąd animację, aby uniknąć konfliktu */
}

.modal-content {
	background: linear-gradient(135deg, var(--surface-color) 0%, #374151 100%);
	margin: auto;
	padding: 0;
	border-radius: var(--border-radius);
	max-width: 95%;
	width: 1200px;
	max-height: 90vh;
	position: relative;
	box-shadow: var(--shadow-xl);
	border: 1px solid var(--border-color);
	overflow: hidden;
	/* Usunięto stąd animację, aby uniknąć konfliktu */
}

/* 2. Style i animacje URUCHAMIANE PODCZAS OTWIERANIA */
/* Gdy JS ustawi display: flex, te animacje się odpalą */
.modal[style*="display: flex"] {
	animation: fadeIn 0.4s ease forwards;
}

.modal[style*="display: flex"] .modal-content {
	animation: modalOpen 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* 3. Style i animacje URUCHAMIANE PODCZAS ZAMYKANIA */
/* Gdy JS doda klasę .closing, te animacje się odpalą */
.modal.closing {
	/* Ważne: animacja dla tła */
	animation: fadeOut 0.4s ease forwards;
}

.modal.closing .modal-content {
	/* Ważne: animacja dla zawartości */
	animation: modalClose 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- Klatki kluczowe animacji (bez zmian, ale dla kompletności) --- */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes modalOpen {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes modalClose {
	from {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
	to {
		opacity: 0;
		transform: scale(0.9) translateY(20px);
	}
}

/* --- Pozostałe style modala (bez zmian) --- */
.modal-close-btn {
	color: var(--text-muted-color);
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 1.5rem;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-close-btn:hover {
	color: white;
	background-color: var(--danger-color);
	transform: scale(1.1) rotate(90deg);
	box-shadow: var(--glow-danger);
}

.gallery-nav:hover {
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-hover-color)
	);
	transform: translateY(-50%) scale(1.1);
	border-color: rgba(255, 255, 255, 0.4);
	box-shadow: var(--glow-primary);
}

.toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, var(--success-color), #38a169);
	color: white;
	padding: 1rem 2rem;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-xl), var(--glow-success);
	z-index: 2000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.2);
}
.toast.show {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -10px);
}

.mobile-cart-btn {
	display: none;
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 70px;
	height: 70px;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-hover-color)
	);
	color: white;
	border: none;
	border-radius: 50%;
	box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4);
	cursor: pointer;
	z-index: 999;
	align-items: center;
	justify-content: center;
	transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	opacity: 0;
	visibility: hidden;
	transform: scale(0.5) rotate(-90deg);
	border: 3px solid rgba(255, 255, 255, 0.2);
}
.mobile-cart-btn.visible {
	opacity: 1;
	visibility: visible;
	transform: scale(1) rotate(0);
	animation: float 3s ease-in-out infinite 0.5s;
}
.mobile-cart-btn:hover {
	transform: scale(1.15);
	box-shadow: 0 12px 35px rgba(66, 153, 225, 0.6);
}
.mobile-cart-btn:active {
	transform: scale(0.95);
}

.cart-item-count {
	position: absolute;
	top: -5px;
	right: -5px;
	background: linear-gradient(135deg, var(--danger-color), #c53030);
	color: white;
	font-size: 0.8rem;
	font-weight: 700;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 3px solid white;
	box-shadow: var(--shadow);
	animation: pulse 2s infinite;
}

.site-footer {
	margin-top: 8rem;
	width: 100%;
	animation: fadeInUp 0.8s ease-out;
}

.site-footer-features {
	margin-top: 4rem;
	display: flex;
	justify-content: space-around;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 2.5rem;
	background-color: var(--surface-color);
	border-radius: var(--border-radius);
	border-top: 2px solid var(--border-color);
}

.feature-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.75rem;
	flex: 1;
	min-width: 200px;
	max-width: 250px;
	transition: transform 0.3s ease;
}

.feature-item:hover {
	transform: translateY(-8px);
}

.feature-item:hover .feature-icon {
	color: var(--primary-hover-color);
	transform: scale(1.1);
	text-shadow: var(--glow-primary);
}

.feature-icon {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin-bottom: 0.5rem;
	transition: all 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		animation-delay: -0.01ms !important;
	}
}

::-webkit-scrollbar {
	width: 8px;
}
::-webkit-scrollbar-track {
	background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
	background: var(--primary-color);
	border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
	background: var(--primary-hover-color);
}

/* Pozostałe style (wklej tutaj resztę kodu od .cart-item-details do końca) */
.cart-item-details {
	flex: 1;
	min-width: 0;
	margin-right: 1rem;
}

.item-name {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--text-color);
	margin-bottom: 0.25rem;
	line-height: 1.3;
	word-break: break-word;
}

.item-price {
	font-size: 0.85rem;
	color: var(--text-muted-color);
	font-weight: 500;
}

.cart-item-controls {
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, var(--surface-darker), var(--bg-color));
	border-radius: var(--border-radius-sm);
	border: 2px solid var(--border-color);
	overflow: hidden;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
}

.qty-btn {
	background: linear-gradient(
		135deg,
		var(--surface-lighter),
		var(--secondary-color)
	);
	border: none;
	color: var(--text-color);
	cursor: pointer;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	font-size: 0.9rem;
	font-weight: 700;
	flex-shrink: 0;
}

.qty-btn:hover:not(:disabled) {
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-hover-color)
	);
	color: white;
}

.qty-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	background: linear-gradient(
		135deg,
		var(--surface-color),
		var(--secondary-color)
	);
}

.qty-btn svg {
	width: 12px;
	height: 12px;
}

.item-quantity {
	padding: 0 0.5rem;
	font-weight: 700;
	min-width: 30px;
	text-align: center;
	font-size: 0.9rem;
	background: linear-gradient(
		135deg,
		var(--surface-color),
		var(--surface-lighter)
	);
	color: var(--text-color);
	line-height: 30px;
	border-left: 1px solid var(--border-light);
	border-right: 1px solid var(--border-light);
}

.cart-item-remove-btn {
	background: linear-gradient(
		135deg,
		rgba(229, 62, 62, 0.1),
		rgba(229, 62, 62, 0.05)
	);
	border: 1px solid rgba(229, 62, 62, 0.3);
	color: var(--danger-color);
	cursor: pointer;
	padding: 0.3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.cart-item-remove-btn svg {
	width: 12px;
	height: 12px;
}

.cart-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 700;
	font-size: 1.1rem;
	border-top: 2px solid var(--primary-color);
	padding: 1.5rem;
	margin: 0;
	background: linear-gradient(
		135deg,
		rgba(66, 153, 225, 0.1),
		rgba(66, 153, 225, 0.05)
	);
	color: var(--text-color);
}

.cart-total .total-amount {
	color: var(--primary-color);
	font-size: 1.3rem;
	text-shadow: 0 1px 3px rgba(66, 153, 225, 0.3);
}

.btn-checkout {
	width: calc(100% - 3rem);
	margin: 1.5rem;
	margin-top: 0;
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 700;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-hover-color)
	);
	box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.btn-checkout:hover {
	box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
	transform: translateY(-2px);
}

.modal-body {
	display: flex;
	gap: 3rem;
	padding: 2.5rem;
	align-items: flex-start;
}

.modal-image-gallery {
	flex: 1.2;
	position: relative;
	max-width: 600px;
	height: 500px;
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-lg);
	background-color: var(--bg-color);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.modal-product-image {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
	display: block;
}

.gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: linear-gradient(
		135deg,
		rgba(0, 0, 0, 0.7),
		rgba(0, 0, 0, 0.9)
	);
	color: white;
	border: none;
	font-size: 1.8rem;
	padding: 0;
	cursor: pointer;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	backdrop-filter: blur(10px);
	border: 2px solid rgba(255, 255, 255, 0.2);
	z-index: 5;
}

.gallery-nav.prev {
	left: 15px;
}
.gallery-nav.next {
	right: 15px;
}

.image-indicator {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(
		135deg,
		rgba(0, 0, 0, 0.8),
		rgba(0, 0, 0, 0.9)
	);
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 600;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	z-index: 5;
}

.modal-product-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.modal-product-info h2 {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	background: linear-gradient(
		135deg,
		var(--text-color),
		var(--primary-color)
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.modal-product-price {
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--primary-color);
	text-shadow: 0 2px 4px rgba(66, 153, 225, 0.3);
}

.modal-product-description {
	color: var(--text-muted-color);
	font-size: 1.1rem;
	line-height: 1.7;
	background-color: rgba(0, 0, 0, 0.2);
	padding: 1.5rem;
	border-radius: var(--border-radius-sm);
	border-left: 4px solid var(--primary-color);
}

.modal-product-actions {
	display: flex;
	gap: 1rem;
	margin-top: auto;
}

.modal-product-actions .btn {
	flex: 1;
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 600;
}

.full-cart-modal .modal-content {
	width: 900px;
	max-width: 95vw;
	max-height: 85vh;
	background: linear-gradient(135deg, var(--surface-color) 0%, #374151 100%);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-xl);
	padding: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.full-cart-modal .modal-header {
	padding: 2rem 2rem 1.5rem 2rem;
	border-bottom: 2px solid var(--border-color);
	background: linear-gradient(
		135deg,
		rgba(66, 153, 225, 0.1),
		rgba(66, 153, 225, 0.05)
	);
	flex-shrink: 0;
	position: relative;
}

.full-cart-modal h2 {
	font-size: 1.8rem;
	font-weight: 700;
	margin: 1.5rem;
	text-align: center;
	color: var(--text-color);
	padding-top: 0.5rem;
}

.full-cart-modal .modal-close-btn {
	top: 1.5rem;
	right: 1rem;
	width: 32px;
	height: 32px;
	font-size: 1.3rem;
}

#fullCartItemsContainer {
	flex: 1;
	overflow-y: auto;
	padding: 1.5rem;
}

.full-cart-item {
	display: flex;
	align-items: center; /* Dodaj to dla lepszego wyrównania w pionie */
	gap: 2rem;
	/* ZMIANA: Zwiększ padding, zwłaszcza góra/dół */
	padding: 1.25rem; /* Zwiększ z 1rem na np. 1.25rem lub 1.5rem */
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.05),
		rgba(255, 255, 255, 0.02)
	);
	border-radius: var(--border-radius);
	margin-bottom: 1rem;
	border: 1px solid var(--border-color);
	transition: all 0.2s ease;
	position: relative;
	/* ... reszta stylów tej klasy ... */
}

.full-cart-item:hover {
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.08),
		rgba(255, 255, 255, 0.04)
	);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.full-cart-item:last-child {
	margin-bottom: 0;
}

.full-cart-item-img {
	height: 150px;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--border-radius-sm);
	flex-shrink: 0;
	box-shadow: var(--shadow);
	border-radius: var(--border-radius);
}

.full-cart-item-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	position: relative;
	padding-right: 2rem;
	margin-left: 1rem;
}

.full-cart-item-info h4 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--text-color);
	line-height: 1.3;
	word-break: break-word;
}

.full-cart-item-price {
	font-size: 0.8rem;
	color: var(--text-muted-color);
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.full-cart-item-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
}

.full-cart-item-controls {
	flex-shrink: 0;
}

.full-cart-item-line-total {
	font-weight: 700;
	font-size: 1rem;
	color: var(--primary-color);
	text-shadow: 0 1px 2px rgba(66, 153, 225, 0.3);
}

.btn-remove-full {
	position: absolute;
	top: 50%;
	right: 1.5rem; /* Możesz dostosować tę wartość dla idealnego odstępu */
	transform: translateY(-50%);
	background: linear-gradient(
		135deg,
		rgba(229, 62, 62, 0.1),
		rgba(229, 62, 62, 0.05)
	);
	border: 1px solid rgba(229, 62, 62, 0.3);
	color: var(--danger-color);
	cursor: pointer;
	padding: 0.3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	transition: all 0.2s ease;
}

/* Nie zapomnij o efekcie hover! */
.btn-remove-full:hover {
	background: linear-gradient(135deg, var(--danger-color), #c53030);
	color: white;
	/* Poprawka: transform musi zawierać obie wartości */
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

.btn-remove-full svg {
	width: 14px;
	height: 14px;
}

.full-cart-summary {
	padding: 1.5rem;
	border-top: 2px solid var(--border-color);
	background: linear-gradient(
		135deg,
		rgba(66, 153, 225, 0.05),
		rgba(66, 153, 225, 0.02)
	);
	flex-shrink: 0;
}

.summary-line {
	display: flex;
	justify-content: space-between;
	font-size: 1rem;
	color: var(--text-muted-color);
	margin-bottom: 0.75rem;
	padding: 0.25rem 0;
}

.summary-line span:last-child,
.summary-line strong {
	color: var(--text-color);
	font-weight: 600;
}

.summary-line.total {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text-color);
	margin-top: 1rem;
	padding: 0.75rem;
	border-top: 2px solid var(--primary-color);
	background: linear-gradient(
		135deg,
		rgba(66, 153, 225, 0.1),
		rgba(66, 153, 225, 0.05)
	);
	border-radius: var(--border-radius-sm);
}

.summary-line.total strong {
	color: var(--primary-color);
	text-shadow: 0 2px 4px rgba(66, 153, 225, 0.3);
}

.full-cart-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	gap: 3rem;
}

.full-cart-actions .btn-secondary {
	background: linear-gradient(
		135deg,
		transparent,
		rgba(74, 85, 104, 0.1)
	);
	border: 2px solid var(--secondary-color);
	color: var(--text-muted-color);
	padding: 0.75rem 1.5rem;
	font-size: 0.9rem;
	min-width: 140px;
}
.full-cart-actions .btn-secondary:hover {
	background: linear-gradient(
		135deg,
		var(--secondary-color),
		var(--secondary-hover-color)
	);
	color: white;
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.full-cart-actions .btn-primary {
	font-size: 1rem;
	padding: 0.75rem 1.5rem;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-hover-color)
	);
	box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
	min-width: 140px;
}

.full-cart-actions .btn-primary:hover {
	box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

@media (max-width: 1024px) {
	.main-content {
		display: block;
	}

	.sidebar {
		position: static;
		width: 100%;
		display: flex;
		gap: 2rem;
		margin-bottom: 2rem;
		background-color: var(--surface-color);
		padding: 1.5rem;
		border-radius: var(--border-radius);
		align-items: flex-start;
	}

	.filter-group {
		flex: 1;
		margin-bottom: 0;
		background-color: transparent;
		padding: 0;
	}

	.cart-summary {
		display: none;
	}

	.mobile-cart-btn {
		display: flex;
	}

	.mobile-cart-btn svg {
		width: 32px;
		height: 32	px;
	}

	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.modal-body {
		flex-direction: column;
		align-items: center;
		gap: 1.5rem;
		padding: 2rem;
	}

	.modal-image-gallery {
		width: 90%;
		max-width: 600px;
		height: 400px;
		margin-top: 1.5rem;
	}

	.modal-product-info {
		width: 90%;
		max-width: 600px;
	}

	.modal-product-image {
		height: 400px;
	}

	.full-cart-modal .modal-content {
		width: 95vw;
		max-width: 700px;
		max-height: 80vh;
	}

	.full-cart-item-img {
		aspect-ratio: 1;
		height: 150px;
	}

	.full-cart-actions {
		gap: 1rem;
		padding: 0 2rem;
	}

	.full-cart-actions .btn {
		width: 100%;
		text-align: center;
		min-width: auto;
	}
}

@media (max-width: 600px) {
	.container_2 {
		padding: 0.75rem;
	}

	.site-header h1 {
		font-size: 1.6rem;
	}

	.site-header p {
		font-size: 0.95rem;
		margin-bottom: 1rem;
	}

	.sidebar {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		padding: 0.75rem;
	}

	.product-grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.product-card img {
		height: 250px;
	}

	.product-card-content {
		padding: 0.75rem;
	}

	.product-card h3 {
		font-size: 1rem;
		margin-bottom: 0.4rem;
	}

	.product-card .price {
		font-size: 1.1rem;
		margin-bottom: 0.75rem;
	}

	.btn {
		padding: 0.6rem 1rem;
		font-size: 0.85rem;
	}

	.modal-content {
		width: calc(100% - 1.5rem);
		height: auto;
		max-height: calc(100% - 1.5rem);
		margin-top: 0.75rem;
		margin-bottom: 0.75rem;
		border-radius: var(--border-radius);
		display: flex;
		flex-direction: column;
	}

	.modal-body {
		flex-direction: column;
		gap: 1rem;
		padding: 1rem;
		flex: 1;
		min-height: 0;
		overflow-y: auto;
	}

	.modal-close-btn {
		top: 0.75rem;
		right: 0.75rem;
		background-color: rgba(0, 0, 0, 0.7);
		width: 32px;
		height: 32px;
		font-size: 1.3rem;
	}

	.modal-image-gallery {
		height: 250px;
	}

	.modal-product-info h2 {
		font-size: 1.3rem;
		margin-bottom: 0;
	}

	.modal-product-price {
		font-size: 1.5rem;
	}

	.modal-product-description {
		font-size: 0.9rem;
		padding: 1rem;
	}

	.modal-product-actions {
		flex-direction: column;
		gap: 0.75rem;
		position: sticky;
		bottom: 0;
		background-color: var(--surface-color);
		padding: 1rem;
		border-radius: var(--border-radius) var(--border-radius) 0 0;
		border-top: 2px solid var(--border-color);
		margin: 1rem -1rem -1rem -1rem;
	}

	.modal-product-actions .btn {
		padding: 0.75rem 1.5rem;
		font-size: 0.9rem;
	}

	.full-cart-modal .modal-content {
		width: 100vw;
		height: 100vh;
		max-height: 100vh;
		max-width: 100vw;
		border-radius: 0;
		margin: 0;
	}

	.full-cart-modal .modal-header {
		padding: 1rem 0.75rem;
	}

	.full-cart-modal h2 {
		font-size: 1.3rem;
	}

	.full-cart-modal .modal-close-btn {
		
		right: 1.5rem;
		width: 32px;
		height: 32px;
		font-size: 1.1rem;
	}

	#fullCartItemsContainer {
		padding: 0.75rem;
		margin-top: 2rem;
	}

	.full-cart-item {
		padding: 0.75rem;
		gap: 0.75rem;
	}

	.full-cart-item-img {
		aspect-ratio: 1;
		height: 100px;
	}

	.full-cart-item-content {
		padding-right: 1.5rem;
	}

	.full-cart-item-info h4 {
		font-size: 0.9rem;
		margin-bottom: 0.5rem;
	}

	.full-cart-item-price {
		font-size: 0.75rem;
		margin-bottom: 0.4rem;
	}

	.full-cart-item-line-total {
		font-size: 0.9rem;
	}

	.btn-remove-full {
		width: 32px;
		height: 32px;
		right: 1rem;
		top: 50%;
		transform: translateY(-50%);
	}

	.btn-remove-full svg {
		width: 12px;
		height: 12px;
	}

	.full-cart-summary {
		padding: 1rem 0.75rem;
	}

	.summary-line {
		font-size: 0.9rem;
		margin-bottom: 0.5rem;
	}

	.summary-line.total {
		font-size: 1.1rem;
		padding: 0.75rem;
	}

	.full-cart-actions {
		margin-bottom: -1.5rem;
		gap: 0.75rem;
		position: sticky;
		bottom: 0;
		background: linear-gradient(135deg, var(--surface-color), #374151);
		padding: 1rem 1rem;
		border-top: 2px solid var(--border-color);
	}

	.full-cart-actions .btn {
		padding: 0.75rem 1.5rem;
		font-size: 0.9rem;
		min-width: auto;
	}

	.qty-btn {
		width: 26px;
		height: 26px;
		font-size: 0.8rem;
	}

	.qty-btn svg {
		width: 10px;
		height: 10px;
	}

	.item-quantity {
		min-width: 28px;
		font-size: 0.8rem;
		line-height: 26px;
		padding: 0 0.4rem;
	}

	.mobile-cart-btn {
		width: 70px;
		height: 70px;
		bottom: 1rem;
		right: 1rem;
	}

	.mobile-cart-btn svg {
		width: 32px;
		height: 32px;
	}

	.cart-item-count {
		width: 20px;
		height: 20px;
		font-size: 0.65rem;
		top: -2px;
		right: -2px;
		border-width: 2px;
	}

	.site-footer-features {
		flex-direction: column;
		gap: 1rem;
		padding: 1rem;
	}

	.toast {
		bottom: 80px;
		padding: 0.6rem 1.2rem;
		font-size: 0.8rem;
		left: 0.75rem;
		right: 0.75rem;
		transform: none;
		width: auto;
		border-radius: var(--border-radius-sm);
	}

	.toast.show {
		transform: translateY(-5px);
	}
}

@media (max-width: 400px) {
	.container_2 {
		padding: 0.5rem;
	}

	.site-header h1 {
		font-size: 1.4rem;
	}

	.full-cart-item-img {
		width: 30%;
		height: 50px;
	}

	.full-cart-item-info h4 {
		font-size: 0.85rem;
	}

	.full-cart-item-price {
		font-size: 0.7rem;
	}

	.full-cart-item-line-total {
		font-size: 0.85rem;
	}

	.btn-remove-full {
		width: 22px;
		height: 22px;
	}

	.btn-remove-full svg {
		width: 10px;
		height: 10px;
	}

	.qty-btn {
		width: 24px;
		height: 24px;
		font-size: 0.7rem;
	}

	.qty-btn svg {
		width: 8px;
		height: 8px;
	}

	.item-quantity {
		min-width: 24px;
		font-size: 0.75rem;
		line-height: 24px;
		padding: 0 0.3rem;
	}

	.mobile-cart-btn {
		width: 60px;
		height: 60px;
		bottom: 0.75rem;
		right: 0.75rem;
	}

	.mobile-cart-btn svg {
		width: 32px;
		height: 32px;
	}

	.cart-item-count {
		width: 18px;
		height: 18px;
		font-size: 0.6rem;
	}

	.full-cart-modal h2 {
		font-size: 1.2rem;
	}
}

#fullCartItemsContainer::-webkit-scrollbar,
#cartItems::-webkit-scrollbar {
	width: 6px;
}

#fullCartItemsContainer::-webkit-scrollbar-track,
#cartItems::-webkit-scrollbar-track {
	background: var(--bg-color);
	border-radius: 3px;
}

#fullCartItemsContainer::-webkit-scrollbar-thumb,
#cartItems::-webkit-scrollbar-thumb {
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-hover-color)
	);
	border-radius: 3px;
}

#fullCartItemsContainer::-webkit-scrollbar-thumb:hover,
#cartItems::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(
		135deg,
		var(--primary-hover-color),
		var(--primary-color)
	);
}

.site-footer-bottom {
	padding: 2rem;
	text-align: center;
	color: var(--text-muted-color);
	font-size: 0.9rem;
}

.site-footer-bottom p {
	margin: 0.25rem 0;
}

@media (max-width: 1024px) {
	.site-footer-features {
		gap: 2rem;
		padding: 1.5rem;
	}
}

@media (max-width: 768px) {
	.site-footer-features {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
		padding: 1.5rem;
	}

	.feature-item {
		flex-direction: row;
		text-align: left;
		width: 100%;
		max-width: none;
		gap: 1.5rem;
	}

	.feature-icon {
		font-size: 2.2rem;
		margin-bottom: 0;
	}

	.feature-item-text {
		flex: 1;
	}

	.feature-item h4 {
		font-size: 0.95rem;
	}

	.site-footer-bottom {
		padding: 1.5rem 1rem;
		font-size: 0.85rem;
	}
}
/* --- Stylizacja i Animacja Menu Mobilnego --- */

/* 1. Przycisk "Burger" */
#mobileMenuToggle {
	width: 40px;
	height: 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	padding: 8px;
	background: none;
	border: none;
	cursor: pointer;
	position: relative; /* Ważne dla pozycjonowania linii */
}

/* Linie wewnątrz burgera */
#mobileMenuToggle span {
	display: block;
	width: 100%;
	height: 3px;
	background-color: #cbd5e1; /* Kolor linii (slate-300) */
	border-radius: 2px;
	transition:
		transform 0.3s ease-in-out,
		opacity 0.3s ease-in-out;
}

/* 2. Animacja Burgera do "X" (stan aktywny) */
#mobileMenuToggle.active span:nth-child(1) {
	/* Górna linia: przesuń i obróć */
	transform: translateY(8px) rotate(45deg);
}

#mobileMenuToggle.active span:nth-child(2) {
	/* Środkowa linia: zniknij */
	opacity: 0;
}

#mobileMenuToggle.active span:nth-child(3) {
	/* Dolna linia: przesuń i obróć */
	transform: translateY(-8px) rotate(-45deg);
}

/* 3. Panel Menu i Animacja Wysuwania */
#mobileMenu {
	/* Stan początkowy (ukryty) */
	opacity: 0;
	transform: translateY(-20px);
	visibility: hidden;
	pointer-events: none;
	transition:
		transform 0.3s ease-out,
		opacity 0.3s ease-out,
		visibility 0.3s;
}

/* Stan aktywny (widoczny) - dodawany przez JS */
#mobileMenu.active {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
	pointer-events: auto;
}