/* ========================================
   VOZY - SPOLEČNÉ STYLY S DILY.PHP
   ======================================== */

/* Top/Bottom borders */
.top-link {
	padding-top: 20px; 
	/* border-top: 1px solid dimgray; */
}

.bottom-link {
	padding-top: 20px; 
	border-bottom: 1px solid gray;
}

.bottom-link-2 {
	padding-top: 30px; 
	border-bottom: 1px solid lightgray;
}

/* Grid layout - STEJNÝ JAKO U DÍLŮ */
.grid { 
	display: flex; 
	flex-wrap: wrap; 
	gap: 20px; 
	justify-content: center;
	margin-top: 40px; 
}

/* ========================================
   VOZY - FILTRY (SHODNÉ S DILY.PHP)
   ======================================== */

.filters {
	max-width: 900px;
	margin: 0 auto;
	margin-top: 20px;
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.filters .row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.filters-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.filters select,
.filters input {
	padding: 8px;
	font-size: 14px;
	flex: 1;
	min-width: 150px;
}

.results-count {
	font-weight: bold;
	padding: 8px 12px;
	background: transparent;
	border: 1px solid #000;
	border-radius: 4px;
}

.results-count.loading {
	opacity: 0.7;
}

.results-placeholder {
	color: rgba(255, 255, 255, 0.6);
	font-style: italic;
}

.clear-btn {
	padding: 8px 12px;
	background: #eee;
	border: 1px solid #ccc;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.2s;
}

.clear-btn:hover {
	background: #ddd;
}

/* ========================================
   VOZY - STRÁNKOVÁNÍ (SHODNÉ S DILY.PHP)
   ======================================== */

.pagination {
	margin-top: 20px;
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	color: white;
}

.pagination button {
	padding: 8px 14px; 
	border: none; 
	background: #2a4d8f; 
	color: white;
	border-radius: 6px; 
	cursor: pointer;
	font-size: 1rem;
	min-width: 120px;
}

.pagination button:hover {
	background: #1e3a6f;
}

.pagination button[disabled] {
	opacity: 0.3;
	pointer-events: none;
	cursor: default;
}

.strInfo {
	padding: 0 1rem;
}

.strInfo.black {
	color: #000;
}

/* ========================================
   VOZY - KARTY VOZŮ (260px JAKO DÍLY)
   ======================================== */

.karta-vuz {
	position: relative;
	background: white; 
	width: 260px; /* ← STEJNÁ ŠÍŘKA JAKO DÍLY */
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.25s ease;
	display: flex;
	flex-direction: column;
}

.karta-vuz:hover {
	box-shadow:
		0 4px 8px rgba(0,0,0,0.08),
		0 12px 28px rgba(0,0,0,0.12);
	transform: translateY(-4px);
}

/* Počet fotek badge */
.karta-vuz-photos {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 0.4rem 0.75rem;
	border-radius: 20px;
	font-size: 0.85em;
	z-index: 3;
	backdrop-filter: blur(4px);
}

/* Obrázek vozu */
.karta-vuz-image {
	position: relative;
	width: 100%;
	height: 160px; /* ← STEJNÁ VÝŠKA JAKO U DÍLŮ */
	overflow: hidden;
	background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
	cursor: pointer;
}

.karta-vuz-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #ddd;
	transition: transform 0.5s ease;
}

.karta-vuz:hover .karta-vuz-image img {
	transform: scale(1.08);
}

/* Zoom overlay při hoveru */
.karta-vuz-zoom-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	backdrop-filter: blur(4px);
	z-index: 2;
}

.karta-vuz-image:hover .karta-vuz-zoom-overlay {
	opacity: 1;
}

.zoom-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem;
	text-align: center;
}

.zoom-icon {
	font-size: 3em;
	color: #fff;
	animation: pulse 2s ease-in-out infinite;
	line-height: 1;
}

.zoom-text {
	color: #fff;
	font-size: 0.95em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	line-height: 1.3;
	white-space: nowrap;
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.15);
	}
}

/* Obsah karty */
.karta-vuz-content { 
	padding: 15px;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 200px; /* ← STEJNÁ VÝŠKA JAKO U DÍLŮ */
}

.karta-vuz-brand {
	font-size: 1rem; 
	font-weight: 600; 
	margin-bottom: 4px;
	line-height: 1.2;
	color: #333;
}

.karta-vuz-model {
	font-size: 0.9rem; 
	color: #666; 
	margin-bottom: 4px;
}

.karta-dil-designation {
	font-size: 0.85em;
	color: #888;
	font-style: italic;
	margin-bottom: 8px;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.karta-id {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.cislo-dilu {
	text-align: right;
	font-size: 0.85em;
	color: #999;
}

/* Specifikace vozu */
.karta-vuz-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: auto;
}

.karta-vuz-spec {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	background: #f5f5f5;
	padding: 0.3rem 0.6rem;
	border-radius: 12px;
	font-size: 0.8em;
	color: #555;
	line-height: 1.2;
}

.karta-vuz-spec .spec-icon {
	font-size: 0.9em;
	flex-shrink: 0;
}

/* Patička karty s tlačítkem */
.karta-vuz-footer {
	padding: 15px;
	background: #fafafa;
	border-top: 1px solid #eee;
}

.btn-request {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 10px 12px;
	background: #2a4d8f;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.95em;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-request:hover {
	background: #1e3a6f;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(42, 77, 143, 0.3);
}

/* ========================================
   VOZY - FLIP ANIMACE (SHODNÁ S DILY.PHP)
   ======================================== */

.karta-vuz.animate-on-scroll {
	opacity: 0;
	visibility: visible;
	transform: rotateY(-180deg);
}

.karta-vuz.animate-on-scroll.flip-in {
	animation: flip-in-animation 0.8s ease-out forwards;
	animation-delay: var(--flip-delay, 0s);
}

@keyframes flip-in-animation {
	0% {
		opacity: 0;
		transform: rotateY(-180deg);
	}
	100% {
		opacity: 1;
		visibility: visible;
		transform: rotateY(0deg);
	}
}

/* ========================================
   VOZY - LOADING SPINNER
   ======================================== */

.parts-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 4rem 2rem;
	min-height: 400px;
}

.parts-loading-spinner {
	width: 60px;
	height: 60px;
	border: 4px solid rgba(255, 255, 255, 0.1);
	border-top-color: #007bff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.parts-loading-text {
	margin-top: 1.5rem;
	font-size: 1.1rem;
	color: #fff;
	opacity: 0.8;
}

.parts-fade-in {
	animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   VOZY - ŽÁDNÉ VÝSLEDKY
   ======================================== */

.vozy-no-results {
	grid-column: 1 / -1;
	width: 100%;
	text-align: center;
	padding: 4rem 2rem;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	color: #fff;
}

.vozy-no-results-icon {
	font-size: 4em;
	margin-bottom: 1rem;
	opacity: 0.5;
}

.vozy-no-results h3 {
	color: #fff;
	margin-bottom: 0.5rem;
}

.vozy-no-results p {
	color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   PHOTOSWIPE GALERIE
   ======================================== */

.pswp {
	--pswp-bg: rgba(0, 0, 0, 0.95);
	--pswp-icon-color: #fff;
	--pswp-icon-color-secondary: #4caf50;
	z-index: 9999;
}

.pswp__button {
	background: rgba(255, 255, 255, 0.1) !important;
	backdrop-filter: blur(10px);
	border-radius: 8px !important;
	transition: all 0.3s ease !important;
}

.pswp__button:hover {
	background: rgba(255, 255, 255, 0.25) !important;
	transform: scale(1.1);
}

.pswp__counter {
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(10px);
	padding: 10px 18px;
	border-radius: 25px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
}

/* Custom Caption Styling - PhotoSwipe 5 */
.pswp__custom-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	padding: 0 20px 30px 20px;
	pointer-events: none;
	z-index: 10;
}

.pswp__custom-caption-content {
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(15px);
	padding: 12px 25px;
	border-radius: 30px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	text-align: center;
	max-width: 90%;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	line-height: 1.4;
	animation: fadeInUp 0.3s ease-out;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========================================
   MODÁLNÍ OKNA
   ======================================== */

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	padding: 1rem;
	box-sizing: border-box;
	overflow-y: auto;
}

.modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.modal-container {
	background: #f5f5f5;
	border-radius: 15px;
	max-width: 700px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	padding: 2rem;
	box-shadow: 0 10px 40px rgba(0,0,0,0.3);
	animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
	from {
		transform: translateY(-30px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 40px;
	height: 40px;
	border: none;
	background: #e74c3c;
	color: white;
	font-size: 1.5em;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.3s ease;
	z-index: 10;
}

.modal-close:hover {
	background: #c0392b;
}

.modal-header-badge {
	display: inline-block;
	background: #2a4d8f;
	color: #fff;
	padding: 0.5rem 1.5rem;
	border-radius: 25px;
	font-weight: bold;
	font-size: 1.1em;
	margin-bottom: 1.5rem;
}

.modal-title {
	text-align: center;
	margin-bottom: 1.5rem;
	color: #333;
}

.modal-footer {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #ddd;
}

/* Formulář */
.form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.form-group {
	text-align: left;
}

.form-group-full {
	grid-column: 1 / -1;
}

.form-group label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 500;
	color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 0.75rem;
	border: 2px solid #ddd;
	border-radius: 8px;
	font-size: 1em;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #2a4d8f;
}

.form-group input.field-valid,
.form-group select.field-valid,
.form-group textarea.field-valid {
	border-color: #4caf50;
}

.form-group input.field-invalid,
.form-group select.field-invalid,
.form-group textarea.field-invalid {
	border-color: #e74c3c;
}

.field-status {
	display: block;
	font-size: 0.85em;
	margin-top: 0.3rem;
	min-height: 1.2em;
}

.field-status.status-ok {
	color: #4caf50;
}

.field-status.status-ok::before {
	content: "✓ ";
}

.field-status.status-error {
	color: #e74c3c;
}

.field-status.status-error::before {
	content: "✗ ";
}

.btn-cancel {
	background: #95a5a6;
	color: white;
	border: none;
	padding: 0.75rem 2rem;
	border-radius: 8px;
	font-size: 1em;
	cursor: pointer;
	transition: background 0.3s ease;
}

.btn-cancel:hover {
	background: #7f8c8d;
}

.btn-submit {
	background: #2a4d8f;
	color: white;
	border: none;
	padding: 0.75rem 2rem;
	border-radius: 8px;
	font-size: 1em;
	cursor: pointer;
	transition: background 0.3s ease;
}

.btn-submit:hover {
	background: #1e3a6f;
}

/* Success modal */
.modal-success-container {
	max-width: 400px;
	text-align: center;
	padding: 3rem 2rem;
}

.success-icon {
	width: 80px;
	height: 80px;
	background: #4caf50;
	color: white;
	font-size: 3em;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}

.btn-success-ok {
	background: #4caf50;
	color: white;
	border: none;
	padding: 1rem 3rem;
	border-radius: 8px;
	font-size: 1.1em;
	cursor: pointer;
	transition: background 0.3s ease;
}

.btn-success-ok:hover {
	background: #43a047;
}

/* ========================================
   PRODANÉ DÍLY
   ======================================== */

.sold-parts-section {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 2px solid #e0e0e0;
}

.sold-parts-title {
	color: #333;
	font-size: 1.1em;
	margin-bottom: 0.4rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.sold-parts-list {
	background: #f9f9f9;
	border-radius: 10px;
	padding: 0.75rem;
	max-height: 350px;
	overflow-y: auto;
}

.sold-parts-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sold-part-item {
	display: grid;
	grid-template-columns: 2fr auto auto auto;
	gap: 0.5rem;
	align-items: center;
	padding: 0.6rem 0.8rem;
	margin-bottom: 0.5rem;
	background: white;
	border-radius: 8px;
	border-left: 4px solid #3498db;
	transition: all 0.3s ease;
	font-size: 0.9em;
}

.sold-part-item:hover {
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
	transform: translateX(4px);
}

.sold-part-item:last-child {
	margin-bottom: 0;
}

.sold-part-name {
	color: #555;
	font-size: 0.95em;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
	font-weight: 500;
}

.sold-part-category {
	padding: 0.2rem 0.6rem;
	border-radius: 12px;
	font-size: 0.75em;
	font-weight: 600;
	background: #ecf0f1;
	color: #7f8c8d;
	white-space: nowrap;
}

.sold-part-status {
	padding: 0.25rem 0.6rem;
	border-radius: 12px;
	font-size: 0.7em;
	font-weight: 700;
	text-transform: uppercase;
	white-space: nowrap;
	letter-spacing: 0.5px;
}

.sold-part-status-sold {
	background: #e74c3c;
	color: white;
}

.sold-part-status-available {
	background: #27ae60;
	color: white;
}

.sold-part-status-reserved {
	background: #f39c12;
	color: white;
}

.sold-part-status-returned_ok {
	background: #3498db;
	color: white;
}

.sold-part-status-returned_bad {
	background: #9b59b6;
	color: white;
}

.sold-part-status-scrap {
	background: #95a5a6;
	color: white;
}

.sold-part-id {
	padding: 0.25rem 0.7rem;
	background: #ecf0f1;
	border-radius: 12px;
	font-size: 0.75em;
	font-weight: 600;
	color: #34495e;
	white-space: nowrap;
	font-family: 'Courier New', monospace;
}

.sold-part-price {
	padding: 0.25rem 0.7rem;
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 12px;
	font-size: 0.75em;
	font-weight: 700;
	color: #155724;
	white-space: nowrap;
}

.no-sold-parts {
	text-align: center;
	color: #4caf50;
	padding: 1.5rem;
	font-size: 0.95em;
	font-weight: 500;
}

.error-sold-parts {
	text-align: center;
	color: #e74c3c;
	padding: 1rem;
	font-size: 0.9em;
}

.loading {
	text-align: center;
	color: #888;
	padding: 1rem;
	font-size: 0.9em;
}

.sold-parts-list::-webkit-scrollbar {
	width: 8px;
}

.sold-parts-list::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.sold-parts-list::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 10px;
}

.sold-parts-list::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* ========================================
   RESPONZIVNÍ DESIGN
   ======================================== */

@media (max-width: 768px) {
	.filters .row {
		flex-direction: column;
	}
	
	.filters select,
	.filters input {
		width: 100%;
		min-width: unset;
	}
	
	.filters-footer {
		flex-direction: column;
		gap: 10px;
		align-items: stretch;
	}
	
	.results-count,
	.clear-btn {
		width: 100%;
		text-align: center;
	}
	
	.form-grid {
		grid-template-columns: 1fr;
	}
	
	.sold-part-item {
		grid-template-columns: 1fr;
		gap: 0.4rem;
		padding: 0.7rem;
	}
	
	.sold-part-name {
		font-size: 0.9em;
		white-space: normal;
		margin-bottom: 0.3rem;
	}
	
	.sold-part-category,
	.sold-part-status,
	.sold-part-id,
	.sold-part-price {
		font-size: 0.7em;
		justify-self: start;
	}
	
	.pswp__counter {
		font-size: 13px;
		padding: 8px 14px;
	}
	
	.pswp__custom-caption {
		padding: 0 15px 20px 15px;
	}
	
	.pswp__custom-caption-content {
		font-size: 13px;
		padding: 10px 18px;
		max-width: 95%;
	}
}

@media (max-width: 600px) {
	.grid {
		justify-content: center;
	}
	
	.karta-vuz {
		width: 100%;
		max-width: 320px;
	}
	
	.zoom-text {
		font-size: 0.8em;
	}
	
	.zoom-icon {
		font-size: 2.5em;
	}
	
	.sold-parts-list {
		padding: 0.5rem;
		max-height: 250px;
	}
	
	.sold-part-item {
		padding: 0.5rem;
		gap: 0.3rem;
	}
}

@media (max-width: 1024px) and (min-width: 769px) {
	.pswp__custom-caption {
		padding: 0 20px 25px 20px;
	}
	
	.pswp__custom-caption-content {
		font-size: 14px;
	}
}

/* ========================================
   PRODANÉ DÍLY - TEXT REŽIM S BAREVNÝM BADGE
   ======================================== */

.sold-parts-text-with-badge {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.85em;
	color: #999;
	margin-bottom: 0.75rem;
	padding: 0 0.5rem;
}

.sold-parts-number-badge {
	min-width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	font-size: 0.85em;
	font-weight: 700;
	color: white;
	padding: 0 6px;
	flex-shrink: 0;
}

.sold-parts-header {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 0.8em;
	margin-top: -5px;
	margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgb(238, 238, 238);
}

.sold-parts-label {
	font-size: 1em;
	font-weight: 400;
	color: #999;
	line-height: 1.3;
}

/* Barevné varianty badge v textovém režimu */
.sold-parts-number-badge.sold-green {
	background: #27ae60;
}

.sold-parts-number-badge.sold-blue {
	background: #3498db;
}

.sold-parts-number-badge.sold-orange {
	background: #f39c12;
}

.sold-parts-number-badge.sold-red {
	background: #e74c3c;
}

.sold-parts-number-badge.shop-badge {
	background: #999;
}

.sold-parts-separator {
	color: #888;
	font-weight: 300;
	margin: 0 0.1rem;
	flex-shrink: 0;
}

/* ========================================
   RESPONZIVNÍ ÚPRAVY
   ======================================== */

@media (max-width: 600px) {
	.btn-request-with-badge {
		padding-right: 3rem !important;
	}
	
	.sold-parts-badge {
		right: 8px;
		min-width: 24px;
		height: 24px;
		font-size: 0.75em;
	}
	
	.sold-parts-text-with-badge {
		gap: 0.4rem;
		padding: 0 0.3rem;
		font-size: 0.8em;
	}
	
	.sold-parts-number-badge {
		min-width: 20px;
		height: 20px;
		font-size: 0.8em;
	}
}

/* ========================================
   ADMIN MODE - PhotoSwipe Primary Button
   ======================================== */

.pswp__button--admin-primary-button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	color: white !important;
	padding: 10px 20px !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	margin-right: 10px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
	height: auto !important;
	width: auto !important;
}

.pswp__button--admin-primary-button:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6) !important;
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

.pswp__button--admin-primary-button:active {
	transform: translateY(0) !important;
}

.pswp__button-text {
	font-size: 14px;
	font-weight: 600;
}

/* Toast notifikace */
.toast {
	position: fixed;
	bottom: 30px;
	right: 30px;
	padding: 16px 24px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 500;
	color: white;
	z-index: 999999;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
}

.toast-show {
	opacity: 1;
	transform: translateY(0);
}

.toast-success {
	background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.toast-error {
	background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}

.toast-info {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ========================================
   DÍLY V E-SHOPU - SEKCE V POPTÁVKOVÉM FORMULÁŘI
   ======================================== */

.shop-parts-section {
margin-top: 1.5rem;
padding-top: 1.5rem;
border-top: 2px solid #c8e6c9;
}

.shop-parts-title {
color: #2e7d32;
font-size: 1.1em;
margin-bottom: 0.4rem;
display: flex;
align-items: center;
gap: 0.5rem;
}

.shop-parts-subtitle {
font-size: 0.85em;
color: #555;
margin: 0 0 0.75rem;
}

.shop-parts-list {
background: #f1f8e9;
border-radius: 10px;
padding: 0.75rem;
max-height: 280px;
overflow-y: auto;
}

.shop-parts-items {
list-style: none;
margin: 0;
padding: 0;
}

.shop-part-item {
display: grid;
grid-template-columns: 2fr 1fr auto auto;
gap: 0.4rem;
align-items: center;
padding: 0.5rem 0.75rem;
margin-bottom: 0.4rem;
background: white;
border-radius: 8px;
border-left: 4px solid #43a047;
font-size: 0.875em;
transition: box-shadow 0.2s ease;
}

.shop-part-item:hover {
box-shadow: 0 2px 8px rgba(67, 160, 71, 0.2);
}

.shop-part-item:last-child {
margin-bottom: 0;
}

.shop-part-name {
color: #333;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}

.shop-part-type {
padding: 0.2rem 0.5rem;
background: #e8f5e9;
color: #2e7d32;
border-radius: 10px;
font-size: 0.78em;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.shop-part-price {
padding: 0.2rem 0.5rem;
background: #d4edda;
border: 1px solid #c3e6cb;
border-radius: 10px;
font-size: 0.78em;
font-weight: 700;
color: #155724;
white-space: nowrap;
}

.shop-part-link {
padding: 0.2rem 0.6rem;
background: #2e7d32;
color: white;
border-radius: 10px;
font-size: 0.78em;
font-weight: 600;
text-decoration: none;
white-space: nowrap;
transition: background 0.2s ease;
}

.shop-part-link:hover {
background: #1b5e20;
color: white;
}

.no-shop-parts {
text-align: center;
color: #666;
padding: 1.2rem;
font-size: 0.9em;
}

.shop-parts-list::-webkit-scrollbar {
width: 7px;
}

.shop-parts-list::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 10px;
}

.shop-parts-list::-webkit-scrollbar-thumb {
background: #a5d6a7;
border-radius: 10px;
}

.shop-parts-list::-webkit-scrollbar-thumb:hover {
background: #66bb6a;
}

@media (max-width: 500px) {
.shop-part-item {
grid-template-columns: 1fr auto;
grid-template-rows: auto auto;
}

.shop-part-name {
grid-column: 1 / -1;
}
}

/* ========================================
   PRODANÉ DÍLY – červené (nedostupné) varianty
   Odpovídá layoutu .shop-part-item, ale v červených tónech
   ======================================== */

.sold-parts-items--red {
list-style: none;
margin: 0;
padding: 0;
}

.sold-part-item--red {
display: grid;
grid-template-columns: 2fr 1fr auto auto;
gap: 0.4rem;
align-items: center;
padding: 0.5rem 0.75rem;
margin-bottom: 0.4rem;
background: #fff5f5;
border-radius: 8px;
border-left: 4px solid #c0392b;
font-size: 0.875em;
transition: box-shadow 0.2s ease;
}

.sold-part-item--red:hover {
box-shadow: 0 2px 8px rgba(192, 57, 43, 0.2);
}

.sold-part-item--red:last-child {
margin-bottom: 0;
}

.sold-part-name--red {
color: #7b1010;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}

.sold-part-type--red {
padding: 0.2rem 0.5rem;
background: #fde8e8;
color: #922b21;
border-radius: 10px;
font-size: 0.78em;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.sold-part-price--red {
padding: 0.2rem 0.5rem;
background: #fadbd8;
border: 1px solid #f1948a;
border-radius: 10px;
font-size: 0.78em;
font-weight: 700;
color: #922b21;
white-space: nowrap;
}

.sold-part-id--red {
padding: 0.2rem 0.6rem;
background: #fde8e8;
border-radius: 10px;
font-size: 0.75em;
font-weight: 600;
color: #922b21;
white-space: nowrap;
font-family: 'Courier New', monospace;
}

@media (max-width: 500px) {
.sold-part-item--red {
grid-template-columns: 1fr auto;
grid-template-rows: auto auto;
}

.sold-part-name--red {
grid-column: 1 / -1;
}
}
