/* Ratlankių paieška - pagrindinis stilius */

.ratlankiu-paieska-container {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a6f 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin: 20px 0;
}

.ratlankiu-paieska-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 25px 0;
    text-align: center;
}

.ratlankiu-paieska-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

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

.ratlankiu-filter-group label {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ratlankiu-filter-group select {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.ratlankiu-filter-group select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.ratlankiu-filter-group select:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.2);
}

.ratlankiu-filter-group select option {
    background: #2d4a6f;
    color: #fff;
    padding: 10px;
}

.ratlankiu-paieska-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.ratlankiu-search-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ratlankiu-search-btn:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #d14d21 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.ratlankiu-reset-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ratlankiu-reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Rezultatų puslapio stiliai */
.ratlankiu-rezultatai-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.ratlankiu-rezultatai-header {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a6f 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.ratlankiu-rezultatai-header h1 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 28px;
}

.ratlankiu-filters-active {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.ratlankiu-filter-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ratlankiu-filter-tag .remove {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ratlankiu-filter-tag .remove:hover {
    opacity: 1;
}

.ratlankiu-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.ratlankiu-sidebar h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1a365d;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.ratlankiu-filter-section {
    margin-bottom: 25px;
}

.ratlankiu-filter-section h4 {
    font-size: 14px;
    color: #555;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ratlankiu-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ratlankiu-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.ratlankiu-filter-option:hover {
    background: #f5f5f5;
}

.ratlankiu-filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff6b35;
}

.ratlankiu-filter-option label {
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.ratlankiu-filter-option .count {
    color: #888;
    font-size: 12px;
}

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

.ratlankiu-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.ratlankiu-product-image {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ratlankiu-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ratlankiu-product-info {
    padding: 20px;
}

.ratlankiu-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a365d;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.ratlankiu-product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.ratlankiu-product-spec {
    background: #f0f6fc;
    color: #2271b1;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.ratlankiu-product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.ratlankiu-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b35;
}

.ratlankiu-price .currency {
    font-size: 14px;
    font-weight: 400;
}

.ratlankiu-add-to-cart {
    background: #ff6b35;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.ratlankiu-add-to-cart:hover {
    background: #e55a2b;
}

.ratlankiu-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
}

.ratlankiu-no-results h3 {
    color: #1a365d;
    font-size: 22px;
    margin-bottom: 10px;
}

.ratlankiu-no-results p {
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .ratlankiu-paieska-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ratlankiu-paieska-container {
        padding: 20px;
    }
    
    .ratlankiu-rezultatai-header h1 {
        font-size: 22px;
    }
    
    .ratlankiu-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 480px) {
    .ratlankiu-paieska-grid {
        grid-template-columns: 1fr;
    }
    
    .ratlankiu-paieska-actions {
        flex-direction: column;
    }
    
    .ratlankiu-search-btn,
    .ratlankiu-reset-btn {
        width: 100%;
        justify-content: center;
    }
}
