/* Általános stílusok */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigáció */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-logo {
    height: 60px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* Kosár ikon és jelzés */
.nav-link .fa-shopping-cart {
    position: relative;
    font-size: 1.2rem;
    margin-right: 5px;
}

.nav-link .badge {
    position: relative;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 2px;
}

/* Termék kártyák */
.product-card {
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

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

.product-card img {
    height: 200px;
    object-fit: cover;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.product-sale-price {
    color: var(--danger-color);
    text-decoration: line-through;
    font-size: 0.9rem;
}

/* Kosár */
.cart-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    max-width: 100px;
    height: auto;
}

/* Űrlapok */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Gombok */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Lábléc */
footer {
    background-color: var(--light-color);
    padding: 40px 0;
    margin-top: 60px;
}

footer a {
    color: var(--dark-color);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 15px;
}

/* Reszponzív */
@media (max-width: 768px) {
    .product-card img {
        height: 150px;
    }
    
    .cart-item img {
        max-width: 80px;
    }
}

/* Animációk */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Értesítések */
.alert {
    border-radius: 0;
    margin-bottom: 0;
}

/* Keresés */
.search-form {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

/* Termék értékelések */
.rating {
    color: var(--warning-color);
}

/* Admin panel */
.admin-sidebar {
    background-color: var(--dark-color);
    min-height: calc(100vh - 56px);
    padding-top: 20px;
}

.admin-sidebar .nav-link {
    color: white;
    padding: 10px 20px;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
}

/* Táblázatok */
.table-responsive {
    margin-bottom: 20px;
}

.table th {
    background-color: var(--light-color);
}

/* Pagination */
.pagination {
    margin-top: 20px;
}

.page-link {
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Cookie értesítés */
.cookie-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cookie-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    margin: 1rem;
    position: relative;
}

.cookie-icon {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 1rem;
    text-align: center;
}

.cookie-text {
    margin-bottom: 1.5rem;
}

.cookie-text h5 {
    margin-bottom: 0.5rem;
    color: #333;
}

.cookie-text p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .cookie-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
}

/* Hibaoldalak */
.error-page {
    padding: 2rem 0;
}

.error-page .display-1 {
    font-size: 8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #dc3545;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.error-page .lead {
    font-size: 1.25rem;
    color: #6c757d;
}

.error-page .card {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.error-page .alert {
    border-radius: 10px;
    padding: 1rem;
}

.error-page ul li {
    padding: 0.5rem 0;
}

.error-page .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
} 