
/* Általános stílusok */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER STYLES */
.header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 30px 0;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: white;
    font-size: 2.4rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 25px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: normal;
    line-height: 1.4;
}

/* SEARCH AND FILTER BAR */
.filter-bar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f7;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-label i {
    color: #3b82f6;
}

.search-input {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select-input {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.select-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .filter-actions {
        justify-content: stretch;
    }
}

.search-btn {
    padding: 12px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.reset-btn {
    padding: 12px 24px;
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;
}

.reset-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    text-decoration: none;
}

/* RESULTS INFO */
.results-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.results-text {
    font-size: 0.95rem;
    color: #475569;
}

.results-text strong {
    color: #1e40af;
}

/* PRODUCTS GRID */
.products-container {
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* PRODUCT CARD */
.product-card {
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
    height: 100%;
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.product-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
}

.product-name {
    font-size: 0.95rem;
    min-height: 2.8em;
    margin-bottom: 15px;
    flex-grow: 1;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
}

.brand-model {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eef2f7;
}

.brand, .model {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.brand strong, .model strong {
    color: #475569;
    font-weight: 600;
    min-width: 55px;
}

.brand span, .model span {
    color: #334155;
    font-weight: 500;
}

/* PRICE DISPLAY - VERY PROMINENT ON EVERY PRODUCT */
.price-display {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-radius: 10px;
    text-align: center;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
    position: relative;
    overflow: hidden;
}

.price-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.price-display.no-price {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
}

.price-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.price-value {
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
}

.price-currency {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

/* NO PRICE MESSAGE */
.no-price-message {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* SUBCATEGORIA BADGE */
.subcategory-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #8b5cf6;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* PRICE IN IMAGE CORNER */
.corner-price {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* EMPTY STATE */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eef2f7;
}

.empty-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h2 {
    color: #334155;
    margin-bottom: 10px;
}

.empty-state p {
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 20px;
}

/* CURRENT PAGE INDICATOR */
.page-indicator {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 15px;
    padding: 10px;
}

/* PAGINATION */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.page-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
    background: white;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.page-link.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.page-nav {
    background: #475569;
    border-color: #475569;
    color: white;
}

.page-nav:hover {
    background: #334155;
    border-color: #334155;
}

.page-link:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* IMAGE FALLBACK */
.product-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    text-align: center;
    line-height: 1.4;
    padding: 20px;
}

.product-image-fallback i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: #cbd5e1;
}

/* FOOTER */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    border-top: none;
    margin-top: 40px;
    padding: 25px 0;
    text-align: center;
}

.footer div {
    color: #94a3b8;
    margin-bottom: 15px;
}

.footer-links {
    margin-top: 15px;
}

.footer-link {
    color: #60a5fa;
    text-decoration: none;
    margin: 0 10px;
}

.footer-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 992px) {
    .price-value {
        font-size: 1.2rem;
    }
    
    .price-display {
        padding: 12px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .price-value {
        font-size: 1.1rem;
    }
    
    .price-display {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .price-value {
        font-size: 1rem;
    }
    
    .price-display {
        padding: 8px;
    }
    
    .subcategory-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .header h1 {
        font-size: 1.6rem;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* FIX SPECIAL CHARS */
.fix-special-chars {
    font-family: inherit;
}

/* PRODUCT DETAIL PAGE STYLES */
.product-detail-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 15px 0;
    margin-bottom: 20px;
    color: white;
}

.back-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.product-image-section {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: -10px;
}

.product-detail-image {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    display: block;
}

.product-no-image {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
    flex-direction: column;
}

.product-no-image i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
    color: #cbd5e1;
}

.product-info-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
}

.product-name {
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.product-price {
    font-size: 1.5rem;
    color: #2ecc71;
    font-weight: 600;
    margin-bottom: 25px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.meta-description-section {
    margin-bottom: 20px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 15px;
}

.meta-description-label {
    color: #0369a1;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-description-label i {
    color: #0ea5e9;
}

.meta-description-content {
    color: #334155;
    line-height: 1.6;
    font-size: 0.9rem;
    background: #f8fafc;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.description-section {
    margin-top: 15px;
}

.description-label {
    color: #64748b;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.description-content {
    color: #334155;
    line-height: 1.7;
    font-size: 0.95rem;
    background: #f8fafc;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.description-content ul {
    margin: 0;
    padding-left: 15px;
    list-style-type: none;
}

.description-content li {
    margin-bottom: 6px;
    padding: 4px 0;
    padding-left: 8px;
    border-left: 2px solid #3498db;
    font-size: 0.9rem;
    line-height: 1.5;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}