* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

.cart-icon {
    font-size: 1.5rem;
    position: relative;
    text-decoration: none;
}

#cart-count {
    background-color: #ff4757;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    font-size: 0.8rem;
    position: absolute;
    top: -10px;
    right: -10px;
}

main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
}

.categories {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 25px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-btn.active {
    background-color: #ff4757;
    color: white;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.food-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.food-card:hover {
    transform: translateY(-5px);
}

.food-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.food-info {
    padding: 1.5rem;
}

.food-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.food-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.add-to-cart {
    background-color: #ff4757;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.add-to-cart:hover {
    background-color: #ff2e43;
}

/* Košík stránka */
.cart-page {
    max-width: 800px;
    margin: 0 auto;
}

.cart-container {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cart-item-info p {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-controls button {
    background-color: #f8f9fa;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-item-price {
    text-align: right;
}

.remove-btn {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    margin-top: 0.5rem;
}

.cart-summary {
    margin-top: 2rem;
    text-align: right;
}

.order-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: 500;
}

.empty-cart {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2ecc71;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 300px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
    text-align: center;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    position: relative;
    margin-top: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus {
    border-color: #ff4757;
    outline: none;
    background-color: white;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: -0.8rem;
    font-size: 0.9rem;
    color: #666;
    padding: 0 0.5rem;
    background-color: white;
    transition: all 0.3s ease;
}

.form-group input:focus + label {
    color: #ff4757;
}

.order-form button {
    background-color: #ff4757;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.order-form button:hover {
    background-color: #ff2e43;
}

/* Vylepšená hláška o dokončení objednávky */
#success-modal .modal-content {
    text-align: center;
    padding: 3rem 2rem;
}

#success-modal h2 {
    color: #2ecc71;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

#success-modal p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

#success-modal button {
    background-color: #2ecc71;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#success-modal button:hover {
    background-color: #27ae60;
}

/* Stránkování */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.pagination button {
    padding: 0.8rem 1.2rem;
    border: none;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pagination button.active {
    background-color: #ff4757;
    color: white;
}

.pagination button:hover:not(.active) {
    background-color: #f8f9fa;
}

.pagination button:disabled {
    background-color: #e1e1e1;
    cursor: not-allowed;
    color: #999;
}

.page-info {
    color: #666;
    margin: 0 1rem;
}

/* Responzivní design */
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .cart-item-controls, .cart-item-price {
        grid-column: 2;
    }

    .categories {
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .category-btn {
        white-space: nowrap;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 40px;
    width: auto;
}

/* Loading animace */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff4757;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Skrytí obsahu během načítání */
.food-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

footer {
    background-color: #f8f9fa;
    padding: 1rem 2rem;
    text-align: center;
    border-top: 1px solid #e1e1e1;
    margin-top: auto;
}

footer a {
    color: #ff4757;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

/* Přidání stylů pro detail jídla */
.food-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.food-detail-content {
    position: relative;
    background-color: white;
    margin: 2rem auto;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.food-detail-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.food-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.food-detail-info {
    margin-bottom: 2rem;
}

.food-detail-info h2 {
    color: #333;
    margin-bottom: 1rem;
}

.food-detail-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.food-detail-price {
    font-size: 1.5rem;
    color: #ff4757;
    font-weight: 600;
    margin: 1rem 0;
}

.food-detail-ingredients {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.food-detail-ingredients h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.food-detail-ingredients ul {
    list-style: none;
    padding: 0;
}

.food-detail-ingredients li {
    color: #666;
    padding: 0.3rem 0;
}

.food-detail-button {
    background-color: #ff4757;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.food-detail-button:hover {
    background-color: #ff2e43;
}

@media (max-width: 768px) {
    .food-detail-content {
        margin: 1rem auto;
        padding: 1.5rem;
        width: 95%;
    }
}

#food-detail-container {
    padding-bottom: 1rem;
}

.search-container {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#search-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
}

.search-button {
    padding: 0.7rem 1.5rem;
    background-color: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #ff2e43;
}

/* Styl pro potvrzovací dialog */
.confirm-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    text-align: center;
}

.confirm-dialog-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-dialog-buttons button {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.confirm-dialog-buttons button.confirm {
    background-color: #ff4757;
    color: white;
}

.confirm-dialog-buttons button.cancel {
    background-color: #e1e1e1;
}

.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
} 