* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

nav {
    margin-top: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    margin: 0 10px;
    display: inline-block;
    transition: all 0.3s;
}

nav a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.search-box {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.search-box form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-box input[type="text"],
.search-box select {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
}

.search-box button,
.btn-reset {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.search-box button:hover,
.btn-reset:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.stats {
    padding: 20px 30px;
    background: #fff3cd;
    border-bottom: 2px solid #ffc107;
}

.slevy-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.sleva-badge {
    padding: 8px 15px;
    background: #e9ecef;
    border-radius: 20px;
    font-weight: bold;
}

.sleva-badge.sleva-aktivni {
    background: #28a745;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.products {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.results-count {
    grid-column: 1 / -1;
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 20px;
    color: #dc3545;
    padding: 40px;
}

.product-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
    background: white;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

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

.product-number {
    background: #667eea;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.product-group {
    background: #6c757d;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.product-card h3 {
    margin: 15px 0;
    color: #212529;
    font-size: 18px;
}

.product-info {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.product-info span {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.product-price {
    margin: 15px 0;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    margin-right: 10px;
}

.sale-price {
    color: #dc3545;
    font-size: 24px;
    font-weight: bold;
}

.price {
    color: #28a745;
    font-size: 24px;
    font-weight: bold;
}

.product-total {
    background: #e7f3ff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 15px;
}

/* Admin styles */
.login-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.hint {
    text-align: center;
    color: #6c757d;
    margin-top: 15px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.admin-content {
    padding: 30px;
}

.slevy-table,
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.slevy-table th,
.slevy-table td,
.stats-table th,
.stats-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.slevy-table th,
.stats-table th {
    background: #667eea;
    color: white;
}

.slevy-table input {
    width: 100px;
    padding: 8px;
    border: 2px solid #dee2e6;
    border-radius: 5px;
}

.btn-save {
    padding: 15px 40px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 20px;
}

.btn-save:hover {
    background: #218838;
}

.statistiky {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.badge {
    background: #667eea;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Akce produktu */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-detail {
    flex: 1;
    padding: 10px;
    background: #667eea;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-detail:hover {
    background: #5568d3;
}

.btn-add-cart {
    flex: 1;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: #218838;
}

/* Košík styly */
.cart-content {
    padding: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.cart-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.btn-remove {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
}

.btn-remove:hover {
    text-decoration: underline;
}

.cart-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-update {
    padding: 12px 30px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-checkout {
    padding: 12px 30px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.empty-cart {
    text-align: center;
    padding: 50px;
    font-size: 20px;
    color: #6c757d;
}

/* Login/registrace */
.login-container {
    padding: 30px;
}

.login-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-box h2 {
    margin-bottom: 20px;
    color: #667eea;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    font-size: 16px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

/* Detail produktu */
.product-detail {
    padding: 30px;
}

.detail-info {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.detail-badges {
    margin: 20px 0;
}

.badge-number,
.badge-group {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.badge-number {
    background: #667eea;
    color: white;
}

.badge-group {
    background: #6c757d;
    color: white;
}

.detail-specs {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.detail-specs p {
    margin: 10px 0;
    font-size: 18px;
}

.detail-price {
    margin: 30px 0;
    font-size: 28px;
}

.add-to-cart-form {
    margin-top: 30px;
}

.add-to-cart-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.add-to-cart-form input[type="number"] {
    width: 100px;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    font-size: 18px;
    margin-right: 15px;
}

.add-to-cart-form button {
    padding: 15px 40px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
}

/* Oprava products gridu */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    position: relative;
}

.pagination-wrapper {
    grid-column: 1 / -1;
    width: 100%;
}

